/* =====================================================================
   Premios Socráticos 2026 · Countdown
   Layout and components. Colors, typefaces and images all come from the
   theme (css/themes/*.css): no loose colors here.
   Mobile first: the base is the phone; from 1100px up it becomes the
   collage-style poster with the hero in the center.
   ===================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  --ticker-h: 34px;
  --gap: 8px;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--panel-gutter);
  color: var(--c-text);
  font-family: var(--font-body);
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Film grain over everything (doesn't capture clicks). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, p { margin: 0; }
svg { display: block; }

.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;
}

/* ------------------------------------------------------------- Ticker */
.ticker {
  position: relative;
  z-index: 5;
  display: flex;
  height: var(--ticker-h);
  overflow: hidden;
  background: var(--ticker-bg);
  color: var(--ticker-text);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ticker__tag {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0 1.3em 0 0.8em;
  background: var(--ticker-tag-bg);
  color: var(--ticker-tag-text);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.ticker__tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-pink-deep);
  animation: blink 1.2s steps(2, jump-none) infinite;
}

.ticker__viewport {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 70s linear infinite;
}

.ticker__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticker__list li {
  white-space: nowrap;
  padding-left: 1em;
}

.ticker__list li::after {
  content: "★";
  margin-left: 1em;
  color: var(--ticker-tag-bg);
}

@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }

/* ------------------------------------------------- Poster (collage) */
.poster {
  display: grid;
  gap: var(--gap);
  padding: var(--gap);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "hero hero"
    "soc  anti"
    "look tant"
    "bend org";
}

.panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--panel-radius);
}

.hero              { grid-area: hero; }
.panel--socrates   { grid-area: soc;  background: var(--bg-socrates); }
.panel--anti       { grid-area: anti; background: var(--bg-anti); }
.panel--lookalike  { grid-area: look; background: var(--bg-lookalike); }
.panel--tantrum    { grid-area: tant; background: var(--bg-tantrum); }
.panel--bender     { grid-area: bend; background: var(--bg-bender); }
.panel--organizers { grid-area: org;  background: var(--bg-organizers); }

/* --------------------------------------------------------------- Hero */
.hero {
  display: flex;
  flex-direction: column;
  min-height: max(560px, calc(100svh - var(--ticker-h) - 2 * var(--gap) - 110px));
  container-type: inline-size;
  background: var(--sea);
}

.hero__sky {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--sky);
}

/* Stars high in the sky */
.hero__sky::before {
  content: "";
  position: absolute;
  inset: 0 0 45% 0;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 14%, var(--sky-stars) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 22% 30%, var(--sky-stars) 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 34% 8%, var(--sky-stars) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 47% 22%, var(--sky-stars) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 63% 11%, var(--sky-stars) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 76% 33%, var(--sky-stars) 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 88% 17%, var(--sky-stars) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 94% 42%, var(--sky-stars) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 14% 48%, var(--sky-stars) 50%, transparent 52%);
  opacity: 0.8;
}

/* Sun glow over the horizon */
.hero__sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 45% at 50% 100%, var(--sun-glow), transparent 70%);
  pointer-events: none;
}

