: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;
  --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;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  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;
}

.app-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.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: 18px;
}

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

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

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

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 8.1vw, 6rem);
}

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

h3 {
  font-size: 1.5rem;
}

.intro {
  max-width: 620px;
  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 {
  max-width: 100%;
  width: 100%;
}

.hero-gameboard {
  display: none;
}

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

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

.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;
}

.primary-button,
.secondary-button,
.ghost-button,
.choice-card,
.count-pill,
.hero-cta {
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button,
.secondary-button,
.ghost-button,
.hero-cta,
.profile-button,
.story-actor-button,
.profile-save-button {
  padding: 14px 22px;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(61, 44, 33, 0.12);
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fffaf3;
  font-weight: 800;
  box-shadow: 0 18px 32px rgba(234, 153, 97, 0.28);
}

#screen-flashcards #shuffleButton.primary-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 16px 30px rgba(61, 44, 33, 0.12);
}

#screen-flashcards #shuffleButton.primary-button:hover,
#screen-flashcards #shuffleButton.primary-button:focus-visible {
  border-color: transparent;
  background: linear-gradient(145deg, rgba(240, 179, 107, 0.95), rgba(234, 153, 97, 0.9));
  color: #fffaf3;
  box-shadow: 0 22px 36px rgba(234, 153, 97, 0.34);
}

.secondary-button,
.ghost-button,
.count-pill {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.ghost-button {
  padding-inline: 16px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 190px;
  border: 1px solid rgba(96, 74, 59, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  text-align: left;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(96, 74, 59, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(61, 44, 33, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.profile-menu-anchor {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
}

.profile-quick-stats {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(280px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(96, 74, 59, 0.1);
  background: linear-gradient(145deg, rgba(255, 251, 246, 0.98), rgba(255, 242, 231, 0.95));
  box-shadow: 0 22px 38px rgba(61, 44, 33, 0.12);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 8;
}

.profile-menu-anchor:hover .profile-quick-stats,
.profile-menu-anchor:focus-within .profile-quick-stats {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.profile-quick-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(96, 74, 59, 0.08);
}

.profile-quick-stat:last-of-type {
  border-bottom: 0;
}

.profile-quick-stat span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.profile-quick-stat strong {
  font-size: 1rem;
}

.profile-dropdown-button {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
  box-shadow: none;
}

.profile-avatar-image {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 18px rgba(61, 44, 33, 0.14);
  flex-shrink: 0;
}

.profile-button-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.profile-button-copy strong,
.profile-button-copy small {
  display: block;
}

.profile-button-copy strong {
  font-size: 0.94rem;
  font-weight: 800;
}

.profile-button-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-cta-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: #fffaf3;
  box-shadow: 0 18px 32px rgba(234, 153, 97, 0.28);
}

.hero-cta-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 240, 222, 0.88);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hero-cta-primary .hero-cta-icon {
  background: rgba(255, 255, 255, 0.22);
}

.hero-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-cta-copy strong,
.hero-cta-copy small {
  display: block;
}

.hero-cta-copy strong {
  font-size: 1rem;
  font-weight: 800;
}

.hero-cta-copy small {
  color: var(--muted);
  line-height: 1.25;
}

.hero-cta-primary .hero-cta-copy small {
  color: rgba(255, 250, 243, 0.82);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.choice-card:hover,
.count-pill:hover,
.hero-cta:hover,
.profile-button:hover,
.story-actor-button:hover,
.profile-save-button:hover,
.actor-button:hover,
.mcq-option:hover {
  transform: translateY(-2px);
}

.secondary-button:hover,
.ghost-button:hover,
.count-pill:hover,
.choice-card:hover,
.hero-cta:hover,
.profile-button:hover,
.story-actor-button:hover,
.profile-save-button:hover {
  box-shadow: var(--lift-shadow);
}

.primary-button:hover,
.hero-cta-primary:hover {
  box-shadow: 0 22px 36px rgba(234, 153, 97, 0.34);
}

.secondary-button:hover,
.ghost-button:hover,
.count-pill:hover,
.choice-card:hover,
.hero-cta:hover {
  border-color: transparent;
  background: linear-gradient(145deg, rgba(240, 179, 107, 0.95), rgba(234, 153, 97, 0.9));
  color: #fffaf3;
}

.secondary-button:hover,
.ghost-button:hover,
.count-pill:hover {
  box-shadow: 0 18px 32px rgba(234, 153, 97, 0.22);
}

.choice-card:hover .choice-title,
.choice-card:hover .choice-copy,
.hero-cta:hover .hero-cta-copy small {
  color: #fffaf3;
}

.choice-card:hover .choice-badge,
.hero-cta:hover .hero-cta-icon,
.secondary-button:hover .button-icon,
.ghost-button:hover .button-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fffaf3;
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.choice-card:active,
.count-pill:active,
.profile-button:active,
.hero-cta:active,
.story-actor-button:active,
.profile-save-button:active,
.actor-button:active,
.mcq-option:active {
  transform: translateY(0) scale(0.98);
}

.profile-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(234, 153, 97, 0.22);
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 22px;
}

.stat-card,
.quiz-score-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 24px rgba(61, 44, 33, 0.06);
}

.stat-label,
.quiz-score-card span,
.film-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-card strong,
.quiz-score-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.45rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.actor-button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  color: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 20px 40px rgba(61, 44, 33, 0.08);
}

.image-wrap,
.game-image-frame {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(240, 179, 107, 0.28), rgba(255, 255, 255, 0.72));
}

.image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
}

