:root {
  --cyan: #09aded;
  --cyan-deep: #046bd2;
  --yellow: #ffd400;
  --ink: #0b1630;
  --paper: #ffffff;
  --red: #ff3b5c;
  /* tonal shift: hue moves from purple (265) to POW blue (197) across the steps */
  --hue: 265;
  --tint: hsl(var(--hue) 100% 96%);
  --tint-2: hsl(var(--hue) 90% 90%);
  --accent: hsl(var(--hue) 85% 58%);
  --accent-ink: hsl(var(--hue) 80% 38%);
  --radius: 18px;
  --shadow: 6px 6px 0 var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 85% -10%, var(--tint-2), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, hsl(calc(var(--hue) - 20) 100% 92%), transparent 60%),
    var(--tint);
  transition: background 0.8s ease;
  overflow-x: hidden;
}
.halftone {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.35;
  background-image: radial-gradient(var(--accent) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
  mask-image: linear-gradient(115deg, transparent 35%, #000 75%);
  transition: opacity 0.6s;
}
.top, main, .foot { position: relative; z-index: 1; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 4vw, 48px); }
.logo { height: 44px; }
.tag { font: 700 12px/1 Inter, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink); }
main { max-width: 1180px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 48px) 48px; }
.foot { text-align: center; font-size: 13px; padding: 24px; color: #475569; }
.foot a { color: inherit; }

/* Welcome */
.welcome-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; min-height: 72vh; }
.kicker { display: inline-block; font: 400 22px/1 Bangers, cursive; letter-spacing: 0.06em; background: var(--yellow); border: 3px solid var(--ink); padding: 6px 14px 4px; transform: rotate(-3deg); box-shadow: 4px 4px 0 var(--ink); }
.mega { font: 400 clamp(54px, 8.5vw, 118px)/0.88 Bangers, cursive; letter-spacing: 0.02em; margin: 22px 0 18px; }
.mega span { display: block; }
.mega .hl { color: var(--cyan); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--ink); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 56ch; }
.perks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.perks li { padding-left: 34px; position: relative; font-size: 16px; }
.perks li::before { content: "★"; position: absolute; left: 0; top: -3px; font-size: 22px; color: var(--yellow); -webkit-text-stroke: 1.5px var(--ink); }
.resume { font-size: 14px; color: var(--accent-ink); font-weight: 600; }
.welcome-art { position: relative; display: grid; place-items: center; }
.burst-frame { position: relative; width: min(440px, 80vw); aspect-ratio: 1; display: grid; place-items: center; animation: float 6s ease-in-out infinite; }
.burst { position: absolute; inset: -14%; width: 128%; height: 128%; fill: var(--yellow); stroke: var(--ink); stroke-width: 3; animation: spin 40s linear infinite; }
.avatar { position: relative; width: 82%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 5px solid var(--ink); box-shadow: var(--shadow); }
.bubble { position: absolute; bottom: -6px; left: -18px; max-width: 260px; background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; padding: 14px 16px; font-weight: 700; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-2deg); }
.bubble::after { content: ""; position: absolute; top: -18px; right: 40px; border: 10px solid transparent; border-bottom: 16px solid var(--ink); }

