/* 由站点 CSS 自动翻色的暗色覆盖层 */
.dice-modes{display:flex;gap:12px;margin-bottom:20px}.dice-modes button{flex:1;padding:18px;text-align:left;background:transparent;border:1px solid var(--ink);font-family:inherit;font-size:20px;font-weight:700;cursor:pointer;color:var(--ink)}.dice-modes small{display:block;font-size:12px;font-weight:400;margin-top:6px}.dice-modes [aria-pressed=true]{background:var(--gold);box-shadow:3px 3px 0 var(--ink)}.dice-room{border:1px solid var(--ink);padding:28px;background:#eeece3}.dice-settings{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.dice-settings h2{margin:0;font-size:24px}.dice-counter{display:flex;align-items:center;gap:12px}.dice-counter button,.reroll-confirm button{min-width:44px;min-height:44px;background:var(--paper);border:1px solid var(--ink);color:var(--ink);cursor:pointer}.dice-counter output{font:22px monospace;min-width:20px;text-align:center}#dice-hint,.dice-settings>span{font-size:13px;color:var(--muted);line-height:1.7}.dice-table{min-height:240px;background:#283f36;border:1px solid var(--ink);display:grid;place-items:center;padding:28px;margin-top:24px}.dice-faces{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;max-width:460px}.die{color-scheme:light;width:84px;height:84px;flex-shrink:0;background:#141414;border:2px solid #f2f2f2;box-shadow:3px 4px 0 #14261e;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));place-items:center;gap:4px;padding:11px}.die i{display:block;width:16px;height:16px;border-radius:50%;background:#245fbd;opacity:1}.die[data-value="1"] i,.die[data-value="4"] i{background:#cf2435}.die[data-value="1"] i{width:20px;height:20px}.die.placeholder{display:grid;place-items:center;color:#9a9a9a;font:32px monospace}#dice-cover{text-align:center;color:#fff9ea}#dice-cover>span{display:block;font:64px monospace;margin-bottom:8px}#dice-cover p{font-size:12px}.dice-result{min-height:28px;text-align:center;font-size:18px;line-height:1.6}.dice-actions{display:flex;gap:12px;flex-wrap:wrap}.dice-actions button{min-height:48px;justify-content:center}.dice-actions #dice-roll{flex:1}.dice-room button:disabled{opacity:.45;cursor:default}.dice-rules{margin-top:28px;border-top:1px solid var(--ink);padding-top:12px;max-width:800px}.dice-rules p,.dice-rules li{font-size:14px;line-height:1.9}.dice-rules li{margin-bottom:8px}.wild-option{display:flex;align-items:center;gap:10px;min-height:48px}.wild-option input{width:20px;height:20px;accent-color:#283f36}.reroll-confirm{border-top:1px solid var(--line);margin-top:24px;padding-top:8px}.reroll-confirm button{padding:10px 16px;margin-right:8px}.dice-room [hidden],.dice-rules[hidden]{display:none!important}.rolling .dice-faces{animation:dice-shake .13s infinite alternate}@keyframes dice-shake{to{transform:translateY(-7px) rotate(4deg)}}@media(prefers-reduced-motion:reduce){.rolling .dice-faces{animation:none}}@media(max-width:600px){.dice-room{padding:18px 14px}.dice-table{min-height:230px;padding:22px 12px}.dice-faces{gap:14px;max-width:290px}.die{width:72px;height:72px;padding:9px;gap:4px}.die i{width:14px;height:14px}.die[data-value="1"] i{width:18px;height:18px}.dice-actions button{flex:1 1 100%}.dice-modes button{padding:14px;font-size:18px}.dice-counter{gap:8px}.dice-counter>span{font-size:13px}}
#solo-dice[hidden],#online-dice[hidden]{display:none!important}#online-dice input:not([type=checkbox]){display:block;width:100%;min-height:48px;border:1px solid var(--ink);padding:10px;background:var(--paper);color:var(--ink);font-family:inherit;font-size:16px}#online-dice label{font-size:14px}#online-dice .dice-room>p{font-size:13px;line-height:1.8}#guest-name{max-width:360px}.invite-row{display:grid;grid-template-columns:1fr auto;gap:10px;margin:24px 0}.invite-row label{grid-column:1/-1}.invite-row input{min-width:0}.room-players{list-style:none;padding:0;display:grid;gap:8px}.room-players li{padding:12px;border:1px solid var(--line);font-size:14px}.room-players .is-turn{background:var(--gold);border-color:var(--ink)}#room-hand{color:#fff9ea;font-size:14px}#room-hand .die{color:var(--ink)}.bid-form{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.bid-form label{flex:1;min-width:75px}.bid-form button{min-height:48px}#room-game .dice-actions{margin-top:20px}#room-error{color:#9c3525;line-height:1.8}#room-result{margin-top:24px;border-top:1px solid var(--line)}#leave-confirm{padding-top:20px}#leave-confirm button{margin:8px 8px 0 0}#dice-login{text-decoration:underline}@media(max-width:600px){.invite-row{grid-template-columns:1fr}.bid-form button{flex:1 1 100%}.invite-row .button{justify-content:center}}
.join-room{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.join-room label{grid-column:1/-1}.room-code-label strong{font:36px monospace;letter-spacing:6px;display:block;margin:12px 0}.room-code-label small{display:block}@media(max-width:600px){.join-room{grid-template-columns:1fr}.join-room .button{justify-content:center}}
.bid-stepper{display:grid;gap:8px;flex:1 1 110px;min-width:0}.bid-form .bid-stepper button{width:100%;min-height:44px;padding:8px;border:1px solid var(--ink);background:var(--paper);color:var(--ink);cursor:pointer;font-size:16px;touch-action:manipulation}.bid-stepper button:hover:not(:disabled){background:var(--gold)}#online-dice .bid-stepper input{text-align:center;font:32px monospace;min-height:64px;touch-action:none;appearance:textfield;cursor:ns-resize}.bid-stepper input::-webkit-inner-spin-button,.bid-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}#bid-step-hint{font-size:12px;color:var(--muted)}.bid-stepper input:disabled{opacity:.45;cursor:default}
.dice-bluff .dice-modes{gap:8px;margin-bottom:12px}
.dice-bluff .dice-modes button{padding:9px 14px;min-height:44px;font-size:16px}
.dice-bluff .dice-modes small{display:inline;font-size:11px;margin-left:10px}
.dice-bluff.dice-in-room .club-page{padding-top:10px;padding-bottom:16px}
.dice-bluff.dice-in-room>footer{display:none}
#online-dice{display:flex;flex-direction:column;gap:8px}#online-dice>#room-error{order:-1;margin:0}#room-error:empty{display:none}#dice-profile{order:2;font-size:12px}#dice-profile summary,.dice-rules summary{cursor:pointer;min-height:44px;display:list-item;align-content:center}#online-dice>.dice-rules{order:3;margin:0;padding-top:0;font-size:13px}#dice-account{font-size:12px;margin:0 0 10px}#room-game{padding:14px;max-width:800px;width:100%;align-self:center}.room-topline{display:flex;align-items:center;justify-content:space-between;gap:10px}.room-topline>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.room-number{font-size:12px}.room-number strong{font:700 20px monospace;letter-spacing:2px}#room-heading{font-size:12px;font-weight:400;margin:0}.room-topline button,.hand-heading button{min-height:44px;padding:6px 12px;border:1px solid var(--ink);background:var(--paper);color:var(--ink);font-size:12px}.hand-heading .yellow{background:var(--gold)}.room-meta{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);margin:2px 0 8px;flex-wrap:wrap}#room-game .room-players{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 8px}#room-game .room-players li{padding:6px;min-width:0;line-height:1.4;display:flex;flex-direction:column;gap:2px}#room-game .room-players li strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#room-game .room-players li span{font:11px monospace}#room-game .room-players li small{font-size:11px;white-space:nowrap}.table-call{border-left:4px solid var(--gold);background:var(--paper);padding:7px 12px}#room-game #room-status{font-size:12px;margin:0}#room-game #room-bid{font-size:22px;line-height:1.35;font-weight:700;margin:3px 0 0;overflow-wrap:anywhere}.room-live{margin:10px 0}.calls-heading{display:flex;justify-content:space-between;align-items:center}.calls-heading h3{font-size:12px;margin:0}.calls-heading small{font-size:10px;color:var(--muted)}#room-calls{list-style:none;margin:4px 0 0;padding:0;max-height:84px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}#room-calls li{display:flex;align-items:baseline;gap:8px;padding:4px 0;font-size:12px;border-bottom:1px solid var(--line);min-height:28px}#room-calls li strong{max-width:32%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#room-calls li span{flex:1}#room-calls time{font:10px monospace;color:var(--muted)}#room-calls li:first-child span{font-weight:700}.dice-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.hand-heading{display:flex;justify-content:space-between;align-items:center;font-size:12px;gap:8px}.hand-heading>div{display:flex;gap:8px}.my-hand .dice-table{min-height:60px;padding:8px;margin-top:4px}.my-hand .dice-faces{max-width:none;flex-wrap:nowrap;gap:8px}.my-hand .die{width:44px;height:44px;padding:5px;gap:2px;border-width:1px;box-shadow:2px 2px 0 #14261e}.my-hand .die i{width:9px;height:9px}.my-hand .die[data-value="1"] i{width:13px;height:13px}#room-hand{font-size:12px}#room-game #bid-step-hint{font-size:10px;margin:8px 0 4px}#room-game .bid-form{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#eeece3}#room-game .bid-stepper{grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:16px 44px 44px;gap:0 8px}#room-game .bid-stepper label{grid-column:1/-1;min-width:0;font-size:11px;line-height:16px}#room-game .bid-stepper input{grid-column:1;grid-row:2/4;min-height:0;height:88px;font-size:32px}#room-game .bid-stepper button{grid-column:2;padding:0;min-height:44px;font-size:12px}#room-game .bid-form>.button{min-height:44px;padding:8px;justify-content:center;box-shadow:none;font-size:14px}#room-game #room-result{margin-top:10px;font-size:13px}#room-result p{margin:5px 0}#room-result p:not(:first-child){display:inline-block;margin:4px 14px 4px 0;font:12px monospace}#room-game #leave-confirm{padding-top:8px;font-size:12px}@media(max-width:600px){.dice-bluff.dice-in-room .wrap{width:calc(100% - 24px)}.dice-bluff .dice-modes small{display:none}#room-game{padding:10px}.my-hand .dice-faces{gap:6px}.my-hand .die{width:40px;height:40px;padding:4px}.my-hand .die i{width:8px;height:8px}.my-hand .die[data-value="1"] i{width:12px;height:12px}#room-game .bid-form{position:sticky;bottom:0;padding-bottom:env(safe-area-inset-bottom,0px);z-index:2}#room-game #room-bid{font-size:19px}}

.hand-heading{flex-wrap:wrap}.hand-heading>div{flex-wrap:wrap}.hand-heading button{padding-inline:9px}
#room-game #room-challenge:not(:disabled){background:#ad281d;color:#fff;border:2px solid #76180f;font-size:19px;font-weight:800}#room-game #room-challenge:hover:not(:disabled){background:#861d15}#room-game #room-result{margin:10px 0;padding:14px;background:#fff8df;border:2px solid #f2f2f2;box-shadow:3px 3px 0 #f2f2f2;color:#f2f2f2}#room-result h3{margin:0;font-size:26px;line-height:1.2}#room-result .reveal-total{font-size:24px;font-weight:800;margin-top:6px}#room-result .reveal-claim{font-size:12px;overflow-wrap:anywhere}#room-result .reveal-outcome{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}#room-result .reveal-outcome strong{padding:7px 10px;font-size:14px;overflow-wrap:anywhere}#room-result .win{background:#245339;color:#fff}#room-result .loss{background:#f5d6d0;color:#76180f}#room-result .reveal-player{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;border-top:1px solid #d8cfaf}#room-result .reveal-player>span{font-size:12px;min-width:0;overflow-wrap:anywhere}#room-result .reveal-dice{display:flex;gap:6px;flex-shrink:0}#room-result .die{width:32px;height:32px;padding:3px;gap:1px;border:1px solid #f2f2f2;box-shadow:none}#room-result .die i{width:6px;height:6px}#room-result .die[data-value="1"] i{width:9px;height:9px}#room-result .die.is-counted{outline:3px solid #b77c00;outline-offset:0;background:#fff0a6}#room-result>small{display:block;font-size:10px;margin-top:7px}.is-revealed .my-hand .dice-table,.is-revealed #room-peek,.is-revealed .hand-heading>span{display:none}
