@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root{--bg:#050b0a;--panel:#0b1513;--felt:#0d4436;--felt2:#082b23;--gold:#d9ad58;--gold2:#f6dc94;--ivory:#f1e8d4;--ink:#151916;--muted:#8e9c97;--cyan:#54d6c2;--danger:#e8695e;--burgundy:#501d28;--line:rgba(227,196,125,.2);--shadow:0 24px 60px rgba(0,0,0,.42)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:#f7f4ec;font-family:'DM Sans',sans-serif}body{min-height:100vh;overflow-x:hidden}button,select{font:inherit}.ambient{position:fixed;inset:0;overflow:hidden;pointer-events:none;background:radial-gradient(circle at 50% -15%,rgba(28,103,80,.24),transparent 43%),linear-gradient(135deg,#050908,#07110f 45%,#040706)}.ambient i{position:absolute;width:35vw;height:35vw;border:1px solid rgba(217,173,88,.05);transform:rotate(45deg);left:-18vw;top:22vh}.ambient i:nth-child(2){left:auto;right:-22vw;top:8vh}.ambient i:nth-child(3){width:15vw;height:15vw;left:42vw;top:65vh}.app-shell{position:relative;z-index:1;min-height:100vh;padding:18px clamp(14px,3vw,48px) 28px}.topbar{height:70px;display:grid;grid-template-columns:1fr minmax(360px,620px) 1fr;align-items:center;gap:24px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.brand-gem{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--gold);transform:rotate(45deg);color:var(--gold2);font-family:Cinzel;font-weight:700;background:#102019;box-shadow:inset 0 0 18px rgba(217,173,88,.12)}.brand-gem::first-letter{transform:rotate(-45deg)}.brand>span:last-child{display:flex;flex-direction:column}.brand b{font:700 19px/1 Cinzel;letter-spacing:.22em}.brand small,.balance-pill small{font-size:8px;letter-spacing:.2em;color:var(--muted);margin-top:5px}.jackpot-ribbon{height:54px;display:grid;grid-template-columns:repeat(3,1fr);background:linear-gradient(180deg,rgba(20,39,33,.94),rgba(8,19,16,.92));border:1px solid var(--line);clip-path:polygon(3% 0,97% 0,100% 50%,97% 100%,3% 100%,0 50%);padding:6px 36px}.jack{text-align:center;border-right:1px solid var(--line);position:relative}.jack:last-child{border:0}.jack small{display:block;font:700 8px Cinzel;letter-spacing:.24em;color:var(--gold)}.jack b{font:700 clamp(13px,1.35vw,19px) Cinzel;color:var(--gold2);text-shadow:0 0 18px rgba(217,173,88,.25)}.jack.grand b{color:#fff1bf}.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}.balance-pill{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:rgba(9,22,18,.8);padding:8px 13px;border-radius:7px}.balance-pill span:last-child{display:flex;flex-direction:column}.balance-pill b{font:700 15px Cinzel;color:var(--gold2)}.coin{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#ffe59b,#9f6e22);border:1px solid #fff0b8;color:#4b3211;font:bold 11px Cinzel;box-shadow:0 0 16px rgba(217,173,88,.2)}.icon-button{width:38px;height:38px;border:1px solid var(--line);border-radius:6px;background:#0d1a16;color:#c6d0cc;cursor:pointer}.icon-button:hover{border-color:var(--gold);color:var(--gold2)}

.lobby-view{max-width:1400px;margin:0 auto;padding:clamp(42px,7vh,80px) 0 0}.lobby-heading{text-align:center}.eyebrow{display:block;color:var(--gold);font:bold 10px Cinzel;letter-spacing:.3em}.lobby-heading h1{font:700 clamp(34px,4.2vw,62px)/1 Cinzel;margin:14px 0 12px;background:linear-gradient(180deg,#fff9e9,#c8b98e);-webkit-background-clip:text;color:transparent}.lobby-heading p{color:#9aa9a3;margin:0}.level-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:40px 0 24px}.level-card{position:relative;min-height:280px;padding:24px 20px;border:1px solid rgba(217,173,88,.14);border-radius:10px;background:linear-gradient(160deg,rgba(20,38,32,.95),rgba(7,16,14,.98));color:#f3eee1;text-align:left;cursor:pointer;overflow:hidden;transition:.25s ease}.level-card::before{content:"";position:absolute;width:130px;height:130px;border:1px solid currentColor;opacity:.05;transform:rotate(45deg);right:-64px;top:-50px}.level-card:hover,.level-card.selected{transform:translateY(-7px);border-color:var(--gold);box-shadow:0 24px 45px rgba(0,0,0,.3),inset 0 0 28px rgba(217,173,88,.04)}.level-card.selected::after{content:"SELECTED";position:absolute;top:13px;right:-31px;width:110px;padding:4px 0;transform:rotate(45deg);background:var(--gold);color:#1c1508;font-size:7px;font-weight:800;text-align:center;letter-spacing:.13em}.level-icon{width:47px;height:47px;display:grid;place-items:center;border:1px solid currentColor;border-radius:50%;color:var(--gold);font:700 19px Cinzel;margin-bottom:20px}.level-card h2{font:700 18px Cinzel;letter-spacing:.12em;margin:0 0 19px}.level-card dl{margin:0;display:grid;gap:10px}.level-card dl div{display:flex;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.06);padding-bottom:8px}.level-card dt{font-size:10px;color:#7f918a}.level-card dd{margin:0;font:600 11px Cinzel;color:#d7dcd7}.level-card:nth-child(1){--card-accent:#bc8460}.level-card:nth-child(2){--card-accent:#bcc8c8}.level-card:nth-child(3){--card-accent:#e0b85f}.level-card:nth-child(4){--card-accent:#72c9bd}.level-card:nth-child(5){--card-accent:#e1d49c}.level-card .level-icon,.level-card h2{color:var(--card-accent)}.bet-dock{display:grid;grid-template-columns:1.2fr 1px .75fr .75fr 1fr 1.55fr;align-items:center;gap:24px;max-width:1120px;margin:0 auto;padding:16px 18px 16px 26px;border:1px solid var(--line);border-radius:10px;background:rgba(10,23,19,.9);box-shadow:var(--shadow)}.bet-dock>div,.bet-dock label{display:flex;flex-direction:column}.bet-dock small{font-size:8px;letter-spacing:.17em;color:var(--muted)}.bet-dock strong{font:700 14px Cinzel;color:var(--gold2);margin-top:5px}.dock-rule{height:35px;background:var(--line)}select{margin-top:4px;background:#07120f;border:1px solid var(--line);color:#e8e3d7;padding:7px;border-radius:5px;font-size:11px}.play-button{border:1px solid #f1d68b;border-radius:6px;background:linear-gradient(180deg,#e8c46d,#a87326);color:#211707;min-height:54px;font-weight:800;letter-spacing:.12em;cursor:pointer;box-shadow:0 8px 24px rgba(194,139,49,.2),inset 0 1px rgba(255,255,255,.45);transition:.2s}.play-button:hover{filter:brightness(1.08);transform:translateY(-2px)}.play-button span,.play-button small{display:block}.play-button small{color:#5d431c;font-size:7px;margin-top:3px}.fair-note{text-align:center;color:#65756f;font-size:10px;margin-top:20px;letter-spacing:.08em}.fair-note span{color:var(--gold)}

.game-view{max-width:1500px;margin:20px auto 0}.table-shell{padding:8px;border:1px solid rgba(217,173,88,.34);border-radius:48% / 7%;background:linear-gradient(145deg,#432f1e,#120e0a 35%,#694a2c 55%,#18100b);box-shadow:0 38px 90px rgba(0,0,0,.55),inset 0 0 0 2px #0d0906}.table-rail{position:relative;min-height:calc(100vh - 145px);border:1px solid rgba(243,211,137,.42);border-radius:48% / 7%;padding:18px clamp(18px,4vw,65px) 22px;background:radial-gradient(ellipse at 50% 44%,#175a47,#0a3228 64%,#061b16);overflow:hidden}.table-rail::before{content:"";position:absolute;inset:0;opacity:.18;pointer-events:none;background-image:repeating-linear-gradient(35deg,transparent 0 4px,rgba(255,255,255,.015) 4px 5px)}.player-zone{position:relative;z-index:3;display:flex;align-items:center;gap:12px;max-width:980px;margin:0 auto}.opponent-zone{justify-content:center;height:68px}.avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;position:relative;border:2px solid var(--gold);background:radial-gradient(circle at 40% 30%,#4f7c6f,#13221e);box-shadow:0 0 0 4px rgba(217,173,88,.08)}.avatar span{font:bold 10px Cinzel}.avatar i{position:absolute;right:-1px;bottom:1px;width:10px;height:10px;border:2px solid #173429;border-radius:50%;background:#4fe08b}.player-zone>div:nth-child(2){display:flex;flex-direction:column;min-width:110px}.player-zone small{font-size:7px;letter-spacing:.18em;color:var(--gold)}.player-zone strong{font:700 13px Cinzel;margin-top:3px}.player-zone>div:nth-child(2)>span{font-size:8px;color:#789088;margin-top:2px}.zone-score{display:flex;flex-direction:column;text-align:center;padding:5px 12px;border-left:1px solid var(--line)}.zone-score b{font:700 22px Cinzel;color:var(--gold2)}.opponent-backs{display:flex!important;flex-direction:row!important;min-width:0!important;margin-left:8px}.tile-back{width:25px;height:44px;border:1px solid #b99852;border-radius:4px;background:linear-gradient(135deg,#1b372f,#091713);box-shadow:-4px 2px 8px rgba(0,0,0,.35);margin-left:-8px;position:relative}.tile-back::after{content:"D";position:absolute;inset:6px;border:1px solid rgba(217,173,88,.45);display:grid;place-items:center;font:8px Cinzel;color:var(--gold);transform:none}.match-strip{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;gap:12px;margin:7px auto 0;color:#a8b5b0;font-size:8px;letter-spacing:.12em}.match-strip b{color:#f0e8d3}.progress-wrap{position:relative;width:min(28vw,360px);height:5px;background:#071612;border-radius:5px;overflow:hidden}.progress-wrap i,.progress-wrap em{position:absolute;top:0;height:100%;width:0;transition:width .5s}.progress-wrap i{left:50%;background:linear-gradient(90deg,var(--gold),#f5df96);transform:translateX(-100%)}.progress-wrap em{left:50%;background:#6d9b8f}.felt{position:relative;z-index:2;height:clamp(280px,44vh,480px);display:flex;align-items:center;justify-content:center;margin-top:3px}.felt-mark{position:absolute;inset:0;display:grid;place-content:center;text-align:center;opacity:.06;pointer-events:none}.felt-mark span{font:700 110px Cinzel;border:2px solid white;line-height:1;width:140px;height:140px;display:grid;place-items:center;transform:rotate(45deg)}.felt-mark small{font:700 12px Cinzel;letter-spacing:.28em;margin-top:-4px}.domino-chain{display:flex;align-items:center;gap:5px;width:min(72vw,1050px);min-height:112px;padding:15px 24px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:rgba(217,173,88,.35) transparent}.domino-chain::before,.domino-chain::after{content:"";flex:1}.domino-tile{flex:0 0 auto;position:relative;width:46px;height:84px;padding:4px;border:1px solid #baa779;border-radius:7px;background:linear-gradient(145deg,#fff9e9,#d6ccb4);box-shadow:0 8px 12px rgba(0,0,0,.35),inset 0 1px #fff;color:var(--ink);transition:.2s}.domino-tile.board-tile{width:39px;height:72px}.domino-tile.horizontal{width:72px;height:39px;display:flex}.domino-tile.horizontal .tile-half{width:50%;height:100%}.domino-tile.horizontal .tile-half:first-child{border:0;border-right:1px solid #908872}.tile-half{position:relative;width:100%;height:50%}.tile-half:first-child{border-bottom:1px solid #908872}.pip{position:absolute;width:6px;height:6px;border-radius:50%;background:#17201d;box-shadow:inset 0 1px 1px #000}.pip.tl{top:19%;left:19%}.pip.tc{top:19%;left:calc(50% - 3px)}.pip.tr{top:19%;right:19%}.pip.ml{top:calc(50% - 3px);left:19%}.pip.mc{top:calc(50% - 3px);left:calc(50% - 3px)}.pip.mr{top:calc(50% - 3px);right:19%}.pip.bl{bottom:19%;left:19%}.pip.bc{bottom:19%;left:calc(50% - 3px)}.pip.br{bottom:19%;right:19%}.domino-tile.is-double{border-color:#d3a942;box-shadow:0 0 0 2px rgba(217,173,88,.16),0 9px 15px rgba(0,0,0,.4)}button.domino-tile{cursor:pointer}button.domino-tile.playable{box-shadow:0 0 0 2px rgba(84,214,194,.3),0 0 24px rgba(84,214,194,.18),0 9px 16px rgba(0,0,0,.4)}button.domino-tile.playable:hover,button.domino-tile.selected{transform:translateY(-12px);border-color:var(--cyan)}button.domino-tile.disabled{filter:saturate(.55) brightness(.72);cursor:not-allowed}.open-end{position:absolute;z-index:4;top:50%;transform:translateY(-50%);width:72px;height:92px;border:1px dashed rgba(217,173,88,.2);border-radius:8px;background:rgba(3,19,15,.35);color:#78928a;opacity:.55;transition:.2s}.open-end.left-end{left:4px}.open-end.right-end{right:4px}.open-end small,.open-end span{display:block;font-size:6px;letter-spacing:.13em}.open-end b{display:block;font:700 30px Cinzel;color:#b0beb8}.open-end span{margin-top:6px;opacity:0}.open-end.available{opacity:1;border-color:var(--cyan);box-shadow:0 0 25px rgba(84,214,194,.15);cursor:pointer;color:var(--cyan);animation:endPulse 1.2s infinite}.open-end.available b{color:#eafff9}.open-end.available span{opacity:1}.reserve{position:absolute;right:8%;bottom:9px;display:grid;grid-template-columns:30px 1fr;grid-template-rows:1fr 1fr;column-gap:8px;align-items:center}.reserve .mini-stack{grid-row:1/3;width:28px;height:42px;border:1px solid var(--gold);border-radius:4px;background:#10271f;box-shadow:-4px 3px #07130f,-8px 6px #1a3029}.reserve small{font-size:6px;color:#789088;letter-spacing:.12em}.reserve b{font:700 13px Cinzel;color:var(--gold2)}.turn-console{position:relative;z-index:5;display:flex;align-items:center;justify-content:center;gap:12px;margin:-9px auto 10px;width:max-content;max-width:90%;padding:6px 10px;border:1px solid var(--line);border-radius:30px;background:rgba(5,18,14,.9);box-shadow:0 10px 25px rgba(0,0,0,.25)}.timer{position:relative;width:46px;height:46px}.timer svg{transform:rotate(-90deg);width:100%;height:100%}.timer circle{fill:none;stroke:rgba(255,255,255,.08);stroke-width:3}.timer circle:last-child{stroke:var(--gold);stroke-linecap:round;stroke-dasharray:119.4;stroke-dashoffset:0;transition:stroke-dashoffset .3s,stroke .2s}.timer b{position:absolute;inset:0;display:grid;place-items:center;font:700 15px Cinzel}.turn-console>div:nth-child(2){display:flex;flex-direction:column;min-width:150px}.turn-console small{font-size:7px;letter-spacing:.17em;color:var(--gold)}.turn-console strong{font:700 13px Cinzel}.turn-console span{font-size:8px;color:#789088}.pass-button{border:1px solid rgba(217,173,88,.25);border-radius:20px;background:#10241d;color:#b8c4c0;padding:9px 14px;font-size:8px;letter-spacing:.12em;cursor:pointer}.timer.warning circle:last-child{stroke:var(--danger)}.timer.warning b{color:#ff9288;animation:timerPulse .5s infinite}.you-zone{height:100px;justify-content:center}.you-avatar{width:56px;height:56px;background:radial-gradient(circle at 40% 25%,#806a3e,#241d11)}.you-copy{min-width:55px!important}.player-hand{display:flex!important;flex-direction:row!important;justify-content:center;gap:8px;min-width:0!important;margin-left:8px;padding:14px 0 3px;overflow-x:auto}.game-footer{display:flex;justify-content:space-between;padding:10px 6%;color:#75847e;font-size:8px;letter-spacing:.13em}.game-footer button{border:0;background:none;color:#8b9b95;font-size:8px;cursor:pointer}

.modal{width:min(560px,calc(100vw - 28px));border:1px solid rgba(217,173,88,.42);border-radius:12px;background:linear-gradient(145deg,#12231e,#07100e);color:#eee9dc;padding:32px;box-shadow:0 40px 100px #000;text-align:center}.modal::backdrop{background:rgba(2,7,6,.84);backdrop-filter:blur(5px)}.modal h2{font:700 27px Cinzel;margin:9px 0 14px;color:#f8edca}.modal-close{position:absolute;top:12px;right:13px;border:0;background:none;color:#87938f;font-size:22px;cursor:pointer}.tutorial-steps{display:grid;gap:8px;text-align:left;margin:22px 0}.tutorial-steps article{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid rgba(255,255,255,.06);border-radius:6px;background:rgba(255,255,255,.02)}.tutorial-steps article>b{font:700 13px Cinzel;color:var(--gold);width:30px}.tutorial-steps span{display:flex;flex-direction:column}.tutorial-steps strong{font-size:11px}.tutorial-steps small{font-size:9px;color:#82918b;margin-top:2px}.modal-action{width:100%;margin-top:8px}.toggle-row{display:flex;align-items:center;justify-content:space-between;text-align:left;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.07)}.toggle-row span{display:flex;flex-direction:column}.toggle-row b{font-size:12px}.toggle-row small,.settings-modal p{font-size:9px;color:#82918b}.result-crown{display:block;font:40px Cinzel;color:var(--gold2);text-shadow:0 0 30px rgba(217,173,88,.5)}.result-modal p{font-size:10px;color:#8d9c96}.result-stats,.match-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:22px 0}.result-stats div,.match-summary div{padding:13px 8px;border:1px solid rgba(255,255,255,.06);border-radius:6px;background:rgba(255,255,255,.025)}.result-stats small,.match-summary small{display:block;font-size:7px;letter-spacing:.14em;color:#82918b}.result-stats b,.match-summary b{display:block;font:700 16px Cinzel;color:#ede6d2;margin-top:5px}.result-stats div:nth-child(2) b{color:var(--gold2)}.match-summary{grid-template-columns:repeat(2,1fr)}.match-summary .jackpot-win b{color:var(--gold2)}.match-summary .total-win{grid-column:1/3;border-color:rgba(217,173,88,.35)}.match-summary .total-win b{font-size:25px;color:var(--gold2)}.match-modal{overflow:hidden}.celebration{position:absolute;inset:0;pointer-events:none}.celebration i{position:absolute;width:7px;height:13px;background:var(--gold);top:-20px;animation:confetti 2.6s linear infinite}.toast-stack{position:fixed;right:20px;bottom:20px;z-index:50;display:grid;gap:8px}.toast{padding:11px 15px;border:1px solid var(--line);border-radius:7px;background:#10221d;color:#e7e3d8;font-size:10px;box-shadow:var(--shadow);animation:toastIn .25s}.toast.error{border-color:rgba(232,105,94,.5);color:#ffb5ae}.shake{animation:shake .3s}

@keyframes endPulse{50%{box-shadow:0 0 35px rgba(84,214,194,.3)}}@keyframes timerPulse{50%{transform:scale(1.18)}}@keyframes toastIn{from{opacity:0;transform:translateY(8px)}}@keyframes shake{25%{transform:translateX(-5px)}50%{transform:translateX(5px)}75%{transform:translateX(-3px)}}@keyframes confetti{to{transform:translateY(650px) rotate(520deg);opacity:.1}}

@media(max-width:1050px){.topbar{grid-template-columns:1fr 1.3fr 1fr}.brand small,.balance-pill small{display:none}.level-grid{grid-template-columns:repeat(3,1fr)}.level-card{min-height:245px}.bet-dock{grid-template-columns:1fr 1px .7fr .7fr 1fr}.bet-dock .play-button{grid-column:1/-1}.table-rail{padding-inline:20px}.domino-chain{width:78vw}.player-hand{gap:5px}.domino-tile{width:41px;height:76px}}
@media(max-width:720px){.app-shell{padding:10px 8px 18px}.topbar{height:auto;grid-template-columns:1fr auto;gap:9px;padding-bottom:9px}.brand b{font-size:15px}.brand-gem{width:34px;height:34px}.jackpot-ribbon{grid-column:1/3;grid-row:2;padding-inline:16px;width:100%;height:47px}.balance-pill{padding:6px 8px}.top-actions .icon-button{display:none}.lobby-view{padding-top:28px}.lobby-heading h1{font-size:34px}.level-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;margin-top:26px;padding:8px 12vw}.level-card{flex:0 0 76vw;scroll-snap-align:center;min-height:250px}.bet-dock{position:sticky;bottom:8px;z-index:8;grid-template-columns:1fr 1fr 1.3fr;gap:10px;padding:12px}.bet-dock .dock-rule,.bet-dock>div:nth-of-type(3){display:none}.bet-dock .play-button{grid-column:auto;grid-row:1/3}.bet-dock label{grid-column:1/2}.game-view{margin-top:9px}.table-shell{border-radius:28px;padding:4px}.table-rail{min-height:calc(100vh - 145px);border-radius:24px;padding:10px 6px}.opponent-zone{height:58px}.avatar{width:40px;height:40px}.opponent-backs{max-width:80px;overflow:hidden}.match-strip{margin-top:3px}.progress-wrap{width:32vw}.felt{height:clamp(265px,39vh,360px)}.domino-chain{width:calc(100vw - 40px);padding:25px 56px 16px;gap:3px}.domino-tile.board-tile{width:33px;height:62px}.open-end{width:51px;height:78px}.open-end.left-end{left:1px}.open-end.right-end{right:1px}.open-end span{font-size:5px}.reserve{right:44%;bottom:0}.turn-console{margin:0 auto 3px}.turn-console>div:nth-child(2){min-width:112px}.pass-button{padding:8px}.you-zone{height:105px;display:grid;grid-template-columns:auto auto auto;gap:8px}.you-zone .player-hand{grid-column:1/4;width:100%;margin:0;justify-content:flex-start;padding:8px 7px 2px}.you-zone .domino-tile{width:39px;height:72px;flex:0 0 39px}.game-footer{padding:7px}.modal{padding:27px 18px}.result-stats{gap:5px}}
@media(max-width:420px){.balance-pill .coin{display:none}.brand{gap:8px}.level-card{flex-basis:82vw}.felt{height:250px}.domino-chain{padding-inline:48px}.turn-console{transform:scale(.92)}.you-zone .domino-tile{width:36px;height:67px;flex-basis:36px}.pip{width:5px;height:5px}.match-summary{margin:14px 0}.game-footer{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
body.reduced-motion *,body.reduced-motion *::before,body.reduced-motion *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
.tile-half{display:block}

/* Routed domino board: singles follow the path; doubles sit perpendicular to it. */
.domino-chain{position:absolute;inset:4px 84px 12px;display:block;width:auto;min-height:0;padding:0;overflow:visible;isolation:isolate}
.domino-chain::before,.domino-chain::after{content:none}
.chain-guide{position:absolute;inset:0;z-index:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.chain-guide polyline{fill:none;stroke:rgba(3,13,10,.58);stroke-width:9;stroke-linecap:round;stroke-linejoin:round}
.domino-tile.axis-vertical{display:block;width:46px;height:84px}
.domino-tile.axis-horizontal{display:flex;width:84px;height:46px}
.domino-tile.axis-vertical .tile-half{width:100%;height:50%}
.domino-tile.axis-vertical .tile-half:first-child{border-right:0;border-bottom:1px solid #918875}
.domino-tile.axis-horizontal .tile-half{width:50%;height:100%}
.domino-tile.axis-horizontal .tile-half:first-child{border-right:1px solid #918875;border-bottom:0}
.domino-tile.board-tile{position:absolute;z-index:2;margin:0;transform:translate(-50%,-50%);animation:boardTileIn .22s both;animation-delay:calc(var(--deal-index,0) * 8ms)}
.domino-tile.board-tile.axis-horizontal{width:64px;height:34px;padding:3px;border-radius:6px}
.domino-tile.board-tile.axis-vertical{width:34px;height:64px;padding:3px;border-radius:6px}
.domino-tile.board-tile .pip{width:5px;height:5px}
.domino-tile.board-tile .pip.tc,.domino-tile.board-tile .pip.mc,.domino-tile.board-tile .pip.bc{left:calc(50% - 2.5px)}
.domino-tile.board-tile .pip.ml,.domino-tile.board-tile .pip.mc,.domino-tile.board-tile .pip.mr{top:calc(50% - 2.5px)}
.domino-tile.is-double{background:linear-gradient(145deg,#fff7df,#d8c99f);border-color:#d3a942}
.player-hand .domino-tile{flex:0 0 46px}
@keyframes boardTileIn{from{opacity:0;transform:translate(-50%,-50%) scale(.86)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}

@media(max-width:720px){
  .felt{height:clamp(310px,44vh,390px)}
  .domino-chain{inset:2px 8px 12px}
  .domino-tile.board-tile.axis-horizontal{width:46px;height:25px;padding:2px;border-radius:4px}
  .domino-tile.board-tile.axis-vertical{width:25px;height:46px;padding:2px;border-radius:4px}
  .domino-tile.board-tile .pip{width:4px;height:4px}
  .domino-tile.board-tile .pip.tc,.domino-tile.board-tile .pip.mc,.domino-tile.board-tile .pip.bc{left:calc(50% - 2px)}
  .domino-tile.board-tile .pip.ml,.domino-tile.board-tile .pip.mc,.domino-tile.board-tile .pip.mr{top:calc(50% - 2px)}
  .chain-guide polyline{stroke-width:7}
}
