:root {
  --bg: #070d20;
  --bg-2: #10183a;
  --panel: #101a3d;
  --panel-2: #17245a;
  --ink: #ffffff;
  --muted: #aab3c8;
  --dim: #69728d;
  --pink: #ec1d70;
  --pink-2: #ff3d83;
  --red: #e2383d;
  --green: #22c65f;
  --yellow: #ffde37;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --display:
    Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", system-ui, sans-serif;
  --game-display:
    "Arial Narrow", "Aptos Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, #101848 0%, #17123a 42%, #080d20 74%, #050918 100%);
  background-size: 24px 24px, 24px 24px, auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(100%, 420px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.topbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0 31.82%, #00205b 31.82% 40.91%, transparent 40.91%),
    linear-gradient(180deg, transparent 0 43.75%, #00205b 43.75% 56.25%, transparent 56.25%),
    linear-gradient(90deg, transparent 0 27.27%, #ffffff 27.27% 45.45%, transparent 45.45%),
    linear-gradient(180deg, transparent 0 37.5%, #ffffff 37.5% 62.5%, transparent 62.5%),
    #ba0c2f;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 41.25px 30px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 22px rgba(236, 29, 112, 0.38);
}

.eyebrow,
.round-label,
.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand h1 {
  margin: 2px 0 0;
  font-family: var(--game-display);
  font-size: 1.02rem;
  font-weight: 760;
  line-height: 1;
  text-transform: uppercase;
}

.top-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer {
  min-width: 74px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(10, 18, 43, 0.72);
  color: #ffffff;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(236, 29, 112, 0.16);
}

.is-start-screen .timer {
  display: none;
}

main {
  min-height: 0;
  display: grid;
}

.screen {
  display: none;
  min-height: 0;
}

.screen.is-active {
  display: grid;
}

.start-screen {
  align-content: start;
  gap: 18px;
  padding-top: 26px;
}

.hero-visual {
  position: relative;
  height: 220px;
  display: grid;
  place-items: center;
}

.tilt-card {
  position: absolute;
  width: 150px;
  height: 168px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  opacity: 0.72;
  box-shadow: var(--shadow);
}

.tilt-card-left {
  transform: translate(-58px, 20px) rotate(-11deg);
  background:
    linear-gradient(145deg, rgba(44, 95, 209, 0.86), rgba(9, 16, 42, 0.34)),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.14) 100%);
}

.tilt-card-right {
  transform: translate(70px, 20px) rotate(12deg);
  background:
    linear-gradient(145deg, rgba(236, 29, 112, 0.9), rgba(9, 16, 42, 0.38)),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.14) 100%);
}

.hero-player-card {
  position: relative;
  z-index: 1;
  width: 160px;
  height: 220px;
  overflow: hidden;
  border: 4px solid var(--pink);
  border-top-color: rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(234, 247, 255, 0.82) 0%, rgba(19, 33, 69, 0.35) 58%, rgba(9, 15, 36, 0.94) 100%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.46), 0 0 28px rgba(236, 29, 112, 0.28);
}

.hero-player-card img {
  position: absolute;
  inset: 8px auto auto 50%;
  width: 300%;
  height: 104%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  user-select: none;
  -webkit-user-drag: none;
}

.hero-card-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
}

.hero-card-bar span:first-child {
  color: #ffffff;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}

.hero-card-bar span:last-child {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow) 0 38%, rgba(255, 255, 255, 0.28) 38%);
}

.hero-lockup {
  text-align: center;
}

.hero-lockup .round-label {
  color: var(--pink-2);
  font-size: 0.84rem;
}

.hero-lockup h2 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-size: 3.32rem;
  font-weight: 950;
  line-height: 0.83;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-lockup h2 span {
  display: block;
}

.lead {
  max-width: 22rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.55;
}