.actor-image,
.game-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  inset: auto 14px 14px 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

.overlay-text {
  font-size: 0.83rem;
  font-weight: 700;
}

.card-body {
  padding: 14px 16px 16px;
}

.actor-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.actor-name {
  margin: 12px 0 8px;
}

.actor-name.is-hidden,
.actor-note.is-hidden {
  color: transparent;
  text-shadow: 0 0 12px rgba(46, 34, 30, 0.32);
  user-select: none;
}

.actor-button.is-revealed .actor-name.is-hidden,
.actor-button.is-revealed .actor-note.is-hidden {
  color: var(--text);
  text-shadow: none;
}

.actor-button.is-revealed .actor-note.is-hidden {
  color: var(--accent-strong);
}

#screen-flashcards .card-body {
  text-align: center;
}

#screen-flashcards .actor-name {
  margin: 0;
}

#screen-flashcards .section-panel {
  display: grid;
  gap: 6px;
}

#screen-flashcards .intro {
  margin-top: 6px;
}

#screen-flashcards .toolbar {
  margin-top: 20px;
}

#screen-flashcards .card-grid {
  margin-top: 18px;
}

#screen-flashcards .actor-card {
  animation-duration: 460ms;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid rgba(96, 74, 59, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 237, 0.95));
  box-shadow: 0 18px 38px rgba(61, 44, 33, 0.09);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}

.choice-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 1.35rem;
}

.choice-badge-text {
  background: linear-gradient(135deg, #f8dfc7, #f4caa3);
  color: #8b5f39;
}

.choice-badge-favorite {
  color: #b88900;
  text-shadow: 0 1px 0 rgba(120, 80, 0, 0.12);
}

.choice-badge-mcq {
  background: linear-gradient(135deg, #f8d9d6, #f1c1ce);
  color: #8d5160;
}

.quiz-type-card .choice-badge {
  background: linear-gradient(135deg, #f8d9d6, #f1c1ce);
  color: #8d5160;
}

.choice-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #5e4336;
}

.choice-copy {
  color: var(--muted);
  line-height: 1.6;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.count-pill {
  padding: 14px 18px;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(61, 44, 33, 0.06);
}

.count-pill.is-selected {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fffaf3;
  box-shadow: 0 18px 32px rgba(234, 153, 97, 0.26);
}

#screen-home .hero-actions,
#screen-quiz-count .hero-actions,
#screen-quiz-result .hero-actions {
  position: relative;
  z-index: 1;
}

#screen-home h1,
#screen-quiz-mode h2,
#screen-quiz-count h2,
#screen-quiz-result h2 {
  position: relative;
  z-index: 1;
}

#screen-home .intro,
#screen-quiz-mode .intro,
#screen-quiz-count .intro,
#screen-quiz-result .intro,
#screen-quiz-mode .choice-grid,
#screen-quiz-count .pill-row,
#screen-quiz-result .result-stats {
  position: relative;
  z-index: 1;
}

.game-shell {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}

.game-stage {
  width: min(720px, 100%);
  display: grid;
  gap: 22px;
  justify-items: center;
  animation: fadeUp 360ms ease;
}

.quiz-live-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.quiz-live-pill {
  min-width: 130px;
  padding: 10px 16px;
  border-radius: 999px;
  text-align: center;
  border: 1px solid var(--line);
}

