:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f1f1e9;background:#0d1416;font-synthesis:none;--bg:#0d1416;--panel:#152022;--panel2:#1b292b;--line:#304044;--cream:#f1eee2;--gold:#e2be7b;--muted:#94a5a7;--coral:#e17768;--teal:#62b9b1;--sun:#e4ba5b;--purple:#ad90db}*{box-sizing:border-box}html{background:#0d1416}body{margin:0;min-width:320px;min-height:100dvh;overflow-x:hidden}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit;text-decoration:none}.hidden{display:none!important}.grain{position:fixed;inset:0;pointer-events:none;z-index:80;opacity:.13;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.87' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.33'/%3E%3C/svg%3E")}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(22px,5vw,92px);border-bottom:1px solid #354146;position:relative;z-index:2;background:#10191b}.brand{display:inline-flex;align-items:center;gap:13px;font-size:15px;font-weight:850;letter-spacing:.13em}.brand-alt{color:var(--gold);margin-left:5px}.brand-icon{width:35px;height:35px;border:1px solid var(--gold);display:grid;place-items:center;color:var(--gold);font-size:23px;transform:rotate(-8deg);position:relative}.brand-dot{width:6px;height:6px;border-radius:50%;background:var(--gold);position:absolute;bottom:-4px;right:-4px;box-shadow:0 0 0 4px var(--bg)}.top-right,.toolbar-controls{display:flex;align-items:center;gap:22px}.top-tag{font-size:9px;letter-spacing:.17em;font-weight:800;color:#aec1bb}.online-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#6cc9a3;box-shadow:0 0 12px #6cc9a3;margin-right:7px}.iconbtn,.linkbtn{background:transparent;color:var(--cream);border:0}.iconbtn{font-size:22px;min-height:40px;min-width:40px}.linkbtn{font-size:11px;letter-spacing:.12em;font-weight:750}.linkbtn span{color:var(--gold);margin-left:5px}.screen{max-width:1590px;margin:auto}.landing{display:grid;grid-template-columns:minmax(0,1.07fr) minmax(420px,.93fr);min-height:calc(100dvh - 82px)}.hero{border-right:1px solid #2e3f41;padding:clamp(45px,8vw,125px) clamp(25px,5.5vw,96px);position:relative;overflow:hidden;display:flex;align-items:flex-start;flex-direction:column;justify-content:center;background:radial-gradient(ellipse at 0% 100%,rgba(43,85,75,.17),transparent 59%)}.hero:before{content:'✳';font-size:410px;position:absolute;top:4%;right:-140px;color:#182526;opacity:.72;pointer-events:none}.eyebrow,.label-kicker,.small-mark,.subpanel-title,.board-heading,.turn-card-label,.move-subtitle{font-size:10px;font-weight:800;letter-spacing:.16em;color:var(--gold)}.eyebrow{display:flex;align-items:center;gap:13px}.eyebrow.compact{font-size:9px}.dash{width:22px;height:1px;background:var(--gold)}.hero h1{font-family:Georgia,'Times New Roman',serif;letter-spacing:-.055em;line-height:1.055;font-weight:400;font-size:clamp(53px,6.3vw,100px);margin:31px 0}.hero h1 em{color:var(--gold);font-style:italic;white-space:nowrap}.hero-sub{color:#bac6c3;font-size:clamp(14px,1.3vw,18px);line-height:1.8;max-width:480px;margin:0}.hero-features{display:flex;flex-wrap:wrap;gap:22px;font-size:9px;letter-spacing:.13em;font-weight:750;color:#c6d5cf;margin-top:35px}.hero-foot{position:absolute;bottom:35px;left:clamp(25px,5.5vw,96px);font-size:9px;letter-spacing:.15em;color:#768e89}.entry-area{display:grid;place-items:center;padding:44px clamp(20px,5vw,74px);position:relative;overflow:hidden;background:radial-gradient(circle at 50% 45%,#233637 0,#131e20 65%,#0f1719 100%)}.entry-decoration{position:absolute;inset:0;pointer-events:none;display:grid;place-items:center;color:#5e7672;font:200 400px Georgia;opacity:.36}.orb{position:absolute;border-radius:50%;box-shadow:inset -14px -16px 24px #0007,0 8px 30px #0006}.orb-a{width:58px;height:58px;top:7%;right:15%;background:#9f7369}.orb-b{width:30px;height:30px;bottom:14%;left:12%;background:#e2ba70}.orb-c{width:18px;height:18px;bottom:24%;right:6%;background:#76b4ad}.entry-card{max-width:490px;width:100%;padding:clamp(24px,3.5vw,48px);border:1px solid #4b5e5d;background:linear-gradient(145deg,rgba(26,41,42,.97),rgba(18,29,31,.97));box-shadow:0 26px 90px #0005,0 0 0 6px #ffffff05;position:relative;z-index:1}.entry-header{display:flex;justify-content:space-between}.small-mark{color:#627773}.entry-card h2{font:400 clamp(32px,3vw,44px) Georgia;margin:22px 0 8px;letter-spacing:-.03em}.entry-card p{color:#abbbba;line-height:1.65;font-size:13px;margin:0 0 26px}.tab-switch{display:flex;border-bottom:1px solid #405356;margin:0 0 26px}.tab-switch button{border:0;background:none;color:#899d9c;font-size:11px;font-weight:800;letter-spacing:.1em;flex:1;padding:16px 0;position:relative}.tab-switch button.active{color:var(--cream)}.tab-switch button.active:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--gold)}.entry-form{display:flex;flex-direction:column;gap:11px}.entry-form>label{font-size:10px;font-weight:800;letter-spacing:.13em;color:#b7c5c1;margin:6px 0 2px}.entry-form>input,.chat-form input{background:#101b1d;border:1px solid #486061;border-radius:0;color:#f6f1e6;padding:15px 17px;outline:0;width:100%;font-size:14px}.entry-form>input:focus,.chat-form input:focus{border-color:var(--gold)}input::placeholder{color:#718883}.player-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.player-choices label{cursor:pointer;position:relative}.player-choices input{position:absolute;opacity:0}.player-choices span{border:1px solid #45585a;display:flex;align-items:center;gap:12px;padding:13px 16px;background:#132124}.player-choices input:checked+span{border-color:var(--gold);background:#28302d}.player-choices strong{font-size:24px;font-family:Georgia;font-weight:400;color:var(--gold)}.player-choices small{font-size:10px;color:#aebbb6}.primary-btn{width:100%;border:0;background:var(--gold);color:#182122;display:flex;justify-content:space-between;align-items:center;padding:17px 19px;min-height:55px;font-size:11px;letter-spacing:.14em;font-weight:900;margin-top:12px;transition:transform .15s,background .15s}.primary-btn:hover:not(:disabled){background:#f5d596;transform:translateY(-1px)}.primary-btn .arrow{font-size:20px}.entry-message{font-size:12px;color:#f0a090;line-height:1.5;min-height:0;margin-top:9px}.entry-bottom{margin-top:13px;padding-top:19px;border-top:1px solid #354747;font-size:9px;color:#829a95;letter-spacing:.06em;text-align:center}.entry-bottom span{color:var(--gold)}.game-screen{padding:25px clamp(16px,4vw,60px) 50px}.game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.room-title-row{display:flex;gap:14px;align-items:center}.room-information h2{font:400 34px Georgia;letter-spacing:-.03em;margin:8px 0}.room-pill{font-size:9px;color:var(--gold);border:1px solid #6f5c3e;border-radius:20px;padding:6px 9px;letter-spacing:.12em}.connection{font-size:10px;font-weight:800;color:#91b6a9;letter-spacing:.08em}.outline-btn{border:1px solid #506568;color:#e8e4d9;background:transparent;padding:11px 15px;min-height:42px;font-size:10px;letter-spacing:.09em;font-weight:850}.outline-btn:hover{border-color:var(--gold);color:var(--gold)}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(315px,355px);gap:28px;align-items:start}.board-column{min-width:0}.board-heading{display:flex;justify-content:space-between;color:#a4b8b3;letter-spacing:.15em;margin-bottom:13px}.board-heading b{color:var(--gold)}.board-shell{background:linear-gradient(135deg,#4d2715,#6b3619 35%,#542b16 65%,#442110);border:1px solid #8e6941;box-shadow:inset 0 0 80px #2b140980,0 16px 50px #0005;aspect-ratio:1;max-width:850px;margin:0 auto;position:relative;clip-path:polygon(18% 2%,82% 2%,98% 18%,98% 82%,82% 98%,18% 98%,2% 82%,2% 18%)}.board-shell:before{content:"";position:absolute;inset:10px;border:2px solid #c8a57580;pointer-events:none;clip-path:polygon(18% 2%,82% 2%,98% 18%,98% 82%,82% 98%,18% 98%,2% 82%,2% 18%)}.board-shell svg{width:100%;height:100%;touch-action:manipulation;user-select:none;overflow:visible}.board-legend{display:flex;gap:15px;justify-content:center;flex-wrap:wrap;margin:17px 0 25px;font-size:9px;letter-spacing:.06em;color:#8fa7a2}.legend-dot{display:inline-block;width:8px;height:8px;border-radius:100%;margin-right:4px}.base-dot{background:var(--gold)}.safe-dot{border:1px solid var(--gold)}.player-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.player-tile{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #3d5052;background:#172427;min-width:0}.player-tile.current{border-color:#b99d6d;background:#253132}.player-tile.off{opacity:.45}.seat-symbol{width:29px;height:29px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;background:var(--seat);color:#0e1719;font-size:13px;font-weight:900}.player-name{font-size:11px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-meta{font-size:9px;color:#a0b3b0;margin-top:4px}.side-panel{display:flex;flex-direction:column;gap:15px}.turn-card{background:linear-gradient(120deg,#283b3c,#20302e);border:1px solid #4f6762;padding:24px;min-height:125px}.turn-card h3{font:400 28px Georgia;margin:9px 0 6px;line-height:1.1}.turn-card p{font-size:11px;color:#aebfba;margin:0;line-height:1.6}.subpanel,.feed-panel{background:#172426;border:1px solid #3a5152;padding:20px}.subpanel-title,.move-subtitle{display:flex;justify-content:space-between;gap:12px;color:#b5c8c0;margin-bottom:15px}.subpanel-title span:last-child{color:var(--gold)}.lobby-players{display:flex;flex-direction:column;gap:8px}.lobby-row{display:flex;align-items:center;gap:12px;padding:11px;border:1px solid #394e4c;background:#142023}.lobby-row .seat-symbol{width:31px;height:31px}.lobby-row b{font-size:12px;font-weight:750}.lobby-row small{color:#92a8a2;font-size:10px;display:block}.lobby-row .slot{margin-left:auto;color:#b3c1b9;font-size:10px}.lobby-row button{border:0;background:none;color:#e1a09a;margin-left:auto}.small-note{font-size:11px;color:#91a9a4;line-height:1.65;margin-top:14px}.hand{display:flex;gap:10px;overflow-x:auto;padding:4px 0 12px;margin:2px 0 8px}.card-wrap{position:relative;flex:none}.card-info-chip{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:999px;border:1px solid #b99d6d;background:#102022;color:#f3e1b5;font:800 12px Arial,sans-serif;z-index:2}.card-info-chip:hover{background:#223538}.hand-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 16px}.outline-btn.mini{padding:8px 12px;font-size:9px;min-height:auto}.small-note.inline{margin:0;color:#a8b8b1}.playing-card{flex:none;width:66px;height:96px;background:#f8f2e9;color:#1d2828;border:2px solid transparent;border-radius:8px;text-align:left;padding:8px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 5px 9px #0005;transition:transform .15s}.playing-card.selected{border-color:var(--gold);transform:translateY(-5px);box-shadow:0 9px 13px #0008,0 0 0 2px #e3bb79}.playing-card.red{color:#a94845}.card-rank{font:750 23px Georgia}.card-suit{font:600 27px Georgia;text-align:center}.move-subtitle{font-size:10px;border-top:1px solid #394f4f;padding-top:17px}.move-help{font-size:11px;color:#a3b4af;margin-bottom:12px;line-height:1.5}.move-list{display:flex;flex-direction:column;max-height:250px;gap:6px;overflow:auto;padding-right:2px}.move-btn{width:100%;background:#243537;border:1px solid #3f5754;color:#eee9df;padding:11px 13px;text-align:left;font-size:12px;display:flex;justify-content:space-between;align-items:center;gap:10px}.move-btn:hover{background:#314745;border-color:#c0a06e}.move-btn.burn{color:#aabeb7;background:#1b292a}.move-btn .arrow{color:var(--gold)}.feed{min-height:120px;max-height:210px;overflow-y:auto;display:flex;flex-direction:column;gap:10px;margin-bottom:15px}.feed-message{font-size:11px;line-height:1.5;color:#becdc5}.feed-message b{color:var(--gold)}.feed-message.system{color:#8ca19c;font-style:italic}.chat-form{display:flex;gap:5px}.chat-form input{padding:11px;font-size:12px}.chat-form button{width:41px;flex-shrink:0;background:var(--gold);color:#182222;border:0;font-size:22px}.winner-icon{font-size:38px;color:var(--gold)}#victoryPanel h3{font:400 32px Georgia;margin:4px 0}#victoryPanel p{color:var(--muted);font-size:13px}.loading{min-height:70vh;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.load-icon{font-size:85px;color:var(--gold);animation:rotate 5s linear infinite}.loading h2{font:400 38px Georgia;margin:12px}.loading p{color:var(--muted)}@keyframes rotate{to{transform:rotate(360deg)}}.toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,120px);background:#e3bb79;color:#142021;box-shadow:0 12px 40px #0009;padding:14px 23px;font-size:12px;font-weight:800;z-index:50;transition:transform .25s;max-width:calc(100vw - 30px);text-align:center}.toast.show{transform:translate(-50%,0)}.rules-modal{border:1px solid #536a64;background:#152224;color:#f0ecdf;width:min(700px,calc(100vw - 22px));max-height:90dvh;padding:0;box-shadow:0 15px 80px #000e}.rules-modal::backdrop{background:#000b;backdrop-filter:blur(7px)}.modal-content{padding:clamp(22px,5vw,45px);max-height:90dvh;overflow:auto}.modal-head{display:flex;align-items:flex-start;justify-content:space-between}.modal-head h2{font:400 39px Georgia;margin:10px 0}.rules-intro,.rule-grid p,.rule-note{font-size:12px;line-height:1.75;color:#b2c3bd}.rule-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0}.rule-grid>div{padding:16px;background:#223133;border:1px solid #425756}.rule-grid h3,.cards-title{font-size:11px;letter-spacing:.12em;color:var(--gold)}.rule-grid p{margin-bottom:0}.cards-title{margin-top:22px}.rules-table>div{display:flex;gap:20px;padding:10px 5px;border-bottom:1px solid #364b48;align-items:center}.rules-table strong{font:700 19px Georgia;color:var(--gold);min-width:40px}.rules-table span{font-size:12px;color:#d1ded7}.rule-note{margin:23px 0}#gameBoard .track-hole{fill:#e9dcc5;stroke:#8d6c46;stroke-width:2}#gameBoard .track-hole.base{stroke:#f3d793;stroke-width:5;fill:#efd7a6}#gameBoard .safe-hole{fill:#ead8be;stroke:#94724c;stroke-width:2}#gameBoard .marble{cursor:pointer;stroke:#fbf3e7;stroke-width:2.2;filter:url(#drop)}#gameBoard .marble.mine{stroke:#fff8e3;stroke-width:3}#gameBoard .marble.possible{stroke:#fff3b7;stroke-width:4;filter:url(#glow)}#gameBoard .marble.selected{stroke:#fff;stroke-width:5;filter:url(#glow)}#gameBoard .marble:focus{outline:none;stroke:#fff;stroke-width:5}#gameBoard .seat-label{font-size:14px;letter-spacing:2px;font-family:Arial,sans-serif;font-weight:850;fill:#f3dfbc}#gameBoard .board-center-title{font:400 30px Georgia;fill:#603015;letter-spacing:1px}#gameBoard .board-center-sub{font:800 11px Arial,sans-serif;fill:#8a6844;letter-spacing:3px}#gameBoard .home-marker{stroke:#ffffff45;stroke-width:2;fill:#f6ead3}#gameBoard .track-number{font:800 11px Arial,sans-serif;fill:#e6cea0}#gameBoard .ring{fill:none;stroke:#455953;stroke-width:2;opacity:.4}.board-shell:has(.possible) .marble:not(.possible):not(.selected){opacity:.85}@media(max-width:1100px){.landing{grid-template-columns:1fr 1fr}.hero{padding:55px 32px}.hero h1{font-size:clamp(46px,5vw,75px)}.hero h1 em{white-space:normal}.game-layout{grid-template-columns:minmax(0,1fr) minmax(280px,320px);gap:15px}.player-tile{padding:9px}.player-name{font-size:10px}}@media(max-width:850px){.topbar{height:69px;padding:0 20px}.landing{grid-template-columns:1fr}.hero{min-height:445px;border-right:0;border-bottom:1px solid #354747;padding:45px 25px 60px}.hero h1{font-size:clamp(55px,9vw,78px);margin:25px 0}.hero-sub{max-width:630px}.hero-foot{bottom:18px;left:25px}.entry-area{padding:45px 20px 65px}.game-layout{grid-template-columns:1fr}.side-panel{display:grid;grid-template-columns:1fr 1fr;align-items:start}.turn-card{grid-column:1/-1}.feed-panel{grid-column:1/-1}.game-toolbar{flex-wrap:wrap}.board-shell{max-width:700px}.player-strip{margin-bottom:2px}}@media(max-width:580px){.brand{font-size:12px;letter-spacing:.1em}.brand-icon{height:30px;width:30px;font-size:19px}.topbar{padding:0 13px}.top-right{gap:4px}.top-tag{display:none}.linkbtn{font-size:10px}.hero{min-height:415px;padding:35px 22px 58px}.hero h1{font-size:clamp(48px,12vw,67px)}.hero-sub{font-size:14px}.hero-features{gap:12px;font-size:8px}.entry-area{padding:25px 14px 50px}.entry-card{padding:25px 20px}.game-screen{padding:20px 10px 55px}.game-toolbar{padding:0 6px;margin-bottom:16px}.room-information h2{font-size:27px}.toolbar-controls{gap:7px}.outline-btn{padding:9px 10px;font-size:9px}.connection{font-size:9px}.board-heading{padding:0 5px}.board-shell{margin:0 -3px}.board-legend{font-size:8px;gap:8px}.player-strip{grid-template-columns:repeat(2,1fr)}.side-panel{display:flex}.subpanel,.feed-panel{padding:17px}.player-tile{padding:10px}.game-toolbar .outline-btn{font-size:9px}.rule-grid{grid-template-columns:1fr}.modal-head h2{font-size:30px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.card-info-modal .rules-table strong{min-width:20px}
/* V3: octagonal wooden Jackaroo-inspired board, private accounts, rankings, localized UI */
.auth-screen{min-height:calc(100vh - 78px);display:grid;grid-template-columns:minmax(0,1.1fr) minmax(325px,.8fr);background:#101a1b}
.auth-hero{padding:clamp(48px,8vw,125px) clamp(28px,7vw,105px);background:radial-gradient(circle at 80% 65%,#3d3c2b,#1e3533 44%,#101b1e 75%);display:flex;align-items:flex-start;justify-content:center;flex-direction:column}
.auth-hero h1{font:400 clamp(48px,6vw,94px)/1.05 Georgia,serif;letter-spacing:-.05em;margin:17px 0}
.auth-hero p{color:#a9c1b8;font-size:16px;max-width:500px;line-height:1.8}
.hero-marble{font-size:120px;color:#dfb875;line-height:1;filter:drop-shadow(0 0 28px #eabf7c77)}
.auth-features{display:flex;flex-wrap:wrap;gap:12px;color:#c8ac80;font-size:10px;letter-spacing:.1em;margin-top:24px}
.auth-card{align-self:center;background:#192729;border:1px solid #415955;padding:clamp(23px,4vw,47px);width:calc(100% - 40px);max-width:510px;margin:40px auto}
.auth-card h2{font:400 38px Georgia;margin:15px 0 8px}.auth-card p{color:#9fb2ac;font-size:12px;line-height:1.7}
.auth-card .entry-form input{margin-bottom:15px}
.account-chip{background:#263838;border:1px solid #58685e;color:#e8c992;padding:9px 13px;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:800;cursor:pointer}
.lang-btn{font-size:13px;font-weight:900;letter-spacing:0;min-width:45px}
.signed-name{padding:15px;background:#243536;border:1px solid #3d5854;margin-bottom:13px;color:#e7cf9d;font-size:14px;font-weight:700}
.leaderboard-open{width:100%;margin-top:16px}.score-banner{background:#182628;border:1px solid #3f5250;margin-top:18px;padding:17px}
.room-scores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.room-score-row{display:flex;align-items:center;gap:8px;background:#233335;border:1px solid #3b514e;padding:9px;min-width:0}
.room-score-row strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.room-score-row span:not(.score-chip){color:#9eb4af;font-size:10px;white-space:nowrap}
.room-score-row b{margin-left:auto;font-size:10px;color:#eed49a;white-space:nowrap}.score-chip{color:var(--seat);font-size:18px}
.inline-link{border:0;background:none;color:#e2be7b;font-size:10px;font-weight:900;cursor:pointer}
.leaderboard-list{display:grid;gap:8px;margin:18px 0}
.leader-row{padding:13px;border:1px solid #3d5651;background:#243638;display:grid;grid-template-columns:32px minmax(70px,1fr) 140px 90px;gap:8px;align-items:center;font-size:12px}
.leader-row .rank{color:#d5b47d;font-weight:900}.leader-row strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leader-row span{color:#a9c0b8}.leader-row b{text-align:end;color:#edce8e}
.profile-row{display:flex;gap:8px}.profile-row input{min-width:0}.profile-row button{flex:none}
.account-profile{margin:20px 0;padding-bottom:18px;border-bottom:1px solid #3b504e}.account-profile label{display:block;font-size:10px;margin-bottom:7px;color:#bdcfc6}
.invite-result{color:#f4d590!important;font-size:16px!important;overflow-wrap:anywhere}.friend-row{display:flex;gap:9px;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid #3b514e}.friend-row button{min-height:30px;padding:6px;font-size:9px}
.signout-btn{margin-top:25px;border-color:#9c665f;color:#f0c2bc}
.dealing-now #hand .card-wrap{animation:dealIn .5s cubic-bezier(.16,1,.3,1) both}
.dealing-now #hand .card-wrap:nth-child(2){animation-delay:.09s}.dealing-now #hand .card-wrap:nth-child(3){animation-delay:.18s}.dealing-now #hand .card-wrap:nth-child(4){animation-delay:.27s}.dealing-now #hand .card-wrap:nth-child(5){animation-delay:.36s}
@keyframes dealIn{from{transform:translateY(-50px) rotate(-13deg);opacity:0}to{transform:translateY(0) rotate(0);opacity:1}}
/* Keep the board octagonal and give it warm hardwood material instead of a ring. */
.board-shell{background:repeating-linear-gradient(94deg,transparent 0 6px,#eec58b0a 7px,#00000009 9px,transparent 11px 23px),linear-gradient(125deg,#3e1b0e,#7f4927 41%,#5e3018 70%,#37190d);border-color:#d2a773}
#gameBoard .track-hole{fill:#dfcfb1;stroke:#99714b;stroke-width:1.8}#gameBoard .safe-hole{fill:#d9c5a2;stroke-width:2.4}
#gameBoard .marble{filter:url(#drop)}
:root[dir=rtl] .auth-hero,:root[dir=rtl] .auth-card,:root[dir=rtl] .modal-content{text-align:right}
:root[dir=rtl] .board-shell{direction:ltr}:root[dir=rtl] .playing-card{direction:ltr}:root[dir=rtl] .board-legend{direction:ltr}
@media(max-width:950px){.auth-screen{grid-template-columns:1fr}.auth-hero{padding:48px 24px 24px;min-height:270px}.auth-hero h1{font-size:clamp(46px,7vw,75px)}.hero-marble{font-size:64px}.auth-card{margin:18px auto 40px}}
@media(max-width:580px){.auth-card{width:calc(100% - 24px)}.room-scores{grid-template-columns:1fr}.leader-row{grid-template-columns:26px minmax(65px,1fr) 70px 60px;font-size:10px}.leader-row span{font-size:9px}.account-chip{max-width:84px;padding:8px}.auth-hero h1{font-size:48px}.auth-hero p{font-size:13px}.profile-row{flex-direction:column}}

.host-score-edit{display:flex;align-items:center;gap:3px;margin-left:4px}.host-score-edit input{width:52px;height:29px;padding:2px 4px;background:#132224;color:#e3d1ad;border:1px solid #52615a;font-size:11px;text-align:center}.host-score-edit button{background:#daba82;color:#102024;border:0;font-weight:900;height:29px;width:24px;cursor:pointer}.room-score-row{flex-wrap:wrap}.room-score-row .host-score-edit{margin-left:auto}

/* V4 TABLETOP EXPERIENCE */
.board-shell{isolation:isolate;overflow:hidden;cursor:default}
.card-well{position:absolute;inset:0;z-index:4;pointer-events:none;display:flex;justify-content:center;align-items:center;gap:6px}
.card-well .deck-back{width:10.5%;min-width:24px;transform:translateX(-6px) rotate(-11deg);opacity:.89;filter:drop-shadow(0 4px 6px #170b0780)}
.card-well .deck-back img{width:100%;display:block;border-radius:4px}
.played-slot{width:12.4%;max-width:120px;min-width:37px;aspect-ratio:188 / 270;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;position:relative;border:1px dashed #bda17888;border-radius:7px;background:#402a1e18}
.played-card{width:100%;height:100%;object-fit:fill;border-radius:6px;box-shadow:0 8px 14px #1d1007b5}
.played-label,.played-by{position:absolute;left:50%;transform:translateX(-50%);text-align:center;line-height:1.25;color:#805126;font-size:clamp(4px,.85vw,8px);letter-spacing:.04em;width:180%;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.played-label{bottom:110%}.played-by{top:110%;font-size:clamp(4px,.68vw,8px);background:#e9d5afdf;padding:2px 3px;border-radius:4px;white-space:normal;max-height:36px}
.card-well.card-land .played-card{animation:dropCard .5s cubic-bezier(.16,1,.25,1) both}
@keyframes dropCard{0%{transform:translate(40px,105px) rotate(17deg) scale(1.5);opacity:.15}75%{transform:translate(-4px,-3px) rotate(-7deg) scale(1.05);opacity:1}100%{transform:translate(0) rotate(-3deg) scale(1);opacity:1}}
.board-shell.drop-active:after{content:'DROP CARD TO PLAY ✦';z-index:6;position:absolute;left:50%;top:22%;transform:translate(-50%,-50%);font-size:clamp(8px,1vw,13px);font-weight:900;letter-spacing:.1em;color:#fff7cf;white-space:nowrap;padding:10px 14px;background:#223a39e9;border:1px solid #f9cf84;border-radius:25px;box-shadow:0 0 28px #f7ce7c90}
.board-shell.drop-active{box-shadow:inset 0 0 100px #e7c07575,0 16px 50px #0005}
.playing-card{width:68px;height:96px;border:0;padding:0;background:transparent;overflow:hidden;display:block;cursor:grab;border-radius:7px;touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:0 5px 14px #0008}
.playing-card img{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none;-webkit-user-drag:none;user-select:none}
.playing-card.selected{transform:translateY(-8px) rotate(-2deg);outline:3px solid #edc176;outline-offset:1px}
.playing-card:active{cursor:grabbing}
.card-wrap{padding-top:11px;padding-bottom:4px;touch-action:none}
.card-info-chip{top:11px;right:-5px;width:23px;height:23px;box-shadow:0 2px 10px #0009}
.card-drag-ghost{position:fixed;z-index:9999;left:0;top:0;pointer-events:none;transform:translate(-50%,-55%) rotate(-5deg) scale(1.1);filter:drop-shadow(0 12px 24px #090f10bd)}
.card-drag-ghost img{width:82px;height:118px;border-radius:7px}
.dragging-card,.dragging-card *{cursor:grabbing!important;user-select:none!important}
.destination-marker{cursor:pointer;outline:none}
.destination-outer{fill:#fadf9d35;stroke:#f4e2a8;stroke-width:3;stroke-dasharray:5 3;animation:destinationPulse 1.4s ease-in-out infinite}
.destination-core{fill:#f1d693aa;stroke:#fff4b7;stroke-width:1.5}
.destination-marker:hover .destination-outer,.destination-marker:focus .destination-outer{stroke-width:5;fill:#ffeab180}
@keyframes destinationPulse{0%,100%{opacity:.6}50%{opacity:1}}
#gameBoard .marble-group{transition:filter .16s}
#gameBoard .marble-group:hover{filter:drop-shadow(0 0 6px #f8dba8)}
.game-help{color:#b8afa0;font-size:10px;line-height:1.7;background:#1d2d2c;padding:10px;border:1px solid #3d5652;margin-top:14px;border-radius:4px}
.game-celebrate{position:fixed;inset:0;display:grid;place-items:center;z-index:200;background:#101b1ccf;color:#f3d48a;font:700 clamp(30px,6vw,70px)/1.4 Georgia,serif;text-align:center;pointer-events:none;text-shadow:0 5px 30px #f9d774}
.game-celebrate:not(.hidden){animation:winnerBurst 2.2s ease both}
@keyframes winnerBurst{0%{opacity:0;transform:scale(.8)}20%{opacity:1;transform:scale(1)}80%{opacity:1}100%{opacity:0}}
@media(max-width:580px){.playing-card{width:63px;height:90px}.card-drag-ghost img{width:68px;height:99px}.played-by{font-size:5px;max-height:28px}.played-label{font-size:5px}.hand{gap:10px}.game-help{font-size:11px}.board-shell.drop-active:after{font-size:8px;padding:7px}}
@media(prefers-reduced-motion:reduce){.card-well.card-land .played-card,.destination-outer{animation:none!important}}
