:root {
  --blue: #1446d8;
  --blue-deep: #0c1a4a;
  --blue-ink: #0a2a8f;
  --yellow: #ffd21f;
  --yellow-deep: #e9b800;
  --pink: #ff4f9a;
  --pink-soft: #ffd3e5;
  --pink-ink: #c8125e;
  --paper: #f3f4f8;
  --paper-2: #e2e5ee;
  --paper-line: #c2c7d5;
  --ink: #15140f;
  --ink-2: #4a463c;
  --white: #ffffff;
  --lake: #8fc3ef;
  --lake-deep: #5e9fd8;

  --display: "Big Shoulders Display", "Archivo", system-ui, sans-serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sticker: 14px;
  --shadow-sticker: 0 1px 1px rgba(12, 26, 74, .18), 0 6px 14px -4px rgba(12, 26, 74, .35);
  --shadow-lift: 0 2px 3px rgba(12, 26, 74, .2), 0 22px 40px -12px rgba(12, 26, 74, .55);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-squash: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--yellow); color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── Album strip (printed header band) ───────── */
.strip {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 10px) var(--gutter) 10px;
  background: var(--blue);
  color: var(--white);
  border-bottom: 3px solid var(--yellow);
}
.strip__brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.strip__name {
  font-family: var(--display); font-weight: 900; font-size: 34px; line-height: .8;
  text-transform: uppercase; letter-spacing: .01em;
  color: var(--yellow);
}
.strip__sub { font-size: 11px; line-height: 1.15; font-weight: 600; font-stretch: 75%; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.strip__right { display: flex; align-items: center; gap: 8px; }
.eggs, .pageno {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px;
  border-radius: 999px;
  font-weight: 700; font-size: 14px; font-stretch: 80%;
}
.eggs { background: rgba(255,255,255,.14); }
.eggs svg { width: 13px; height: 16px; fill: var(--yellow); }
.eggs.is-bump { animation: bump .5s var(--ease-squash); }
.pageno { background: var(--white); color: var(--blue); font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: .02em; }
.pageno:active { transform: scale(.92); }

/* ───────── Cover: the player card page ───────── */
.cover {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--blue);
  color: var(--white);
  padding: 28px var(--gutter) 40px;
}
.cover__rays {
  position: absolute; inset: -40% -60% auto; height: 150%; z-index: -1;
  background: repeating-conic-gradient(from 0deg at 50% 38%, rgba(255,255,255,.075) 0 6deg, transparent 6deg 15deg);
  animation: spin 120s linear infinite;
}

