/* ==========================================================================
   Ryan Retro: Focus cards on the purple grid
   The page is the grid from the videos (#6254A4, 2px white lines at 8%).
   grid.js picks a whole-pixel cell size for the screen and every block on
   the page spans whole cells, so edges always land on grid lines. On top
   of it everything is a /focus trading card.
   ========================================================================== */

:root {
  --lavender: #b4a7e6;
  --red: #ff0033;
  --wood-1: #d2a46e; --wood-2: #ab7a4b;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72' fill='white'%3E%3Ccircle cx='18' cy='18' r='7'/%3E%3Crect x='46' y='10' width='14' height='14' rx='3'/%3E%3Cpath d='M18 46l4 8h-8z'/%3E%3Cpath d='M53 44l2.6 5.3 5.9.9-4.3 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8-4.3-4.1 5.9-.9z'/%3E%3C/svg%3E");

  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* the grid, the light and the bar come from /static/rr/rr.css; this page's words sit on the purple */
body { color: #fff; font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lavender); color: var(--ink); }

/* ---------- the layout grid ---------- */
.wrap { position: relative; width: calc(var(--C) * var(--cell)); margin-left: var(--ox); padding-bottom: var(--cell); }
.g {
  display: grid; grid-template-columns: repeat(var(--C), var(--cell)); grid-auto-rows: minmax(var(--cell), auto);
  grid-auto-flow: row dense; margin-top: calc(var(--cell) * var(--gap, 1));
}
.snapped .g { grid-auto-rows: var(--cell); }
.g > * { grid-column: span var(--w, var(--C)); grid-row: span var(--h, 1); min-width: 0; }
.full { --w: var(--C); }
/* grid.js measures each [data-fit] block at its natural height, then rounds up to whole rows */
.fitting [data-fit] { grid-row-end: span 1 !important; align-self: start !important; height: auto !important; }
.off { display: none !important; }

.glass { background: var(--glass); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); border: 1px solid var(--glass-line); box-shadow: var(--sh-md); color: var(--ink); }
.brand { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 2px; font-size: 14.5px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--acc-soft); }
.seg a, .seg button {
  height: 30px; padding: 0 11px; border: 0; border-radius: 8px; display: flex; align-items: center; gap: 5px; background: transparent;
  font-size: 12.5px; font-weight: 800; white-space: nowrap; color: var(--ink-soft); transition: background .15s, color .15s;
}
.seg a:hover, .seg button:hover { color: var(--acc); }
.seg a.on, .seg button.on { background: var(--card); color: var(--acc); box-shadow: var(--sh-sm); }

