/* fonts bundled with the site (Luckiest Guy: Apache-2.0, Fredoka: OFL-1.1) */
@font-face { font-family: 'Luckiest Guy'; src: url('../vendor/fonts/luckiest-guy-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('../vendor/fonts/fredoka-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('../vendor/fonts/fredoka-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('../vendor/fonts/fredoka-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* ===================== "Movies for every year ___'s been alive" poster page ===================== */
/* this page always uses the poster background, across the whole screen, whatever theme is picked */
body[data-tab="years"]::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  --pst-navy: #121a45;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='%23fff'%3E%3Ccircle opacity='.5' cx='20' cy='30' r='1.4'/%3E%3Ccircle opacity='.35' cx='120' cy='20' r='1.1'/%3E%3Ccircle opacity='.45' cx='80' cy='110' r='1.5'/%3E%3Ccircle opacity='.3' cx='150' cy='140' r='1'/%3E%3Cpath opacity='.55' d='M60 60l1.6 4.6 4.6 1.6-4.6 1.6L60 72.4l-1.6-4.6-4.6-1.6 4.6-1.6z'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse at 10% 0%, rgba(232,52,90,.25), transparent 50%),
    radial-gradient(ellipse at 100% 40%, rgba(26,163,181,.22), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(142,68,201,.28), transparent 55%),
    var(--pst-navy);
  background-size: 160px 160px, auto, auto, auto, auto;
}
#view-years { color: #fff; background: transparent; }
.pst { position: relative; overflow: hidden; padding: calc(env(safe-area-inset-top) + 22px) 16px 40px; max-width: 1100px; margin: 0 auto; }
.pst-star { position: absolute; pointer-events: none; text-shadow: 0 0 10px currentColor; opacity: .9; }
.pst-clap { position: absolute; left: 6px; top: calc(env(safe-area-inset-top) + 8px); font-size: 40px; transform: rotate(-14deg); filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.pst-reel { position: absolute; right: 4px; top: calc(env(safe-area-inset-top) + 64px); font-size: 36px; transform: rotate(18deg); opacity: .9; }

/* big outlined title on a plaque, like the poster */
.pst-title {
  margin: 26px auto 18px; padding: 16px 12px 20px; max-width: 720px; text-align: center;
  font-family: 'Luckiest Guy', 'Fredoka', system-ui, sans-serif; font-weight: 400; text-transform: uppercase;
  line-height: .98; letter-spacing: .02em; color: #fff;
  background: linear-gradient(180deg, #1b2d73, #14205a); border: 4px solid #1aa3b5; border-radius: 26px;
  box-shadow: 0 0 0 4px #f5b301, 0 12px 30px rgba(0,0,0,.4);
  transform: rotate(-1.5deg);
}
.pst-title span { display: block; white-space: nowrap; font-size: clamp(22px, 7.4vw, 58px);
  -webkit-text-stroke: 2px #e8345a; paint-order: stroke fill;
  text-shadow: 3px 3px 0 #e8345a, 5px 5px 0 #f5b301, 7px 8px 0 rgba(0,0,0,.35); }
.pst-title span + span { margin-top: 6px; }

/* ticket stubs */
.pst-stubs { display: flex; gap: 10px; justify-content: center; margin: 6px 0 18px; flex-wrap: wrap; }
.stub {
  --c1: #ff5f86; --c2: #e8345a;
  position: relative; min-width: 140px; padding: 10px 18px 12px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); border-radius: 10px;
  font-family: 'Fredoka', system-ui, sans-serif;
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
  transform: rotate(-3deg);
}
.stub + .stub { transform: rotate(3deg); }
.stub small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; opacity: .9; }
.stub b { display: block; font-family: 'Luckiest Guy', 'Fredoka', sans-serif; font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: .02em; }
.stub b i { font-style: normal; font-size: 18px; opacity: .85; }
.stub.teal { --c1: #2ccfbf; --c2: #128a9c; }
.stub.yellow { --c1: #ffd35a; --c2: #f2a20c; color: #2a1d00; }
.stub.big b { font-size: 40px; }

/* decade tickets */
.pst-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .pst-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.ticket {
  position: relative; background: #fffdf8; color: #1b2160; border-radius: 22px; padding: 30px 18px 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  -webkit-mask: radial-gradient(circle 15px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 15px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 15px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 15px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
}
.ticket::before { content: ''; position: absolute; inset: 8px; border: 2px dashed var(--dc); border-radius: 16px; pointer-events: none; opacity: .75; }
.t-pill {
  position: relative; margin: -14px auto 12px; width: max-content; max-width: 100%;
  padding: 6px 18px; border-radius: 12px; background: var(--dc); color: #fff;
  font-family: 'Luckiest Guy', 'Fredoka', sans-serif; font-size: 22px; letter-spacing: .03em;
  box-shadow: 0 4px 0 rgba(0,0,0,.15);
}
.t-rows { position: relative; display: flex; flex-direction: column; }
.t-row {
  display: grid; grid-template-columns: 52px 16px 1fr; align-items: baseline; text-align: left;
  border: 0; background: none; padding: 5px 6px; border-radius: 10px; cursor: pointer; color: inherit; font: inherit;
}
.t-row:hover, .t-row:active { background: color-mix(in srgb, var(--dc) 10%, transparent); }
.t-year { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; font-size: 18px; color: var(--dc); }
.t-dash { color: var(--dc); font-weight: 700; }
.t-films { font-style: italic; font-weight: 600; font-size: 16px; line-height: 1.3; color: #1b2160; }
.t-film.unseen { color: #6a6f99; }
.t-film em { font-style: normal; font-weight: 600; font-size: 13px; color: #8a8fb5; }
.t-comma { color: #1b2160; }
.t-empty { font-style: normal; font-weight: 700; color: var(--dc); font-family: 'Fredoka', system-ui, sans-serif; letter-spacing: .02em; }

/* popcorn + "cinema lover" ticket at the bottom */
.pst-foot { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 26px 0 8px; }
.pst-pop { font-size: 64px; transform: rotate(-8deg); filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.pst-reel2 { font-size: 46px; transform: rotate(14deg); }
.pst-settings { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.pst-settings label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #aeb4dc; letter-spacing: .05em; text-transform: uppercase; }
.pst-settings input { width: 150px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 12px; padding: 9px 12px; }