.holo {
  display: block; margin: 0 auto; width: min(74vw, 330px);
  perspective: 900px;
  --mx: 50%; --my: 40%; --rx: 0deg; --ry: 0deg;
}
.holo__card {
  position: relative; display: block; aspect-ratio: 5 / 7;
  border-radius: 18px; overflow: hidden;
  background: var(--yellow);
  border: 7px solid var(--white);
  box-shadow: var(--shadow-lift);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(-2deg);
  transition: transform .5s var(--ease-out);
  transform-style: preserve-3d;
}
.holo:active .holo__card { transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(-2deg) scale(.96, .94); transition-duration: .12s; }
.holo__dots {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255, 79, 154, .55) 0 1.6px, transparent 2.2px) 0 0 / 11px 11px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 50% 30%, #000 20%, transparent 75%);
}
.holo__art { position: absolute; left: -2%; right: -2%; top: 1%; width: 104%; height: auto; }
.holo__no {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: grid; place-items: center;
  min-width: 58px; height: 58px; padding: 0 8px; border-radius: 50%;
  background: var(--blue); color: var(--yellow);
  font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: .01em;
  box-shadow: 0 0 0 3px var(--white);
}
.holo__tag {
  position: absolute; top: 14px; right: 12px; z-index: 2;
  padding: 3px 8px; border-radius: 4px;
  background: var(--pink-ink); color: var(--white);
  font-weight: 800; font-size: 12px; font-stretch: 80%; letter-spacing: .06em;
}
.holo__banner {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 8px;
  padding: 10px 14px 12px;
  background: var(--blue-deep);
  color: var(--white);
  text-align: left;
}
.holo__first { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1; text-transform: uppercase; color: var(--yellow); grid-column: 1 / -1; letter-spacing: .03em; }
.holo__last { font-family: var(--display); font-weight: 900; font-size: 46px; line-height: .85; text-transform: uppercase; grid-column: 1 / -1; letter-spacing: .005em; }
.holo__role { grid-column: 1 / -1; margin-top: 6px; font-size: 11px; font-weight: 600; font-stretch: 80%; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.holo__foil {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    repeating-linear-gradient(115deg,
      rgba(255, 0, 132, .0) 0%, rgba(255, 0, 132, .5) 6%, rgba(255, 210, 31, .5) 12%,
      rgba(0, 255, 170, .45) 18%, rgba(0, 170, 255, .5) 24%, rgba(170, 0, 255, .45) 30%, rgba(255, 0, 132, .0) 36%);
  background-size: 260% 260%;
  background-position: var(--mx) var(--my);
  mix-blend-mode: color-dodge;
  opacity: .62;
  -webkit-mask-image: repeating-linear-gradient(45deg, #000 0 2px, rgba(0,0,0,.35) 2px 4px);
          mask-image: repeating-linear-gradient(45deg, #000 0 2px, rgba(0,0,0,.35) 2px 4px);
  transition: background-position .4s var(--ease-out);
}
.holo__gloss {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(70% 50% at var(--mx) var(--my), rgba(255,255,255,.55), transparent 60%);
  mix-blend-mode: soft-light;
}
.holo.is-idle .holo__foil { animation: foil 7s ease-in-out infinite alternate; }

.profile {
  margin: 26px auto 0; max-width: 420px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid rgba(255,255,255,.3); border-bottom: 1px solid rgba(255,255,255,.3);
}
.profile div { display: grid; justify-items: center; gap: 2px; padding: 10px 0; }
.profile div + div { border-left: 1px solid rgba(255,255,255,.3); }
.profile dt { font-size: 12px; font-weight: 700; font-stretch: 80%; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); white-space: nowrap; }
.profile dd { margin: 0; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; }

/* ───────── Album pages ───────── */
.page {
  position: relative;
  padding: 40px 20px 48px;
  max-width: 860px; margin: 14px 10px;
  background: var(--paper);
  border: 3px solid var(--blue);
  border-radius: 22px;
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--blue);
}
.page::after {
  content: attr(data-folio);
  position: absolute; right: 18px; bottom: -13px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--blue); color: var(--white);
  font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: .03em;
}
main { padding: 10px 0 30px; }
.page h2 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(44px, 13vw, 72px); line-height: .85; letter-spacing: -.005em;
  color: var(--blue);
}
.page__head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.page__meta { margin: 0 0 4px; font-size: 13px; font-weight: 600; font-stretch: 80%; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); white-space: nowrap; }
.page__meta strong { color: var(--pink-ink); font-size: 16px; }
.page__lede { margin: 14px 0 28px; max-width: 46ch; color: var(--ink-2); font-size: 15px; }

/* Slots: printed outlines, stickers glued in */
.slots {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px;
}
.slot { position: relative; }
.slot__frame {
  position: relative; aspect-ratio: 5 / 7;
  border-radius: var(--r-sticker);
  border: 2px dashed var(--paper-line);
  background: var(--paper-2);
}
.slot__num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: 64px; color: var(--paper-line);
}
.slot__cap { margin-top: 10px; display: grid; gap: 1px; }
.slot__capname { font-weight: 700; font-size: 14px; line-height: 1.2; font-stretch: 85%; }
.slot__capdate { font-size: 12px; color: var(--ink-2); }

.sticker {
  position: absolute; inset: 0;
  display: block; width: 100%;
  border-radius: var(--r-sticker);
  background: var(--white);
  padding: 5px;
  box-shadow: var(--shadow-sticker);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .35s var(--ease-squash), box-shadow .35s var(--ease-out), opacity .3s, filter .3s;
  text-align: left;
}
.sticker:hover { transform: rotate(var(--tilt, 0deg)) translateY(-3px); box-shadow: var(--shadow-lift); }
.sticker:active { transform: rotate(var(--tilt, 0deg)) scale(.95, .92); transition-duration: .1s; }
.sticker.is-ghost { opacity: 0; }
.slots.is-dim .sticker:not(.is-ghost) { filter: saturate(.3) brightness(.9); }

