/* A quieter shell and responsive tabletop surfaces. */
:root{--ink:#263832;--muted:#7b8881;--line:#e3e8e4;--blue:#27684f;--soft:#eef4ef;--bg:#f5f7f5;--play-ink:#263832;--play-line:#e3e8e4}
body{background:var(--bg)}.shell{max-width:1440px;padding-top:22px}.mast{padding-bottom:5px}.logo{background:#294d3f;border-radius:12px}.brand strong{letter-spacing:-.7px}.eyebrow{letter-spacing:1.3px}.model-details{margin:3px 0 0;text-align:right}.model-details summary{font-size:10px;color:#8d978f}.model-details #modelPath{padding:10px;overflow-wrap:anywhere}.hero{padding:5px 0 14px}.hero .eyebrow{font-size:10px}.numbers{gap:20px}.hero .numbers b{font-size:18px}.numbers span{font-size:10px}.tabs{margin-bottom:18px;padding-bottom:12px}.tab{font-size:13px;padding:8px 16px}.tab.active{color:#27553f;font-weight:650;border-color:#d5e0d7;box-shadow:none}.panel.playground-panel{padding:25px;border-radius:16px;border-color:#e0e6e0;box-shadow:none}.playground-heading{margin-bottom:19px}.playground-heading h2{font-size:21px;letter-spacing:-.6px}.playground-live{font-size:10px;background:#f4f7f3;color:#809083}.model-switch select{border-color:#dce4dd;box-shadow:none;font-weight:500}.play-library-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:13px}.play-filters{display:flex;align-items:center;gap:3px;flex-wrap:wrap}.play-filters button{border:0;background:transparent;color:#879088;font-size:12px;padding:6px 10px;border-radius:7px;white-space:nowrap}.play-filters button.active{background:#edf4ee;color:#315f44;font-weight:600}.play-filters small{margin-left:6px;font-size:10px;opacity:.65}#playSearch{width:175px;padding:7px 10px;font-size:12px;background:#fcfdfb;border-color:#e4e9e2}.unified-picker{padding:0 0 20px;margin-bottom:24px}.unified-picker .picker-row{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.unified-picker .picker-row button{min-height:69px;padding:10px;border-radius:10px;box-shadow:none;background:#fbfcfa;border-color:#e7ece5;gap:9px;transition:background .15s,border-color .15s}.unified-picker .picker-row button:hover{transform:none;box-shadow:none;background:#f2f6ef;border-color:#b5cbb7}.unified-picker .picker-row button.active{background:#edf4ee;border-color:#7fa38b;box-shadow:none}.picker-row .game-symbol{width:30px;height:30px;flex-basis:30px;background:#edf2e9;border-radius:8px;font-size:23px;color:#60836b}.picker-row .game-copy strong{font-size:12px;color:#3c5141;font-weight:600}.picker-row .game-copy small{font-size:9px;color:#98a294}.scene-header{margin-bottom:17px;gap:20px}.scene-header h2,#showcasesView:is([data-kind="doudizhu"],[data-kind="texas_holdem"],[data-kind="property_tycoon"]) .scene-header h2{font-size:24px;letter-spacing:-.6px;margin:4px 0}.scene-kicker{font-size:9px;letter-spacing:1.6px}.scene-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.opponent-tools{display:flex;align-items:center;gap:9px;color:#8a988e;font-size:11px;white-space:nowrap}.opponent-tools select{font-size:12px;width:135px;border-color:#dce5de;padding:8px 10px}.scene-header p{font-size:12px;color:#929c92}.play-grid{grid-template-columns:minmax(0,1fr) 224px;gap:22px}.canvas-shell,#showcasesView .canvas-shell{border-radius:12px;box-shadow:none}.play-aside{gap:14px}.goal-card{border-radius:10px;background:#f8faf7;border-color:#e6ece2;padding:16px}.goal-card h3{font-size:14px;font-weight:550;color:#46614b}.scene-stats strong{font-size:21px;letter-spacing:-.5px}.scene-stats span{font-size:10px}.model-controller button{border-radius:8px;min-height:39px;font-size:12px;box-shadow:none!important}.model-controller .primary{background:#376b51;border-color:#376b51}.model-controller .quiet{order:-1;color:#43624e;border:1px solid #dce6db;background:white}.model-controller button:disabled{opacity:.35}.agent-rules{order:5;border-top:1px solid #e5eae2;padding:12px 0;margin:0}.agent-rules summary{font-size:12px;color:#73846f}.agent-rules p{font-size:12px;line-height:1.9;padding:5px 0}.decision-card{padding:12px 0}.move-history b{width:auto;margin-right:9px}#lastDecision{font-size:13px;font-weight:550}.control-hint{font-size:11px;color:#8f9b8e}.game-info{border:1px solid #e4eae1;background:#f8faf7}.board-wrap{border:1px solid #e4eae1;background:#f9fbf7}.game-info .notice{background:#edf3e9;color:#82917b}.game-turn{color:#3b5743}.social-actions{box-shadow:none;border-radius:10px;background:#f8faf6}.social-actions__intro span{color:#7d8a7b}.scene-details{margin-top:20px}.scene-details summary{font-size:12px;color:#8b9788}
/* New boards */
#agentGameStage{min-height:400px;padding:23px 25px;background:#f8faf6;color:#344c39}.agent-turn{display:flex;align-items:center;gap:8px;font-size:12px;margin-bottom:22px}.agent-turn strong{font-weight:600}.agent-turn>span:last-child{margin-left:auto;color:#92a08e;font-size:10px}.turn-dot{width:9px;height:9px;border-radius:50%;background:#487b55;box-shadow:0 0 0 4px #e6efdf}.turn-dot.p1{background:#ad8755;box-shadow:0 0 0 4px #f0e9db}.agent-board-shell{max-width:458px;margin:auto;padding:10px;border:1px solid #d5dfce;border-radius:6px;background:#f1f5eb}.agent-board{display:grid;grid-template-columns:repeat(var(--n),1fr);overflow:hidden;border-radius:3px}.agent-board .board-square{padding:0;border:0;border-radius:0;aspect-ratio:1;position:relative;display:grid;place-items:center;font-size:clamp(26px,3.5vw,46px);line-height:1;min-width:0;touch-action:manipulation;box-shadow:none}.board-square.light{background:#eff0db}.board-square.dark{background:#8ba17c}.agent-board .board-square:disabled{opacity:1;cursor:default}.board-square .white-piece{color:#fffef1;-webkit-text-stroke:1px #4a5740;filter:drop-shadow(0 2px 1px #283c3233);z-index:1}.board-square .black-piece{color:#2d3c30;-webkit-text-stroke:.5px #1f3027;z-index:1}.board-square .rank,.board-square .file{position:absolute;font-size:9px;color:#6a7e58;font-weight:600}.board-square.dark .rank,.board-square.dark .file{color:#edf2e6}.board-square .rank{left:4px;top:4px}.board-square .file{right:4px;bottom:3px}.agent-board .board-square.last{background:#c9d295}.agent-board .board-square.selected{background:#edce7d;box-shadow:inset 0 0 0 3px #bfa653}.board-square.target::after{content:'';position:absolute;width:23%;height:23%;background:#315e4770;border-radius:50%;z-index:2}.board-square.target:has(span:not(:empty))::after{width:90%;height:90%;background:none;border:3px solid #376b5090}.board-square:hover:not(:disabled){box-shadow:inset 0 0 0 3px #607e50}.board-caption{text-align:center;font-size:11px;color:#93a08d;margin:15px 0 0}.break-board .board-square{font-size:clamp(25px,4vw,47px)}.legal-moves{margin:0;text-align:center;max-width:100%;font-size:11px}.legal-moves summary{color:#7b8b77}.legal-moves>div{display:flex;gap:8px;margin-top:10px}.legal-moves select{font-size:12px;width:160px}.promotion{display:flex;align-items:center;gap:8px}.promotion button{font-size:18px!important}.promotion strong{font-size:12px}.agent-event{text-align:center;color:#98a08c;font-size:11px;margin-top:24px}.table-eyebrow{font-size:11px;color:#99a58e;letter-spacing:.6px}.table-eyebrow>span{margin-left:12px;color:#405c45;font-weight:600}.kalah-label{text-align:center;color:#889776;font-size:11px;margin:35px 0 14px}.kalah-grid+.kalah-label{margin:14px 0 25px}.kalah-grid{display:grid;grid-template-columns:48px repeat(6,minmax(0,1fr)) 48px;grid-template-rows:repeat(2,96px);gap:8px;padding:15px;border:1px solid #dedec7;background:#ebeada;border-radius:38px}.kalah-store{grid-row:1/3;background:#d8d9bd;border-radius:30px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;color:#7d825d}.kalah-store b{font-size:29px;color:#616e44;font-weight:500}.kalah-store small,.kalah-store span{font-size:9px}.store-left{grid-column:1}.store-right{grid-column:8}.kalah-pit{border-radius:45%;background:#e2e2ca;border:1px solid #ccd1ad;padding:7px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;min-width:0;color:#889568}.kalah-pit small{font-size:9px;color:#99a078}.kalah-pit b{font-size:16px;font-weight:600}.kalah-pit:disabled{opacity:.65;cursor:default}.kalah-pit:not(:disabled){background:#faf8e8;border-color:#a5b987;box-shadow:0 2px 3px #7d855224}.seeds{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:3px;max-width:38px}.seeds i{width:7px;height:9px;background:#a18b56;border-radius:50%;box-shadow:inset 1px 1px 2px #d7c07e}.dice-table{text-align:center;padding:30px 0 36px}.bid-display{display:flex;align-items:center;justify-content:center;gap:16px;min-height:96px;margin:8px 0 26px}.bid-display>b{font-size:62px;font-weight:450;color:#4f6c44}.bid-display>strong{font-size:20px;font-weight:500;color:#708a62}.bid-display>span:not(.die){font-size:14px;color:#8a987c}.die{display:inline-grid;grid-template:repeat(3,1fr)/repeat(3,1fr);width:64px;height:64px;padding:12px;gap:5px;border:1px solid #dedfc9;border-radius:12px;background:#fffef6;box-shadow:0 3px 0 #e4e5d4,0 8px 15px #79875c0a}.die i{border-radius:50%}.die .pip{background:#5f774b;box-shadow:inset 0 1px 1px #34422233}.dice-row{display:flex;gap:13px;justify-content:center;margin:15px 0 22px}.dice-owner{font-size:11px;color:#95a18a}.dice-reminder{font-size:10px;color:#a2aa94;margin-top:26px}.bid-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:center}.bid-controls label{display:flex;align-items:center;gap:7px;font-size:11px;color:#829276}.bid-controls select{width:54px;padding:8px}.scene-controls .primary{background:#376b51;color:white;border-color:#376b51;box-shadow:none}.handoff-screen{min-height:420px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:25px}.handoff-icon{width:64px;height:64px;display:grid;place-items:center;border-radius:20px;background:#e9f0e2;color:#7d9b65;font-size:34px;margin-bottom:24px}.handoff-screen h3{font-size:23px;font-weight:550;color:#506b42;margin:10px 0}.handoff-screen p{font-size:12px;color:#8a9880;margin:0 0 26px}.handoff-screen .primary{background:#527346;border-color:#527346;padding:11px 22px}.auction-table{text-align:center;padding:13px 0 24px}.prize-card{display:flex;flex-direction:column;align-items:center;justify-content:center;width:118px;height:161px;border-radius:12px;background:#fff9e9;border:1px solid #e2d7ae;box-shadow:0 5px 0 #e7e4ce,0 12px 26px #7a79590c;margin:20px auto 28px;color:#a98d4d}.prize-card small{font-size:9px;letter-spacing:3px}.prize-card b{font-size:65px;font-weight:500;line-height:1.4}.prize-card>span{font-size:10px}.score-pair{display:flex;justify-content:center;gap:60px;color:#97a388;font-size:11px}.score-pair b{display:block;font-size:23px;font-weight:500;color:#657f52}.auction-rounds{border-top:1px solid #e3e8da;padding-top:14px;display:flex;gap:7px;flex-wrap:wrap;justify-content:center}.auction-rounds>div{display:flex;flex-direction:column;align-items:center;padding:8px 12px;border-radius:7px;background:#f0f3e9;gap:3px;font-size:9px;color:#a0aa8c}.auction-rounds b{font-size:14px;color:#70855b;font-weight:500}.bid-hand{text-align:center;width:100%}.bid-hand-label{font-size:11px;color:#819474;margin:0 0 12px}.bid-cards{display:flex;justify-content:center;gap:8px;margin-bottom:16px}.bid-cards button{width:55px;height:76px;padding:0;min-width:0;font-size:25px!important;color:#598063;background:#fff;border-color:#d0dec9;border-radius:8px;box-shadow:0 3px 0 #e2eada}.bid-cards button[aria-pressed=true]{background:#edf5e5;border-color:#709b60;box-shadow:0 3px 0 #a3bc8d;transform:translateY(-5px)}.bid-hand #sealBid{padding:9px 20px;min-width:165px}.blackjack-table{text-align:center;padding:6px 0}.card-row{display:flex;justify-content:center;gap:10px;margin:15px 0 25px;flex-wrap:wrap}.playing-card{width:77px;height:110px;flex-shrink:0;position:relative;padding:9px 10px;text-align:left;border-radius:8px;border:1px solid #d8ded0;background:#fffffa;box-shadow:0 3px 0 #e0e4d8;color:#3c5340}.playing-card>span{display:block;font-size:18px;font-weight:600;line-height:1}.playing-card small{display:block;font-size:13px;margin-top:3px}.playing-card>b{position:absolute;font-size:33px;top:39%;left:35%;font-weight:400}.playing-card .card-bottom{position:absolute;bottom:9px;right:9px;transform:rotate(180deg);font-size:13px}.playing-card.red{color:#b47565}.playing-card.card-back{background:repeating-linear-gradient(45deg,#768e6d,#768e6d 3px,#809975 3px,#809975 6px);border:4px solid #fffdf2;outline:1px solid #cfd9c7;display:grid;place-items:center;font-size:25px;font-family:serif;color:#e5ead9;font-style:italic}.table-divider{border-top:1px solid #e4e9dc;position:relative;margin:30px auto 26px;max-width:350px}.table-divider span{background:#f8faf6;padding:0 17px;position:relative;top:-10px;font-size:9px;letter-spacing:3px;color:#a6b099}.blackjack-table .table-eyebrow{margin-bottom:10px}
@media(max-width:1150px){.unified-picker .picker-row{grid-template-columns:repeat(3,minmax(0,1fr))}.play-grid{grid-template-columns:minmax(0,1fr) 205px}.kalah-grid{padding:10px;gap:5px;grid-template-columns:35px repeat(6,minmax(0,1fr)) 35px}.kalah-pit{padding:7px 3px}.seeds i{width:5px;height:7px}}
@media(max-width:800px){.play-grid{grid-template-columns:1fr}.play-aside{display:grid;grid-template-columns:1fr 1fr}.agent-rules{grid-column:1/-1}.agent-board .board-square{font-size:clamp(27px,7vw,46px)}.scene-header{flex-direction:row;flex-wrap:wrap;align-items:center}.scene-header>div:first-child{flex:1;min-width:190px}.scene-toolbar{flex-shrink:0}.hero .numbers{display:none}}
@media(max-width:620px){.shell{padding:18px 12px}.mast{gap:12px}.brand strong{font-size:19px}.brand .eyebrow{font-size:9px}.logo{width:39px;height:39px}.model-details{display:none}.mast-controls .status{font-size:10px}.hero{display:none}.tabs{margin:16px 0 12px;padding-bottom:10px;gap:2px}.tab{font-size:12px;padding:7px 13px}.panel.playground-panel{padding:15px 12px;border-radius:12px}.playground-heading{align-items:flex-start;gap:12px;margin-bottom:15px}.playground-heading h2{font-size:18px}.playground-heading .muted{font-size:10px}.playground-live{max-width:117px;padding:6px 8px;line-height:1.5;font-size:9px;flex-shrink:0}.playground-live i{flex-shrink:0}.play-library-tools{display:block;margin-bottom:12px}.play-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:1px}.play-filters button{font-size:11px;padding:6px 8px}.play-filters small{display:none}#playSearch{width:100%;margin-top:9px;padding:7px 10px;font-size:11px}.unified-picker{margin-bottom:18px;padding-bottom:15px}.unified-picker .picker-row{display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:7px;padding-bottom:8px;scrollbar-width:thin;scrollbar-color:#d7e1d0 transparent}.unified-picker .picker-row button{flex:0 0 154px;min-height:61px;padding:8px;scroll-snap-align:start}.picker-row .game-copy small{font-size:9px}.scene-header h2,#showcasesView:is([data-kind="doudizhu"],[data-kind="texas_holdem"],[data-kind="property_tycoon"]) .scene-header h2{font-size:21px}.scene-header p{font-size:11px}.scene-toolbar{width:100%}.scene-header{gap:10px}.opponent-tools select{width:133px;padding:7px 10px}.scene-kicker{font-size:8px}.canvas-shell{min-height:0}#agentGameStage{min-height:290px;padding:16px 10px}.agent-turn{font-size:11px;margin-bottom:17px}.agent-turn>span:last-child{font-size:9px}.agent-board-shell{padding:6px;border-radius:5px}.agent-board .board-square{font-size:clamp(21px,8vw,39px)}.board-square .rank,.board-square .file{font-size:7px}.board-caption{font-size:10px;margin-top:13px}.play-aside{gap:10px}.goal-card{padding:12px}.goal-card h3{font-size:12px}.scene-stats{gap:13px}.scene-stats strong{font-size:18px}.scene-stats span{font-size:9px}.model-controller button{font-size:11px;min-height:35px}.kalah-grid{grid-template-columns:27px repeat(6,minmax(0,1fr)) 27px;grid-template-rows:repeat(2,81px);padding:8px 6px;gap:4px;border-radius:25px}.kalah-pit{padding:6px 1px}.kalah-pit b{font-size:14px}.kalah-store{border-radius:20px}.kalah-store small{font-size:8px;writing-mode:vertical-rl}.kalah-store span{display:none}.kalah-store b{font-size:21px}.seeds{gap:2px;max-width:20px}.seeds i{width:4px;height:5px}.kalah-label{margin:25px 0 12px}.dice-table{padding:18px 0}.die{width:55px;height:55px;padding:10px;gap:4px}.bid-display{margin-bottom:22px}.bid-display>b{font-size:53px}.bid-controls{gap:8px}.bid-controls button{flex:1;font-size:11px}.bid-controls label{font-size:10px}.bid-controls select{width:45px;padding:6px}.handoff-screen{min-height:330px;padding:18px 7px}.handoff-screen h3{font-size:21px}.handoff-screen p{font-size:11px}.auction-table{padding:10px 0 20px}.prize-card{width:100px;height:137px;margin:17px auto 25px}.prize-card b{font-size:54px}.bid-cards{gap:6px}.bid-cards button{width:36px;height:55px;font-size:20px!important}.auction-rounds>div{padding:6px 9px}.score-pair{gap:40px}.playing-card{width:66px;height:94px;padding:8px}.playing-card>b{font-size:26px}.playing-card>span{font-size:16px}.card-row{gap:8px}.table-divider{margin:25px auto 21px}.agent-rules p{font-size:11px}.control-hint{font-size:10px}.scene-controls{padding-top:9px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.opponent-cards{font-size:10px;color:#94a184;margin-top:17px}.bid-controls .primary{min-width:95px}

/* Public cards enter only when the rule engine reveals or deals them. */
.playing-card .card-suit{display:block;width:100%;height:100%;overflow:visible}.playing-card small .card-suit{width:13px;height:13px}.playing-card>b{display:block;width:30px;height:34px;left:calc(50% - 15px);top:38%}.card-enter{animation:public-card-deal .28s cubic-bezier(.2,.7,.3,1) both;animation-delay:var(--card-delay,0ms)}.card-reveal{animation:public-card-reveal .35s ease-out both;animation-delay:var(--card-delay,0ms);transform-origin:center}.auction-public-play{margin:0 auto 23px;padding:14px 20px;border:1px solid #c6d3bb;background:#eff4e6;max-width:330px}.auction-play-cards{display:flex;justify-content:center;gap:30px;margin-top:10px}.auction-play-cards>div{display:flex;flex-direction:column;align-items:center;gap:7px}.auction-play-cards small{font-size:11px;color:#617a50}.number-playing-card{display:grid;place-items:center;width:56px;height:75px;border:1px solid #9ab087;background:#fffdf0;box-shadow:2px 3px 0 #d5dfc7;font-size:28px;color:#436341}.auction-public-wait{font-size:11px;color:#80936e;margin:0 12px 22px}
@keyframes public-card-deal{from{opacity:.3;transform:translateY(-22px) rotate(-4deg)}to{opacity:1;transform:translateY(0) rotate(0)}}@keyframes public-card-reveal{from{opacity:.35;transform:perspective(500px) rotateY(75deg)}to{opacity:1;transform:perspective(500px) rotateY(0)}}@media(prefers-reduced-motion:reduce){.card-enter,.card-reveal{animation:none}}
