/* New releases: the 3D release calendar (/releases/) and one page per product (/releases/<slug>/), both written by
   tools/make_releases.py from src/data/releases.json. With pages.css. Motion lives in releases.js. */

/* ---------- the calendar ---------- */
.rc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(28px, 4vw, 56px); align-items: start; }
.rc-stage { perspective: 1700px; perspective-origin: 50% 20%; padding: 26px 0 40px; }
.rc-cal { --rx: 14deg; --ry: -6deg; position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease-out); }
.rc-sheet { position: relative; transform-style: preserve-3d; transform-origin: 50% 0; padding: 34px clamp(14px, 2.4vw, 26px) clamp(16px, 2.4vw, 26px); border-radius: 18px;
  background: linear-gradient(160deg, var(--stock-3), var(--stock-2) 55%, var(--stock)); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, .7), 0 2px 0 var(--line-2) inset; }
.rc-sheet::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 70% at var(--gx, 30%) var(--gy, 0%), rgba(22, 167, 184, .14), transparent 60%); }
.rc-rings { position: absolute; left: 8%; right: 8%; top: -12px; display: flex; justify-content: space-between; transform: translateZ(14px); pointer-events: none; }
.rc-rings i { width: 10px; height: 30px; border-radius: 6px; background: linear-gradient(90deg, #6d757b, #e6eaec 45%, #868e94); box-shadow: 0 6px 10px rgba(0, 0, 0, .45); }
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; transform: translateZ(10px); }
.rc-month { font: 700 clamp(1.5rem, 3.2vw, 2.4rem)/1 var(--display); letter-spacing: -.01em; }
.rc-month small { display: block; margin-top: 6px; font: 800 .66rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }
.rc-nav { display: flex; gap: 8px; }
.rc-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--stock-2); color: var(--ink); font: 700 1.1rem/1 var(--sans); cursor: pointer; transition: border-color .15s, transform .15s var(--ease); }
.rc-nav button:hover:not(:disabled) { border-color: var(--teal); transform: translateY(-1px); }
.rc-nav button:disabled { opacity: .35; cursor: default; }
.rc-wk, .rc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(4px, .8vw, 9px); }
.rc-wk { margin-bottom: 8px; font: 800 .62rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.rc-grid { transform-style: preserve-3d; }
.rc-day { position: relative; aspect-ratio: 1 / 1.08; border-radius: 10px; background: var(--stock-2); box-shadow: 0 0 0 1px var(--line), 0 3px 0 var(--stock-4);
  transform-style: preserve-3d; transition: transform .35s var(--ease-out), box-shadow .35s; font: 700 clamp(.7rem, 1.3vw, .9rem)/1 var(--sans); color: var(--ink-3); }
.rc-day > span.n { position: absolute; left: 8px; top: 8px; z-index: 2; }
.rc-day--out { opacity: .28; }
.rc-day--today { box-shadow: 0 0 0 2px var(--teal), 0 3px 0 var(--stock-4); color: var(--ink); }
a.rc-day { display: block; color: var(--white); text-decoration: none; transform: translateZ(22px); overflow: hidden; background: #0b1114;
  box-shadow: 0 0 0 1px rgba(22, 167, 184, .7), 0 14px 22px -8px rgba(0, 0, 0, .8), 0 0 26px -6px rgba(22, 167, 184, .55); }
a.rc-day img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .5s var(--ease-out), opacity .3s; }
a.rc-day::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 11, 13, .55), transparent 40%, rgba(8, 11, 13, .85)); }
a.rc-day > span.n { text-shadow: 0 1px 2px #000; }
a.rc-day .t { position: absolute; left: 7px; right: 7px; bottom: 7px; z-index: 2; font: 800 clamp(.5rem, .85vw, .64rem)/1.15 var(--sans); letter-spacing: .04em; text-transform: uppercase;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.rc-day .many { position: absolute; right: 7px; top: 7px; z-index: 2; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--teal); color: #041014; font: 800 .65rem/20px var(--sans); text-align: center; }
a.rc-day:hover, a.rc-day:focus-visible { transform: translateZ(46px) scale(1.06); box-shadow: 0 0 0 2px var(--teal), 0 26px 34px -10px rgba(0, 0, 0, .85), 0 0 40px -4px rgba(22, 167, 184, .8); z-index: 3; }
a.rc-day:hover img, a.rc-day:focus-visible img { transform: scale(1.12); opacity: 1; }
/* a day with more than one release: the boxes split the tile, and a press opens the chooser */
button.rc-day--multi { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; color: var(--white); text-align: left; transform: translateZ(22px); overflow: hidden; background: #0b1114;
  box-shadow: 0 0 0 1px rgba(22, 167, 184, .7), 0 14px 22px -8px rgba(0, 0, 0, .8), 0 0 26px -6px rgba(22, 167, 184, .55); }
button.rc-day--multi::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 11, 13, .55), transparent 40%, rgba(8, 11, 13, .85)); }
button.rc-day--multi img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: transform .5s var(--ease-out), opacity .3s; }
.rc-split2 .p0 { clip-path: polygon(0 0, 100% 0, 0 100%); }
.rc-split2 .p1 { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.rc-split3 .p0 { clip-path: polygon(0 0, 60% 0, 0 60%); }
.rc-split3 .p1 { clip-path: polygon(60% 0, 100% 0, 100% 40%, 40% 100%, 0 100%, 0 60%); }
.rc-split3 .p2 { clip-path: polygon(100% 40%, 100% 100%, 40% 100%); }
button.rc-day--multi::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(22, 167, 184, .9) 50%, transparent calc(50% + 1px)); }
.rc-split3::after { display: none; }
button.rc-day--multi > span.n { text-shadow: 0 1px 2px #000; }
button.rc-day--multi:hover, button.rc-day--multi:focus-visible, button.rc-day--multi.is-hot, a.rc-day.is-hot { transform: translateZ(46px) scale(1.06); box-shadow: 0 0 0 2px var(--teal), 0 26px 34px -10px rgba(0, 0, 0, .85), 0 0 40px -4px rgba(22, 167, 184, .8); z-index: 3; }
button.rc-day--multi:hover img { transform: scale(1.1); opacity: 1; }
.rc-stage { position: relative; }
.rc-pick { position: absolute; z-index: 20; left: 50%; top: 50%; width: min(440px, calc(100% - 16px)); padding: 18px; border-radius: 18px; background: rgba(13, 18, 21, .95); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(22, 167, 184, .6), 0 40px 80px -20px #000, 0 0 60px -20px rgba(22, 167, 184, .7); color: #F2F4F3;
  transform: translate(-50%, -46%) scale(.94); opacity: 0; transition: transform .35s var(--ease-out), opacity .25s; }
.rc-pick.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.rc-pick__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rc-pick__head p { font: 700 1.35rem/1.1 var(--display); }
.rc-pick__head small { display: block; margin-bottom: 6px; font: 800 .62rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }
.rc-pick__x { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px solid rgba(174, 182, 188, .5); background: none; color: inherit; font: 400 1.5rem/1 var(--sans); cursor: pointer; }
.rc-pick__x:hover { border-color: var(--teal); }
.rc-pick__list { display: grid; gap: 10px; }
.rc-pick__card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 14px; text-decoration: none; color: inherit; background: rgba(29, 36, 40, .85);
  box-shadow: 0 0 0 1px rgba(174, 182, 188, .2); transition: transform .2s var(--ease), box-shadow .2s; }