.hero__sun {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(86cqi, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  transform: translate(-50%, 50%);
  /* Retro stripes across the lower half of the sun (only the top half shows) */
  -webkit-mask-image: linear-gradient(180deg,
      #000 0 27%, transparent 27% 28.5%, #000 28.5% 33%, transparent 33% 35%,
      #000 35% 39%, transparent 39% 41.5%, #000 41.5% 44.5%, transparent 44.5% 47.5%,
      #000 47.5% 100%);
  mask-image: linear-gradient(180deg,
      #000 0 27%, transparent 27% 28.5%, #000 28.5% 33%, transparent 33% 35%,
      #000 35% 39%, transparent 39% 41.5%, #000 41.5% 44.5%, transparent 44.5% 47.5%,
      #000 47.5% 100%);
}

.hero__skyline {
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(64px, 24cqi, 170px);
  background: var(--silhouette);
  -webkit-mask: url("../img/skyline.svg") center bottom / cover no-repeat;
  mask: url("../img/skyline.svg") center bottom / cover no-repeat;
}

.hero__skyline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--windows);
  opacity: 0.75;
  -webkit-mask: url("../img/skyline-windows.svg") center bottom / cover no-repeat;
  mask: url("../img/skyline-windows.svg") center bottom / cover no-repeat;
}

.hero__palm {
  position: absolute;
  bottom: -3%;
  aspect-ratio: 300 / 500;
  background: var(--silhouette);
  -webkit-mask: url("../img/palm-tree.svg") center bottom / contain no-repeat;
  mask: url("../img/palm-tree.svg") center bottom / contain no-repeat;
}

.hero__palm--left {
  left: -16cqi;
  width: clamp(170px, 48cqi, 330px);
}

.hero__palm--right {
  right: -14cqi;
  width: clamp(140px, 38cqi, 260px);
  transform: scaleX(-1);
}

/* Helicopter sweeping a spotlight across the sky */
.heli {
  position: absolute;
  top: clamp(18px, 7%, 70px);
  right: 16%;
  width: clamp(58px, 15cqi, 104px);
  overflow: visible;
  color: var(--heli);
  animation: patrol 7s ease-in-out infinite;
}

.heli__beam {
  transform-origin: 64px 44px;
  animation: sweep 7s ease-in-out infinite;
}

.heli__glass { fill: var(--heli-glass); }
.heli__light { fill: var(--heli-light); animation: blink 1.1s steps(2, jump-none) infinite; }
.stop-beam-a { stop-color: var(--searchlight); }
.stop-beam-b { stop-color: var(--searchlight); stop-opacity: 0; }

.heli__rotor {
  transform-box: fill-box;
  transform-origin: center;
  animation: rotor 0.18s linear infinite;
}

@keyframes patrol { 50% { transform: translate(-10px, 5px) rotate(-3deg); } }
@keyframes sweep {
  0%, 100% { transform: rotate(14deg); }
  50% { transform: rotate(-16deg); }
}
@keyframes rotor { 50% { transform: scaleX(0.25); } }

.hero__brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(18px, 6cqi, 44px) 12px clamp(14px, 5cqi, 30px);
  text-align: center;
}

.hero__kicker {
  font-family: var(--font-display);
  font-size: clamp(15px, 4.6cqi, 26px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kicker);
  text-shadow: 0 2px 0 var(--wordmark-shadow-2);
}

.crest {
  width: clamp(104px, 30cqi, 190px);
  height: auto;
  margin: clamp(6px, 2cqi, 14px) 0 clamp(-6px, -1cqi, 0px);
  overflow: visible;
  filter: drop-shadow(0 3px 0 var(--wordmark-shadow-2));
}

.crest__good { color: var(--crest-good); }
.crest__evil { color: var(--crest-evil); }
.crest__halo { stroke: var(--crest-good); }
.crest__cup  { fill: var(--crest-cup); }

.wordmark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  color: var(--wordmark);
}

.wordmark__awards {
  font-size: clamp(18px, 6.4cqi, 44px);
  letter-spacing: 0.55em;
  margin-right: -0.55em; /* offsets the last character's own tracking */
  text-shadow: 0.06em 0.06em 0 var(--wordmark-shadow-1), 0.12em 0.12em 0 var(--wordmark-shadow-2);
}

.wordmark__main {
  font-size: clamp(54px, 18.5cqi, 150px);
  line-height: 1.08;
  letter-spacing: 0.005em;
  padding-top: 0.16em;
  text-shadow:
    0.035em 0.035em 0 var(--wordmark-shadow-1),
    0.07em 0.07em 0 var(--wordmark-shadow-2);
}