.face {
  position: relative; display: flex; flex-direction: column;
  height: 100%; border-radius: calc(var(--r-sticker) - 5px); overflow: hidden;
  container-type: inline-size;
  background: var(--face-bg, var(--blue));
  color: var(--face-ink, var(--white));
}
.face--blue { --face-bg: var(--blue); --face-ink: var(--white); --face-accent: var(--yellow); --face-lake: #3f6fe6; }
.face--yellow { --face-bg: var(--yellow); --face-ink: var(--blue-deep); --face-accent: var(--pink); --face-lake: #ffe67a; }
.face--pink { --face-bg: var(--pink); --face-ink: var(--white); --face-accent: var(--yellow); --face-lake: #ff86b9; }
.face--gold { --face-bg: #c9a227; --face-ink: var(--blue-deep); --face-accent: var(--white); --face-lake: #e2c55a; }
.face__top { display: flex; justify-content: space-between; align-items: center; padding: 8px 9px 0; font-weight: 800; font-size: 11px; font-stretch: 75%; letter-spacing: .08em; text-transform: uppercase; }
.face__no { font-family: var(--display); font-weight: 900; font-size: 18px; letter-spacing: 0; }
.face__map { flex: 1; min-height: 0; padding: 4px 8px; }
.face__map svg { width: 100%; height: 100%; }
.face__name { padding: 0 9px; font-family: var(--display); font-weight: 900; font-size: 14cqi; line-height: .9; text-transform: uppercase; }
.face__time {
  margin-top: 6px; padding: 6px 9px 8px;
  background: var(--face-ink); color: var(--face-bg);
  display: flex; justify-content: space-between; align-items: baseline; gap: 6px;
}
.face__time b { font-family: var(--display); font-weight: 900; font-size: 15cqi; line-height: 1; letter-spacing: .01em; }
.face__time span { font-size: 11px; font-weight: 700; font-stretch: 80%; white-space: nowrap; }
.gloss::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(125deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 22%, rgba(255,255,255,0) 34%, rgba(255,255,255,0) 62%, rgba(255,255,255,.28) 63%, rgba(255,255,255,0) 72%, rgba(255,255,255,.22) 100%);
}

/* Empty slot (Silvesterlauf) */
.slot--empty .slot__frame { border-color: var(--pink); background: repeating-linear-gradient(-45deg, var(--paper-2) 0 10px, #eceef4 10px 20px); }
.empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch;
  padding: 12px; text-align: left; color: var(--ink);
  border-radius: var(--r-sticker);
}
.empty__no { font-family: var(--display); font-weight: 900; font-size: 46px; line-height: .8; color: var(--pink-ink); }
.empty__ribbon { width: 44%; margin: 0 auto; }
.empty__ribbon path { fill: none; stroke: var(--pink); stroke-width: 9; stroke-linecap: round; opacity: .5; }
.empty__label { font-family: var(--display); font-weight: 900; font-size: 22px; line-height: .95; text-transform: uppercase; color: var(--ink); }
.empty__count { font-size: 12px; font-weight: 700; color: var(--pink-ink); font-stretch: 85%; }
.empty.is-holding { animation: shake .45s linear; }
.empty__hold { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--pink); transform-origin: left; transform: scaleX(0); }
.empty.is-pressing .empty__hold { transform: scaleX(1); transition: transform 1s linear; }

.slot--secret .slot__frame { border-color: #c9a227; }
.slot--secret { animation: popin .7s var(--ease-squash) both; }

/* ───────── League table ───────── */
.page--table h2 { margin-bottom: 22px; }
.table-wrap { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.league { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 330px; }
.league th, .league td { padding: 10px 6px; text-align: left; border-bottom: 1px solid var(--paper-line); }
.league thead th { font-size: 11px; font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); border-bottom: 2px solid var(--blue); }
.league .num { text-align: right; white-space: nowrap; }
.league tbody td:first-child { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--blue); }
.league tbody td:nth-child(2) { font-weight: 600; }
.league tbody td:nth-child(2) small { display: block; font-weight: 400; color: var(--ink-2); font-size: 12px; }
.league tfoot th, .league tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--blue); font-size: 15px; }
.league tr.is-pb td:nth-child(4)::after { content: "PB"; margin-left: 6px; padding: 1px 5px; border-radius: 3px; background: var(--pink-ink); color: var(--white); font-size: 10px; font-weight: 800; vertical-align: 2px; }

.pacechart { margin: 36px 0 0; }
.pacechart figcaption { font-weight: 800; font-size: 13px; font-stretch: 80%; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.pacechart figcaption span { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.pacechart svg { width: 100%; max-width: 400px; height: auto; margin-top: 10px; overflow: visible; }
.pacechart__note { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); max-width: 46ch; }

.convert__title { margin-top: 40px; font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; color: var(--blue); }
.convert { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
.convert li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--paper-line); }
.convert b { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: .9; color: var(--pink-ink); text-align: right; }
.convert span { font-size: 15px; }
.convert small { display: block; color: var(--ink-2); font-size: 12px; }

/* ───────── Footer ───────── */
.foot { background: var(--blue-deep); color: var(--white); padding: 52px var(--gutter) calc(env(safe-area-inset-bottom) + 56px); }
.foot__big { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 12vw, 64px); line-height: .9; text-transform: uppercase; color: var(--yellow); }
.steck { margin: 0 0 40px; max-width: 520px; display: grid; }
.steck div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.steck dt { font-size: 12px; font-weight: 700; font-stretch: 80%; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); white-space: nowrap; }
.steck dd { margin: 0; text-align: right; font-weight: 600; font-size: 15px; }
.foot > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.foot__small { margin: 22px 0 0; max-width: 52ch; font-size: 13px; color: #c4cdf0; }

/* ───────── Sheet: the flipped sticker ───────── */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet[hidden] { display: none; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(12, 26, 74, .72); opacity: 0; transition: opacity .35s var(--ease-out); }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet__panel {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top) + 64px) var(--gutter) calc(env(safe-area-inset-bottom) + 40px);
  outline: none;
}
.sheet__close {
  position: fixed; top: calc(env(safe-area-inset-top) + 12px); right: 12px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--blue-deep);
  box-shadow: var(--shadow-sticker);
  opacity: 0; transform: scale(.6); transition: opacity .25s, transform .4s var(--ease-squash);
}
.sheet.is-open .sheet__close { opacity: 1; transform: none; }
.sheet__close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; fill: none; }
.sheet__flip { width: min(62vw, 250px); margin: 0 auto; aspect-ratio: 5 / 7; perspective: 1000px; }
.flipper { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.flipper > * { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flipper .back { transform: rotateY(180deg); }
.flipper .sticker { position: absolute; transform: none; }

.back {
  border-radius: var(--r-sticker); background: var(--white); padding: 5px; box-shadow: var(--shadow-lift);
}
.back__in {
  height: 100%; border-radius: calc(var(--r-sticker) - 5px);
  background: var(--paper); color: var(--ink);
  padding: 12px; display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--paper-line);
}
.back__no { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: .8; color: var(--blue); }
.back__name { font-family: var(--display); font-weight: 900; font-size: 22px; line-height: .95; text-transform: uppercase; }
.back__rows { margin-top: auto; display: grid; gap: 3px; font-size: 11px; }
.back__rows div { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px dotted var(--paper-line); padding-bottom: 2px; }
.back__rows dt { color: var(--ink-2); }
.back__rows dd { margin: 0; font-weight: 700; }

.sheet__body {
  max-width: 560px; margin: 26px auto 0;
  background: var(--paper); border-radius: 20px;
  padding: 24px 18px 28px;
  box-shadow: var(--shadow-lift);
  opacity: 0; transform: translateY(40px);
  transition: opacity .45s var(--ease-out) .25s, transform .6s var(--ease-out) .25s;
}
.sheet.is-open .sheet__body { opacity: 1; transform: none; }
.d-head { display: grid; gap: 4px; }
.d-head h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(36px, 11vw, 52px); line-height: .88; color: var(--blue); }
.d-head p { margin: 0; color: var(--ink-2); font-size: 14px; }
.d-time { margin-top: 18px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.d-time b { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 18vw, 84px); line-height: .85; letter-spacing: -.005em; color: var(--ink); }
.d-time span { font-weight: 700; font-size: 15px; color: var(--ink-2); }
.d-time em { font-style: normal; padding: 2px 8px; border-radius: 4px; background: var(--pink-ink); color: var(--white); font-weight: 800; font-size: 13px; }