.quiz-live-pill span {
  display: block;
  font-size: 0.82rem;
}

.quiz-live-pill strong {
  display: block;
  margin-top: 2px;
  font-size: 1.15rem;
}

.quiz-live-pill-correct {
  background: var(--success-panel);
  color: var(--success-text);
}

.quiz-live-pill-wrong {
  background: var(--danger-panel);
  color: var(--danger-text);
}

.quiz-live-pill-correct.is-flash {
  background: var(--success-panel-strong);
}

.quiz-live-pill-wrong.is-flash {
  background: var(--danger-panel-strong);
}

.game-image-frame {
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.game-copy {
  width: min(100%, 620px);
  text-align: center;
}

.game-hint {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.8;
}

.answer-zone {
  width: min(100%, 560px);
}

.answer-input {
  width: 100%;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  outline: none;
  text-align: center;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.answer-input::placeholder {
  color: rgba(118, 102, 93, 0.82);
}

.answer-input:focus {
  border-color: rgba(234, 153, 97, 0.44);
  box-shadow: 0 0 0 5px rgba(240, 179, 107, 0.18);
}

.answer-input.is-correct {
  background: var(--success-panel);
  border-color: rgba(80, 143, 98, 0.18);
  color: var(--success-text);
  box-shadow: 0 0 0 5px rgba(196, 235, 208, 0.5);
}

.answer-input.is-wrong {
  background: var(--danger-panel);
  border-color: rgba(143, 74, 74, 0.16);
  color: var(--danger-text);
  box-shadow: 0 0 0 5px rgba(244, 198, 192, 0.52);
}

.answer-input.is-flash-correct {
  background: var(--success-panel-strong);
}

.answer-input.is-flash-wrong {
  background: var(--danger-panel-strong);
}

.mcq-grid {
  display: grid;
  gap: 12px;
}

.mcq-option {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 180ms ease, box-shadow 220ms ease;
}

.mcq-option.is-selected {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(240, 179, 107, 0.98), rgba(234, 153, 97, 0.98));
  color: #fffaf3;
}

.mcq-option.is-correct {
  background: var(--success-panel);
  border-color: rgba(80, 143, 98, 0.18);
  color: var(--success-text);
}

.mcq-option.is-wrong {
  background: var(--danger-panel);
  border-color: rgba(143, 74, 74, 0.16);
  color: var(--danger-text);
}

.mcq-option.is-flash-correct {
  background: var(--success-panel-strong);
}

.mcq-option.is-flash-wrong {
  background: var(--danger-panel-strong);
}

.mcq-option,
.choice-card,
.actor-card,
.primary-button,
.secondary-button,
.ghost-button {
  will-change: transform, opacity;
}

.mcq-option,
.choice-card {
  animation: screenRise 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--reveal-order, 0) * 60ms);
}

#screen-flashcards .actor-card.is-entering {
  animation: screenRise 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--reveal-order, 0) * 60ms);
}

.answer-feedback {
  min-height: 30px;
  margin: -6px 0 0;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease, color 220ms ease;
}

.answer-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.answer-feedback.is-correct {
  color: var(--success-text);
}

.answer-feedback.is-wrong {
  color: var(--danger-text);
}

.next-button {
  min-width: 220px;
}

#screen-quiz-play .game-shell {
  min-height: calc(100vh - 142px);
  padding: 4px 0 8px;
  place-items: start center;
}

#screen-quiz-play .game-stage {
  width: min(640px, 100%);
  gap: 0;
}

#screen-quiz-play .quiz-live-stats {
  width: min(100%, 320px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: -40px;
  margin-bottom: 14px;
}

#screen-quiz-play .quiz-live-pill {
  min-width: 0;
  padding: 8px 10px;
}

#screen-quiz-play .quiz-live-pill span {
  font-size: 0.78rem;
}

#screen-quiz-play .quiz-live-pill strong {
  font-size: 1.05rem;
  margin-top: 1px;
}

#screen-quiz-play .game-image-frame {
  width: min(100%, 320px);
}

#screen-quiz-play .game-copy {
  width: min(100%, 540px);
  margin-top: 2px;
}

#screen-quiz-play .game-hint {
  margin: 4px 0 6px;
  font-size: 1rem;
  line-height: 1.55;
}

#screen-quiz-play .answer-zone {
  width: min(100%, 520px);
}

#screen-quiz-play .answer-input {
  padding: 14px 18px;
}

