:root{--bg: #fffdf8;--fg: #1c1b19;--muted: #5c5a55;--accent: #b4441c;--panel: #f1ece2;--focus: #1a5fd0;color-scheme:light dark}@media(prefers-color-scheme:dark){:root{--bg: #141311;--fg: #f3efe7;--muted: #b2aca1;--accent: #f08a5d;--panel: #24221e;--focus: #7fb0ff}}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--fg);font:18px/1.5 system-ui,-apple-system,Segoe UI,Noto Sans Thai,sans-serif}main{max-width:760px;margin:0 auto;padding:16px}h1{font-size:1.8rem;margin:.5em 0}h2{font-size:1.15rem;margin:1.2em 0 .4em}.row{display:flex;flex-wrap:wrap;gap:8px}button{font:inherit;padding:12px 16px;min-height:48px;border-radius:10px;border:2px solid var(--fg);background:var(--panel);color:var(--fg);cursor:pointer}button[aria-pressed=true]{background:var(--accent);color:var(--bg);border-color:var(--accent)}button.big{font-size:1.1rem;flex:1 1 200px}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.note{color:var(--muted);font-size:.9rem}#play{min-height:45vh;border:2px dashed var(--muted);border-radius:14px;display:grid;place-items:center;text-align:center;padding:16px;touch-action:none;user-select:none;-webkit-user-select:none}#play:focus-visible{border-color:var(--focus)}.hint{color:var(--muted)}.pad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.pad button{min-height:64px}details{margin-top:12px}input,select,textarea{font:inherit;padding:10px 12px;min-height:48px;border-radius:10px;border:2px solid var(--fg);background:var(--bg);color:var(--fg)}#chat-input{flex:1 1 200px}#chat-log,#players,#trades{padding-left:1.5em}#online li button{min-height:40px;padding:6px 10px;margin-left:6px}#log{padding-left:1.5em;color:var(--muted);max-height:40vh;overflow:auto}#log li:first-child{color:var(--fg)}.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}#feedback-input{width:100%;display:block;margin:8px 0}.col{display:flex;flex-direction:column;gap:10px}.col button{width:100%;text-align:left;min-height:56px}.start-row{margin-top:20px}button.primary{background:var(--accent);color:var(--bg);border-color:var(--accent);min-height:72px}#situation{background:var(--panel);border-radius:12px;padding:14px 16px;margin:0 0 12px;font-size:1.1rem}#situation:focus{outline:3px solid var(--focus);outline-offset:2px}#choices button{border-color:var(--accent)}#choices button[aria-disabled=true]{opacity:.6}form.col label{font-size:.95rem}form.col{margin-bottom:16px}fieldset{border:2px solid var(--muted);border-radius:12px;padding:12px;margin:0}legend{padding:0 6px;font-weight:600}label.radio{display:flex;align-items:center;gap:12px;min-height:52px;font-size:1.1rem}label.radio input{width:28px;height:28px}#setup-error:empty,#account-status:empty{display:none}#setup-error{color:var(--accent);font-weight:600}.col button.big{flex:none}
