:root{color-scheme:dark;--ink:#f4ebd6;--muted:#a6b8aa;--bg:#10211e;--panel:#17352e;--line:#365045;--jade:#83b596;--gold:#e5bd78;--red:#bc6554;--paper:#f1e8d2;font:16px/1.5 system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button,a,input{ -webkit-tap-highlight-color:transparent}button{border:1px solid var(--line);background:#1c3b32;color:var(--ink);border-radius:4px;padding:10px 16px;min-height:44px;cursor:pointer;font-size:.88rem;font-weight:600;transition:background .15s,transform .15s}button:hover{background:#2e5142;border-color:var(--jade)}button:disabled{opacity:.42;cursor:default}button:focus-visible,input:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:3px}a{color:var(--gold)}.primary{background:var(--gold);border-color:var(--gold);color:#162920;box-shadow:0 3px 0 #a68149}.primary:hover{background:#f0cd8f}.secondary{background:transparent;border-color:#648373}.wide{width:100%}.text-button{border:0;background:none!important;color:var(--gold);padding:6px 9px;box-shadow:none}.icon-button{background:transparent}.muted{color:var(--muted)}.small{font-size:.78rem}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,serif;font-weight:500;line-height:1.12}h1{font-size:clamp(2rem,4vw,3rem);margin-bottom:16px}h2{font-size:1.65rem}h3{font-size:1rem}label{display:grid;gap:6px;font-size:.83rem;color:var(--muted)}input,select{padding:11px 13px;border:1px solid #577163;background:#102b25;color:var(--ink);border-radius:4px;min-height:46px;min-width:0}input::placeholder{color:#7f998a}form{display:grid;gap:14px}[hidden]{display:none!important}.topbar{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 4vw;background:#132b25;gap:14px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);font-family:monospace;font-size:20px;letter-spacing:.18em;line-height:1.15}.brand img{image-rendering:pixelated}.brand small{display:block;color:var(--muted);font:9px/1.9 monospace;letter-spacing:.3em}.top-actions{display:flex;align-items:center;gap:12px}.connection{font-size:.75rem;color:var(--muted)}.shell{max-width:1600px;margin:auto}.navigation{display:flex;gap:5px;border-bottom:1px solid var(--line);padding:12px 4vw}.navigation button{background:none;border:0;color:var(--muted)}.navigation button.active{background:#294b3c;color:var(--ink)}.page{padding:36px 4vw;min-height:65vh}.auth-scene{min-height:720px;background:linear-gradient(90deg,rgba(7,21,17,.48),transparent),url('/assets/parlor.png') center/cover;display:flex;align-items:center;justify-content:space-between;padding:48px 6vw;gap:30px}.auth-card{width:390px;flex-shrink:0;background:rgba(15,35,29,.97);padding:32px;border:1px solid #5f7350;box-shadow:8px 8px 0 #101c16b0}.eyebrow{font:11px/1.6 monospace;letter-spacing:.18em;color:var(--gold);margin-bottom:14px}.auth-tabs{display:flex;border-bottom:1px solid var(--line);margin:24px 0}.auth-tabs button{border:0;background:none;border-radius:0;color:var(--muted);flex:1}.auth-tabs button.active{border-bottom:2px solid var(--gold);color:var(--gold)}.auth-card h1{font-size:2.8rem}.auth-card .muted{font-size:.88rem}.or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:.75rem;margin:18px 0}.or:before,.or:after{content:'';height:1px;background:var(--line);flex:1}.scene-caption{align-self:flex-end;text-align:right;text-shadow:0 2px 8px #000}.scene-caption span{font:11px monospace;letter-spacing:.16em;color:var(--gold)}.scene-caption p{font:28px/1.4 Georgia,serif;margin-top:14px}.page-title,.section-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.page-title p,.page-title h1,.section-title h2{margin-bottom:0}.lobby-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:28px}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.mode-card,.panel{border:1px solid var(--line);background:var(--panel);padding:24px}.mode-card{border-top:3px solid var(--jade);display:flex;flex-direction:column;gap:14px}.mode-card.american{border-top-color:var(--gold)}.mode-card h2{margin:0}.mode-card p{margin:0;color:var(--muted);font-size:.85rem}.mode-card button{margin-top:auto;align-self:flex-start}.mode-tiles{display:flex;gap:8px;margin:4px 0 12px}.mode-tiles img{width:42px;height:58px;image-rendering:pixelated}.room-list{display:grid;gap:12px;margin-top:16px}.room-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:12px}.room-row small{display:block;color:var(--muted)}.join-form{grid-template-columns:1fr auto}.lobby-note{font-size:.83rem;color:var(--muted);margin:20px 0}.table-page{display:grid;grid-template-columns:minmax(0,1fr) 300px;padding:24px 3vw;gap:22px}.table-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}.table-heading h1{font-size:1.7rem;margin:0}.table-heading p{font-size:.75rem;margin:5px 0;color:var(--muted)}.room-code{color:var(--gold);font-family:monospace;letter-spacing:.08em;font-size:1.1rem}.table-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.game-board{background:#1e5143;box-shadow:inset 0 0 80px #0c2c2699,0 5px 0 #171a12;border:8px solid #796044;display:grid;grid-template-columns:minmax(80px,1fr) minmax(180px,3.2fr) minmax(80px,1fr);grid-template-rows:auto minmax(170px,1fr) auto;gap:12px;padding:14px;min-height:450px;border-radius:5px}.seat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0}.seat.north{grid-column:2;grid-row:1}.seat.west{grid-column:1;grid-row:2}.seat.east{grid-column:3;grid-row:2}.seat.south{grid-column:2;grid-row:3}.seat-name{border:1px solid #ffffff25;padding:5px 10px;max-width:100%;font-size:.8rem;text-align:center;overflow-wrap:anywhere;background:#143d33;border-radius:3px}.seat-name.turn{border-color:var(--gold);color:var(--gold);box-shadow:0 0 0 2px #e5bd7819}.seat-name span{font:10px monospace;color:#c3d4c1;display:block}.backs{display:flex;justify-content:center;flex-wrap:wrap;max-width:220px;gap:2px}.backs img{width:10px;height:15px;image-rendering:pixelated}.seat.west .backs,.seat.east .backs{max-width:50px}.center{grid-column:2;grid-row:2;min-width:0;border:1px solid #81a98935;border-radius:40px;padding:16px 8px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.wind-mark{font:38px/1.2 Georgia,serif;color:#d7c69480}.center-status{font-size:.78rem;color:#c1d9c5;margin:8px 0}.discard-pool{display:flex;justify-content:center;flex-wrap:wrap;gap:3px;max-height:160px;overflow:auto}.discard-pool img{width:21px;height:29px;image-rendering:pixelated}.last-discard{border:2px solid var(--gold);padding:4px;border-radius:3px;margin-bottom:10px;background:#163a30}.last-discard img{width:36px;height:50px;image-rendering:pixelated}.exposures{display:flex;gap:7px;flex-wrap:wrap;justify-content:center}.meld{display:flex;gap:1px}.meld img{width:18px;height:25px;image-rendering:pixelated}.hand-area{margin-top:20px;border:1px solid var(--line);background:#18322a;padding:16px}.hand-label{display:flex;justify-content:space-between;gap:14px;font-size:.78rem;color:var(--muted);margin-bottom:12px}.rack{display:flex;gap:5px;overflow-x:auto;min-height:88px;padding:12px 2px 4px;align-items:flex-end;scrollbar-color:#668672 #132b25}.tile-button{border:0;background:none!important;padding:0;min-height:62px;min-width:44px;flex-shrink:0;position:relative;line-height:0;border-radius:4px}.tile-button img{width:44px;height:61px;image-rendering:pixelated;filter:drop-shadow(0 4px 0 #071b17)}.tile-button.selected{transform:translateY(-9px);outline:2px solid var(--gold);outline-offset:2px}.tile-button.drawn:after{content:'';width:6px;height:6px;background:var(--gold);position:absolute;top:-9px;left:19px}.action-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:16px;min-height:46px}.action-bar p{margin:0;color:var(--muted);font-size:.85rem}.turn-instruction{font-size:1.05rem;color:var(--gold);margin:0 0 6px}.waiting-table{background:linear-gradient(#143d3399,#102820cc),url('/assets/parlor.png') center/cover;border:1px solid #67836a;padding:36px;min-height:470px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.waiting-seats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:24px 0;width:min(100%,420px)}.waiting-seat{background:#16372fe8;border:1px solid #61846c;padding:16px;color:var(--ink)}.waiting-seat.empty{border-style:dashed;color:var(--muted)}.chat-panel{border-left:1px solid var(--line);padding-left:22px;display:flex;flex-direction:column;max-height:900px}.chat-panel h2{font-size:1.4rem}.messages{flex:1;min-height:180px;max-height:440px;overflow:auto;padding:12px 0}.message{padding:9px 0;border-bottom:1px solid #284439;font-size:.85rem;overflow-wrap:anywhere;white-space:pre-wrap}.message strong{font-size:.75rem;color:var(--gold);display:block}.message time{font-size:.65rem;color:var(--muted);margin-left:6px;font-weight:400}.chat-panel form{grid-template-columns:1fr auto;gap:6px}.chat-panel input{font-size:.8rem;min-width:0}.chat-panel form button{padding:8px 12px}.mute-row{display:flex;justify-content:space-between;align-items:center;font-size:.72rem;margin-top:10px;color:var(--muted)}.mute-row button{font-size:.72rem;padding:4px 6px}.result-card{background:#ecdfc4;color:#203a2e;padding:24px;border:4px solid var(--gold);margin:16px 0}.result-card h2{color:#203a2e}.result-card .score-row{border-color:#baa987}.score-row{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding:9px 0;font-size:.87rem}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0}.stat{padding:22px;background:var(--panel);border:1px solid var(--line)}.stat strong{font:32px/1.3 Georgia,serif;color:var(--gold);display:block}.stat span{font-size:.78rem;color:var(--muted)}.filters{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.filters button.active{border-color:var(--gold);color:var(--gold)}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:14px 10px;border-bottom:1px solid var(--line);font-size:.85rem}th{font-size:.72rem;color:var(--muted);font-weight:500;text-transform:uppercase;letter-spacing:.05em}.table-scroll{overflow:auto}.empty-state{padding:42px 24px;border:1px dashed #4a6857;text-align:center;color:var(--muted)}.empty-state h2{color:var(--ink)}.document{max-width:850px;margin:auto;padding:40px 24px}.rules-copy{max-width:850px}.rules-copy h2{margin-top:30px}.rules-copy p,.rules-copy li{color:var(--muted)}.rules-copy li{margin:9px 0}.card-pattern{padding:18px;border:1px solid var(--line);margin-top:14px;background:var(--panel)}.card-groups{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.card-groups img{width:25px;height:35px;image-rendering:pixelated}.badge{font:10px monospace;letter-spacing:.04em;padding:4px 8px;background:#315340;border-radius:2px;color:#d8e9d7}.notice{position:fixed;top:90px;left:50%;transform:translateX(-50%);background:#eee0bf;color:#1d352a;box-shadow:0 6px 24px #0008;padding:14px 20px;border:1px solid #cfae6b;border-radius:4px;z-index:20;max-width:calc(100% - 24px);font-size:.9rem}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.key-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:12px 0}.key-row small{display:block;color:var(--muted)}dialog{max-width:480px;background:var(--panel);color:var(--ink);border:1px solid var(--gold);padding:30px;border-radius:4px}dialog::backdrop{background:#000b}dialog code{display:block;background:#091f18;padding:15px;color:var(--gold);word-break:break-all;user-select:all;margin-bottom:20px}footer{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;border-top:1px solid var(--line);padding:22px 4vw;color:var(--muted);font-size:.68rem;letter-spacing:.03em}.skip{position:fixed;left:12px;top:-90px;background:var(--gold);color:#000;padding:12px;z-index:100}.skip:focus{top:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}details{margin-top:20px}summary{cursor:pointer;color:var(--gold);padding:12px 0}.event-line{font-size:.76rem;color:var(--muted);padding:3px 0}
@media(max-width:1000px){.table-page{grid-template-columns:1fr}.chat-panel{border-left:0;border-top:1px solid var(--line);padding:20px 0 0;max-height:420px}.messages{max-height:220px;min-height:120px}.lobby-layout{grid-template-columns:1fr}.game-board{min-height:420px}.scene-caption{display:none}}
@media(max-width:620px){.topbar{height:74px;padding:0 16px}.brand{font-size:16px}.brand img{width:24px;height:33px}.connection{display:none}.top-actions{gap:6px}.top-actions button{padding:8px;font-size:.75rem}.auth-scene{padding:28px 16px;min-height:740px;align-items:flex-start}.auth-card{width:100%;max-width:420px;margin:auto;padding:25px}.navigation{padding:8px;gap:0;overflow:auto}.navigation button{white-space:nowrap;padding:8px 12px;font-size:.78rem}.page{padding:24px 16px}.page-title{align-items:flex-start}.mode-grid{grid-template-columns:1fr}.mode-card{padding:20px;gap:9px}.mode-tiles{margin:0}.mode-tiles img{width:30px;height:42px}.mode-card h2{font-size:1.6rem}.mode-card button{align-self:stretch}.stat-grid{grid-template-columns:1fr 1fr;gap:9px}.stat{padding:16px}.stat strong{font-size:28px}.table-page{padding:18px 10px}.table-heading{align-items:flex-start}.table-heading h1{font-size:1.3rem}.table-tools{max-width:155px;justify-content:flex-end}.table-tools button{font-size:.72rem;padding:7px}.game-board{grid-template-columns:55px minmax(130px,1fr) 55px;border-width:5px;padding:9px 5px;gap:5px;min-height:365px}.seat-name{font-size:.67rem;padding:4px;line-height:1.4}.seat-name span{font-size:8px}.center{padding:8px 2px;border-radius:24px}.center-status{font-size:.67rem}.wind-mark{font-size:26px}.discard-pool{max-height:125px;gap:2px}.discard-pool img{width:17px;height:24px}.backs img{width:8px;height:12px}.backs{max-width:150px}.exposures{gap:3px}.meld img{width:12px;height:17px}.hand-area{padding:12px 9px;margin-top:14px}.rack{gap:4px}.tile-button img{width:40px;height:55px}.tile-button{min-width:44px}.action-bar button{flex-grow:1;font-size:.78rem}.account-grid{grid-template-columns:1fr}.waiting-table{padding:24px 16px}.waiting-seats{gap:8px}.waiting-seat{padding:12px 4px;font-size:.85rem}.notice{top:80px}.page-title .filters{margin:0}footer{padding:18px 16px;font-size:.62rem}.table-scroll td,.table-scroll th{padding:11px 8px}.chat-panel{padding:18px 6px 0}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.blind-select{display:flex;align-items:center;gap:12px}.blind-select select{min-height:44px;background:#f0e5cb;color:#142d27;border:2px solid #8b7750;padding:8px;font:inherit}.action-bar .small{flex-basis:100%}

textarea{width:100%;min-height:100px;resize:vertical;background:#112d27;color:#efe7d3;border:1px solid #52675a;border-radius:3px;padding:12px;font:inherit}a{color:#e4c37f}.danger{border-color:#b56254;color:#efbdb0}.report-button{display:block;font-size:11px;padding:4px;min-height:28px}.report-item{padding:20px 0;border-bottom:1px solid #3b5146}.report-item blockquote{margin:12px 0;padding:12px;border-left:3px solid #bda16a}

/* The parlor remains pixel art; a short anime cut-in celebrates a completed hand. */
.small,label,.mode-card p,.lobby-note,.hand-label,.center-status,.event-line,.table-heading p{font-size:.875rem}
.table-page>*{min-width:0}.rack{min-width:0;max-width:100%}
.eyebrow,.badge{font-size:.75rem}.topbar{height:auto;min-height:88px;padding-top:12px;padding-bottom:12px}.top-actions{flex-wrap:wrap;justify-content:flex-end}
#wallet-badge{font-size:.875rem;color:var(--gold)}
.parlor-heading{min-height:190px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;padding:30px;background:linear-gradient(90deg,#10211efa,#10211e70),url('/assets/parlor.png') 50% 40%/cover;border:1px solid var(--line)}
.parlor-heading p{margin:8px 0}.parlor-heading h1{margin-bottom:8px}.create-panel form{grid-template-columns:1fr 1fr;align-items:end}.create-panel .small{margin:18px 0 0}.lobby-layout>*,.lobby-layout aside{min-width:0}.room-row strong{overflow-wrap:anywhere}.room-row small{font-size:.875rem}.room-row button{flex-shrink:0}
.online-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--line)}.online-row small{display:block;color:var(--muted);font-size:.875rem}
.bot-controls{width:100%;max-width:660px}.bot-controls h3{margin:16px 0 0}.bot-controls .waiting-seats{width:100%;max-width:none}.waiting-seat{display:flex;flex-direction:column;gap:8px;min-width:0}.waiting-seat label{text-align:left;color:var(--ink)}.waiting-seat select{width:100%;font-size:.875rem}.waiting-seat small{font-size:.8125rem}.bot-controls .small{text-align:left}
.result-card>.bot-controls{color:#203a2e}.result-card .bot-controls .muted{color:#395442}.result-card .bot-controls .waiting-seat{color:var(--ink)}
.check-label{display:flex;gap:12px;align-items:center;margin-top:20px}.check-label input{min-height:24px;width:24px}input[type=range]{width:100%;padding:0;accent-color:var(--gold)}
.win-dialog{padding:0;width:min(640px,calc(100% - 28px));max-width:640px;border:3px solid var(--gold);overflow:hidden;box-shadow:0 24px 100px #000b;animation:win-arrive .4s ease-out}.win-art{height:260px;position:relative;overflow:hidden;background:#152229}.win-art img{width:100%;height:100%;object-fit:cover;object-position:50% 30%;animation:win-zoom 1.2s ease-out}.win-call{position:absolute;bottom:10px;left:22px;font:900 clamp(2rem,7vw,4rem)/1 system-ui,sans-serif;font-style:italic;color:#fff4cd;text-shadow:3px 4px 0 #862a25,-1px -1px 0 #862a25;letter-spacing:-.04em;animation:win-call .55s ease-out}.win-copy{padding:26px}.win-copy h2{font:800 2rem/1.2 system-ui,sans-serif}.win-copy p{margin-bottom:16px}
@keyframes win-arrive{from{opacity:0;transform:translateY(30px) scale(.95)}to{opacity:1;transform:none}}@keyframes win-zoom{from{transform:scale(1.1) translateX(15px)}to{transform:none}}@keyframes win-call{from{transform:translateX(-60px);opacity:0}to{transform:none;opacity:1}}
.reduce-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(min-width:1100px){.rack{justify-content:center;gap:clamp(3px,.45vw,8px)}.tile-button{flex:0 1 50px;min-width:44px}.tile-button img{width:100%;height:auto}.hand-area{position:sticky;bottom:0;z-index:2;box-shadow:0 -8px 18px #10211e80}}
@media(max-width:620px){.parlor-heading{padding:20px;min-height:170px;display:block}.parlor-heading .badge{display:inline-block;margin-top:12px}.create-panel form{grid-template-columns:1fr}.bot-controls .waiting-seats{grid-template-columns:1fr 1fr}.waiting-seat{padding:12px 8px}.waiting-seat select{padding:8px 4px}.table-tools{max-width:none}.table-heading{flex-wrap:wrap}.table-heading .table-tools{width:100%;justify-content:flex-start}.table-tools button,.action-bar button{font-size:.875rem}.hand-label{display:block}.hand-label span{display:block}.hand-area{position:sticky;bottom:0;z-index:2;padding-bottom:max(12px,env(safe-area-inset-bottom));box-shadow:0 -8px 18px #10211e80}.rack{scroll-snap-type:x proximity}.tile-button{scroll-snap-align:center}.seat-name{font-size:.75rem}.seat-name span{font-size:.625rem}.win-art{height:210px}.win-copy{padding:20px}.top-actions{gap:5px}#wallet-badge{flex-basis:100%;text-align:right;font-size:.8125rem}.topbar{padding-left:10px;padding-right:10px}.top-actions button{font-size:.8125rem}.brand{font-size:14px}.brand img{display:none}.page-title{flex-wrap:wrap}.rules-copy table{font-size:.875rem}.rules-copy td,.rules-copy th{padding:10px 5px}.room-row{align-items:flex-start}.room-row button{padding:9px}.table-page{padding-bottom:12px}}

.seat-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.seat-name span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Put the next decision and confirmation beside a fully visible touch rack. */
.move-guide{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:8px}
.move-guide>div:first-child{min-width:0}.move-guide h2{font:600 1.12rem/1.35 system-ui,sans-serif;margin:0 0 5px;overflow-wrap:anywhere}.move-guide p{font-size:.875rem;line-height:1.5;margin:0;color:var(--muted)}
.ready-to-act{border-top:3px solid var(--gold)}.ready-to-act .move-guide h2{color:var(--gold)}
.turn-clock{flex:none;text-align:right;color:var(--gold);min-width:60px}.turn-clock span{display:block;font:600 1.35rem/1.2 system-ui,sans-serif;font-variant-numeric:tabular-nums}.turn-clock small{font-size:.7rem;color:var(--muted)}
.hand-label{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin-bottom:2px}.hand-label .text-button{font-size:.8125rem;padding:6px;min-height:44px}
.tile-button:disabled{opacity:1;cursor:default}.tile-button:focus-visible{outline:3px solid var(--ink);outline-offset:2px}.tile-button.selected:focus-visible{outline-color:var(--gold)}
.action-bar:empty{display:none}.action-bar button{min-height:44px;white-space:normal}.action-bar .blind-select{flex-wrap:wrap;gap:8px}
@media(max-width:620px){
 .hand-area{position:relative;bottom:auto;box-shadow:none;margin-top:12px}.move-guide{gap:10px}.move-guide h2{font-size:1rem}
 .rack{flex-wrap:wrap;justify-content:center;overflow:visible;gap:14px 3px;min-height:0;padding:12px 0 6px;scroll-snap-type:none}
 .tile-button{flex:0 0 44px;width:44px;min-height:62px}.tile-button img{width:44px;height:61px}
 .hand-label{gap:8px}.hand-label>span{font-size:.75rem}.action-bar{margin-top:12px}.game-board{min-height:300px;grid-template-rows:auto minmax(125px,1fr) auto}
 .center .wind-mark{display:none}.seat.south .backs{display:none}.discard-pool{max-height:95px}
}

.email-step{max-width:28rem;margin:3rem auto}.email-step form{margin:1.5rem 0}.email-step>a{display:block;margin-top:1.5rem}.create-panel details input{margin-top:.5rem}

/* Lantern Clash: the table stays functional; the artwork frames the play. */
:root{--ink:#fff3cf;--muted:#bfd8cf;--bg:#071f28;--panel:#092c32;--line:#477365;--jade:#76e6c1;--gold:#ffd170;--red:#d9433e}
body{background:#071f28 url('/assets/lantern/courtyard.webp') center top/cover fixed;color:var(--ink)}
h1,h2{font-family:Georgia,serif;font-weight:700}button{border-color:#658a72;background:#143e3d;box-shadow:0 3px 0 #051719;border-radius:5px}button:hover{background:#20564b}.primary{background:#ffd170;border-color:#ffebaf;color:#192c27;box-shadow:0 3px 0 #9c572e}.primary:hover{background:#ffe5a0}
.topbar{min-height:76px;background:#061e29ee;border-bottom:2px solid #a56038;box-shadow:0 4px 0 #03171fcc;padding:12px 3vw}.brand{font:bold clamp(1rem,2vw,1.45rem)/1.1 Georgia,serif;letter-spacing:.025em;color:#ffdc83;text-shadow:2px 2px #7d292c}.brand small{font:600 .68rem/1.7 system-ui,sans-serif;letter-spacing:.16em;color:#bfe7d7;text-shadow:none}.brand img{display:none}.top-actions{gap:8px}.icon-button,.text-button{box-shadow:none}
.navigation{background:#061e29de;padding:8px 3vw;border-bottom:1px solid #ae773e}.navigation button{box-shadow:none;color:#cae6d9}.navigation button.active{background:#854036;color:#ffe7ae;border:1px solid #d7a565}.shell{max-width:1720px}.page{background:#05202aaa;backdrop-filter:blur(2px)}
.auth-scene,.waiting-table,.parlor-heading{background-image:linear-gradient(90deg,#06232bc9,#08252633),url('/assets/lantern/courtyard.webp')}.auth-card,.panel,.mode-card,.stat,.card-pattern,.empty-state{background:#082a31ed;border:1px solid #6b9b81;box-shadow:0 4px 0 #06171fac}.auth-card{border:2px solid #cd9e55}.parlor-heading{min-height:130px;border:1px solid #bd8248;box-shadow:inset 0 0 0 4px #9d3c303d}.parlor-heading h1{color:#ffe4a2;text-shadow:2px 2px #46282b}
.page h1{color:#ffe0a0}input,select,textarea{background:#06232b;border-color:#668e7b;color:#fff3cf}.table-page{padding:18px 2vw 26px;gap:18px;grid-template-columns:minmax(0,1fr) 260px}.table-heading{background:#05222bed;padding:12px 16px;border:1px solid #a87543;margin-bottom:0;border-radius:8px 8px 0 0}.table-heading h1{color:#ffe0a0;font-size:1.5rem}.table-heading p{font-size:.875rem;margin-bottom:0}.table-heading .table-tools button{font-size:.875rem}
.game-board{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 50% 30%,#116755,#075042 65%,#043a37);border:12px solid #993a35;border-top-color:#bb5541;border-bottom-color:#62282c;border-radius:0 0 8px 8px;box-shadow:inset 0 0 0 2px #f2c367,inset 0 0 0 6px #742e2d,inset 0 0 70px #032f2d,0 6px 0 #061c22;grid-template-columns:minmax(98px,1fr) minmax(180px,3.4fr) minmax(98px,1fr);grid-template-rows:auto minmax(190px,1fr) auto;min-height:510px;gap:8px;padding:10px}
.game-board:before{content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(circle at 6% 12%,#ffce6766 0 1px,transparent 2px),radial-gradient(circle at 88% 24%,#ffd97866 0 2px,transparent 3px),radial-gradient(circle at 24% 82%,#ffd97855 0 1px,transparent 2px),radial-gradient(circle at 74% 70%,#ffd97855 0 1px,transparent 2px);animation:lantern-embers 11s ease-in-out infinite alternate}
.mascot{width:92px;height:92px;flex:none;background:url('/assets/lantern/mascots.webp') calc(var(--character,0)*100%/3) calc(var(--pose,0)*100%/3)/400% 400% no-repeat;image-rendering:pixelated;filter:drop-shadow(0 3px 0 #052729);mask-image:linear-gradient(transparent 0%,#000 3% 96%,transparent 100%);pointer-events:none}
.seat{position:relative;gap:3px;z-index:1}.seat .mascot{animation:mascot-idle 8s ease-in-out infinite;animation-delay:calc(var(--character,0)*-2s)}.seat[data-pose="1"]{--pose:1}.seat[data-pose="2"]{--pose:2}.seat[data-pose="3"]{--pose:3}.seat[data-reaction="slam"] .mascot{animation:mascot-slam .62s ease-out both;animation-delay:var(--effect-age,0ms)}.seat[data-reaction="surprised"] .mascot{animation:mascot-surprise .7s ease-out both;animation-delay:var(--effect-age,0ms)}.seat[data-reaction="cheer"] .mascot{animation:mascot-cheer .6s ease-in-out 3}.seat[data-reaction="flop"] .mascot{animation:mascot-flop 1.1s ease-out both}.seat[data-reaction="slam"] .meld:last-child{animation:meld-lock .6s ease-out both}
.seat-name{font-size:.875rem;padding:5px 10px;background:#052630;border:1px solid #d0a256;box-shadow:0 2px 0 #092322;max-width:100%;color:#fff0c6}.seat-name span{font-size:.7rem;color:#b4dccc}.seat-name.turn{background:#754035;border:2px solid #ffe399;box-shadow:0 0 12px #eabd654d}.seat.north .mascot{width:76px;height:76px}.seat.north .backs{flex-wrap:nowrap;max-width:none}.seat.south{flex-direction:row;align-items:center;gap:7px}.seat.south .mascot{width:58px;height:58px}.seat.south .backs{display:none}.seat.south .exposures{max-width:70%}
.backs img{width:13px;height:18px;filter:sepia(.65) saturate(1.7) hue-rotate(315deg);box-shadow:0 2px 0 #042e2a}.backs{gap:2px}.seat.west .backs,.seat.east .backs{max-width:62px}.meld img{width:22px;height:30px;filter:drop-shadow(0 2px #062c2b)}
.center{border-radius:12px;border:1px solid #ddbf694d;background:#063c36a8;box-shadow:inset 0 0 22px #043231;align-self:stretch;padding:9px}.center-status{font-size:.875rem;color:#daead2;margin:5px 0}.center-status small{font-size:.75rem}.wind-mark{color:#e9c27c;font-size:30px;line-height:1}.discard-pool{max-height:138px;gap:3px}.discard-pool img{width:23px;height:32px;filter:drop-shadow(0 2px 0 #032521)}.last-discard{padding:3px;box-shadow:0 0 12px #ffd36755;margin:4px 0 8px}.last-discard img{width:34px;height:47px}
.hand-area{background:linear-gradient(#0b3940,#072c34);border:2px solid #ba874f;border-top:5px solid #b14439;margin-top:10px;border-radius:6px;box-shadow:0 5px 0 #061d24}.ready-to-act{border-top-color:#ffce6a}.move-guide h2{color:#fff0bd}.move-guide p{color:#c9e0d2}.tile-button img{filter:brightness(1.13) drop-shadow(0 5px 0 #071d22)}.tile-button.selected{outline:3px solid #ffe08a;box-shadow:0 0 16px #ffc3566e;transform:translateY(-8px)}.tile-button.drawn:after{box-shadow:0 0 8px #ffe29f}.tile-button.is-drawing{animation:rack-draw .28s ease-out both}.rack{padding-bottom:8px}.turn-clock{color:#ffdd83}
.chat-panel{align-self:start;border:1px solid #9a7b50;border-radius:8px;background:#062630ed;padding:16px;max-height:820px}.chat-panel h2{font-size:1.25rem}.messages{min-height:230px}.chat-panel .section-title{margin-bottom:8px}.chat-panel .message{border-bottom-color:#315d51}.chat-panel #chat-form{grid-template-columns:1fr}.waiting-table{padding:26px;border:2px solid #bf7c46}.waiting-seat{background:#062c35e8;border-color:#bc975d;align-items:center}.waiting-seat label{width:100%}.waiting-seat .mascot{width:72px;height:72px}.result-card{background:#092e34;border:2px solid #d4a45b;color:#fff0ca;box-shadow:0 4px 0 #062026}.result-card p{color:#d5e8d8}.result-card h2{color:#ffdb86}.win-dialog{background:#082b34;border-color:#f8ce76;max-width:540px}.win-art{height:300px;background:radial-gradient(ellipse,#19514a,#071f2c)}.win-art img{object-fit:contain;object-position:center;image-rendering:pixelated;animation:win-zoom 1s ease-out}.win-copy{padding:20px;text-align:center}.win-copy h2{font-size:1.6rem}.win-call{left:0;right:0;text-align:center;font-size:3rem;bottom:12px}.win-dialog::backdrop{background:#03131bbd}.win-dialog .primary{min-width:160px}
footer{background:#051e29e8;border-color:#9f7545;font-size:.75rem}.call-effect{position:absolute;pointer-events:none;z-index:4;left:50%;top:44%;text-align:center;transform:translate(-50%,-50%);color:#ffe692;filter:drop-shadow(2px 3px #772c30);animation:call-stamp .65s ease-out both;animation-delay:var(--effect-age,0ms)}.call-effect strong{display:block;font:900 italic clamp(1.3rem,3vw,2.4rem)/1 system-ui,sans-serif;letter-spacing:-.035em;white-space:nowrap;text-shadow:1px -1px #6b2528,-1px 1px #6b2528}.call-effect[data-side=east]{left:77%;top:42%}.call-effect[data-side=west]{left:23%;top:42%}.call-effect[data-side=north]{left:50%;top:27%}.call-effect[data-side=south]{left:50%;top:74%}.effect-kong strong{font-size:clamp(1.65rem,4vw,3rem)}.call-effect i{position:absolute;left:50%;top:50%;width:6px;height:3px;background:#ffe9a0;transform:rotate(var(--angle)) translateX(55px);box-shadow:0 0 8px #ff9734;animation:impact-spark .7s ease-out both;animation-delay:var(--effect-age,0ms)}.effect-exchange strong{font-size:1.1rem}.effect-discard{inset:0;transform:none;filter:drop-shadow(0 3px 2px #05211d);animation:none}.effect-discard img{position:absolute;width:28px;height:39px;image-rendering:pixelated;animation:tile-flight .34s cubic-bezier(.22,.75,.3,1) both;animation-delay:var(--effect-age,0ms)}.effect-win,.effect-drawn-hand,.effect-deal{left:50%!important;top:45%!important}.effect-win{animation:call-stamp 1.8s ease-out both}.effect-drawn-hand{animation:call-stamp 1.1s ease-out both}.effect-deal{animation:call-stamp .55s ease-out both}
.game-board[data-impact=pung]{animation:table-pung .3s ease-out both;animation-delay:var(--effect-age,0ms)}.game-board[data-impact=kong]{animation:table-kong .45s ease-out both;animation-delay:var(--effect-age,0ms)}.game-board[data-impact=highlight]{border-color:#ffd16b}.game-board[data-tension="1"]:before,.game-board[data-tension="2"]:before{background-color:#e6981910;animation:wall-glow 3s ease-in-out infinite}.game-board[data-tension="2"] .center{border-color:#f8ba5e;box-shadow:inset 0 0 28px #b37f3029}
@keyframes lantern-embers{to{opacity:.4;transform:translateY(-6px)}}@keyframes mascot-idle{0%,85%,100%{transform:translateY(0)}90%{transform:translateY(-2px)}95%{transform:translateY(1px)}}@keyframes mascot-slam{0%{transform:translateY(-13px) rotate(-8deg)}22%{transform:translateY(7px) rotate(4deg)}45%{transform:translateY(-3px)}100%{transform:none}}@keyframes mascot-surprise{20%{transform:translateY(-7px) rotate(5deg)}60%,100%{transform:none}}@keyframes mascot-cheer{50%{transform:translateY(-7px) rotate(-5deg)}}@keyframes mascot-flop{35%,75%{transform:rotate(55deg) translateY(8px)}100%{transform:none}}@keyframes meld-lock{0%{transform:translateY(-6px) scale(1.12);filter:brightness(1.6)}50%{transform:translateY(2px)}100%{transform:none;filter:none}}@keyframes rack-draw{from{opacity:.2;transform:translate(var(--draw-from,0px),-16px)}to{opacity:1;transform:none}}@keyframes tile-flight{0%{left:var(--from-x);top:var(--from-y);transform:translate(-50%,-50%) rotate(-8deg) scale(.8)}75%{left:50%;top:50%;transform:translate(-50%,-50%) scale(1.1)}100%{left:50%;top:54%;transform:translate(-50%,-50%) scale(1)}}@keyframes call-stamp{0%{opacity:0;transform:translate(-50%,-50%) scale(1.4) rotate(-8deg)}20%,70%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(-4deg)}100%{opacity:0;transform:translate(-50%,-55%) scale(.98)}}@keyframes impact-spark{0%{opacity:0;transform:rotate(var(--angle)) translateX(15px) scale(.3)}30%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateX(75px) scale(.3)}}@keyframes table-pung{20%{transform:translateY(2px)}45%{transform:translateY(-1px)}100%{transform:none}}@keyframes table-kong{15%{transform:translate(-2px,3px)}35%{transform:translate(2px,-2px)}55%{transform:translate(-1px,1px)}100%{transform:none}}@keyframes wall-glow{50%{opacity:.5}}
@media(min-width:1100px){.tile-button{flex:0 1 55px}.hand-area{bottom:6px;z-index:5}.rack{gap:clamp(4px,.6vw,9px)}}
@media(max-width:1100px){.table-page{grid-template-columns:1fr}.chat-panel{display:none;max-height:480px}.chat-panel.is-open{display:flex}.game-board{min-height:470px}.table-heading{padding:10px 12px}.table-tools{gap:6px}}
@media(max-width:620px){body{background-attachment:scroll;background-size:auto 900px}.topbar{min-height:70px;padding:9px 10px;gap:8px}.brand{font-size:1.05rem;max-width:145px;line-height:1.1}.brand small{font-size:.58rem;letter-spacing:.1em}.top-actions{gap:4px;max-width:190px}.top-actions button{font-size:.75rem;min-height:36px;padding:7px 8px}.navigation{padding:6px 8px}.navigation button{font-size:.8125rem;padding:8px 10px}.table-page{padding:10px 7px 20px;gap:12px}.table-heading h1{font-size:1.2rem}.table-heading p{font-size:.75rem}.table-heading .table-tools{width:auto}.table-heading .table-tools button{font-size:.8125rem;padding:7px 9px}.game-board{border-width:7px;grid-template-columns:65px minmax(100px,1fr) 65px;grid-template-rows:auto minmax(126px,1fr) auto;gap:4px;padding:8px 4px;min-height:350px;box-shadow:inset 0 0 0 1px #f2c367,inset 0 0 0 3px #742e2d,inset 0 0 50px #032f2d,0 4px 0 #061c22}.mascot{width:67px;height:67px}.seat.north .mascot{width:53px;height:53px}.seat.south .mascot{width:39px;height:39px}.seat-name{font-size:.75rem;padding:4px;line-height:1.25;max-width:100%}.seat-name span{font-size:.625rem}.backs img{width:8px;height:12px}.seat.east .backs,.seat.west .backs{max-width:48px}.seat .exposures{max-width:100%}.meld img{width:13px;height:18px}.center{padding:6px 2px;border-radius:8px}.center-status{font-size:.75rem;line-height:1.35}.center-status small{font-size:.6875rem}.discard-pool{max-height:90px;gap:2px}.discard-pool img{width:16px;height:23px}.last-discard img{width:27px;height:37px}.last-discard{margin:3px 0 6px}.hand-area{padding:10px 7px;margin-top:9px;position:relative;bottom:auto}.move-guide{gap:7px;padding-bottom:9px}.move-guide h2{font-size:1rem}.move-guide p{font-size:.8125rem;line-height:1.4}.turn-clock{min-width:44px}.turn-clock span{font-size:1.12rem}.rack{gap:12px 3px;padding-top:9px}.tile-button{flex:0 0 44px;width:44px;min-width:44px;min-height:62px}.tile-button img{width:44px;height:61px}.call-effect strong{font-size:1.25rem}.effect-kong strong{font-size:1.65rem}.call-effect i{width:4px;height:2px}.effect-exchange strong{font-size:.8rem}.call-effect[data-side=east]{left:72%}.call-effect[data-side=west]{left:28%}.parlor-heading{min-height:120px}.win-art{height:235px}.win-copy{padding:16px}.waiting-seat .mascot{width:65px;height:65px}.waiting-table{padding:18px 10px}.chat-panel{padding:14px}.messages{min-height:100px}.chat-panel #chat-form{grid-template-columns:1fr auto}}
@media(prefers-reduced-motion:reduce){.call-effect{opacity:1!important;transform:translate(-50%,-50%)!important}.effect-discard{display:none}.call-effect i{display:none}.game-board{transform:none!important}}
.reduce-motion .call-effect{opacity:1!important;transform:translate(-50%,-50%)!important}.reduce-motion .effect-discard,.reduce-motion .call-effect i{display:none}.reduce-motion .game-board{transform:none!important}
/* Chat opens on demand, leaving the full table visible by default. */
.table-page{grid-template-columns:minmax(0,1fr)}.chat-panel{display:none}.chat-panel.is-open{display:flex}
@media(min-width:1101px){.table-page:has(.chat-panel.is-open){grid-template-columns:minmax(0,1fr) 260px}.game-board{max-height:590px}.game-board .seat.north .mascot{width:70px;height:70px}}
/* The rack must never cover the table, its calls, or other players. */
.hand-area{position:relative;bottom:auto;z-index:auto}.hand-label{min-height:30px}.move-guide{margin-bottom:4px}.rack{padding-top:8px}.game-board{min-height:390px;height:clamp(390px,44vh,450px);grid-template-rows:auto minmax(130px,1fr) auto}
@media(min-width:621px){.seat.north{display:grid;grid-template-columns:82px auto;grid-template-rows:auto auto;column-gap:10px;justify-content:center}.seat.north .mascot{grid-column:1;grid-row:1/4;width:82px;height:82px}.seat.north .seat-name{grid-column:2;grid-row:1;min-width:130px}.seat.north .backs{grid-column:2;grid-row:2}.seat.north .exposures{grid-column:2;grid-row:3}.seat.east .mascot,.seat.west .mascot{width:110px;height:110px}.seat.east,.seat.west{align-self:center}.seat.south .mascot{width:46px;height:46px}.seat .exposures:empty{display:none}}
@media(max-width:620px){.game-board{min-height:350px;height:auto;grid-template-rows:auto minmax(126px,1fr) auto}.hand-label{min-height:36px}}


/* 0.4 table experience */
.mascot[data-character="0"]{--character:0}.mascot[data-character="1"]{--character:1}.mascot[data-character="2"]{--character:2}.mascot[data-character="3"]{--character:3}
.seat-name{white-space:normal;overflow:visible;text-overflow:clip}.player-rank{display:block;margin-top:2px;color:#f1ce8b;font:600 .68rem/1.25 ui-monospace,monospace;letter-spacing:.02em}
.hand-area{gap:12px}.rack{padding:14px 12px;border-radius:14px;background:linear-gradient(180deg,#102f28,#0b241f);box-shadow:inset 0 1px 0 #7eb49555,0 12px 30px #06110d55}
.tile-button{width:58px;height:80px;padding:2px;border:1px solid #c99c55;border-radius:7px;background:linear-gradient(145deg,#fff9e8,#d9c7a4);box-shadow:0 5px 0 #82683d,0 8px 14px #0007;transition:transform .12s ease,filter .12s ease,box-shadow .12s ease}
.tile-button:hover{transform:translateY(-4px);filter:brightness(1.08);box-shadow:0 8px 0 #82683d,0 12px 17px #0008}.tile-button.selected{transform:translateY(-11px);border-color:#ffe2a7;box-shadow:0 11px 0 #a67632,0 16px 23px #0009,0 0 0 3px #f7cb72}
.tile-button img{width:100%;height:100%;object-fit:contain;border-radius:5px;image-rendering:auto}
.action-bar{justify-content:center;align-items:center;margin:2px auto 0;width:100%}.action-bar .primary{min-width:min(320px,100%);font-size:1rem;padding:13px 24px}
.discard-pool img{width:35px;height:49px;margin:3px;filter:drop-shadow(0 3px 2px #0008);image-rendering:auto}.meld img{width:32px;height:44px;filter:drop-shadow(0 2px 1px #0007);image-rendering:auto}
.table-hints{margin:16px auto 0;max-width:1100px;padding:16px;border:1px solid #8c7142;border-radius:12px;background:linear-gradient(145deg,#183b31,#102a24);box-shadow:0 10px 24px #0005}.table-hints header{display:flex;justify-content:space-between;align-items:center;gap:12px}.tile-counts{display:flex;gap:7px;overflow-x:auto;padding:8px 2px 12px}.tile-count{display:grid;place-items:center;min-width:54px;padding:7px;border:1px solid #486b59;border-radius:8px;background:#0d261f}.tile-count img{width:33px;height:46px;image-rendering:auto}.tile-count strong{color:var(--gold);font-size:.78rem}.hint-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}.hint-card{padding:11px;border:1px solid #416454;border-radius:8px;background:#112d26}.hint-card.blocked{opacity:.55}.hint-card strong,.hint-card small{display:block}.hint-card small{color:var(--muted);margin-top:3px}
.toon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.toon-choice{display:grid;place-items:center;gap:8px;padding:16px}.toon-choice .mascot{width:76px;height:76px}
@media(max-width:700px){.tile-button{width:49px;height:68px}.rack{padding:11px 8px}.discard-pool img{width:28px;height:39px;margin:2px}.meld img{width:26px;height:36px}.action-bar .primary{width:100%;min-width:0}.table-hints{padding:12px}.tile-count{min-width:48px}.tile-count img{width:29px;height:40px}}

.hints-panel{margin:16px auto 0;max-width:1100px;padding:16px;border:1px solid #8c7142;border-radius:12px;background:linear-gradient(145deg,#183b31,#102a24);box-shadow:0 10px 24px #0005}.hint-patterns{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}.hint-pattern{display:grid;gap:4px;padding:11px;border:1px solid #416454;border-radius:8px;background:#112d26}.hint-pattern span{color:var(--muted);font-size:.8rem}.hint-pattern.blocked{opacity:.55}

/* 0.4.1 generated premium tile faces */
.tile-art{display:inline-block;flex:0 0 auto;background-image:url('/assets/tiles-v2.webp?v=0.4.1');background-repeat:no-repeat;background-size:900% 500%;vertical-align:middle}
.tile-art-b1{background-position:0% 0%}
.tile-art-b2{background-position:12.5% 0%}
.tile-art-b3{background-position:25% 0%}
.tile-art-b4{background-position:37.5% 0%}
.tile-art-b5{background-position:50% 0%}
.tile-art-b6{background-position:62.5% 0%}
.tile-art-b7{background-position:75% 0%}
.tile-art-b8{background-position:87.5% 0%}
.tile-art-b9{background-position:100% 0%}
.tile-art-c1{background-position:0% 25%}
.tile-art-c2{background-position:12.5% 25%}
.tile-art-c3{background-position:25% 25%}
.tile-art-c4{background-position:37.5% 25%}
.tile-art-c5{background-position:50% 25%}
.tile-art-c6{background-position:62.5% 25%}
.tile-art-c7{background-position:75% 25%}
.tile-art-c8{background-position:87.5% 25%}
.tile-art-c9{background-position:100% 25%}
.tile-art-d1{background-position:0% 50%}
.tile-art-d2{background-position:12.5% 50%}
.tile-art-d3{background-position:25% 50%}
.tile-art-d4{background-position:37.5% 50%}
.tile-art-d5{background-position:50% 50%}
.tile-art-d6{background-position:62.5% 50%}
.tile-art-d7{background-position:75% 50%}
.tile-art-d8{background-position:87.5% 50%}
.tile-art-d9{background-position:100% 50%}
.tile-art-we{background-position:0% 75%}
.tile-art-ws{background-position:12.5% 75%}
.tile-art-ww{background-position:25% 75%}
.tile-art-wn{background-position:37.5% 75%}
.tile-art-dr{background-position:50% 75%}
.tile-art-dg{background-position:62.5% 75%}
.tile-art-dw{background-position:75% 75%}
.tile-art-f1{background-position:87.5% 75%}
.tile-art-f2{background-position:100% 75%}
.tile-art-f3{background-position:0% 100%}
.tile-art-f4{background-position:12.5% 100%}
.tile-art-f5{background-position:25% 100%}
.tile-art-f6{background-position:37.5% 100%}
.tile-art-f7{background-position:50% 100%}
.tile-art-f8{background-position:62.5% 100%}
.tile-art-f{background-position:75% 100%}
.tile-art-j{background-position:87.5% 100%}
.tile-art-back{background-position:100% 100%}
.tile-button .tile-art{width:100%;height:100%;border-radius:5px}.mode-tiles .tile-art{width:42px;height:58px}.discard-pool .tile-art{width:35px;height:49px;margin:3px;filter:drop-shadow(0 3px 2px #0008)}.last-discard .tile-art{width:48px;height:67px;filter:drop-shadow(0 5px 4px #0009)}.meld .tile-art{width:32px;height:44px;filter:drop-shadow(0 2px 1px #0007)}.tile-count .tile-art{width:33px;height:46px}.effect-discard .tile-art{position:absolute;width:28px;height:39px;animation:tile-flight .34s cubic-bezier(.22,.75,.3,1) both;animation-delay:var(--effect-age,0ms)}
@media(max-width:700px){.mode-tiles .tile-art{width:30px;height:42px}.discard-pool .tile-art{width:28px;height:39px;margin:2px}.meld .tile-art{width:26px;height:36px}.last-discard .tile-art{width:38px;height:53px}.tile-count .tile-art{width:29px;height:40px}}

/* Full rivers remain readable outside the compact animated board. */
.discard-history{margin-top:18px;padding:16px;background:#073c35;border:1px solid var(--gold);border-radius:8px}.discard-history h2{font-size:1.3rem;margin-bottom:8px}.discard-seats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.discard-seat{min-width:0}.discard-seat h3{margin:0 0 8px}.discard-seat ol{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:5px}.discard-seat li{display:flex;flex-direction:column;align-items:center;gap:3px}.discard-seat .tile-art{width:38px;height:53px}.discard-seat small{font-size:10px}.discard-seat .claimed .tile-art{opacity:.45}.empty-discard{color:var(--muted);font-size:.8rem}.win-explanation{margin-top:8px}.win-explanation summary{font-size:.85rem}.win-explanation p{font-size:.875rem;margin:0 0 8px}.discard-pool{overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}
@media(max-width:620px){.discard-seats{grid-template-columns:1fr}.discard-history{padding:12px}.discard-seat .tile-art{width:36px;height:50px}}

.table-tools .hints-active{background:var(--gold);border-color:var(--gold);color:#162920;box-shadow:0 0 0 2px #e5bd7840}

/* Phone game shell: the table owns the viewport; reference material lives in sheets. */
.phone-bar,.phone-dock,.phone-help{display:none}
.table-sheet{width:min(720px,calc(100vw - 24px));max-width:720px;max-height:calc(100dvh - 24px);padding:0;border:1px solid #c9a05e;border-radius:18px;background:#102e2c;box-shadow:0 20px 80px #000b;overflow:hidden}
.table-sheet[open]{display:flex;flex-direction:column}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;padding:14px 18px;background:#163e36;border-bottom:1px solid #54735a}.sheet-header h2{margin:0;font-size:1.35rem}.sheet-header p{font-size:.75rem;color:var(--gold);margin:4px 0 0}.sheet-header button{min-width:64px}.sheet-body{padding:16px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin}.sheet-body .discard-history,.sheet-body .hints-panel,.sheet-body .result-card{margin:0;padding:0;border:0;background:transparent}.sheet-body .discard-history>h2{display:none}.sheet-body .result-card{color:var(--ink)}.sheet-body .result-card h2{color:var(--gold)}.sheet-body .score-row{border-color:var(--line)}.sheet-body .result-card>button{margin:8px 4px 0 0}.sheet-body .chat-panel{display:flex!important;border:0;padding:0;max-height:none;height:100%;min-height:0}.sheet-body:has(>.chat-panel){display:flex;flex-direction:column;height:65dvh}.sheet-body .messages{min-height:0;flex:1;max-height:none}.sheet-body .chat-panel>.section-title{display:none}.sheet-body #mute-controls:empty{display:none}.phone-menu{display:grid;grid-template-columns:1fr 1fr;gap:10px}.phone-menu button{min-height:54px}.sets-player{margin-bottom:20px}.sets-player .exposures{justify-content:flex-start;flex-wrap:wrap}.sets-player .tile-art{width:34px;height:47px}.sets-player h3{color:var(--gold)}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 body.phone-table{height:100dvh;overflow:hidden;background:#082c2b}
 body.phone-table>.topbar,body.phone-table>.shell>.navigation,body.phone-table>footer{display:none}
 body.phone-table .shell,body.phone-table #main,body.phone-table #table,body.phone-table .table-stage,body.phone-table #table-content{height:100%;min-height:0;max-height:none;min-width:0}
 body.phone-table .shell{width:100%;max-width:none}
 body.phone-table #table{display:block;padding:0;margin:0}
 body.phone-table .table-stage{display:block}
 body.phone-table #table-content{display:flex;flex-direction:column;gap:0;padding:env(safe-area-inset-top) max(6px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px,env(safe-area-inset-left));overflow:hidden}
 body.phone-table .table-heading,body.phone-table .desktop-extras,body.phone-table .desktop-result,body.phone-table #table>.chat-panel{display:none!important}
 .phone-bar{display:flex;align-items:center;gap:8px;height:50px;min-height:50px;padding:3px 0;color:#f8e5ba}
 .phone-bar>div{flex:1;min-width:0}.phone-bar strong,.phone-bar span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.phone-bar strong{font-size:1rem}.phone-bar span{font-size:.68rem;color:#b8cabc}.phone-bar>button{width:44px;min-width:44px;padding:0;height:44px;border:0;background:transparent;font-size:1.8rem}.phone-bar .phone-network{font-size:.875rem;border:1px solid #38685a;border-radius:50%}
 body.phone-table .game-board{flex:1;min-height:100px;height:auto;max-height:none;margin:0;border-width:5px;border-radius:15px;grid-template-columns:70px minmax(0,1fr) 70px;grid-template-rows:auto minmax(0,1fr) auto;gap:2px;padding:4px;box-shadow:inset 0 0 0 1px #f2c367,inset 0 0 28px #032f2d,0 2px 0 #061c22;overflow:hidden}
 body.phone-table .game-board .seat{min-width:0;max-width:100%;gap:2px;position:relative}
 body.phone-table .game-board .seat.north{grid-column:2;grid-row:1;flex-direction:row;align-items:center;justify-content:center;gap:4px}
 body.phone-table .game-board .seat.east{grid-column:3;grid-row:2}.phone-table .game-board .seat.west{grid-column:1;grid-row:2}
 body.phone-table .game-board .seat.south{grid-column:1/-1;grid-row:3;flex-direction:row;align-items:center;justify-content:center;gap:5px}
 body.phone-table .game-board .mascot{width:48px;height:48px;flex-shrink:0;filter:drop-shadow(0 2px 1px #0006)}
 body.phone-table .game-board .seat.north .mascot{width:40px;height:40px}.phone-table .game-board .seat.south .mascot{width:28px;height:28px}
 body.phone-table .game-board .seat.south .seat-name{display:none}.phone-table .game-board .seat.south .backs{display:none}
 body.phone-table .game-board .seat-name{font-size:.72rem;padding:2px 3px;line-height:1.2;background:#062b29cc;border-radius:4px;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
 body.phone-table .game-board .seat-name>span{font-size:.6rem}.phone-table .game-board .player-rank{font-size:.58rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
 body.phone-table .game-board .backs{display:none}
 body.phone-table .game-board .exposures{gap:2px;max-height:48px;overflow:hidden;flex-wrap:wrap;justify-content:center}
 body.phone-table .game-board .meld{gap:0}.phone-table .game-board .meld .tile-art{width:14px;height:20px;filter:none}.phone-table .game-board .seat.south .exposures{max-height:28px}.phone-table .game-board .seat.south .meld .tile-art{width:18px;height:25px}
 body.phone-table .game-board .center{grid-column:2;grid-row:2;align-self:stretch;min-width:0;min-height:0;border:0;background:radial-gradient(ellipse,#12645455,transparent);padding:2px;box-shadow:none;border-radius:6px;overflow:hidden;justify-content:center}
 body.phone-table .game-board .wind-mark{display:none}.phone-table .game-board .center-status{font-size:.7rem;line-height:1.2;margin:2px 0;max-width:100%}.phone-table .game-board .center-status small{display:none}
 body.phone-table .game-board .last-discard{flex-shrink:1;min-height:0;margin:2px;padding:0;box-shadow:none}.phone-table .game-board .last-discard .tile-art{width:38px;height:53px;filter:drop-shadow(0 3px 3px #001b)}
 body.phone-table .game-board .discard-pool{display:none}
 body.phone-table .hand-area{flex:none;min-width:0;margin:6px 0 0;padding:8px 6px 6px;border:1px solid #678664;border-radius:14px;background:linear-gradient(#123e38,#0c302d);box-shadow:inset 0 1px #c9b17044;position:static}
 body.phone-table .move-guide{margin:0;padding:0 1px 5px;gap:5px;align-items:center;min-height:34px;border:0}
 body.phone-table .move-guide>div:first-child{min-width:0;flex:1}.phone-table .move-guide h2{font:700 .88rem/1.2 system-ui;margin:0 0 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f5d38d}.phone-table .move-guide p{font-size:.7rem;line-height:1.2;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.phone-table .turn-clock{min-width:38px;flex-shrink:0;padding:0}.phone-table .turn-clock span{font-size:.95rem}
 body.phone-table .hand-label{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:22px;margin:0;font-size:.65rem}.phone-table .hand-label>span{font-size:.6rem;letter-spacing:.08em}.phone-table .hand-label .text-button{padding:0 3px;min-height:24px;font-size:.65rem}.phone-help{display:inline-block}
 body.phone-table .rack{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px 2px;padding:7px 0 3px;overflow:visible;max-width:100%;min-width:0;justify-content:center;align-items:end}
 body.phone-table .rack .tile-button{width:100%;height:auto;aspect-ratio:5/7;max-height:66px;min-height:0;min-width:0;padding:0;border-radius:5px;border:0;overflow:visible;box-shadow:0 2px 0 #112520;transform:none;touch-action:manipulation}
 body.phone-table .rack .tile-button .tile-art{display:block;width:100%;height:100%;border-radius:5px}.phone-table .rack .tile-button.selected{transform:translateY(-5px);outline:2px solid #f7d06f;outline-offset:0;box-shadow:0 4px 9px #050e0d99}.phone-table .rack .tile-button.drawn:not(.selected){outline:1px solid #c9a870;outline-offset:0}
 body.phone-table .rack .tile-button:disabled{opacity:.8}.phone-table .action-bar{display:flex;flex-wrap:wrap;gap:4px;margin:5px 0 0;padding:0;min-height:44px}.phone-table .action-bar button{flex:1 1 28%;width:auto;min-width:0;min-height:44px;padding:5px 4px;font-size:.75rem;line-height:1.15;border-radius:8px;box-shadow:none;margin:0}.phone-table .action-bar .primary{width:auto;min-width:0}.phone-table .action-bar button:only-child{flex-basis:100%}.phone-table .action-bar:empty{min-height:0;margin:0}.phone-table .action-bar .blind-select{flex:1;display:flex;align-items:center;gap:4px;font-size:.66rem}.phone-table .action-bar select{font-size:.7rem;padding:3px;min-height:38px;min-width:0}.phone-table .action-bar>p{display:none}.phone-table .win-explanation{display:none}
 .phone-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;flex:none;height:56px;min-height:56px;padding:5px 0 3px}.phone-dock button{font-size:.75rem;line-height:1.2;min-width:0;min-height:44px;border:1px solid #38675a;border-radius:10px;padding:4px;background:#123d35;box-shadow:none}.phone-dock small{display:block;font:600 .6rem/1.2 system-ui;color:#bcd0b3}.phone-dock .hints-active{background:#d3ac61;color:#17382e;border-color:#f3d48c}.phone-dock .hints-active small{color:#254d3a}
 body.phone-table .notice{top:max(8px,env(safe-area-inset-top));font-size:.8rem;padding:10px 14px;z-index:25;pointer-events:none}
 .table-sheet{width:100%;max-width:100%;max-height:calc(100dvh - env(safe-area-inset-top) - 8px);margin:auto 0 0;inset:auto 0 0;border-radius:20px 20px 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}
 .sheet-header{padding:12px 14px}.sheet-header h2{font-size:1.2rem}.sheet-body{padding:14px;max-height:calc(100dvh - 100px)}.sheet-body .discard-seat .tile-art{width:38px;height:53px}.sheet-body .hints-panel .section-title{align-items:flex-start;flex-wrap:wrap}.sheet-body .hints-panel .section-title h2{display:none}.sheet-body .hints-panel p{font-size:.8rem}.sheet-body .tile-counts{grid-template-columns:repeat(auto-fit,minmax(45px,1fr))}.sheet-body .hints-panel button{min-height:44px}.sheet-body .waiting-seats{grid-template-columns:repeat(2,1fr)}
 body.phone-table .waiting-table{flex:1;min-height:0;overflow:auto;margin:0;padding:10px;border:1px solid #4c765a;border-radius:15px;background:#123d34;display:flex;flex-direction:column;justify-content:center;gap:6px}.phone-table .waiting-table>.eyebrow{margin:0;text-align:center}.phone-table .waiting-table .bot-controls>h3{display:none}.phone-table .waiting-seats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}.phone-table .waiting-seat{min-width:0;padding:8px;gap:3px}.phone-table .waiting-seat .mascot{width:48px;height:48px}.phone-table .waiting-seat select{padding:5px;min-height:40px;font-size:.8rem}.phone-table .waiting-seat small{font-size:.7rem}.phone-table .waiting-seat label{font-size:.65rem}.phone-table .waiting-table .bot-controls>p{margin:5px 0;font-size:.7rem}.phone-table .waiting-table>button{margin:0;min-height:44px}
 .sheet-body .result-card .card-groups .tile-art{width:30px;height:42px}.sheet-body .result-card .card-groups{gap:3px}
}
@media(max-width:760px) and (max-height:650px){
 body.phone-table .phone-bar{height:44px;min-height:44px}.phone-table .hand-area{padding:5px 5px 4px;margin-top:4px}.phone-table .move-guide{min-height:28px;padding-bottom:2px}.phone-table .move-guide p{-webkit-line-clamp:1}.phone-table .hand-label{min-height:20px}.phone-table .rack .tile-button{max-height:57px}.phone-table .rack{gap:4px 2px;padding-top:6px}.phone-table .phone-dock{height:50px;min-height:50px;padding:3px 0}.phone-table .game-board .seat.north .mascot{width:30px;height:30px}.phone-table .game-board .mascot{width:38px;height:38px}.phone-table .game-board .seat.south .mascot{width:22px;height:22px}.phone-table .game-board .last-discard .tile-art{width:29px;height:41px}
}
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){
 body.phone-table #table-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:44px minmax(0,1fr) 50px;gap:0 7px}.phone-table .phone-bar{grid-column:1/-1;height:44px;min-height:44px}.phone-table .game-board{grid-column:1;grid-row:2;min-height:0}.phone-table .hand-area{grid-column:2;grid-row:2;margin:0;min-height:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding:5px}.phone-table .phone-dock{grid-column:1/-1;grid-row:3;height:50px;min-height:50px}.phone-table .rack{flex-shrink:1;min-height:0}.phone-table .rack .tile-button{max-height:54px}.phone-table .move-guide{min-height:28px}.phone-table .move-guide p{-webkit-line-clamp:1}.phone-table .waiting-table{grid-column:1/-1;grid-row:2;display:block;padding:6px}.phone-table .waiting-seats{grid-template-columns:repeat(4,minmax(0,1fr))}.phone-table .waiting-seat .mascot{width:28px;height:28px}.phone-table .waiting-seat{padding:4px}.phone-table .waiting-seat>small,.phone-table .waiting-table>.eyebrow{display:none}.phone-table .waiting-table>.primary{width:70%;margin-right:8px}.phone-table .waiting-table>.text-button{width:25%}.phone-table .waiting-table .bot-controls>p{margin:2px;font-size:.6rem}
}

.phone-river{display:none}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 body.phone-table .phone-river{display:flex;flex-wrap:wrap;justify-content:center;gap:3px;max-width:145px;margin-top:8px;flex-shrink:0}.phone-table .phone-river .tile-art{width:30px;height:42px;filter:drop-shadow(0 2px 1px #0006)}
 body.phone-table .game-board .mascot{width:clamp(38px,9dvh,70px);height:clamp(38px,9dvh,70px)}.phone-table .game-board .seat.north .mascot{width:clamp(30px,7dvh,56px);height:clamp(30px,7dvh,56px)}.phone-table .game-board .seat.south .mascot{width:clamp(22px,5dvh,40px);height:clamp(22px,5dvh,40px)}
}
@media(max-width:760px) and (max-height:650px),(orientation:landscape) and (max-height:500px) and (max-width:1000px){body.phone-table .phone-river{max-width:125px;margin-top:3px;gap:2px}.phone-table .phone-river .tile-art{width:22px;height:31px}.phone-table .phone-river .tile-art:nth-last-child(n+5){display:none}}

.sets-shortcut{display:none}
.claim-owner{display:block;font-size:.72rem;color:var(--gold);line-height:1.15}
.phone-bar .phone-rules{font-size:.75rem;border:1px solid #38685a;border-radius:8px}
.last-call{flex:none;width:100%;font-size:.75rem;line-height:1.3;background:#244f44;border-left:3px solid var(--gold);padding:4px 6px;text-align:left;border-radius:3px}
.last-call>span{color:var(--muted);margin-right:4px}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){body.phone-table .sets-shortcut{display:block;border:1px solid #6b986a;background:#144b3d;padding:2px 3px;min-height:28px;min-width:44px;font-size:.58rem;line-height:1.1;border-radius:5px}.phone-table .game-board .seat:not(.south)>.exposures{display:none}.phone-table .game-board .seat.south>.exposures{display:none}.phone-table .game-board[data-phase=claim] .phone-river{display:none}}

.decision-tile{display:none}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){body.phone-table .decision-tile{display:block;flex:none!important;width:32px}.phone-table .decision-tile .tile-art{width:32px;height:45px}.phone-table .move-guide>div:has(h2){min-width:0;flex:1}}
@media(max-width:760px) and (max-height:650px),(orientation:landscape) and (max-height:500px) and (max-width:1000px){body.phone-table .hand-area[data-phase=claim] .action-bar button{flex-basis:21%;font-size:.68rem}.phone-table .game-board[data-phase=claim] .mascot,.phone-table .game-board[data-phase=claim] .seat.north .mascot{width:28px;height:28px}.phone-table .game-board[data-phase=claim] .seat.south .mascot{width:20px;height:20px}.phone-table .hand-area[data-phase=claim] .move-guide p{display:none}.phone-table .hand-area[data-phase=claim] .move-guide{min-height:32px}.phone-table .hand-area[data-phase=claim] .decision-tile .tile-art{width:25px;height:35px}.phone-table .hand-area[data-phase=claim] .decision-tile{width:25px}}

@media(max-width:760px),(max-width:1000px) and (max-height:500px){body.phone-table .game-board .seat.north{display:flex}.phone-table .game-board .seat-name{flex-shrink:0}.phone-table .game-board .seat.north .seat-name{flex:1;min-width:0}.phone-table .sets-shortcut{flex-shrink:0}}
@media(max-width:760px) and (max-height:650px){body.phone-table .game-board[data-phase=claim] .seat:not(.south) .mascot{display:none}.phone-table .game-board[data-phase=claim] .player-rank{display:none}}

@media(max-width:760px){body.phone-table .waiting-table .waiting-seat{display:grid;grid-template-columns:36px minmax(0,1fr);grid-template-rows:auto auto 1fr;gap:3px 6px;text-align:left;align-items:center}.phone-table .waiting-table .waiting-seat .mascot{grid-column:1;grid-row:1/3;width:36px;height:36px}.phone-table .waiting-table .waiting-seat>strong{grid-column:2;grid-row:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.phone-table .waiting-table .waiting-seat>.player-rank{grid-column:2;grid-row:2;font-size:.6rem}.phone-table .waiting-table .waiting-seat>small:not(.player-rank){display:none}.phone-table .waiting-table .waiting-seat>label,.phone-table .waiting-table .waiting-seat>.badge{grid-column:1/-1;grid-row:3}.phone-table .waiting-table .waiting-seat>label{margin-top:3px;gap:3px}.phone-table .waiting-table .waiting-seat select{min-height:44px}}

/* Every discard remains in the table view; the larger sheet is optional. */
.table-players{display:contents}.live-discards{display:grid;grid-template-columns:repeat(var(--river-cols,12),minmax(0,1fr));grid-template-rows:repeat(var(--river-rows,1),minmax(0,1fr));gap:2px;align-items:center;justify-items:center;align-content:center;flex:1;min-height:0;width:100%;overflow:visible}.river-tile{line-height:0;border-bottom:2px solid var(--jade);padding-bottom:1px}.river-tile[data-owner="0"]{border-color:#f5d174}.river-tile[data-owner="1"]{border-color:#91cdff}.river-tile[data-owner="2"]{border-color:#f6a5c7}.river-tile[data-owner="3"]{border-color:#94daae}.river-tile.claimed{opacity:.35}.live-discards .tile-art{display:block;width:var(--river-size,24px);height:calc(var(--river-size,24px)*1.4);filter:none;border-radius:2px}.river-label{font-size:.65rem;display:flex;justify-content:space-between;width:100%;color:var(--gold);margin:3px 0;flex:none}.river-label span{color:var(--muted)}.river-empty{grid-column:1/-1;font-size:.75rem;color:var(--muted);line-height:1.4}.game-board>.center{align-self:stretch;min-height:0}.game-board .center .wind-mark{display:none}.game-board .center-status{flex:none}.game-board .last-discard{flex:none}.game-board .center{border-radius:10px;padding:6px}.game-board{min-height:570px}.game-board .center-status{margin:3px 0}.game-board .last-discard{margin:2px}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 body.phone-table .game-board{display:flex;flex-direction:column;padding:4px;gap:2px;min-height:80px}
 body.phone-table .table-players{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;flex:none;width:100%;align-items:start}
 body.phone-table .game-board .table-players .seat{display:flex;flex-direction:column;gap:2px;align-self:stretch;justify-content:start;align-items:center;max-height:none;min-height:0}
 body.phone-table .game-board .table-players .mascot{width:28px;height:28px;display:block}
 body.phone-table .game-board .table-players .seat-name{display:block!important;width:100%;min-width:0;padding:2px;flex:none;font-size:.64rem;line-height:1.1;border:0;border-bottom:2px solid #f6a5c7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.phone-table .game-board .table-players .seat.north .seat-name{flex:none}
 body.phone-table .game-board .table-players .seat.west .seat-name{border-color:#94daae}.phone-table .game-board .table-players .seat.east .seat-name{border-color:#91cdff}.phone-table .game-board .table-players .seat.south .seat-name{border-color:#f5d174}
 body.phone-table .game-board .table-players .seat-name>span,body.phone-table .game-board .table-players .player-rank{display:none}
 body.phone-table .game-board .table-players .sets-shortcut{font-size:.58rem;min-height:28px;padding:3px 4px;position:static;min-width:44px;max-width:100%;opacity:1;margin-top:1px}
 body.phone-table .last-call{font-size:.62rem;padding:3px 4px;margin:2px 0}
 body.phone-table .claim-owner{font-size:.65rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:65vw}
 body.phone-table .game-board .center{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;padding:0;overflow:visible}
 body.phone-table .game-board .center-status{font-size:.65rem;line-height:1.1;margin:0 0 2px;padding-right:36px;text-align:left;width:100%;min-height:28px}
 body.phone-table .game-board .center-status br:first-of-type{display:none}.phone-table .game-board .center-status small{display:inline;font-size:.58rem}
 body.phone-table .game-board .last-discard{position:absolute;right:10px;top:58px;pointer-events:none}
 body.phone-table .game-board{position:relative}.phone-table .game-board .last-discard .tile-art{width:21px;height:29px}
 body.phone-table .live-discards{min-height:0;flex:1}.phone-table .river-label{font-size:.58rem;margin:2px 0}.phone-table .live-discards .tile-art{width:var(--river-size,20px);height:calc(var(--river-size,20px)*1.4)}
 body.phone-table .river-tile{border-bottom-width:1px;padding-bottom:0}
}
@media(max-width:760px) and (max-height:650px){
 body.phone-table .game-board .table-players .mascot{display:none}.phone-table .game-board .table-players .sets-shortcut{display:none}.phone-table .game-board .table-players .seat-name{font-size:.58rem}.phone-table .game-board .last-discard{top:21px}.phone-table .game-board .center-status{min-height:23px;font-size:.58rem}.phone-table .game-board .last-discard .tile-art{width:18px;height:25px}
}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 body.phone-table .game-board .table-players .seat{grid-column:auto!important;grid-row:auto!important}
 body.phone-table .hand-area[data-phase=claim] .action-bar button{flex-basis:21%}
}
@media(max-width:760px) and (max-height:650px){
 body.phone-table .game-board .table-players .mascot{display:none!important}.phone-table .game-board .last-discard{top:21px!important}.phone-table .game-board .center-status{min-height:23px!important}
 body.phone-table .hand-area[data-phase=claim] .rack .tile-button{height:46px;max-height:46px;aspect-ratio:auto}
 body.phone-table .hand-area[data-phase=claim] .rack .tile-button .tile-art{width:33px;max-width:100%;height:46px;margin:auto}
}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){body.phone-table .game-board .table-players .player-rank{display:block;font-size:.52rem;line-height:1.1;margin:1px 0 0}.phone-table .game-board .table-players .seat.south{order:-1}.phone-table .game-board .table-players .seat.east{order:0}.phone-table .game-board .table-players .seat.north{order:1}.phone-table .game-board .table-players .seat.west{order:2}}
@media(max-width:760px) and (max-height:650px){body.phone-table .game-board[data-phase=claim] .table-players .player-rank{display:none}}
:root{--hint:#d2a2ff;--drawn:#6bd8f1}
.hand-score{font-size:.78rem;line-height:1.3;background:#102b25;border-left:3px solid var(--gold);padding:6px 8px;margin:3px 0 7px}
.score-parts{display:flex;flex-wrap:wrap;gap:2px 10px}.score-parts strong{color:var(--gold)}.hand-score p{margin:3px 0 0}.score-requirement{color:#f5e6c8}
.hint-advice{border:1px solid #9974ba;border-radius:8px;padding:12px;margin:10px 0;background:#282f3c}.hint-advice h3{color:#e1c7ff;margin:0 0 8px}.hint-advice p{font-size:.85rem;margin-bottom:8px}.marker-legend{color:#cccae1;font-size:.75rem}
.tile-button.drawn:after{display:none}.tile-button.drawn:not(.selected){outline:2px solid var(--drawn);outline-offset:0}.tile-button.recommended:not(.selected){outline:2px dashed var(--hint);outline-offset:1px}
.tile-marker{position:absolute;z-index:1;font:bold 8px/12px system-ui;padding:0 2px;border-radius:2px;color:#11231f;pointer-events:none}.new-marker{bottom:0;right:0;background:var(--drawn)}.hint-marker{top:0;right:0;background:var(--hint)}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 body.phone-table .hand-score{font-size:.62rem;line-height:1.2;padding:4px 5px;margin:2px 0 3px}.phone-table .score-parts{gap:1px 7px}
 body.phone-table .rack .tile-button.drawn:not(.selected){outline:2px solid var(--drawn)}
 body.phone-table .rack .tile-button.recommended:not(.selected){outline:2px dashed var(--hint)}
 body.phone-table .hand-label>span{letter-spacing:0}
}
.setup-dialog{width:min(720px,calc(100vw - 24px));max-width:720px;max-height:calc(100dvh - 24px);padding:22px;overflow:auto;border-radius:16px;box-shadow:0 20px 80px #0008}
.setup-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.setup-heading h2{margin:0}.setup-heading .eyebrow{font-size:9px;margin:0 0 5px}.setup-heading button{flex:none}
.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.setup-grid section,.setup-grid #variant-fields{display:grid;align-content:start;gap:13px;min-width:0}.setup-grid select,.setup-grid input{width:100%;max-width:100%;font-size:.82rem}.setup-grid p{margin:0;line-height:1.4}
.setup-seats{border:1px solid var(--line);border-radius:7px;padding:9px;display:grid;gap:6px;margin:0;min-width:0}.setup-seats legend{color:var(--gold);font-size:.8rem}.setup-seats label{display:grid;grid-template-columns:48px 1fr;align-items:center;gap:5px}
.setup-summary{display:grid;gap:5px;padding:13px;border:1px solid #8daa73;background:#254739;border-radius:8px;font-size:.82rem}.setup-summary strong{color:#f5d38d}.setup-summary small{line-height:1.45;color:#b8cbbc}
.preview-seats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:15px 0}.preview-seats>div{display:grid;gap:5px;background:#102e28;border:1px solid #486c57;padding:10px 7px;border-radius:7px;overflow-wrap:anywhere}.preview-seats small,.preview-seats span{font-size:.7rem;color:var(--muted)}.preview-seats strong{font-size:.83rem}
.variant-rules h3{color:#f5d38d;font-size:1.1rem}.variant-rules>p{font-size:.85rem}.variant-rules dl{margin:12px 0}.variant-rules dl>div{display:grid;grid-template-columns:120px 1fr;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:.82rem}.variant-rules dt{color:var(--muted)}.variant-rules dd{margin:0}.rank-note{color:#edd09a}
.room-row-actions{display:flex;flex-direction:column;gap:6px;flex:none}.room-row-actions button{padding:8px 10px;font-size:.78rem}.room-row>div:first-child{min-width:0;overflow-wrap:anywhere}.table-rules-shortcut{margin-bottom:10px;max-width:100%;font-size:.8rem}
@media(max-width:600px){.setup-dialog{padding:16px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.setup-grid{grid-template-columns:1fr;gap:14px}.setup-heading h2{font-size:1.4rem}.preview-seats{grid-template-columns:repeat(2,minmax(0,1fr))}.variant-rules dl>div{grid-template-columns:90px 1fr}.room-row{align-items:flex-start}.room-row-actions button{font-size:.7rem;padding:6px 8px}.setup-heading .eyebrow{letter-spacing:.08em}}

.table-modal-tools{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0}.table-page{grid-template-columns:minmax(0,1fr)}.table-page>.chat-panel{display:none}.hand-area>.action-bar{margin:6px 0 12px}.table-sheet .hints-panel{display:block}
/* Zodiac portrait atlas: stable IDs, independent of reaction pose. */
.character-card{display:grid;gap:6px;min-width:0}.character-card .toon-choice{width:100%}.toon-choice[aria-pressed=true]{border:2px solid var(--gold);background:#30574a}.mascot[data-character]{image-rendering:auto}
.mascot[data-character="0"]{--portrait-x:0%;--portrait-y:0%;}
.mascot[data-character="1"]{--portrait-x:33.333333333333336%;--portrait-y:0%;}
.mascot[data-character="2"]{--portrait-x:66.66666666666667%;--portrait-y:0%;}
.mascot[data-character="3"]{--portrait-x:100%;--portrait-y:0%;}
.mascot[data-character="4"]{--portrait-x:0%;--portrait-y:33.333333333333336%;}
.mascot[data-character="5"]{--portrait-x:33.333333333333336%;--portrait-y:33.333333333333336%;}
.mascot[data-character="6"]{--portrait-x:66.66666666666667%;--portrait-y:33.333333333333336%;}
.mascot[data-character="7"]{--portrait-x:100%;--portrait-y:33.333333333333336%;}
.mascot[data-character="8"]{--portrait-x:0%;--portrait-y:66.66666666666667%;}
.mascot[data-character="9"]{--portrait-x:33.333333333333336%;--portrait-y:66.66666666666667%;}
.mascot[data-character="10"]{--portrait-x:66.66666666666667%;--portrait-y:66.66666666666667%;}
.mascot[data-character="11"]{--portrait-x:100%;--portrait-y:66.66666666666667%;}
.mascot[data-character="12"]{--portrait-x:0%;--portrait-y:100%;}
.mascot[data-character="13"]{--portrait-x:33.333333333333336%;--portrait-y:100%;}
.mascot[data-character="14"]{--portrait-x:66.66666666666667%;--portrait-y:100%;}
#toon-dialog{width:min(760px,94vw);max-height:88dvh;overflow:auto} .toon-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.toon-choice{min-width:0}.toon-choice small{font-size:.8rem}.voice-preview{min-height:44px}#preferences-dialog{width:min(480px,94vw);max-height:90dvh;overflow:auto}#preferences-body{display:grid;gap:16px;padding:12px}#pref-volume{width:100%;min-height:44px}.preferences-link{min-height:44px}


/* 0.8.1: make table calls read as a satisfying on-table moment. */
.call-effect{z-index:8;filter:drop-shadow(4px 6px 0 #571d23) drop-shadow(0 0 18px #ffbd4e99)}
.call-effect strong{font-size:clamp(1.75rem,4.4vw,3.5rem);letter-spacing:-.06em;text-shadow:2px -2px 0 #6b2528,-2px 2px 0 #6b2528,0 5px 0 #3d1720}
.effect-pung strong{font-size:clamp(2.7rem,7.5vw,5.8rem);color:#fff1b7;text-shadow:3px -3px 0 #8c252c,-3px 3px 0 #8c252c,0 8px 0 #4a1822}
.effect-kong strong{font-size:clamp(2.4rem,6.5vw,5rem)}
.effect-pung i{width:11px;height:5px;box-shadow:0 0 14px 3px #ffb33e;transform:rotate(var(--angle)) translateX(86px)}
.game-board[data-impact=pung]{animation:table-pung-big .58s cubic-bezier(.16,.8,.3,1) both;box-shadow:inset 0 0 0 1px #f2c367,inset 0 0 0 3px #742e2d,inset 0 0 70px #ffb13b55,0 7px 0 #061c22}
.game-board[data-impact=pung] .center{animation:center-pung-flash .58s ease-out both}
.game-board[data-impact=pung] .discard-pool{animation:discard-pung-kick .48s ease-out both}
.seat[data-reaction="slam"] .mascot{animation:mascot-pung-slam .78s cubic-bezier(.14,.85,.3,1) both}
@keyframes table-pung-big{0%{transform:scale(1) translateY(0)}14%{transform:scale(1.018) translateY(-7px)}28%{transform:scale(.992) translateY(8px)}43%{transform:scale(1.012) translateY(-4px)}66%{transform:scale(.998) translateY(2px)}100%{transform:none}}
@keyframes center-pung-flash{0%,100%{filter:none}20%{filter:brightness(1.65) saturate(1.45)}45%{filter:brightness(1.18)}}
@keyframes discard-pung-kick{18%{transform:scale(1.1) rotate(-2deg)}52%{transform:scale(.98) rotate(1deg)}100%{transform:none}}
@keyframes mascot-pung-slam{0%{transform:translateY(-25px) scale(1.12) rotate(-12deg)}24%{transform:translateY(12px) scale(.91) rotate(7deg)}46%{transform:translateY(-8px) scale(1.05) rotate(-3deg)}68%{transform:translateY(3px) scale(.99)}100%{transform:none}}
@media(max-width:620px){.effect-pung strong{font-size:clamp(2.35rem,13vw,4rem)}.effect-pung i{transform:rotate(var(--angle)) translateX(62px)}}
@media(prefers-reduced-motion:reduce){.game-board[data-impact=pung] .center,.game-board[data-impact=pung] .discard-pool{animation:none!important}}

/* Clearer choices, with the same jade-and-gold table language. */
.tile-caption{position:absolute;bottom:1px;left:2px;right:2px;z-index:2;background:#102e2ced;color:#fff3d2;border-radius:0 0 4px 4px;font:700 11px/15px system-ui;text-align:center;white-space:nowrap;pointer-events:none}
.tile-button:has(.tile-caption) .new-marker{bottom:auto;top:0;left:0;right:auto}
.action-bar .claim-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:106px;padding:9px 14px;border-color:#ae9561;font-weight:700}
.claim-preview{display:flex;gap:3px;align-items:center;justify-content:center;pointer-events:none}
.claim-preview>span{display:block;border-radius:3px}.claim-preview .tile-art{display:block;width:20px;height:28px}
.claim-preview .claimed-tile{outline:2px solid #f5cb72;outline-offset:1px;transform:translateY(-2px)}
.claim-benefit{font-size:.72rem;font-weight:400}.quick-guide{border-top:1px solid var(--line);margin-top:18px;padding-top:14px}.quick-guide h3{color:var(--gold)}
.quick-guide dl>div{display:grid;grid-template-columns:90px 1fr;gap:10px;margin:10px 0}.quick-guide dt{font-weight:700;color:#f6d38d}.quick-guide dd{margin:0;line-height:1.45}
.comfort-options{border:1px solid #789575;border-radius:10px;padding:12px;margin:0}.comfort-options legend{padding:0 6px;font-weight:700;color:var(--gold)}.comfort-options p{margin:8px 0 0}.comfort-options label{margin:8px 0}
body:has(dialog[open]){overflow:hidden}
button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #ffe39f;outline-offset:3px}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 body.phone-table .tile-caption{font-size:10px;line-height:14px;left:1px;right:1px}
 body.phone-table .action-bar .claim-choice{min-width:0;gap:4px;padding:5px 3px;font-size:.74rem;min-height:58px}
 body.phone-table .claim-preview{gap:2px}.phone-table .claim-preview .tile-art{width:18px;height:25px}.phone-table .claim-benefit{font-size:.6rem}
}
@media(max-width:760px) and (max-height:650px),(orientation:landscape) and (max-height:500px) and (max-width:1000px){
 body.phone-table .action-bar .claim-choice{min-height:48px;gap:3px;font-size:.67rem}.phone-table .claim-preview .tile-art{width:11px;height:16px}
}
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){
 body.phone-table .hand-area{gap:0;justify-content:flex-start}
 body.phone-table .hand-area>.action-bar{flex:none;margin:4px 0 7px}
 body.phone-table .rack{flex:none}
}
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){
 body.phone-table .hand-area .rack .tile-button{height:44px;max-height:44px;aspect-ratio:auto}
 body.phone-table .hand-area .rack .tile-button .tile-art{width:31px;max-width:100%;height:44px;margin:auto}
 body.phone-table .hand-area .tile-caption{font-size:9px;line-height:12px}
}

/* 0.8.3: the playing surface and rack never pulse or resize with a turn. */
.game-board[data-impact]{animation:none!important;transform:none!important}
.game-board[data-impact] .center,.game-board[data-impact] .discard-pool{animation:none!important;transform:none!important}
.game-board{height:570px;min-height:570px;flex:none}
.live-discards{--river-size:32px;grid-template-columns:repeat(auto-fill,var(--river-size));grid-template-rows:none;grid-auto-rows:calc(var(--river-size)*1.4 + 3px);align-content:start;justify-content:start;align-items:start;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 body.phone-table .game-board{flex:1;min-height:80px;height:auto}
 body.phone-table .hand-area{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:48px 28px 24px 120px 128px;height:364px;min-height:364px;flex:none;gap:0;padding:7px 6px;overflow:auto;align-content:start}
 body.phone-table .hand-area .move-guide{grid-row:1;min-height:0;margin:0;padding:0;overflow:hidden}
 body.phone-table .hand-area .hand-score{grid-row:2;min-height:0;max-height:28px;margin:0;overflow:auto;padding:2px 4px}
 body.phone-table .hand-area .hand-label{grid-row:3;min-height:0;margin:0;overflow:hidden}
 body.phone-table .hand-area>.action-bar{grid-row:4;align-content:start;align-items:start;min-height:0;height:120px;overflow:auto;flex:none;margin:0;padding:3px 0;gap:4px}
 body.phone-table .hand-area>.action-bar button{flex-grow:1;flex-basis:21%;min-height:44px}
 body.phone-table .hand-area .rack{grid-row:5;grid-template-rows:repeat(2,58px);grid-auto-rows:58px;align-items:start;height:128px;min-height:128px;margin:0;padding:7px 0 0;gap:5px 2px;overflow:auto}
 body.phone-table .hand-area .rack .tile-button{height:58px;max-height:58px;aspect-ratio:auto}
 body.phone-table .hand-area .rack .tile-button .tile-art{width:41px;max-width:100%;height:58px;margin:auto}
 body.phone-table .live-discards{--river-size:24px}
 body.phone-table .game-board .table-players .player-rank{display:block;height:12px}
 body.phone-table .game-board .center{overflow:hidden}
 body.phone-table .game-board .center-status{height:28px;overflow:hidden}
 body.phone-table .last-call{height:24px;min-height:24px;overflow:hidden}
}
@media(max-width:760px) and (max-height:650px),(orientation:landscape) and (max-height:500px) and (max-width:1000px){
 body.phone-table .hand-area{grid-template-rows:40px 26px 24px 100px 104px;height:306px;min-height:306px;padding:5px}
 body.phone-table .hand-area>.action-bar{height:100px;padding:0}
 body.phone-table .hand-area .rack{grid-template-rows:repeat(2,46px);grid-auto-rows:46px;height:104px;min-height:104px;gap:5px 2px}
 body.phone-table .hand-area .rack .tile-button{height:46px;max-height:46px;aspect-ratio:auto}
 body.phone-table .hand-area .rack .tile-button .tile-art{width:33px;max-width:100%;height:46px;margin:auto}
 body.phone-table .game-board[data-phase] .table-players .player-rank{display:block}
}
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){
 body.phone-table .game-board{height:auto;min-height:0}
 body.phone-table .hand-area{margin:0;height:100%;min-height:0;grid-template-rows:36px 22px 22px 100px 104px}
}
.ranking-rules{display:flex;align-items:center;gap:12px;max-width:550px;margin:14px 0}.ranking-rules select{min-height:44px;min-width:0;flex:1}.rating-receipt{display:grid;gap:6px;border:1px solid var(--gold);border-radius:10px;padding:14px;margin:16px 0;background:#173f35}.rating-receipt>strong{font-size:1.3rem;color:var(--gold)}.rating-receipt>p{margin:0;font-size:.8rem}

/* 0.9: the full cast has a consistent five-pose atlas. Surfaces never move. */
.mascot[data-character]{--cast-row:0;--pose:0;background-image:url('/assets/lantern/cast-1.webp');background-size:500% 500%;background-position:calc(var(--pose)*25%) calc(var(--cast-row)*25%);border-radius:0;mask-image:none;image-rendering:pixelated}
.seat[data-pose="1"] .mascot{--pose:1}.seat[data-pose="2"] .mascot{--pose:2}.seat[data-pose="3"] .mascot{--pose:3}.seat[data-pose="4"] .mascot{--pose:4}
.victory-character[data-character],.result-mascot[data-character],.collection-card.earned .mascot[data-character]{--pose:3}
.lobby-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.lobby-welcome h1{font-size:clamp(1.7rem,4vw,2.8rem);margin:4px 0}.lobby-welcome .mascot{width:130px;height:130px}.lobby-welcome p{margin:6px 0}
.play-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.play-choices button{padding:22px 16px;text-align:left;border-radius:12px;min-height:112px}.play-choices strong,.play-choices span{display:block}.play-choices strong{font-size:1.1rem;margin-bottom:10px}.play-choices span{font-size:.85rem;line-height:1.45;font-weight:400}.play-choices button:first-child{box-shadow:0 4px 0 #805822}.online-panel summary{cursor:pointer;font-weight:700}.online-panel #online-players{padding-top:16px}.collection-link{display:block;width:100%;text-align:left;margin-top:16px;padding:18px;color:#ffe5a5}.collection-link span{display:block;font-size:.8rem;font-weight:400;margin-top:8px}
.mini-table{display:grid;grid-template-columns:repeat(2,38px);gap:3px;padding:5px;border:2px solid #98713d;border-radius:14px;background:#134139;flex:none}.mini-seat{width:38px;height:38px;display:grid;place-items:center}.mini-seat .mascot{width:38px;height:38px}.mini-seat.vacant{border:1px dashed #789b82;border-radius:50%;color:#bed5bc}.room-row{gap:14px}.room-row>div:nth-child(2){flex:1}.room-row-actions{flex:none}.preview-seats+.variant-rules{margin-top:15px}.setup-dialog>.mini-table{margin:auto}
.rating-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;border:1px solid #c7a867;border-radius:14px;padding:22px;background:#0a302e;margin:18px 0}.rating-hero strong{display:inline-block;font-size:2.8rem;color:#ffe196;margin-right:14px}.rating-hero span{font-size:.9rem}.rating-hero p{margin:4px 0}.ranking-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0}.ranking-controls .filters{margin:0}.ranking-controls button{min-height:44px;padding:8px 12px}.ranking-controls select{width:auto;max-width:100%}.ranking-controls #rankings-updated{flex-basis:100%;order:5;margin:0;font-size:.75rem}.ranking-help{font-size:.85rem;margin:10px 0}.ranking-controls .ranking-help{order:6}.ranking-help summary{cursor:pointer}.ranking-help p{max-width:70ch;line-height:1.6}#rankings .table-scroll{background:#082b2bea;border-radius:12px;margin-top:20px}
.tutorial{display:flex;gap:25px;align-items:flex-start;background:#0b3030;border:1px solid #bd985e;border-radius:18px;padding:25px;margin:12px 0 24px}.tutorial>.mascot{width:120px;height:120px;flex:none}.tutorial #lesson-content{flex:1;min-width:0}.tutorial h2{font-size:1.7rem;margin:8px 0 22px}.lesson-tiles{display:flex;gap:14px;flex-wrap:wrap;min-height:68px}.lesson-tiles>span{display:flex;gap:2px;align-items:flex-end}.lesson-tiles .tile-art{width:30px;height:42px}.tutorial p{max-width:65ch;line-height:1.7}.lesson-controls{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}.full-rules{padding:20px;background:#082c2ee8;border-radius:12px}.full-rules>summary{cursor:pointer;font-weight:700;font-size:1.1rem}
.coach-tile{display:flex;align-items:center;gap:14px}.coach-tile .tile-art{width:44px;height:62px}.improving-tiles{display:flex;flex-wrap:wrap;gap:12px}.improving-tiles>span{display:grid;justify-items:center;gap:7px}.improving-tiles .tile-art{width:32px;height:45px}.improving-tiles small{font-size:.8rem}.hint-advice details,.hint-count-details,.hint-path-details{margin-top:18px;padding:12px 0;border-top:1px solid #517466}.hints-panel summary{cursor:pointer;font-weight:700}.hints-panel p{line-height:1.6}.hint-advice .eyebrow{margin-bottom:6px}
.win-dialog{max-height:92dvh;overflow:auto;width:min(640px,94vw);max-width:640px}.win-art{height:200px;display:grid;place-items:center}.win-art .victory-character{width:200px;height:200px}.win-call{font-size:2.4rem;bottom:0}.win-copy{padding:18px}.win-copy>p{margin:7px 0}.winning-reveal .card-groups{display:flex;justify-content:center;gap:3px;flex-wrap:wrap;margin:16px 0}.winning-reveal .tile-art{display:inline-block;width:27px;height:38px}.winning-set{display:flex;gap:2px;margin:0 5px}.score-bonuses{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.score-bonuses>span{display:block;font-size:.8rem;background:#173e36;border:1px solid #728665;border-radius:20px;padding:7px 12px}.score-bonuses strong{color:#f8d887}.winning-tiles{animation:reveal-in .5s ease-out both}.score-bonuses{animation:reveal-in .5s .25s ease-out both}.victory-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:18px 0 8px}.result-mascot{width:100px;height:100px;margin:0 auto}.result-card>.eyebrow,.result-card>h2{text-align:center}
@keyframes reveal-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.collection-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:24px 0}.collection-card{border:1px solid #577667;background:#092c2c;border-radius:16px;padding:20px;text-align:center}.collection-card.earned{border-color:#e1b86d;box-shadow:inset 0 0 24px #b9943520}.collection-card .mascot{width:100px;height:100px;margin:auto}.collection-card.locked .mascot{filter:grayscale(1);opacity:.5}.collection-card h2{font-size:1.15rem;color:#ffe2a4}.collection-card p{font-size:.9rem;min-height:42px}.collection-card small{display:block;margin-top:10px}.collection-tiles{display:flex;justify-content:center;gap:3px}.collection-tiles .tile-art{width:26px;height:37px}.collection-card strong{color:#e5c483}
.mix-slider{display:grid;grid-template-columns:1fr auto;gap:5px}.mix-slider input{grid-column:1/-1;width:100%;min-height:36px}.comfort-preview{display:flex;align-items:center;gap:12px}.comfort-preview .mascot{width:64px;height:64px;--pose:1}.comfort-preview.is-preview .mascot{animation:mascot-slam .65s ease-out}.comfort-preview small{line-height:1.4}.call-effect .call-set{display:flex;justify-content:center;gap:3px;margin-top:6px}.call-set img{position:static;width:24px;height:34px;animation:meld-lock .5s ease-out}.seat[data-reaction="slam"] .mascot{filter:drop-shadow(0 0 10px #ffd875)}
@media(max-width:620px){.lobby-welcome{gap:5px}.lobby-welcome .mascot{width:82px;height:82px}.play-choices{grid-template-columns:1fr 1fr;gap:8px}.play-choices button{padding:16px 12px}.play-choices button:last-child{grid-column:1/-1;min-height:70px}.play-choices button:last-child strong{margin-bottom:4px}.room-row{flex-wrap:wrap}.room-row-actions{width:100%;display:flex;gap:8px;justify-content:flex-end}.rating-hero{padding:16px;gap:12px;align-items:flex-start;flex-direction:column}.ranking-controls{gap:8px}.ranking-controls .filters{flex-wrap:wrap;gap:5px}.ranking-controls button{font-size:.8rem;padding:8px}.tutorial{padding:18px 14px;gap:10px;display:block}.tutorial>.mascot{width:68px;height:68px;float:right}.tutorial h2{font-size:1.3rem;min-height:50px}.lesson-tiles{gap:12px 8px;clear:both}.lesson-tiles .tile-art{width:24px;height:34px}.tutorial p{font-size:.94rem}.collection-grid{grid-template-columns:1fr 1fr;gap:10px}.collection-card{padding:12px 8px}.collection-card .mascot{width:75px;height:75px}.collection-card p{min-height:70px}.win-art{height:145px}.win-art .victory-character{width:145px;height:145px}.win-call{font-size:1.9rem}.win-copy{padding:14px}.win-copy h2{font-size:1.35rem}.winning-reveal .tile-art{width:22px;height:31px}.call-set img{width:18px;height:25px}}
@media(prefers-reduced-motion:reduce){.winning-tiles,.score-bonuses,.comfort-preview.is-preview .mascot{animation:none!important}}.reduce-motion .winning-tiles,.reduce-motion .score-bonuses,.reduce-motion .comfort-preview.is-preview .mascot{animation:none!important}

.mascot[data-character="0"]{background-image:url('/assets/lantern/cast-1.webp');background-size:500% 500%;background-position:calc(var(--pose)*25%) 0%;border-radius:0;--cast-row:0}
.mascot[data-character="1"]{background-image:url('/assets/lantern/cast-1.webp');background-size:500% 500%;background-position:calc(var(--pose)*25%) 25%;border-radius:0;--cast-row:1}
.mascot[data-character="2"]{background-image:url('/assets/lantern/cast-1.webp');background-size:500% 500%;background-position:calc(var(--pose)*25%) 50%;border-radius:0;--cast-row:2}
.mascot[data-character="3"]{background-image:url('/assets/lantern/cast-1.webp');background-size:500% 500%;background-position:calc(var(--pose)*25%) 75%;border-radius:0;--cast-row:3}
.mascot[data-character="4"]{background-image:url('/assets/lantern/cast-1.webp');background-size:500% 500%;background-position:calc(var(--pose)*25%) 100%;border-radius:0;--cast-row:4}
.mascot[data-character="5"]{background-image:url('/assets/lantern/cast-2.webp');background-size:500% 500%;background-position:calc(var(--pose)*25%) 0%;border-radius:0;--cast-row:0}
.mascot[data-character="6"]{background-image:url('/assets/lantern/cast-2.webp');background-size:500% 500%;background-position:calc(var(--pose)*25%) 25%;border-radius:0;--cast-row:1}
.mascot[data-character="7"]{background-image:url('/assets/lantern/cast-2.webp');background-size:500% 500%;background-position:calc(var(--pose)*25%) 50%;border-radius:0;--cast-row:2}
.mascot[data-character="8"]{background-image:url('/assets/lantern/cast-2.webp');background-size:500% 500%;background-position:calc(var(--pose)*25%) 75%;border-radius:0;--cast-row:3}
.mascot[data-character="9"]{background-image:url('/assets/lantern/cast-2.webp');background-size:500% 500%;background-position:calc(var(--pose)*25%) 100%;border-radius:0;--cast-row:4}
.mascot[data-character="10"]{background-image:url('/assets/lantern/cast-3.webp');background-size:500% 500%;background-position:calc(var(--pose)*25%) 0%;border-radius:0;--cast-row:0}
.mascot[data-character="11"]{background-image:url('/assets/lantern/cast-3.webp');background-size:500% 500%;background-position:calc(var(--pose)*25%) 25%;border-radius:0;--cast-row:1}
.mascot[data-character="12"]{background-image:url('/assets/lantern/cast-3.webp');background-size:500% 500%;background-position:calc(var(--pose)*25%) 50%;border-radius:0;--cast-row:2}
.mascot[data-character="13"]{background-image:url('/assets/lantern/cast-3.webp');background-size:500% 500%;background-position:calc(var(--pose)*25%) 75%;border-radius:0;--cast-row:3}
.mascot[data-character="14"]{background-image:url('/assets/lantern/cast-3.webp');background-size:500% 500%;background-position:calc(var(--pose)*25%) 100%;border-radius:0;--cast-row:4}

.win-copy #win-score{animation:reveal-in .4s .5s ease-out both}.victory-rating{animation:reveal-in .4s .75s ease-out both}
@media(prefers-reduced-motion:reduce){.win-copy #win-score,.victory-rating{animation:none!important}}.reduce-motion .win-copy #win-score,.reduce-motion .victory-rating{animation:none!important}

.phone-bar .phone-invite{font-size:.8rem;width:54px;min-width:54px;background:var(--gold);color:#17382e;border-radius:8px}#invite-dialog{width:min(540px,94vw);max-height:90dvh;overflow:auto}#invite-url{width:100%;font-size:16px}.invite-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}#invite-seats button{margin:4px 4px 4px 0}

.afk-control{display:inline-flex!important;align-items:center;gap:5px;margin:0;font:700 .75rem/1.1 system-ui;color:#ffe18a;white-space:nowrap}.afk-control input{width:18px!important;height:18px!important;margin:0;accent-color:#f7c85f}.afk-badge{display:inline-block;padding:2px 4px;margin-left:4px;background:#ffd172;color:#193b32;border-radius:4px;font-size:.65rem}.afk-message{margin:0;color:#ffe18a;font-weight:700}
.claim-choice.pung-ready:not(:disabled){background:#ffe28a!important;color:#15372c!important;border:3px solid #fff5ca!important;box-shadow:0 0 0 2px #d18e2c,0 0 22px #ffd15c;font-weight:900;animation:pung-glow 1.15s ease-in-out infinite alternate}.claim-choice.pung-ready>span{font-size:1.15em}
@keyframes pung-glow{to{box-shadow:0 0 0 2px #ffe59c,0 0 34px #ffc43b}}
@media(prefers-reduced-motion:reduce){.claim-choice.pung-ready{animation:none!important}}.reduce-motion .claim-choice.pung-ready{animation:none!important}

.afk-control{min-height:24px;flex-shrink:0}.afk-control input{min-height:18px!important;min-width:18px!important;padding:0!important}

/* Takeover occupies the existing action slot, preserving board and rack position. */
.action-bar .afk-takeover,.phone-menu .afk-takeover{flex-basis:100%!important;width:100%;min-height:48px;background:#ffe18a;color:#173c32;font-weight:800;border:2px solid #fff0bc;font-size:1rem}

/* Four sides again: fixed seat positions, with the discard river in the middle. */
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 body.phone-table .game-board{display:grid;grid-template-columns:64px minmax(0,1fr) 64px;grid-template-rows:48px minmax(0,1fr) 38px;gap:3px;padding:5px}
 body.phone-table .game-board .table-players{display:contents}
 body.phone-table .game-board .table-players .seat{order:0;align-self:center;min-width:0;width:100%;overflow:hidden}
 body.phone-table .game-board .table-players .seat.north{grid-column:2!important;grid-row:1!important}
 body.phone-table .game-board .table-players .seat.west{grid-column:1!important;grid-row:2!important}
 body.phone-table .game-board .table-players .seat.east{grid-column:3!important;grid-row:2!important}
 body.phone-table .game-board .table-players .seat.south{grid-column:2!important;grid-row:3!important}
 body.phone-table .game-board .center{grid-column:2;grid-row:2;position:relative;min-width:0;overflow:hidden;align-self:stretch}
 body.phone-table .game-board .table-players .seat-name{font-size:.65rem;text-align:center}
 body.phone-table .game-board .table-players .seat.west .seat-name,body.phone-table .game-board .table-players .seat.east .seat-name{white-space:normal;overflow-wrap:anywhere}
 body.phone-table .game-board .last-discard{top:0!important;right:0}
 body.phone-table .game-board .table-players .seat.west .mascot,body.phone-table .game-board .table-players .seat.east .mascot{display:block!important;width:32px;height:32px}
 body.phone-table .game-board .table-players .seat.north .mascot,body.phone-table .game-board .table-players .seat.south .mascot{display:none!important}
}

/* Discard-first table: stable viewport rows, compact rim seats and one decision area. */
body.phone-table{height:100dvh;overflow:hidden}
body.phone-table>.topbar,body.phone-table .navigation,body.phone-table>footer{display:none!important}
body.phone-table .shell{width:100%;max-width:none}
body.phone-table #table{display:block;padding:0;margin:0}
body.phone-table .table-stage{display:block}
body.phone-table #table-content{height:100dvh;display:flex;flex-direction:column;padding:env(safe-area-inset-top) max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left));overflow:hidden}
body.phone-table .table-heading,body.phone-table .desktop-extras,body.phone-table .desktop-result{display:none!important}
body.phone-table .phone-bar{display:flex;align-items:center;gap:8px;height:52px;min-height:52px;flex:none;padding:3px 0}
body.phone-table .phone-bar>div{flex:1;min-width:0}
body.phone-table .phone-bar strong,body.phone-table .phone-bar span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body.phone-table .phone-bar strong{font-size:1rem}
body.phone-table .phone-bar span{font-size:.75rem;color:#bed2c4}
body.phone-table .phone-bar>button{height:44px;min-width:44px;padding:4px 8px}
body.phone-table .phone-dock{display:flex;justify-content:center;gap:6px;height:50px;min-height:50px;padding:3px 0;flex:none}
body.phone-table .phone-dock button{flex:1;max-width:220px;min-height:44px;padding:4px 8px;font-size:.8rem;border-radius:8px}
body.phone-table .phone-dock small{font-size:.7rem;margin-left:4px}
body.phone-table .game-board.discard-first{display:grid;flex:1;height:auto;min-height:120px;max-height:none;grid-template-columns:104px minmax(0,1fr) 104px;grid-template-rows:60px minmax(0,1fr) 38px;gap:4px;padding:6px;border-width:5px;border-radius:12px;overflow:hidden}
body.phone-table .discard-first .table-players{display:contents}
body.phone-table .discard-first .table-players .seat{order:0;position:static;display:flex;flex-direction:column;align-self:center;justify-content:center;gap:3px;width:100%;min-width:0;max-height:100%;overflow:auto}
body.phone-table .discard-first .table-players .seat.north{grid-column:2!important;grid-row:1!important;flex-direction:row}
body.phone-table .discard-first .table-players .seat.west{grid-column:1!important;grid-row:2!important}
body.phone-table .discard-first .table-players .seat.east{grid-column:3!important;grid-row:2!important}
body.phone-table .discard-first .table-players .seat.south{grid-column:2!important;grid-row:3!important;flex-direction:row}
body.phone-table .discard-first .table-players .mascot{width:56px;height:56px;flex:none}
body.phone-table .discard-first .table-players .seat-name{display:block!important;max-width:100%;padding:3px 6px;font-size:.8rem;line-height:1.2;text-align:center;overflow:hidden;text-overflow:ellipsis}
body.phone-table .discard-first .table-players .seat-name>span{display:none}
body.phone-table .discard-first .table-players .player-rank{display:block!important;height:auto;font-size:.65rem;line-height:1.2;margin:2px 0 0}
body.phone-table .discard-first .table-players .backs{display:none}
body.phone-table .discard-first .table-players .seat.south .mascot{display:none!important}
body.phone-table .discard-first .sets-shortcut{display:block;min-height:28px;min-width:44px;padding:3px 6px;font-size:.7rem;border-radius:5px}
body.phone-table .discard-first .table-players .exposures{display:none}
body.phone-table .game-board.discard-first .center{grid-column:2;grid-row:2;display:flex;flex-direction:column;position:relative;align-self:stretch;justify-content:flex-start;min-width:0;min-height:0;width:100%;padding:0 4px;border:0;overflow:hidden;background:#073c3480;box-shadow:none;border-radius:8px}
body.phone-table .river-current{display:flex;align-items:center;gap:10px;flex:none;height:66px;min-height:66px;padding:4px 6px;text-align:left;width:100%;overflow:hidden}
body.phone-table .river-current>div:last-child{min-width:0}
body.phone-table .river-current span{display:block;font-size:.75rem;color:#bcd3c5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.phone-table .river-current strong{display:block;font-size:1rem;color:#ffe2a4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.phone-table .game-board.discard-first .last-discard{position:static!important;flex:none;margin:0;padding:0;border:0;box-shadow:none;background:none}
body.phone-table .game-board.discard-first .last-discard .tile-art{width:40px;height:56px}
body.phone-table .discard-first .river-label{height:22px;min-height:22px;align-items:center;margin:0;font-size:.75rem;padding:0 3px;color:#e5cd9a}
body.phone-table .discard-first .live-discards{--river-size:42px;display:grid;grid-template-columns:repeat(auto-fill,var(--river-size));grid-template-rows:none;grid-auto-rows:calc(var(--river-size)*1.4 + 4px);gap:4px;flex:1;min-height:0;align-content:start;justify-content:center;justify-items:center;overflow:auto;scrollbar-gutter:auto;padding:3px;scrollbar-width:thin}
body.phone-table .discard-first .live-discards .tile-art{width:var(--river-size);height:calc(var(--river-size)*1.4);filter:none}
body.phone-table .discard-first .river-tile.latest{outline:2px solid #ffe38b;outline-offset:0;border-radius:3px}
body.phone-table .hand-area.compact-hand{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:34px 66px 88px;gap:0 10px;height:200px;min-height:200px;flex:none;margin:5px 0 0;padding:5px 12px;border:1px solid #678664;border-radius:10px;background:linear-gradient(#123e38,#0c302d);overflow:hidden;align-content:start}
body.phone-table .compact-hand .move-guide{grid-column:1;grid-row:1;display:flex;align-items:center;gap:8px;min-height:0;height:34px;padding:0;margin:0;border:0;overflow:hidden}
body.phone-table .compact-hand .move-guide>div:first-child{flex:1;min-width:0}
body.phone-table .compact-hand .move-guide h2{margin:0;font:700 .95rem/1.25 system-ui;color:#ffe2a4;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
body.phone-table .compact-hand .move-guide p{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
body.phone-table .compact-hand .turn-clock{flex:none;min-width:44px;padding:0;font-size:.85rem}
body.phone-table .compact-hand .hand-label{grid-column:2;grid-row:1;display:flex;gap:10px;align-items:center;min-height:0;height:34px;margin:0;overflow:hidden}
body.phone-table .compact-hand .hand-label button{font-size:.75rem;min-height:32px;padding:4px 6px}
body.phone-table .compact-hand>.action-bar{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:nowrap;align-items:center;align-content:center;gap:8px;height:66px;min-height:66px;overflow:auto;flex:none;margin:0;padding:3px;scrollbar-width:thin}
body.phone-table .compact-hand>.action-bar>button{flex:0 0 auto;width:auto;min-width:120px;min-height:48px;margin:0;padding:7px 16px;border-radius:8px;font-size:.95rem;line-height:1.15}
body.phone-table .compact-hand>.action-bar .claim-choice{display:flex;flex-direction:row;gap:10px;min-width:150px;height:58px;flex:0 0 auto}
body.phone-table .compact-hand>.action-bar .claim-choice>span:first-child{font-size:1rem;font-weight:800}
body.phone-table .compact-hand .claim-preview .tile-art{width:23px;height:32px}
body.phone-table .compact-hand>.action-bar>.skip-claim{flex:0 0 54px!important;width:54px!important;min-width:54px;min-height:44px;height:44px;margin-left:auto;padding:4px;font-size:.8rem;background:transparent;border:1px solid #638878;color:#d5e5d8;box-shadow:none}
body.phone-table .compact-hand>.action-bar .claim-choice.primary{order:-1}
body.phone-table .compact-hand>.action-bar .afk-takeover{min-width:180px;flex:1!important}
body.phone-table .compact-hand .rack{grid-column:1/-1;grid-row:3;display:flex;justify-content:center;align-items:flex-start;gap:5px;height:88px;min-height:88px;margin:0;padding:8px 3px 0;overflow:auto}
body.phone-table .compact-hand .rack .tile-button{flex:none;width:48px;min-width:0;height:68px;max-height:68px;padding:0;aspect-ratio:auto}
body.phone-table .compact-hand .rack .tile-button .tile-art{display:block;width:48px;max-width:100%;height:68px;margin:auto}
body.phone-table .compact-hand .rack .tile-button:disabled{opacity:.88}
body.phone-table .compact-hand .action-bar>p{display:none}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 body.phone-table #table-content{padding-left:max(4px,env(safe-area-inset-left));padding-right:max(4px,env(safe-area-inset-right))}
 body.phone-table .phone-bar{gap:4px;height:50px;min-height:50px}
 body.phone-table .phone-bar span{font-size:.65rem}
 body.phone-table .game-board.discard-first{grid-template-columns:46px minmax(0,1fr) 46px;grid-template-rows:36px minmax(0,1fr) 34px;gap:2px;padding:4px;border-width:3px}
 body.phone-table .discard-first .table-players .seat{gap:3px;overflow:hidden}
 body.phone-table .discard-first .table-players .seat-name{width:100%;padding:3px 1px;font-size:.64rem;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
 body.phone-table .discard-first .table-players .player-rank{font-size:.53rem!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.phone-table .discard-first .table-players .mascot{display:block!important;width:34px!important;height:34px!important}
 body.phone-table .discard-first .table-players .seat.north .mascot,body.phone-table .discard-first .table-players .seat.south .mascot{display:none!important}
 body.phone-table .discard-first .table-players .seat.north .seat-name,body.phone-table .discard-first .table-players .seat.south .seat-name{width:auto;min-width:90px;max-width:170px}
 body.phone-table .discard-first .sets-shortcut{display:block!important;min-height:28px;font-size:.58rem;padding:2px;flex:none}
 body.phone-table .game-board.discard-first .center{padding:0 2px}
 body.phone-table .river-current{height:54px;min-height:54px;gap:6px;padding:2px}
 body.phone-table .river-current span{font-size:.65rem}
 body.phone-table .river-current strong{font-size:.9rem}
 body.phone-table .game-board.discard-first .last-discard .tile-art{width:34px;height:48px}
 body.phone-table .discard-first .river-label{height:20px;min-height:20px;font-size:.65rem;padding:0 2px}
 body.phone-table .discard-first .live-discards{--river-size:34px;gap:3px;padding:3px 1px}
 body.phone-table .hand-area.compact-hand{height:238px;min-height:238px;grid-template-columns:minmax(0,1fr) 60px;grid-template-rows:32px 66px 128px;gap:0 4px;padding:5px 6px;margin-top:4px}
 body.phone-table .compact-hand .move-guide{height:32px}
 body.phone-table .compact-hand .move-guide h2{font-size:.85rem}
 body.phone-table .compact-hand .hand-label{height:32px;gap:0;justify-content:flex-end}
 body.phone-table .compact-hand .hand-label .phone-help{display:none}
 body.phone-table .compact-hand>.action-bar{gap:6px;align-items:center}
 body.phone-table .compact-hand>.action-bar>button{font-size:.85rem;min-width:110px;padding:6px 10px;flex:0 0 auto}
 body.phone-table .compact-hand>.action-bar .claim-choice{min-width:116px;flex:1 0 116px;gap:6px;padding:5px 8px}
 body.phone-table .compact-hand .claim-preview .tile-art{width:20px;height:28px}
 body.phone-table .compact-hand>.action-bar>.skip-claim{position:sticky;right:0;background:#113b32;min-width:48px;width:48px!important;flex-basis:48px!important;font-size:.75rem}
 body.phone-table .compact-hand .rack{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(2,58px);grid-auto-rows:58px;justify-content:center;align-items:start;height:128px;min-height:128px;gap:5px 2px;padding:7px 0 0}
 body.phone-table .compact-hand .rack .tile-button{width:100%;height:58px;max-height:58px}
 body.phone-table .compact-hand .rack .tile-button .tile-art{width:41px;height:58px}
 body.phone-table .phone-dock{height:50px;min-height:50px;gap:4px}
 body.phone-table .phone-dock button{font-size:.75rem;padding:4px}
 body.phone-table .phone-dock small{display:inline;margin-left:3px;font-size:.65rem}
}
@media(max-width:760px) and (max-height:650px){
 body.phone-table .phone-bar{height:46px;min-height:46px}
 body.phone-table .hand-area.compact-hand{height:212px;min-height:212px;grid-template-rows:30px 64px 106px}
 body.phone-table .compact-hand .move-guide{height:30px}
 body.phone-table .compact-hand>.action-bar{height:64px;min-height:64px}
 body.phone-table .compact-hand .rack{grid-template-rows:repeat(2,46px);grid-auto-rows:46px;height:106px;min-height:106px;gap:5px 2px}
 body.phone-table .compact-hand .rack .tile-button{height:46px;max-height:46px}
 body.phone-table .compact-hand .rack .tile-button .tile-art{width:33px;height:46px}
}
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){
 body.phone-table #table-content{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-rows:46px minmax(0,1fr) 48px;gap:0 5px}
 body.phone-table .phone-bar{grid-column:1/-1;height:46px;min-height:46px}
 body.phone-table .game-board.discard-first{grid-column:1;grid-row:2;min-height:0}
 body.phone-table .hand-area.compact-hand{grid-column:2;grid-row:2;height:100%;min-height:0;margin:0;grid-template-rows:32px 66px minmax(0,1fr)}
 body.phone-table .compact-hand .rack{min-height:0;height:100%;grid-template-rows:repeat(2,46px);grid-auto-rows:46px;align-content:center}
 body.phone-table .compact-hand .rack .tile-button{height:46px;max-height:46px}
 body.phone-table .compact-hand .rack .tile-button .tile-art{width:33px;height:46px}
 body.phone-table .phone-dock{grid-column:1/-1;grid-row:3;height:48px;min-height:48px}
}
@media(min-width:761px) and (min-height:501px){
 body.phone-table .discard-first .table-players .exposures{display:flex;flex-wrap:wrap;gap:4px;max-height:150px;overflow:auto}
 body.phone-table .discard-first .table-players .meld .tile-art{width:28px;height:39px}
 body.phone-table .discard-first .table-players .sets-shortcut{display:none}
 body.phone-table .discard-first .table-players .seat.south .meld .tile-art{width:23px;height:32px}
}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 body.phone-table .discard-first .table-players .seat.west .player-rank,body.phone-table .discard-first .table-players .seat.east .player-rank{white-space:normal;overflow-wrap:anywhere;font-size:.6rem!important}
}
@media(min-width:761px) and (min-height:501px){
 body.phone-table .discard-first .live-discards{--river-size:52px}
 body.phone-table .hand-area.compact-hand{height:216px;min-height:216px;grid-template-rows:34px 66px 104px}
 body.phone-table .compact-hand .rack{height:104px;min-height:104px}
 body.phone-table .compact-hand .rack .tile-button,body.phone-table .compact-hand .rack .tile-button .tile-art{width:clamp(44px,4.4vw,64px);height:calc(clamp(44px,4.4vw,64px)*1.4);max-height:90px}
 body.phone-table .compact-hand .hand-label .phone-help{display:inline-flex;align-items:center}
}
body.phone-table .compact-hand>.action-bar .claim-choice.pung-ready{order:-1}
body.phone-table .compact-hand>.action-bar .claim-choice.primary{order:-2}
body.phone-table .compact-hand>.action-bar>.skip-claim{order:2}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 body.phone-table .compact-hand>.action-bar:has(.claim-choice~.claim-choice) .claim-choice{flex-direction:column;flex-basis:110px;min-width:110px;gap:2px}
}
body.phone-table .compact-hand>.action-bar{justify-content:flex-start;min-width:0}

body.phone-table .compact-hand .claim-options{display:flex;align-items:center;gap:8px;flex:1;min-width:0;height:66px;overflow-x:auto;overflow-y:hidden;padding:3px;scrollbar-width:thin}
body.phone-table .compact-hand .claim-options .claim-choice{border-radius:8px;min-height:58px}
body.phone-table .compact-hand>.action-bar:has(.claim-options){overflow:hidden;padding:0}
body.phone-table .compact-hand>.action-bar>.skip-claim{position:static;margin-left:0}
/* Reserve room for the call strip's scrollbar without clipping tile previews. */
body.phone-table .compact-hand>.action-bar,body.phone-table .compact-hand .claim-options{height:76px;min-height:76px}
body.phone-table .compact-hand .claim-options{align-items:flex-start}
@media(min-width:761px) and (min-height:501px){body.phone-table .hand-area.compact-hand{height:226px;min-height:226px;grid-template-rows:34px 76px 104px}}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){body.phone-table .hand-area.compact-hand{height:248px;min-height:248px;grid-template-rows:32px 76px 128px}}
@media(max-width:760px) and (max-height:650px){body.phone-table .hand-area.compact-hand{height:224px;min-height:224px;grid-template-rows:30px 76px 106px}}
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){body.phone-table .hand-area.compact-hand{height:100%;min-height:0;grid-template-rows:32px 76px minmax(0,1fr)}}

/* 0.12: one-row rack, all discards fitted, and four visible character reactions. */
body.phone-table .game-board.discard-first{grid-template-rows:54px minmax(0,1fr) 48px}
body.phone-table .discard-first .table-players .seat{overflow:visible}
body.phone-table .discard-first .table-players .seat.north,body.phone-table .discard-first .table-players .seat.south{flex-direction:row;gap:5px}
body.phone-table .game-board.discard-first .table-players .seat.north .mascot,body.phone-table .game-board.discard-first .table-players .seat.south .mascot{display:block!important;width:40px!important;height:40px!important;flex:none}
body.phone-table .discard-first .live-discards{grid-template-columns:repeat(var(--river-cols,8),var(--river-size));grid-auto-rows:calc(var(--river-size)*1.4 + 4px);gap:2px;padding:3px;align-content:start;overflow:auto;scrollbar-gutter:auto}
body.phone-table .discard-first .river-tile{position:relative}
body.phone-table .compact-hand .rack{display:grid;grid-template-columns:repeat(var(--hand-count,14),minmax(0,1fr));grid-template-rows:minmax(0,1fr);grid-auto-rows:auto;align-items:center;gap:3px;width:100%;max-width:980px;margin:0 auto;padding:10px 2px 4px;overflow:visible}
body.phone-table .compact-hand .rack .tile-button{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;height:100%;min-height:44px;max-height:none;aspect-ratio:auto}
body.phone-table .compact-hand .rack .tile-button .tile-art{display:block;width:100%;height:auto;max-height:90px;aspect-ratio:5/7;margin:0}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 body.phone-table .game-board.discard-first{grid-template-columns:40px minmax(0,1fr) 40px;grid-template-rows:44px minmax(0,1fr) 44px}
 body.phone-table .game-board.discard-first .table-players .seat.north .mascot,body.phone-table .game-board.discard-first .table-players .seat.south .mascot{width:36px!important;height:36px!important}
 body.phone-table .discard-first .table-players .seat.north .seat-name,body.phone-table .discard-first .table-players .seat.south .seat-name{min-width:0;max-width:155px}
 body.phone-table .hand-area.compact-hand{height:184px;min-height:184px;grid-template-rows:32px 76px 64px}
 body.phone-table .compact-hand .rack{height:64px;min-height:64px;grid-template-rows:minmax(0,1fr);gap:1px;padding:8px 0 4px}
 body.phone-table .compact-hand .rack .tile-button{height:100%;max-height:none;min-height:44px;border-radius:2px;box-shadow:none}
 body.phone-table .compact-hand .rack .tile-button .tile-art{width:100%;height:auto;max-height:52px;border-radius:2px}
 body.phone-table .compact-hand .rack .tile-caption{display:none}
 body.phone-table .compact-hand .rack .tile-marker{font-size:7px;line-height:9px;padding:0 1px}
}
@media(max-width:760px) and (max-height:650px){
 body.phone-table .hand-area.compact-hand{height:174px;min-height:174px;grid-template-rows:30px 76px 56px}
 body.phone-table .compact-hand .rack{height:56px;min-height:56px;padding-top:6px}
 body.phone-table .compact-hand .rack .tile-button .tile-art{max-height:46px}
}
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){
 body.phone-table #table-content{display:flex;flex-direction:column;gap:0}
 body.phone-table .game-board.discard-first{flex:1;min-height:80px;grid-template-columns:70px minmax(0,1fr) 70px;grid-template-rows:32px minmax(0,1fr) 32px}
 body.phone-table .game-board.discard-first .table-players .seat.north .mascot,body.phone-table .game-board.discard-first .table-players .seat.south .mascot{width:28px!important;height:28px!important}
 body.phone-table .hand-area.compact-hand{height:112px;min-height:112px;grid-template-columns:minmax(0,1fr) 110px;grid-template-rows:32px 68px;padding:5px 8px;margin:3px 0 0}
 body.phone-table .compact-hand .move-guide{grid-column:1;grid-row:1}
 body.phone-table .compact-hand .hand-label{grid-column:2;grid-row:1}
 body.phone-table .compact-hand>.action-bar{grid-column:1;grid-row:2;width:40%;height:68px;min-height:68px;z-index:2}
 body.phone-table .compact-hand .claim-options{height:68px;min-height:68px;scrollbar-width:none}
 body.phone-table .compact-hand .rack{grid-column:1/-1;grid-row:2;width:58%;margin-left:auto;height:68px;min-height:68px;padding:8px 0 4px;gap:2px}
 body.phone-table .compact-hand .rack .tile-button .tile-art{max-height:54px}
 body.phone-table .river-current{height:40px;min-height:40px}
 body.phone-table .game-board.discard-first .last-discard .tile-art{width:25px;height:35px}
 body.phone-table .phone-dock{height:48px;min-height:48px}
}
/* Only the tiles, characters and overlaid effects move. */
.river-tile.is-landing{animation:river-land .44s ease-out both;animation-delay:var(--effect-age,0ms);z-index:2}
@keyframes river-land{0%{filter:brightness(1.6);transform:scale(.8)}55%{transform:scale(1.13);filter:brightness(1.3)}100%{transform:none;filter:none}}
.game-board .effect-discard img{width:36px;height:50px;animation:river-flight .44s cubic-bezier(.15,.65,.25,1) both;animation-delay:var(--effect-age,0ms)}
@keyframes river-flight{0%{left:var(--from-x);top:var(--from-y);transform:translate(-50%,-50%) rotate(-18deg) scale(1.1);opacity:1}75%{left:var(--to-x,50%);top:var(--to-y,50%);transform:translate(-50%,-50%) rotate(5deg) scale(.9);opacity:1}100%{left:var(--to-x,50%);top:var(--to-y,50%);transform:translate(-50%,-50%) scale(.55);opacity:0}}
.game-board .effect-pung,.game-board .effect-kong,.game-board .effect-chow,.game-board .effect-expose{left:50%!important;top:50%!important;animation:hero-call 1.2s cubic-bezier(.16,.7,.25,1) both;animation-delay:var(--effect-age,0ms);isolation:isolate}
@keyframes hero-call{0%{opacity:0;transform:translate(-50%,-50%) scale(1.6) rotate(-9deg)}14%{opacity:1;transform:translate(-50%,-50%) scale(.94) rotate(2deg)}28%,78%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.06)}}
.game-board .call-effect .call-set{gap:4px;padding:6px 10px;background:#092d27e8;border:1px solid #f5d387;border-radius:9px;box-shadow:0 5px 18px #0007}
.game-board .call-effect .call-set img{width:32px;height:45px}
.call-player{display:block;width:max-content;max-width:200px;margin:0 auto 5px;padding:3px 9px;background:#0b332ced;border-radius:5px;font:700 .8rem/1.2 system-ui;color:#fff0c3;text-shadow:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.call-ring{position:absolute;left:50%;top:40%;z-index:-1;width:120px;height:120px;border:6px solid #ffe4a0;border-radius:50%;box-shadow:0 0 22px #ffbd55,inset 0 0 20px #ffbc5566;animation:call-wave .8s ease-out both;animation-delay:var(--effect-age,0ms);pointer-events:none}
@keyframes call-wave{from{opacity:.85;transform:translate(-50%,-50%) scale(.3)}to{opacity:0;transform:translate(-50%,-50%) scale(2.4)}}
.game-board .call-effect i{width:10px;height:4px;animation:call-shard .85s ease-out both;animation-delay:var(--effect-age,0ms)}
@keyframes call-shard{from{opacity:1;transform:rotate(var(--angle)) translateX(25px) scale(1.2)}to{opacity:0;transform:rotate(var(--angle)) translateX(130px) scale(.25)}}
@media(max-width:760px){.game-board .effect-pung strong,.game-board .effect-kong strong{font-size:clamp(2.8rem,14vw,4.2rem)}.game-board .call-effect .call-set img{width:28px;height:39px}}
@media(prefers-reduced-motion:reduce){.call-ring{display:none!important}.river-tile.is-landing{animation:none!important}.game-board .call-effect{opacity:1!important}}
.reduce-motion .call-ring{display:none!important}.reduce-motion .river-tile.is-landing{animation:none!important}.reduce-motion .game-board .call-effect{animation:none!important;opacity:1!important}

#wallet-badge{flex-basis:auto;padding:6px 10px;border:1px solid #d4b97666;background:#173b32;border-radius:20px;white-space:nowrap;min-height:34px;text-align:center}
#wallet-badge:hover{background:#265345;border-color:var(--gold)}
.wallet-dialog{width:min(440px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:20px;overflow-y:auto}
.wallet-dialog .setup-heading{margin-bottom:12px;gap:8px}.wallet-dialog h2{font-size:1.3rem;margin:0}
.credit-total{display:flex;flex-direction:column;align-items:center;padding:8px 0 20px;color:var(--gold)}.credit-total strong{font-size:4rem;line-height:1.05}.credit-total span{font-size:.9rem;color:var(--cream)}
.credit-reset{background:#173d32;border:1px solid #baaa7340;border-radius:12px;padding:14px}.credit-reset>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.credit-reset time{display:block;margin-top:9px;font-weight:600;font-size:.94rem}.credit-reset p{font-size:.8rem;margin:8px 0 0;color:#cad5c9}
.credit-refill{margin:20px 0 14px}.credit-refill h3{margin:0 0 6px}.credit-refill>p{font-size:.9rem}.credit-refill .primary{min-height:48px;font-size:1rem}.credit-refill .small{text-align:center;font-size:.76rem}.wallet-details{border-top:1px solid #c5b38440;padding-top:12px;font-size:.83rem}.wallet-details summary{cursor:pointer;color:var(--gold)}
#wallet-status:empty{display:none}#wallet-status{padding:10px;border-radius:8px;background:#284f40;font-size:.9rem}
body.phone-table .phone-dock .game-credit{display:flex;align-items:center;justify-content:center;flex:none;padding:0 4px;color:var(--gold);font-size:.65rem;white-space:nowrap;text-underline-offset:3px}
body.phone-table .phone-dock button{padding-left:3px;padding-right:3px;font-size:.7rem}
body.phone-table .phone-dock small{display:none}
.merchant-note a{color:var(--gold);font-weight:700}
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){
 body.phone-table .game-board.discard-first .center{display:grid;grid-template-columns:130px minmax(0,1fr);grid-template-rows:20px minmax(0,1fr);column-gap:5px}
 body.phone-table .river-current{grid-column:1;grid-row:1/-1;height:100%;min-height:0;align-self:center;gap:5px}
 body.phone-table .river-current span{font-size:.55rem;white-space:normal}
 body.phone-table .river-current strong{font-size:.7rem;white-space:normal}
 body.phone-table .discard-first .river-label{grid-column:2;grid-row:1;height:20px;min-height:20px;font-size:.6rem}
 body.phone-table .discard-first .live-discards{grid-column:2;grid-row:2;height:100%}
 body.phone-table .hand-area.compact-hand{grid-template-columns:36% minmax(0,1fr);column-gap:8px}
 body.phone-table .compact-hand>.action-bar{grid-column:1;width:100%}
 body.phone-table .compact-hand .rack{grid-column:2;width:100%;margin:0!important;justify-self:end}
}

/* Keep joining within reach even while a player reads long table rules. */
#preview-dialog{padding:0;overflow:hidden}
#preview-dialog[open]{display:flex;flex-direction:column}
#preview-dialog .setup-heading{flex:none;margin:0;padding:16px 18px;border-bottom:1px solid var(--line)}
#preview-dialog .setup-heading h2{font-size:1.25rem;overflow-wrap:anywhere}
#preview-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 18px}
#preview-body>.eyebrow{margin:0 0 10px;font-size:.65rem}
.preview-summary{display:grid;gap:5px;font-size:.88rem}.preview-summary strong{color:var(--gold)}.preview-summary span{font-size:.75rem;color:var(--muted)}
.preview-rules>summary{cursor:pointer;padding:10px 0;color:var(--gold);font-size:.85rem}
.preview-actions{flex:none;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:12px 18px max(14px,env(safe-area-inset-bottom));background:#102e28;border-top:1px solid var(--line);box-shadow:0 -8px 20px #071f1926}
.preview-actions p{margin:0;font-size:.75rem;line-height:1.35;color:var(--muted)}.preview-actions p:empty{display:none}
.preview-actions button{min-height:44px}.preview-actions .primary{font-size:.9rem}
@media(max-height:480px){#preview-dialog .setup-heading{padding:8px 14px}#preview-body{padding:8px 14px}.preview-actions{padding:8px 14px;gap:5px}}

/* Turn and speech cues use the existing board without moving the rack. */
.turn-banner{width:calc(100% - 6px);display:flex;align-items:center;gap:7px;flex:none;min-width:0;height:26px;min-height:26px;margin:0 3px;padding:3px 8px;background:#284b43;border:1px solid #7ea08e;border-radius:5px;color:#f0f6ef;text-align:left}
.turn-banner strong{font:750 .8rem/1.2 system-ui;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.turn-banner i{width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
.turn-banner.is-yours{background:#f7d277;border-color:#fff0b9;color:#183b30;box-shadow:0 0 15px #efca6450}
body.phone-table .discard-first .table-players .seat{position:relative}
.seat-player-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}
.seat-turn{display:none;position:static;margin-right:4px;background:#ffdc83;color:#18372d;font:800 8px/12px system-ui;padding:0 4px;border-radius:3px;z-index:2}
.seat.is-acting .seat-turn{display:inline-block}.seat.is-acting .seat-player-name{display:inline}
body.phone-table .game-board .table-players .seat.is-acting .seat-name{background:#f6d582;color:#18372d;border-color:#fff2b9;box-shadow:0 0 0 2px #ffe9a8,0 0 15px #ffdc8366}
body.phone-table .game-board .table-players .seat.is-acting .player-rank{color:#31513e}
.seat.is-acting .mascot{filter:drop-shadow(0 0 5px #ffe293);animation:active-seat-glow 1.6s ease-in-out infinite}
@keyframes active-seat-glow{50%{filter:drop-shadow(0 0 10px #ffdc83)}}
.player-rank{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal;overflow-wrap:normal}.seat-name .rank-short{display:none}
body.phone-table .discard-first .seat.west .rank-full,body.phone-table .discard-first .seat.east .rank-full{display:none}
body.phone-table .discard-first .seat.west .rank-short,body.phone-table .discard-first .seat.east .rank-short{display:inline;font:600 .5rem/1.2 system-ui;letter-spacing:0}
body.phone-table .discard-first .seat.west .player-rank:not(:has(.rank-short)) .rank-full,body.phone-table .discard-first .seat.east .player-rank:not(:has(.rank-short)) .rank-full{display:inline}
.seat:has(.chat-bubble){z-index:15}.seat-chat{position:absolute;z-index:20;width:min(210px,52vw);bottom:calc(100% + 7px);left:50%;transform:translateX(-50%);pointer-events:none}
.seat.west .seat-chat{left:8px;transform:none}.seat.east .seat-chat{left:auto;right:8px;transform:none}
.seat.north .seat-chat{bottom:auto;top:calc(100% + 5px)}
.chat-bubble{display:block;width:100%;min-width:0;padding:8px 10px;border:1px solid #fff2c7;border-radius:12px;background:#fff5d9;color:#153b31;text-align:left;box-shadow:0 5px 18px #0006;pointer-events:auto;animation:chat-pop .2s ease-out both;animation-delay:var(--bubble-age,0ms)}
.chat-bubble:after{content:"";position:absolute;bottom:-5px;left:50%;width:9px;height:9px;background:#fff5d9;transform:rotate(45deg)}
.seat.north .chat-bubble:after{bottom:auto;top:-4px}.seat.west .chat-bubble:after{left:12px}.seat.east .chat-bubble:after{left:auto;right:12px}
.chat-bubble strong{display:block;font:750 10px/1.2 system-ui;margin-bottom:3px;color:#527059}.chat-bubble span{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;font:500 13px/1.35 system-ui;overflow-wrap:anywhere;white-space:normal}
@keyframes chat-pop{from{opacity:0;scale:.85;translate:0 5px}to{opacity:1;scale:1;translate:0 0}}
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){body.phone-table .turn-banner{grid-column:1;grid-row:1;height:20px;min-height:20px;padding:2px 4px;margin:0;gap:4px}.turn-banner strong{font-size:.63rem}body.phone-table .river-current{grid-row:2}.chat-bubble{padding:5px 8px}.chat-bubble span{font-size:11px;-webkit-line-clamp:3}}
@media(prefers-reduced-motion:reduce){.seat.is-acting .mascot,.chat-bubble{animation:none!important}}
.reduce-motion .seat.is-acting .mascot,.reduce-motion .chat-bubble{animation:none!important}

body.phone-table .game-board .table-players .seat.is-acting .player-rank span{color:#31513e}

.preview-actions>.primary{width:100%}
