:root {
  --ink: #f7f1df;
  --muted: #9ba89f;
  --deep: #050c09;
  --panel: #0c1813;
  --panel2: #111f19;
  --line: rgba(239, 225, 184, 0.12);
  --green: #0f3b2a;
  --green2: #1d6b49;
  --gold: #e4b854;
  --gold2: #f7d77b;
  --coral: #d6684d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { background: var(--deep); }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 70% 0%, #10261c 0, var(--deep) 42%); font-family: Inter, Avenir Next, Avenir, Segoe UI, sans-serif; overflow-x: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
.ambient { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; opacity: .18; }
.ambient-one { width: 440px; height: 440px; background: #28764c; right: 12%; top: 15%; }
.ambient-two { width: 280px; height: 280px; background: #a36f22; left: 8%; bottom: 8%; opacity: .1; }
.app-shell { position: relative; z-index: 1; min-height: 100vh; }

.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; padding: 28px 20px 22px; display: flex; flex-direction: column; background: rgba(6, 15, 11, .94); border-right: 1px solid var(--line); backdrop-filter: blur(20px); z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; background: none; border: 0; text-align: left; cursor: pointer; padding: 0 10px 32px; }
.brand-mark { position: relative; width: 32px; height: 48px; padding: 7px 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 7px; background: linear-gradient(135deg, #f9df9f, #b57e27); box-shadow: inset 0 0 0 2px #fff3bf, 0 8px 26px rgba(228, 184, 84, .22); transform: rotate(-8deg); }
.brand-mark i { width: 4px; height: 4px; border-radius: 50%; background: #162018; align-self: center; justify-self: center; }
.brand-mark b { position: absolute; height: 1px; background: #5e491f; left: 5px; right: 5px; top: 50%; }
.brand strong { display: block; font-family: Georgia, serif; letter-spacing: 2px; font-size: 17px; }
.brand small { color: var(--gold); letter-spacing: 7px; font-size: 8px; }
.primary-nav { display: grid; gap: 6px; }
.nav-item { position: relative; display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 9px; min-height: 48px; padding: 0 13px; background: transparent; border: 1px solid transparent; border-radius: 9px; color: #819087; cursor: pointer; text-align: left; font-size: 13px; transition: .2s ease; }
.nav-item:hover { background: rgba(255,255,255,.03); color: white; }
.nav-item.active { background: linear-gradient(90deg, rgba(228,184,84,.15), rgba(228,184,84,.03)); border-color: rgba(228,184,84,.15); color: var(--gold2); }
.nav-item.active:before { content: ""; position: absolute; left: -21px; height: 28px; width: 3px; border-radius: 4px; background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.nav-icon { font-size: 17px; text-align: center; }
.live-count { padding: 3px 7px; border-radius: 10px; color: #84c5a1; background: #143724; font-size: 9px; }
.sidebar-card { margin-top: auto; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(140deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); }
.mini-kicker, .panel-label { color: #74857b; font-size: 8px; letter-spacing: 2px; font-weight: 800; }
.rank-row { display: flex; align-items: center; gap: 10px; margin: 13px 0; }
.rank-medal { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #301d00; background: linear-gradient(145deg, var(--gold2), #a76d17); }
.rank-row strong, .rank-row small { display: block; font-size: 12px; }
.rank-row small, .sidebar-card > small { color: #728078; font-size: 9px; margin-top: 3px; }
.progress { height: 4px; overflow: hidden; margin-bottom: 8px; border-radius: 4px; background: rgba(255,255,255,.08); }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #97701f, var(--gold2)); }
.profile-chip { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 22px 5px 0; }
.profile-chip strong, .profile-chip small { display: block; font-size: 11px; }
.profile-chip small { color: #6e7f74; margin-top: 4px; }
.profile-chip small i { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #4bd27d; box-shadow: 0 0 7px #4bd27d; }
.profile-chip button { border: 0; background: transparent; color: #65756b; }
.avatar { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(145deg, #d08b53, #663625); border: 2px solid #2b503d; font-size: 10px; font-weight: 800; box-shadow: 0 6px 20px #0006; }
.avatar span { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border: 2px solid #0c1712; border-radius: 50%; background: #4bd27d; }

.main-stage { margin-left: 232px; min-height: 100vh; }
.sidebar, .main-stage { transition: transform .28s ease, margin-left .28s ease; }
.app-shell.game-active .sidebar { transform: translateX(-100%); }
.app-shell.game-active .main-stage { margin-left: 0; }
.app-shell.game-active .game-view { padding-left: 10px; padding-right: 10px; }
.app-shell.game-active .game-layout { grid-template-columns: 230px minmax(720px, 1fr) 190px; gap: 8px; }
.app-shell.game-active .table-scene { background-size: cover; }
.topbar { height: 84px; padding: 0 4.2vw; display: flex; align-items: center; justify-content: flex-end; border-bottom: 1px solid var(--line); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.button-account { padding: 11px 17px; border: 1px solid #d9b65a55; color: #ead8a8; background: #0d1b15; }
.mobile-brand { display: none; font-family: Georgia, serif; letter-spacing: 2px; }
.mobile-brand span { color: var(--gold); }
.sound-control { display: flex; align-items: center; gap: 9px; padding-right: 15px; margin-right: 3px; border-right: 1px solid var(--line); }
.sound-control > span { color: var(--gold); }
.sound-control small, .sound-control strong { display: block; }
.sound-control small { font-size: 6px; letter-spacing: 1.5px; color: #627068; }
.sound-control strong { font-size: 9px; font-weight: 500; margin-top: 2px; }
.sound-control button { width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 8px; cursor: pointer; }
.icon-button, .round-button { position: relative; display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.025); cursor: pointer; }
.icon-button i { position: absolute; right: 1px; top: 1px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.button { border: 0; border-radius: 7px; padding: 12px 17px; font-weight: 800; font-size: 10px; letter-spacing: .5px; cursor: pointer; transition: .2s ease; }
.button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button-gold { color: #241a08; background: linear-gradient(135deg, #f4d374, #bd862a); box-shadow: 0 8px 24px rgba(184,128,34,.22), inset 0 1px #fff8c6; }
.button-gold > span:first-child { font-size: 15px; margin-right: 5px; }
.button-ghost { color: #e9e4d8; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.035); }
.button-large { padding: 15px 22px; font-size: 10px; }
.button-large span { margin-left: 20px; }
.view { display: none; }
.view.active { display: block; animation: reveal .45s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } }

.hero { min-height: 510px; padding: 58px 4.2vw 40px; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(490px, 1.35fr); align-items: center; gap: 3vw; overflow: hidden; }
.eyebrow { color: var(--gold); font-size: 8px; letter-spacing: 2.6px; font-weight: 800; }
.eyebrow i { display: inline-block; width: 24px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 9px; }
.hero h1 { margin: 15px 0 18px; font-family: Georgia, Times New Roman, serif; font-weight: 500; font-size: clamp(45px, 5vw, 72px); line-height: .95; letter-spacing: -3px; }
.hero h1 em { color: var(--gold); font-weight: 400; }
.hero-copy > p { max-width: 480px; color: var(--muted); font-family: Georgia, serif; font-size: 14px; line-height: 1.75; }
.hero-actions { display: flex; gap: 11px; margin: 27px 0 31px; }
.hero-stats { display: flex; align-items: center; gap: 22px; }
.hero-stats > span { width: 1px; height: 24px; background: var(--line); }
.hero-stats strong, .hero-stats small { display: block; }
.hero-stats strong { font-family: Georgia, serif; font-size: 17px; color: #e9e4d8; }
.hero-stats small { margin-top: 4px; color: #627169; font-size: 6px; letter-spacing: 1px; }
.hero-table-preview { position: relative; min-height: 380px; isolation: isolate; cursor: pointer; background: url("assets/premium-domino-table.png") center / contain no-repeat; filter: drop-shadow(0 35px 40px #000b); transform: perspective(1100px) rotateX(8deg) rotateZ(-1deg); transition: transform .35s ease; }
.hero-table-preview:hover { transform: perspective(1100px) rotateX(5deg) rotateZ(0) scale(1.015); }
.preview-glow { position: absolute; z-index: -1; inset: 18% 8%; background: #ae772d44; filter: blur(55px); }
.preview-status { position: absolute; left: 18%; top: 10%; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #ffffff1a; border-radius: 5px; background: #06120de6; font-size: 6px; letter-spacing: 1px; }
.preview-status i { width: 5px; height: 5px; border-radius: 50%; background: #4bd27d; box-shadow: 0 0 7px #4bd27d; }
.preview-status b { margin-left: 4px; color: #8a9990; font-weight: 500; }
.mini-player { position: absolute; display: flex; align-items: center; gap: 6px; font-size: 7px; text-shadow: 0 2px 3px #000; }
.mini-player span { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid #b98b42; border-radius: 50%; background: #283a31; font-weight: 800; }
.mini-player.north { left: 48%; top: 8%; }
.mini-player.south { left: 48%; bottom: 8%; }
.mini-player.west { left: 14%; top: 48%; }
.mini-player.east { right: 14%; top: 48%; flex-direction: row-reverse; }
.mini-domino-cross { position: absolute; inset: 27% 28%; }
.md { position: absolute; width: 11px; height: 22px; border-radius: 2px; background: linear-gradient(90deg,#e5dcc6,#fff8e9); box-shadow: 0 2px 4px #0009; }
.md:before, .md:after { content: ""; position: absolute; left: 50%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: #1c251f; box-shadow: -3px 3px #1c251f, 3px 3px #1c251f; }
.md:before { top: 4px; }.md:after { bottom: 4px; }
.m1 { left: 50%; top: 50%; }.m2 { left: 50%; top: calc(50% - 25px); }.m3 { left: 50%; top: calc(50% + 25px); }.m4 { left: calc(50% - 21px); top: 50%; transform: rotate(90deg); }.m5 { left: calc(50% + 21px); top: 50%; transform: rotate(90deg); }
.watch-button { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); border: 1px solid #d5a85077; border-radius: 5px; padding: 9px 15px; color: var(--gold2); background: #06100ce8; font-size: 7px; letter-spacing: .7px; cursor: pointer; }
.watch-button span { margin-left: 12px; }
.content-section { padding: 38px 4.2vw 58px; border-top: 1px solid var(--line); background: linear-gradient(#08110d99, #07100c); }
.join-code-panel { display: grid; grid-template-columns: 1fr minmax(150px, 200px) minmax(160px, 210px) auto; gap: 14px; align-items: end; margin-bottom: 24px; padding: 17px 19px; border: 1px solid #d9b35533; border-radius: 11px; background: linear-gradient(110deg, #111e17, #0a130f); }.join-code-panel strong { display: block; margin-top: 6px; font: 17px Georgia, serif; }.join-code-panel label span { display: block; margin-bottom: 6px; color: #8c9a91; font-size: 7px; letter-spacing: 1.4px; }.join-code-panel input { width: 100%; padding: 11px 13px; border: 1px solid #ffffff20; border-radius: 6px; outline: none; color: #f5d77b; background: #050b08; font-size: 12px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; }.join-code-panel input:focus { border-color: #e4b85488; }
#guestNameInput { color: #e9e5d9; letter-spacing: .2px; text-transform: none; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; }
.section-heading h2, .game-topline h2, .create-modal h2 { margin: 7px 0 0; font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.table-filters { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: #050b08; }
.filter { padding: 7px 13px; border: 0; border-radius: 5px; color: #75847b; background: transparent; font-size: 8px; cursor: pointer; }
.filter.active { color: #f4d577; background: #1b281f; box-shadow: inset 0 0 0 1px #f4d57722; }
.table-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.table-card { position: relative; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: linear-gradient(145deg, #111c17, #0a120e); transition: .25s ease; }
.table-card:hover { transform: translateY(-4px); border-color: #d9b25755; box-shadow: 0 18px 40px #0005; }
.table-card:after { content: ""; position: absolute; width: 110px; height: 110px; right: -55px; top: -55px; border-radius: 50%; background: var(--cardglow, #8c6322); filter: blur(35px); opacity: .16; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.game-tag { padding: 5px 7px; border: 1px solid #d4a94c33; border-radius: 4px; color: var(--gold2); background: #d4a94c10; font-size: 6px; letter-spacing: 1px; }
.game-tag.classic { color: #8ecbab; border-color: #52a97733; background: #52a97710; }
.privacy { color: #6f7d75; font-size: 7px; letter-spacing: .8px; }
.table-card h3 { margin: 15px 0 5px; font-family: Georgia, serif; font-size: 15px; font-weight: 500; }
.host { color: #66756d; font-size: 8px; }
.seat-row { display: flex; align-items: center; margin: 18px 0 16px; }
.seat-dot { display: grid; place-items: center; width: 31px; height: 31px; margin-right: -5px; border: 2px solid #0c1511; border-radius: 50%; background: var(--seat, #30443a); color: #ebeadf; font-size: 7px; font-weight: 800; }
.seat-dot.empty { border: 1px dashed #627168; background: transparent; color: #607168; }
.seat-dot.bot { color: #d4ae58; background: #2b281e; }
.seat-count { margin-left: auto; color: #77867d; font-size: 8px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line); }
.card-bottom span { color: #6d7b73; font-size: 7px; }
.card-actions { display: flex; align-items: center; gap: 6px; }
.join-button { padding: 7px 14px; border: 1px solid #d6ad5477; border-radius: 5px; color: var(--gold2); background: #d6ad540c; font-size: 8px; cursor: pointer; }
.join-seat-button { color: #13261b; border-color: #64d998; background: #65d99a; font-weight: 900; }.watch-seat-button { color: #d7e5dc; border-color: #ffffff2c; background: #ffffff08; }
.join-button:disabled { opacity: .4; cursor: default; }
.load-more { display: block; margin: 23px auto 0; border: 0; color: #718078; background: transparent; font-size: 8px; cursor: pointer; }
.load-more span { color: var(--gold); margin-left: 7px; }
.sponsor-banner { position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 13px; min-height: 64px; margin-top: 16px; padding: 13px 15px; overflow: hidden; border: 1px solid #d6ad4e20; border-radius: 9px; background: linear-gradient(100deg, #101b15, #16251a 58%, #342b16); }
.sponsor-banner:after { content: ""; position: absolute; width: 230px; height: 100px; right: 4%; top: -60%; border-radius: 50%; background: #c08c2e24; filter: blur(30px); }
.ad-label { position: absolute; right: 7px; top: 5px; color: #718077; font-size: 5px; letter-spacing: 1px; }
.sponsor-mark { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #f1cb7055; border-radius: 50%; color: #f1cb70; background: #291f0c; font-family: Georgia, serif; font-size: 12px; }
.sponsor-banner strong, .sponsor-banner small { display: block; }.sponsor-banner strong { font-family: Georgia, serif; font-size: 12px; }.sponsor-banner small { margin-top: 4px; color: #809087; font-size: 7px; }.sponsor-banner button { z-index: 1; padding: 8px 13px; border: 1px solid #e2ba5b55; border-radius: 5px; color: #eaca7b; background: #e2ba5b0b; font-size: 7px; cursor: pointer; }

.game-view { padding: 16px 16px 28px; }
.game-topline { min-height: 62px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 15px; }
.game-topline h2 { font-size: 25px; }
.game-meta { display: flex; align-items: center; gap: 12px; }
.game-meta > span { padding: 7px 11px; border: 1px solid #deb7593a; border-radius: 5px; color: var(--gold2); background: #deb7590c; font-size: 10px; letter-spacing: 1.5px; }
.game-meta b { color: #9aa79f; font-size: 11px; font-weight: 500; }
.game-meta i { color: #d8ded9; font-style: normal; }
.room-code { display: grid; min-width: 128px; gap: 3px; padding: 9px 13px; border: 2px solid #e0ba5a77; border-radius: 10px; background: radial-gradient(circle at 50% 0, #e0ba5a20, transparent 70%), #0d1812; box-shadow: 0 0 0 4px #e0ba5a09, 0 8px 24px #0007; text-align: center; }
.room-code small { color: #b5bfb8; font-size: 8px; font-weight: 900; letter-spacing: 1.7px; }
.room-code button { padding: 1px 2px; border: 0; color: #f7d879; background: transparent; font-family: Georgia, serif; font-size: 21px; font-weight: 900; line-height: 1.05; letter-spacing: 3.2px; text-shadow: 0 0 16px #efc96355; cursor: pointer; }
.room-code button:hover { color: #fff0b5; transform: scale(1.03); }
.game-layout { height: calc(100vh - 140px); min-height: 590px; display: grid; grid-template-columns: 230px minmax(600px, 1fr) 200px; gap: 10px; }
.glass-panel { border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(145deg, rgba(17,31,24,.92), rgba(8,17,13,.92)); box-shadow: var(--shadow); }
.score-panel { align-self: center; padding: 20px 17px; z-index: 4; }
.game-view .panel-label { color: #a8b5ad; font-size: 10px; letter-spacing: 2.2px; }
.score-head { display: grid; grid-template-columns: minmax(0, 1fr) 48px 54px; gap: 8px; margin: 18px 3px 9px; color: #93a198; font-size: 8px; font-weight: 900; letter-spacing: .7px; }
.score-head small:not(:first-child) { text-align: right; }
.score-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 48px 54px; gap: 8px; align-items: center; min-height: 58px; padding: 10px 4px; border-top: 1px solid var(--line); }
.score-row .avatar { width: 32px; height: 32px; border-width: 1px; font-size: 8px; }
.score-row b, .score-row small { display: block; }
.score-row b { max-width: 100%; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.score-row small { color: #8c9b92; font-size: 8px; margin-top: 3px; }
.score-round-value { justify-self: end; min-width: 38px; padding: 5px 6px; border: 1px solid #d7b4532b; border-radius: 6px; color: #e6c76f; background: #d7b4530c; font-size: 11px; font-weight: 900; text-align: center; }
.score-value { justify-self: end; font-family: Georgia, serif; font-size: 21px; color: #f2e5bf; }
.score-row.you { background: linear-gradient(90deg, #d9ac4211, transparent); }
.hand-status { margin-top: 13px; padding: 13px; border-radius: 8px; background: #050b08; text-align: center; }
.hand-status small, .hand-status strong, .hand-status span { display: block; }
.hand-status small { color: #8b9a91; font-size: 8px; letter-spacing: 1px; }.hand-status strong { margin: 4px 0; color: var(--gold2); font-family: Georgia, serif; font-size: 25px; }.hand-status span { color: #829188; font-size: 8px; }
.table-scene { position: relative; border: 1px solid #63e7cf24; border-radius: 18px; overflow: hidden; background: #07130f url("assets/modern-domino-table.png") center / 100% 100% no-repeat; box-shadow: 0 35px 70px #0009, 0 0 0 1px #d8b65a18, inset 0 0 70px #001a1488; }
.table-scene:after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 58%, rgba(0,10,8,.23)); }
.game-view.waiting .game-layout { grid-template-columns: minmax(600px, 900px); justify-content: center; }
.game-view.waiting .score-panel, .game-view.waiting .chat-panel, .game-view.waiting .board, .game-view.waiting .player-hand, .game-view.waiting .turn-chip, .game-view.waiting .game-controls, .game-view.waiting .penalty-notice, .game-view.waiting .pass-notice { display: none; }
.game-view.spectating .player-hand, .game-view.spectating .game-controls { display: none; }
.game-view.spectating .seat-south { bottom: 2.5%; }
.waiting-panel[hidden] { display: none; }
.waiting-panel { position: absolute; z-index: 5; left: 50%; top: 48%; width: min(500px, calc(100% - 190px)); padding: 25px 30px; transform: translate(-50%, -50%); border: 1px solid #e6c36755; border-radius: 22px; text-align: center; background: linear-gradient(145deg, #0b1c17f5, #06100dee); box-shadow: 0 24px 70px #000b, inset 0 1px #ffffff12; backdrop-filter: blur(16px); }
.waiting-panel h3 { margin: 10px 0 8px; color: #f5f1df; font-family: Georgia, serif; font-size: clamp(28px, 4vw, 42px); font-weight: 500; }
.waiting-panel > p { max-width: 390px; margin: 0 auto; color: #9eaaa3; font-size: 13px; line-height: 1.65; }
.waiting-count { width: 88px; height: 88px; display: grid; place-content: center; gap: 4px; margin: 16px auto; border: 1px solid #e9c96766; border-radius: 50%; background: #e9c9670d; box-shadow: 0 0 35px #e6bd4820; }
.waiting-count strong { color: #f2ce6e; font-family: Georgia, serif; font-size: 34px; line-height: 1; }
.waiting-count span { color: #89978f; font-size: 7px; font-weight: 900; letter-spacing: 1.4px; }
.waiting-host-message { margin: 0 auto 16px !important; color: #e1c675 !important; font-weight: 800; letter-spacing: .3px; }
.waiting-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.waiting-actions .button { justify-content: center; min-height: 43px; font-size: 9px; }
.waiting-actions .button-gold { grid-column: 1 / -1; }
.waiting-actions .button:disabled { cursor: not-allowed; opacity: .38; filter: grayscale(.5); }
.seat.waiting-empty { color: #86968d; border-style: dashed; border-color: #b4c6ba55; background: #07110dbd; box-shadow: none; }
.open-seat-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px dashed #d4ba7255; border-radius: 50%; color: #d4ba72; font-size: 16px; }
.game-view.waiting .seat-south { bottom: 2.5%; }
.seat { position: absolute; z-index: 3; min-width: 124px; display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 1px solid #ffffff24; border-radius: 26px; background: #07110df2; box-shadow: 0 7px 18px #0009; }
.seat .avatar { width: 34px; height: 34px; font-size: 9px; }
.seat b, .seat small { display: block; }.seat > div:nth-child(2) { min-width: 0; max-width: 112px; }.seat b { max-width: 112px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.seat small { overflow: hidden; color: #9aa89f; font-size: 8px; margin-top: 3px; text-overflow: ellipsis; white-space: nowrap; }
.seat-north { left: 50%; top: 2.5%; transform: translateX(-50%); }.seat-south { left: 50%; bottom: 18%; transform: translateX(-50%); }.seat-west { left: 1.5%; top: 50%; width: 54px; min-width: 54px; height: 126px; flex-direction: column; justify-content: center; transform: translateY(-50%); }.seat-east { right: 1.5%; top: 50%; width: 54px; min-width: 54px; height: 126px; flex-direction: column; justify-content: center; transform: translateY(-50%); }
.seat-west > div:nth-child(2), .seat-east > div:nth-child(2) { display: grid; justify-items: center; }
.seat-west b, .seat-east b { max-width: none; max-height: 60px; overflow: hidden; writing-mode: vertical-rl; text-orientation: mixed; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.seat-west small, .seat-east small { display: none; }
.opponent-rack { position: absolute; left: 50%; top: calc(100% + 8px); display: flex; align-items: center; gap: 4px; transform: translateX(-50%); padding: 7px 8px; border: 1px solid #65dbc33b; border-radius: 9px; background: #03100ce8; box-shadow: 0 10px 25px #000b, inset 0 1px #ffffff0b; }
.hidden-domino { position: relative; display: block; width: 22px; height: 44px; flex: 0 0 22px; overflow: hidden; border: 2px solid #b9994e; border-radius: 5px; background: radial-gradient(circle at 50% 25%, #274f43, transparent 34%), linear-gradient(145deg, #183b31, #071712); box-shadow: inset 0 0 0 2px #72b6a02b, inset 0 0 12px #0009, 0 4px 8px #000a; }
.hidden-domino:before { content: ""; position: absolute; left: 3px; right: 3px; top: calc(50% - 1px); height: 2px; border-radius: 2px; background: #c5a55788; box-shadow: 0 1px #07110d; }
.hidden-domino:after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; transform: translate(-50%, -50%) rotate(45deg); border: 1px solid #e1c16b; background: #10281f; box-shadow: 0 0 8px #d7b85f55; }
.rack-count { display: grid; place-items: center; min-width: 22px; height: 22px; margin-right: 3px; border-radius: 50%; color: #231b09; background: #e2bd60; font-size: 10px; font-weight: 900; box-shadow: 0 3px 9px #0009; }
.seat-west .opponent-rack { left: calc(100% + 8px); top: 50%; bottom: auto; flex-direction: column; transform: translateY(-50%); }
.seat-east .opponent-rack { left: auto; right: calc(100% + 8px); top: 50%; bottom: auto; flex-direction: column; transform: translateY(-50%); }
.seat-west .hidden-domino, .seat-east .hidden-domino { width: 44px; height: 22px; flex: 0 0 22px; }
.seat-west .hidden-domino:before, .seat-east .hidden-domino:before { left: calc(50% - 1px); right: auto; top: 3px; bottom: 3px; width: 2px; height: auto; }
.seat-west .rack-count, .seat-east .rack-count { margin: 0 0 3px; }
.seat.active { border-color: #5bea9c; background: #09251aee; box-shadow: 0 0 0 4px #4fe39722, 0 0 28px #43df8b66, 0 6px 15px #0008; }
.seat.active .opponent-rack { border-color: #59e79b; box-shadow: 0 0 0 3px #4fe39722, 0 0 25px #43df8b55, 0 10px 25px #000b; }
.seat-mic { position: absolute; right: -7px; top: -7px; min-width: 28px; height: 20px; padding: 0 6px; border: 1px solid #ffffff2b; border-radius: 10px; color: #819087; background: #06100df2; font-size: 6px; font-weight: 900; letter-spacing: .6px; cursor: pointer; box-shadow: 0 3px 9px #0009; }.seat-mic.live { color: #06150d; border-color: #65e89c; background: #65e89c; box-shadow: 0 0 15px #54dc8d99; }.seat.mic-live { box-shadow: 0 0 0 4px #55dd8d18, 0 0 24px #55dd8d55, 0 7px 18px #0009; }
.seat.playing-domino { animation: playerRelease .82s ease; }
.seat.playing-domino .avatar { animation: avatarRelease .82s ease; }
@keyframes playerRelease { 35% { border-color: #f0ca69; box-shadow: 0 0 0 7px #efc76118, 0 0 28px #efc76166, 0 6px 15px #0008; } }
@keyframes avatarRelease { 35% { transform: scale(1.14); filter: brightness(1.25); } }
.seat.active:before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #62f2a5; box-shadow: 0 0 14px #62f2a5; }
.seat-north.active:before { bottom: -12px; left: calc(50% - 3px); }.seat-south.active:before { top: -12px; left: calc(50% - 3px); }.seat-west.active:before { right: -12px; top: calc(50% - 3px); }.seat-east.active:before { left: -12px; top: calc(50% - 3px); }
.turn-chip { position: absolute; z-index: 5; left: 2.5%; top: 3%; bottom: auto; display: flex; align-items: center; gap: 9px; max-width: min(390px, 55%); transform: none; padding: 12px 16px; border: 2px solid #5be99b88; border-radius: 10px; color: #d9ffea; background: #071b12f5; font-size: 11px; letter-spacing: 1px; box-shadow: 0 0 0 4px #4fe39712, 0 10px 30px #000a; }
.turn-chip strong { min-width: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.turn-chip i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #62f2a5; box-shadow: 0 0 12px #62f2a5; }.turn-chip span { flex: 0 0 auto; margin-left: 3px; color: #8fe8b7; font-size: 10px; font-weight: 900; }.turn-chip.pose-turn { border-color: #74f1aa; box-shadow: 0 0 0 5px #4fe39718, 0 0 32px #43df8b55, 0 10px 30px #000a; }
.penalty-notice { position: absolute; z-index: 20; left: 50%; top: 31%; display: grid; min-width: 320px; justify-items: center; transform: translate(-50%, -12px) scale(.9); padding: 18px 28px; border: 1px solid #f06a4c66; border-radius: 12px; color: #fff1e8; background: #2a0d09f5; box-shadow: 0 0 0 7px #e64f3314, 0 18px 45px #000a; opacity: 0; pointer-events: none; transition: .22s ease; }
.penalty-notice:empty { display: none; }
.penalty-notice.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.penalty-notice strong { color: #ff9b80; font-family: Georgia, serif; font-size: 31px; line-height: 1; }.penalty-notice span { margin-top: 8px; color: #ffd5ca; font-size: 10px; font-weight: 900; letter-spacing: 2px; }.penalty-notice small { margin-top: 7px; color: #e5c3ba; font-size: 10px; line-height: 1.35; text-align: center; }
.pass-notice { position: absolute; z-index: 35; left: 50%; top: 42%; display: grid; min-width: 220px; justify-items: center; transform: translate(-50%, -50%) scale(.72); padding: 19px 30px 17px; border: 1px solid #e9c66566; border-radius: 12px; color: #fff9e8; background: radial-gradient(circle at 50% 0, #d7ae4728, transparent 58%), #07110df2; box-shadow: 0 0 0 7px #e4bb5512, 0 22px 60px #000d; opacity: 0; pointer-events: none; }
.pass-notice:empty { display: none; }
.pass-notice.show { animation: passAnnouncement var(--notice-duration, 1.5s) cubic-bezier(.2,.8,.2,1) both; }
.pass-notice strong { font-family: Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1; text-shadow: 0 3px 14px #000; }
.pass-notice span { margin-top: 8px; color: #f0c963; font-size: 13px; font-weight: 900; letter-spacing: 5px; }
.pass-notice.board-pass-result { min-width: 310px; }
.pass-notice.board-pass-result span { letter-spacing: 2px; }
@keyframes passAnnouncement { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.72); filter: blur(4px); } 18%, 72% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); } 84% { transform: translate(-50%, -50%) scale(1.04); } 100% { opacity: 0; transform: translate(-50%, -55%) scale(.96); } }
.round-summary { position: fixed; z-index: 120; inset: 0; display: none; place-items: center; padding: 24px; background: #020805e8; backdrop-filter: blur(14px); }
.round-summary.open { display: grid; }
.round-summary-card { width: min(900px, 94vw); max-height: 90vh; overflow: auto; padding: 30px; border: 1px solid #e5bd5b66; border-radius: 18px; color: #f6f2e7; background: radial-gradient(circle at 50% 0, #d4aa4026, transparent 42%), #07110d; box-shadow: 0 28px 90px #000; }
.round-summary-card.match-complete { border-color: #f1ca6a99; background: radial-gradient(circle at 50% 0, #e4b94b3d, transparent 46%), #07110d; box-shadow: 0 0 0 7px #e5bd5b0b, 0 28px 90px #000; }
.round-summary-card.match-complete > .eyebrow { color: #f2cf74; }
.match-complete-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.match-complete-actions .button { min-width: 150px; justify-content: center; }
.round-summary-card h2 { margin: 8px 0 5px; font: 38px Georgia, serif; }.round-summary-card > p { margin: 0 0 22px; color: #aebbb2; }
.round-score-head, .round-score-row { display: grid; grid-template-columns: 2fr 1fr 1.6fr .8fr .8fr; gap: 12px; align-items: center; }
.round-score-head { padding: 0 14px 9px; color: #a6b1aa; font-size: 9px; font-weight: 900; letter-spacing: 1.4px; }
.round-score-row { padding: 13px 14px; border-top: 1px solid #ffffff12; background: #ffffff03; }.round-score-row.winner { border-color: #e5bd5b55; background: #e5bd5b0b; }
.round-score-row > div { display: flex; align-items: center; gap: 9px; }.round-score-row > div > div b { display: block; font-size: 12px; }.round-score-row > div > div small { color: #839087; font-size: 9px; }
.round-score-row > span { color: #d5ddd8; font-size: 12px; }.round-score-row > span b { display: block; color: #f0cc70; font-size: 16px; }.round-score-row > span small { display: block; max-width: 160px; margin-top: 3px; color: #8e9b93; font-size: 8px; line-height: 1.25; }.round-score-row > strong { color: #f1cf76; font: 24px Georgia, serif; }
.winner-mark { padding: 4px 6px; border-radius: 4px; color: #241a08; background: #e4bd5a; font-size: 7px; font-weight: 900; }
.ten-call-list { margin: 18px 0; padding: 15px 18px; border: 1px solid #ffffff12; border-radius: 10px; background: #02080566; }.ten-call-list h3 { margin: 0 0 9px; color: #f0ca69; font-size: 9px; letter-spacing: 1.6px; }.ten-call-list ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }.ten-call-list li { display: flex; justify-content: space-between; gap: 15px; color: #9facA4; font-size: 10px; }.ten-call-list li b { color: #f2dfad; }
.round-history { margin: 18px 0 22px; }.round-history h3 { margin: 0 0 9px; color: #f0ca69; font-size: 9px; letter-spacing: 1.6px; }.round-history > div { overflow-x: auto; border: 1px solid #ffffff12; border-radius: 10px; }.round-history table { width: 100%; min-width: 520px; border-collapse: collapse; background: #02080566; }.round-history th, .round-history td { padding: 11px 14px; border-bottom: 1px solid #ffffff0e; text-align: center; font-size: 10px; }.round-history thead th { color: #8f9c94; font-size: 8px; letter-spacing: 1px; }.round-history tbody th { color: #e7e2d5; text-align: left; }.round-history td { color: #d0d9d3; }.round-history .history-total { color: #f1cf76; font: 18px Georgia, serif; }.round-history tbody tr:last-child th, .round-history tbody tr:last-child td { border-bottom: 0; }
.round-summary-card > .button { float: right; min-width: 190px; }
@media (max-width: 760px) { .round-summary-card { padding: 20px 14px; }.round-score-head { display: none; }.round-score-row { grid-template-columns: 1.5fr 1fr 1fr; }.round-score-row > span:nth-of-type(2) { grid-column: 1 / 3; }.round-score-row > span:nth-of-type(3) { display: none; }.round-summary-card h2 { font-size: 28px; } }
.board { position: absolute; z-index: 2; inset: 22% 8% 29%; transform: scale(var(--board-scale, 1)); transform-origin: center; transition: transform .32s ease; }
.pose-target { position: absolute; left: 50%; top: 50%; display: grid; min-width: 210px; gap: 7px; place-items: center; transform: translate(-50%, -50%); padding: 22px 25px; border: 1px dashed #e6c263aa; border-radius: 12px; color: #f5d987; background: radial-gradient(circle at 50% 0, #d9ad3b22, transparent 58%), #07120eef; box-shadow: 0 0 0 7px #e6c2630d, 0 18px 50px #000b; cursor: pointer; animation: poseTargetPulse 1.6s ease infinite; }.pose-target strong { font: 17px Georgia, serif; letter-spacing: 1px; }.pose-target span { color: #aab6ae; font-size: 9px; }.pose-target:disabled { cursor: default; opacity: .8; }
@keyframes poseTargetPulse { 50% { border-color: #f2d581; box-shadow: 0 0 0 11px #e6c26308, 0 0 30px #dcae4550, 0 18px 50px #000b; } }
.board.choosing-arm { z-index: 8; }
.board-tile { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(var(--tile-x), var(--tile-y)); }
.arm-target { position: absolute; z-index: 9; left: 50%; top: 50%; display: grid; place-items: center; width: 31px; height: 31px; padding: 0; transform: translate(calc(var(--target-x) - 15.5px), calc(var(--target-y) - 15.5px)) scale(.7); border: 1px dashed #d7b15855; border-radius: 50%; color: #d8c283; background: #07130ed9; box-shadow: 0 5px 16px #0009; opacity: 0; pointer-events: none; transition: .18s ease; }
.arm-target span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #ffffff0d; font-family: Georgia, serif; font-size: 10px; }
.board.choosing-arm .arm-target { opacity: .86; pointer-events: auto; transform: translate(calc(var(--target-x) - 15.5px), calc(var(--target-y) - 15.5px)) scale(1); border-color: #c4aa6d88; color: #d7c99d; background: #0a1611ed; cursor: pointer; }
.board.choosing-arm .arm-target:hover { opacity: 1; border-color: #f0ca69; background: #19231a; box-shadow: 0 0 0 5px #efc76112, 0 0 20px #efc76155; }
.board.classic-board.choosing-arm .arm-target.legal-option { opacity: 1; color: #102318; border: 2px solid #f0ca69; background: #efc761; box-shadow: 0 0 0 6px #efc7611a, 0 0 26px #efc761aa; animation: classicOptionPulse 1.35s ease infinite; }
.board.classic-board.choosing-arm .arm-target.unavailable-option { opacity: .2; border-color: #7b898155; color: #718078; background: #09120eaa; box-shadow: none; }
@keyframes classicOptionPulse { 50% { box-shadow: 0 0 0 10px #efc76109, 0 0 32px #efc761cc; } }
.board-tile.illegal-attempt { z-index: 15; }
.board-tile.illegal-attempt .domino { outline: 3px solid #ef6044; animation: illegalTile .9s ease both; box-shadow: 0 0 0 6px #ef604426, 0 0 30px #ef6044cc, 0 8px 15px #000c; }
.board-tile.illegal-attempt .domino.horizontal { animation-name: illegalTileHorizontal; }
.board-tile.latest-play { z-index: 14; }
.board-tile.latest-play .domino { animation: latestPlay .72s ease both; }
.board-tile.tile-arriving { z-index: 30; animation: tileFlight .78s cubic-bezier(.2,.76,.24,1) both; }
@keyframes tileFlight {
  0% { opacity: .08; transform: translate(calc(var(--tile-x) + var(--fly-x, 0px)), calc(var(--tile-y) + var(--fly-y, 0px))) scale(.7) rotate(var(--fly-rotate, 0deg)); filter: blur(1.2px) drop-shadow(0 18px 15px #000b); }
  58% { opacity: 1; filter: blur(0) drop-shadow(0 14px 10px #000b); }
  82% { transform: translate(var(--tile-x), var(--tile-y)) scale(1.12) rotate(-1.5deg); filter: drop-shadow(0 7px 6px #0009); }
  92% { transform: translate(var(--tile-x), var(--tile-y)) scale(.96) rotate(.7deg); }
  100% { opacity: 1; transform: translate(var(--tile-x), var(--tile-y)) scale(1) rotate(0); filter: none; }
}
@keyframes latestPlay { 0% { filter: brightness(1); box-shadow: 0 6px 10px #0009, inset 0 0 0 2px #fffdf2; } 35% { filter: brightness(1.28); box-shadow: 0 0 0 7px #efc76130, 0 0 34px #efc761cc, 0 8px 16px #000c; } 100% { filter: brightness(1); } }
@keyframes illegalTile { 0% { filter: brightness(1); } 18% { transform: translateX(-5px) rotate(-2deg); filter: brightness(1.2); } 34% { transform: translateX(5px) rotate(2deg); } 50% { transform: translateX(-4px) rotate(-1deg); } 70% { transform: translateX(3px); opacity: 1; } 100% { transform: translateY(-8px) scale(.9); opacity: 0; filter: saturate(.3); } }
@keyframes illegalTileHorizontal { 0% { transform: rotate(90deg); filter: brightness(1); } 18% { transform: rotate(88deg) translateX(-5px); filter: brightness(1.2); } 34% { transform: rotate(92deg) translateX(5px); } 50% { transform: rotate(89deg) translateX(-4px); } 70% { transform: rotate(90deg) translateX(3px); opacity: 1; } 100% { transform: rotate(90deg) translateY(-8px) scale(.9); opacity: 0; filter: saturate(.3); } }
.board-tile .domino { left: -16px; top: -32px; }
.domino { --w: 32px; --h: 64px; position: absolute; width: var(--w); height: var(--h); padding: 0; border: 2px solid #9c8f75; border-radius: 6px; background: linear-gradient(100deg, #e3dac7, #fffdf4 48%, #d8cdb7); box-shadow: 0 6px 10px #0009, inset 0 0 0 2px #fffdf2, inset 2px 0 5px #ffffffaa; cursor: pointer; transform-origin: center; }
.domino:after { content: ""; position: absolute; left: 4px; right: 4px; top: calc(50% - 1px); height: 2px; border-radius: 2px; background: #615b50; box-shadow: 0 1px #fff; }
.domino.horizontal { transform: rotate(90deg); }
.board-tile .domino.double { border-color: #c39c47; box-shadow: 0 6px 12px #000a, 0 0 0 1px #f1cf7b99, inset 0 0 0 2px #fffdf2; }
.domino.selected { outline: 2px solid var(--gold); box-shadow: 0 0 20px #e4b85499; }
.domino .half { position: absolute; left: 0; width: 100%; height: 50%; }.domino .half.a { top: 0; }.domino .half.b { bottom: 0; transform: rotate(180deg); }
.pip { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #101713; box-shadow: inset 0 1px 2px #000, 0 1px #ffffff55; }
.pip.tl { left: 27%; top: 25%; }.pip.tc { left: 50%; top: 25%; }.pip.tr { left: 73%; top: 25%; }.pip.ml { left: 27%; top: 50%; }.pip.mc { left: 50%; top: 50%; }.pip.mr { left: 73%; top: 50%; }.pip.bl { left: 27%; top: 75%; }.pip.bc { left: 50%; top: 75%; }.pip.br { left: 73%; top: 75%; }
.player-hand { position: absolute; z-index: 6; left: 50%; bottom: 4%; display: flex; gap: 7px; transform: translateX(-50%); padding: 8px 12px; border: 1px solid #ffffff12; border-radius: 8px; background: #06100dd9; box-shadow: 0 12px 30px #0009; }
.player-hand.waiting { opacity: .55; pointer-events: none; filter: saturate(.6); }
.player-hand.active-turn { border-color: #55e998; background: #072116e8; box-shadow: 0 0 0 4px #4fe39720, 0 0 32px #43df8b55, 0 12px 30px #0009; }
.player-hand.turn-nudge { animation: turnHandNudge 1.05s ease both; }
.seat.turn-nudge { animation: turnSeatNudge 1.05s ease both; }
@keyframes turnHandNudge { 0%, 100% { transform: translateX(-50%); } 18% { transform: translateX(calc(-50% - 6px)); } 34% { transform: translateX(calc(-50% + 6px)); } 50% { transform: translateX(calc(-50% - 4px)); } 68% { transform: translateX(calc(-50% + 4px)); } }
@keyframes turnSeatNudge { 20%, 60% { filter: brightness(1.35); box-shadow: 0 0 0 8px #4fe39722, 0 0 34px #43df8b88; } }
.player-hand .domino { position: relative; --w: 36px; --h: 72px; transition: .18s ease; }
.player-hand .domino.selected { transform: translateY(-10px); }
@media (hover: hover) and (pointer: fine) { .player-hand .domino:hover { transform: translateY(-10px); } }
.game-controls { position: absolute; z-index: 7; bottom: 6%; right: 5%; display: grid; gap: 6px; }
.control-button { width: 88px; padding: 10px; border: 1px solid #ffffff24; border-radius: 6px; color: #a2afa7; background: #08120ef0; font-size: 10px; font-weight: 700; cursor: pointer; }.control-button.primary { color: #281d08; border: 0; background: linear-gradient(135deg, var(--gold2), #b47b23); font-weight: 900; }
.control-button.board-pass { color: #2b210d; border-color: #f2cf7366; background: linear-gradient(135deg, #f2cf73, #bd8428); box-shadow: 0 8px 20px #0008; }
.control-button.board-pass.armed { color: #ffe8a0; border-color: #f2cf73; background: #33260d; box-shadow: 0 0 0 2px #f2cf7338, 0 0 22px #d69c3c66; }
.control-button.board-pass:disabled { cursor: default; opacity: .68; }
.control-button[hidden] { display: none; }
.chat-panel { align-self: center; display: flex; flex-direction: column; height: 470px; z-index: 4; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 19px 17px; border-bottom: 1px solid var(--line); }.chat-head-actions { display: flex; align-items: center; gap: 7px; }.chat-head button { border: 0; background: transparent; color: #98a69e; font-size: 14px; }.chat-head .spectator-join-seat { padding: 7px 9px; border: 1px solid #60d89477; border-radius: 6px; color: #07150e; background: #60d894; font-size: 8px; font-weight: 900; cursor: pointer; }.chat-head .spectator-join-seat[hidden] { display: none; }
.chat-messages { flex: 1; padding: 17px; overflow: auto; }
.chat-messages > div { display: flex; gap: 10px; margin-bottom: 18px; }.chat-messages p { margin: 0; color: #d4dbd6; font-size: 11px; line-height: 1.55; }.chat-messages p b { display: block; margin-bottom: 3px; color: #9baaa1; font-size: 9px; }
.chat-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: white; font-size: 8px; font-weight: 800; }.chat-avatar.coral { background: #a64f3c; }.chat-avatar.blue { background: #395979; }.chat-avatar.gold { color: #2e210a; background: #d3a843; }
.chat-messages .system-message { display: block; padding: 8px 4px; color: #93a198; text-align: center; font-size: 9px; line-height: 1.45; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chat-messages .spectator-reaction p { display: flex; align-items: center; gap: 8px; }.chat-messages .spectator-reaction em { color: #7f9187; font-size: 8px; font-style: normal; letter-spacing: .6px; }.chat-messages .spectator-reaction strong { font-size: 24px; line-height: 1; }
.spectator-emoji-bar { display: grid; grid-template-columns: auto repeat(6, 1fr); align-items: center; gap: 4px; padding: 11px 10px; border-top: 1px solid var(--line); background: #050b08; }.spectator-emoji-bar[hidden] { display: none; }.spectator-emoji-bar > span { margin-right: 4px; color: #8d9b92; font-size: 7px; font-weight: 900; letter-spacing: 1.2px; }.spectator-emoji-bar button { min-width: 29px; height: 32px; padding: 0; border: 1px solid #ffffff18; border-radius: 7px; background: #101b16; font-size: 17px; cursor: pointer; transition: .16s ease; }.spectator-emoji-bar button:hover { border-color: #e4bb5766; background: #242015; transform: translateY(-2px) scale(1.05); }
.chat-form { display: flex; gap: 7px; padding: 13px; border-top: 1px solid var(--line); }.chat-form[hidden] { display: none; }.chat-form input { min-width: 0; flex: 1; padding: 11px; border: 1px solid #ffffff20; border-radius: 6px; outline: none; color: #f4f1e8; background: #050b08; font-size: 11px; }.chat-form input::placeholder { color: #7f8d84; }.chat-form input:focus { border-color: #c89a3f88; }.chat-form button { width: 38px; border: 0; border-radius: 6px; color: #2b210d; background: var(--gold); font-size: 14px; cursor: pointer; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(1,5,3,.78); backdrop-filter: blur(11px); opacity: 0; visibility: hidden; transition: .25s ease; }
.modal-backdrop.open { opacity: 1; visibility: visible; }
.create-modal { position: relative; width: min(530px, 100%); max-height: calc(100vh - 30px); overflow: auto; padding: 35px; border: 1px solid #dab25a33; border-radius: 13px; background: radial-gradient(circle at 90% 0, #27321f 0, #0c1712 28%, #07100c 80%); box-shadow: 0 40px 100px #000c; transform: translateY(18px) scale(.98); transition: .25s ease; }
.modal-backdrop.open .create-modal { transform: none; }
.modal-close { position: absolute; right: 17px; top: 15px; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 50%; color: #819087; background: transparent; cursor: pointer; }
.create-modal h2 { font-size: 32px; }.create-modal > p { margin: 8px 0 25px; color: #7e8e84; font-family: Georgia, serif; font-size: 12px; }

.account-modal { position: relative; width: min(560px, 100%); max-height: calc(100vh - 30px); overflow: auto; padding: 38px; border: 1px solid #dab25a40; border-radius: 18px; background: radial-gradient(circle at 90% 0, #263522 0, #0c1813 31%, #06100c 82%); box-shadow: 0 40px 110px #000d; color: #eee9dc; transform: translateY(18px) scale(.98); transition: .25s ease; }
.account-backdrop.open .account-modal { transform: none; }
.account-modal h2 { margin: 9px 45px 7px 0; font-family: Georgia, serif; font-size: 31px; line-height: 1.12; font-weight: 500; }
.account-modal > div > p { margin: 0 0 24px; color: #91a197; line-height: 1.55; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 20px; padding: 4px; border: 1px solid #ffffff12; border-radius: 10px; background: #020906aa; }
.auth-tabs button { padding: 11px; border: 0; border-radius: 7px; color: #788a7f; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.auth-tabs button.active { color: #10170f; background: linear-gradient(135deg, #f2d278, #c99832); box-shadow: 0 5px 16px #0008; }
.account-form { display: grid; gap: 13px; }
.account-form [hidden] { display: none !important; }
.account-form label { display: grid; gap: 7px; }
.account-form label > span { color: #96a59c; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; }
.account-form input { width: 100%; padding: 14px; border: 1px solid #ffffff18; border-radius: 8px; outline: 0; color: #f0ece1; background: #020906a8; font: inherit; }
.account-form input:focus { border-color: #d4ac4f; box-shadow: 0 0 0 3px #d4ac4f18; }
.account-submit { width: 100%; margin-top: 3px; justify-content: center; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: #687a6f; font-size: 9px; letter-spacing: 1.3px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: #ffffff12; }
.social-auth-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.social-auth-buttons button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; border: 1px solid #ffffff18; border-radius: 8px; color: #e6e4dc; background: #101c17; font: inherit; font-weight: 700; cursor: pointer; }
.social-auth-buttons button:hover { border-color: #d2aa4b88; background: #16251e; }
.social-auth-buttons b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; font-family: Arial, sans-serif; }
.google-mark { color: #4285f4; background: #fff; }.facebook-mark { color: #fff; background: #1877f2; font-size: 17px; }.apple-mark { color: #fff; font-size: 12px; }
.guest-account-button { width: 100%; margin-top: 16px; padding: 10px; border: 0; color: #9cac9f; background: transparent; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.account-message { min-height: 20px; margin: 11px 0 0 !important; text-align: center; font-size: 12px; }.account-message.error, .history-empty.error { color: #f0a58f !important; }
.account-profile-head { display: flex; align-items: center; gap: 16px; margin: 20px 0 27px; padding: 18px; border: 1px solid #ffffff12; border-radius: 12px; background: #02090675; }
.account-profile-head h2, .account-profile-head p { margin: 0; }.account-profile-head p { margin-top: 5px; color: #839489; }
.account-avatar { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 auto; border: 2px solid #e1bd60; border-radius: 50%; color: #0d160f; background: linear-gradient(145deg, #e5c36b, #b5822c); font-weight: 900; }
.history-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 12px; }.history-heading h3 { margin: 5px 0 0; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }.history-heading button { border: 0; color: #d8b85f; background: transparent; cursor: pointer; }
.account-history { display: grid; gap: 8px; max-height: 290px; overflow: auto; }
.history-empty { padding: 26px 15px; border: 1px dashed #ffffff1a; border-radius: 10px; color: #74857a !important; text-align: center; }
.history-game { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px; border: 1px solid #ffffff12; border-radius: 10px; background: #07110d; }
.history-game strong, .history-game small, .history-game b, .history-game span { display: block; }.history-game small { margin-top: 5px; color: #75867c; }.history-game > div:last-child { text-align: right; }.history-game b { color: #aebbb3; }.history-game b.win { color: #e3bd5e; }.history-game span { margin-top: 4px; color: #718178; font-size: 11px; }
.account-signout { width: 100%; margin-top: 18px; border: 1px solid #ffffff17; color: #b8c2bc; background: #101b16; }
#guestNameInput[readonly] { color: #d8b75a; cursor: default; }
.field-label { display: block; margin: 17px 0 8px; color: #7e8a83; font-size: 7px; letter-spacing: 1.4px; font-weight: 800; }
.text-input, select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 6px; outline: none; color: var(--ink); background: #050c09; font-size: 11px; }.text-input:focus, select:focus { border-color: #d7ad4e66; }
.mode-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.mode-picker input, .segmented input { position: absolute; opacity: 0; pointer-events: none; }.mode-picker label > span { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #070e0a; cursor: pointer; }.mode-picker input:checked + span { border-color: #e1b85088; background: linear-gradient(130deg, #d5aa4218, #0a130e); box-shadow: inset 0 0 0 1px #e1b85018; }.mode-art { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 7px; color: #83aa92; background: #10231a; font-size: 21px; font-style: normal; }.mode-picker input:checked + span .mode-art { color: var(--gold2); background: #3a301b; }.mode-picker b { align-self: end; font-family: Georgia, serif; font-size: 12px; font-weight: 500; }.mode-picker small { color: #6d7a73; font-size: 7px; line-height: 1.4; }
.form-row { display: grid; grid-template-columns: 1fr 130px; gap: 13px; }.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #050b08; }.segmented span { display: block; padding: 9px; border-radius: 4px; color: #6f7c75; text-align: center; font-size: 8px; cursor: pointer; }.segmented input:checked + span { color: #f1cd72; background: #263021; }
.switch-row { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #08100c; cursor: pointer; }.switch-row b, .switch-row small { display: block; }.switch-row b { font-size: 9px; }.switch-row small { margin-top: 4px; color: #6d7c73; font-size: 7px; }.switch-row input { position: absolute; opacity: 0; }.switch-row > i { position: relative; width: 35px; height: 20px; border-radius: 20px; background: #25332b; }.switch-row > i:after { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; border-radius: 50%; background: #829087; transition: .2s ease; }.switch-row input:checked + i { background: #8a6828; }.switch-row input:checked + i:after { left: 18px; background: #f4cf70; box-shadow: 0 0 10px #f4cf7066; }.button-submit { width: 100%; padding: 14px; }
.toast { position: fixed; z-index: 200; left: 50%; top: 92px; bottom: auto; max-width: min(440px, calc(100vw - 32px)); transform: translate(-50%, -15px); padding: 11px 17px; border: 1px solid #d5af5744; border-radius: 7px; color: #e8e3d6; background: #101b16ee; box-shadow: 0 15px 50px #0009; font-size: 9px; text-align: center; opacity: 0; pointer-events: none; transition: .25s ease; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .board-tile.tile-arriving, .board-tile.latest-play .domino, .seat.playing-domino, .seat.playing-domino .avatar, .pass-notice.show, .player-hand.turn-nudge, .seat.turn-nudge { animation-duration: .01ms; animation-iteration-count: 1; }
}

.ad-overlay { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; padding: 18px; background: #020604f2; opacity: 0; visibility: hidden; transition: .25s ease; }
.ad-overlay.open { opacity: 1; visibility: visible; }
.interstitial-ad { width: min(860px, 100%); border: 1px solid #e7c76a33; border-radius: 15px; overflow: hidden; background: #0b1510; box-shadow: 0 50px 130px #000; }
.ad-topline { height: 32px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; color: #728078; background: #07100c; font-size: 6px; letter-spacing: 1.5px; }.ad-topline button { border: 0; color: #78877f; background: transparent; font-size: 7px; cursor: pointer; }
.ad-visual { position: relative; min-height: 430px; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 72% 28%, #ffd580 0 4%, #dc8e3e 5%, #7e5533 16%, transparent 32%), linear-gradient(#305b59 0 44%, #b15d37 45% 48%, #d69f58 49% 61%, #174a3f 62%); }
.ad-visual:after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #091811e6 0, #0c2117a8 43%, transparent 72%), repeating-linear-gradient(0deg, transparent 0 3px, #00000008 4px); }
.ad-sun { position: absolute; right: 16%; top: 15%; width: 74px; height: 74px; border-radius: 50%; background: #ffdd8d; box-shadow: 0 0 80px #ffaf54; }
.ad-palm { position: absolute; color: #071913; font-size: 260px; line-height: 1; transform-origin: bottom; }.palm-one { right: 6%; bottom: -45px; transform: rotate(-19deg); }.palm-two { right: 27%; bottom: -90px; transform: rotate(17deg) scale(.65); opacity: .8; }
.ad-copy { position: absolute; left: 9%; top: 50%; transform: translateY(-50%); max-width: 370px; }.ad-copy > span { color: #f5ce71; font-size: 8px; letter-spacing: 3px; }.ad-copy h2 { margin: 13px 0; color: #fff7de; font-family: Georgia, serif; font-size: clamp(42px, 6vw, 68px); font-weight: 400; line-height: .9; letter-spacing: -2px; }.ad-copy h2 em { color: #f1c86a; font-weight: 400; }.ad-copy p { color: #c5cabf; font-family: Georgia, serif; font-size: 12px; }.ad-copy button { margin-top: 13px; padding: 11px 16px; border: 0; border-radius: 5px; color: #241b09; background: #f0c866; font-size: 8px; font-weight: 800; cursor: pointer; }
.ad-footer { min-height: 62px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }.ad-footer div { display: flex; align-items: center; gap: 8px; color: #98a59d; font-size: 8px; }.ad-footer i { width: 7px; height: 7px; border-radius: 50%; background: #4bd27d; box-shadow: 0 0 10px #4bd27d; }.ad-footer button { min-width: 150px; padding: 10px 14px; border: 1px solid #e4ba5844; border-radius: 5px; color: #7f8c84; background: #111b16; font-size: 8px; }.ad-footer button:not(:disabled) { color: #291f0b; background: #e8be5e; cursor: pointer; }.ad-footer b { color: #e4bd62; }

@media (max-width: 1180px) {
  .sidebar { width: 190px; }.main-stage { margin-left: 190px; }.hero { grid-template-columns: .8fr 1.2fr; }.hero h1 { font-size: 49px; }.game-layout, .app-shell.game-active .game-layout { grid-template-columns: 220px minmax(510px, 1fr); }.chat-panel { display: none; }.table-grid { grid-template-columns: repeat(2, 1fr); }.join-code-panel { grid-template-columns: 1fr 1fr; }.join-code-panel > div { grid-column: 1 / -1; }
  .game-view.spectating .chat-panel { position: fixed; z-index: 80; right: 14px; bottom: 14px; display: flex; width: min(370px, calc(100vw - 28px)); height: 290px; border-color: #e1bd5a44; box-shadow: 0 22px 70px #000d; }
}
@media (max-width: 850px) {
  .sidebar { display: none; }.main-stage, .app-shell.game-active .main-stage { margin-left: 0; }.topbar { height: 68px; justify-content: space-between; }.mobile-brand { display: block; font-size: 12px; }.sound-control { display: none; }.hero { padding-top: 38px; grid-template-columns: 1fr; }.hero-table-preview { min-height: 330px; order: -1; }.hero-copy { text-align: center; }.hero-copy > p { margin-left: auto; margin-right: auto; }.hero-actions, .hero-stats { justify-content: center; }.game-view { padding: 12px; }.game-layout, .app-shell.game-active .game-layout { height: calc(100vh - 115px); min-height: 540px; grid-template-columns: 1fr; }.score-panel { display: none; }.game-topline { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 9px; }.game-meta { display: flex; gap: 0; }.game-meta > span, .game-meta > b, .game-meta > .round-button { display: none; }.game-meta .room-code { min-width: 112px; padding: 7px 10px; }.game-meta .room-code button { font-size: 18px; }.join-code-panel { grid-template-columns: 1fr; }.join-code-panel > div { grid-column: auto; }
}
@media (max-width: 600px) {
  .topbar .button-gold { padding: 10px 12px; }.button-account { padding: 10px 11px; }.icon-button { display: none; }.hero { min-height: auto; }.hero-table-preview { min-height: 240px; }.hero h1 { font-size: 43px; }.hero-actions { display: grid; }.hero-stats { gap: 12px; }.table-grid { grid-template-columns: 1fr; }.section-heading { align-items: flex-start; gap: 17px; flex-direction: column; }.table-filters { width: 100%; }.filter { flex: 1; }.create-modal, .account-modal { padding: 28px 19px; }.account-modal h2 { font-size: 27px; }.social-auth-buttons { grid-template-columns: 1fr; }.mode-picker, .form-row { grid-template-columns: 1fr; }.table-scene { background-size: cover; }.seat-west { left: 2%; }.seat-east { right: 2%; }.seat { min-width: 78px; }.seat b { max-width: 55px; overflow: hidden; text-overflow: ellipsis; }.board { inset: 25% 17% 32%; transform: scale(.82); }.player-hand { max-width: 95%; gap: 3px; padding: 6px; }.player-hand .domino { --w: 31px; --h: 62px; }.game-controls { bottom: 2%; right: 2%; }
  .sponsor-banner { grid-template-columns: 35px 1fr; }.sponsor-banner button { display: none; }.ad-visual { min-height: 420px; }.ad-copy { left: 7%; right: 7%; top: 45%; }.ad-palm { opacity: .45; }.ad-footer { align-items: stretch; flex-direction: column; }.ad-footer button { width: 100%; }
  .seat.seat-west, .seat.seat-east { width: 46px; min-width: 46px; }
  .game-view.spectating .chat-panel { right: 9px; bottom: 9px; width: calc(100vw - 18px); height: 245px; }
  .seat-west .opponent-rack, .seat-east .opponent-rack { transform: translateY(-50%) scale(.78); }
}

@media (max-width: 850px) {
  .content-section { padding: 30px 22px 50px; }
  .join-code-panel { gap: 16px; padding: 24px; border-color: #d9b35555; border-radius: 16px; box-shadow: 0 18px 45px #0005; }
  .join-code-panel .eyebrow { font-size: 10px; }
  .join-code-panel strong { margin-top: 8px; font-size: 25px; line-height: 1.15; }
  .join-code-panel label span { margin-bottom: 8px; font-size: 11px; }
  .join-code-panel input { min-height: 54px; padding: 14px 16px; border-radius: 9px; font-size: 17px; }
  #guestNameInput { font-size: 17px; }
  .join-code-panel > button { width: 100%; min-height: 56px; font-size: 15px; }

  .ad-overlay { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
  .interstitial-ad { width: min(680px, 100%); max-height: calc(100dvh - 24px); border-radius: 20px; }
  .ad-topline { height: 45px; padding: 0 17px; font-size: 9px; }
  .ad-topline button { min-height: 38px; font-size: 11px; }
  .ad-copy > span { font-size: 11px; }
  .ad-copy p { max-width: 420px; font-size: 16px; line-height: 1.55; }
  .ad-copy button { min-height: 48px; padding: 13px 19px; font-size: 12px; }
  .ad-footer { min-height: 82px; padding: 14px 17px; }
  .ad-footer div { font-size: 12px; }
  .ad-footer i { width: 10px; height: 10px; }
  .ad-footer button { min-width: 210px; min-height: 52px; padding: 14px 18px; border-radius: 9px; font-size: 13px; }
}

@media (max-width: 600px) {
  .content-section { padding: 24px 14px 45px; }
  .join-code-panel { margin-bottom: 30px; padding: 22px 17px; }
  .join-code-panel strong { font-size: 24px; }
  .join-code-panel input { min-height: 58px; font-size: 18px; }
  .join-code-panel #joinCodeInput { font-size: 20px; letter-spacing: 3px; }
  .join-code-panel > button { min-height: 60px; font-size: 16px; }
  .section-heading h2 { font-size: 31px; }
  .filter { min-height: 44px; padding: 10px 8px; font-size: 11px; }
  .table-card { padding: 21px 18px; }
  .table-card h3 { font-size: 20px; }
  .host { font-size: 11px; }
  .game-tag, .privacy { font-size: 9px; }
  .seat-dot { width: 39px; height: 39px; font-size: 10px; }
  .seat-count { font-size: 10px; }
  .card-bottom { align-items: stretch; flex-direction: column; gap: 13px; }
  .card-bottom span { font-size: 10px; }
  .card-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .join-button { width: 100%; min-height: 49px; font-size: 13px; }

  .ad-overlay { padding: 0; }
  .interstitial-ad { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  .ad-topline { height: max(52px, calc(40px + env(safe-area-inset-top))); padding: env(safe-area-inset-top) 18px 0; font-size: 10px; }
  .ad-topline button { font-size: 12px; }
  .ad-visual { min-height: 0; }
  .ad-copy { left: 8%; right: 8%; top: 47%; }
  .ad-copy > span { font-size: 12px; letter-spacing: 3.5px; }
  .ad-copy h2 { margin: 17px 0; font-size: clamp(48px, 15vw, 70px); line-height: .92; }
  .ad-copy p { font-size: 17px; line-height: 1.55; }
  .ad-copy button { min-height: 52px; padding: 14px 19px; font-size: 13px; }
  .ad-footer { min-height: 146px; padding: 16px 17px max(18px, env(safe-area-inset-bottom)); gap: 13px; }
  .ad-footer div { justify-content: center; min-height: 26px; font-size: 14px; }
  .ad-footer button { width: 100%; min-height: 62px; font-size: 16px; }

  .create-modal { width: 100%; max-height: calc(100dvh - 16px); padding: 30px 20px; border-radius: 18px; }
  .create-modal h2 { font-size: 34px; }
  .create-modal > p { font-size: 15px; line-height: 1.5; }
  .create-modal .field-label { font-size: 10px; }
  .create-modal .text-input, .create-modal select { min-height: 52px; font-size: 16px; }
  .create-modal .mode-picker label > span { min-height: 72px; padding: 14px; }
  .create-modal .mode-picker b { font-size: 16px; }
  .create-modal .mode-picker small { font-size: 10px; }
  .create-modal .segmented span { min-height: 43px; padding: 13px 9px; font-size: 12px; }
  .create-modal .switch-row { min-height: 65px; }
  .create-modal .switch-row b { font-size: 13px; }
  .create-modal .switch-row small { font-size: 10px; }
  .create-modal .button-submit { min-height: 58px; font-size: 15px; }
}

@media (max-width: 600px) and (orientation: portrait) {
  .app-shell.game-active { height: 100dvh; min-height: 0; overflow: hidden; }
  .app-shell.game-active .main-stage { height: 100dvh; min-height: 0; overflow: hidden; }
  .app-shell.game-active .topbar { display: none; }
  .app-shell.game-active .game-view.active { height: 100dvh; padding: 4px 6px 6px; overflow: hidden; }
  .app-shell.game-active .game-topline { min-height: 68px; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 7px; }
  .app-shell.game-active .game-topline .round-button { width: 34px; height: 34px; }
  .app-shell.game-active .game-topline h2 { max-width: 100%; margin-top: 4px; overflow: hidden; font-size: 18px; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
  .app-shell.game-active .game-topline .eyebrow { font-size: 6px; letter-spacing: 1.5px; }
  .app-shell.game-active .game-meta .room-code { min-width: 104px; padding: 6px 8px; border-width: 1px; border-radius: 8px; }
  .app-shell.game-active .game-meta .room-code small { font-size: 6px; letter-spacing: 1.2px; }
  .app-shell.game-active .game-meta .room-code button { font-size: 17px; letter-spacing: 2.3px; }
  .app-shell.game-active .game-layout { height: calc(100dvh - 78px); min-height: 0; }
  .app-shell.game-active .table-scene { border-radius: 14px; background-position: center; }

  .app-shell.game-active .turn-chip { left: 8px; top: 8px; max-width: calc(100% - 16px); padding: 10px 12px; transform: none; font-size: 10px; letter-spacing: .7px; }
  .app-shell.game-active .turn-chip strong { font-size: 10px; }
  .app-shell.game-active .turn-chip span { font-size: 9px; }
  .app-shell.game-active .seat-north { top: 48px; }
  .app-shell.game-active .seat-south { bottom: 18%; }
  .app-shell.game-active .seat-west { left: 4px; top: 43%; }
  .app-shell.game-active .seat-east { right: 4px; top: 43%; }
  .app-shell.game-active .seat.seat-west, .app-shell.game-active .seat.seat-east { width: 44px; min-width: 44px; height: 104px; padding: 6px 4px; }
  .app-shell.game-active .seat-west b, .app-shell.game-active .seat-east b { max-height: 54px; font-size: 9px; }
  .app-shell.game-active .seat .avatar { width: 31px; height: 31px; }
  .app-shell.game-active .seat-mic { right: -3px; top: -6px; min-width: 25px; padding: 0 5px; }

  .app-shell.game-active .seat-west .opponent-rack,
  .app-shell.game-active .seat-east .opponent-rack {
    left: 50%;
    right: auto;
    top: calc(100% + 4px);
    bottom: auto;
    flex-direction: column;
    transform: translateX(-50%) scale(.62);
    transform-origin: top center;
  }

  .app-shell.game-active .board { inset: 22% 16% 32%; transform: scale(min(var(--board-scale, 1), .78)); }
  .app-shell.game-active .player-hand { bottom: 56px; max-width: calc(100% - 12px); gap: 3px; padding: 6px 7px; }
  .app-shell.game-active .player-hand .domino { --w: 30px; --h: 60px; }
  .app-shell.game-active .game-controls { left: 50%; right: auto; bottom: 7px; width: min(280px, calc(100% - 16px)); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 7px; transform: translateX(-50%); }
  .app-shell.game-active .control-button { width: auto; min-height: 40px; padding: 8px; font-size: 9px; }

  .app-shell.game-active .waiting-panel { width: calc(100% - 28px); padding: 22px 17px; }
  .app-shell.game-active .waiting-actions { grid-template-columns: 1fr; }
  .app-shell.game-active .waiting-actions .button-gold { grid-column: auto; }
  .app-shell.game-active .pass-notice { top: 36%; min-width: min(280px, calc(100% - 30px)); }
  .app-shell.game-active .penalty-notice { top: 26%; }
}
