* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #1b1722; font-family: Georgia, "Times New Roman", serif; color: #fff7e6; overflow: hidden; }
#stage { position: relative; width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; }
#stage > * { position: absolute; }
canvas { position: relative !important; width: min(100vw, calc(100vh * 16 / 9)); height: auto; aspect-ratio: 16 / 9; background: #000; touch-action: none; image-rendering: pixelated; }

.panel { inset: 0; margin: auto; width: min(560px, 92vw); height: fit-content; max-height: 92vh; overflow: auto; padding: 24px 28px;
  background: rgba(27, 23, 34, .94); border: 3px solid #f2b84b; border-radius: 18px; text-align: center; }
.panel h1 { margin: 0 0 4px; font-size: 40px; color: #f2b84b; letter-spacing: 1px; }
.panel .sub { margin: 0 0 14px; opacity: .85; font-style: italic; }
.panel .hint { font-size: 12px; opacity: .65; margin: 14px 0 0; font-family: sans-serif; }
button { font: 700 16px sans-serif; border: 0; border-radius: 999px; padding: 10px 22px; background: #f2b84b; color: #2a1d12; cursor: pointer; }
button:hover { background: #ffd070; }
[hidden] { display: none !important; }

.startng-card { position: fixed; top: 12px; left: 12px; display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px; background: #292a23; color: #fffefa; font-family: sans-serif; z-index: 5; }
.startng-card img { width: 40px; height: 40px; border-radius: 50%; background: #d8fd71; }
.startng-card b { display: block; font-size: 14px; }
.startng-card span { font-size: 11px; opacity: .7; }
.startng-card button { margin-left: 6px; padding: 5px 12px; font-size: 12px; background: #d8fd71; }

#hud { top: 12px; right: 12px; display: flex; gap: 14px; font: 700 15px sans-serif; background: rgba(27,23,34,.8); padding: 8px 14px; border-radius: 999px; z-index: 4; }

#dialog { bottom: 4vh; left: 50%; transform: translateX(-50%); width: min(780px, 94vw); min-height: 110px; padding: 14px 20px;
  background: rgba(27, 23, 34, .95); border: 3px solid #f2b84b; border-radius: 14px; z-index: 6; cursor: pointer; }
#dialog-name { font: 700 14px sans-serif; color: #f2b84b; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
#dialog-text { font-size: 19px; line-height: 1.4; }
#dialog .next { position: absolute; right: 14px; bottom: 8px; color: #f2b84b; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }

#title, #ending { z-index: 7; }
.board { margin: 14px auto 0; text-align: left; font: 14px sans-serif; max-width: 380px; }
.board h3 { margin: 0 0 6px; text-align: center; color: #f2b84b; font-family: Georgia, serif; }
.board ol { margin: 0; padding-left: 22px; }
.board li { padding: 2px 0; }
.board li.me { color: #d8fd71; font-weight: 700; }