#screen-quiz-play .mcq-grid {
  gap: 8px;
}

#screen-quiz-play .mcq-option {
  padding: 12px 16px;
}

#screen-quiz-play .answer-feedback {
  min-height: 18px;
  margin: 2px 0 4px;
}

#screen-quiz-play .next-button {
  min-width: 190px;
  margin-top: -2px;
}

.result-panel {
  text-align: center;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 20px;
}

.story-sidebar,
.story-detail,
.cinema-panel {
  background:
    radial-gradient(circle at top right, rgba(247, 216, 183, 0.5), transparent 26%),
    radial-gradient(circle at bottom left, rgba(239, 199, 214, 0.2), transparent 22%),
    var(--panel-warm);
}

.discover-panel {
  background:
    radial-gradient(circle at top right, rgba(240, 179, 107, 0.42), transparent 24%),
    radial-gradient(circle at bottom left, rgba(247, 216, 183, 0.28), transparent 22%),
    var(--panel-warm);
}

.discover-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.discover-card {
  min-height: 210px;
  justify-content: flex-start;
}

.discover-card .choice-badge {
  width: 58px;
  height: 58px;
  font-size: 1.5rem;
}

.culture-panel {
  background:
    radial-gradient(circle at top right, rgba(239, 199, 214, 0.34), transparent 24%),
    radial-gradient(circle at bottom left, rgba(240, 179, 107, 0.28), transparent 22%),
    var(--panel-warm);
}

.culture-mode-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.culture-mode-card {
  min-height: 200px;
}

.culture-section {
  margin-top: 26px;
  position: relative;
  z-index: 1;
}

.culture-section-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 800;
}

.culture-stage {
  width: min(840px, 100%);
}

.culture-question-card {
  width: 100%;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.culture-question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.culture-meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(240, 179, 107, 0.14);
  color: #7d5133;
  font-size: 0.88rem;
  font-weight: 700;
}

.culture-question-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.culture-question-subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.culture-feedback-card {
  margin-top: 18px;
  padding: 18px 18px 14px;
  border-radius: 24px;
  background: rgba(246, 241, 235, 0.9);
  border: 1px solid rgba(96, 74, 59, 0.1);
}

.culture-explanation,
.culture-anecdote,
.culture-result-summary {
  color: var(--muted);
  line-height: 1.7;
}

.culture-anecdote {
  margin: 10px 0 0;
  font-weight: 700;
}

.story-actor-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  max-height: 70vh;
  overflow: auto;
  padding-right: 4px;
}

.story-actor-button {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.story-actor-button:hover,
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--lift-shadow);
}

.story-actor-button.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fffaf3;
  border-color: transparent;
}

.story-hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.story-image-frame {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(240, 179, 107, 0.22), rgba(255, 255, 255, 0.8));
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-text {
  margin: 24px 0 0;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  line-height: 1.85;
  color: var(--text);
}

.cinema-toggle {
  margin-top: 28px;
}

.choice-card.is-active-toggle {
  border-color: transparent;
  background: linear-gradient(145deg, rgba(240, 179, 107, 0.95), rgba(234, 153, 97, 0.9));
  color: #fffaf3;
}

.choice-card.is-active-toggle .choice-title,
.choice-card.is-active-toggle .choice-copy {
  color: #fffaf3;
}

.choice-card.is-active-toggle .choice-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fffaf3;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.profile-identity-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 18px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.profile-identity-card,
.profile-avatar-picker {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(61, 44, 33, 0.08);
}

.profile-identity-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.profile-avatar-large-frame {
  width: 120px;
  height: 120px;
  padding: 6px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(240, 179, 107, 0.9), rgba(234, 153, 97, 0.78));
  box-shadow: 0 18px 30px rgba(234, 153, 97, 0.2);
}

.profile-avatar-large {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  object-fit: cover;
  display: block;
}

.profile-name-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-identity-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.profile-field-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.profile-level-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 247, 237, 0.98), rgba(255, 235, 214, 0.92));
  border: 1px solid rgba(96, 74, 59, 0.12);
}

.profile-display-name {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
}

.profile-name-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.profile-name-input:focus {
  outline: none;
  border-color: rgba(234, 153, 97, 0.6);
  box-shadow: 0 0 0 4px rgba(240, 179, 107, 0.18);
}

.profile-save-button {
  align-self: flex-start;
}