.d-sec { margin-top: 30px; }
.d-sec h3 { font-weight: 800; font-size: 12px; font-stretch: 80%; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: 10px; }
.d-rows { display: grid; margin: 0; }
.d-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--paper-line); font-size: 15px; }
.d-rows dt { color: var(--ink-2); }
.d-rows dd { margin: 0; font-weight: 700; text-align: right; }
.d-rows button { text-decoration: underline dotted var(--pink) 2px; text-underline-offset: 4px; font-weight: 700; }

.d-map { border-radius: 14px; overflow: hidden; background: #dfe9d3; }
.d-map svg { width: 100%; height: auto; }
.d-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-2); }

.d-profile { position: relative; touch-action: pan-y; }
.d-profile svg { width: 100%; height: auto; overflow: visible; }
.d-profile__read { position: absolute; top: 0; left: 0; padding: 3px 7px; border-radius: 4px; background: var(--blue-deep); color: var(--white); font-size: 12px; font-weight: 700; white-space: nowrap; transform: translate(-50%, -110%); pointer-events: none; opacity: 0; transition: opacity .15s; }
.d-profile.is-reading .d-profile__read { opacity: 1; }

.d-splits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.d-splits li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 14px; }
.d-splits .bar { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: var(--paper-2); overflow: hidden; }
.d-splits .bar i { display: block; height: 100%; border-radius: 5px; background: var(--blue); transform-origin: left; animation: grow .9s var(--ease-out) both; }
.d-splits li.is-long .bar i { background: var(--pink); }
.d-splits b { font-weight: 700; }
.d-splits small { color: var(--ink-2); font-size: 12px; grid-column: 1 / -1; }