.wordmark__year {
  position: absolute;
  right: -0.1em;
  bottom: -0.62em;
  font-family: var(--font-script);
  font-size: clamp(34px, 11cqi, 84px);
  text-transform: none;
  color: var(--year);
  transform: rotate(-8deg);
  text-shadow: 0 0 0.18em var(--year-glow), 0.04em 0.05em 0 var(--wordmark-shadow-2);
}

/* ------------------------------------------------------------ The sea */
.hero__sea {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 5cqi, 28px);
  padding: clamp(40px, 11cqi, 58px) 12px clamp(46px, 10cqi, 52px);
  border-top: 2px solid var(--horizon);
  box-shadow: 0 -1px 14px var(--horizon);
}

/* Sun's reflection on the water */
.hero__sea::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(80cqi, 520px);
  height: 70%;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, var(--sea-reflection) 0 3px, transparent 3px 11px);
  -webkit-mask-image: radial-gradient(50% 100% at 50% 0, #000 0%, transparent 100%);
  mask-image: radial-gradient(50% 100% at 50% 0, #000 0%, transparent 100%);
  opacity: 0.55;
  pointer-events: none;
}

.hero__sea > * { position: relative; }

/* --------------------------------------------------------- Countdown */
.countdown {
  --num-size: clamp(56px, 18cqi, 136px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(4px, 1.6cqi, 14px);
  font-family: var(--font-display);
}

.countdown[hidden] { display: none; }

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The shadow lives in a filter on the container (not text-shadow) so the
   per-digit slot doesn't clip it while it falls. */
.countdown__num {
  display: flex;
  justify-content: center;
  font-size: var(--num-size);
  line-height: 1;
  color: var(--count-num);
  filter: drop-shadow(0.035em 0.045em 0 var(--count-shadow)) drop-shadow(0 0 0.3em rgb(0 0 0 / 0.35));
}

/* Fixed-width slot per digit (Anton's "1" is narrower than the rest). */
.digit {
  position: relative;
  display: block;
  width: 0.5em;
  height: 1.12em;
  margin: -0.06em 0;
  overflow: hidden;
  line-height: 1.12;
  text-align: center;
}

.digit__face { display: block; }

/* Roller-style fall: the old face drops away and the new one falls right
   behind it, glued to it. Both share the same curve (accelerates like
   gravity and bounces on landing), so they never overlap. */
.digit__face.enter,
.digit__face.exit {
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.55, 0, 0.3, 1.32);
  animation-fill-mode: both;
}

.digit__face.enter { animation-name: digit-enter; }

.digit__face.exit {
  position: absolute;
  inset: 0;
  animation-name: digit-exit;
}

@keyframes digit-enter {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

@keyframes digit-exit {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(100%); opacity: 0.35; }
}


.countdown__label {
  margin-top: 0.55em;
  font-family: var(--font-body);
  font-size: clamp(10px, 2.9cqi, 16px);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--count-label);
}

/* Separators: two pink squares standing in for a ":" with more presence */
.countdown__sep {
  align-self: flex-start;
  width: calc(var(--num-size) * 0.12);
  height: var(--num-size);
  background:
    linear-gradient(var(--count-sep), var(--count-sep)) center 34% / 100% calc(var(--num-size) * 0.12) no-repeat,
    linear-gradient(var(--count-sep), var(--count-sep)) center 72% / 100% calc(var(--num-size) * 0.12) no-repeat;
}

.hero__date {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.6em 1.2em;
  border: 2px solid var(--c-cyan);
  border-radius: 999px;
  white-space: nowrap;
  font-size: clamp(11.5px, 3.3cqi, 17px);
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-cream);
  box-shadow: 0 0 14px rgb(77 232 242 / 0.45), inset 0 0 12px rgb(77 232 242 / 0.22);
  text-shadow: 0 0 10px rgb(77 232 242 / 0.6);
}

.hero__date-sep { color: var(--c-yellow); }

.hero__noscript {
  max-width: 30em;
  text-align: center;
  color: var(--c-text-dim);
}

.hero__hint {
  position: absolute !important;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  white-space: nowrap;
}