.profile-avatar-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.profile-avatar-option {
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(61, 44, 33, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.profile-avatar-option img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

.profile-avatar-option.is-selected {
  border-color: transparent;
  background: linear-gradient(145deg, rgba(240, 179, 107, 0.95), rgba(234, 153, 97, 0.9));
  box-shadow: 0 18px 30px rgba(234, 153, 97, 0.22);
}

.profile-level-card,
.profile-progress-card,
.profile-knowledge-panel {
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 38px rgba(61, 44, 33, 0.08);
}

.profile-level-card,
.profile-progress-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
}

.profile-level-card {
  background: linear-gradient(145deg, rgba(255, 247, 237, 0.98), rgba(255, 235, 214, 0.92));
}

.profile-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-level-card strong,
.profile-progress-head strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 0.98;
}

.profile-stage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(234, 153, 97, 0.14);
  color: var(--accent-deep);
  font-weight: 800;
}

.profile-support-copy {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.profile-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}

.profile-progress-head strong {
  margin-top: 0;
  font-size: 1.32rem;
  text-align: right;
  letter-spacing: -0.02em;
}

.profile-progress-track {
  width: 100%;
  height: 18px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(96, 74, 59, 0.1);
  overflow: hidden;
}

.profile-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.2),
    0 6px 16px rgba(234, 153, 97, 0.18);
  transition: width 560ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.profile-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.32) 45%, transparent 70%);
  transform: translateX(-120%);
  opacity: 0;
}

.profile-progress-card.is-level-up,
.profile-level-card.is-level-up {
  animation: screenRise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.profile-progress-card.is-level-up .profile-progress-fill::after {
  opacity: 1;
  animation: progressSweep 700ms ease;
}

.profile-progress-card.is-level-up .profile-progress-fill {
  animation: progressPulse 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-stat-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(61, 44, 33, 0.08);
}

.profile-stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.6rem;
}

.profile-stat-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.profile-stat-card-highlight {
  background: linear-gradient(145deg, rgba(255, 247, 237, 0.98), rgba(255, 238, 221, 0.92));
}

.profile-knowledge-panel {
  margin-top: 28px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
}

.profile-detail-panel {
  margin-top: 28px;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(61, 44, 33, 0.08);
  display: grid;
  gap: 12px;
}

.profile-panel-head {
  display: grid;
  gap: 4px;
}

.profile-panel-head h3 {
  margin: 0;
}

.profile-detail-panel .profile-support-copy {
  margin: 0;
  max-width: 58ch;
}

.profile-auth-panel {
  margin-top: 28px;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(66, 133, 244, 0.16);
  background:
    radial-gradient(circle at top right, rgba(66, 133, 244, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(61, 44, 33, 0.08);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.profile-auth-panel h3 {
  margin: 6px 0 8px;
}

.profile-auth-panel .profile-support-copy {
  margin: 0;
  max-width: 62ch;
}

.profile-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.profile-support-copy.is-error {
  color: var(--danger-text);
}

.stats-panel-action {
  justify-self: start;
  margin-top: 4px;
}

.profile-knowledge-modes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.profile-mode-panel {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.84);
}

.profile-mode-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-mode-head h4 {
  margin: 0;
  font-size: 1.2rem;
}

.profile-mode-head .profile-support-copy {
  margin-top: 6px;
}

.profile-mode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  padding: 0 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(240, 179, 107, 0.95), rgba(234, 153, 97, 0.9));
  color: #fffaf3;
  font-weight: 800;
}

.profile-panel-head h3 {
  margin-top: 6px;
}

.profile-grid-knowledge {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.profile-stat-card-success {
  background: linear-gradient(145deg, rgba(232, 249, 237, 0.98), rgba(214, 242, 224, 0.92));
}

.profile-stat-card-learning {
  background: linear-gradient(145deg, rgba(242, 237, 255, 0.98), rgba(225, 217, 247, 0.92));
}

.profile-stat-card-warning {
  background: linear-gradient(145deg, rgba(255, 246, 230, 0.98), rgba(255, 235, 206, 0.92));
}

.stats-table-panel {
  padding: 28px;
}

.stats-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 18px 38px rgba(61, 44, 33, 0.08);
}

.stats-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.stats-table th,
.stats-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(96, 74, 59, 0.1);
}

.stats-table thead tr:first-child th {
  padding-bottom: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f6b57;
  background: linear-gradient(180deg, rgba(244, 241, 236, 0.95), rgba(255, 250, 245, 0.8));
  font-weight: 700;
  border-bottom: 2px solid rgba(234, 153, 97, 0.2);
}

