:root {
  --bg: #12233f;
  --bg-2: #1b3358;
  --card: #fffaf0;
  --ink: #2a1d14;
  --muted: #6d5c4d;
  --accent: #c8322f;
  --accent-ink: #ffffff;
  --gold: #f2c14e;
  --line: #e7dccb;
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.10) 0 2px, transparent 3px) 0 0 / 90px 90px,
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08) 0 1.5px, transparent 2.5px) 0 0 / 60px 60px,
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.shell { width: min(560px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; }

.hero { color: #fff; text-align: center; padding: 12px 0 20px; }
.hero h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1.15; margin: 0 0 10px; }
.hero p { margin: 0 auto; max-width: 30rem; color: #dbe6f7; font-size: 1.05rem; }
.badge { display: inline-block; background: var(--gold); color: #3b2a00; font-weight: 800; border-radius: 999px; padding: 4px 12px; font-size: .85rem; margin-bottom: 12px; }

.card { background: var(--card); border-radius: 20px; padding: 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
.card + .card { margin-top: 16px; }

label { display: block; font-weight: 800; margin: 14px 0 6px; }
label small { font-weight: 600; color: var(--muted); }
input, select { width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: none; border-color: var(--accent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row { grid-template-columns: 1fr; } }

.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choices label { margin: 0; font-weight: 700; border: 2px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; background: #fff; }
.choices input { display: none; }
.choices label:has(input:checked) { border-color: var(--accent); background: #fdecea; }

button, .button { display: block; width: 100%; margin-top: 20px; border: 0; border-radius: 14px; padding: 15px 18px; background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 1.15rem; font-weight: 900; cursor: pointer; text-align: center; text-decoration: none; }
button:disabled { opacity: .6; cursor: wait; }
.button.secondary { background: #fff; color: var(--accent); border: 2px solid var(--accent); }

.price { text-align: center; margin-top: 10px; color: var(--muted); font-size: .95rem; }
.error { color: #a01e1b; font-weight: 700; margin-top: 12px; min-height: 1.2em; }
.fine { color: #c9d6ea; font-size: .85rem; text-align: center; margin-top: 18px; line-height: 1.5; }
.fine a { color: #fff; }

ul.steps { padding-left: 1.1rem; margin: 8px 0 0; color: var(--muted); }
ul.steps li { margin: 6px 0; }

.status { text-align: center; }
.status h2 { margin: 6px 0 8px; }
.spinner { width: 46px; height: 46px; margin: 10px auto; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
video { width: 100%; border-radius: 14px; background: #000; margin-top: 12px; }

.step { font-weight: 900; font-size: 1.05rem; margin: 6px 0 10px; }
.step:not(:first-child) { margin-top: 20px; }
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.tabs:empty { display: none; }
.tabs button { width: auto; margin: 0; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1rem; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--accent); }
.characters { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.character { margin: 0; padding: 8px; background: #fff; color: var(--ink); border: 3px solid var(--line); border-radius: 16px; font-size: .95rem; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.character img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #f3ece0; }
.character .emoji { font-size: 3.2rem; line-height: 1; aspect-ratio: 1; display: grid; place-items: center; width: 100%; }
.character[aria-checked="true"] { border-color: var(--accent); background: #fdecea; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.variants label { margin: 0; font-weight: 700; border: 2px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff; cursor: pointer; }
.variants input { display: none; }
.variants label:has(input:checked) { border-color: var(--accent); background: #fdecea; }
.sample { margin-top: 12px; aspect-ratio: 16 / 9; }
.hint { color: var(--muted); font-size: .92rem; margin: 8px 0 0; min-height: 1.1em; }
#listen { margin-top: 10px; }
details { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
summary { cursor: pointer; font-weight: 800; color: var(--muted); }
.lang { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.lang button { width: auto; margin: 0; padding: 6px 12px; border-radius: 999px; background: transparent; color: #dbe6f7; border: 1px solid rgba(255, 255, 255, .3); font-size: .85rem; font-weight: 700; }
.lang button[aria-pressed="true"] { background: rgba(255, 255, 255, .18); color: #fff; }
.home { display: block; width: 120px; margin: 0 auto 12px; background: rgba(255, 255, 255, .92); border-radius: 16px; padding: 6px 10px; }
.home img { width: 100%; height: auto; display: block; }
