:root {
  --bg: #d2c3a6;
  --panel: rgba(246, 239, 225, 0.76);
  --panel-strong: rgba(250, 244, 234, 0.9);
  --text: #2c1b12;
  --muted: rgba(44, 27, 18, 0.72);
  --accent: #ff6400;
  --accent-2: #f1bd1a;
  --line: rgba(44, 27, 18, 0.14);
  --option-bg: rgba(255, 248, 240, 0.72);
  --shadow: 0 18px 40px rgba(70, 35, 8, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(241, 189, 26, 0.28), transparent 18%),
    linear-gradient(180deg, #d5c7ab 0%, var(--bg) 100%);
  min-height: 100vh;
}

.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.panel {
  width: 100%;
  max-width: 820px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: -36px;
  left: -36px;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--accent-2);
  opacity: 0.95;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.screen {
  animation: screenIn 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

h1,
h2 {
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  max-width: 8ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 0.92;
}

h2 {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
}

p {
  margin: 0 0 18px 0;
  line-height: 1.5;
  font-size: 1rem;
  color: var(--text);
}

.lead {
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.28rem;
  line-height: 1.42;
  color: rgba(44, 27, 18, 0.82);
}

.intro-copy {
  margin-top: 8px;
  margin-bottom: 28px;
}

.progress {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}

button {
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 16px;
  cursor: pointer;
  background: var(--accent);
  color: white;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
  box-shadow: 0 10px 20px rgba(255, 100, 0, 0.18);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 100, 0, 0.24);
}

button:active {
  transform: translateY(0);
}

.image-frame {
  width: 100%;
  margin: 20px 0 22px;
  border-radius: 22px;
  overflow: hidden;
  background: #c8b28f;
  border: 1px solid rgba(44, 27, 18, 0.08);
  box-shadow: 0 12px 28px rgba(40, 18, 0, 0.12);
}

.game-image {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.03);
  animation: imageIn 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.options {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.option {
  background: var(--option-bg);
  color: rgba(44, 27, 18, 0.95);
  border: 1px solid var(--line);
  box-shadow: none;
  text-align: left;
  padding: 18px 20px;
  font-weight: 500;
  line-height: 1.25;
  animation: optionIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.option:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 100, 0, 0.24);
  color: var(--accent);
}

.option:nth-child(1) {
  animation-delay: 90ms;
}

.option:nth-child(2) {
  animation-delay: 160ms;
}

.option:nth-child(3) {
  animation-delay: 230ms;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.email-form input[type="email"] {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 1rem;
  background: rgba(255, 251, 246, 0.82);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.email-form input[type="email"]:focus {
  border-color: rgba(255, 100, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 100, 0, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 0.95rem;
  color: var(--muted);
}

.result {
  margin-top: 18px;
  font-weight: 700;
  color: var(--accent);
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes imageIn {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes optionIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */
@media (min-width: 768px) {
  .container {
    padding: 34px;
  }

  .panel {
    padding: 42px;
    border-radius: 34px;
  }

  p,
  button,
  .email-form input[type="email"] {
    font-size: 1.05rem;
  }

  .options {
    gap: 14px;
  }
}

/* Desktop largo */
@media (min-width: 1100px) {
  .panel {
    max-width: 920px;
  }
}

/* Riduzione animazioni */
@media (prefers-reduced-motion: reduce) {
  .screen,
  .game-image,
  .option {
    animation: none !important;
  }

  button,
  .email-form input[type="email"] {
    transition: none !important;
  }
}