.stats-group-header {
  text-align: center;
  font-weight: 800;
  color: var(--accent-strong);
}

.stats-group-split {
  border-right: 2px solid rgba(234, 153, 97, 0.28) !important;
}

.stats-table thead tr:last-child th {
  padding-top: 12px;
  padding-bottom: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(244, 241, 236, 0.85);
  font-weight: 700;
  border-bottom: 1px solid rgba(96, 74, 59, 0.15);
}

.stats-subhead-spacer {
  background: rgba(244, 241, 236, 0.85);
}

.stats-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background 180ms ease, color 180ms ease;
  position: relative;
}

.stats-table th.sortable:hover {
  background: linear-gradient(180deg, rgba(240, 179, 107, 0.15), rgba(240, 179, 107, 0.08));
  color: var(--accent-strong);
}

.stats-table th.sortable::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.stats-table th.sortable.is-ascending::after {
  content: "▼";
  font-size: 0.6rem;
  opacity: 1;
  transform: translateY(-1px);
}

.stats-table th.sortable.is-descending::after {
  content: "▲";
  font-size: 0.6rem;
  opacity: 1;
  transform: translateY(1px);
}

.stats-table td {
  color: var(--text);
  transition: background 180ms ease;
}

.stats-cell-actor {
  font-weight: 700;
  white-space: nowrap;
}

.stats-cell-group-end {
  border-right: 2px solid rgba(234, 153, 97, 0.18);
}

.stats-table tbody tr {
  transition: background 180ms ease;
}

.stats-table tbody tr:hover td {
  background: rgba(240, 179, 107, 0.08);
}

.stats-table tbody tr:last-child td {
  border-bottom: none;
}

.stats-table tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.5);
}

.stats-table tbody tr:nth-child(even) td {
  background: rgba(255, 250, 245, 0.65);
}

@media (hover: hover) and (pointer: fine) {
  .secondary-button:hover,
  .ghost-button:hover,
  .count-pill:hover,
  .choice-card:hover,
  .hero-cta:hover {
    border-color: transparent;
    background: linear-gradient(145deg, rgba(240, 179, 107, 0.95), rgba(234, 153, 97, 0.9));
    color: #fffaf3;
  }

  .choice-card:hover .choice-title,
  .choice-card:hover .choice-copy,
  .hero-cta:hover .hero-cta-copy small {
    color: #fffaf3;
  }

  .choice-card:hover .choice-badge,
  .hero-cta:hover .hero-cta-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fffaf3;
  }

  .profile-button:hover {
    border-color: transparent;
    background: linear-gradient(145deg, rgba(240, 179, 107, 0.95), rgba(234, 153, 97, 0.9));
    color: #fffaf3;
  }

  .profile-button:hover .profile-avatar-image {
    border-color: rgba(255, 255, 255, 0.7);
  }

  .profile-button:hover .profile-button-copy small {
    color: rgba(255, 250, 243, 0.88);
  }

  .info-tag-button.is-linked:hover,
  .info-tag-button.is-linked:focus-visible,
  .info-card-action:hover,
  .info-card-action:focus-visible {
    border-color: transparent;
    background: linear-gradient(145deg, rgba(240, 179, 107, 0.95), rgba(234, 153, 97, 0.9));
    color: #fffaf3;
  }

  .profile-avatar-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(234, 153, 97, 0.18);
  }
}

