/* ============ Base ============ */
:root {
  --page: #fbd9a8;
  --card: #d9730d;
  --ink: #1f1a14;
  --display: "Anton", "Bebas Neue", "Oswald", Impact, sans-serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--ink);
  background: var(--page);
  transition: background-color .9s ease;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font: inherit; color: inherit; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============ Page ============ */
main { max-width: 1240px; margin: 0 auto; padding: 40px 24px 80px; }

/* ============ Hero (carrousel) ============ */
.hero {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(255, 255, 255, .18), transparent 60%),
    var(--card);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .35);
  transition: background-color .9s ease;
  touch-action: pan-y;
  user-select: none;
}

/* petites particules décoratives */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 30%, rgba(255,255,255,.5), transparent),
    radial-gradient(2px 2px at 22% 70%, rgba(255,255,255,.35), transparent),
    radial-gradient(3px 3px at 78% 22%, rgba(255,255,255,.4), transparent),
    radial-gradient(2px 2px at 88% 60%, rgba(255,255,255,.35), transparent),
    radial-gradient(2px 2px at 64% 84%, rgba(255,255,255,.3), transparent),
    radial-gradient(3px 3px at 35% 15%, rgba(255,255,255,.3), transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes twinkle { to { transform: translateY(-10px); opacity: .6; } }

.hero-logo {
  position: absolute;
  top: 3.2cqw; left: 3.4cqw;
  z-index: 5;
  font-family: var(--display);
  font-size: clamp(12px, 1.5cqw, 20px);
  line-height: .95;
  color: #fff;
  letter-spacing: .04em;
}

.hero-cta {
  position: absolute;
  top: 3cqw; right: 3.4cqw;
  z-index: 5;
  padding: .7em 1.4em;
  border: 0;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: clamp(12px, 1.3cqw, 16px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.hero-cta:active { transform: scale(.96); }

/* Le mot géant qui défile vers le haut */
.word-window {
  position: absolute;
  left: 0; right: 0;
  top: 4.6cqw;
  z-index: 1;
  font-family: var(--display);
  font-size: 24cqw;
  line-height: 1.2;
  height: 1.2em;
  overflow: hidden;
  text-align: center;
}

.word-track {
  transition: transform 1s var(--ease-out);
  will-change: transform;
}

.word-track span {
  display: block;
  height: 1.2em;
  letter-spacing: .01em;
  white-space: nowrap;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .95) 0%,
    rgba(255, 255, 255, .7) 45%,
    rgba(255, 255, 255, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Les mascottes, devant le mot */
.mascots {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.mascot {
  position: absolute;
  left: 50%;
  bottom: -2%;
  width: auto;
  height: 92%;
  aspect-ratio: 1;
  transform: translate(-50%, 40%) scale(.6);
  opacity: 0;
  transition: transform .9s var(--ease-pop), opacity .5s ease;
}

.mascot.active {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  transition-delay: .15s;
}

.mascot.leaving {
  opacity: 0;
  transform: translate(-50%, -25%) scale(.85);
  transition: transform .7s var(--ease-out), opacity .4s ease;
}

.mascot svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .25));
}

.mascot.active svg { animation: bob 3.2s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-3%) rotate(1.5deg); }
}

