.wood-live{background:#34271f;color:#422b20;--green:#775132;--muted:#705541}.wood-live .game{max-width:740px;padding:10px 14px 14px;background:#c69b76 url('wood.png') center top/420px 840px;min-height:100vh;box-shadow:0 0 0 5px #5f412f,0 12px 40px #150e0866;border-inline:3px solid #eed0ab;margin:0 auto}.wood-live .past{padding:0 0 9px;margin-bottom:10px;border-bottom:3px ridge #d6b28b;display:block}.wood-live .past ol{gap:9px;min-width:0;overflow:auto;padding:3px 2px 6px;scrollbar-width:thin}.wood-live .past li{background:#faf1df;border:1px solid #c5a481;border-radius:4px;box-shadow:2px 3px 3px #69482e55;padding:5px 7px;display:flex;flex-direction:column-reverse;align-items:center;gap:4px;min-width:42px}.wood-live .past li b{writing-mode:vertical-rl;text-orientation:upright;letter-spacing:2px;font:700 15px/1.3 GameSerif,serif;color:#614431}.wood-live .past li span{font-size:9px;color:#6d503b}.table-layout{display:grid;grid-template-columns:60px minmax(0,1fr) 60px;gap:14px}.table-center{min-width:0}.table-heading{text-align:center;padding:0 0 6px}.table-heading h1{font:700 23px/1.35 GameSerif,serif;color:#754061;letter-spacing:.04em;margin:0 0 4px}.table-heading p{font-size:11px;margin:0;color:#664335}.seat-rail{display:flex;flex-direction:column;justify-content:space-between;gap:18px;padding-top:3px;padding-bottom:20px}.seat{background:#875f4270;border:1px solid #d5b694;border-radius:4px;padding:5px 4px;text-align:center;box-shadow:inset 0 1px 3px #71503255}.seat-avatar{height:45px;background:#f0d5ae38;border:1px solid #d5b69466;border-radius:3px;position:relative}.seat-avatar:before{content:'';position:absolute;left:calc(50% - 7px);top:7px;width:14px;height:14px;border-radius:50%;background:#d5b28d99}.seat-avatar:after{content:'';position:absolute;left:calc(50% - 14px);bottom:4px;width:28px;height:17px;border-radius:18px 18px 3px 3px;background:#d5b28d99}.seat>span{font-size:10px;color:#4f3524;display:block;margin-top:5px}.seat>.seat-balance{display:block;font-size:9px;line-height:1.2;color:#3d2a1b;text-align:center;margin-top:1px;font-variant-numeric:tabular-nums;font-weight:500;white-space:nowrap;overflow:visible;text-overflow:clip}.wood-live .board{height:auto;background:transparent;box-shadow:none;border-radius:0;overflow:visible;position:relative}.round-strip{display:flex;justify-content:center;gap:10px;font-size:10px;color:#624434;min-height:24px;align-items:center}.round-strip strong{white-space:nowrap;font-weight:500}.round-strip span{text-align:right}.wood-live canvas{height:210px;width:100%;display:block}.result-label{position:absolute;bottom:2px;left:0;width:100%;text-align:center;font-size:13px;color:#643722;pointer-events:none}.bet-grid{display:grid;grid-template-columns:1fr 1fr;background:#795339;gap:2px;border:4px ridge #f4e1c5;box-shadow:0 5px 13px #65472e38}.wood-live .choice{border-radius:0;background:#fff9ec;display:grid;grid-template-columns:1fr;justify-items:center;text-align:center;gap:4px;padding:9px 12px;color:#603528;cursor:text}.wood-live .choice.tail{background:#f6f5df;color:#31594c}.choice-mode{font-size:11px!important;color:#75573f!important}.coin-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;border:3px double #a37c3c;background:radial-gradient(circle at 30% 20%,#f9dea0,#c99a4f);box-shadow:0 2px 2px #70532b55;font:700 22px/1 GameSerif,serif!important;color:#764426!important;margin:1px 0}.wood-live .tail .coin-mark{color:#36584a!important}.choice-side{font-size:10px!important;color:inherit!important}.wood-live .choice-odds{display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px;color:inherit;width:100%}.wood-live .choice-odds strong{font-size:20px;color:#8b402e}.wood-live .tail .choice-odds strong{color:#31594c}.wood-live .choice input{width:100%;min-height:34px;padding:7px 8px;background:#fffdf7;border:1px solid #c8b18a;border-radius:3px;font-size:12px;text-align:center;color:#422b20}.table-status{background:linear-gradient(90deg,transparent,#80583b66,transparent);text-align:center;color:#fff8e7;text-shadow:0 1px 2px #523526;font-size:13px;line-height:28px;margin:5px 0 10px}.wood-live .timer{margin:0 auto 12px;width:60px;height:60px;border:5px double #409878;background:radial-gradient(circle at 30% 20%,#c5e4c6,#78b696);border-radius:50%;display:flex;align-items:center;justify-content:center;gap:2px;box-shadow:0 3px 7px #604a3455;color:#225d45}.wood-live .timer strong{font:700 25px/1 Georgia,serif}.wood-live .timer span{font-size:9px;align-self:flex-end;margin-bottom:10px}.stake-summary{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;flex-wrap:wrap}.stake-summary>span{font-size:10px;color:#644330}.stake-summary strong{font-weight:600}.wood-live #submit-bet{display:block;width:70%;min-width:0;max-width:280px;min-height:48px;margin:14px auto 0;padding:12px 20px;border:1px solid #ba8a1f;border-radius:25px;background:linear-gradient(#ffeaa1,#efc13e 55%,#dba518);box-shadow:0 3px 1px #9a6d25,0 5px 12px #805a3440;color:#623d14;font-size:17px;letter-spacing:.05em;font-weight:600}.wood-live #submit-bet:hover:enabled{background:linear-gradient(#fff1b9,#f4ce58 55%,#e7b832)}.wood-live #submit-bet:disabled{opacity:.7}.tie-note{text-align:center;color:#684832;font-size:10px;line-height:1.6;margin:13px 0 16px}.table-dock{display:flex;align-items:center;justify-content:space-between;gap:10px;border:3px ridge #e6c8a3;border-radius:28px 28px 8px 8px;background:#b58a69d9;padding:12px 15px;margin:0;box-shadow:0 -4px 12px #68452520}.dock-button{border:0;background:none;display:grid;justify-items:center;gap:5px;color:#53371f;font-size:10px;min-width:55px;padding:0}.dock-symbol{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:#8c6d4b;color:#fff2c9;box-shadow:inset 0 1px 2px #f4d6a977;border:2px solid #dfbd8e;font-family:GameSerif,serif;font-size:19px}.account-dock{background:#986e5270;border-radius:4px;display:flex;align-items:center;gap:10px;min-width:0;padding:7px 12px;flex:1;max-width:360px}.self-avatar{width:43px;height:43px;background:#dbc091;border:2px solid #e8cca4;border-radius:4px;display:grid;place-items:center;font:700 21px GameSerif,serif;color:#665132;flex-shrink:0}.account-dock>div:nth-child(2){min-width:0;flex:1}.wood-live #account{font-size:12px;padding:0;min-height:24px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#36261b;background:none;border:0;text-align:left}.wood-live .balance{display:block;text-align:left;font-size:10px;color:#432e20}.wood-live .balance strong{font-size:14px;font-weight:500;color:#3d2a1b;overflow-wrap:anywhere}.wood-live #admin-link{font-size:10px;min-height:30px;padding:4px;color:#402b1e}.wood-live .details-row{padding:8px 4px 0;border:0}.wood-live .details-row summary{font-size:11px;color:#563822}.wood-live .details-row p{color:#493121}.wood-live .notice{background:#f8e5bb;color:#5d3b21;border:1px solid #c9a67c;margin:8px 0;font-size:12px;padding:8px 12px}.wood-live dialog{background:#f6ead6;color:#493121}.wood-live dialog input{background:#fffaf0;border-color:#c6ae8f}.wood-live dialog .primary{background:#765332;color:#fff4d9;min-width:0}.wood-live .quiet{color:#493121}.wood-live td,.wood-live th{border-color:#b98e66}.wood-live #records{background:#f6e4cb;padding:10px;border-radius:5px;margin-top:10px}.wood-live #records h2{font-size:16px}.wood-live .secondary{color:#66442a;border-color:#ad8b61}
@media(max-width:500px){.wood-live .game{padding:7px 7px 10px;border-inline-width:2px}.wood-live .past{margin-bottom:7px;padding-bottom:5px}.wood-live .past ol{gap:6px}.wood-live .past li{min-width:28px;padding:4px 4px}.wood-live .past li b{font-size:12px;letter-spacing:0}.wood-live .past li span{font-size:8px}.table-layout{grid-template-columns:46px minmax(0,1fr) 46px;gap:7px}.table-heading h1{font-size:17px}.table-heading p{font-size:9px}.seat-rail{gap:16px;padding-bottom:20px}.seat{padding:3px 2px}.seat-avatar{height:31px}.seat-avatar:before{width:10px;height:10px;left:calc(50% - 5px);top:4px}.seat-avatar:after{width:20px;height:12px;left:calc(50% - 10px);bottom:3px}.seat>span{font-size:8px;margin-top:3px}.seat>.seat-balance{font-size:6.5px;margin-top:1px;line-height:1.15;white-space:nowrap;overflow:visible;text-overflow:clip;font-weight:600;letter-spacing:-.1px;font-variant-numeric:tabular-nums}.round-strip{font-size:8px;gap:4px}.wood-live canvas{height:155px}.bet-grid{border-width:3px;gap:1px}.wood-live .choice{padding:6px 6px;gap:3px}.choice-mode{font-size:9px!important}.coin-mark{width:37px;height:37px;font-size:17px!important}.choice-side{font-size:9px!important}.wood-live .choice-odds{font-size:9px;gap:7px}.wood-live .choice-odds strong{font-size:17px}.wood-live .choice input{min-height:31px;font-size:11px;padding:5px 4px}.table-status{font-size:11px;line-height:23px;margin:4px 0 8px}.wood-live .timer{height:48px;width:48px;border-width:4px;margin-bottom:10px}.wood-live .timer strong{font-size:22px}.wood-live .timer span{font-size:8px;margin-bottom:7px}.stake-summary{font-size:10px;justify-content:center;gap:3px;text-align:center}.stake-summary>span{font-size:9px}.wood-live #submit-bet{min-height:43px;font-size:15px;margin-top:10px;width:80%;padding:10px 14px}.tie-note{font-size:8px;margin:10px 0 12px}.table-dock{padding:9px 8px;gap:6px;border-width:2px;border-radius:20px 20px 6px 6px}.dock-button{min-width:44px;font-size:8px}.dock-symbol{width:33px;height:33px;font-size:17px}.account-dock{padding:5px 7px;gap:6px}.self-avatar{width:33px;height:37px;font-size:17px}.wood-live #account{font-size:10px}.wood-live .balance{font-size:9px}.wood-live .balance strong{font-size:12px}.wood-live #admin-link{padding:2px;font-size:9px}.result-label{font-size:11px}}
/* Compact phase-aware countdown, replacing the circular coin badge. */
.wood-live .timer{width:100%;max-width:330px;height:auto;min-height:64px;margin:12px auto 14px;padding:12px 15px 16px;position:relative;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #b89a72;border-radius:7px;background:#f2e0c5;box-shadow:0 2px 5px #5e40291a;color:#4c3423;overflow:hidden}.wood-live .timer .timer-copy{display:grid;gap:5px;text-align:left}.wood-live .timer .timer-copy>span{font-size:12px;font-weight:600;margin:0;align-self:auto}.wood-live .timer .timer-copy small{font-size:9px;color:#75553c}.wood-live .timer .timer-number{display:flex;gap:5px;align-items:baseline;white-space:nowrap}.wood-live .timer .timer-number strong{font:600 34px/1 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.025em}.wood-live .timer .timer-number>span{font-size:10px;margin:0;align-self:auto}.timer-track{position:absolute;bottom:0;left:0;right:0;height:3px;background:#70533820}.timer-track i{display:block;width:100%;height:100%;background:#427461;transform-origin:left;transition:transform .2s linear}.wood-live .timer[data-state=urgent]{color:#983b22;border-color:#b87753}.wood-live .timer[data-state=urgent] .timer-copy small{color:#983b22}.timer[data-state=urgent] .timer-track i{background:#b24b2c}.wood-live .timer[data-state=waiting]{color:#675643}.timer[data-state=waiting] .timer-track i{background:#9b7b4e}.timer[data-state=offline] .timer-track i{opacity:0}:root:not([data-skin=wood]) .wood-live .timer{background:var(--s-rail);border-color:var(--s-edge);color:var(--s-ink)}:root:not([data-skin=wood]) .wood-live .timer .timer-copy small{color:var(--s-muted)}:root:not([data-skin=wood]) .timer-track{background:#ffffff20}:root:not([data-skin=wood]) .timer-track i{background:var(--s-title)}:root:not([data-skin=wood]) .wood-live .timer[data-state=urgent]{color:#ffbc95;border-color:#d9956d}:root:not([data-skin=wood]) .wood-live .timer[data-state=urgent] .timer-copy small{color:#ffbc95}:root:not([data-skin=wood]) .timer[data-state=urgent] .timer-track i{background:#ffbc95}:root[data-skin=porcelain] .wood-live .timer[data-state=urgent],:root[data-skin=porcelain] .wood-live .timer[data-state=urgent] .timer-copy small{color:#963d27}:root[data-skin=porcelain] .timer[data-state=urgent] .timer-track i{background:#963d27}@media(max-width:500px){.wood-live .timer{min-height:61px;margin:10px auto 12px;padding:11px 12px 15px}.wood-live .timer .timer-copy>span{font-size:11px}.wood-live .timer .timer-copy small{font-size:8px}.wood-live .timer .timer-number strong{font-size:30px}.wood-live .timer .timer-number>span{font-size:9px}}@media(prefers-reduced-motion:reduce){.timer-track i{transition:none}}

/* Two-character coin faces stay inside the inner ring at every breakpoint. */
.wood-live .coin-mark.coin-mark-double{font-size:16px!important;line-height:1!important}.coin-mark-double>span{display:block;font-size:inherit;line-height:1;text-align:center;white-space:nowrap}@media(max-width:500px){.wood-live .coin-mark.coin-mark-double{font-size:12px!important;line-height:1!important}}

/* Center the period above the coins; keep the former status node out of the layout. */
.wood-live .round-strip #scene-label{display:none}

/* Spread the latest history across the available width, with persistent direction labels. */
.wood-live .past{display:grid;grid-template-columns:18px minmax(0,1fr) 18px;gap:8px;align-items:center}
.wood-live .past ol{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px;overflow:hidden;padding:3px 2px 6px}
.wood-live .past li{min-width:0;padding-inline:2px}
.wood-live .past li span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wood-live .past .history-direction{font-size:11px;font-weight:600;text-align:center;color:var(--s-muted,#624434)}
.wood-live .past .history-new{color:var(--s-ink,#31594c)}
@media(max-width:500px){.wood-live .past{gap:6px}.wood-live .past ol{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.wood-live .past li:nth-child(n+8){display:none}}
@media(max-width:360px){.wood-live .past ol{grid-template-columns:repeat(6,minmax(0,1fr))}.wood-live .past li:nth-child(n+7){display:none}}

/* Hide the three explanatory rows marked by the site owner. */
.wood-live .table-heading>p,.wood-live .stake-summary,.wood-live .tie-note{display:none}

/* Hide the phase strip below the choice grid. */
.wood-live .table-status{display:none}

/* Transparent coin-only layer extends above the scene without shifting the table. */
.wood-live .board{z-index:2}
.wood-live .round-strip{position:relative;z-index:1}
.wood-live canvas.coin-flight-layer{position:absolute;left:0;z-index:3;pointer-events:none}

/* Account fields must not trigger mobile focus zoom; keep keyboard space scrollable. */
.wood-live #auth input{font-size:16px;line-height:1.4;min-height:46px}
@media(max-width:600px){.wood-live #auth{position:fixed;top:calc(var(--auth-visible-top,0px) + 12px);bottom:auto;margin:0 auto;max-height:calc(var(--auth-visible-height,100dvh) - 24px);overflow-y:auto;overscroll-behavior:contain;padding:20px;scroll-padding-block:16px}.wood-live #auth .actions{flex-wrap:wrap}.wood-live #auth .actions>button{flex:1;min-width:0}}

/* Compact the title / period / starting coins group. */
.wood-live .past{margin-bottom:3px}
.wood-live .table-heading{padding-bottom:0}
.wood-live .table-heading h1{margin-bottom:0}
.wood-live .round-strip{min-height:20px}

/* Rules drawer occupies 70% of the viewport and enters from the right. */
.wood-live #rules-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:70vw;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0;background:var(--s-panel,#f6ead6);color:var(--s-formink,#493121);box-shadow:-12px 0 36px #21170e40;overflow-y:auto;overscroll-behavior:contain}
#rules-drawer::backdrop{background:#17130e99}
#rules-drawer[open]{animation:rules-enter .28s cubic-bezier(.16,1,.3,1)}
#rules-drawer[open].is-closing{animation:rules-exit .22s ease-in forwards}
.rules-drawer-head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 22px 16px;background:var(--s-panel,#f6ead6);border-bottom:1px solid #9c805b45;z-index:1}
.wood-live .rules-drawer-head h2{font:600 22px/1.4 "Songti SC",serif;color:inherit;margin:0}
#rules-close{border:0;border-radius:6px;background:transparent;color:inherit;min-height:44px;padding:8px 10px;font-size:14px;flex-shrink:0}
#rules-close:hover{background:#99774e20}
.rules-drawer-content{padding:6px 22px max(24px,env(safe-area-inset-bottom))}
.wood-live #rules-drawer p{font-size:15px;line-height:1.85;margin:18px 0;overflow-wrap:anywhere;color:inherit}
body:has(#rules-drawer[open]){overflow:hidden}
@keyframes rules-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}
@keyframes rules-exit{to{transform:translateX(100%)}}
@media(max-width:500px){.rules-drawer-head{padding:14px 14px 10px}.wood-live .rules-drawer-head h2{font-size:20px}.rules-drawer-content{padding-inline:16px}.wood-live #rules-drawer p{font-size:14px}}
@media(prefers-reduced-motion:reduce){#rules-drawer[open],#rules-drawer[open].is-closing{animation:none}}

/* Compact submit action with a clear gap above the bottom dock. */
.wood-live #submit-bet{width:64%;max-width:240px;min-height:40px;padding:8px 16px;font-size:15px;margin-top:10px}
.wood-live .table-layout{padding-bottom:16px}
@media(max-width:500px){.wood-live #submit-bet{width:70%;max-width:210px;font-size:14px;padding:7px 12px}}

/* Prevent mobile focus zoom in all four stake fields without scaling the controls. */
.wood-live .choice input{font-size:16px;line-height:1.25;min-height:36px;padding:7px 8px;scroll-margin-block:20px}

.wood-live .choice{position:relative}
.wood-live .quick-amounts{position:absolute;z-index:5;left:6px;right:6px;bottom:48px;padding:10px;background:var(--s-panel,#fff6e5);color:var(--s-formink,#533820);border:1px solid #ae8a58;border-radius:8px;box-shadow:0 5px 18px #39240e40;display:grid;grid-template-columns:1fr 1fr;gap:6px;text-align:left}
.quick-amounts .quick-title{grid-column:1/-1;font-size:12px!important;color:inherit!important}
.quick-amounts button{min-width:0;min-height:36px;padding:6px 2px;font-size:15px;border:1px solid #b99762;border-radius:5px;background:#f4e2bb;color:#55371a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quick-amounts button:hover,.quick-amounts button:focus-visible{background:#e5c88d}
/* Keep longer configured amounts fully readable on narrow phones. */
.wood-live .quick-amounts{width:min(240px,calc(100vw - 80px));left:6px;right:auto}
.wood-live .choice.tail .quick-amounts{left:auto;right:6px}

.wood-live .choice{cursor:default;min-width:0}
.quick-amounts .quick-manual{grid-column:1/-1;background:transparent;font-size:14px}
.wood-live .choice input{touch-action:manipulation;max-width:100%}

/* Viewport-based presets never expand a tile's scrollable overflow. */
.wood-live>.quick-amounts{position:fixed;z-index:20;right:auto;bottom:auto;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box}
/* Compact mobile dock with room above the browser's bottom controls. */
@media(max-width:600px){
 .wood-live .game{min-height:100svh;padding-bottom:calc(48px + env(safe-area-inset-bottom,0px))}
 .wood-live .table-dock{display:grid;grid-template-columns:48px minmax(0,1fr) 48px 48px;gap:4px;padding:7px 6px;border-radius:16px 16px 7px 7px}
 .wood-live .dock-button{min-width:0;min-height:46px;font-size:10px;gap:3px;white-space:nowrap}
 .wood-live .dock-symbol{width:27px;height:27px;font-size:16px}
 .wood-live .account-dock{width:100%;max-width:none;min-width:0;padding:4px 6px;gap:4px;box-sizing:border-box}
 .wood-live .account-dock .self-avatar{display:none}
 .wood-live #account{display:block;max-width:100%;min-height:26px;padding:2px 0;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
 .wood-live .account-dock .balance{font-size:10px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .wood-live .account-dock .balance strong{font-size:12px}
 .wood-live .timer{min-height:54px;padding-top:8px;padding-bottom:11px;margin-top:8px;margin-bottom:9px}
 .wood-live .timer .timer-number strong{font-size:28px}
}

@media(max-width:600px){.wood-live .table-dock{grid-template-columns:minmax(0,1fr) 48px 48px 48px}}

#registration-fields>label{display:grid;gap:8px;margin-top:16px}
#avatar-preview{object-fit:cover;border-radius:10px;margin:8px 0}
.wood-live .self-avatar{overflow:hidden;padding:0}
#user-avatar{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:600px){.wood-live .account-dock .self-avatar{display:grid;width:28px;height:32px;border-width:1px;font-size:15px}.wood-live .account-dock{gap:5px}.wood-live #auth #auth-switch{font-size:13px}}

#profile-avatar-preview{object-fit:cover;border-radius:10px;display:block;margin:12px 0}
.profile-id-line strong{font-variant-numeric:tabular-nums;letter-spacing:.08em}
#user-profile{cursor:pointer;min-height:0;min-width:0}
#user-profile:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* Ink print: restrained pigment grain lets the table surface show through. */
.wood-live .table-heading h1{opacity:.94;text-shadow:0 1px 0 #ffe6bd35;-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2231%22%20height%3D%2223%22%3E%3Cfilter%20id%3D%22grain%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.85%22%20numOctaves%3D%223%22%20seed%3D%228%22%2F%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%220%200%200%200%201%200%200%200%200%201%200%200%200%200%201%200%200%200%201.1%20.26%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url%28%23grain%29%22%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2231%22%20height%3D%2223%22%3E%3Cfilter%20id%3D%22grain%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.85%22%20numOctaves%3D%223%22%20seed%3D%228%22%2F%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%220%200%200%200%201%200%200%200%200%201%200%200%200%200%201%200%200%200%201.1%20.26%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url%28%23grain%29%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-size:31px 23px;mask-size:31px 23px}
:root:not([data-skin]) .wood-live .table-heading h1,:root[data-skin=wood] .wood-live .table-heading h1{color:#743752;mix-blend-mode:multiply}

/* Keep the numeric balance closer to the account name. */
.wood-live .account-dock .balance{transform:translateY(-3px)}

/* User background follows avatar, short name and balance rather than filling the dock. */
.wood-live .account-dock{flex:0 1 auto;width:fit-content;max-width:100%;justify-self:start}
.wood-live .account-dock>div:nth-child(2){flex:0 1 auto}
.wood-live .account-dock .self-avatar{flex-shrink:0}

/* Online directory sits immediately before the account avatar. */
.wood-live .table-dock #online-open{flex:none;min-height:44px;padding:5px 8px;display:flex;flex-direction:column;justify-content:center;gap:2px}
@media(max-width:600px){.wood-live .table-dock{grid-template-columns:auto minmax(0,1fr) 40px 40px 40px;gap:3px}.wood-live .table-dock #online-open{padding:4px 5px;font-size:10px}.wood-live .table-dock .account-dock{padding:4px;gap:4px}}
/* Keep presence and profile together; push the three navigation actions right. */
.wood-live .table-dock{display:flex;justify-content:flex-start;gap:8px}
.wood-live .table-dock #records-button{margin-left:auto}
.wood-live .table-dock .dock-button{flex:none}
@media(max-width:600px){.wood-live .table-dock{gap:4px}.wood-live .table-dock .dock-button{width:40px}.wood-live .table-dock .account-dock{min-width:0}}

.wood-live .table-dock #online-open{cursor:default;text-align:center;box-sizing:border-box}
.seat-avatar.occupied:before,.seat-avatar.occupied:after{display:none}.seat-avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:3px}.seat>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seat-system{display:block;font-size:8px;line-height:1.3;color:#422b20;background:#f6e6c9;border-radius:2px;margin-top:3px;padding:1px 0}

/* Betting clock is painted over the stone, with no lower panel. */
.wood-live .board #round-timer{position:absolute;left:50%;top:64%;transform:translate(-50%,-50%);z-index:2;width:auto;min-width:0;min-height:0;height:auto;margin:0;padding:0;display:flex;flex-direction:column;align-items:center;gap:3px;border:0;border-radius:0;background:none;box-shadow:none;pointer-events:none;color:#fff4d8;text-shadow:0 2px 3px #17251e}
.wood-live .board #round-timer .timer-copy{display:block;text-align:center}
.wood-live .board #round-timer #timer-label{color:#fff4d8;font-size:11px}
.wood-live .board #round-timer #timer-note,.wood-live .board #round-timer .timer-track{display:none}
.wood-live .board #round-timer .timer-number{color:#fff4d8;gap:4px}
.wood-live .board #round-timer .timer-number strong{font-size:34px;line-height:1.1;color:inherit}
.wood-live .board #round-timer .timer-number span{font-size:10px;color:inherit}
.wood-live .board #round-timer[data-state=urgent]{color:#ffe29c}
.wood-live .board #round-timer[data-state=waiting]{visibility:hidden}

.wood-live .board #round-timer{top:69%}

.wood-live #records{position:fixed;inset:0 0 0 auto;margin:0;width:70vw;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0;background:var(--s-panel,#f6ead6);color:var(--s-formink,#493121);box-shadow:-12px 0 36px #21170e40;overflow-y:auto;overscroll-behavior:contain}
#records::backdrop{background:#17130e99}
#records[open]{animation:rules-enter .28s cubic-bezier(.16,1,.3,1)}
#records[open].is-closing{animation:rules-exit .22s ease-in forwards}
.rules-drawer-head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 22px 16px;background:var(--s-panel,#f6ead6);border-bottom:1px solid #9c805b45;z-index:1}
.wood-live .rules-drawer-head h2{font:600 22px/1.4 "Songti SC",serif;color:inherit;margin:0}
#records-close{border:0;border-radius:6px;background:transparent;color:inherit;min-height:44px;padding:8px 10px;font-size:14px;flex-shrink:0}
#records-close:hover{background:#99774e20}
.rules-drawer-content{padding:6px 22px max(24px,env(safe-area-inset-bottom))}
.wood-live #records p{font-size:15px;line-height:1.85;margin:18px 0;overflow-wrap:anywhere;color:inherit}
body:has(#records[open]){overflow:hidden}
@keyframes rules-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}
@keyframes rules-exit{to{transform:translateX(100%)}}
@media(max-width:500px){.rules-drawer-head{padding:14px 14px 10px}.wood-live .rules-drawer-head h2{font-size:20px}.rules-drawer-content{padding-inline:16px}.wood-live #records p{font-size:14px}}
@media(prefers-reduced-motion:reduce){#records[open],#records[open].is-closing{animation:none}}


.wood-live #records .table-wrap{overflow-x:auto}.wood-live #records table{white-space:nowrap}.wood-live #records .rules-drawer-content h2{margin-top:24px;font-size:17px}#records-status:empty{display:none}

.wood-live #wallet-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:70vw;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0;background:var(--s-panel,#f6ead6);color:var(--s-formink,#493121);box-shadow:-12px 0 36px #21170e40;overflow-y:auto;overscroll-behavior:contain}
#wallet-dialog::backdrop{background:#17130e99}
#wallet-dialog[open]{animation:rules-enter .28s cubic-bezier(.16,1,.3,1)}
#wallet-dialog[open].is-closing{animation:rules-exit .22s ease-in forwards}
.rules-drawer-head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 22px 16px;background:var(--s-panel,#f6ead6);border-bottom:1px solid #9c805b45;z-index:1}
.wood-live .rules-drawer-head h2{font:600 22px/1.4 "Songti SC",serif;color:inherit;margin:0}
#wallet-close{border:0;border-radius:6px;background:transparent;color:inherit;min-height:44px;padding:8px 10px;font-size:14px;flex-shrink:0}
#wallet-close:hover{background:#99774e20}
.rules-drawer-content{padding:6px 22px max(24px,env(safe-area-inset-bottom))}
.wood-live #wallet-dialog p{font-size:15px;line-height:1.85;margin:18px 0;overflow-wrap:anywhere;color:inherit}
body:has(#wallet-dialog[open]){overflow:hidden}
@keyframes rules-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}
@keyframes rules-exit{to{transform:translateX(100%)}}
@media(max-width:500px){.rules-drawer-head{padding:14px 14px 10px}.wood-live .rules-drawer-head h2{font-size:20px}.rules-drawer-content{padding-inline:16px}.wood-live #wallet-dialog p{font-size:14px}}
@media(prefers-reduced-motion:reduce){#wallet-dialog[open],#wallet-dialog[open].is-closing{animation:none}}


.wood-live .table-dock #records-button{margin-left:0}.wood-live .table-dock #wallet-open{margin-left:auto}
.wallet-balances{display:flex;gap:20px;flex-wrap:wrap;margin:20px 0}.wallet-balances>div{flex:1;min-width:90px;font-size:12px}.wallet-balances strong{display:block;font-size:22px;overflow-wrap:anywhere}
#wallet-form{display:grid;gap:12px}#wallet-form label{display:grid;gap:6px}#wallet-form input,#wallet-form select{width:100%;min-width:0;font-size:16px;padding:10px;border:1px solid #ad9068;border-radius:4px;background:#fff8ed;color:#493121}#wallet-form small{font-size:11px}#wallet-form button{margin-top:4px}#wallet-dialog .table-wrap{overflow:auto}#wallet-dialog table{white-space:nowrap}#wallet-message:empty{display:none}
@media(max-width:380px){.wood-live .table-dock{gap:2px;padding-inline:4px}.wood-live .table-dock .dock-button{width:34px;font-size:8px}.wood-live .table-dock .account-dock{padding-inline:2px;gap:3px}.wood-live .table-dock #online-open{padding-inline:3px}}
/* Larger, clean lettering on the stone countdown. */
.wood-live .board #round-timer,.wood-live .board #round-timer *{text-shadow:none}
.wood-live .board #round-timer #timer-label{font-size:14px}
.wood-live .board #round-timer .timer-number strong{font-size:42px}
.wood-live .board #round-timer .timer-number span{font-size:12px}

.wood-live #agent-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:70vw;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0;background:var(--s-panel,#f6ead6);color:var(--s-formink,#493121);box-shadow:-12px 0 36px #21170e40;overflow-y:auto;overscroll-behavior:contain}
#agent-dialog::backdrop{background:#17130e99}
#agent-dialog[open]{animation:rules-enter .28s cubic-bezier(.16,1,.3,1)}
#agent-dialog[open].is-closing{animation:rules-exit .22s ease-in forwards}
.rules-drawer-head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 22px 16px;background:var(--s-panel,#f6ead6);border-bottom:1px solid #9c805b45;z-index:1}
.wood-live .rules-drawer-head h2{font:600 22px/1.4 "Songti SC",serif;color:inherit;margin:0}
#agent-close{border:0;border-radius:6px;background:transparent;color:inherit;min-height:44px;padding:8px 10px;font-size:14px;flex-shrink:0}
#agent-close:hover{background:#99774e20}
.rules-drawer-content{padding:6px 22px max(24px,env(safe-area-inset-bottom))}
.wood-live #agent-dialog p{font-size:15px;line-height:1.85;margin:18px 0;overflow-wrap:anywhere;color:inherit}
body:has(#agent-dialog[open]){overflow:hidden}
@keyframes rules-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}
@keyframes rules-exit{to{transform:translateX(100%)}}
@media(max-width:500px){.rules-drawer-head{padding:14px 14px 10px}.wood-live .rules-drawer-head h2{font-size:20px}.rules-drawer-content{padding-inline:16px}.wood-live #agent-dialog p{font-size:14px}}
@media(prefers-reduced-motion:reduce){#agent-dialog[open],#agent-dialog[open].is-closing{animation:none}}

#agent-dialog input{width:100%;min-width:0;font-size:16px;padding:9px}#agent-dialog label{display:grid;gap:6px}#agent-configure{display:grid;gap:12px;margin-top:20px}#agent-copy{margin:10px 0}#agent-dialog .table-wrap{overflow:auto}#agent-dialog table{white-space:nowrap}.wood-live .table-dock #agent-open{margin-left:auto}.wood-live .table-dock:has(#agent-open:not([hidden])) #wallet-open{margin-left:0}
@media(max-width:600px){.wood-live .table-dock:has(#agent-open:not([hidden])) .dock-button{width:32px;font-size:8px}.wood-live .table-dock:has(#agent-open:not([hidden])){gap:2px}.wood-live .table-dock:has(#agent-open:not([hidden])) .account-dock .self-avatar{width:24px;height:28px}.wood-live .table-dock:has(#agent-open:not([hidden])) .account-dock{gap:2px;padding-inline:2px}}
/* Results remain on the coins, trend and result dialog. */
.wood-live #result-label{display:none}
.wood-live #bankers-dialog{width:min(800px,calc(100% - 24px));max-height:90dvh;overflow-y:auto;box-sizing:border-box;padding:22px}
.banker-list-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.banker-list-columns section{min-width:0;background:#eee0c9;border-radius:8px;padding:12px}.banker-list-columns section+section{background:#dce7df}.banker-list-columns h3{font-size:16px;margin:0 0 12px}.banker-list-columns ul{list-style:none;padding:0;margin:0;max-height:300px;overflow-y:auto}
.wood-live #banker-members li,.wood-live #banker-queue li{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #bca786;font-size:12px}.banker-list-columns li img{width:42px;height:42px;object-fit:cover;border-radius:6px}.banker-list-columns li div{flex:1;min-width:0;display:grid;gap:5px}.banker-list-columns li strong{overflow-wrap:anywhere;font-size:13px}.banker-list-columns li b{font-size:13px;white-space:nowrap}.banker-list-columns li small{font-size:10px}.wood-live .banker-list-columns li.banker-list-empty{min-height:100px;justify-content:center;border:0;color:#66543d}.wood-live #bankers-dialog .banker-all-note{font-weight:600}
@media(max-width:500px){.wood-live #bankers-dialog{padding:16px}.banker-list-columns{gap:8px}.banker-list-columns section{padding:8px}.wood-live #banker-members li,.wood-live #banker-queue li{flex-wrap:wrap;gap:6px}.banker-list-columns li img{width:32px;height:32px}.banker-list-columns li b{width:100%;text-align:right}.banker-list-columns li strong{font-size:12px}}
/* Banker roster follows the supplied two-column reference. */
.wood-live #bankers-dialog{background:#fff0cb;border:2px solid #bba06c;border-radius:18px;padding:0 24px 24px;width:min(900px,calc(100% - 24px))}
.wood-live #bankers-dialog .dialog-head{padding:18px 0;justify-content:center;position:relative}.wood-live #bankers-title{background:#edb44f;color:#563419;border-radius:0 0 22px 22px;padding:12px 36px;margin:-18px 0 0;font-weight:700}.wood-live #bankers-close{position:absolute;right:0;top:12px;min-height:44px}
.banker-conditions{display:flex;gap:20px;flex-wrap:wrap;font-size:14px;margin:8px 0}.banker-conditions strong{color:#a22c32}.banker-list-columns{margin:12px 0 24px;gap:10px}.banker-list-columns section{background:#a94e77;color:#fff9ea;min-height:270px}.banker-list-columns section+section{background:#427ca0}.banker-list-columns h3{color:#fff0a9;margin-bottom:12px}.banker-list-columns section+section h3{color:#d3ffff}
.wood-live #banker-members li,.wood-live #banker-queue li{background:#00000018;border:0;border-radius:6px;margin-bottom:8px;padding:10px;color:#fff9ea}.banker-list-columns li b{color:#ffe5a4}.wood-live .banker-list-columns li.banker-list-empty{background:none;min-height:210px;color:#fff9ea;text-align:center}.wood-live #bankers-dialog .banker-actions{display:flex;justify-content:center}.wood-live #bankers-dialog .banker-actions button{flex:0 1 240px;min-height:48px;margin:0;border:1px solid #704080;border-radius:24px;background:#914ba8;color:#fff;font-size:17px;text-align:center}.wood-live #bankers-dialog #banker-message:empty{display:none}
@media(max-width:500px){.wood-live #bankers-dialog{padding:0 12px 18px}.wood-live #bankers-title{font-size:20px;padding:12px 24px}.banker-conditions{font-size:12px;gap:10px}.banker-list-columns section{min-height:250px}}
.wood-live #bankers-dialog #banker-join,.wood-live #bankers-dialog #banker-leave{text-align:center}
.wood-live #bankers-dialog li.banker-list-empty{background:transparent;border:0}
.wood-live #bankers-dialog .banker-actions #banker-join,.wood-live #bankers-dialog .banker-actions #banker-leave{display:flex;align-items:center;justify-content:center;text-align:center}
.wood-live #bankers-dialog .banker-list-columns{grid-template-columns:minmax(0,1fr)}
.wood-live #bankers-dialog #banker-members li{flex-wrap:nowrap;gap:12px}
.wood-live #bankers-dialog #banker-members li b{width:auto;flex:none;text-align:right}
.wood-live #bankers-dialog #banker-members{max-height:300px}
.wood-live #bankers-dialog .dialog-head{padding-top:0;align-items:flex-start}
.wood-live #bankers-dialog #bankers-title{margin:0}
body.wood-live #bankers-dialog{padding-top:0}
/* Keep real focus for accessibility, but do not draw keyboard rings on touch-opened dialogs. */
html[data-dialog-input="pointer"] .wood-live dialog button:is(#close-auth,#records-close,#rules-close,#agent-close,#wallet-close,#skins-close,#bankers-close,.result-close):focus{outline:none;box-shadow:none}
html[data-dialog-input="keyboard"] .wood-live dialog button:is(#close-auth,#records-close,#rules-close,#agent-close,#wallet-close,#skins-close,#bankers-close,.result-close):focus{outline:2px solid #b87825;outline-offset:3px}
.dock-symbol svg{display:block;width:62%;height:62%;flex:none;pointer-events:none}
.wood-live #online-open .online-people-icon{display:block;width:18px;height:18px;margin:0 auto 2px;pointer-events:none}
.wood-live .banker-roster .banker-lane{align-self:start}

/* Clear the resting coins above the stone and center its countdown. */
.wood-live .board #round-timer{top:73%}
/* Gold serif countdown without a visible unit, as in the supplied reference. */
.wood-live .board #round-timer{gap:0;color:#ffeac0}
.wood-live .board #round-timer #timer-label{display:flex;align-items:center;justify-content:center;gap:9px;font:600 14px/1.4 GameSerif,"Songti SC",serif;letter-spacing:.22em;color:#fff0cb}
.wood-live .board #round-timer #timer-label:before,.wood-live .board #round-timer #timer-label:after{content:'';width:25px;height:1px;background:linear-gradient(90deg,transparent,#d9b664)}
.wood-live .board #round-timer #timer-label:after{transform:rotate(180deg)}
.wood-live .board #round-timer .timer-number{gap:0}
.wood-live .board #round-timer .timer-number strong{font:600 58px/1 "Times New Roman",Georgia,serif;font-variant-numeric:tabular-nums;letter-spacing:0;color:#ffe6aa;background:linear-gradient(#fff8dd 12%,#ffe4a4 65%,#deb96d);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 1px 3px #c4913930)}
@media(max-width:500px){.wood-live .board #round-timer .timer-number strong{font-size:52px}.wood-live .board #round-timer #timer-label{font-size:13px;gap:7px}.wood-live .board #round-timer #timer-label:before,.wood-live .board #round-timer #timer-label:after{width:22px}}