@media (hover: none) {
  .secondary-button:hover,
  .ghost-button:hover,
  .count-pill:hover,
  .choice-card:hover,
  .hero-cta:hover {
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    border-color: var(--line-strong);
    box-shadow: var(--lift-shadow);
  }

  .choice-card:hover .choice-title,
  .choice-card:hover .choice-copy,
  .hero-cta:hover .hero-cta-copy small {
    color: inherit;
  }

  .choice-card:hover .choice-badge,
  .hero-cta:hover .hero-cta-icon {
    background: rgba(255, 240, 222, 0.88);
    color: inherit;
  }

  .profile-button:hover {
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    border-color: rgba(96, 74, 59, 0.1);
  }

  .profile-quick-stats {
    display: none;
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.info-card {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 38px rgba(61, 44, 33, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.info-card-film {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.info-card.actor-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.info-card h3 {
  margin-bottom: 10px;
}

.nomination-entry-card {
  cursor: default;
}

.nomination-entry-year {
  margin-bottom: 8px;
}

.info-meta {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.info-copy {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.info-copy-clamp {
  display: block;
  line-height: 1.45;
  max-height: calc(1.45em * 4);
  overflow: hidden;
}

#favoritesContent {
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
  margin-top: 1.4rem;
}

.favorites-section {
  margin-bottom: 0;
}

.favorites-section h3 {
  margin-bottom: 18px;
}

#favoritesContent .favorites-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 240px));
  justify-content: start;
}

.favorites-section .info-grid {
  margin-top: 1rem;
}

.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.info-tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(240, 179, 107, 0.14);
  color: var(--text);
  font-size: 0.85rem;
}

.info-tag-button {
  border: 0;
  cursor: pointer;
}

.info-tag-button.is-linked:hover,
.info-tag-button.is-linked:focus-visible {
  border-color: transparent;
  background: linear-gradient(145deg, rgba(240, 179, 107, 0.95), rgba(234, 153, 97, 0.9));
  color: #fffaf3;
  outline: none;
}

.info-card-action:hover,
.info-card-action:focus-visible {
  border-color: transparent;
  background: linear-gradient(145deg, rgba(240, 179, 107, 0.95), rgba(234, 153, 97, 0.9));
  color: #fffaf3;
  outline: none;
}

.info-card-film .info-card-action {
  margin-top: auto;
  align-self: flex-start;
}

.info-card.actor-card .info-tag-button {
  margin-top: auto;
  align-self: flex-start;
}

.library-card-image-frame,
.detail-image-frame {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, rgba(240, 179, 107, 0.2), rgba(255, 255, 255, 0.82));
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(61, 44, 33, 0.08);
  margin-bottom: 16px;
}

.library-card-image,
.detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info-card-image-frame {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, rgba(240, 179, 107, 0.2), rgba(255, 255, 255, 0.82));
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(61, 44, 33, 0.08);
  margin-bottom: 16px;
}

.info-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-panel {
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(247, 216, 183, 0.48), transparent 24%),
    radial-gradient(circle at bottom left, rgba(239, 199, 214, 0.18), transparent 20%),
    var(--panel-warm);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.detail-actions {
  margin-top: 22px;
}

.detail-sections {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.detail-block {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.detail-block h3 {
  margin-bottom: 12px;
}

.detail-text {
  margin: 0;
  line-height: 1.8;
  color: var(--text);
}

.quiz-score-card-correct {
  background: var(--success-panel);
  color: var(--success-text);
}

.quiz-score-card-wrong {
  background: var(--danger-panel);
  color: var(--danger-text);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes screenRise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.986);
    filter: blur(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes progressPulse {
  0% {
    transform: scaleX(0.985);
  }

  45% {
    transform: scaleX(1.015);
  }

  100% {
    transform: scaleX(1);
  }
}

@keyframes progressSweep {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen,
  .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 .card-grid > *,
  .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 > *,
  .mcq-option,
  .choice-card,
  .actor-card,
  .primary-button,
  .secondary-button,
  .ghost-button,
  .profile-progress-fill,
  .profile-progress-card.is-level-up,
  .profile-level-card.is-level-up {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    filter: none !important;
  }
}

@media (max-width: 840px) {
  .hero-panel,
  .menu-panel,
  .section-panel,
  .result-panel {
    padding: 28px;
  }

  .choice-grid,
  .result-stats,
  .stats-panel,
  .hero-gameboard,
  .profile-hero,
  .profile-identity-panel,
  .profile-grid,
  .profile-knowledge-modes {
    grid-template-columns: 1fr;
  }

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

  .culture-mode-grid {
    grid-template-columns: 1fr;
  }

  .story-layout,
  .story-hero,
  .detail-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 18px;
  }

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

  .hero-header {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-button {
    width: 100%;
    justify-content: center;
  }

  .game-shell {
    min-height: auto;
    padding: 12px 0 10px;
  }

  .profile-identity-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .profile-identity-copy,
  .profile-level-card {
    width: 100%;
    align-items: center;
  }

  .profile-name-editor {
    width: 100%;
  }

  .profile-save-button {
    align-self: stretch;
  }

  .profile-avatar-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-auth-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-auth-actions {
    justify-content: flex-start;
  }

  .game-stage {
    gap: 18px;
  }

  .hero-cta {
    width: 100%;
    min-width: 0;
  }
}