.hero__hint span {
  display: inline-block;
  margin-left: 0.3em;
  animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce { 50% { transform: translateY(4px); } }

/* ------------------------------------------- "¡Empieza la gala!" state */
.gala {
  text-align: center;
}

.gala[hidden] { display: none; }

.gala__title {
  font-family: var(--font-display);
  font-size: clamp(52px, 16cqi, 128px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--count-num);
  text-shadow: 0.035em 0.045em 0 var(--count-shadow), 0 0 0.4em var(--year-glow);
  animation: heartbeat 1.4s ease-in-out infinite;
}

.gala__sub {
  margin-top: 0.7em;
  font-size: clamp(14px, 3.8cqi, 20px);
  font-weight: 600;
  color: var(--c-cream);
}

.gala__sub em {
  display: block;
  margin-top: 0.15em;
  font-family: var(--font-script);
  font-style: normal;
  font-size: 1.3em;
  color: var(--c-yellow);
}

@keyframes heartbeat { 50% { transform: scale(1.04); } }

.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.confetti i {
  position: absolute;
  top: -20px;
  left: var(--x);
  width: var(--w, 8px);
  height: calc(var(--w, 8px) * 1.6);
  background: var(--c);
  opacity: 0.95;
  animation: fall var(--d) linear var(--delay) infinite;
}

@keyframes fall {
  from { transform: translate3d(0, -20px, 0) rotate(0); }
  to   { transform: translate3d(var(--dx), 110cqh, 0) rotate(var(--r)); }
}

/* ------------------------------------------------- Collage panels */
/* Mobile and tablet: art on top, text below (nothing covers the faces).
   Desktop: the text overlays the art, like a real poster. */
.panel--tall,
.panel--small {
  display: flex;
  flex-direction: column;
}

.panel__media {
  position: relative;
  overflow: hidden;
}

.panel--tall .panel__media {
  aspect-ratio: 300 / 280;
}

/* The SVG keeps its aspect ratio and is framed from the top (halo and horns). */
.panel--tall .panel__art {
  position: absolute;
  top: -3%;
  left: -9%;
  width: 118%;
  height: auto;
}

.panel--small {
  min-height: 236px;
}

.panel--small .panel__media {
  flex: 1 1 auto;
  min-height: 118px;
}

.panel--small .panel__caption { flex: none; }

.panel--small .panel__art {
  position: absolute;
  inset: 30px 6px 4px;
  width: calc(100% - 12px);
  height: calc(100% - 34px);
}

.panel__caption {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  margin-top: -34px;
  padding: 30px 11px 12px;
  background: var(--panel-caption-bg);
}

.panel__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(21px, 5.6vw, 30px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--panel-title);
  text-shadow: 0.06em 0.06em 0 var(--c-pink-deep);
}

.panel__text {
  margin-top: 5px;
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1.3;
  color: var(--c-text-dim);
}

.panel__text b {
  color: var(--c-cyan);
  font-weight: 700;
}

.panel__defends {
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-yellow);
}

.panel__defends strong {
  color: var(--c-cream);
  font-weight: 800;
}

.panel__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 8px 2px;
  background: var(--panel-badge-bg);
  color: var(--panel-badge-text);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: 2px 2px 0 var(--c-night);
}

.panel__stat {
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  font-stretch: 105%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-cream);
}

.stars {
  display: block;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--c-yellow);
  text-shadow: 1.5px 1.5px 0 var(--c-night);
}

.stars__off { color: rgb(255 255 255 / 0.25); text-shadow: none; }

/* ----------------------------------------- SVG color classes */
.rays { fill: var(--rays); }
.halo { stroke: var(--halo); }
.f-skin-saint { fill: var(--skin-saint); }
.f-skin-saint-shade { fill: var(--skin-saint-shade); }
.s-skin-saint-shade { stroke: var(--skin-saint-shade); }
.f-beard { fill: var(--beard); }
.s-beard { stroke: var(--beard); }
.s-beard-shade { stroke: var(--beard-shade); }
.f-robe { fill: var(--robe); }
.s-robe-shade { stroke: var(--robe-shade); }
.f-sash { fill: var(--sash); }
.f-line { fill: var(--line); }
.s-line { stroke: var(--line); }

