/* =========================================================
   KLAMBY TOP SPENDER — DESIGN TOKENS
   Change colours / fonts here; everything else follows.
   ========================================================= */

/* Brand fonts. Drop the files into /fonts with these names
   (any of .woff2 / .woff / .otf / .ttf). If missing, the
   fallback fonts below are used automatically. */
@font-face {
  font-family: "Ambroise Francois";
  src: local("Ambroise Francois"), local("AmbroiseFrancois-Regular"),
       url("../fonts/AmbroiseFrancois-Regular.woff2") format("woff2"),
       url("../fonts/AmbroiseFrancois-Regular.woff") format("woff"),
       url("../fonts/AmbroiseFrancois-Regular.otf") format("opentype"),
       url("../fonts/AmbroiseFrancois-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Ambroise Francois";
  src: local("Ambroise Francois Bold"), local("AmbroiseFrancois-Bold"),
       url("../fonts/AmbroiseFrancois-Bold.woff2") format("woff2"),
       url("../fonts/AmbroiseFrancois-Bold.woff") format("woff"),
       url("../fonts/AmbroiseFrancois-Bold.otf") format("opentype"),
       url("../fonts/AmbroiseFrancois-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Kedebideri Local";
  src: local("Kedebideri"),
       url("../fonts/Kedebideri-Regular.woff2") format("woff2"),
       url("../fonts/Kedebideri-Regular.otf") format("opentype"),
       url("../fonts/Kedebideri-Regular.ttf") format("truetype");
  font-weight: 400; font-display: swap;
}


:root {
  /* Palette (design.md + reference poster) */
  --cream: #F2ECE0;      /* primary + background */
  --plum: #563643;       /* secondary + text primary */
  --gold: #AD9676;       /* accent + text secondary */
  --sky: #C3D9E7;        /* additional */
  --petal: #E4D8C4;      /* flower shapes (a shade of the cream) */
  --petal-2: #DDCFB8;

  --bg: var(--cream);
  --text: var(--plum);
  --text-2: var(--gold);
  --surface: #F8F3EA;
  --line: rgba(86, 54, 67, .12);
  --gold-soft: rgba(173, 150, 118, .2);

  /* Type */
  --font-display: "Ambroise Francois", "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-body: "Kedebideri Local", "Kedebideri", "Jost", "Helvetica Neue", Arial, sans-serif;

  --fs-headline: clamp(2.4rem, 1.4rem + 3.6vw, 6.2rem);
  --fs-subhead: clamp(1.3rem, .9rem + 1.6vw, 3rem);
  --fs-hero-name: clamp(2rem, 1.2rem + 2.6vw, 4.6rem);
  --fs-hero-amount: clamp(1.4rem, 1rem + 1.4vw, 2.8rem);
  --fs-rank: clamp(1.4rem, 1rem + 1.2vw, 2.4rem);
  --fs-name: clamp(1rem, .9rem + .4vw, 1.35rem);
  --fs-amount: clamp(1rem, .9rem + .4vw, 1.35rem);
  --fs-small: clamp(.72rem, .68rem + .2vw, .9rem);

  /* Spacing & shape */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --gutter: clamp(16px, 2.4vw, 48px);
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 18px 40px -24px rgba(86, 54, 67, .45);

  /* Motion */
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ================= BASE ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.is-missing { display: none !important; }

.app {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 var(--gutter);
  max-width: 1920px;
  margin: 0 auto;
}

/* ================= TOP BAR ================= */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s5) 0 var(--s3);
  animation: fadeDown .8s var(--ease) both;
}
/* Logo shown at about half its pixel height so it stays sharp on Retina screens */
.logo { height: clamp(22px, 1.4vw + 10px, 30px); width: auto; }
/* (logo styles above) */

.refresh {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--fs-small); letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
}
.refresh__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #6E9E7E; }
.refresh__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid #6E9E7E; opacity: 0; animation: pulse 2.4s var(--ease) infinite;
}
.refresh.is-loading .refresh__dot { background: transparent; border: 1.5px solid var(--gold); border-top-color: transparent; animation: spin .8s linear infinite; }
.refresh.is-loading .refresh__dot::after { display: none; }
.refresh.is-error .refresh__dot { background: #B5654F; }
.refresh.is-error .refresh__dot::after { border-color: #B5654F; }
.refresh.is-demo .refresh__dot { background: var(--gold); }
.refresh.is-demo .refresh__dot::after { border-color: var(--gold); }

/* ================= STAGE ================= */
.stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 56px);
  padding: var(--s3) 0 var(--s5);
  min-height: 0;
}
@media (min-width: 1000px) {
  .stage { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .poster { position: sticky; top: var(--s4); }
}

/* ================= PRIZE POSTER ================= */
.poster {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-width: 0;
}
.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-headline);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--plum);
}
.headline .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .06em; }
.headline .ch { display: inline-block; transform: translateY(110%); animation: chUp .9s var(--ease) forwards; }
.subhead {
  margin: .35em 0 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-subhead);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  animation: fadeUp .9s var(--ease) .5s both;
}

