:root {
  --bg-main: #f4f1ec;
  --bg-accent: #ece7e1;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --panel-warm: linear-gradient(145deg, rgba(255, 250, 245, 0.98), rgba(255, 241, 229, 0.94));
  --line: rgba(96, 74, 59, 0.12);
  --line-strong: rgba(96, 74, 59, 0.18);
  --text: #2e221e;
  --muted: #76665d;
  --accent: #f0b36b;
  --accent-strong: #ea9961;
  --accent-deep: #d97a34;
  --accent-soft: #fff0dd;
  --tile: #c95f3f;
  --tile-strong: #a8462f;
  --tile-soft: #fff0ea;
  --rose: #efc7d6;
  --peach: #f7d8b7;
  --butter: #f7ecb8;
  --success-panel: #def5e5;
  --danger-panel: #f9dfdb;
  --success-panel-strong: #c4ebd0;
  --danger-panel-strong: #f4c6c0;
  --success-text: #326b45;
  --danger-text: #8f4a4a;
  --shadow: 0 26px 54px rgba(61, 44, 33, 0.1);
  --shadow-strong: 0 30px 80px rgba(61, 44, 33, 0.16);
  --lift-shadow: 0 16px 30px rgba(61, 44, 33, 0.12);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(240, 179, 107, 0.16), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(239, 199, 214, 0.16), transparent 18%),
    radial-gradient(circle at bottom right, rgba(234, 153, 97, 0.1), transparent 20%),
    linear-gradient(180deg, var(--bg-main), var(--bg-accent));
}

button,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding:
    max(24px, env(safe-area-inset-top))
    max(0px, env(safe-area-inset-right))
    max(44px, env(safe-area-inset-bottom))
    max(0px, env(safe-area-inset-left));
}

.screen {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 320ms ease, transform 320ms ease;
}

.screen.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.screen.is-active > *,
.screen.is-active .game-stage > *,
.screen.is-active .profile-identity-panel > *,
.screen.is-active .profile-grid > *,
.screen.is-active .profile-knowledge-modes > *,
.screen.is-active .choice-grid > *,
.screen.is-active .toolbar > *,
.screen.is-active .stats-panel > *,
.screen.is-active .pill-row > *,
.screen.is-active .result-stats > *,
.screen.is-active .culture-category-options > *,
.screen.is-active .culture-difficulty-options > *,
.screen.is-active .culture-answer-options > *,
.screen.is-active .nomination-categories-grid > *,
.screen.is-active .nomination-entries-grid > *,
.screen.is-active .stats-table-panel > * {
  animation: screenRise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--reveal-order, 0) * 70ms);
}

.panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.hero-panel,
.menu-panel,
.section-panel,
.result-panel {
  padding: 40px;
}

.hero-panel,
.menu-panel,
.result-panel {
  max-width: 860px;
  margin: 0 auto;
}

.hero-panel,
.menu-panel,
.result-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(247, 216, 183, 0.58), transparent 26%),
    radial-gradient(circle at bottom left, rgba(239, 199, 214, 0.28), transparent 24%),
    var(--panel-warm);
}

.hero-panel::before,
.menu-panel::before,
.result-panel::before {
  content: "";
  position: absolute;
  inset: auto -40px -55px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 179, 107, 0.26), transparent 70%);
  pointer-events: none;
}

.hero-panel::after,
.menu-panel::after,
.result-panel::after {
  content: "";
  position: absolute;
  inset: 24px auto auto -34px;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.06));
  transform: rotate(18deg);
  pointer-events: none;
}

.topbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 9px;
}

.hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

#screen-home .hero-header {
  margin-top: 10px;
}

#screen-home h1 {
  margin-top: 12px;
  max-width: 62%;
  font-size: clamp(3rem, 7vw, 4.2rem);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

.eyebrow-home {
  text-transform: none;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  line-height: 1.2;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  line-height: 0.95;
}

h1 {
  max-width: 72%;
  font-size: 5rem;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h3 {
  font-size: 1.5rem;
}

.intro {
  max-width: 100%;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.03rem;
}

.intro.compact {
  max-width: 700px;
}

.cinema-panel .intro,
.cinema-panel .intro.compact {
  max-width: 100%;
}

.menu-panel.cinema-panel {
  max-width: 100% !important;
}

.hero-intro {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.hero-gameboard {
  display: none;
}

.hero-actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 28px;
}

.home-extra-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  min-height: 0;
  margin: 22px auto 0;
}

.home-extra-panel-description {
  margin-top: 264px;
}

.home-extra-copy {
  position: relative;
  z-index: 1;
}

.home-extra-copy-long {
  display: grid;
  gap: 12px;
}

.home-extra-title {
  margin-top: 2px;
  max-width: 100%;
}

.home-extra-text {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.home-extra-copy-long .home-extra-text {
  margin-top: 0;
}

.home-extra-panel-description .home-extra-text {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.gameboard-card {
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(96, 74, 59, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(61, 44, 33, 0.08);
  backdrop-filter: blur(12px);
}

.gameboard-card-primary {
  background: linear-gradient(145deg, rgba(255, 245, 235, 0.96), rgba(255, 232, 207, 0.9));
  border-color: rgba(234, 153, 97, 0.28);
}

.gameboard-label,
.gameboard-card small {
  display: block;
}

.gameboard-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.gameboard-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.5rem;
  line-height: 1;
}

.gameboard-card small {
  margin-top: 8px;
  color: #8b7468;
  line-height: 1.4;
}

.compact-actions {
  justify-content: center;
}