.flame-a { fill: var(--flame-a); }
.flame-b { fill: var(--flame-b); }
.f-devil { fill: var(--skin-devil); }
.s-devil { stroke: var(--skin-devil); }
.f-devil-shade { fill: var(--skin-devil-shade); }
.s-devil-shade { stroke: var(--skin-devil-shade); }
.f-horn { fill: var(--horn); }
.s-horn-shade { stroke: var(--horn-shade); }
.f-hair { fill: var(--hair-devil); }
.s-hair { stroke: var(--hair-devil); }
.f-tux { fill: var(--tux); }
.f-satin { fill: var(--tux-satin); }
.s-satin { stroke: var(--tux-satin); }
.f-shirt { fill: var(--shirt); }
.f-accent { fill: var(--accent-devil); }
.s-gold { stroke: var(--gold); }
.stop-lens-a { stop-color: var(--c-pink); }
.stop-lens-b { stop-color: var(--c-violet); }
.stop-lens-c { stop-color: var(--c-cyan); }

.f-polaroid { fill: var(--polaroid); }
.f-photo-a { fill: var(--c-cyan); }
.f-photo-b { fill: var(--c-pink); }
.f-shirt-alt { fill: var(--c-purple); }
.polaroid-text { font-family: var(--font-script); font-size: 20px; fill: var(--line); }
.s-ink { stroke: var(--c-night); }
.s-yellow { stroke: var(--c-yellow); }

.steam { fill: var(--steam); }
.f-angry { fill: var(--skin-angry); }
.f-angry-shade { fill: var(--skin-angry-shade); }

.f-yellow { fill: var(--c-yellow); }
.f-white { fill: #fff; }
.s-white { stroke: #fff; }
.f-cyan { fill: var(--c-cyan); }
.f-glass { fill: var(--glass); }
.f-glass-solid { fill: var(--glass-solid); }
.f-lime { fill: var(--lime); }
.s-lime { stroke: var(--lime-shade); }
.f-cherry { fill: var(--cherry); }
.stop-cocktail-a { stop-color: var(--c-pink); }
.stop-cocktail-b { stop-color: var(--c-orange); }
.hic { font-family: var(--font-script); font-size: 30px; fill: #fff; }

.f-moon { fill: var(--moon); }
.f-night { fill: var(--c-night); }
.f-silhouette { fill: var(--silhouette); }
.f-silhouette-light { fill: var(--silhouette-light); }
.f-evil-eye { fill: var(--evil-eye); }
.f-lens-glint { fill: var(--c-cyan); opacity: 0.8; }

/* ------------------------------------------------- Subtle animations */
.halo,
.crest__halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: float 3.2s ease-in-out infinite;
}

@keyframes float { 50% { transform: translateY(-4px); } }

.rays {
  transform-origin: 150px 130px;
  animation: spin 50s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.angry {
  transform-box: fill-box;
  transform-origin: center;
  animation: shake 3.5s ease-in-out infinite;
}

@keyframes shake {
  0%, 70%, 100% { transform: none; }
  74% { transform: translate(-2px, 1px) rotate(-1.5deg); }
  78% { transform: translate(2px, -1px) rotate(1.5deg); }
  82% { transform: translate(-2px, 0) rotate(-1deg); }
  86% { transform: translate(2px, 1px) rotate(1deg); }
}

.steam circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: vapor 2.4s ease-in-out infinite;
}

.steam circle:nth-child(2n) { animation-delay: -1.2s; }

@keyframes vapor { 50% { transform: scale(1.18) translateY(-3px); } }

.cocktail {
  transform-origin: 150px 180px;
  animation: sway 3s ease-in-out infinite;
}

@keyframes sway {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(7deg); }
}

.bubbles circle {
  animation: bubble-rise 2.6s ease-in infinite;
}

.bubbles circle:nth-child(2) { animation-delay: -0.9s; }
.bubbles circle:nth-child(3) { animation-delay: -1.7s; }

@keyframes bubble-rise {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-54px); opacity: 0; }
}

