  /* Poppins (SIL Open Font License) is bundled in /fonts so the page needs no external requests. */
  @font-face{font-family:"Poppins";font-style:normal;font-weight:300;font-display:swap;src:url(fonts/poppins-300.woff2) format("woff2")}
  @font-face{font-family:"Poppins";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/poppins-600.woff2) format("woff2")}
  @font-face{font-family:"Poppins";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/poppins-700.woff2) format("woff2")}
  
  /* Layout: one fixed artwork (738 x 1220) centred on the screen; every position is a
     percentage of it and every size a multiple of --u (1% of its width).
     Motion: one opening sequence led by the gold coin, then only embers, steam and a slow coin turn. */
  :root {
    --ink: #110d0a;          /* warm black at the top of the page */
    --black: #010101;        /* true black at the foot */
    --white: #fff;
    --gold: #f2a20c;         /* the coin */
    --gold-hi: #f1a303;      /* button, lit side */
    --gold-lo: #9b6501;      /* button, shaded side */
    --ember: #ffb347;
    --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --w: min(100vw, calc(100vh * 738 / 1220), 500px);
    --u: calc(var(--w) / 100);
    --out: cubic-bezier(.16, 1, .3, 1);
    color-scheme: dark;
  }
  @supports (height: 100dvh) { :root { --w: min(100vw, calc(100dvh * 738 / 1220), 500px); } }
  *, *::before, *::after { box-sizing: border-box; }
  html, body { height: 100%; margin: 0; }
  body {
    display: grid; place-items: center;
    background: linear-gradient(var(--ink) 0%, #120e0b 40%, var(--black) 82%);
    font-family: var(--font); color: var(--white);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
  }
  .stage { position: relative; width: var(--w); height: calc(var(--w) * 1220 / 738); flex: none; }

  /* ---------- artwork ---------- */
  .bg {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    user-select: none; pointer-events: none;
    -webkit-mask-image: linear-gradient(#0000 0, #000 5%, #000 96%, #0000 100%);
            mask-image: linear-gradient(#0000 0, #000 5%, #000 96%, #0000 100%);
    transform-origin: 50% 78%;
    animation: lights-up 2s var(--out) both;
  }
  @media (min-width: 501px), (min-aspect-ratio: 738/1220) {
    .bg {
      -webkit-mask-image: linear-gradient(#0000 0, #000 5%, #000 96%, #0000 100%), linear-gradient(90deg, #0000 0, #000 9%, #000 91%, #0000 100%);
              mask-image: linear-gradient(#0000 0, #000 5%, #000 96%, #0000 100%), linear-gradient(90deg, #0000 0, #000 9%, #000 91%, #0000 100%);
      -webkit-mask-composite: source-in; mask-composite: intersect;
    }
  }
  @keyframes lights-up { from { opacity: 0; transform: scale(1.09); } }

  /* ---------- steam off the rice, embers off the wok ---------- */
  .air { position: absolute; inset: 0; pointer-events: none; animation: fade 1.6s 1.4s both; }
  .steam i {
    position: absolute; top: 74%; width: calc(var(--u) * 15); height: calc(var(--u) * 24);
    background: radial-gradient(ellipse at 50% 62%, rgba(255, 244, 228, .5), rgba(255, 244, 228, 0) 68%);
    filter: blur(calc(var(--u) * 2.4)); opacity: 0;
    animation: steam 7.5s ease-out infinite;
  }
  .steam i:nth-child(1) { left: 24%; animation-delay: 1.6s; }
  .steam i:nth-child(2) { left: 39%; animation-delay: 4.3s; animation-duration: 8.5s; }
  .steam i:nth-child(3) { left: 52%; animation-delay: 6.4s; animation-duration: 6.8s; }
  @keyframes steam {
    0%   { opacity: 0; transform: translate(0, 0) scale(.55, .45); }
    22%  { opacity: .42; }
    100% { opacity: 0; transform: translate(calc(var(--u) * 5), calc(var(--u) * -24)) scale(1.35, 1.5); }
  }
  .embers i {
    position: absolute; left: var(--x); top: var(--y);
    width: var(--s); height: var(--s); border-radius: 50%;
    background: var(--ember); box-shadow: 0 0 calc(var(--s) * 2.2) calc(var(--s) * .5) rgba(255, 140, 20, .55);
    opacity: 0; animation: ember var(--t) linear var(--d) infinite;
  }
  @keyframes ember {
    0%   { opacity: 0; transform: translate(0, 0) scale(1); }
    12%  { opacity: .95; }
    55%  { opacity: .55; transform: translate(var(--mx), calc(var(--rise) * .6)) scale(.8); }
    100% { opacity: 0; transform: translate(var(--dx), var(--rise)) scale(.25); }
  }

  /* ---------- words ---------- */
  .thanks, .question, .tag { position: absolute; left: 0; right: 0; margin: 0; text-align: center; }
  .thanks {
    top: 3.98%; transform: translateY(-50%);
    font-weight: 600; font-size: calc(var(--u) * 3.79); letter-spacing: calc(var(--u) * .15); line-height: 1;
    animation: settle 1.1s var(--out) 1.05s both;
  }
  @keyframes settle { from { opacity: 0; letter-spacing: calc(var(--u) * 1.1); } }
  .question {
    top: 36.15%; transform: translateY(-50%);
    font-weight: 600; font-size: calc(var(--u) * 5.01); letter-spacing: calc(var(--u) * .352); line-height: 1.19;
  }
  .question .line { display: block; overflow: hidden; }
  .question .line span { display: inline-block; animation: rise .8s var(--out) 1.3s both; }
  .question .line + .line span { animation-delay: 1.42s; }
  @keyframes rise { from { transform: translateY(108%); } }
  .tag {
    top: 93.77%; transform: translateY(-50%); padding-left: calc(var(--u) * 1.7);
    font-weight: 300; font-size: calc(var(--u) * 3.25); letter-spacing: calc(var(--u) * .19); line-height: 1;
    color: #f4f4f4;
    animation: fade 1.2s 2.3s both;
  }
  @keyframes fade { from { opacity: 0; } }

  /* ---------- logo: the coin drops, the name slides out from behind it ---------- */
  .logo { position: absolute; top: 17.21%; left: 9.76%; width: 79.13%; height: calc(var(--u) * 79.13 * 92 / 584); margin: 0; perspective: calc(var(--u) * 70); }
  .logo .part { position: absolute; top: 0; height: 100%; }
  .logo svg { display: block; width: 100%; height: 100%; }
  .logo .name { overflow: hidden; }
  .logo .name svg { animation: unfold .75s var(--out) .92s both; }
  .logo .name.l svg { --from: 102%; }
  .logo .name.r svg { --from: -102%; }
  @keyframes unfold { from { transform: translateX(var(--from)); } }
  .logo .coin { animation: coin-drop 1s .12s both, coin-turn 9s 5s infinite; }
  @keyframes coin-drop {
    0%   { opacity: 0; transform: translateY(-330%) rotateY(-1080deg); animation-timing-function: cubic-bezier(.45, 0, .95, .65); }
    8%   { opacity: 1; }
    60%  { transform: translateY(0) rotateY(0); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
    74%  { transform: translateY(-24%); animation-timing-function: cubic-bezier(.6, 0, .9, .5); }
    87%  { transform: translateY(0); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
    94%  { transform: translateY(-6%); animation-timing-function: ease-in; }
    100% { transform: translateY(0); }
  }
  @keyframes coin-turn { 0%, 90% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
  .logo .flash {
    position: absolute; left: 50%; top: 50%; width: 260%; aspect-ratio: 1; margin: -130% 0 0 -130%;
    border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 162, 12, .55), rgba(242, 162, 12, 0));
    opacity: 0; pointer-events: none; animation: flash .9s ease-out .7s both;
  }
  @keyframes flash { 0% { opacity: 0; transform: scale(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
  .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  /* ---------- buttons ---------- */
  .btn {
    position: absolute; left: 22.70%; width: 54.47%; height: calc(var(--u) * 13.89);
    display: grid; place-items: center; border-radius: 999px;
    color: var(--white); text-decoration: none;
    font-weight: 700; font-size: calc(var(--u) * 7.72); line-height: 1;
    transition: transform .12s ease, filter .12s ease;
  }
  .btn .label { display: block; transform: translateY(calc(var(--u) * .16)); }
  .btn:hover { filter: brightness(1.08); }
  .btn:active { transform: scale(.96); filter: brightness(.94); }
  .btn:focus-visible { outline: calc(var(--u) * .5) solid var(--white); outline-offset: calc(var(--u) * .7); }

  .yes {
    top: 46.43%; overflow: hidden;
    background: linear-gradient(90deg, var(--gold-hi) 0%, #d38e02 33%, #ab7302 78%, var(--gold-lo) 100%);
    animation: pour .7s var(--out) 1.6s both;
  }
  @keyframes pour { from { clip-path: inset(0 50% round 999px); } to { clip-path: inset(0 0 round 999px); } }
  .yes .label { text-shadow: 0 calc(var(--u) * .3) calc(var(--u) * .8) rgba(70, 40, 0, .22); animation: pop .5s var(--out) 1.85s both; }
  .yes::after {             /* one pass of light once the button has landed */
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 34%;
    background: linear-gradient(100deg, #fff0, #ffffff59 50%, #fff0);
    transform: translateX(-130%) skewX(-18deg);
    animation: sheen .9s ease-in-out 2.45s both;
  }
  @keyframes sheen { to { transform: translateX(420%) skewX(-18deg); } }
  @keyframes pop { from { opacity: 0; transform: translateY(calc(var(--u) * .16)) scale(.7); } }

  .no { top: 57.50%; }
  .no .ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .no .ring rect { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1s cubic-bezier(.65, 0, .35, 1) 1.8s both; }
  @keyframes draw { from { stroke-dashoffset: 1; } }
  .no .label {
    font-size: calc(var(--u) * 7.9); transform: translateY(calc(var(--u) * .37));
    background: linear-gradient(#fff 35%, #d2d2d2 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: pop-no .5s var(--out) 2.15s both;
  }
  @keyframes pop-no { from { opacity: 0; transform: translateY(calc(var(--u) * .37)) scale(.7); } }

  /* sparks thrown when a button is pressed */
  .spark {
    position: fixed; left: 0; top: 0; width: calc(var(--u) * 1.1); height: calc(var(--u) * 1.1); border-radius: 50%;
    background: var(--c, var(--gold)); pointer-events: none; z-index: 5;
    animation: spark .65s cubic-bezier(.1, .7, .3, 1) both;
  }
  @keyframes spark {
    from { opacity: 1; transform: translate(var(--px), var(--py)) scale(1); }
    to   { opacity: 0; transform: translate(calc(var(--px) + var(--sx)), calc(var(--py) + var(--sy))) scale(.2); }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .air { display: none; }
  }