.primary-action {
  width: 100%;
  min-height: 74px;
  border: 7px solid rgba(236, 29, 112, 0.34);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(90deg, #e51a6c, #ff3f84);
  color: #ffffff;
  font-family: var(--display);
  font-size: 1.58rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 14px 36px rgba(236, 29, 112, 0.34);
  cursor: pointer;
}

.primary-action:active,
.secondary-action:active,
.choice-button:active {
  transform: translateY(1px);
}

.start-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.start-chips span {
  min-height: 30px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(13, 23, 56, 0.72);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.choice-button:focus-visible,
.review-tab:focus-visible {
  outline: 3px solid rgba(255, 222, 55, 0.44);
  outline-offset: 3px;
}

.game-screen {
  grid-template-rows: auto auto auto auto minmax(64px, auto);
  align-content: start;
  gap: 14px;
}

.round-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.round-progress strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff475d, #ff7ea8);
  transition: width 280ms ease;
}

.round-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.round-stats > div {
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.round-stats strong {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.game-screen .stat-label {
  font-weight: 700;
}

.round-stats > div:first-child strong {
  color: #dfffe7;
}

.round-stats > div:nth-child(2) strong {
  color: #ffd8dc;
}

.round-stats > div:nth-child(3) strong {
  color: var(--yellow);
}

.player-card {
  position: relative;
  width: min(100%, 214px);
  aspect-ratio: 0.72;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 74%, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(180deg, #19324f 0%, #122640 42%, #091324 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.player-card.is-entering {
  animation: cardIn 380ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.player-card.is-leaving {
  animation: cardOut 220ms ease forwards;
}

.photo-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 70%, rgba(255, 255, 255, 0.94) 0 9%, rgba(218, 241, 255, 0.72) 16%, rgba(100, 156, 209, 0.25) 31%, transparent 48%),
    radial-gradient(circle at 91% 67%, rgba(255, 255, 255, 0.88) 0 8%, rgba(218, 241, 255, 0.68) 15%, rgba(100, 156, 209, 0.24) 31%, transparent 49%),
    radial-gradient(ellipse at 50% 13%, rgba(217, 240, 255, 0.34), rgba(88, 143, 195, 0.16) 34%, transparent 62%),
    linear-gradient(180deg, #203d5f 0%, #183252 44%, #0c1a2e 100%);
}

.photo-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 0 20%, rgba(224, 244, 255, 0.28) 33%, transparent 49%),
    linear-gradient(248deg, transparent 0 19%, rgba(224, 244, 255, 0.24) 34%, transparent 52%),
    radial-gradient(ellipse at 50% 72%, rgba(255, 255, 255, 0.22), transparent 43%);
  filter: blur(3px);
  opacity: 0.92;
}

.photo-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 118%, rgba(2, 7, 18, 0.94) 0 36%, transparent 68%),
    linear-gradient(180deg, rgba(2, 8, 20, 0.08) 0%, transparent 36%, rgba(2, 8, 20, 0.78) 100%),
    linear-gradient(90deg, rgba(2, 8, 20, 0.36), transparent 22% 78%, rgba(2, 8, 20, 0.36));
}

#player-photo {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0;
  width: 188%;
  height: 94%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  user-select: none;
  -webkit-user-drag: none;
}

.card-shadow {
  position: absolute;
  z-index: 0;
  left: 16%;
  right: 16%;
  bottom: 34px;
  height: 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  filter: blur(8px);
}