.prize-stage {
  width: 100%;
  display: grid; place-items: center;
  perspective: 1000px;
  margin: clamp(8px, 1.5vw, 24px) 0;
}
.prize {
  position: relative;
  /* never wider than the photo's real pixel width, so it stays sharp */
  width: min(100%, var(--prize-max, 560px));
  aspect-ratio: 1232 / 1370;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.prize__img {
  position: relative; z-index: 2;
  width: 100%; height: auto;
  transform: translateZ(50px);
  filter: drop-shadow(0 22px 18px rgba(86, 54, 67, .18));
  animation: prizeIn 1.2s var(--ease) .35s both, float 6s ease-in-out 1.6s infinite;
}
.bloom { position: absolute; fill: var(--petal); stroke: none; z-index: 0; }
.bloom--big { width: 78%; aspect-ratio: 1; left: -10%; top: 22%; animation: bloomIn 1.2s var(--spring) both, spinSlow 90s linear 1.2s infinite; }
.bloom--small { width: 16%; aspect-ratio: 1; right: -6%; bottom: 30%; fill: var(--petal-2); animation: bloomIn 1s var(--spring) .6s both, spinSlow 50s linear infinite reverse; }
.bloom--tiny { width: 10%; aspect-ratio: 1; left: -6%; bottom: 6%; fill: var(--petal-2); animation: bloomIn 1s var(--spring) .8s both, spinSlow 40s linear infinite; }

.badge {
  position: absolute; z-index: 3;
  right: -8%; top: 14%;
  width: 36%; aspect-ratio: 1;
  display: grid; place-items: center;
  transform: translateZ(80px);
  animation: badgeIn 1.1s var(--spring) .9s both;
}
.badge__flower { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--petal); stroke: none; animation: spinSlow 60s linear infinite; }
.badge__text { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--plum); }
.badge__text small { font-size: clamp(.62rem, .5rem + .5vw, 1.15rem); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.badge__text b { font-family: var(--font-body); font-size: clamp(2rem, 1.2rem + 3vw, 4.6rem); font-weight: 600; margin: .04em 0; }

.poster__prize {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.1rem, .8rem + 1.2vw, 2.4rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.05;
  animation: fadeUp .9s var(--ease) 1.1s both;
}
.poster__meta {
  margin: var(--s2) 0 0;
  font-size: var(--fs-small); letter-spacing: .14em; text-transform: uppercase;
  animation: fadeUp .9s var(--ease) 1.25s both;
}
.poster__meta:empty { display: none; }

/* ================= RANKING COLUMN ================= */
.ranking { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }

/* #1 */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: var(--s2);
  padding: clamp(20px, 2.4vw, 44px);
  background: var(--plum); color: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  animation: cardIn .9s var(--ease) .3s both;
}
.hero__rank { display: inline-flex; align-items: center; gap: var(--s2); color: var(--gold); font-family: var(--font-display); font-size: var(--fs-rank); line-height: 1; }
.crown { width: 22px; height: 16px; fill: currentColor; stroke: none; }
.hero__rank .crown { width: 1.1em; height: .8em; transform-origin: 50% 100%; animation: crownSway 4.5s ease-in-out infinite; }
.hero__name {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-hero-name); line-height: 1.02;
}
.hero__name .w, .podium__name .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__name .ch, .podium__name .ch { display: inline-block; transform: translateY(105%); animation: chUp .8s var(--ease) forwards; }
.hero__amount { font-family: var(--font-display); font-size: var(--fs-hero-amount); color: var(--gold); line-height: 1.1; }

