:root{color-scheme:light;--ink:#262f27;--muted:#5b685d;--paper:#f8f6ed;--rule:#d3d8c7;--green:#195844;--gold:#f2bc5e}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 'Segoe UI','Microsoft YaHei',sans-serif}header{height:58px;padding:0 max(4vw,16px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--rule)}.brand{font-weight:750}.brand b{color:#edc16c;background:var(--green);border-radius:7px;padding:4px 8px;font:20px Georgia}.brand span{font-size:12px;color:var(--muted);margin-left:5px}.row,.titlebar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.split,.titlebar{justify-content:space-between}main{max-width:1430px;margin:auto;padding:18px 4vw 90px}h1,h2,h3,p{margin:0}h1{font:700 clamp(26px,3vw,40px)/1.3 Georgia,'Microsoft YaHei',serif;letter-spacing:.035em}h2{font-size:19px}h3{font-size:15px;margin:10px 0 6px}.overline,.round,.center>span{font-size:12px;font-weight:bold;letter-spacing:.08em}.overline,.round,small{color:var(--muted)}.titlebar{margin-bottom:14px}button,input,select,textarea{font:inherit}button,select,input,textarea{border:1px solid #bdc5b5;background:#fffdf5;color:var(--ink);border-radius:7px;padding:6px 10px}button{cursor:pointer}button:hover:enabled,.choice.selected{border-color:#54886d;background:#e6edde}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover:enabled{background:#23684e}button:disabled{opacity:.5;cursor:default}.layout{display:grid;grid-template-columns:minmax(520px,1fr) minmax(215px,25%);gap:14px}.arena{position:relative;min-height:420px;background:radial-gradient(ellipse at center,#38654d,#193e33 72%);border-radius:17px;overflow:hidden;border:2px solid #43684e}.arena:before{content:'';position:absolute;inset:17% 9%;border:3px double #dbca8855;border-radius:50%}#pets{position:absolute;inset:0}.pet{position:absolute;background:#f9f3df;border:1px solid #d8c89d;border-radius:12px;padding:8px 11px;width:clamp(126px,15vw,185px);box-shadow:0 3px 12px #102a2450}.pet.mine{border-bottom:3px solid #efbc61}.pet.turn{outline:3px solid #f9ce72}.pet.out{filter:grayscale(.8);opacity:.8}.p0,.p2{left:50%;transform:translateX(-50%)}.p0{bottom:9px}.p2{top:9px}.p1,.p3{top:50%;transform:translateY(-50%)}.p1{left:12px}.p3{right:12px}.pethead{display:flex;align-items:center;gap:6px}.avatar{font-size:28px;line-height:1.2}.pethead b{display:block;line-height:1.15}.pethead small,.vitals,.slots{font-size:11px}.pethead small{display:block}.vitals{white-space:nowrap}meter{width:100%;height:9px;display:block}.slots{display:flex;gap:3px;margin-top:3px}.slots span{display:grid;place-items:center;width:20px;height:18px;border-radius:4px;background:#e4e2cf;color:#57634a}.slots .taken{background:#dbe5d4;color:#30573e;font-weight:bold}.center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:36%;text-align:center;color:#fff4d8;pointer-events:none}.center>span{color:#e7cf90}.center strong{display:block;font:650 20px/1.4 Georgia,'Microsoft YaHei',serif}#lastCards,#hand{display:flex;flex-wrap:wrap;justify-content:center;gap:2px}.card{padding:2px 4px;background:#fff8e5;color:#263b31;border:1px solid #dbcca9;border-radius:4px;font:bold 15px/1.35 Georgia,serif}.red{color:#ab4146}#bubble{margin:5px auto 0;color:#efd38a;font-size:14px}.panel,aside,dialog{background:#fffdf6;border:1px solid var(--rule);border-radius:13px;padding:16px}.panel{margin-top:13px}.panel>h2{margin-bottom:7px}aside{display:grid;grid-template-rows:1fr 1fr;gap:12px;max-height:420px}aside section{min-height:0;display:flex;flex-direction:column}aside h2{font-size:16px;border-bottom:1px solid var(--rule);padding-bottom:5px}aside small{font-size:10px}.feed,#highlights,#scores{overflow:auto}.feed div,#scores div,#highlights article{padding:5px 0;border-bottom:1px solid #eaecdf;font-size:13px}.choices,.forms{display:grid;gap:9px;margin:8px 0 13px}.choices{grid-template-columns:repeat(auto-fit,minmax(115px,1fr))}.forms{grid-template-columns:repeat(2,minmax(0,1fr))}.choice{text-align:left;display:grid;gap:4px;padding:10px}.choice small{font-size:12px}.choice strong{font-size:16px}.forms textarea{width:100%;height:57px;resize:vertical}pre{white-space:pre-wrap;color:#1e6748}hr{border:0;border-top:1px solid var(--rule);margin:12px 0}input,select{max-width:100%}#hand{justify-content:flex-start}#history{max-height:85px}#commandBar{position:sticky;bottom:0;display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:10px;background:#e8ecdc;border:1px solid var(--rule);border-radius:9px;z-index:2}#commandBar b{font-size:13px}progress{height:8px;width:75px;accent-color:var(--green)}dialog{width:min(570px,94vw);max-height:82vh;overflow:auto}dialog::backdrop{background:#10252099}dialog label{display:block;margin:7px 0}dialog h2{margin-bottom:7px}#invLink{width:100%;margin:9px 0}#highlights{max-height:280px}#notice{position:fixed;bottom:15px;right:3vw;background:#273e31;color:#fff4de;border-radius:8px;z-index:5}#notice:not(:empty){padding:8px 14px}#spectator{padding:10px;color:var(--muted)}#join p{margin:10px 0}#strategy{white-space:pre-wrap}#time{font-variant-numeric:tabular-nums}
@media(max-width:900px){.layout{grid-template-columns:1fr}aside{grid-template-columns:1fr 1fr;grid-template-rows:1fr;height:150px}.arena{min-height:395px}}@media(max-width:560px){main{padding:12px 8px 75px}header{padding:0 8px}.brand span{display:none}.pet{width:114px;padding:6px}.p1{left:3px}.p3{right:3px}.p1,.p3{top:46%}.center{top:64%;width:75%}.center strong{font-size:15px}.center #bubble{font-size:12px}.arena{min-height:414px}.forms{grid-template-columns:1fr}aside{height:138px}.panel{padding:10px}.choices{grid-template-columns:repeat(2,minmax(0,1fr))}.vitals{font-size:10px}.avatar{font-size:22px}input{min-width:0}#commandBar input{max-width:145px}}

.petSprite{image-rendering:pixelated;width:40px;height:40px;object-fit:contain;flex:none}.choice .petSprite{width:48px;height:48px}.pethead div{min-width:0}.pethead b,.pethead small{overflow-wrap:anywhere}@media(max-width:560px){.petSprite{width:27px;height:27px}}