.d-rank { display: grid; gap: 10px; }
.d-rank__bar { position: relative; height: 34px; border-radius: 8px; background: var(--blue); overflow: hidden; }
.d-rank__bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--yellow); }
.d-rank__bar span { position: absolute; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 12px; font-stretch: 80%; }
.d-rank__bar .l { left: 10px; color: var(--blue-deep); }
.d-rank__bar .r { right: 10px; color: var(--white); }
.d-neigh { width: 100%; border-collapse: collapse; font-size: 13px; }
.d-neigh td { padding: 6px 4px; border-bottom: 1px solid var(--paper-line); }
.d-neigh td:last-child { text-align: right; }
.d-neigh tr.me td { font-weight: 800; color: var(--blue); }

.d-quips { display: grid; gap: 10px; }
.d-quip { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--yellow); color: var(--blue-deep); font-weight: 600; font-size: 15px; transform: rotate(var(--q, -.6deg)); }
.d-quip:nth-child(2) { --q: .5deg; background: var(--pink-soft); }
.d-quip:nth-child(3) { --q: -.3deg; background: #d6e2ff; }

.d-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.badge { display: grid; justify-items: center; text-align: center; gap: 6px; }
.badge__disc {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: var(--yellow); box-shadow: 0 0 0 4px var(--white), var(--shadow-sticker);
  font-family: var(--display); font-weight: 900; font-size: 28px;
}
.badge:nth-child(2) .badge__disc { background: var(--pink-ink); color: var(--white); }
.badge:nth-child(3) .badge__disc { background: var(--yellow); color: var(--blue-deep); }
.badge__disc svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.badge b { font-size: 12px; line-height: 1.2; font-weight: 800; font-stretch: 85%; }
.badge small { font-size: 11px; line-height: 1.25; color: var(--ink-2); }

.kudos {
  margin-top: 30px; width: 100%; min-height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--blue); color: var(--white); font-weight: 800; font-size: 17px; font-stretch: 85%;
  box-shadow: var(--shadow-sticker);
  transition: transform .2s var(--ease-squash);
}
.kudos:active { transform: scale(.96, .92); }
.kudos svg { width: 22px; height: 22px; fill: var(--yellow); }
.kudos__count { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--yellow); }
.kudos__msg { margin: 10px 0 0; min-height: 1.5em; text-align: center; font-size: 14px; color: var(--ink-2); }