/* Buttons */
.btn { font: 400 24px/1 Bangers, cursive; letter-spacing: 0.06em; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 14px 26px 12px; box-shadow: 5px 5px 0 var(--ink); cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.btn:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn.big { font-size: 32px; padding: 18px 34px 14px; }
.btn.ghost { background: var(--paper); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Meter */
.meter { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin: 8px 0 22px; }
.meter button { all: unset; cursor: pointer; height: 16px; border: 3px solid var(--ink); border-radius: 8px; background: var(--paper); position: relative; }
.meter button.done { background: var(--cyan); }
.meter button.now { background: var(--yellow); animation: pulse 1.4s ease-in-out infinite; }
.meter button[disabled] { cursor: default; }

/* Step layout */
.step { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; align-items: start; }
.step-art { position: sticky; top: 20px; }
.panel-img { width: 100%; border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); transform: rotate(-1.5deg); background: var(--tint-2); aspect-ratio: 4 / 3; object-fit: cover; object-position: center 22%; }
.step-kicker { margin-top: 22px; }
.step h2 { font: 400 clamp(38px, 4.4vw, 60px)/0.95 Bangers, cursive; letter-spacing: 0.02em; margin: 14px 0 10px; }
.step h2 em { font-style: normal; color: var(--accent); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.step .lead { font-size: 17px; }
.card { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 32px); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.f { display: grid; gap: 7px; }
.f.wide { grid-column: 1 / -1; }
.f label, .f legend { font-weight: 700; font-size: 15px; }
.f .req { color: var(--red); margin-left: 3px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=date], select, textarea {
  font: 500 16px/1.4 Inter, sans-serif; color: var(--ink); width: 100%; padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; outline: none; transition: box-shadow 0.15s, border-color 0.15s;
}
textarea { min-height: 104px; resize: vertical; }
input:focus, select:focus, textarea:focus { box-shadow: 4px 4px 0 var(--accent); border-color: var(--ink); }
.f.bad input, .f.bad select, .f.bad textarea, .f.bad .chips, .f.bad .drop { border-color: var(--red); box-shadow: 4px 4px 0 var(--red); }
.err { color: var(--red); font-size: 13px; font-weight: 700; min-height: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border-radius: 12px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 14px; border: 2.5px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 14px; background: #fff; cursor: pointer; transition: transform 0.1s; user-select: none; }
.chip input:checked + span { background: var(--cyan); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.consent input { width: 22px; height: 22px; accent-color: var(--cyan-deep); margin-top: 2px; flex: none; }
.drop { border: 2.5px dashed var(--ink); border-radius: 14px; padding: 18px; text-align: center; background: var(--tint); cursor: pointer; font-weight: 600; transition: background 0.2s; }
.drop:hover, .drop.over { background: var(--tint-2); }
.drop small { display: block; font-weight: 500; color: #475569; margin-top: 4px; }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.file { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: 10px; padding: 5px 8px; background: #fff; font-size: 13px; font-weight: 600; max-width: 100%; }
.file img { width: 30px; height: 30px; object-fit: cover; border-radius: 6px; }
.file button { all: unset; cursor: pointer; font-weight: 800; padding: 0 4px; }
.file.up { opacity: 0.6; }
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.saved { font-size: 13px; color: #475569; align-self: center; }
.notice { margin-top: 14px; font-weight: 700; color: var(--red); }

/* Sound effect pop */
.pop { position: fixed; left: 50%; top: 42%; z-index: 20; pointer-events: none; font: 400 clamp(64px, 12vw, 150px)/1 Bangers, cursive; color: var(--yellow); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 8px 8px 0 var(--ink); transform: translate(-50%, -50%) scale(0) rotate(-12deg); opacity: 0; }
.pop.go { animation: pop 0.75s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.sfx { font: 400 64px/1 Bangers, cursive; color: var(--yellow); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--ink); transform: rotate(-6deg); }

/* Done */
.done-card { max-width: 820px; margin: 10px auto; text-align: center; background: var(--paper); border: 4px solid var(--ink); border-radius: 24px; box-shadow: 10px 10px 0 var(--ink); padding: 0 0 32px; overflow: hidden; }
.done-art { width: 100%; display: block; border-bottom: 4px solid var(--ink); aspect-ratio: 16 / 9; object-fit: cover; }
.big-sfx { margin: -46px auto 6px; display: inline-block; }
.done-card h2 { font: 400 clamp(36px, 5vw, 56px)/1 Bangers, cursive; letter-spacing: 0.02em; margin: 6px 24px 10px; }
.done-card .lead { margin: 0 auto; padding: 0 24px; }
.ref { font-size: 18px; margin-top: 18px; }
.ref b { background: var(--yellow); border: 2px solid var(--ink); padding: 2px 8px; border-radius: 8px; letter-spacing: 0.06em; }
.small { font-size: 14px; color: #475569; }
.copy { text-align: left; margin: 10px 28px 0; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; }
.copy summary { cursor: pointer; font-weight: 700; }
.copy dl { display: grid; grid-template-columns: 1fr 2fr; gap: 6px 14px; font-size: 14px; }
.copy dt { font-weight: 700; }
.copy dd { margin: 0; white-space: pre-wrap; word-break: break-word; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes pulse { 50% { transform: scaleY(1.25); } }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(-20deg); } 35% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(-8deg); } 75% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-10deg); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1.15) rotate(-10deg); } }
.enter { animation: enter 0.5s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes enter { from { opacity: 0; transform: translateY(24px) rotate(0.6deg); } }

@media (max-width: 900px) {
  .welcome-grid, .step { grid-template-columns: 1fr; }
  .welcome-art { order: -1; margin-top: 10px; }
  .burst-frame { width: min(300px, 70vw); }
  .bubble { position: relative; left: 0; bottom: 0; margin-top: 18px; }
  .step-art { position: static; }
  .panel-img { aspect-ratio: 16 / 9; }
  .fields { grid-template-columns: 1fr; }
  .meter { gap: 5px; }
  .logo { height: 34px; }
  .tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