/* bouts animés dans les SVG */
.m-rays { transform-origin: 200px 200px; animation: spin 18s linear infinite; }
.m-arm-l { transform-origin: 100px 215px; animation: waveL 1.6s ease-in-out infinite; }
.m-arm-r { transform-origin: 300px 215px; animation: waveR 1.6s ease-in-out infinite; }
.m-steam path { animation: steam 2.4s ease-in-out infinite; }
.m-steam path:nth-child(2) { animation-delay: .4s; }
.m-steam path:nth-child(3) { animation-delay: .8s; }
.m-petals { transform-origin: 200px 165px; animation: sway 4s ease-in-out infinite; }
.m-blink { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes waveL { 50% { transform: rotate(-14deg); } }
@keyframes waveR { 50% { transform: rotate(14deg); } }
@keyframes steam {
  0% { transform: translateY(10px); opacity: 0; }
  40% { opacity: .9; }
  100% { transform: translateY(-22px); opacity: 0; }
}
@keyframes sway { 50% { transform: rotate(8deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

/* Texte bas gauche */
.hero-info {
  position: absolute;
  left: 3.4cqw; bottom: 3.4cqw;
  z-index: 3;
  max-width: 26cqw;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .18);
}

.hero-info h1 {
  margin: 0 0 .4em;
  font-size: clamp(16px, 2.2cqw, 30px);
  font-weight: 700;
}

.hero-info p {
  margin: 0;
  font-size: clamp(11px, 1.15cqw, 15px);
  font-weight: 500;
  line-height: 1.5;
  opacity: .95;
}

.hero-info.swap h1,
.hero-info.swap p { animation: textIn .7s var(--ease-out) both; }
.hero-info.swap p { animation-delay: .08s; }

@keyframes textIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Bas droite : vignette suivante */
.hero-next {
  position: absolute;
  right: 3.4cqw; bottom: 3.4cqw;
  z-index: 3;
  color: #fff;
}

.hero-next p {
  margin: 0 0 .7em;
  font-family: var(--display);
  font-size: clamp(14px, 1.9cqw, 26px);
  line-height: 1.15;
  letter-spacing: .01em;
}

.next-thumb {
  display: block;
  width: 9cqw;
  aspect-ratio: 1.35;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 12px;
  overflow: hidden;
  background: var(--next, #fff);
  transition: transform .25s var(--ease-out), background-color .6s;
}
.next-thumb:hover { transform: scale(1.06) rotate(-2deg); }
.next-thumb svg { width: 100%; height: 115%; margin-top: 4%; }

/* Points du carrousel */
.dots {
  position: absolute;
  left: 50%; bottom: 2cqw;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.dot {
  width: 10px; height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  transition: width .4s var(--ease-out), background-color .3s;
}
.dot[aria-selected="true"] { width: 28px; background: #fff; }

/* Ligne sous le hero */
.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 500;
}

.pill-split {
  display: inline-flex;
  border: 1.5px solid rgba(31, 26, 20, .3);
  border-radius: 999px;
  overflow: hidden;
}
.pill-split b, .pill-split i { padding: 5px 14px; font-style: normal; }
.pill-split b { border-right: 1.5px solid rgba(31, 26, 20, .3); }

/* ============ Pièces ============ */
.coin {
  position: relative;
  display: inline-grid;
  place-content: center;
  border: 0;
  border-radius: 50%;
  text-align: center;
  line-height: 1;
  color: #6b4a00;
  flex-shrink: 0;
}

.coin b { display: block; font-family: var(--display); font-weight: 400; letter-spacing: .02em; }
.coin small { display: block; font-size: .2em; font-weight: 700; letter-spacing: .12em; margin-top: .25em; }

.coin--gold {
  background:
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(255, 255, 255, .35) 59%, transparent 62%),
    radial-gradient(circle at 32% 28%, #fff4b8 0%, #ffd23f 30%, #f2a900 70%, #c98a00 100%);
  box-shadow: inset 0 -4px 0 rgba(150, 95, 0, .35), inset 0 3px 0 rgba(255, 255, 255, .5), 0 6px 14px rgba(120, 70, 0, .3);
}

.coin--silver {
  color: #3f4a55;
  background:
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(255, 255, 255, .5) 59%, transparent 62%),
    radial-gradient(circle at 32% 28%, #ffffff 0%, #e3e8ee 35%, #b5bfca 75%, #8f9aa6 100%);
  box-shadow: inset 0 -4px 0 rgba(70, 80, 95, .3), inset 0 3px 0 rgba(255, 255, 255, .7), 0 6px 14px rgba(40, 50, 60, .25);
}

.coin--mini { width: 26px; height: 26px; box-shadow: inset 0 -2px 0 rgba(150, 95, 0, .35); }
.coin--mid { width: 64px; height: 64px; font-size: 26px; }
.coin--big { width: 118px; height: 118px; font-size: 44px; }

/* ============ Comment ça marche ============ */
.how { margin-top: 110px; text-align: center; }

.how h2, .collection h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: .01em;
  line-height: 1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 36px 24px 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .55);
  counter-increment: step;
  transition: transform .3s var(--ease-out);
}
.steps li:hover { transform: translateY(-6px) rotate(-.6deg); }

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 16px; left: 20px;
  font-family: var(--display);
  font-size: 22px;
  opacity: .35;
}

.step-coin { width: 92px; height: 92px; font-size: 34px; }
.steps li:hover .step-coin { animation: flip .8s var(--ease-out); }
@keyframes flip { to { transform: rotateY(360deg); } }

.step-word {
  display: inline-grid;
  place-content: center;
  height: 92px;
  padding: 0 22px;
  border-radius: 18px;
  background: var(--card);
  color: #fff;
  font-family: var(--display);
  font-size: 42px;
  transition: background-color .9s;
}

.steps h3 { margin: 18px 0 6px; font-size: 20px; }
.steps p { margin: 0; font-size: 15px; line-height: 1.55; opacity: .8; }

/* ============ Collection ============ */
.collection { margin-top: 110px; }

.collection-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.count {
  padding: 5px 14px;
  border: 1.5px solid rgba(31, 26, 20, .3);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.mini-card {
  position: relative;
  padding: 22px 20px 18px;
  border-radius: 20px;
  color: #fff;
  overflow: hidden;
  animation: cardIn .6s var(--ease-pop) both;
}

.mini-card strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.05;
  word-break: break-word;
}
.mini-card p { margin: 8px 0 14px; font-size: 14px; line-height: 1.5; font-weight: 500; }
.mini-card time { font-size: 12px; font-weight: 600; opacity: .8; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(.94); }
  to { opacity: 1; transform: none; }
}

.empty {
  grid-column: 1 / -1;
  padding: 44px 24px;
  border: 2px dashed rgba(31, 26, 20, .25);
  border-radius: 24px;
  text-align: center;
  font-weight: 500;
}
.empty .btn { margin-top: 16px; }

/* ============ Boutons ============ */
.btn {
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s var(--ease-out), background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.96); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(31, 26, 20, .3); }