.sparkles use {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 2s ease-in-out infinite;
}

.sparkles use:nth-child(2n) { animation-delay: -1s; }

@keyframes twinkle { 50% { transform: scale(0.5) rotate(45deg); opacity: 0.6; } }

.eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: eye-blink 4s infinite;
}

.eyes--b { animation-delay: -1.7s; }

@keyframes eye-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.1); }
}

/* ------------------------------------------------------------- Footer */
.footer {
  padding: 18px 16px 30px;
  text-align: center;
  font-size: 13px;
  color: var(--c-text-dim);
}

.footer p + p { margin-top: 6px; }

.footer strong { color: var(--c-cream); }

.footer__legal {
  font-size: 11px;
  opacity: 0.75;
}

/* ============================================ Tablet: a bit more room */
@media (min-width: 700px) {
  html { --gap: 10px; }
  .panel--small { min-height: 280px; }
  .panel__title { font-size: 30px; }
  .panel__text { font-size: 14px; }
}

/* ========================= Desktop: the whole poster in one screen */
@media (min-width: 1100px) {
  html { --gap: 12px; }

  .poster {
    height: calc(100svh - var(--ticker-h));
    min-height: 720px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr) minmax(0, 1fr);
    grid-template-rows: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "soc  hero anti"
      "soc  hero anti"
      "look hero tant"
      "bend hero org";
  }

  /* The hero scales with height as well as width. */
  .hero { min-height: 0; }
  .hero__hint { display: none; }
  .hero__brand { padding-top: clamp(14px, 3svh, 40px); }
  .hero__kicker { font-size: min(4.6cqi, 2.9svh); }
  .crest { width: min(30cqi, 15svh, 180px); }
  .wordmark__awards { font-size: min(6.4cqi, 4.4svh); }
  .wordmark__main { font-size: min(18.5cqi, 15svh); }
  .wordmark__year { font-size: min(11cqi, 8svh); }
  .countdown { --num-size: min(18cqi, 14svh); }
  .gala__title { font-size: min(16cqi, 11svh); }
  .hero__sea { padding-top: min(8cqi, 6svh); padding-bottom: min(6cqi, 4.5svh); }

  .panel--tall,
  .panel--small { display: block; min-height: 0; }

  .panel--tall .panel__media,
  .panel--small .panel__media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .panel--tall .panel__art { top: 0; left: 0; width: 100%; height: 100%; }
  .panel--small .panel__art { inset: 34px 10px 46px; width: calc(100% - 20px); height: calc(100% - 80px); }

  /* Slanted cuts between panels, like a loading-screen collage. Each pair
     shares a slope so the gutter between them stays consistent. */
  .panel--socrates   { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 0 100%); }
  .panel--lookalike  { clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 calc(100% - 16px)); }
  .panel--bender     { clip-path: polygon(0 0, 100% 16px, 100% 100%, 0 100%); }
  .panel--anti       { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 16px)); }
  .panel--tantrum    { clip-path: polygon(0 0, 100% 16px, 100% calc(100% - 16px), 0 100%); }
  .panel--organizers { clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%); }
  .panel__badge { top: 24px; left: 12px; }

  .panel__caption {
    position: absolute;
    inset: auto 0 0 0;
    margin: 0;
    padding: 44px 12px 12px;
  }

  .panel--small .panel__caption { padding: 28px 12px 10px; }
  .panel__title { font-size: clamp(22px, 2.1vw, 34px); }
  .panel--small .panel__title { font-size: clamp(20px, 1.75vw, 28px); }
  .panel__text { font-size: 13px; }
}

/* ===================================================== Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .ticker__viewport { overflow-x: auto; scrollbar-width: none; }
  .digit__face.exit { display: none; }
}
