* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: #050305;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 10%, rgba(128, 10, 28, .42), transparent 34%),
    radial-gradient(circle at 15% 85%, rgba(199, 168, 74, .12), transparent 28%),
    linear-gradient(180deg, #040304, #12070a 56%, #030203);
  color: #f4eee4;
  font-family: "Courier New", monospace;
  overflow-x: hidden;
  padding: 12px 12px 92px;
}

button, a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(199, 168, 74, .28);
}

button:disabled { opacity: .45; }

.hollow-app, .hollow-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hollow-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.topbar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  position: sticky;
  top: 8px;
  z-index: 10;
}

.top-link, .primary, .secondary, .role-btn, .choice-btn, .tester-bar button {
  border: 1px solid rgba(199, 168, 74, .55);
  border-radius: 12px;
  background: rgba(10, 5, 6, .88);
  color: #fff4ec;
  min-height: 46px;
  padding: 11px 14px;
  font-weight: 900;
  letter-spacing: .08rem;
  text-decoration: none;
  font-family: "Courier New", monospace;
}

.primary {
  background: linear-gradient(180deg, rgba(128, 10, 28, .96), rgba(38, 8, 12, .96));
  border-color: rgba(255, 230, 160, .7);
  box-shadow: 0 0 24px rgba(128, 10, 28, .42);
}

.secondary { background: rgba(0, 0, 0, .55); }

.hero, .card {
  border: 1px solid rgba(244, 238, 228, .16);
  border-radius: 18px;
  background: rgba(0, 0, 0, .58);
  box-shadow: 0 0 38px rgba(0,0,0,.55), inset 0 0 45px rgba(255,255,255,.025);
  padding: 18px;
}

.hero {
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(145, 15, 36, .32), transparent 58%),
    rgba(0,0,0,.58);
}

.hero.small h1 { font-size: clamp(2rem, 9vw, 4rem); }

.kicker {
  color: #c7a84a;
  letter-spacing: .24rem;
  font-size: .75rem;
  font-weight: 900;
}

h1 {
  margin: 8px 0;
  color: #fff4ec;
  font-family: Georgia, serif;
  font-size: clamp(3rem, 15vw, 6.8rem);
  line-height: .82;
  letter-spacing: .1rem;
  text-shadow: 0 0 26px rgba(160, 10, 30, .72);
}

h2 {
  margin: 0 0 10px;
  color: #fff4ec;
  letter-spacing: .12rem;
}

p {
  color: rgba(244, 238, 228, .82);
  line-height: 1.55;
}

.tagline {
  margin: 0 auto;
  max-width: 760px;
}

.main-actions, .role-grid, .choice-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.role-grid { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }

.choice-grid { grid-template-columns: 1fr; }

.role-btn.picked {
  background: rgba(199, 168, 74, .22);
  border-color: rgba(255, 230, 160, .95);
  box-shadow: 0 0 18px rgba(199, 168, 74, .22);
}

.art { text-align: center; }

.first-face {
  color: #c7a84a;
  letter-spacing: .18rem;
  font-weight: 900;
}

.face-symbol {
  width: min(240px, 62vw);
  aspect-ratio: 1;
  margin: 14px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff4ec;
  font-size: 5rem;
  background:
    radial-gradient(circle, rgba(244,238,228,.92) 0 8%, transparent 9%),
    radial-gradient(circle, #16080b, #030203 68%);
  border: 3px solid rgba(199,168,74,.55);
  box-shadow: 0 0 60px rgba(140, 10, 28, .52);
}

.clue {
  margin-top: 14px;
  border-left: 4px solid rgba(199, 168, 74, .7);
  background: rgba(199, 168, 74, .08);
  padding: 12px;
  line-height: 1.5;
}

.cast-list {
  padding-left: 18px;
  margin: 0;
}

.cast-list li {
  margin: 0 0 12px;
  line-height: 1.35;
}

.cast-list span { color: rgba(244, 238, 228, .64); }

.hint {
  font-size: .9rem;
  color: rgba(244, 238, 228, .62);
}

.tester-bar {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid rgba(244, 238, 228, .18);
  border-radius: 14px;
  background: rgba(5, 3, 5, .9);
  box-shadow: 0 0 32px rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
}

.test-id {
  width: 100%;
  text-align: center;
  color: rgba(244, 238, 228, .72);
  font-size: .68rem;
  letter-spacing: .08rem;
}

.tester-bar button {
  flex: 1;
  min-width: 132px;
  min-height: 40px;
  font-size: .72rem;
}

#flash {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(199,168,74,.52);
  border-radius: 10px;
  background: rgba(0,0,0,.92);
  padding: 8px 12px;
  color: #fff4ec;
  transition: opacity .18s ease;
  white-space: nowrap;
}

#flash.show { opacity: 1; }

@media (min-width: 860px) {
  .hollow-shell { grid-template-columns: 1fr 1fr; }
  .topbar, .hero, .tester-bar { grid-column: 1 / -1; }
  .story, .roles { grid-column: span 1; }
  .choices { grid-column: 1 / -1; }
  .choice-grid { grid-template-columns: repeat(4, 1fr); }
}