.rc-pick__card:hover, .rc-pick__card:focus-visible { transform: translateX(4px); box-shadow: 0 0 0 2px var(--teal); outline: none; }
.rc-pick__card img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.rc-pick__card b { display: block; font: 700 1.05rem/1.2 var(--display); }
.rc-pick__card span span { display: block; margin-top: 5px; font-size: .8rem; color: #AEB6BC; }
.rc-pick__card em { display: block; margin-top: 8px; font: 800 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--teal); }
.rc-sheet.is-out { animation: rc-out .38s var(--ease) forwards; }
.rc-sheet.is-in { animation: rc-in .5s var(--ease-out); }
.rc-sheet.is-out.back { animation-name: rc-out-b; }
.rc-sheet.is-in.back { animation-name: rc-in-b; }
@keyframes rc-out { to { transform: rotateX(78deg) translateZ(20px); opacity: 0; } }
@keyframes rc-in { from { transform: rotateX(-40deg) translateY(30px); opacity: 0; } }
@keyframes rc-out-b { to { transform: rotateX(-40deg) translateY(30px); opacity: 0; } }
@keyframes rc-in-b { from { transform: rotateX(78deg) translateZ(20px); opacity: 0; } }
.rc-legend { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .82rem; color: var(--ink-3); transform: translateZ(6px); }
.rc-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 3px; vertical-align: -1px; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

