/* hero photo: one clean arch */
/* crop the album's own red "rosie" wordmark out of the arch photo */
.photo.p1 img { transform: scale(1.5); transform-origin: 36% 10%; object-position: 50% 0%; }
.photo.p1::after { background: linear-gradient(180deg, transparent 60%, rgba(10, 17, 38, 0.55)); mix-blend-mode: normal; }

.stage { width: min(100%, 420px); }
.p1 { inset: 0; border-radius: 999px 999px 32px 32px; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(234, 244, 251, 0.14); }




/* readable accent font: soft italic serif instead of the curly script */
:root { --script: "Fraunces", Georgia, serif; }
.kicker, .script-over, .boss .tagb, .ec.now b, .edetail .done-n, .note small, .wempty, .polaroid .cap, .ticket.next::after { font-style: italic; font-weight: 500; font-variation-settings: "SOFT" 100, "WONK" 0; letter-spacing: -0.01em; }
.kicker { font-size: clamp(18px, 2vw, 24px); margin-bottom: 10px; }
.script-over { font-size: clamp(24px, 3.4vw, 44px); transform: rotate(-2deg); margin: 14px 0 0 0.15em; text-shadow: none; }
.boss .tagb { font-size: 22px; transform: rotate(-3deg); }
.ec.now b { font-size: 28px; }
.edetail .done-n { font-size: 28px; }
.note small { font-size: 14px; }
.wempty { font-size: 22px; }
.polaroid .cap { font-size: 24px; }
.ticket.next::after { font-size: 18px; }


/* big gradient lettering: padding (offset by negative margin) gives the gradient room so glyphs aren't clipped by the tight line-height */
.hero h1 { font-size: clamp(72px, 14.5vw, 212px); }
.hero h1 .l2 { line-height: 0.95; padding: 0.1em 0.08em 0.1em 0.04em; margin: -0.1em -0.08em -0.1em -0.04em; }
.hero-grid > div:first-child { min-width: 0; }
.hero { overflow: visible; }
.tally .big { padding: 0.08em 0.06em 0.08em 0.02em; margin-top: -0.08em; margin-bottom: -0.08em; }
footer { padding-bottom: 8px; }
.mega { font-size: clamp(112px, 21vw, 320px); line-height: 1.02; padding: 0.04em 0.04em 0.06em; margin-bottom: 0; letter-spacing: -0.05em; }

.ec .tdy { position: absolute; top: 14px; right: 16px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--blush); color: #2a0818; }

.tick-cap { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-top: 10px; min-height: 1em; }

/* accolades carousel: whole cards only (4 across on desktop, fewer on smaller screens) so nothing is ever half cut off; arrows page through them */
.car-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 34px; }
.carousel { --n: 4; gap: 20px; padding: 50px 10px 30px; margin-right: 0; cursor: grab; scroll-padding-left: 10px; -webkit-mask-image: none; mask-image: none; }
.carousel .hl { flex: 0 0 calc((100% - (var(--n) - 1) * 20px) / var(--n)); min-width: 0; }
.carousel.drag { cursor: grabbing; scroll-snap-type: none; }
.icon-btn:disabled { opacity: 0.3; cursor: default; transform: none; }
@media (max-width: 1100px) { .carousel { --n: 3; } }
@media (max-width: 800px) { .carousel { --n: 2; } }
@media (max-width: 520px) { .carousel { --n: 1; } }
@media (max-width: 560px) { .car-nav .hint { font-size: 12px; } }

/* top bar: more entries, so a little tighter + wider; switches to the menu button earlier */
.nav { width: min(1240px, calc(100% - 28px)); }
.links a { padding: 9px 10px; font-size: 13.5px; }
@media (max-width: 1240px) { .links { display: none; } .menu-btn { display: grid; } .nav { width: min(900px, calc(100% - 28px)); } }
section.short { padding: 64px 0; }
.ec.empty { flex-basis: 100%; min-height: 150px; align-items: center; justify-content: center; text-align: center; cursor: default; background: transparent; border-style: dashed; }
.ec.empty b { font-family: var(--head); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; text-transform: lowercase; }
.ec.empty span { color: var(--faint); font-size: 14px; }
.ec.empty:hover { transform: none; }
.sheet { max-height: calc(100vh - 100px); overflow-y: auto; }

/* today card in Moments */
.ec.tc { background: linear-gradient(160deg, rgba(255, 159, 194, 0.12), rgba(135, 206, 235, 0.06)); border: 1.5px dashed var(--blush); cursor: default; }
.ec.tc:hover { transform: none; }
.ec.tc .tcl { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blush); font-weight: 800; }
.ec.tc .big { font-size: 64px; }
.ec.tc .tcm { color: var(--muted); font-size: 14px; margin-top: -4px; }
.ec.tc h4 { font-size: 18px; }

