/* PC tabletop: keep the complete decision surface in the viewport. */
.room-invitation{font-size:12px;line-height:1.7;min-width:0}.room-invitation summary{cursor:pointer;font-weight:600}.room-invitation label{display:block;margin:10px 0 5px;font-size:12px}.room-invitation input,.room-invitation select{width:100%;min-width:0;padding:9px;border:1px solid #bcc9ad;border-radius:6px;background:#fffdf5;color:var(--ink);font:12px 'Microsoft YaHei',sans-serif}.room-invitation p{font-size:11px;line-height:1.7;color:#6d7d64;margin:9px 0}.room-invitation button{margin-top:8px;width:100%}.invite-status{color:#8e6243!important;min-height:0}.invitation-welcome{font-size:13px;line-height:1.8;background:#e4ebd6;border-radius:7px;padding:10px;margin:12px 0}.modal{max-height:calc(100dvh - 40px);overflow:auto}.network-buttons{min-width:0}
@media(min-width:1000px) and (min-height:480px){
 .app-shell{max-width:none;height:100dvh;padding:0 20px 8px;display:grid;grid-template-columns:180px 190px minmax(0,1fr) 220px;grid-template-rows:54px 64px minmax(0,1fr) 20px;gap:10px 18px}
 .masthead{grid-column:1/-1;height:auto;min-height:0}.brand{gap:10px}.brand strong{font-size:27px}.brand small{display:none}.brand-seal{font-size:23px;padding:4px 7px}.header-actions{gap:20px}.header-actions .text-button{font-size:13px}.edition{font-size:11px}.game-heading{grid-column:1/-1;padding:0;min-height:0}.game-heading .eyebrow{display:none}.game-heading h1{font-size:23px;margin:0 0 3px}.game-heading p{font-size:11px}.scoreboard{padding:7px 18px;gap:22px;box-shadow:none;border-radius:8px}.scoreboard strong{font-size:27px}.scoreboard>div>span{font-size:11px;margin-bottom:2px}.scoreboard strong small{font-size:11px}.scoreboard i{height:28px}.time-stat,.scoreboard i:last-of-type{display:none}
 .play-layout{display:contents}.market-section{grid-column:1;grid-row:3;display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0;padding:14px 10px;border:1px solid #d2d8c3;border-radius:10px;background:#ecebdc;min-height:0;min-width:0}.market-heading,.lan-market .market-heading{width:100%;flex-shrink:0}.market-heading .eyebrow{font-size:8px;letter-spacing:1px}.market-heading h2{font-size:21px;margin:5px 0}.market-heading p{font-size:12px;line-height:1.65;position:static;max-width:none;min-height:40px}.market-cards,.lan-market .market-cards{display:flex;flex-direction:column;gap:9px;flex:1;min-height:0;overflow-y:auto;padding:3px}.market-card,.lan-market .market-card{display:flex;flex-direction:row;gap:7px;min-height:77px;height:77px;flex-shrink:0;padding:8px 5px;text-align:left;border-radius:8px}.market-card svg,.lan-market .market-card svg{width:64px;height:52px;flex-shrink:0}.market-card strong,.lan-market .market-card strong{font-size:12px;line-height:1.6}.market-card small,.lan-market .market-card small{font-size:10px;line-height:1.5;margin-top:3px}.dog-badge{font-size:10px;padding:1px 4px;left:3px;top:3px}
 .left-panel{grid-column:2;grid-row:3;padding:10px 0 0;display:flex;flex-direction:column;min-height:0;min-width:0}.section-label{font-size:14px}.section-label small{font-size:11px}.panel-note{font-size:12px;line-height:1.7;margin:8px 0 12px}.hand-list{flex:1;min-height:0;max-height:none;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:9px;padding:3px 3px 8px;overflow-y:auto}.piece-card{min-height:110px;padding:8px 3px;gap:5px;border-radius:8px}.piece-card svg{width:76px;max-width:100%;height:62px}.piece-card span{font-size:11px}.piece-card small{font-size:10px;line-height:1.4}.piece-tools{margin-top:10px;flex-shrink:0;gap:8px}.piece-tools .secondary-button{font-size:12px;padding:10px 4px;min-height:43px}.supply-button{font-size:12px;min-height:49px;margin-top:10px;flex-shrink:0;flex-wrap:wrap}.supply-button small{font-size:10px}.mini-dog-note{display:none}
 .board-column{--board-size:min(100%,700px,calc(100dvh - 310px));grid-column:3;grid-row:3;min-height:0;min-width:0;padding-top:6px;display:flex;flex-direction:column;align-items:center}.board-column:has(.requirement-bar:not([hidden])),.board-column:has(.shape-options:not([hidden])){--board-size:min(100%,700px,calc(100dvh - 366px))}.board-topline,.action-bar,.board-footnote,.requirement-bar,.shape-options{width:var(--board-size);min-width:0;max-width:none;margin-left:0;margin-right:0;flex-shrink:0}.board-topline{font-size:13px;margin-bottom:10px}.board-topline>span:last-child{font-size:11px}.wooden-board{width:var(--board-size);min-width:0;max-width:none;flex-shrink:0;margin:0;border-radius:12px}.wooden-board>svg{border-radius:8px}.action-bar{margin-top:15px;padding:10px;min-height:68px;gap:10px;border-radius:8px}.action-bar>div{min-width:0;flex:1}.action-bar strong{font-size:14px;line-height:1.5}.action-bar>div>span{font-size:12px;line-height:1.5;margin-top:3px}.action-bar .primary-button{font-size:13px;padding:11px 10px;min-height:44px}.action-bar .primary-button span{margin-left:4px}.board-footnote{font-size:10px;margin-top:10px}.board-footnote>span:last-child{display:block}.requirement-bar{padding:8px 10px;margin-bottom:10px;gap:6px;min-height:46px}.requirement-bar strong{font-size:13px}.requirement-bar small{font-size:10px;margin-top:2px}.requirement-bar .secondary-button{font-size:11px;padding:9px 7px}.shape-options{gap:7px;margin:8px 0 0}.shape-options button{font-size:12px;padding:8px 12px}
 .right-panel{grid-column:4;grid-row:3;padding-top:10px;min-width:0;min-height:0;overflow-y:auto}.legend{padding:0 0 13px}.legend>div{gap:9px;margin-top:13px}.legend svg{width:31px;height:31px}.legend strong{font-size:12px}.legend span{font-size:11px;line-height:1.6}.progress-heading{font-size:13px;margin-top:16px}.progress-heading span{font-size:11px}.park-progress{margin-top:11px}.park-item{margin:10px 0;gap:8px}.park-item strong{font-size:11px}.park-item small{font-size:10px}.journal-heading,.journal{display:none}.design-link{font-size:12px;margin-top:15px}
 .network-panel{grid-column:4;grid-row:3;min-height:0;min-width:0;margin:0;padding:13px 11px;overflow-y:auto;display:flex;flex-direction:column;gap:10px}.network-top{display:flex;flex-direction:column;align-items:stretch;gap:10px}.network-top>div>span{display:block;margin:7px 0 0;font-size:12px;line-height:1.6}.network-top strong{font-size:13px;line-height:1.6}.network-buttons{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.network-buttons .text-button{font-size:11px}.network-buttons button{font-size:12px}.network-buttons>span{font-size:14px;line-height:1.7;width:100%;white-space:normal}#round-order{font-size:11px;line-height:1.7;margin:0}.network-players{display:grid;grid-template-columns:1fr;gap:8px}.network-player{min-width:0;padding:9px 7px;gap:7px}.network-player strong{font-size:12px}.network-player small{font-size:10px;line-height:1.6}.network-player>span:last-child{font-size:10px}.network-player>div{min-width:0}.room-address{font-size:10px;line-height:1.8;margin:0;overflow-wrap:anywhere}.room-invitation{border-top:1px solid #c8d0b8;padding-top:9px}.room-invitation summary{font-size:12px}.room-invitation p{font-size:11px}.room-invitation .secondary-button{font-size:12px;padding:9px}.final-round-notice{font-size:12px;padding:8px;margin:0}
 body[data-room-status] .right-panel{display:none}body[data-room-status=lobby] .network-panel,body[data-room-status=closed] .network-panel{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:auto 1fr auto;gap:22px 35px;padding:28px 34px;overflow-y:auto}body[data-room-status=lobby] .network-top,body[data-room-status=closed] .network-top{grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center}body[data-room-status=lobby] .network-top strong{font-size:22px}body[data-room-status=lobby] .network-top>div>span{font-size:14px}body[data-room-status=lobby] .network-buttons{justify-content:flex-end}body[data-room-status=lobby] .network-buttons button{font-size:14px;min-height:44px}body[data-room-status=lobby] .network-players,body[data-room-status=closed] .network-players{grid-column:1;grid-row:2;grid-template-columns:1fr 1fr;align-content:center;gap:16px}body[data-room-status=lobby] .network-player{min-height:105px;padding:20px;align-items:center}body[data-room-status=lobby] .network-player strong{font-size:17px}body[data-room-status=lobby] .network-player small{font-size:14px}body[data-room-status=lobby] .room-invitation,body[data-room-status=closed] .room-invitation{grid-column:2;grid-row:2;border-top:0;padding:0;align-self:center}body[data-room-status=lobby] .room-invitation summary{font-size:17px}body[data-room-status=lobby] .room-invitation p{font-size:13px}body[data-room-status=lobby] #room-address{grid-column:1/-1;grid-row:3;font-size:12px}
 .footer{grid-column:1/-1;padding:3px 0 0;font-size:10px;min-width:0;line-height:1.4}.footer span:nth-child(2){display:none}.toast{bottom:24px}.modal{font-size:14px}.modal .help-tip{font-size:12px}.field-label{font-size:13px}
}
@media(min-width:1000px) and (max-width:1200px) and (min-height:480px){.app-shell{padding:0 14px 6px;grid-template-columns:152px 170px minmax(0,1fr) 188px;column-gap:12px}.header-actions{gap:15px}.market-section{padding:12px 7px}.market-card,.lan-market .market-card{min-height:70px;height:70px;gap:5px;padding:6px 3px}.market-card svg,.lan-market .market-card svg{width:50px}.market-card strong,.lan-market .market-card strong{font-size:11px}.piece-card svg{width:65px}.network-panel{padding:11px 8px}.board-footnote>span:last-child{display:none}.requirement-bar small{display:none}.requirement-bar strong{font-size:12px}.requirement-bar .secondary-button{font-size:10px}.action-bar{padding:8px;min-height:74px}.action-bar strong{font-size:12px}.action-bar>div>span{font-size:11px}.action-bar .primary-button{font-size:11px;padding:10px 7px}.scoreboard{padding:6px 14px}.game-heading p{display:none}}
@media(min-width:1000px) and (min-height:480px) and (max-height:740px){.market-section{padding:10px 7px;gap:8px}.market-heading .eyebrow{display:none}.market-heading h2{font-size:19px;margin:0 0 5px}.market-heading p{font-size:11px;min-height:32px;line-height:1.5}.market-cards,.lan-market .market-cards{gap:7px}.market-card,.lan-market .market-card{height:56px;min-height:56px;padding:4px 3px;gap:5px}.market-card svg,.lan-market .market-card svg{width:50px;height:41px}.market-card strong,.lan-market .market-card strong{font-size:11px}.market-card small,.lan-market .market-card small{font-size:9px;margin-top:1px}.dog-badge{font-size:9px}.network-panel{gap:7px}.network-player{padding:6px}.network-player small{font-size:9px}.network-top{gap:7px}.network-top>div>span{font-size:11px;margin-top:4px}.network-buttons{gap:6px}.network-buttons>span{font-size:12px}.room-address{font-size:9px}}
#pass-round{margin-top:10px;flex-shrink:0;font-size:12px;padding:10px 7px;min-height:40px}#claim-token{font-size:11px;line-height:1.5;padding:8px 7px;width:100%}.score-lines{display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:left;margin:15px 0}.score-lines span{display:flex;justify-content:space-between;background:#e7ecdd;padding:10px 13px;border-radius:6px}.dog-groups{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.dog-groups button{font:12px 'Microsoft YaHei',sans-serif;cursor:pointer;border:1px solid #9eb092;background:#f9f6e9;border-radius:6px;padding:8px;color:#355442}.ranking-breakdown{display:block;font-size:11px;line-height:1.6;max-width:330px;color:#68795f}.ranking-row{gap:12px}.ranking-row>span{text-align:right}body[data-rules="4"] .scoreboard>div>span{font-size:10px}body[data-rules="4"] .market-heading p{min-height:52px}@media(min-width:1000px) and (max-height:740px){body[data-rules="4"] .market-heading p{font-size:10px;min-height:45px}#pass-round{min-height:34px;padding:7px;margin-top:7px}#claim-token{padding:5px;font-size:10px}}
.opening-race{font-size:11px;line-height:1.7;padding:8px;background:#efe5cd;border-radius:6px;margin:0;color:#705a37}.result-modal .result-dog{width:90px;height:90px}.result-modal .result-score{font-size:60px;margin:8px 0}.result-modal h2{margin:10px 0}.result-modal{padding-top:24px;padding-bottom:24px}.result-modal .score-lines{margin:8px 0}.result-modal .result-breakdown{padding:14px}
