:root{color-scheme:light;--ink:#273c33;--muted:#788076;--green:#285546;--green-hover:#1e4437;--paper:#f7f7ef;--line:#e1e4d7;--card:#ffffff;--wood:#e5c69a;--red:#a24835;--shadow:0 14px 38px rgba(43,56,40,.055)}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #a3b790;outline-offset:4px}button{transition:background .15s,box-shadow .15s,transform .15s}button:not(:disabled):active{transform:translateY(1px)}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.app-shell{width:min(1220px,100%);padding:0 48px;margin:auto}.site-header{height:108px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:13px;align-items:center}.brand>span:last-child{font-size:25px;font-weight:650;letter-spacing:3px;line-height:1.1}.brand small{display:block;font-size:10px;letter-spacing:2px;font-weight:450;margin-top:9px;color:var(--muted)}.brand-mark{width:41px;height:41px;display:grid;grid-template-columns:1fr 1fr;gap:5px;transform:rotate(-7deg);padding:3px}.brand-mark i{border-radius:50%;background:var(--green);box-shadow:inset -2px -3px 4px #0002}.brand-mark i:nth-child(2),.brand-mark i:nth-child(3){background:#fdfbf4;border:1px solid #c6cdbd;box-shadow:inset -2px -2px 3px #0001}.profile{display:flex;align-items:center;gap:11px;font-size:12px}.profile-name{margin-left:12px}.avatar{display:grid;place-items:center;width:34px;height:34px;border:1px solid #dce3d1;border-radius:50%;font-family:serif;font-size:15px;color:#65805b;background:#eaf0df}.connection{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.connection i{width:6px;height:6px;background:#628864;border-radius:50%}.connection.connecting i{background:#ba9858}.connection.offline i{background:var(--red)}
.lobby{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:36px;min-height:640px;padding:54px 0 64px}.eyebrow{font-size:12px;color:var(--green);letter-spacing:2px;display:flex;align-items:center;gap:9px;margin:0 0 24px}.eyebrow>span{width:7px;height:7px;background:#94ab7b;border-radius:50%}.lobby h1{font-size:clamp(40px,4.2vw,56px);font-weight:550;line-height:1.4;letter-spacing:2px;margin:0 0 23px}.lobby h1>span{color:#8da174}.intro{font-size:14px;line-height:1.9;color:var(--muted);margin:0 0 30px}.lobby-actions{width:300px;max-width:100%}.button{min-height:44px;border-radius:8px;padding:11px 18px;display:inline-flex;align-items:center;justify-content:center;gap:10px;line-height:1.4;border:1px solid transparent;font-size:13px;font-weight:550}.button.primary{color:#fff;background:var(--green)}.button.primary:hover:not(:disabled){background:var(--green-hover);box-shadow:0 4px 12px #28554620}.button.secondary{background:#fcfcf7;border-color:#d9dfd0;color:var(--ink)}.button.secondary:hover:not(:disabled){background:#edf0e5}.button.large{width:100%;padding:16px 22px;min-height:55px;justify-content:space-between;font-size:15px}.button.large span:last-child{font-size:23px;line-height:1}.join-form{margin-top:24px}.join-form>label{display:block;font-size:12px;color:var(--muted);margin-bottom:10px}.join-input-wrap{display:flex;gap:8px}.join-input-wrap input{width:0;flex:1;min-width:0;border:1px solid var(--line);border-radius:7px;padding:10px 13px;letter-spacing:2px;background:#fff;color:var(--ink);font-size:14px}.join-input-wrap input::placeholder{letter-spacing:1px;color:#9a9e94;font-size:12px}.join-input-wrap button{flex:none;padding:10px 15px}.lobby-note{font-size:10px;letter-spacing:.4px;color:#8d9487;margin-top:29px}.lobby-note span{margin:0 7px;color:#adb59f}.lobby-visual{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:32px 0 10px}.visual-caption{font-size:12px;letter-spacing:4px;color:#778369;margin-bottom:30px}.display-board{width:100%;max-width:400px;aspect-ratio:1;border-radius:13px;position:relative;transform:rotate(-8deg);background:linear-gradient(135deg,#ead3ac,#dec097);box-shadow:0 24px 30px -16px #765c4136,0 2px 0 2px #d6b98f,inset 0 0 0 9px #e7cda6}.display-grid{position:absolute;inset:9%;background-image:linear-gradient(to right,#71593755 1px,transparent 1px),linear-gradient(to bottom,#71593755 1px,transparent 1px);background-size:12.5% 12.5%;border-right:1px solid #71593755;border-bottom:1px solid #71593755}.demo-stone{position:absolute;width:8.8%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%)}.dark,.stone.black{background:radial-gradient(circle at 32% 25%,#505650 0,#262d29 48%,#19211e 90%);box-shadow:2px 4px 5px #0003,inset -1px -2px 3px #0004,inset 1px 1px 1px #fff2}.light,.stone.white{background:radial-gradient(circle at 33% 23%,#fff 0,#fbfaf3 52%,#dadbd3 100%);box-shadow:2px 4px 5px #0003,inset -1px -2px 2px #6c6d5429,inset 1px 1px 1px #fff}.ds1{top:39.75%;left:39.75%}.ds2{top:50%;left:39.75%}.ds3{top:50%;left:50%}.ds4{top:39.75%;left:50%}.ds5{top:60.25%;left:60.25%}.ds6{top:60.25%;left:50%}.ds7{top:29.5%;left:29.5%}.ds8{top:70.5%;left:70.5%}.ds9{top:50%;left:60.25%}.visual-label{display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;color:#7e8774;letter-spacing:1px;margin-top:46px}.visual-label>span:last-child{margin-left:6px}.tiny-stone{display:inline-block;width:15px;height:15px;flex:none;border-radius:50%;vertical-align:middle}.tiny-stone.black{background:radial-gradient(circle at 30% 25%,#525a50,#202921);box-shadow:0 1px 2px #0003}.tiny-stone.white{background:radial-gradient(circle at 30% 25%,white,#e4e6dc);border:1px solid #ced2c4;box-shadow:0 1px 2px #0001}.tiny-stone.neutral{background:#d8dfd0;border:1px dashed #9baa90}.notice{padding:13px 15px;background:#eaf0df;border:1px solid #dce6d0;border-radius:8px;line-height:1.6;font-size:12px;margin-top:18px;max-width:380px}.recover-link{margin-top:17px;display:block;background:none;border:0;padding:0;color:var(--green);font-size:12px;text-decoration:underline;text-underline-offset:4px}
.game{padding:27px 0 40px}.game-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:15px}.text-button{border:0;padding:4px 0;background:none;font-size:12px;color:var(--muted)}.text-button:hover{color:var(--green)}.text-button span{margin-right:4px}.game h1{font-size:25px;font-weight:550;margin:13px 0 0;letter-spacing:1px}.game h1>span{display:inline-block;font-size:12px;letter-spacing:2px;color:#6d7b65;font-weight:450;background:#e9efdf;border-radius:5px;padding:6px 9px;vertical-align:middle;margin-left:11px}.compact{min-height:38px;font-size:12px;padding:8px 14px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:33px;align-items:start}.board-column{min-width:0}.board-top{display:flex;align-items:center;justify-content:space-between;margin:0 3px 13px;font-size:12px;gap:8px}.board-status{display:flex;align-items:center;gap:8px}.muted{color:var(--muted);font-size:11px}.board-frame{background:linear-gradient(135deg,#ead0a6,#e3c192);border-radius:12px;padding:15px;box-shadow:0 5px 0 #d8b88b,0 12px 27px #70533313;border:1px solid #d4b58b;position:relative}.board{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));grid-template-rows:repeat(15,minmax(0,1fr));aspect-ratio:1;position:relative;isolation:isolate}.board::before{content:"";position:absolute;inset:calc(100% / 30);background-image:linear-gradient(to right,#755b397d 1px,transparent 1px),linear-gradient(to bottom,#755b397d 1px,transparent 1px);background-size:calc(100% / 14) calc(100% / 14);border-right:1px solid #755b397d;border-bottom:1px solid #755b397d;z-index:-1;pointer-events:none}.cell{padding:0;border:0;background:none;position:relative;min-width:0;min-height:0;display:grid;place-items:center;border-radius:4px;touch-action:manipulation;aspect-ratio:1;opacity:1!important;cursor:default}.cell .star{width:5px;height:5px;background:#69533a;border-radius:50%;position:absolute;z-index:-1}.cell .stone{width:87%;aspect-ratio:1;border-radius:50%;display:block;position:relative;animation:stone-in .12s ease-out}.cell.last .stone::after{content:"";width:16%;height:16%;border-radius:50%;background:#ddbd77;position:absolute;left:42%;top:42%}.cell.last .stone.white::after{background:#52765c}.cell.win .stone{outline:2px solid #7d985a;outline-offset:1px;box-shadow:0 0 0 3px #eddfb66e,2px 4px 5px #0003}.board.can-play .cell.empty{cursor:pointer}.board.can-play .cell.empty:hover{background:#faf9e34d}.cell:focus-visible{outline:2px solid var(--green);outline-offset:-1px}.board-bottom{display:flex;justify-content:space-between;font-size:10px;color:#8d927f;margin:16px 3px 0;gap:10px}.board-bottom>span{display:flex;align-items:center;gap:6px}.last-move-key{width:5px;height:5px;border-radius:50%;background:#69825a}.game-sidebar{display:flex;flex-direction:column;gap:16px}.status-panel,.players-panel{background:#ffffffa8;border:1px solid var(--line);border-radius:11px;padding:23px;box-shadow:var(--shadow)}.panel-kicker{font-size:10px;color:#82936d;letter-spacing:2px;margin-bottom:9px}.status-panel h2{font-size:24px;letter-spacing:1px;font-weight:550;margin:0 0 9px}.status-panel p{font-size:12px;line-height:1.8;color:var(--muted);margin:0;min-height:22px}.clock-panel{padding-top:17px;margin-top:18px;border-top:1px solid var(--line)}.clock-panel>span{font-size:11px;color:var(--muted)}.clock-panel>div{display:flex;align-items:baseline;gap:7px;margin:4px 0 8px}.clock-panel strong{font-size:49px;line-height:1.05;letter-spacing:-1px;font-weight:550;font-variant-numeric:tabular-nums}.clock-panel>div>span{font-size:12px;color:var(--muted)}progress{display:block;width:100%;height:4px;appearance:none;-webkit-appearance:none;border:0;background:#e4e9dc;color:#75945e;border-radius:3px;overflow:hidden}progress::-webkit-progress-bar{background:#e4e9dc}progress::-webkit-progress-value{background:#75945e;transition:width .25s}progress::-moz-progress-bar{background:#75945e}.clock-panel.urgent strong{color:var(--red)}.clock-panel.urgent progress::-webkit-progress-value{background:var(--red)}.clock-panel.urgent progress::-moz-progress-bar{background:var(--red)}.players-panel{padding:20px}.panel-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.panel-row h2{font-size:12px;font-weight:550;margin:0;letter-spacing:1px}.panel-row>span{font-size:11px;color:var(--muted)}.players{display:flex;flex-direction:column;gap:10px}.player{display:flex;align-items:center;gap:11px;padding:12px 10px;border:1px solid #e6eadd;border-radius:7px;min-height:64px;background:#fafbf5;position:relative}.player.active{border-color:#abc29b;background:#eef3e6}.player.active::after{content:"";width:5px;height:5px;border-radius:50%;background:#65854b;position:absolute;right:10px;top:15px}.player .tiny-stone{width:24px;height:24px}.player-body{min-width:0;flex:1}.player-name{font-size:12px;overflow-wrap:anywhere;line-height:1.5;padding-right:5px}.player-name .you{font-size:9px;background:#e3ebd8;color:#627751;border-radius:3px;padding:2px 4px;margin-left:5px;white-space:nowrap}.player-meta{font-size:10px;color:var(--muted);margin-top:4px}.player.vacant{border-style:dashed;background:transparent}.player.vacant .tiny-stone{opacity:.5}.color-picker{border-top:1px solid var(--line);margin-top:17px;padding-top:15px}.color-picker p{font-size:10px;color:var(--muted);line-height:1.6;margin:0 0 10px}.color-buttons{display:flex;gap:7px}.color-button{display:flex;align-items:center;justify-content:center;gap:5px;flex:1;white-space:nowrap;border:1px solid #d5ddca;background:#fff;border-radius:6px;padding:10px 6px;font-size:11px;min-height:42px;color:var(--ink)}.color-button small{font-size:9px;color:var(--muted)}.color-button:hover:not(:disabled){border-color:#8fab7b;background:#edf3e5}.full{width:100%}.danger{border-color:#dddfd0;background:transparent;color:#8c6e60}.danger:hover:not(:disabled){background:#f5e9e1;border-color:#d8b5a1;color:#9b4e32}.restart-panel{background:#eaf0e0;border:1px solid #dce6ce;border-radius:9px;padding:16px}.restart-panel>p{font-size:11px;line-height:1.8;color:#6f7d61;margin:0 0 12px}.restart-panel .text-button{margin-top:8px}.rules-card{display:flex;gap:10px;padding:3px 4px}.rules-icon{font-family:serif;border:1px solid #c6ceb9;border-radius:4px;display:grid;place-items:center;width:24px;height:26px;font-size:14px;color:#8b9777;flex:none;margin-top:1px}.rules-card p{font-size:10px;color:#8b9480;line-height:1.9;margin:0}.site-footer{border-top:1px solid var(--line);padding:23px 0;display:flex;justify-content:space-between;gap:15px;font-size:10px;letter-spacing:.6px;color:#97a08b}.footer-dot{margin:0 6px}.message{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;padding:12px 18px;background:#293d33;color:#fff;font-size:13px;line-height:1.6;box-shadow:0 5px 25px #1e2d2826;border-radius:9px;z-index:20}.message.error{background:#904c39}dialog{padding:28px;border:1px solid var(--line);border-radius:13px;max-width:calc(100% - 40px);width:400px;background:#fafbf5;color:var(--ink);box-shadow:0 20px 70px #0002}dialog::backdrop{background:#24372b70;backdrop-filter:blur(3px)}dialog .eyebrow{font-size:10px;margin-bottom:17px}dialog h2{font-size:22px;font-weight:550;margin:0 0 14px}dialog p:not(.eyebrow){font-size:13px;line-height:1.8;color:var(--muted);margin:0}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.dialog-actions button{min-width:106px}
.lobby-copy{min-width:0}.connection-alert{margin-top:18px;background:#f3e9d5;border:1px solid #e1d2af;border-radius:8px;padding:12px 15px;font-size:12px;line-height:1.7;color:#86673e}.clipboard-helper{position:fixed;left:-9999px;top:0;width:1px;height:1px;opacity:0}
@keyframes stone-in{from{transform:scale(.84);opacity:.4}to{transform:scale(1);opacity:1}}@media(min-width:1100px){.board-frame{padding:21px}.board-column{max-width:710px}}@media(max-width:900px){.app-shell{padding:0 28px}.lobby{gap:20px;min-height:570px}.display-board{max-width:320px}.lobby h1{font-size:42px}.game-layout{grid-template-columns:minmax(0,1fr) 244px;gap:20px}.status-panel,.players-panel{padding:17px}.color-button small{display:none}.status-panel h2{font-size:22px}.clock-panel strong{font-size:42px}.board-frame{padding:11px}.game-sidebar{gap:13px}}
@media(max-width:700px){.app-shell{padding:0 20px}.site-header{height:82px}.brand>span:last-child{font-size:22px}.brand-mark{width:35px;height:35px;gap:4px}.brand small{font-size:9px;margin-top:6px}.profile-name{font-size:11px;margin-left:0}.avatar{width:29px;height:29px;font-size:13px}.connection>span{display:none}.profile{gap:8px}.lobby{min-height:auto;grid-template-columns:1fr;gap:24px;padding:42px 0}.lobby-copy{text-align:center}.eyebrow{justify-content:center;font-size:10px;margin-bottom:20px}.lobby h1{font-size:42px;line-height:1.35;letter-spacing:2px;margin-bottom:18px}.intro{font-size:12px;margin-bottom:25px;line-height:1.8}.lobby-actions{margin:auto;width:320px}.join-form{text-align:left;margin-top:21px}.lobby-note{margin-top:24px}.lobby-visual{display:none}.lobby .notice{margin:18px auto 0;text-align:left}.recover-link{margin:18px auto 0}.site-footer{font-size:9px;padding:20px 0}.site-footer>span:last-child{display:none}.game{padding:19px 0 27px}.game-heading{margin-bottom:20px}.game h1{font-size:22px;margin-top:10px}.game h1>span{font-size:11px;padding:5px 7px;margin-left:7px;letter-spacing:1px}.compact{padding:8px 10px;font-size:11px;min-height:36px;gap:5px}.game-layout{grid-template-columns:1fr;gap:22px}.board-frame{padding:12px}.board-top{margin-bottom:12px;font-size:11px}.board-bottom{font-size:9px;margin-top:14px}.game-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:12px}.status-panel{padding:18px;box-shadow:none}.players-panel{padding:16px 12px;box-shadow:none}.panel-row{margin-bottom:12px}.player{min-height:60px;padding:10px 7px;gap:7px}.player .tiny-stone{width:20px;height:20px}.player-name{font-size:10px}.player-name .you{font-size:8px;margin-left:4px}.player-meta{font-size:9px}.status-panel h2{font-size:21px}.status-panel p{font-size:10px;line-height:1.9}.panel-kicker{font-size:9px;margin-bottom:10px}.clock-panel{margin-top:14px;padding-top:13px}.clock-panel strong{font-size:45px}.clock-panel>span{font-size:10px}.clock-panel>div{margin:7px 0 10px}.color-picker{margin-top:12px;padding-top:11px}.color-picker p{font-size:9px;margin-bottom:8px}.color-buttons{gap:5px}.color-button{font-size:10px;padding:8px 4px;gap:4px;min-height:38px}.color-button .tiny-stone{width:12px;height:12px}.restart-panel{grid-column:1 / -1;padding:13px 16px}.restart-panel p{font-size:11px}.game-sidebar>.danger{grid-column:1 / -1}.rules-card{grid-column:1 / -1;justify-content:center;margin-top:3px}.rules-card p{font-size:10px}.rules-card br:last-of-type{display:none}.rules-icon{margin-top:6px}dialog .eyebrow{justify-content:flex-start}}
@media(max-width:370px){.app-shell{padding:0 13px}.profile-name{max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game h1{font-size:20px}.game h1>span{font-size:10px;letter-spacing:0;margin-left:5px}.game-layout{gap:19px}.board-frame{padding:8px;border-radius:9px}.game-sidebar{gap:9px}.status-panel{padding:16px 13px}.players-panel{padding:14px 9px}.status-panel h2{font-size:19px}.player{gap:6px}.player .tiny-stone{width:17px;height:17px}.player-name{font-size:9px}.player-meta{font-size:8px}.player-name .you{margin-left:3px;padding:1px 3px}.color-button{font-size:9px;gap:3px}.color-picker p{font-size:8px}.panel-row h2{font-size:11px}.board-top{font-size:10px}.muted{font-size:10px}.lobby h1{font-size:39px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Readable game information and a clock that stays beside the mobile play area. */
body{font-size:16px}
.brand small,.connection,.lobby-note,.visual-label,.visual-caption,.eyebrow,.join-form>label,.join-input-wrap input::placeholder,.game h1>span,.muted,.board-bottom,.panel-kicker,.clock-panel>span,.clock-panel>div>span,.panel-row>span,.player-meta,.player-name .you,.color-picker p,.color-button small,.rules-card p,.site-footer,dialog .eyebrow{font-size:12px}
.profile-name,.button,.compact,.text-button,.recover-link,.board-top,.status-panel p,.panel-row h2,.player-name,.color-button,.restart-panel>p,.notice,.connection-alert,dialog p:not(.eyebrow){font-size:14px}
.intro,.join-input-wrap input{font-size:16px}
.color-button{min-height:44px}
.color-buttons{flex-wrap:wrap}
.rules-card p{color:#737d6b}
.game-layout{grid-template-columns:minmax(0,1fr) 310px}
@media(min-width:701px){.board-column{width:100%;max-width:min(100%,calc(100dvh - 290px));justify-self:center}.game-layout{column-gap:28px}.board-frame{padding:14px}}
@media(min-width:701px) and (max-width:900px){.game-layout{grid-template-columns:minmax(0,1fr) 260px;column-gap:18px}.status-panel,.players-panel{padding:15px}.color-button small{display:none}}
@media(max-width:700px){
  .game-layout{display:flex;flex-direction:column;gap:16px}
  .game-sidebar{display:contents}
  .status-panel{order:0;width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:13px 16px}
  .status-panel .panel-kicker{grid-column:1;grid-row:1;margin:0;letter-spacing:1px}
  .status-panel h2{grid-column:1;grid-row:2;margin:0;font-size:21px}
  .status-panel p{grid-column:1;grid-row:3;font-size:12px;line-height:1.6}
  .clock-panel{grid-column:2;grid-row:1 / span 3;align-self:center;min-width:74px;border:0;padding:0;margin:0}
  .clock-panel>div{margin:4px 0 6px}
  .clock-panel strong{font-size:36px}
  .board-column{order:1;width:100%;max-width:none}
  .players-panel{order:2;width:100%;padding:16px}
  .players{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .player{padding:10px 8px;gap:7px}
  .player .tiny-stone{width:19px;height:19px}
  .player-name{font-size:14px}
  .player-meta,.player-name .you{font-size:12px}
  .player-name .you{margin-left:3px;padding:1px 3px}
  .color-picker p{font-size:12px}
  .color-button{font-size:14px}
  .restart-panel,.game-sidebar>.danger{order:3;width:100%}
  .rules-card{order:4;width:100%;margin-top:0}
  .rules-card p{font-size:12px}
  .site-footer{font-size:12px}
  .profile-name{font-size:12px}
  .brand small{font-size:12px;letter-spacing:1px}
  .lobby .eyebrow{font-size:12px}
  .lobby .intro{font-size:16px}
  .game h1>span{font-size:12px;letter-spacing:0}
  .compact{font-size:14px;min-height:44px}
  .board-top{font-size:14px}
  .board-bottom,.muted{font-size:12px}
}
@media(max-width:370px){.profile{gap:6px}.profile-name{max-width:72px}.brand{gap:8px}.avatar{width:25px;height:25px}.game-heading{gap:8px}.game h1{font-size:20px}.game h1>span{margin-left:0}.compact{padding:8px}.status-panel{padding:12px}.players-panel{padding:13px}.player{gap:5px;padding:9px 6px}.player .tiny-stone{width:16px;height:16px}.player-name{font-size:14px}.player-meta,.color-picker p,.panel-row h2{font-size:12px}}
/* Game hall and readable native board / card surfaces. */
.lobby{display:block;padding:48px 0 34px;min-height:0}.lobby-intro{display:flex;justify-content:space-between;align-items:center;gap:28px}.lobby h1{font-size:clamp(32px,4.3vw,49px);line-height:1.35;letter-spacing:2px;margin:0 0 15px}.lobby .eyebrow{margin-bottom:18px;font-size:12px}.lobby .intro{font-size:15px;line-height:1.8;margin:0;color:#748070}.lobby-seal{display:grid;place-items:center;flex:none;width:72px;height:82px;transform:rotate(7deg);font-family:serif;font-size:23px;line-height:1.25;letter-spacing:4px;text-align:center;color:#7b9270;border:2px solid #a5b299;border-radius:8px;box-shadow:inset 0 0 0 4px var(--paper),inset 0 0 0 5px #bdc7b0;margin-right:12px}.mobile-break{display:none}.game-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:30px}.game-option{text-align:left;border:1px solid #dfe3d5;background:#fffdf8;border-radius:14px;overflow:hidden;padding:0 0 20px;box-shadow:0 5px 20px #203d2910;color:var(--ink);transition:border-color .15s,box-shadow .15s}.game-option:hover:not(:disabled){border-color:#91a78a;box-shadow:0 10px 28px #203d2914}.game-option.selected{border:2px solid #517258;padding-bottom:19px;box-shadow:0 0 0 3px #dce7d080}.option-visual{display:block;height:166px;position:relative;overflow:hidden;background:#ede0c8;margin-bottom:21px}.selected .option-visual{height:165px}.option-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 20px}.option-heading strong{font-size:22px;letter-spacing:1px;font-weight:600}.option-check{display:grid;place-items:center;width:22px;height:22px;font-size:14px;border:1px solid #d4ddce;border-radius:50%;color:transparent}.selected .option-check{background:var(--green);color:#fff;border-color:var(--green)}.option-description{display:block;padding:0 20px;margin:8px 0 15px;font-size:14px;color:#788070;line-height:1.5}.option-meta{display:block;padding:0 20px;font-size:12px;color:#829077}.option-meta i{font-style:normal;margin:0 8px}.gomoku-preview{background:linear-gradient(125deg,#eddbbb,#e2c59b)}.preview-grid{position:absolute;inset:-10% -10%;background-image:linear-gradient(90deg,#9079523d 1px,transparent 1px),linear-gradient(#9079523d 1px,transparent 1px);background-size:36px 36px;transform:rotate(-9deg) scale(1.1)}.preview-stone{display:block;position:absolute;width:35px;height:35px;border-radius:50%;box-shadow:3px 5px 7px #604c4930}.preview-stone.black{background:radial-gradient(circle at 30% 20%,#606a5e,#253126 75%)}.preview-stone.white{background:radial-gradient(circle at 30% 20%,#fff,#e9e8dc 75%)}.p1{left:32%;top:39%}.p2{left:42%;top:60%}.p3{left:46%;top:33%}.p4{left:56%;top:53%}.p5{left:60%;top:27%}.xiangqi-preview{background:linear-gradient(120deg,#e7ceb0,#eedbbd)}.xiangqi-preview .preview-grid{opacity:.7;background-size:48px 48px;transform:rotate(0)}.preview-chess{position:absolute;display:grid;place-items:center;font-style:normal;width:68px;height:68px;background:#f6e2bc;border:4px double currentColor;border-radius:50%;box-shadow:2px 6px 0 #c6a777,4px 9px 14px #725a402e;font-family:serif;font-size:40px;line-height:1;z-index:1}.preview-chess.red{color:#a74330;left:27%;top:40%;transform:rotate(-9deg)}.preview-chess.black{color:#343e32;left:52%;top:17%;transform:rotate(12deg)}.preview-river{position:absolute;left:0;right:0;top:73px;background:#ead5b5;font-family:serif;font-size:20px;line-height:39px;text-align:center;letter-spacing:10px;color:#9c815b}.ddz-preview{background:radial-gradient(ellipse at 50% 40%,#597a60,#2d5441)}.preview-card{position:absolute;display:block;font-style:normal;top:35px;width:65px;height:95px;background:#fffcef;color:#294535;border:1px solid #dedccc;border-radius:7px;padding:9px;font-size:25px;line-height:1.1;font-weight:650;box-shadow:1px 5px 14px #12352142}.preview-card span{display:block;font-size:26px;margin-top:8px;text-align:center}.preview-card.c1{left:27%;transform:rotate(-19deg)}.preview-card.c2{left:43%;top:27px;color:#b0543e;transform:rotate(0deg)}.preview-card.c3{left:58%;transform:rotate(17deg);color:#b0543e}.lobby-bottom{display:grid;grid-template-columns:1fr 1fr;gap:40px;border-top:1px solid var(--line);margin-top:30px;padding-top:25px;align-items:end}.create-panel{max-width:340px}.create-panel>span{display:block;font-size:12px;color:var(--muted);margin-bottom:10px}.create-panel .button.large{min-height:50px;padding:13px 18px;font-size:15px}.join-panel{border-left:1px solid var(--line);padding-left:40px}.join-form{margin-top:0}.join-form>label{font-size:12px;line-height:1.6}.join-input-wrap input{min-height:50px}.join-input-wrap button{min-height:50px;font-size:14px}.lobby-note{text-align:center;font-size:12px;line-height:1.8;margin:26px 0 0}.lobby .notice{max-width:none;font-size:14px}.lobby .recover-link{font-size:14px;margin-top:20px}.game h1>span#game-name{display:inline;font-size:25px;letter-spacing:1px;font-weight:550;background:none;padding:0;margin:0;color:var(--ink)}.game h1>span.room-code{font-size:12px;letter-spacing:1px;font-weight:450}.tiny-stone.red{background:radial-gradient(circle at 30% 25%,#d77a55,#9a4232);border:1px solid #a44e37;box-shadow:0 1px 2px #0002}.tiny-stone.green{background:#6d8e67}.board-status{min-width:0}.board-status>span:last-child{overflow-wrap:anywhere}.board-top>.muted{white-space:nowrap}.rules-card{display:block;padding:14px 4px;border-top:1px solid var(--line);font-size:12px;color:#738169}.rules-card summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:14px;color:#617651}.rules-card summary::-webkit-details-marker{display:none}.rules-card[open] summary{margin-bottom:12px}.rules-card[open] summary>span{transform:rotate(45deg)}.rules-card p{font-size:12px;line-height:1.9;margin:0 0 9px;color:#737d6b}.rules-card p:last-child{margin-bottom:0}.player-name{font-size:14px}.player-meta{font-size:12px;line-height:1.7}.color-buttons{flex-direction:column}.color-button{font-size:14px}.site-footer{font-size:12px}.game-heading h1{line-height:1.5}.status-panel h2{font-size:23px}.panel-kicker{letter-spacing:1px}.restart-panel>p{font-size:14px}
/* Xiangqi keeps pieces upright; the client orders cells from the viewer perspective. */
.xiangqi-frame{padding:10px}.xiangqi-board-wrap{position:relative;aspect-ratio:9 / 10;isolation:isolate}.xiangqi-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}.xiangqi-board{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));grid-template-rows:repeat(10,minmax(0,1fr));width:100%;height:100%;aspect-ratio:9 / 10}.chess-cell{border:0;background:transparent;min-width:0;min-height:0;padding:4%;aspect-ratio:1;position:relative;display:grid;place-items:center;border-radius:9%;touch-action:manipulation;opacity:1!important;cursor:default}.chess-piece{width:94%;height:94%;display:grid;place-items:center;font-family:"STKaiti","KaiTi","Noto Serif CJK SC",serif;font-size:clamp(19px,3.1vw,38px);line-height:1;border:3px double currentColor;border-radius:50%;background:radial-gradient(circle at 40% 30%,#ffe9bf,#edcb94);box-shadow:0 2px 0 #bf945e,1px 4px 5px #72573736;position:relative}.chess-piece.red{color:#a7412e}.chess-piece.black{color:#303c30}.chess-cell.selected{background:#edf6c591}.chess-cell.selected .chess-piece{outline:3px solid #5f7f46;outline-offset:1px;transform:translateY(-2px)}.chess-cell.legal{cursor:pointer}.chess-cell.legal .chess-piece{outline:3px solid #719447;outline-offset:0}.legal-dot{width:24%;height:24%;border-radius:50%;background:#52773fd4;box-shadow:0 0 0 4px #c6d5a368}.chess-cell.last-from{background:#74904d32}.chess-cell.last-to::after{position:absolute;content:"";width:7px;height:7px;background:#617f3e;border:1px solid #fff1bc;right:5%;bottom:5%;border-radius:50%}.chess-cell.checked .chess-piece{box-shadow:0 0 0 3px #d36140,0 3px 5px #72573736}.xiangqi-board.can-play .chess-cell:hover{background:#fff3ce7d}.chess-cell:focus-visible{outline:2px solid #4b6e40;outline-offset:-2px}.xiangqi-layout .board-column{max-width:min(100%,calc((100dvh - 290px) * .9))}
/* Three real players, with only the viewer's own hand on screen. */
.ddz-layout .board-column{max-width:none}.card-table{border:8px solid #c5a77c;border-radius:23px;background:radial-gradient(ellipse at 50% 40%,#416c54,#254d3a);box-shadow:0 4px 0 #ab8d62,0 10px 24px #223c2d17;min-height:334px;color:#f2f3dc;padding:18px 20px 14px;position:relative}.opponents{display:flex;justify-content:space-between;gap:12px}.opponent{display:flex;align-items:center;gap:8px;min-width:0;max-width:48%;padding:9px 10px;border:1px solid #71957869;background:#244c36a1;border-radius:9px;font-size:14px}.opponent.active{border-color:#d1d798;box-shadow:0 0 0 2px #ccd59821}.opponent strong{font-size:14px;display:block;overflow-wrap:anywhere;font-weight:550;line-height:1.5}.opponent-detail{font-size:12px;display:block;color:#c9d9bd;line-height:1.7}.opponent.vacant{border-style:dashed;background:transparent;color:#c3d3b6;font-size:12px}.role-badge{width:27px;height:27px;flex:none;display:grid;place-items:center;font-size:14px;line-height:1;border-radius:50%;background:#e7ecca;color:#406039;border:1px solid #b0c297}.role-badge.landlord{background:#edcc87;color:#654926;border-color:#f1d69b}.role-badge.farmer{background:#c9ddae;color:#405e33}.role-badge.pending{background:#d3dec4;color:#678357}.table-middle{text-align:center;padding-top:16px}.bottom-label{font-size:12px;color:#c5d5b8;letter-spacing:2px;margin-bottom:7px}.bottom-cards{display:flex;gap:5px;justify-content:center}.playing-card{display:flex;flex-direction:column;justify-content:space-between;flex:none;width:42px;min-height:58px;border:1px solid #ded8c6;background:linear-gradient(140deg,#fffef8,#f4f0df);border-radius:6px;padding:4px 6px;color:#273f31;font-family:Georgia,"Times New Roman",serif;line-height:1;box-shadow:0 2px 3px #18271922;user-select:none;text-align:left;position:relative;opacity:1!important}.playing-card .card-rank{font-size:20px;font-weight:650;line-height:1.05}.playing-card .card-suit{font-size:22px;line-height:1;text-align:right}.playing-card.red-card{color:#b34835}.playing-card.joker .card-rank{font-family:"Microsoft YaHei",sans-serif;font-size:13px;white-space:nowrap}.playing-card.joker .card-suit{font-size:24px}.playing-card.card-back{display:grid;place-items:center;background:repeating-linear-gradient(45deg,#42634d 0px,#42634d 3px,#547656 3px,#547656 4px);border:3px solid #eee9d2;color:#eff2d9;font-size:18px}.table-notice{font-size:13px;line-height:1.7;color:#e6eacc;margin:13px 0 8px;min-height:22px;overflow-wrap:anywhere}.last-play{min-height:75px}.last-play-label{font-size:12px;color:#d6dfc7;margin-bottom:9px}.public-cards{display:flex;justify-content:center;flex-wrap:wrap;gap:3px;padding-bottom:3px}.public-cards .playing-card{width:30px;min-height:43px;border-radius:4px;padding:3px}.public-cards .card-rank{font-size:16px}.public-cards .card-suit{font-size:17px}.public-cards .joker .card-rank{font-size:12px;writing-mode:vertical-rl}.public-cards .joker .card-suit{font-size:15px}.pass-notice{font-size:12px;color:#c8d7b5;margin-top:9px}.free-lead{font-size:12px;color:#cfddc0;margin:18px 0 0;line-height:1.7}.bid-history{font-size:12px;color:#cbdcbb;line-height:1.8;margin-top:6px;overflow-wrap:anywhere}.own-seat{margin-top:14px;text-align:center;font-size:12px;color:#d6e1c7;line-height:1.7}.hand-panel{border:1px solid #dce2d2;border-radius:10px;padding:16px;background:#fffdf7;margin-top:18px}.hand-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px;line-height:1.7}.hand-heading strong{font-weight:550}.hand-heading strong span{font-weight:400;font-size:12px;color:#758469;margin-left:5px}.hand-heading>span{font-size:12px;color:#788470}.hand{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;padding-top:19px;margin-bottom:17px}.hand .playing-card{width:100%;min-width:0;aspect-ratio:2 / 3;min-height:58px;padding:5px;border-radius:5px;cursor:pointer;transition:transform .13s,outline-color .13s;touch-action:manipulation}.hand .playing-card.selected{transform:translateY(-8px);outline:2px solid #729059;outline-offset:1px;background:#f3f7df}.hand .playing-card:disabled{cursor:default;filter:saturate(.7)}.hand .playing-card:focus-visible{outline:3px solid #839d6e;outline-offset:1px;z-index:1}.hand .card-rank{font-size:22px}.hand .card-suit{font-size:24px}.hand .joker .card-rank{font-size:12px}.hand .joker .card-suit{font-size:23px}.empty-hand{grid-column:1 / -1;font-size:14px;color:#8a937d;text-align:center;padding:10px 0;line-height:1.8;margin:0}.ddz-actions{display:flex;align-items:center;justify-content:center;gap:9px}.ddz-actions .button{min-width:74px;font-size:14px}.ddz-actions .text-button{font-size:14px;margin-right:auto}.hand-help{font-size:12px;color:#7e8873;line-height:1.8;margin:13px 0 0;text-align:center}.ddz-layout .board-bottom{font-size:12px}.ddz-layout .player{gap:8px}.ddz-layout .player-name{font-size:14px}.ddz-layout .player-meta{font-size:12px}
@media(min-width:1100px){.game-options{gap:24px}.option-visual{height:176px}.selected .option-visual{height:175px}.ddz-layout{grid-template-columns:minmax(0,1fr) 288px;gap:25px}.xiangqi-frame{padding:10px}}
@media(max-width:900px) and (min-width:701px){.game-options{gap:13px}.option-heading,.option-description,.option-meta{padding-left:15px;padding-right:15px}.option-heading strong{font-size:20px}.option-visual{height:143px}.selected .option-visual{height:142px}.preview-chess{width:56px;height:56px;font-size:34px}.preview-card{width:57px;height:83px;font-size:22px;top:30px}.preview-card.c2{top:22px}.lobby h1{font-size:38px}.card-table{padding:12px 10px;border-width:6px}.opponent{gap:5px;padding:7px 6px}.opponent .role-badge{width:22px;height:22px;font-size:12px}.hand-panel{padding:13px}.hand{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.ddz-actions{gap:6px}.ddz-actions .button{min-width:60px;padding:10px}.chess-piece{font-size:24px}}
@media(max-width:700px){.lobby{padding:32px 0 28px}.lobby-intro{align-items:start;gap:15px}.lobby .eyebrow{justify-content:flex-start;font-size:12px;letter-spacing:1px;margin-bottom:14px}.lobby h1{font-size:32px;letter-spacing:1px;line-height:1.45;margin-bottom:13px}.lobby .intro{font-size:14px;line-height:1.8}.lobby-seal{width:53px;height:67px;font-size:19px;letter-spacing:2px;margin:6px 3px 0 0}.mobile-break{display:block}.game-options{grid-template-columns:1fr;gap:12px;margin-top:25px}.game-option{position:relative;min-height:126px;padding:17px 17px 14px 132px;border-radius:11px;display:flex;flex-direction:column;justify-content:center}.game-option.selected{padding:16px 16px 13px 131px}.option-visual,.selected .option-visual{position:absolute;top:0;left:0;bottom:0;width:113px;height:100%;margin:0}.option-heading,.option-description,.option-meta{padding:0}.option-heading strong{font-size:20px}.option-check{width:20px;height:20px;font-size:12px}.option-description{margin:6px 0 9px;font-size:14px}.option-meta{font-size:12px;line-height:1.6}.option-meta i{margin:0 4px}.preview-grid{background-size:27px 27px}.preview-stone{width:25px;height:25px}.p1{left:23%;top:36%}.p2{left:34%;top:59%}.p3{left:49%;top:31%}.p4{left:60%;top:54%}.p5{left:75%;top:26%}.preview-chess{width:49px;height:49px;font-size:29px}.preview-chess.red{left:13%;top:49%}.preview-chess.black{left:44%;top:19%}.preview-river{font-size:14px;line-height:27px;letter-spacing:3px;top:55px}.preview-card{width:43px;height:66px;font-size:18px;padding:5px;border-radius:5px;top:38px}.preview-card span{font-size:20px;margin-top:7px}.preview-card.c1{left:14%;transform:rotate(-18deg)}.preview-card.c2{left:31%;top:31px}.preview-card.c3{left:49%;transform:rotate(18deg)}.lobby-bottom{grid-template-columns:1fr;gap:22px;margin-top:24px;padding-top:20px}.create-panel{max-width:none}.join-panel{border-left:0;padding:0}.join-form{margin:0}.lobby-note{font-size:12px;margin-top:22px}.lobby .recover-link{margin-left:0;margin-right:0;font-size:14px}.game h1>span#game-name{font-size:22px}.game h1>span.room-code{margin-left:5px;font-size:12px}.game-heading{align-items:center;gap:8px}.game-heading h1{margin-top:8px}.game h1{letter-spacing:0}.game-layout{gap:15px}.xiangqi-layout .board-column{max-width:none}.xiangqi-frame{padding:7px}.chess-piece{font-size:clamp(20px,6.5vw,36px);border-width:3px}.chess-cell.selected .chess-piece{outline-width:2px}.chess-cell.legal .chess-piece{outline-width:2px}.status-panel h2{font-size:21px}.status-panel p{font-size:12px}.clock-panel>span{font-size:12px}.color-buttons{flex-direction:row}.rules-card{padding:13px 3px}.rules-card summary{font-size:14px}.rules-card p{font-size:12px}.board-bottom{line-height:1.6}.players.three-players{grid-template-columns:1fr}.players.three-players .player{min-height:55px}.players.three-players .player-body{display:flex;align-items:center;justify-content:space-between;gap:10px}.players.three-players .player-name{font-size:14px}.players.three-players .player-meta{margin:0;font-size:12px;text-align:right}.card-table{min-height:310px;padding:13px 12px 11px;border-width:6px;border-radius:18px}.opponent{gap:6px;padding:8px;max-width:49%}.opponent strong{font-size:14px}.opponent-detail{font-size:12px}.role-badge{width:24px;height:24px;font-size:12px}.table-middle{padding-top:15px}.table-notice{font-size:12px}.hand-panel{padding:13px;margin-top:16px}.hand{grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;margin-bottom:14px;padding-top:20px}.hand .playing-card{min-height:56px;padding:4px}.hand .card-rank{font-size:21px}.hand .card-suit{font-size:22px}.hand .joker .card-rank{font-size:12px;writing-mode:vertical-rl}.hand .joker .card-suit{font-size:17px}.ddz-actions{gap:7px}.ddz-actions .button{min-width:63px;padding:10px 12px}.ddz-actions .text-button{font-size:14px}.hand-help{font-size:12px}.hand-heading{font-size:14px}.site-footer{font-size:12px}}
@media(max-width:390px){.lobby h1{font-size:29px}.lobby-seal{width:45px;height:59px;font-size:17px}.game-option{padding-left:115px;min-height:126px}.game-option.selected{padding-left:114px}.option-visual,.selected .option-visual{width:99px}.option-heading strong{font-size:19px}.option-description{font-size:14px;letter-spacing:0}.option-meta{font-size:12px}.game-heading h1{display:flex;flex-wrap:wrap;gap:2px 7px}.game h1>span#game-name{font-size:20px}.game h1>span.room-code{margin-left:0;font-size:12px;padding:3px 5px}.compact{font-size:14px;padding:8px}.game-heading>.compact{flex-shrink:0}.board-top{font-size:14px;margin-left:0;margin-right:0}.board-status{gap:5px}.board-top .tiny-stone{width:12px;height:12px}.card-table{padding:11px 8px;border-width:5px}.opponent{padding:7px 5px;gap:5px}.opponent .role-badge{width:21px;height:21px}.opponent strong{font-size:12px}.opponent-detail{font-size:12px}.hand-panel{padding:11px}.hand{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.hand .playing-card{min-height:54px}.hand .card-rank{font-size:19px}.hand .card-suit{font-size:21px}.ddz-actions{gap:5px}.ddz-actions .button{min-width:54px;padding:10px 9px;font-size:14px}.ddz-actions .text-button{font-size:14px}.players.three-players .player-body{gap:5px}.players.three-players .player-meta{font-size:12px}.chess-piece{font-size:21px}.lobby-note span{margin:0 3px}.board-bottom{font-size:12px}.game h1>span#game-name{background:none}}

/* Four games share the hall; runfast keeps a persistent room ledger. */
.game-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.pdk-preview{background:radial-gradient(ellipse at 50% 40%,#b58b57,#805d3f)}
.pdk-preview .preview-card.c3{color:#294535}
.pdk-layout .card-table{min-height:270px}
.pdk-layout .table-middle{padding-top:22px}
.pdk-layout .last-play{min-height:95px}
.single-alert{color:#f4d392;font-weight:600}
.player-meta .single-alert{color:#a36427}
.ledger-panel{margin-top:20px;border:1px solid #d7dfce;border-radius:11px;background:#fffdf7;overflow:hidden}
.ledger-panel>summary{display:flex;align-items:center;gap:12px;padding:16px;list-style:none;cursor:pointer;font-size:15px;font-weight:550;color:var(--ink);background:#f1f4e9}
.ledger-panel>summary::-webkit-details-marker{display:none}
.ledger-panel>summary #ledger-count{margin-left:auto;font-size:12px;font-weight:400;color:#728363}
.ledger-toggle{font-size:19px;line-height:1;transition:transform .15s}
.ledger-panel[open] .ledger-toggle{transform:rotate(180deg)}
.ledger-content{padding:15px}
.ledger-help{font-size:12px;line-height:1.8;color:#79856f;margin:0 0 15px}
.ledger-live-bombs{font-size:12px;line-height:1.7;color:#8a572f;background:#fff7e8;border:1px solid #eddbb4;border-radius:8px;padding:8px 10px;margin:0 0 12px;font-variant-numeric:tabular-nums}
.ledger-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ledger-player{min-width:0;background:#f6f5ed;border:1px solid #e2e5d8;border-radius:8px;padding:12px}
.ledger-player.is-me{background:#eff4e7;border-color:#b9cca8}
.ledger-player-name{font-size:13px;line-height:1.5;font-weight:550;overflow-wrap:anywhere;min-height:20px}
.ledger-player-name .you{margin-left:4px;font-size:11px}
.ledger-caption{display:block;font-size:11px;color:#818b74;margin-top:10px}
.ledger-net{display:block;font-size:23px;line-height:1.5;font-weight:600;color:#747e68;margin:2px 0 9px;font-variant-numeric:tabular-nums}
.ledger-detail{display:block;font-size:12px;color:#718263;line-height:1.9}
.ledger-wins{display:block;font-size:11px;color:#8c957e;margin-top:7px;padding-top:7px;border-top:1px solid #dde3d2}
.ledger-empty{font-size:13px;line-height:1.9;text-align:center;color:#8b947e;margin:20px 6px 8px}
.ledger-history{max-height:450px;overflow-y:auto;overscroll-behavior:contain;margin-top:15px}
.ledger-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;text-align:center}
.ledger-table caption{font-size:12px;line-height:1.7;text-align:left;padding:1px 0 12px;color:#7d886e}
.ledger-table th,.ledger-table td{padding:10px 5px;border-bottom:1px solid #e6e8dd;overflow-wrap:anywhere;line-height:1.6}
.ledger-table thead th{background:#f1f3e9;color:#6e7f60;font-size:12px;font-weight:500}
.ledger-table th:first-child{width:17%;color:#78856a;font-weight:400}
.ledger-table td>span,.ledger-table td>strong{display:block}
.ledger-table td>strong{font-size:13px;font-weight:550;margin-top:3px;font-variant-numeric:tabular-nums}
.ledger-round-win{color:#567c43}
.ledger-round-remaining{color:#828975}
.ledger-round-time{display:block;font-size:10px;color:#98a08b;margin-top:3px}
.positive{color:#467140}.negative{color:#b06540}
@media(max-width:1000px) and (min-width:701px){.game-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.option-visual{height:148px}.selected .option-visual{height:147px}}
@media(max-width:700px){.game-options{grid-template-columns:1fr;gap:12px}.ledger-panel{margin-top:16px}.ledger-panel>summary{padding:13px;font-size:14px;gap:8px}.ledger-content{padding:12px}.ledger-totals{gap:7px}.ledger-player{padding:9px 7px}.ledger-player-name{font-size:12px;min-height:36px}.ledger-net{font-size:20px}.ledger-help{margin-bottom:12px}.ledger-detail{font-size:12px}.ledger-table th,.ledger-table td{padding:9px 3px}.ledger-table th:first-child{width:16%}.pdk-layout .card-table{min-height:246px}.site-footer{flex-wrap:wrap;gap:8px}}
@media(max-width:390px){.ledger-panel>summary{padding:12px;font-size:14px;gap:5px}.ledger-content{padding:9px}.ledger-totals{gap:5px}.ledger-player{padding:8px 5px}.ledger-net{font-size:17px;margin-top:5px}.ledger-caption{font-size:10px}.ledger-detail{font-size:11px;line-height:1.9}.ledger-player-name .you{display:inline-block;margin-left:2px}.ledger-table th,.ledger-table td{padding:8px 2px;font-size:11px}.ledger-table thead th{font-size:11px}.ledger-table td>strong{font-size:12px}.ledger-table th:first-child{width:17%}.ledger-round-time{font-size:10px}.pdk-layout .ddz-actions .button{min-width:48px;padding:10px 8px}.pdk-layout .ddz-actions .text-button{font-size:12px}}