/* ---------- section heads, as on /focus ("This week  26 Oct - 1 Nov  0/5") ---------- */
.wh { --h: 1; display: flex; align-items: center; gap: 12px; padding: 0 var(--gut); }
.wh h2 { margin: 0; font-size: clamp(19px, calc(var(--cell) * .48), 23px); font-weight: 800; letter-spacing: -.4px; white-space: nowrap; }
.wh .rng { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wh .n {
  margin-left: auto; flex: none; font-size: 12px; font-weight: 800; color: var(--ink-soft); padding: 4px 10px; border-radius: 99px;
  background: var(--card); box-shadow: var(--sh-sm); transition: color .15s; white-space: nowrap;
}
a.n:hover { color: var(--acc); }

/* ---------- the trading card (from /focus) ---------- */
.slot { position: relative; container-type: inline-size; margin: var(--gut); animation: deal .55s cubic-bezier(.2, .8, .3, 1.1) backwards; animation-delay: var(--d, 0s); }
@keyframes deal { from { transform: translateY(40px) scale(.7); opacity: 0; } }
.am {
  position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 6.5cqw; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 78%, white) 0%, var(--c) 62%, color-mix(in srgb, var(--c) 82%, black) 100%);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .35) inset, var(--sh-md); transition: transform .18s cubic-bezier(.3, .9, .35, 1.2), box-shadow .2s;
}
.am::before { content: ''; position: absolute; inset: 0; opacity: .16; pointer-events: none; background-image: var(--pattern); background-size: 34cqw 34cqw; }
a.am:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 2px 0 rgba(255, 255, 255, .35) inset, var(--sh-lg); }
.am .num { position: absolute; top: 5cqw; right: 5cqw; width: 16cqw; height: 16cqw; border-radius: 50%; background: #fff; color: var(--c); font-weight: 800; font-size: 7cqw; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); z-index: 3; }
.am .num svg { width: 8cqw; height: 8cqw; }
.am .pin { position: absolute; top: 5cqw; left: 5cqw; height: 12cqw; padding: 0 4cqw; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--c); font-weight: 800; font-size: 5.5cqw; display: flex; align-items: center; gap: 1.5cqw; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); z-index: 2; white-space: nowrap; }
.am .art { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 20cqw 8cqw 6cqw; min-height: 0; }
.am .art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5cqw; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .45), 0 0 0 2.5cqw rgba(255, 255, 255, .55); background: #fff; }
.am .art .emo { font-size: 30cqw; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .28)); }
/* a PNG stands on the card like an amiibo figure: no crop, no frame, feet over the name band */
.am .art.png { z-index: 2; padding: 0; }
.am .art.png img { position: absolute; left: 3cqw; right: 3cqw; top: 15cqw; bottom: -4cqw; width: auto; height: auto; max-width: calc(100% - 6cqw); max-height: calc(100% - 11cqw); margin: auto auto 0; aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; background: transparent; filter: drop-shadow(0 5cqw 7cqw rgba(0, 0, 0, .35)); }
.am .art.png.land img { top: 10cqw; bottom: 6cqw; margin: auto; max-height: calc(100% - 16cqw); }
.am .band { position: relative; background: color-mix(in srgb, var(--c) 60%, #1b1230); padding: 5cqw 6cqw 6cqw; min-height: 34cqw; display: flex; flex-direction: column; justify-content: center; gap: 1.5cqw; }
.am .band::before { content: ''; position: absolute; left: 0; right: 0; top: -7cqw; height: 8cqw; background: inherit; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.am .ttl { font-size: 7.6cqw; font-weight: 800; line-height: 1.15; letter-spacing: -.1px; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.am .meta { font-size: 5cqw; font-weight: 700; text-align: center; opacity: .85; display: flex; justify-content: center; gap: 3cqw; align-items: center; flex-wrap: wrap; }
.am .meta .dt { background: rgba(255, 255, 255, .18); border-radius: 99px; padding: .6cqw 3cqw; }
/* the "see all" card closing a row */
.am.all { background: rgba(255, 255, 255, .12); border: 2.5px dashed rgba(255, 255, 255, .55); box-shadow: none; align-items: center; justify-content: center; gap: 4cqw; color: #fff; }
.am.all::before { display: none; }
.am.all .plus { width: 24cqw; height: 24cqw; border-radius: 50%; border: 2.5px solid currentColor; display: grid; place-items: center; }
.am.all .plus svg { width: 11cqw; height: 11cqw; }
.am.all small { font-size: 6cqw; font-weight: 800; letter-spacing: .3px; }
a.am.all:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }

/* wide card: the same finish across several cells */
.panel { position: relative; margin: var(--gut); border-radius: 22px; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 78%, white) 0%, var(--c) 62%, color-mix(in srgb, var(--c) 82%, black) 100%);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .35) inset, var(--sh-md); }
.panel::before { content: ''; position: absolute; inset: 0; opacity: .14; pointer-events: none; background-image: var(--pattern); background-size: 110px 110px; }
.panel > * { position: relative; }
.wpin { display: inline-flex; align-self: flex-start; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--c); font-weight: 800; font-size: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); white-space: nowrap; }
a.panel { transition: transform .18s cubic-bezier(.3, .9, .35, 1.2), box-shadow .2s; }
a.panel:hover { transform: translateY(-4px); box-shadow: 0 2px 0 rgba(255, 255, 255, .35) inset, var(--sh-lg); }