.country-tag {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 28px;
  overflow: hidden;
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 0 31.82%, #00205b 31.82% 40.91%, transparent 40.91%),
    linear-gradient(180deg, transparent 0 43.75%, #00205b 43.75% 56.25%, transparent 56.25%),
    linear-gradient(90deg, transparent 0 27.27%, #ffffff 27.27% 45.45%, transparent 45.45%),
    linear-gradient(180deg, transparent 0 37.5%, #ffffff 37.5% 62.5%, transparent 62.5%),
    #ba0c2f;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 38.5px 28px;
  box-shadow: 0 8px 16px rgba(2, 8, 20, 0.24);
}

.question-copy {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  height: 28px;
  max-width: calc(100% - 74px);
  display: flex;
  align-items: center;
}

.prompt {
  margin: 0;
  color: #ffffff;
  font-family: var(--game-display);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(2, 8, 20, 0.72);
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-button {
  min-width: 0;
  min-height: 70px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 29, 69, 0.82);
  color: rgba(255, 255, 255, 0.66);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.choice-button:disabled {
  cursor: default;
}

.choice-text {
  min-width: 0;
  color: #ffffff;
  font-family: var(--game-display);
  font-size: 1.04rem;
  font-weight: 720;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.choice-button.is-correct {
  border-color: rgba(65, 255, 126, 0.48);
  background: linear-gradient(135deg, #1fc261, #18a84f);
  color: #ffffff;
  box-shadow: 0 0 26px rgba(34, 198, 95, 0.34);
}

.choice-button.is-wrong {
  border-color: rgba(255, 99, 108, 0.56);
  background: linear-gradient(135deg, #d9363d, #e2383d);
  color: #ffffff;
  box-shadow: 0 0 26px rgba(226, 56, 61, 0.28);
}

.choice-button.is-muted {
  opacity: 0.36;
}

.feedback-badge {
  min-height: 64px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.feedback-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.feedback-badge.is-correct {
  border-color: rgba(34, 198, 95, 0.36);
  background: rgba(20, 80, 64, 0.72);
}

.feedback-badge.is-wrong {
  border-color: rgba(226, 56, 61, 0.42);
  background: rgba(86, 28, 43, 0.78);
}

.feedback-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 760;
}

.feedback-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.feedback-copy strong {
  color: #ffffff;
  font-size: 0.93rem;
  font-weight: 760;
  line-height: 1.1;
}

.feedback-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.feedback-next {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.result-screen {
  align-content: start;
  gap: 18px;
  padding-bottom: 20px;
}

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

.result-header .round-label {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
}

.result-header h2 {
  margin: 0;
  color: var(--yellow);
  font-family: var(--display);
  font-size: 2.55rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.result-subtitle {
  margin: 10px auto 0;
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.35;
}

.result-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 3px solid var(--pink);
  border-radius: 16px;
  background:
    linear-gradient(155deg, rgba(33, 73, 169, 0.78), rgba(14, 24, 58, 0.92)),
    #121d47;
  box-shadow: var(--shadow);
}

.score-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
}

.score-hero > div:first-child {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

#result-score {
  color: #ffffff;
  font-family: var(--display);
  font-size: 5.5rem;
  line-height: 0.9;
}

.score-hero > div:first-child span {
  color: var(--yellow);
  font-weight: 950;
}

.score-breakdown {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 9px;
}

.score-breakdown span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  line-height: 1.05;
}

.score-breakdown strong {
  display: inline-block;
  min-width: 22px;
  color: #ffffff;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.accuracy-bar {
  height: 9px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.accuracy-bar div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #53f08a, #24d66c);
  transition: width 360ms ease;
}

.accuracy-copy {
  margin: 8px 0 20px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.76rem;
}

.accuracy-copy strong {
  color: #53f08a;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.result-stat {
  min-width: 0;
  min-height: 80px;
  padding: 12px 8px;
  border-radius: 10px;
  display: grid;
  align-content: center;
  gap: 4px;
  background: rgba(6, 14, 36, 0.72);
  text-align: center;
}

.result-stat span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.72rem;
  font-weight: 750;
}

.result-stat strong {
  color: #ffffff;
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.share-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.share-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.review-title {
  color: #ffffff;
  font-family: var(--display);
  font-size: 0.94rem;
  line-height: 1;
  text-transform: uppercase;
}

.share-hint {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  line-height: 1.35;
}

.share-card {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #071024;
}

.share-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: 10px;
}

.secondary-action {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(8, 18, 45, 0.68);
  color: #ffffff;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.secondary-action.is-primary {
  border-color: transparent;
  background: linear-gradient(90deg, #e51a6c, #ff3f84);
  box-shadow: 0 12px 26px rgba(236, 29, 112, 0.28);
}

.share-status {
  min-height: 1.2em;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.review-panel {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.review-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.review-tab {
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--display);
  font-size: 0.94rem;
  text-transform: uppercase;
  cursor: pointer;
}

.review-tab.is-active {
  border-bottom-color: var(--pink);
  color: #ffffff;
  background: rgba(236, 29, 112, 0.14);
}

.review-intro {
  margin: 16px 2px 12px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.35;
  text-transform: uppercase;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-item {
  min-width: 0;
  min-height: 98px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  overflow: hidden;
  background: rgba(4, 10, 26, 0.62);
}

.review-item.is-correct {
  border-left-color: var(--green);
}

.review-item.is-wrong {
  border-left-color: var(--red);
}

.review-photo-frame {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  align-self: center;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent),
    rgba(255, 255, 255, 0.08);
}

.review-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(1.34);
  transform-origin: center bottom;
}

.review-body {
  min-width: 0;
  display: grid;
  align-content: center;
}

.review-heading {
  min-width: 0;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-mark {
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.review-mark.correct {
  background: rgba(34, 198, 95, 0.24);
  color: #68ff9b;
}

.review-mark.wrong {
  background: rgba(226, 56, 61, 0.26);
  color: #ff9ba0;
}

.review-meta {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  text-align: right;
  white-space: nowrap;
}

.review-name {
  min-width: 0;
  margin-top: 0;
  color: #ffffff;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.review-answer {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.3;
}

.review-empty {
  padding: 22px;
  border: 1px solid rgba(34, 198, 95, 0.28);
  border-radius: 10px;
  background: rgba(34, 198, 95, 0.1);
  color: #dfffe7;
  font-weight: 850;
  text-align: center;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateX(28px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes cardOut {
  to {
    opacity: 0;
    transform: translateX(-28px) scale(0.98);
  }
}

@media (max-width: 360px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-lockup h2 {
    font-size: 2.94rem;
  }

  .primary-action {
    min-height: 68px;
    font-size: 1.36rem;
  }

  .choice-button {
    min-height: 66px;
    padding: 11px 9px;
  }

  .choice-text {
    font-size: 1rem;
  }

  .round-stats > div {
    padding-inline: 8px;
  }

  .stat-label {
    font-size: 0.62rem;
  }

  .feedback-badge {
    grid-template-columns: 32px 1fr;
  }

  .feedback-next {
    display: none;
  }

  #result-score {
    font-size: 4.6rem;
  }
}

@media (min-width: 520px) {
  .app-shell {
    width: min(100%, 520px);
  }

  .hero-lockup h2 {
    font-size: 4.18rem;
  }

  .hero-visual {
    height: 250px;
  }

  .hero-player-card {
    width: 176px;
    height: 240px;
  }

  .player-card {
    width: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