/* ───────── Toast + confetti ───────── */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 22px); z-index: 80;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 12px;
  background: var(--yellow); color: var(--blue-deep);
  font-weight: 800; font-size: 15px; text-align: center;
  border: 4px solid var(--white); box-shadow: var(--shadow-lift);
  transform: translate(-50%, 160%) rotate(-2deg); transition: transform .5s var(--ease-squash);
  pointer-events: none;
}
.toast small { display: block; font-weight: 600; font-size: 12px; opacity: .8; }
.toast.is-on { transform: translate(-50%, 0) rotate(-2deg); }
.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; width: 100vw; height: 100vh; }

/* Nati mode (type "hopp") */
body.nati { --blue: #d52b1e; --blue-deep: #5c0f0a; --blue-ink: #8c1a12; --yellow: #ffffff; }
body.nati .holo__card { background: #ffe1df; }

/* ───────── Motion ───────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes foil { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25, .85); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: none; } 20% { transform: translateX(-6px) rotate(-2deg); } 40% { transform: translateX(6px) rotate(2deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes popin { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } }

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

/* ───────── Larger screens ───────── */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .cover { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 380px); justify-content: center; align-items: center; gap: 56px; padding: 64px var(--gutter) 72px; }
  .holo { width: 100%; }
  .profile { margin: 0; }
  .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page { margin: 24px auto; padding: 56px 48px 64px; }
}
.face--pink .face__time span { color: var(--pink-ink); }

/* ───────── Password gate ───────── */
.gate { display: none; }
.locked body { overflow: hidden; }
.locked body > :not(.gate) { visibility: hidden; }
.locked .gate {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100;
  padding: var(--gutter);
  background: repeating-conic-gradient(from 0deg at 50% 40%, var(--blue) 0 10deg, var(--blue-ink) 10deg 20deg);
}
.gate__card {
  position: relative;
  width: min(100%, 340px);
  padding: 28px 22px 22px;
  background: var(--white);
  border: 6px solid var(--yellow);
  border-radius: var(--r-sticker);
  box-shadow: var(--shadow-lift);
  transform: rotate(-2deg);
  text-align: center;
}
.gate__no {
  position: absolute; top: -18px; right: -14px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--pink); color: var(--white);
  font: 900 26px/1 var(--display);
  border-radius: 50%; transform: rotate(12deg);
  box-shadow: var(--shadow-sticker);
}
.gate__title { font: 900 64px/.9 var(--display); color: var(--blue); text-transform: uppercase; letter-spacing: -.01em; }
.gate__sub { margin: 4px 0 20px; font-size: 13px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.gate__label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; text-align: left; }
.gate__input {
  width: 100%; padding: 12px 14px;
  font: 600 18px/1.2 var(--text); color: var(--ink);
  background: var(--paper); border: 2px solid var(--paper-line); border-radius: 10px;
}
.gate__input:focus { outline: none; border-color: var(--blue); }
.gate__btn {
  width: 100%; margin-top: 12px; padding: 14px;
  font: 900 20px/1 var(--display); text-transform: uppercase; letter-spacing: .03em;
  color: var(--blue-deep); background: var(--yellow);
  border-radius: 10px; box-shadow: inset 0 -3px 0 var(--yellow-deep);
}
.gate__btn:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--yellow-deep); }
.gate__msg { min-height: 1.5em; margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--pink-ink); }
.gate__card.is-wrong { animation: gate-shake .4s var(--ease-out); }
@keyframes gate-shake { 25% { transform: rotate(-2deg) translateX(-8px); } 50% { transform: rotate(-2deg) translateX(7px); } 75% { transform: rotate(-2deg) translateX(-4px); } }
@media (prefers-reduced-motion: reduce) { .gate__card.is-wrong { animation: none; } }