/* phones: the three big live numbers stack instead of sitting side by side (they are too wide once counted up) */
@media (max-width: 720px) {
  #pulse .ticks { flex-direction: column; border-bottom: 0; }
  #pulse .tick { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 0 14px; }
  #pulse .tick .v { font-size: clamp(34px, 11vw, 52px); }
}
/* belt and braces: nothing can ever make the page itself scroll sideways */
html, body { max-width: 100%; overflow-x: clip; }

/* ===== phones / touch: keep scrolling light =====
   Live blur behind panels (28 of them) and the animated full-screen grain are what make a phone's graphics chip give up when you scroll fast. */
.grain { animation: none; }                      /* the grain is static everywhere now */
@media (max-width: 900px), (hover: none) {
  .grain { display: none; }
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .nav { background: rgba(16, 28, 62, 0.94); }
  :root[data-theme="paper"] .nav { background: rgba(255, 255, 255, 0.95); }
  .modal { background: rgba(3, 7, 20, 0.86); }
  :root[data-theme="paper"] .modal { background: rgba(20, 30, 50, 0.7); }
  .modal .card { background: var(--bg2); }
  .hero h1 .l2 { filter: none; }
  .tally .big, .mega { filter: none; }
  .btn.primary, .btn.primary:hover { box-shadow: 0 8px 20px -8px rgba(135, 206, 235, 0.7); }
  .rv { will-change: auto; }
}

/* how-to-vote video: a light poster until tapped */
.vposter { position: relative; display: grid; place-items: center; align-content: center; gap: 14px; width: min(100%, 340px); margin: 0 auto; aspect-ratio: 9 / 16; max-height: 66vh; border-radius: 6px; overflow: hidden; cursor: pointer; color: #fff;
  background: radial-gradient(120% 70% at 25% 18%, rgba(135, 206, 235, 0.55), transparent 60%), radial-gradient(110% 70% at 85% 88%, rgba(255, 159, 194, 0.42), transparent 62%), linear-gradient(180deg, #14224f, #0a1126); }
.vposter .vplay { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 14px 30px -10px rgba(135, 206, 235, 0.9); transition: transform 0.35s var(--ease); }
.vposter .vplay svg { width: 34px; height: 34px; margin-left: 4px; }
.vposter:hover .vplay { transform: scale(1.08); }
.vposter .vlab { font: 800 13px Inter; letter-spacing: 0.2em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }
.polaroid video { display: block; width: 100%; max-height: 66vh; background: #000; object-fit: contain; border-radius: 3px; }

/* a goal that hit 100%: the party message in the goal popup + confetti */
.cele { margin-top: 14px; padding: 14px 16px 16px; border-radius: 22px; text-align: left; background: linear-gradient(135deg, rgba(135, 206, 235, 0.16), rgba(255, 159, 194, 0.16)); border: 1px solid var(--line); }
.cele[hidden] { display: none; }
.cele b { font-family: var(--head); font-weight: 800; letter-spacing: -0.03em; text-transform: lowercase; font-size: 18px; }
.cele p { margin: 8px 0 12px; font-size: 14px; line-height: 1.55; opacity: 0.9; user-select: all; -webkit-user-select: all; }
.cele .crow { display: flex; flex-wrap: wrap; gap: 8px; }
.modal .card .cf { position: absolute; top: -10px; border-radius: 2px; pointer-events: none; z-index: 8; animation: cf-fall var(--t, 2s) cubic-bezier(0.3, 0.6, 0.4, 1) both; }
@keyframes cf-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(var(--x, 0), 460px) rotate(var(--r, 360deg)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .modal .card .cf { display: none; } }

/* boss battle with several bosses: each gets its own fight; one shared "hit it — stream" row underneath */
.card.boss { display: block; }
.fights { display: grid; gap: 34px; }
.fight { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; }
.fight .bshare { margin-top: -6px; }
.fights.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fights.n3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.fights.n2 .fight, .fights.n3 .fight { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
.fights.n2 .bdisc, .fights.n3 .bdisc { width: clamp(140px, 13vw, 176px); }
.fights.n2 .fight h3, .fights.n3 .fight h3 { font-size: clamp(30px, 3.2vw, 46px); margin: 6px 0 14px; }
.fights.n2 .hpl, .fights.n3 .hpl { flex-direction: column; align-items: center; gap: 2px; }
.fights.n2 .bstats, .fights.n3 .bstats { justify-content: center; gap: 16px; }
.fights.n2 .bstats div b, .fights.n3 .bstats div b { font-size: 24px; }
.bcta { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); align-items: center; gap: 22px; }
.bcta .bstats { margin: 0; }
@media (max-width: 1060px) {
  .fight { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .bcta { justify-content: center; }
}
@media (max-width: 720px) { .fights.n2, .fights.n3 { grid-template-columns: 1fr; } }
.bcta { justify-content: center; }
@media (max-width: 1060px) { .card.boss .tagb { margin-bottom: 14px; } }

/* share my rank */
.rkshare { display: flex; justify-content: center; margin-top: 18px; }
.rkshare[hidden] { display: none; }
