:root{color-scheme:dark;font-family:system-ui,sans-serif;color:#eee8dc;background:#121820}*{box-sizing:border-box}body{margin:0}main{max-width:850px;margin:auto;padding:28px 20px}header,.row,nav{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}h1{font-size:clamp(1.5rem,5vw,2.3rem);margin:4px 0 20px}h2{font-size:1.25rem}small{color:#d7b56d;letter-spacing:.2em}button,input,select{font:inherit;border-radius:8px;border:1px solid #56606a;padding:12px;color:inherit;background:#202b37}button{cursor:pointer;background:#314252}button:hover{background:#405973}button:disabled{opacity:.5;cursor:wait}form{display:grid;gap:16px;padding:20px;border:1px solid #34414d;border-radius:12px;margin:14px 0}label{display:grid;gap:8px}input,select{width:100%}#login{max-width:420px}#status{min-height:1.4em;color:#e2c483;white-space:pre-wrap;overflow-wrap:anywhere}article{border:1px solid #34414d;border-radius:12px;padding:18px;margin:14px 0;background:#19232e}article h3{margin-top:0}article p{color:#bac6ce}details{margin:22px 0}summary{cursor:pointer}#game{height:100dvh;display:flex;flex-direction:column}#game[hidden],[hidden]{display:none!important}nav{padding:8px;background:#1b2632;justify-content:flex-start}nav button{padding:8px}#game-status{margin-right:auto}#screen{flex:1;min-height:0;overflow:hidden;background:black;touch-action:none}.hint{font-size:12px;color:#c2c9cc;margin:0;padding:6px 12px;background:#1b2632}#screen:focus-within{outline:1px solid #d7b56d}@media(max-width:600px){main{padding:16px}nav{gap:5px}nav button{font-size:12px;padding:8px}#game-status{width:100%;font-size:12px}}

#waiting{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px}#waiting p{max-width:430px;color:#bac6ce}

/* Original stone, leather and brass presentation; no licensed game assets. */
:root{color:#f2e5cb;background:#17130f;--gold:#d7b569;--edge:#796039}
body{min-height:100svh;background:radial-gradient(ellipse at 50% 25%,#6b4c252b,transparent 65%),repeating-linear-gradient(115deg,#ffffff02 0 1px,transparent 1px 6px),linear-gradient(135deg,#211d17,#12110f 70%)}
h1,h2,h3{font-family:Georgia,'Times New Roman',serif;color:#e9cd88;font-weight:normal}
h1{font-size:clamp(1.7rem,5vw,2.5rem);margin:8px 0 20px;text-shadow:0 2px 2px #000}
h2{font-size:1.5rem}small{color:var(--gold);letter-spacing:.3em;font-size:.75rem}
button,input,select{border-radius:3px;border-color:var(--edge);background:#191612}
button{color:#ffedc2;background:linear-gradient(#624823,#382916);border-color:#bb9650 #70512e #70512e #bb9650;box-shadow:inset 0 0 0 1px #231a10,0 2px 3px #0005;text-shadow:0 1px 1px #000}
button:hover{background:linear-gradient(#7d5b2c,#4d381d);border-color:#e0bc70}
button:active{box-shadow:inset 0 2px 4px #0008}
button:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid #f2cc76;outline-offset:4px}
input:focus,select:focus{outline:2px solid #d5ac60;outline-offset:2px}
input,select{box-shadow:inset 0 2px 5px #0008}
a{color:#e3c37d;text-underline-offset:4px}a:hover{color:#fff0bd}
form{gap:18px;padding:24px;border-color:var(--edge);border-radius:3px;background:#251e17e8}
label{font-size:.95rem}
main:has(#login:not([hidden])){width:100%;max-width:540px;min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:40px 24px}
main:has(#login:not([hidden])) header{justify-content:center;text-align:center}
main:has(#login:not([hidden]))>p:last-of-type{text-align:center;font-size:.85rem;margin:24px 0 0}
#login{width:100%;max-width:460px;margin:12px auto 0;padding:30px;border:3px double #c49a52;background:radial-gradient(ellipse at top,#59402540,transparent 80%),#292018;box-shadow:0 0 0 5px #15120f,0 0 0 6px #705431,0 16px 60px #0009,inset 0 0 24px #0006}
#login h2{text-align:center;margin:2px 0 6px;font-size:1.65rem}
#login h2::after{content:'';display:block;width:76px;height:1px;margin:18px auto 0;background:linear-gradient(90deg,transparent,#d0a65c,transparent)}
#login button{margin-top:6px;font-family:Georgia,'Times New Roman',serif;font-size:1.2rem;letter-spacing:.04em}
#status{color:#f0cc85}#status:empty{min-height:0;margin:0}
article{border-color:var(--edge);border-radius:3px;padding:20px;margin:16px 0;background:#2a221be8;box-shadow:inset 0 0 0 3px #191510}
article h3{font-size:1.4rem}article p{color:#d1c5ac}
summary{color:#e6ca8c;padding:8px 0}
#game{background:#17130f}nav{background:#211b15;border-bottom:1px solid var(--edge)}
.hint{color:#c9bfa8;background:#211b15}#screen:focus-within{outline-color:var(--gold)}
#waiting h2{font-size:2rem}#waiting p{color:#d1c5ac;line-height:1.6}
@media(max-width:600px){main:has(#login:not([hidden])){padding:28px 22px}#login{padding:24px}}

nav select{width:auto;padding:8px;font-size:.85rem}#screen:not([hidden]){display:flex;align-items:center;justify-content:center}
.download-button{display:inline-block;padding:12px 18px;border:3px double #a78440;color:#f5dc9b;background:linear-gradient(#51452b,#292315);box-shadow:inset 0 0 0 1px #17150e;text-decoration:none;font-family:Georgia,'Times New Roman',serif}
.download-button:hover{background:linear-gradient(#655535,#39301c);color:#fff0c7}

article.party-your-turn{border-color:#dfb45d;box-shadow:inset 4px 0 #dfb45d,inset 0 0 0 3px #191510}article.party-your-turn>p{color:#ffe2a0;font-weight:600}

#telegram-phone{border:1px solid var(--edge);padding:16px;margin:16px 0;background:#221b13}#telegram-phone input{max-width:360px}#telegram-phone-state{color:#d7c69e;font-size:.9rem}