/* the list beside the calendar: every release, newest first */
.rc-side h2 { font: 800 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin: 26px 0 14px; }
.rc-list { display: grid; gap: 12px; }
.rc-item { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 14px; text-decoration: none; color: inherit;
  background: var(--stock-2); box-shadow: 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.rc-item:hover, .rc-item.is-hot { transform: translateX(4px); box-shadow: 0 0 0 1.5px var(--teal), 0 10px 24px -14px rgba(22, 167, 184, .8); }
.rc-item img { width: 74px; height: 74px; object-fit: cover; border-radius: 9px; background: #0b1114; }
.rc-item b { display: block; font: 700 1rem/1.2 var(--display); }
.rc-item span { display: block; margin-top: 5px; font-size: .78rem; color: var(--ink-3); }
.rc-item em { font-style: normal; color: var(--teal); font-weight: 700; }

/* ---------- a release's page ---------- */
.rl-kick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rl-kick span { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); font: 800 .64rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.rl-kick span.on { border-color: var(--teal); color: var(--teal); }
.rl-theater { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 18px; margin-top: clamp(10px, 2vw, 20px); }
.rl-screen { position: relative; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -40px rgba(22, 167, 184, .55), 0 30px 60px -30px #000; }
.rl-screen video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.rl-chap { display: flex; flex-direction: column; border-radius: 16px; background: var(--stock-2); box-shadow: 0 0 0 1px var(--line); overflow: hidden; max-height: min(100%, 520px); }
.rl-chap h2 { padding: 16px 16px 10px; font: 800 .66rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.rl-chap ol { list-style: none; margin: 0; padding: 0 8px 8px; overflow-y: auto; }
.rl-chap button { width: 100%; display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: baseline; padding: 10px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); text-align: left; font: 600 .88rem/1.3 var(--sans); cursor: pointer; transition: background .15s, color .15s; }
.rl-chap button span { font: 700 .74rem/1 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rl-chap button:hover { background: var(--stock-3); color: var(--ink); }
.rl-chap button[aria-current="true"] { background: rgba(22, 167, 184, .14); color: var(--ink); }
.rl-chap button[aria-current="true"] span { color: var(--teal); }
.rl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; margin: clamp(36px, 5vw, 60px) 0; border-radius: 16px; overflow: hidden; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.rl-stats div { padding: 22px 20px; background: var(--stock-2); }
.rl-stats b { display: block; font: 700 clamp(1.7rem, 3.4vw, 2.6rem)/1 var(--display); color: var(--ink); }
.rl-stats span { display: block; margin-top: 8px; font-size: .82rem; color: var(--ink-3); }
.rl-jump { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin-bottom: 10px; background: linear-gradient(var(--stock) 70%, transparent); scrollbar-width: none; }
.rl-jump a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--stock-2); box-shadow: 0 0 0 1px var(--line); font: 700 .78rem/1 var(--sans); text-decoration: none; color: var(--ink-2); }
.rl-jump a:hover, .rl-jump a.on { color: var(--ink); box-shadow: 0 0 0 1.5px var(--teal); }
.rl-sec { scroll-margin-top: 70px; padding-top: clamp(34px, 5vw, 60px); }
.rl-sec > h2 { font: 700 clamp(1.6rem, 3vw, 2.3rem)/1.1 var(--display); margin-bottom: .55em; }
.rl-sec > p { max-width: 44em; font-size: 1.04rem; line-height: 1.7; color: var(--ink-2); }
.rl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.rl-card { padding: 20px; border-radius: 14px; background: var(--stock-2); box-shadow: 0 0 0 1px var(--line); }
.rl-card h3 { font: 700 1.2rem/1.2 var(--display); }
.rl-card p { margin-top: 8px; font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.rl-card .k { display: block; margin-top: 12px; font: 800 .62rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.rl-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.rl-tw { overflow-x: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.rl-table th, .rl-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.rl-table thead th { background: var(--stock-3); font: 800 .64rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.rl-table tbody tr:hover { background: var(--stock-2); }
.rl-table td:first-child { font-weight: 700; color: var(--ink); }
.rl-table td { color: var(--ink-2); }
.rl-names { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rl-names span { padding: 8px 13px; border-radius: 999px; background: var(--stock-3); font-size: .86rem; }
.rl-chase { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.rl-chase article { position: relative; padding: 24px; border-radius: 16px; overflow: hidden; background: linear-gradient(150deg, rgba(22, 167, 184, .18), var(--stock-2) 60%); box-shadow: 0 0 0 1px rgba(22, 167, 184, .45); }
.rl-chase h3 { font: 700 1.25rem/1.2 var(--display); }
.rl-chase p { margin-top: 10px; line-height: 1.55; color: var(--ink-2); }
.rl-verdict { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: 20px; background: var(--stock-2); box-shadow: 0 0 0 1px var(--line); }
.rl-dial { --p: 0; position: relative; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--teal) calc(var(--p) * 1%), var(--stock-4) 0); display: grid; place-items: center; }
.rl-dial::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--stock-2); }
.rl-dial b { position: relative; font: 700 clamp(2.4rem, 5vw, 3.4rem)/1 var(--display); }
.rl-dial b small { display: block; margin-top: 4px; text-align: center; font: 800 .62rem/1 var(--sans); letter-spacing: .2em; color: var(--ink-3); }
.rl-bars { display: grid; gap: 14px; }
.rl-bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 46px; gap: 12px; align-items: center; font-size: .92rem; }
.rl-bar i { position: relative; height: 8px; border-radius: 4px; background: var(--stock-4); overflow: hidden; }
.rl-bar i::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 10%); border-radius: inherit; background: linear-gradient(90deg, #0e7d8a, var(--teal)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s var(--ease-out); }
.rl-verdict.is-seen .rl-bar i::after { transform: scaleX(1); }
.rl-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.rl-rip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 18px; }
.rl-rip div { padding: 18px 20px; border-radius: 14px; background: var(--stock-3); line-height: 1.55; color: var(--ink-2); }
.rl-rip b { display: block; margin-bottom: 6px; font: 800 .66rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.rl-rip div + div b { color: var(--ink-3); }
.rl-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: clamp(16px, 2vw, 26px); perspective: 1000px; }
.rl-gal figure { margin: 0; }
.rl-gal .tilt { display: block; border-radius: 12px; overflow: hidden; transform-style: preserve-3d; transition: transform .25s var(--ease-out), box-shadow .25s; box-shadow: 0 0 0 1px var(--line-2), 0 18px 30px -18px #000; background: #0b1114; }
.rl-gal .tilt:hover { box-shadow: 0 0 0 1px var(--teal), 0 30px 50px -20px #000; }
.rl-gal img { display: block; width: 100%; height: auto; }
.rl-gal figcaption { margin-top: 10px; font-size: .82rem; line-height: 1.45; color: var(--ink-3); }
.rl-src { border-top: 1px solid var(--line-2); }
.rl-src li { padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: .92rem; color: var(--ink-2); overflow-wrap: anywhere; }
.rl-src a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.rl-note { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--ink-4); background: var(--stock-2); border-radius: 0 12px 12px 0; font-size: .9rem; line-height: 1.55; color: var(--ink-3); }
.rl-note ul { margin: 8px 0 0; padding-left: 1.1em; }
.rl-more { margin-top: clamp(40px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 980px) {
  .rc { grid-template-columns: minmax(0, 1fr); }
  .rl-theater { grid-template-columns: minmax(0, 1fr); }
  .rl-chap { max-height: 300px; }
}
@media (max-width: 640px) {
  .rc-cal { --rx: 8deg; --ry: 0deg; }
  a.rc-day .t, button.rc-day--multi .t { display: none; }
  button.rc-day--multi .many { min-width: 16px; height: 16px; right: 4px; top: 4px; padding: 0 3px; font-size: .55rem; line-height: 16px; }
  button.rc-day--multi > span.n { left: 5px; top: 5px; }
  .rl-verdict { grid-template-columns: minmax(0, 1fr); }
  .rl-dial { width: 170px; margin: 0 auto; }
  .rl-bar { grid-template-columns: 90px minmax(0, 1fr) 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-cal, .rc-day, a.rc-day img, .rl-gal .tilt { transition: none; }
  .rc-sheet.is-out, .rc-sheet.is-in { animation: none; }
  .rc-pick, button.rc-day--multi img { transition: none; }
  .rl-bar i::after { transition: none; }
}