/* ---------- hero: latest video ---------- */
.hero { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.hero .frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .45), 0 0 0 5px rgba(255, 255, 255, .55); flex: none; }
.hero .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hero .frame:hover img { transform: scale(1.03); }
.hero .frame .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--c); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: transform .2s; }
.hero .frame:hover .play { transform: scale(1.08); }
.hero .frame .play svg { width: 26px; height: 26px; margin-left: 3px; }
.hero .side { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-width: 0; text-align: center; padding: 8px 0; }
.hero .big { margin: 0; padding: .14em .42em .18em; border-radius: .32em; background: #fff; color: var(--c); font-size: clamp(30px, calc(var(--cell) * 1.15), 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35); }
.hero .when { font-size: clamp(18px, calc(var(--cell) * .5), 26px); font-weight: 800; letter-spacing: -.3px; opacity: .95; text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.hero .when:empty { display: none; }
.hero h2 { margin: 2px 0 0; max-width: 22ch; font-size: clamp(19px, calc(var(--cell) * .6), 32px); font-weight: 800; letter-spacing: -.5px; line-height: 1.15; text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.hero h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hero .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.hero .row a { display: inline-flex; align-items: center; gap: 8px; height: clamp(42px, calc(var(--cell) * 1.05), 54px); padding: 0 clamp(16px, calc(var(--cell) * .45), 24px); border-radius: 14px; font-size: clamp(14px, calc(var(--cell) * .33), 17px); font-weight: 800; background: rgba(255, 255, 255, .95); color: var(--c); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); transition: transform .15s; }
.hero .row a:hover { transform: translateY(-2px); }
.hero .row a.yt { background: var(--red); color: #fff; }
.hero .row svg { width: 18px; height: 18px; }

/* ---------- Jump ---------- */
.jhead { --h: 1; display: flex; align-items: center; gap: 10px; padding: 0 var(--gut); overflow-x: auto; scrollbar-width: none; }
.jhead::-webkit-scrollbar { display: none; }
.jhead .seg { background: rgba(255, 255, 255, .14); flex: none; }
.jhead .seg button { color: rgba(255, 255, 255, .8); }
.jhead .seg button:hover { color: #fff; }
.jhead .seg button.on { background: #fff; color: var(--acc); }
.jhead .get { margin-left: auto; flex: none; height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 11px; background: #fff; color: var(--acc); font-size: 12.5px; font-weight: 800; box-shadow: var(--sh-sm); }
.jhead .get:hover { color: var(--ink); }
.stage { position: relative; margin: var(--gut); border-radius: 22px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #2c2547 0%, #17132a 70%); box-shadow: var(--sh-md); outline: none; }
.stage:focus-visible { box-shadow: var(--sh-md), 0 0 0 3px #fff; }

/* shared */
.stage .v { position: absolute; inset: 0; animation: vin .3s ease; }
@keyframes vin { from { opacity: 0; } }
.stage .facts { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .62); }
.stage h3 { margin: 0; font-size: clamp(17px, calc(var(--cell) * .5), 24px); font-weight: 800; letter-spacing: -.3px; line-height: 1.15; }
.stage .desc { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.stage .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity .4s; }
.stage .fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 19, 42, .96) 0%, rgba(23, 19, 42, .78) 45%, rgba(23, 19, 42, .25) 100%), linear-gradient(0deg, rgba(23, 19, 42, .95) 0%, rgba(23, 19, 42, 0) 55%); }

/* Shelf: spines out on a plank, pulled out to show the front */
.v-shelf { display: grid; grid-template-rows: 1fr 30px; padding-top: 7%; }
.plank { background: linear-gradient(var(--wood-1) 0, var(--wood-1) 22%, var(--wood-2) 22%); }
.books { position: relative; overflow: hidden; container-type: size; }
.books .row { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; padding: 0 14px; }
.case {
  --ch: calc(var(--mm) / 190 * 92cqh);   /* real-world height, the tallest case (190mm) stands at 92% of the shelf */
  position: relative; flex: none; height: var(--ch); width: calc(var(--ch) * var(--sa)); padding: 0; border: 0; background: #222;
  border-radius: 2px; overflow: hidden; box-shadow: 1px 0 0 rgba(0, 0, 0, .35);
  transition: width .35s cubic-bezier(.3, .9, .3, 1), transform .35s cubic-bezier(.3, 1.3, .5, 1), box-shadow .35s;
}
.case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.case .front { opacity: 0; }
.case:hover:not(.out) { transform: translateY(-6px); }
.case.out { width: calc(var(--ch) * var(--ba)); transform: translateY(-10px); box-shadow: 0 12px 22px rgba(0, 0, 0, .5); z-index: 3; border-radius: 4px; }
.case.out .front { opacity: 1; }
.case.out .spine { opacity: 0; }

/* Tower: one pile of cases lying flat, titles reading normally; the browsed game beside it */
.v-tower .pilewrap { position: absolute; top: 0; bottom: 0; left: 0; width: 46%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.v-tower.narrow .pilewrap { width: 100%; }
.v-tower .pile { min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 30px 0 14px; }
.v-tower .pile::after { content: ''; flex: none; width: 70%; height: 8px; margin-top: 2px; border-radius: 50%; background: rgba(0, 0, 0, .35); filter: blur(3px); }
.tc { position: relative; flex: none; padding: 0; border: 0; background: #222; overflow: hidden; border-radius: 2px; box-shadow: 0 1px 0 rgba(0, 0, 0, .4); transition: transform .25s ease; }
.tc img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); max-width: none; }
.tc.on { transform: translateX(14%); }
.v-tower .side { position: absolute; top: 0; bottom: 0; left: 46%; right: 0; }
.v-tower .side .detail { position: absolute; inset: 0; padding: 7% 6%; display: flex; gap: 20px; align-items: flex-start; container-type: size; }
.v-tower .side .detail .box { flex: none; height: 50cqh; width: auto; max-width: 42%; object-fit: contain; object-position: left top; border-radius: 4px; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.v-tower .side .detail .words { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.v-tower .side .detail .desc { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.v-tower .side .fade { background: linear-gradient(90deg, rgba(23, 19, 42, .95) 0%, rgba(23, 19, 42, .7) 45%, rgba(23, 19, 42, .3) 100%); }

/* Case: a cart storage case, foam panel with a cutout per cart */
.v-case .shell { position: absolute; inset: 4%; border-radius: 18px; background: linear-gradient(#34333b, #222128); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 30px rgba(0, 0, 0, .45); }
.v-case .foam { position: absolute; inset: 14px; border-radius: 10px; background: #43434c radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.5px) 0 0 / 6px 6px; overflow-x: auto; overflow-y: hidden; }
.v-case .slots { display: grid; grid-auto-flow: column; height: 100%; width: max-content; padding: 8px; }
.v-case .pocket { position: relative; display: grid; place-items: center; padding: 0; border: 0; background: none; }
.v-case .pocket i { position: absolute; border-radius: 6px; background: #26262c; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .7); }
.v-case .pocket img { position: relative; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); transition: transform .2s ease; }
.v-case .pocket:hover img { transform: translateY(-6%) scale(1.04); }

/* Carousel: the browsed game's background, its box and words, the row along the bottom */
.v-car { container-type: size; }
.v-car .info { position: absolute; left: 4%; top: 7%; right: 36%; display: flex; gap: 18px; align-items: flex-start; }
.v-car .info .box { flex: none; height: 34cqh; width: auto; border-radius: 4px; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.v-car .info .words { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v-car .info .desc { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.v-car .tiles { position: absolute; left: 0; right: 0; bottom: 0; height: 40cqh; display: flex; align-items: flex-end; gap: 10px; padding: 0 4% 5%; overflow-x: auto; overflow-y: hidden; }
.bt { flex: none; height: 62%; padding: 0; border: 0; background: none; transition: height .25s ease, filter .25s, transform .2s ease; filter: brightness(.7); }
.bt img { height: 100%; width: auto; border-radius: 3px; box-shadow: 0 6px 14px rgba(0, 0, 0, .45); }
.bt:hover { filter: brightness(.92); }
.bt.on { height: 93%; filter: none; }

/* Grid: box fronts in even tiles, edge to edge */
.v-grid { display: grid; gap: 12px; align-content: start; padding: 18px; overflow-y: auto; }
.v-grid .bt { height: auto; aspect-ratio: 1; display: flex; align-items: flex-end; justify-content: center; padding: 9%; border-radius: 12px; background: rgba(255, 255, 255, .05); filter: none; transition: background .2s, transform .2s ease; }
.v-grid .bt img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.v-grid .bt:hover { background: rgba(255, 255, 255, .11); transform: translateY(-3px); }

/* List: names down one side, the browsed game on the other */
.v-list .names { position: absolute; left: 0; top: 0; bottom: 0; width: 36%; overflow-y: auto; padding: 12px 10px; background: rgba(15, 12, 30, .55); }
.v-list .names button { display: flex; width: 100%; align-items: center; gap: 8px; text-align: left; border: 0; background: none; color: rgba(255, 255, 255, .72); font-size: 13.5px; font-weight: 700; padding: 8px 12px; border-radius: 9px; white-space: nowrap; }
.v-list .names button span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.v-list .names button small { margin-left: auto; flex: none; font-size: 11px; color: rgba(255, 255, 255, .4); font-weight: 700; }
.v-list .names button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.v-list .names button.on { color: var(--ink); background: #fff; }
.v-list .names button.on small { color: var(--ink-soft); }
.v-list .detail { position: absolute; left: 36%; right: 0; top: 0; bottom: 0; padding: 5%; display: flex; gap: 20px; align-items: flex-start; container-type: size; }
.v-list .detail .box { flex: none; height: 52cqh; width: auto; border-radius: 4px; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.v-list .detail .words { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.v-list .detail .desc { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.v-list .fade { background: linear-gradient(90deg, rgba(23, 19, 42, .9) 0%, rgba(23, 19, 42, .7) 50%, rgba(23, 19, 42, .35) 100%); }

/* the box raised to face you (Tower, Case, Grid) */
.raise { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 5%; background: rgba(12, 10, 24, .84); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: vin .2s ease; cursor: pointer; }
.raise img { height: min(78%, 300px); width: auto; max-width: 50%; object-fit: contain; border-radius: 4px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); animation: tip .3s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes tip { from { transform: perspective(600px) rotateX(70deg) translateY(30%); opacity: 0; } }
.raise .words { max-width: 340px; display: flex; flex-direction: column; gap: 8px; }
.raise .desc { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- you can find me here: the brand tiles from /bio ----------
   One row of seven where the grid has the room (desktop: 7 x 4 columns); tablets wrap with the
   last row centred on whole cells; phones swipe along one row that snaps back onto the grid. */
.find { display: grid; grid-template-columns: repeat(var(--C), var(--cell)); grid-auto-rows: var(--cell); }
.fm {
  grid-column: span 4; grid-row: span 4; margin: var(--gut); border-radius: calc(var(--cell) * .5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--cell) * .28); color: #fff;
  background: var(--c); box-shadow: var(--sh-md); transition: transform .18s cubic-bezier(.3, .9, .35, 1.2), box-shadow .2s;
}
.fm:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.fm svg { width: calc(var(--cell) * 1.2); height: calc(var(--cell) * 1.2); }
.fm b { font-size: calc(var(--cell) * .44); font-weight: 800; letter-spacing: -.2px; }
.fm.yt { --c: #ec3323; }
.fm.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 6%, #fd5949 42%, #d6249f 62%, #3d5ff0 95%); }
.fm.tt, .fm.x, .fm.th { --c: #000; }
.fm.tt svg { filter: drop-shadow(-1.5px -1.5px 0 #25f4ee) drop-shadow(1.5px 1.5px 0 #fe2c55); }
.fm.bs { --c: #3b86f2; }
.fm.fb { --c: #2b63f3; }
.gm .find .fm:nth-child(5) { grid-area: 5 / 3 / span 4 / span 4; }   /* 4 + 3: the three sit centred */
.gm .find .fm:nth-child(6) { grid-area: 5 / 7 / span 4 / span 4; }
.gm .find .fm:nth-child(7) { grid-area: 5 / 11 / span 4 / span 4; }
.gl .find .fm:nth-child(6) { grid-area: 5 / 7 / span 4 / span 4; }   /* 5 + 2: the two sit centred */
.gl .find .fm:nth-child(7) { grid-area: 5 / 11 / span 4 / span 4; }
.gs .find { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: calc(var(--cell) * 4); }
.gs .find::-webkit-scrollbar { display: none; }
.gs .find .fm { flex: none; width: calc(var(--cell) * 4 - var(--gut) * 2); height: calc(var(--cell) * 4 - var(--gut) * 2); scroll-snap-align: start; scroll-margin-left: var(--gut); }

/* ---------- footer: a glass panel like the header ---------- */
.foot { margin: var(--gut); border-radius: 16px; }
.foot .in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.foot nav a:hover { color: var(--acc); }
.foot .fine { width: 100%; font-size: 11.5px; font-weight: 600; color: var(--ink-faint); }

/* ---------- placement per layout (html.gs / gm / gl / gx set by grid.js) ---------- */
/* phone portrait: 10 columns, cards 5 x 7 (the /focus 5:7 exactly) */
.slot { --w: 5; --h: 7; }
.hero { --w: 10; }
.jhead { --w: 10; }
.stage { --w: 10; --h: 13; }
.foot { --w: 10; }
.gs .jhead .get { display: none; }

/* tablets: 16 columns, cards 4 x 6 */
.gm .slot { --w: 4; --h: 6; }
.gm .hero { --w: 16; }
.gm .jhead { --w: 16; }
.gm .stage { --w: 16; --h: 11; }
.gm .foot { --w: 16; }

/* landscape phones, tablets: 20 columns */
.gl .slot { --w: 4; --h: 6; }
.gl .hero { --w: 20; flex-direction: row; }
.gl .hero .frame { width: 56%; }
.gl .jhead { --w: 20; }
.gl .stage { --w: 20; --h: 10; }
.gl .foot { --w: 20; }

/* desktop: 28 columns, seven cards a row */
.gx .slot { --w: 4; --h: 6; }
.gx .hero { --w: 28; flex-direction: row; gap: 28px; padding: 20px; }
.gx .hero .frame { width: 58%; }
.gx .jhead { --w: 28; }
.gx .stage { --w: 28; --h: 10; }
.gx .foot { --w: 28; }


/* phones: List stacks the browsed game over the names, Carousel drops to a short description */
.gs .v-list .names { top: auto; width: auto; right: 0; height: 54%; }
.gs .v-list .detail { left: 0; bottom: 54%; padding: 16px; }
.gs .v-list .detail .desc { display: none; }
.gs .v-car .info { right: 4%; }
.gs .v-car .info .desc { -webkit-line-clamp: 4; }
.gs .v-car .info .box { height: 26cqh; }
.gs .raise { flex-direction: column; justify-content: center; text-align: center; }
.gs .raise img { max-width: 70%; height: 46%; }

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

/* carts and discs (Carousel): no box shadow, a soft drop shadow on the shape itself */
.v-car .info .box.media { border-radius: 0; box-shadow: none; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .55)); }
.bt.media img { border-radius: 0; box-shadow: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }

/* wide boxes (SNES, N64) never crowd out the words beside them */
.v-car .info .box, .v-list .detail .box { max-width: 42%; object-fit: contain; object-position: left top; }
.gs .jhead .seg button { padding: 0 9px; }

/* Jump: the rows, pile, foam and lists scroll with a thin visible bar */
.stage * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .4) rgba(255, 255, 255, .06); }
.stage ::-webkit-scrollbar { width: 8px; height: 8px; }
.stage ::-webkit-scrollbar-track { background: rgba(255, 255, 255, .06); border-radius: 99px; }
.stage ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .4); border-radius: 99px; }
.stage ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .6); }