/* the curtain that sweeps across when someone new takes #1 */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, var(--gold) 0 14%, var(--cream) 14% 17%, var(--plum) 17%);
  transform: translateX(-101%);
}
.hero.is-takeover::after { animation: curtain 1.3s cubic-bezier(.7, 0, .2, 1) both; }

/* #2 and #3 */
.podium { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.podium__card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 2px;
  padding: clamp(16px, 1.6vw, 28px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-width: 0;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  animation: podiumUp .9s cubic-bezier(.7, 0, .2, 1) both;
}
.podium__card--2 { background: var(--gold); color: #FFFDF8; animation-delay: .55s; }
.podium__card--3 { background: var(--sky); color: var(--plum); animation-delay: .75s; }
.podium__card:hover { box-shadow: 0 26px 40px -22px rgba(86,54,67,.6); }
.podium__rank { font-family: var(--font-display); font-size: var(--fs-rank); line-height: 1; }
.podium__name { margin: var(--s2) 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, .9rem + .6vw, 1.7rem); line-height: 1.1; overflow-wrap: anywhere; }
.podium__amount { font-size: var(--fs-amount); }
.podium__card.is-spotlight { animation: spotlight 2.4s var(--ease) 1; }
.podium__card.is-dim { opacity: .4; }

/* Rolling digits */
.odo { display: inline-flex; align-items: baseline; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.odo__d { display: inline-block; height: 1.15em; line-height: 1.15em; overflow: hidden; vertical-align: bottom; }
.odo__col { display: flex; flex-direction: column; transition: transform 1.5s cubic-bezier(.16, 1, .3, 1); }
.odo__col > span { height: 1.15em; }
.odo__s { display: inline-block; line-height: 1.15em; }

/* ================= CONTROLS ================= */
.controls { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); animation: fadeUp .8s var(--ease) .9s both; }
.search {
  flex: 1 1 180px;
  display: flex; align-items: center; gap: var(--s2);
  height: 42px; padding: 0 var(--s4);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.search svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); }