:focus-visible { outline: 3px solid #1f6feb; outline-offset: 3px; }

/* ============ Modale tirelire ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 14, 8, .45);
  backdrop-filter: blur(6px);
  animation: fadeIn .3s ease both;
}

.modal-card {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 36px 28px 30px;
  border-radius: 28px;
  background: var(--page);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  animation: popIn .5s var(--ease-pop) both;
}

@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(30px) scale(.92); } }

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  font-size: 24px;
  line-height: 1;
}

.modal h2 { margin: 0; font-size: 24px; }
.hint { margin: 6px 0 0; font-size: 15px; opacity: .8; }
.tiny { margin: 10px 0 0; font-size: 13px; opacity: .7; }

.view { animation: textIn .5s var(--ease-out) both; }

/* La machine à mots */
.machine {
  position: relative;
  width: 210px;
  height: 190px;
  margin: 30px auto 26px;
  border-radius: 46px 46px 36px 36px;
  background: linear-gradient(180deg, #ffffff 0%, #fff3e2 100%);
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .06), 0 14px 30px rgba(0, 0, 0, .15);
}

.machine.shake { animation: shake .6s ease; }
.machine.ready .machine-slot { box-shadow: 0 0 0 6px rgba(255, 194, 26, .55); }

@keyframes shake {
  20% { transform: rotate(-5deg) scale(1.03); }
  40% { transform: rotate(4deg); }
  60% { transform: rotate(-3deg); }
  80% { transform: rotate(2deg); }
}

.machine-slot {
  position: absolute;
  top: 22px; left: 50%;
  width: 84px; height: 16px;
  border-radius: 999px;
  background: #3a2a1a;
  transform: translateX(-50%);
  transition: box-shadow .2s;
}

.machine-face {
  position: absolute;
  top: 66px; left: 50%;
  display: flex;
  gap: 38px;
  transform: translateX(-50%);
}
.machine-face .eye {
  width: 14px; height: 18px;
  border-radius: 50%;
  background: #3a2a1a;
  animation: blink 4s infinite;
}
.machine-face .mouth {
  position: absolute;
  top: 26px; left: 50%;
  width: 34px; height: 16px;
  border-radius: 0 0 34px 34px;
  background: #c0392b;
  transform: translateX(-50%);
}
.machine.happy .mouth { height: 24px; width: 42px; }

.machine-label {
  position: absolute;
  bottom: 44px; left: 0; right: 0;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: .06em;
  color: var(--card);
  transition: color .9s;
}

.machine-tray {
  position: absolute;
  bottom: 12px; left: 50%;
  width: 90px; height: 22px;
  border-radius: 0 0 16px 16px;
  background: #3a2a1a;
  transform: translateX(-50%);
}

.coin--big {
  cursor: grab;
  touch-action: none;
  transition: transform .2s var(--ease-out);
  animation: coinIdle 2.4s ease-in-out infinite;
}
.coin--big:hover { transform: scale(1.06) rotate(-6deg); }
.coin--big.dragging { cursor: grabbing; animation: none; transition: none; z-index: 60; }
.coin--big.inserting { pointer-events: none; animation: none; }
.coin--big:disabled { cursor: default; }

@keyframes coinIdle {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.empty-coin { margin: 26px 0; animation: none; cursor: default; }

.balance { margin: 22px 0 0; font-size: 15px; }

/* Résultat */
.result-label {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .7;
}

.word-card {
  position: relative;
  margin: 16px 0 0;
  padding: 30px 22px 22px;
  border-radius: 24px;
  background: var(--card);
  color: #fff;
  overflow: hidden;
  animation: reveal .9s var(--ease-pop) both;
  transition: background-color .6s;
}

@keyframes reveal {
  0% { opacity: 0; transform: perspective(700px) rotateX(70deg) translateY(30px); }
  100% { opacity: 1; transform: none; }
}

.word-card-word {
  display: block;
  font-family: var(--display);
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: .01em;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.word-card-phrase { margin: 12px 0 14px; font-size: 16px; font-weight: 500; line-height: 1.5; }
.word-card-date { font-size: 12px; font-weight: 600; opacity: .8; }

.change {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px 0 0;
  animation: textIn .6s var(--ease-out) .7s both;
}
.change p { margin: 0; font-size: 15px; }
.change .coin { animation: coinPop .8s var(--ease-pop) .7s both; }

@keyframes coinPop {
  0% { transform: translateY(-40px) scale(.3) rotate(-180deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* Pièce de 50F qui vole vers le porte-monnaie */
.flying-coin {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  transition: transform .9s cubic-bezier(.5, -0.3, .3, 1), opacity .9s ease;
}


/* ============ Formulaire profil ============ */
.profile { text-align: left; }
.profile h2, .profile .hint { text-align: center; }

.field {
  display: block;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}
.field > span, .field legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-weight: 600;
  font-size: 14px;
}
.field input[type="text"], .field input[type="number"] {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid rgba(31, 26, 20, .15);
  border-radius: 14px;
  background: rgba(255, 255, 255, .75);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.field input:focus { outline: none; border-color: var(--card); background: #fff; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: block;
  padding: 13px 10px;
  border: 2px solid rgba(31, 26, 20, .15);
  border-radius: 14px;
  background: rgba(255, 255, 255, .75);
  text-align: center;
  font-weight: 600;
  transition: transform .2s var(--ease-out), background-color .2s, border-color .2s, color .2s;
}
.choice input:checked + span { background: var(--card); border-color: var(--card); color: #fff; transform: scale(1.03); }
.choice input:focus-visible + span { outline: 3px solid #1f6feb; outline-offset: 2px; }

.form-error { min-height: 1.4em; margin: 12px 0 4px; color: #b42318; font-size: 14px; font-weight: 600; text-align: center; }
.btn--wide { width: 100%; }
.btn--silver { background: linear-gradient(180deg, #ffffff, #cfd6de); color: #2d3640; box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); }

.who { margin: 0 0 6px; font-size: 14px; font-weight: 600; opacity: .8; }
.link { padding: 0; border: 0; background: none; font-weight: 600; text-decoration: underline; }

.redeem {
  margin: 20px 0 0;
  padding: 14px 16px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .55);
}
.redeem p { margin: 0 0 10px; font-size: 14px; }

.machine--small { width: 150px; height: 120px; margin: 10px auto 20px; }
.machine--small .machine-slot { top: 16px; width: 60px; height: 12px; }
.machine--small .machine-face { top: 46px; }
.shake-loop { animation: shake 1s ease-in-out infinite; }


/* ============ Prix libre ============ */

.amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0 0;
}
.amount-chip {
  padding: 11px 4px;
  border: 2px solid rgba(31, 26, 20, .15);
  border-radius: 14px;
  background: rgba(255, 255, 255, .75);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: transform .2s var(--ease-out), background-color .2s, border-color .2s, color .2s;
}
.amount-chip:hover { transform: translateY(-2px); }
.amount-chip[aria-pressed="true"] {
  border-color: #c98a00;
  background: linear-gradient(180deg, #fff4b8, #ffd23f 60%, #f2a900);
  color: #5a3a00;
  transform: scale(1.04);
}

.amount-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  padding: 0 16px;
  border: 2px solid rgba(31, 26, 20, .15);
  border-radius: 14px;
  background: rgba(255, 255, 255, .75);
  font-weight: 600;
  font-size: 14px;
  transition: border-color .2s;
}
.amount-input:focus-within { border-color: #c98a00; background: #fff; }
.amount-input span:first-child { white-space: nowrap; opacity: .7; }
.amount-input input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  text-align: right;
  color: var(--ink);
  outline: none;
}
.amount-input.invalid { border-color: #b42318; animation: shake .4s ease; }

.coin--big b { font-size: var(--coin-size, 1em); }

.word-card-amount {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff4b8, #ffd23f 60%, #f2a900);
  color: #5a3a00;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.btn--gold {
  margin-top: 18px;
  background: linear-gradient(180deg, #fff4b8, #ffd23f 55%, #f2a900);
  color: #4a2f00;
  box-shadow: inset 0 -3px 0 rgba(150, 95, 0, .3), 0 8px 18px rgba(150, 95, 0, .25);
}
.btn--gold[disabled] { opacity: .6; cursor: progress; }
.view[data-view="result"] .actions { margin-top: 12px; }

.step-photo {
  display: inline-grid;
  place-content: center;
  gap: 6px;
  height: 92px;
  padding: 0 20px;
  border-radius: 18px;
  background: var(--card);
  color: #fff;
  transform: rotate(-3deg);
  transition: background-color .9s;
}
.step-photo b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; }
.step-photo i {
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff4b8, #ffd23f 60%, #f2a900);
  color: #5a3a00;
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
}

.mini-amount {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff4b8, #ffd23f 60%, #f2a900);
  color: #5a3a00;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .04em;
}
.mini-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini-photo {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
  transition: transform .2s var(--ease-out);
}
.mini-photo:hover { transform: translateY(-2px); }

/* ============ Confettis ============ */
.confetti { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }

.confetti i {
  position: absolute;
  top: -20px;
  width: 10px; height: 14px;
  border-radius: 2px;
  animation: fall var(--d, 2.2s) cubic-bezier(.2, .6, .4, 1) forwards;
}

@keyframes fall {
  to { transform: translate(var(--x, 0), 110vh) rotate(var(--r, 540deg)); opacity: .9; }
}

/* ============ Responsive ============ */
@media (max-width: 760px) {
  main { padding: 16px 16px 60px; }

  .hero { aspect-ratio: 3 / 4.2; border-radius: 22px; }
  .hero-logo { top: 5cqw; left: 5cqw; font-size: 14px; }
  .hero-cta { top: 4cqw; right: 4cqw; font-size: 13px; }
  .word-window { top: 17cqw; font-size: 25cqw; }
  .mascot { height: 62%; bottom: 17%; }
  .hero-info { left: 5cqw; right: 5cqw; bottom: 6cqw; max-width: none; }
  .hero-info h1 { font-size: 22px; }
  .hero-info p { font-size: 13px; max-width: 70%; }
  .hero-next { right: 5cqw; bottom: 6cqw; }
  .hero-next p { display: none; }
  .next-thumb { width: 22cqw; }
  .dots { display: none; }

  .steps { grid-template-columns: 1fr; }
  .how, .collection { margin-top: 72px; }
}

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