.search input::placeholder { color: var(--gold); }
.filter { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.filter__btn {
  border: 0; background: transparent; cursor: pointer;
  height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: var(--fs-small); letter-spacing: .08em; text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.filter__btn:hover { background: var(--gold-soft); }
.filter__btn.is-active { background: var(--plum); color: var(--cream); }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); cursor: pointer;
  transition: transform .35s var(--spring), border-color .2s, background .2s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { transform: translateY(-2px) rotate(-6deg); border-color: var(--gold); background: #fff; }
.icon-btn:active { transform: scale(.92); }
.icon-btn:focus-visible, .filter__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.icon-btn.is-spinning svg { animation: spin .8s linear infinite; }

.demo-banner { padding: var(--s2) var(--s4); border-radius: var(--radius); background: var(--gold-soft); font-size: var(--fs-small); }
.demo-banner code { font-family: ui-monospace, Menlo, monospace; }

/* ================= LIST ================= */
.board { display: flex; flex-direction: column; min-height: 0; }
.board__viewport { position: relative; overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
@media (min-width: 1000px) { .board__viewport { max-height: 62vh; } }
.board__list { list-style: none; margin: 0; padding: 0; }
.board__empty { padding: var(--s6); text-align: center; color: var(--gold); }

.row {
  position: relative;
  display: grid;
  grid-template-columns: clamp(44px, 3.6vw, 64px) minmax(0, 1fr) auto;
  align-items: center; align-content: center;
  column-gap: var(--s4);
  min-height: clamp(54px, 4.2vw, 70px);
  padding: 0 var(--s4);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .25s var(--ease);
}
.row::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.row:hover { background: var(--surface); }
.row:hover::after, .row.is-open::after { transform: scaleX(1); }
.row__rank { font-family: var(--font-display); font-size: clamp(1.1rem, .95rem + .5vw, 1.6rem); color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.row__name { font-size: var(--fs-name); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .35s var(--ease); }
.row:hover .row__name { transform: translateX(6px); }
.row__name mark { background: var(--gold-soft); color: inherit; padding: 0 2px; border-radius: 2px; }
.row__amount { font-size: var(--fs-amount); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.row__move { display: inline-block; margin-left: 6px; font-size: .6em; vertical-align: middle; }
.row__move--up { color: #6E9E7E; }
.row__move--down { color: #B5654F; }
.row__detail {
  grid-column: 2 / -1;
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease), padding .45s var(--ease);
  font-size: var(--fs-small); letter-spacing: .06em; color: var(--gold);
}
.row__detail > span { overflow: hidden; }
.row.is-open .row__detail { grid-template-rows: 1fr; padding-bottom: var(--s3); }
.row--top .row__rank { color: var(--plum); }
.row--top { font-weight: 600; }
.row.is-enter { animation: rowIn .6s var(--ease) both; }
.row.is-new { animation: rowIn .6s var(--ease) both; }
.row.is-flash { animation: flash 1.8s var(--ease) 1; }

/* ================= FOOTER ================= */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s3) 0 var(--s5);
  font-size: var(--fs-small); letter-spacing: .1em; color: var(--gold);
}
.marquee {
  flex: 1; min-width: 0; max-width: 560px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: 10px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background-repeat: no-repeat; background-size: 500% 100%; transition: transform .4s var(--spring); }
.ico:hover { transform: translateY(-5px) rotate(-10deg); }

.legal {
  margin: 0; padding: 0 0 var(--s5);
  text-align: center;
  font-size: clamp(.68rem, .62rem + .2vw, .82rem);
  line-height: 1.5;
  color: var(--plum); opacity: .7;
}
.legal:empty { display: none; }
body.is-present .footer { padding-bottom: var(--s2); }
body.is-present .legal { padding-bottom: var(--s4); }

/* ================= TOAST & BURST ================= */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 20;
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 32px);
  padding: 12px 20px; border-radius: 999px;
  background: var(--plum); color: var(--cream);
  font-size: var(--fs-small); letter-spacing: .06em;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.burst-layer { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.burst-layer .ico { position: absolute; left: 0; top: 0; width: 38px; height: 38px; }

/* ================= PRESENTATION MODE ================= */
body.is-present { overflow: hidden; }
body.is-present .controls, body.is-present .demo-banner { display: none !important; }
body.is-present .app { height: 100vh; min-height: 0; overflow: hidden; max-width: none; }
body.is-present .row { cursor: default; }
body.is-present .row--top { display: none; }  /* top 3 already shown above */
@media (min-width: 900px) {
  body.is-present .stage { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; min-height: 0; overflow: hidden; }
  body.is-present .poster { position: static; justify-content: center; min-height: 0; }
  /* keep the prize as big as the screen allows, but never past its real size */
  body.is-present .prize { width: min(100%, 616px, calc((100vh - 500px) * .9)); }
  body.is-present { --fs-headline: clamp(2.2rem, 5.4vh, 5.4rem); --fs-subhead: clamp(1.2rem, 3vh, 2.6rem); }
  body.is-present .prize-stage { margin: var(--s2) 0; }
  body.is-present .ranking { min-height: 0; }
  body.is-present .board { flex: 1; }
  body.is-present .board__viewport { overflow: hidden; max-height: none; flex: 1; }
}

/* ================= MOBILE ================= */
@media (max-width: 999px) {
  .poster { padding-top: var(--s3); overflow-x: clip; }
  .prize { width: min(84%, 560px); }
}
@media (max-width: 560px) {
  .controls .search { flex-basis: 100%; }
  .footer { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .marquee { max-width: none; }
}

/* ================= KEYFRAMES ================= */
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinSlow { to { rotate: 360deg; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes chUp { to { transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bloomIn { from { scale: 0; } to { scale: 1; } }
@keyframes badgeIn { from { opacity: 0; transform: translateZ(80px) scale(.2) rotate(-90deg); } to { opacity: 1; transform: translateZ(80px); } }
@keyframes prizeIn { from { opacity: 0; transform: translateZ(50px) translateX(60px) scale(.94); } to { opacity: 1; transform: translateZ(50px); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes crownSway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes curtain { 0% { transform: translateX(-101%); } 45%, 55% { transform: translateX(0); } 100% { transform: translateX(101%); } }
@keyframes podiumUp { from { clip-path: inset(100% 0 0 0 round 14px); } to { clip-path: inset(0 0 0 0 round 14px); } }
@keyframes rowIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { background: rgba(173, 150, 118, .35); } 100% { background: transparent; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spotlight {
  0% { box-shadow: 0 0 0 0 rgba(173, 150, 118, 0), var(--shadow); }
  25% { box-shadow: 0 0 0 6px rgba(173, 150, 118, .55), var(--shadow); }
  100% { box-shadow: 0 0 0 0 rgba(173, 150, 118, 0), var(--shadow); }
}

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

/* ===== REVISI 19 NOV ===== */
.logo { height: clamp(34px, 2vw + 18px, 56px); }

.subhead {
  font-size: clamp(1rem, .75rem + 1vw, 1.9rem);
  letter-spacing: .08em;
  line-height: 1.3;
  text-wrap: balance;
  max-width: 18em;
  margin-left: auto; margin-right: auto;
}
body.is-present .subhead { font-size: clamp(1rem, 2.4vh, 1.9rem); }
.poster__prize { display: none; }

.hero__amount, .podium__amount, .row__amount {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .02em;
}
.hero__amount { font-size: clamp(1.3rem, .9rem + 1.3vw, 2.6rem); }

.headline { letter-spacing: .04em; font-size: clamp(2.6rem, 1.6rem + 4vw, 7rem); }
body.is-present .headline { font-size: clamp(2.6rem, 8vh, 7.5rem); }
.hero__name { letter-spacing: .03em; }
.podium__name {
  letter-spacing: .05em;
  font-size: clamp(1.2rem, 1rem + .8vw, 2rem);
  line-height: 1.15;
}
.hero__rank, .podium__rank, .row__rank { letter-spacing: .06em; }

.prize-stage { margin-top: clamp(16px, 2.5vw, 36px); }
body.is-present .prize-stage { margin-top: 3vh; }
body.is-present .prize { width: min(100%, 616px, calc((100vh - 560px) * .9)); }


/* Top 5 saja */
.filter { display: none; }


/* Tombol back to klamby.id (CTA) */
.topbar .topbar__right { display: flex !important; align-items: center; gap: 12px; }
.topbar a.back-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body) !important;
  font-size: .78rem !important;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #F2ECE0 !important;
  background: #563643 !important;
  border: 1px solid #563643;
  padding: 12px 22px !important;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(86,54,67,.18);
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.topbar a.back-btn:hover {
  background: #AD9676 !important;
  border-color: #AD9676;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(86,54,67,.22);
}
body.is-present .topbar a.back-btn { display: none !important; }
@media (max-width: 600px) {
  .topbar a.back-btn { font-size: .68rem !important; padding: 9px 14px !important; }
}
