/* Blazing Games — the PS5 browser site. Values are the Blazing contract
   "ONE LIGHT" (roku channels/DESIGN-V2.md sections 2.1-2.8 and 5).
   1rem = 16px at 1920x1080. The whole stage scales with the viewport, so a
   1280x720 browser shows the same layout at 2/3 size and nothing scrolls. */

@font-face { font-family: 'Barlow'; src: url('fonts/Barlow-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('fonts/Barlow-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('fonts/Barlow-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('fonts/Barlow-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0A0A0B;
  --surface: #0E0A0C;
  --surfaceHi: #171012;
  --line: rgba(255, 61, 71, 0.2);
  --textHi: #FFFFFF;
  --text: rgba(255, 255, 255, 0.8);
  --textDim: rgba(255, 255, 255, 0.6);
  --accent: #FF3D47;
  --focusFill: rgba(255, 61, 71, 0.78);
  --good: #4CD48A;
  --warn: #FFB84D;
  --plate: rgba(10, 10, 11, 0.88);      /* bg at 88%: a badge over artwork */
  --ease-focus: cubic-bezier(0.215, 0.61, 0.355, 1);   /* 2.6: cards, 250ms */
  --ease-settle: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 2.7 SETTLE: outQuad, 140ms (and PANEL 200ms, DWELL_UP 180ms) */
  --ease-glide: cubic-bezier(0.22, 1, 0.36, 1);        /* 2.7 GLIDE: outQuint, 300ms (and DWELL 900ms) */
  --radius: 1rem;          /* 16 */
  --halo: 0 0 0 0.375rem var(--accent); /* 6 */
  --css-build: css1027h;   /* app.js puts this in the layout beacon: it proves which app.css the PS5 ran */
  color-scheme: dark;
}

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

html {
  /* 1920 wide = 120rem, 1080 tall = 67.5rem. min() keeps both in view. */
  font-size: min(calc(100vw / 120), calc(100vh / 67.5));
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.625rem;     /* BODY 26 */
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; margin: 0; }
h1, h2, p { margin: 0; }

/* The 1920x1080 stage. Gutter 90, top 24, nothing readable below 1010. */
#app {
  position: relative;
  width: 120rem;
  height: 67.5rem;
  margin: 0 auto;
  overflow: hidden;
}
.screen {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  padding: 1.5rem 5.625rem 4.375rem;   /* 24 / 90 / 70 (1080 - 1010) */
  display: flex;
  flex-direction: column;
}
/* 2.7 ARRIVE: a full-screen bg plate fades 1 -> 0 over the new screen. A dip
   to black, never a slide. Only the plate animates; the screen under it does
   not have to be composited as one layer. */
.screen.arrive::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 10;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  animation: arrive 220ms linear;
}
@keyframes arrive { from { opacity: 1; } to { opacity: 0; } }
.boot { padding: 1.5rem 5.625rem; color: var(--textDim); font-size: 1.375rem; font-weight: 500; }

/* ------------------------------------------------------------ type, five sizes */
.display { font-size: 4.875rem; font-weight: 700; line-height: 1.2; color: var(--textHi); }
.head    { font-size: 2.5rem;   font-weight: 600; line-height: 1.2; color: var(--textHi); }
.body    { font-size: 1.625rem; font-weight: 400; line-height: 1.75; }
.meta    { font-size: 1.375rem; font-weight: 500; line-height: 1.35; }
.whisper { font-size: 1.125rem; font-weight: 400; line-height: 1.35; color: var(--textDim); }
.multi   { line-height: 1.75; }
.dim     { color: var(--textDim); }
.good    { color: var(--good); }
.warn    { color: var(--warn); }
.accent  { color: var(--accent); }
.one, .sys-label, .sys-count > *, .g-title, .g-cap, .titleblock .head, .titleblock .meta,
.t-name, .src-name, .src-cap, .f-status, .onway-box, .st-meta, .st-crumb, .dl-name, .dl-sys, .dl-state {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------ controls */
.btn, .chip, .tile, .src {
  position: relative;
  cursor: pointer;
  outline: none;
  color: var(--textHi);
  border-radius: var(--radius);
  border: 0.125rem solid var(--line);
  -webkit-tap-highlight-color: transparent;
  transition: background-color 140ms var(--ease-settle), box-shadow 140ms var(--ease-settle),
    color 140ms var(--ease-settle), border-color 140ms var(--ease-settle);
}
/* Focus is the cursor. One look everywhere: the red fill and the 6px halo. */
.btn:focus, .chip:focus, .tile:focus, .src:focus {
  background: var(--focusFill);
  border-color: var(--accent);
  box-shadow: var(--halo);
  color: #FFFFFF;
  z-index: 2;
}
.tile:focus .dim, .tile:focus .good, .tile:focus .accent, .tile:focus .warn, .tile:focus .g-cap,
.src:focus .src-cap { color: #FFFFFF; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;                     /* 64 */
  padding: 0 1.5rem;
  background: var(--surfaceHi);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.btn.small { font-size: 1.375rem; font-weight: 500; }
.btn.go { border-color: var(--accent); }
.btn:disabled { background: transparent; color: var(--textDim); cursor: default; }

/* Tiles are cards (2.6): 250ms outCubic, not SETTLE. */
.tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-width: 0;
  padding: 0 1.5rem;
  text-align: left;
  background: var(--surface);
  overflow: hidden;
  transition-duration: 250ms;
  transition-timing-function: var(--ease-focus);
}
.tile.onway { border-color: var(--accent); }

.search { display: flex; align-items: center; gap: 1rem; flex: none; }
.search-input {
  width: 35rem;                         /* 560 */
  height: 4rem;
  padding: 0 1.5rem;
  border-radius: var(--radius);
  border: 0.1875rem solid var(--line);
  background: var(--surface);
  color: var(--textHi);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.2;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow 140ms var(--ease-settle), border-color 140ms var(--ease-settle);
}
.search-input::placeholder { color: var(--textDim); opacity: 1; }
.search-input::-webkit-search-cancel-button, .search-input::-webkit-search-decoration { -webkit-appearance: none; }
.search-input:focus { border-color: var(--accent); box-shadow: var(--halo); }
.search-input:not([readonly]) { background: var(--surfaceHi); }

/* ------------------------------------------------------------ shared rows */
.toprow { flex: none; display: flex; align-items: center; gap: 1.5rem; height: 5rem; }
.back { flex: none; min-width: 10rem; }
.titleblock { flex: 1 1 auto; min-width: 0; }
.titleblock .meta { color: var(--textDim); }

.pager { flex: none; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.5rem; }
.pager .btn { min-height: 4.5rem; min-width: 15rem; }  /* 72 tall */
.pager-mid { flex: 1 1 auto; min-width: 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pager-label { color: var(--textHi); font-variant-numeric: tabular-nums; }

.msg { color: var(--text); line-height: 1.75; }
.panel { border-radius: var(--radius); background: var(--surface); border: 0.125rem solid var(--line); padding: 2rem; }
.loading { margin-top: 3rem; }
.problem { margin-top: 3rem; max-width: 90rem; }
.actions { display: flex; gap: 1.5rem; margin-top: 0.75rem; }

/* ------------------------------------------------------------ HOME */
.home-head { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; min-height: 5rem; }
.wordmark { font-size: 2.5rem; font-weight: 700; line-height: 1.2; color: var(--textHi); }
.home-state { min-width: 0; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.home-onway { color: var(--text); max-width: 70rem; }
.home-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 4rem; margin: 2rem 0 1.5rem; }
.sect { display: flex; flex-direction: column; gap: 3rem; min-height: 0; }
.sect.fill { flex: 1 1 auto; }
.sysgrid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows, 1), minmax(0, var(--tile-h, 6rem)));
  align-content: start;
  gap: 1.5rem;
}
.sysgrid.big { --tile-h: 12rem; }     /* 192: consoles, the systems you shop */
/* Retro is 96 tall and named at BODY; consoles are named at HEAD and step down
   to BODY as one grid when a name does not fit. */
.sys { justify-content: space-between; padding: 1rem 1.5rem; }
.big .sys { padding: 1.25rem 1.5rem; }
.sys-label { font-size: 1.625rem; font-weight: 600; line-height: 1.2; }
.big .sys-label { font-size: 2.5rem; }
.big .sys-label.step { font-size: 1.625rem; }
.sys-count { display: flex; flex-direction: column; font-size: 1.375rem; font-weight: 500; line-height: 1.35; font-variant-numeric: tabular-nums; }
/* Two rows of consoles (more than 8; 13 since the Redump disc shelves). The
   786 px body holds them only with tighter gaps and 128 px tiles: a BODY name,
   two META counts and 16 px padding is 123 px. The names step down together. */
.home.dense .home-body { gap: 2rem; }
.home.dense .sect { gap: 1.5rem; }
.home.dense .sysgrid.big { --tile-h: 8rem; gap: 1rem 1.5rem; }
.home.dense .big .sys { padding: 1rem 1.5rem; }
/* BLZ-0088 v3: a system's logo, top right of its tile (a white mark; the name stays, so a missing logo costs nothing).
   The All games strip leads the screen: one wide tile, logo left, its counts, what it is for on the right. */
.tile.sys { position: relative; }
/* The logo sits top right (retro: right, middle), small, and the name keeps clear of it. A tile whose name would still
   be cut drops its logo (app.js fitLogos): the name always wins. */
.sys-logo { position: absolute; top: 50%; right: 1rem; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; object-fit: contain; opacity: 0.8; pointer-events: none; }
.big .sys-logo { top: 1rem; right: 1rem; transform: none; width: 2.75rem; height: 2.75rem; }
.home.dense .big .sys-logo { top: 0.75rem; right: 0.75rem; width: 2.25rem; height: 2.25rem; }
.tile.has-logo .sys-label { padding-right: 3.25rem; }
.home.dense .big .tile.has-logo .sys-label { padding-right: 2.5rem; }
.tile:focus .sys-logo { opacity: 1; }
.home.with-all .home-head { align-items: center; }
.home.with-all .wordmark { flex: none; white-space: nowrap; }
.home-head.has-mine .all-tile .all-cta { display: none; }   /* room for My games beside it */
.mine-tile { flex: none; height: 5.5rem; padding: 0.75rem 1.5rem; justify-content: center; }
.mine-tile .sys-label { font-size: 1.625rem; }
.tag.own.mine { color: var(--accent); }
.all-tile { flex: 1 1 auto; min-width: 0; max-width: 64rem; flex-direction: row; align-items: center; justify-content: flex-start; gap: 1.5rem; height: 5.5rem; padding: 0 1.5rem; }
.all-tile .sys-logo { position: static; transform: none; width: 3.5rem; height: 3.5rem; flex: none; }
.all-tile .all-text { display: flex; flex-direction: column; min-width: 0; }
.all-tile .sys-label { font-size: 1.625rem; padding-right: 0; }
.all-tile .sys-count { flex-direction: row; gap: 1.5rem; }
.all-tile .all-cta { margin-left: auto; flex: none; font-size: 1.375rem; font-weight: 600; color: var(--accent); }
.all-tile:focus .all-cta { color: #FFFFFF; }
.home-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4rem; }
.home-foot .whisper { margin-left: auto; }

/* ------------------------------------------------------------ SHELF */
.az { flex: none; display: flex; gap: 0.25rem; margin-top: 1rem; }
.chip {
  flex: 1 1 0;
  min-width: 3.5rem;                    /* 56 */
  height: 4rem;                         /* 64 */
  padding: 0;
  background: var(--surface);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1;
}
.chip.all { flex: 0 0 6rem; }
.chip.on { border-color: var(--accent); box-shadow: inset 0 0 0 0.0625rem var(--accent); color: var(--accent); }
.chip.on:focus { box-shadow: var(--halo); color: #FFFFFF; }

/* Shelves with no artwork (retro): a quiet 4 x 6 list of names. */
.grid {
  flex: none;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(6, 6rem);  /* 96 */
  gap: 1rem 1.5rem;
  height: 41rem;                        /* 6x96 + 5x16 = 656 */
}
.grid .tile { border-color: transparent; }
.grid .tile.onway, .grid .tile:focus { border-color: var(--accent); }
.grid-msg { grid-column: 1 / -1; grid-row: 1 / span 2; align-self: center; }
.tile.game { gap: 0.25rem; }
.g-title { font-size: 1.625rem; font-weight: 600; line-height: 1.3; }
.g-cap { font-size: 1.375rem; font-weight: 500; line-height: 1.3; color: var(--textDim); }

/* ------------------------------------------------------------ THE STAGE (catalog shelves, BLZ-0067)
   Spectrum Library's layout in Blazing colours (Markus, 27 Sep 2026, option
   A): the focused game's picture full-bleed, its name top left, one row of
   square cards near the bottom, the tools top right, a legend and a count.
   Every layer is positioned on the 1920 x 1080 stage; nothing here flows. */
.screen.stage { padding: 0; display: block; background: var(--bg); }

/* The picture. Two layers cross-fade on GLIDE (2.7); each paints its art as a
   background, the path the PS5 has proven it draws (see .face). Over it: a
   flat 10% knock-back that LIFTS when focus rests (2.7.1, the picture gets
   brighter as the room settles), and the alpha-ramp scrims (2.9: PNGs on a
   t^1.6 curve, scripts/make-scrims.mjs, never stacked rectangles). A game with
   no wide art shows its own card art large under a heavier wash (.soft); a
   game with no art at all shows the ground. No blur (5). */
.hero { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; overflow: hidden; background: var(--bg); }
.hero-art {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background-position: 50% 30%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 300ms var(--ease-glide);
}
.hero-art.on { opacity: 1; }
.hero-art.cut { transition: none; }
.hero-soft, .hero-wash { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.hero-soft { background: var(--bg); opacity: 0; transition: opacity 300ms var(--ease-glide); }
.hero.soft .hero-soft { opacity: 0.55; }
.hero-wash { background: #000; opacity: 0.1; transition: opacity 180ms var(--ease-settle); }
.stage.rested .hero-wash { opacity: 0; transition: opacity 900ms var(--ease-glide); }
.scrim-left { position: absolute; top: 0; bottom: 0; left: 0; width: 80rem; background: url('ui/scrim-left.png') 0 0 / 100% 100% no-repeat; }
.scrim-head { position: absolute; top: 0; left: 0; width: 120rem; height: 42rem; background: url('ui/scrim-head.png') 0 0 / 100% 100% no-repeat; }
.scrim-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 32.5rem; background: url('ui/scrim-bottom.png') 0 0 / 100% 100% no-repeat; }
.scrim-top { position: absolute; left: 0; right: 0; top: 0; height: 12rem; background: url('ui/scrim-bottom.png') 0 0 / 100% 100% no-repeat; transform: scaleY(-1); opacity: 0.6; }

/* Top: where you are on the left, the tools on the right. Slim pills, META 22. */
.st-top { position: absolute; z-index: 3; top: 1.5rem; left: 5.625rem; right: 5.625rem; height: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.st-crumb { min-width: 0; font-size: 1.375rem; font-weight: 600; line-height: 1.35; letter-spacing: 0.08em; text-transform: uppercase; color: var(--textHi); }
.st-crumb .brand { color: var(--textDim); }
.st-crumb .sep { color: var(--textDim); margin: 0 0.75rem; }
.st-tools { flex: none; display: flex; align-items: center; gap: 1rem; }
.search.pill .search-input {
  width: 25rem;                         /* 400 */
  height: 3.5rem;                       /* 56 */
  padding: 0 1.25rem;
  background: var(--plate);
  border-width: 0.125rem;
  font-size: 1.375rem;
  font-weight: 500;
}
.search.pill .search-input:not([readonly]) { background: var(--surfaceHi); }
.btn.slim { min-height: 3.5rem; padding: 0 1.25rem; gap: 0.75rem; background: var(--plate); font-size: 1.375rem; font-weight: 600; }
.btn.slim .val { color: var(--textDim); font-weight: 500; font-variant-numeric: tabular-nums; }
.btn.slim .val:empty { display: none; }
.btn.slim:focus .val { color: #FFFFFF; }

/* The focused game, top left on the 1230 hero width (3.2). DISPLAY 78, two
   lines at most, HEAD past 50 characters (2.2 step-down). The synopsis waits
   for focus to rest, so a moving row never flickers text. */
.st-head { position: absolute; z-index: 2; left: 5.625rem; top: 7.5rem; width: 76.875rem; }
.st-name { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; }
.st-name.step { font-size: 2.5rem; font-weight: 600; line-height: 1.2; }
.st-meta { margin-top: 0.75rem; color: var(--textDim); text-transform: uppercase; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.st-meta .good, .st-meta .accent { text-transform: none; letter-spacing: 0; }
.st-desc {
  margin-top: 1.5rem;
  color: var(--text);
  line-height: 1.75;
  max-height: 8.625rem;                 /* 3 x 46: BODY 26 at the 1.75 pitch */
  overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  opacity: 0;
}
.st-desc[hidden] { display: none; }
.stage.rested .st-desc { opacity: 1; transition: opacity 300ms var(--ease-glide); }
/* A panel is centred over the header: the lines under the name would show cut
   in half above its top edge, so they step out while it is open. */
.stage.panel-open .st-meta, .stage.panel-open .st-desc { visibility: hidden; }

/* The row (BLZ-0088 v3): a window of 7 WHOLE slots on the 90 .. 1830 track, 228 each with 24 between (app.js
   slotLeft). The card inside keeps the 2.6 focus law (0.93 -> 1.00, 250ms outCubic): a resting card is 212, the
   focused one 228. Nothing is cut at either edge, whatever the jump. */
.row { position: absolute; z-index: 1; left: 0; top: 41.25rem; width: 120rem; height: 15.5rem; }   /* art 660 .. 888 */
.slot {
  position: absolute; left: 0; top: 0;
  width: 14.25rem;                      /* 228 */
  transform-origin: 50% 7.125rem;       /* the art's centre: every card sits on one line */
  transition: transform 300ms var(--ease-glide);
  will-change: transform;
}
.slot.on { z-index: 2; }
.st-pos { position: absolute; z-index: 1; right: 5.625rem; top: 38.25rem; color: var(--textDim); font-variant-numeric: tabular-nums; }
.st-pos:empty { display: none; }
.ghost-box { display: block; height: 14.25rem; border-radius: var(--radius); background: var(--surfaceHi); opacity: 0.45; transform: scale(0.93); }
.row-empty { position: absolute; left: 5.625rem; top: 8rem; }
.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--textHi);
  text-align: left;
  cursor: pointer;
  outline: none;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transform: scale(0.93);
  transition: transform 250ms var(--ease-focus);
}
.card:focus { transform: scale(1); z-index: 2; }
/* Square by padding, NOT aspect-ratio. With aspect-ratio the PS5 browser drew
   this box 0 px tall: no art, no plate, only the focus bar under the card --
   "a tiny red blob", Markus 26 Sep 2026. It is NOT that the engine lacks
   aspect-ratio: the console reports Version/17.0 and CSS.supports says yes.
   Its own WebKit build lays out a card inside a <button> differently from
   Comet AND from current WebKit, and both of those drew it right. Percent
   padding is measured from the card's width, and it worked on the PS5.
   Every span in a card is display:block on purpose: no layout here may
   depend on a <button> turning its children into flex items.
   And every one has width: 100%. The PS5 sizes a <button>'s inside to its
   content, and a box whose content is all absolute has none: on 28 Sep its
   layout beacon (1540x700) read box 0x210 -- 210 tall from the padding, 0
   wide, so no cover showed at all. Comet drew the same card 210x210. A
   percent width resolves against the card, the same as the padding does. */
.art-box {
  display: block;
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 100%;
  border-radius: var(--radius);
  background: var(--surfaceHi);
  overflow: hidden;
  transition: box-shadow 250ms var(--ease-focus);
}
.card:focus .art-box { box-shadow: var(--halo); }
/* Recession is opacity toward the ground: 0.45 with focus off the row, 0.65
   in the focused row, 1.00 focused (2.6). */
/* The art is painted TWICE, in the same place with the same crop: as the
   face's background (set by app.js) and by the <img> on top of it. The PS5
   fired load for every cover and drew none, while it drew the plate text in
   this same .face. So the face paints the art with the box and the paint
   path the PS5 has already proven it draws; the <img> stays for the load
   signal and the layout beacon, and where it paints, it paints the same
   pixels. background-size: cover is object-fit: cover, so a 4:5 box is
   cropped to the square the same way twice. */
.face {
  display: block;
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.45;
  transition: opacity 250ms var(--ease-focus);
}
.row:focus-within .face { opacity: 0.65; }
.card:focus .face { opacity: 1; }
/* The art paints over the plate as soon as it has pixels, with no class to
   wait for. It used to sit at opacity 0 until the load handler added .ok; the
   PS5 showed plates and never the art (26 Sep 2026). A loading img with alt=""
   draws nothing, and a failed one is removed, so no broken icon can show. */
.art { display: block; position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.art-text { display: block; position: absolute; top: 0; right: 0; bottom: 0; left: 0; padding: 2.75rem 1rem 1rem; display: flex; flex-direction: column; justify-content: flex-end; }
.art-box.emu .art-text { padding-bottom: 3rem; }
.art-box.ok .art-text { visibility: hidden; }
.art-title { display: block; font-size: 1.625rem; font-weight: 600; line-height: 1.2; color: var(--textHi); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
/* Tags, drawn in the tokens: the file type (or the owned mark) hangs from the
   top edge, APR-EMU sits on the bottom edge in the accent. META 22, so even a
   resting card (x 0.83) draws them at 18. They ride the card's scale. */
.tag {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 2rem);
  height: 2.25rem;                      /* 36 */
  padding: 0 1rem;
  background: var(--plate);
  color: var(--textHi);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 2.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag.type, .tag.own, .tag.way { top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.tag.own { color: var(--good); text-transform: none; letter-spacing: 0; }
.tag.way { color: var(--accent); text-transform: none; letter-spacing: 0; }
.tag.emu { bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--accent); color: #FFFFFF; }
.bar { display: block; width: 100%; height: 0.375rem; margin-top: 0.375rem; border-radius: 0.1875rem; background: var(--accent); opacity: 0; transition: opacity 250ms var(--ease-focus); }
.card:focus .bar { opacity: 1; }

/* Bottom: the legend names only what the PS5 browser really sends (arrows,
   ✕, ○, PageUp/Down), glyphs drawn in one text colour (2.5: one accent). ○
   Back is also a button, for the cursor. The count is on the right. */
.st-foot { position: absolute; z-index: 3; left: 5.625rem; right: 5.625rem; top: 59.5rem; height: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }   /* 952 .. 1000 */
.legend { display: flex; align-items: center; gap: 2.5rem; min-width: 0; }
.lg { display: inline-flex; align-items: center; gap: 0.625rem; font-size: 1.375rem; font-weight: 500; line-height: 1.35; color: var(--text); white-space: nowrap; }
.glyph { display: block; flex: none; width: 1.75rem; height: 1.75rem; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; color: var(--textHi); }
.btn.lg-back { min-height: 3rem; padding: 0 0.875rem; margin: 0 -0.875rem; gap: 0.625rem; background: transparent; border-color: transparent; font-size: 1.375rem; font-weight: 500; color: var(--text); }
.btn.lg-back:focus .glyph { color: #FFFFFF; }
.st-count { flex: none; color: var(--textHi); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Panels (Category, Downloads): PANEL 200ms outQuad in, over a black scrim. */
.overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 5; display: flex; align-items: center; justify-content: center; }
.ov-scrim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #000; opacity: 0.6; animation: ov-scrim 200ms var(--ease-settle); }
@keyframes ov-scrim { from { opacity: 0; } to { opacity: 0.6; } }
.ov-panel { position: relative; width: 97.5rem; display: flex; flex-direction: column; gap: 1.5rem; padding: 2rem 3rem; animation: ov-in 200ms var(--ease-settle); }
@keyframes ov-in { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
.ov-panel > .head { text-align: center; }
.ov-label { margin-bottom: -0.75rem; color: var(--textDim); text-transform: uppercase; letter-spacing: 0.08em; }
.types { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 1.5rem; }
.letters { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 0.75rem; }
/* One label, centred both ways (compare doc 4, bugs 1 and 2: "All2,330"
   jammed, labels riding the top edge). */
.chip.type { flex: none; height: 8.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; padding: 0 0.75rem; line-height: 1.2; }
.type-name { font-size: 1.625rem; font-weight: 700; letter-spacing: 0.06em; }
.type-count { font-size: 1.375rem; font-weight: 500; color: var(--textDim); font-variant-numeric: tabular-nums; }
.type-on { font-size: 1.375rem; font-weight: 600; color: var(--accent); min-height: 1.65rem; }
.chip.type.on { color: var(--textHi); }
.chip.type:focus .type-count, .chip.type:focus .type-on { color: #FFFFFF; }
/* Sort & filter (BLZ-0088 v3): five rows of chips, so each is a compact one (name over count); the picked one wears the
   accent border instead of a third "Selected" line. */
.filter.ov-panel { gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.filter .types { gap: 0.75rem; }
.filter .chip.type { height: 4.75rem; gap: 0; }
.filter .type-name { font-size: 1.375rem; letter-spacing: 0.02em; }
.filter .type-count { font-size: 1.125rem; }
.filter .type-on { display: none; }
.filter .chip.type.on { border-color: var(--accent); color: var(--textHi); }
.chip.letter { flex: none; display: flex; align-items: center; justify-content: center; height: 4rem; }
.ov-foot { display: flex; align-items: center; justify-content: center; gap: 4rem; margin-top: 0.5rem; }
.downloads { width: 75rem; min-height: 33rem; }
.dl-sub { margin-top: -1rem; text-align: center; }
.dl-list { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.dl-row { display: flex; align-items: center; gap: 1.5rem; height: 4.75rem; padding: 0 1.5rem; border-radius: var(--radius); background: var(--surfaceHi); }
.dl-name { flex: 1 1 auto; min-width: 0; font-size: 1.625rem; font-weight: 600; line-height: 1.2; color: var(--textHi); }
.dl-sys { flex: none; max-width: 14rem; font-size: 1.375rem; font-weight: 500; color: var(--textDim); }
.dl-state { flex: none; max-width: 28rem; font-size: 1.375rem; font-weight: 600; color: var(--text); }
.dl-state.accent { color: var(--accent); }
.dl-state.warn { color: var(--warn); }
.dl-empty { margin: auto 0; padding: 4rem 0; text-align: center; color: var(--text); }
/* BLZ-0088 v3: a job's own buttons, at the end of its row, in a fixed order. An armed Cancel ("Yes, cancel") is amber. */
.dl-state.good { color: var(--good); }
.dl-btns { flex: none; display: flex; gap: 0.75rem; }
.dl-row .dl-btns .btn.slim { min-height: 3.25rem; }
.dl-row:has(.dl-btns) .dl-state { max-width: 24rem; }
.btn.slim.warn { color: var(--warn); border-color: var(--warn); }
.dl-msg { min-height: 1.875rem; text-align: center; color: var(--text); }
.dl-msg:empty { display: none; }
.dl-msg.ok { color: var(--good); }
.dl-msg.warn { color: var(--warn); }
.dl-more { text-align: center; }
.dl-all { display: flex; gap: 1rem; }
.dl-all:empty { display: none; }

/* ------------------------------------------------------------ TITLE */
.t-head { flex: none; margin-top: 1.5rem; }
.t-name.stepped { font-size: 2.5rem; font-weight: 600; line-height: 1.75; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.t-meta { margin-top: 0.75rem; color: var(--textDim); }
.t-body { flex: 1 1 auto; min-height: 0; display: flex; gap: 3rem; margin-top: 2rem; }
.t-side { flex: 0 0 22.5rem; display: flex; flex-direction: column; gap: 1.5rem; min-height: 0; overflow: hidden; }
/* 360 x 450, 4:5. app.js also sets the cover as this img's own background
   image, so the art has a second paint path here too (see .face). */
.cover { display: block; width: 22.5rem; height: 28.125rem; max-width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--surfaceHi); background-position: 50% 50%; background-size: cover; background-repeat: no-repeat; }
.t-info { color: var(--textDim); line-height: 1.75; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
.t-main { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 1rem; }
.t-main .pager { margin-top: auto; }
.plate { border-radius: var(--radius); background: var(--surface); border: 0.1875rem solid var(--good); padding: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.plate .head { color: var(--good); }
.plate .path { word-break: break-all; }
.plate.confirm { border-color: var(--warn); }
.plate.confirm .head { color: var(--textHi); }
.plate.where .actions { flex-wrap: wrap; }
/* BLZ-0088: every machine and drive, live; its free space under its name; an offline one grey and not pressable. */
.where-list { gap: 1rem; }
.where-btn { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.125rem; min-height: 4.5rem; padding: 0.5rem 1.25rem; }
.where-name { font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.where-free { font-size: 1.125rem; font-weight: 500; color: var(--textDim); line-height: 1.2; }
.where-btn:focus .where-free { color: #FFFFFF; }
.where-btn.off { border-color: var(--line); color: var(--textDim); cursor: default; }
.where-not summary { cursor: pointer; }
.where-not p { margin-top: 0.5rem; }
/* "Add from my drives": an offer, not a state - the accent border, not the green of "On your PS5" - and amber when it cannot be done. */
.plate.drives { border-color: var(--accent); }
.plate.drives .head { color: var(--textHi); }
.plate.drives.warn { border-color: var(--warn); }
.plate.drives .body.warn { color: var(--warn); }
.drives .srcs { margin-top: 1rem; }
.drives .src.have { background: transparent; }
.drives .pager { margin-top: 1.25rem; }
/* BLZ-0088 v3: the game's true state. Installed is green (as before); on the drive and not installed is the accent
   (there is something to do); a download or an unpack under way is a quiet line; a failed one is amber. */
.plate.state.drive { border-color: var(--accent); }
.plate.state.drive .head { color: var(--textHi); }
.plate.state.busy { border-color: var(--line); }
.plate.state.busy .head { color: var(--accent); }
.plate.state.warn { border-color: var(--warn); }
.plate.state.warn .head { color: var(--warn); }
.plate .act-msg.ok { color: var(--good); }
.plate .act-msg.warn { color: var(--warn); }
.btn[aria-disabled="true"] { cursor: default; }
/* The description: a few lines beside the cover, ALL of it in About (never cut there). */
.t-about { display: flex; flex-direction: column; gap: 1rem; min-height: 0; }
.t-about .btn { align-self: flex-start; }
.t-about .t-info { -webkit-line-clamp: 4; }
.about { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 1rem; }
.about > .head { color: var(--textHi); }
.about-facts { color: var(--text); }
.about-facts .dim { color: var(--textDim); }
.about-text { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.about-text .body { color: var(--text); line-height: 1.6; white-space: normal; }
.about-hint { min-height: 1.75rem; }
.notes { display: flex; flex-direction: column; }
/* My games: the owned line, and the DLC / updates plate with its one-press "get everything". */
.owned-note { color: var(--good); }
.plate.extras { border-color: var(--line); }
.plate.extras .head { color: var(--textHi); }
.plate.extras .rel-list { flex-wrap: wrap; gap: 0.75rem; }
.plate .all-msg.ok { color: var(--good); }
.plate .all-msg.warn { color: var(--warn); }
.screen.mine .mine-have { display: flex; gap: 0.75rem; }
.tile.game.mine .g-cap.good { color: var(--good); }
.onway-box { padding: 0.75rem 1.5rem; border-radius: var(--radius); border: 0.1875rem solid var(--accent); background: var(--surface); color: var(--text); }

/* A source: the whole row is the button, and only the focused row says what
   pressing it does. Six rows never read "Send to PS5" six times. */
.srcs { display: flex; flex-direction: column; gap: 0.75rem; }
.src {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  height: 4.75rem;                      /* 76 */
  padding: 0 1.5rem;
  text-align: left;
  background: var(--surfaceHi);
  border-color: transparent;
}
.src[aria-disabled="true"] { cursor: default; }
.src-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.src-name { font-size: 1.625rem; font-weight: 600; line-height: 1.2; color: var(--textHi); }
.src-cap { font-size: 1.375rem; font-weight: 500; line-height: 1.3; color: var(--textDim); }
.src-cap.ok { color: var(--good); }
.src-cap.err, .src-cap.warn { color: var(--warn); }
.src-cta { flex: none; font-size: 1.375rem; font-weight: 600; line-height: 1.2; opacity: 0; transition: opacity 140ms var(--ease-settle); }
.src:focus .src-cta { opacity: 1; }
.src-mark { flex: none; font-size: 1.375rem; font-weight: 600; color: var(--good); }
.src.have { cursor: default; }

/* ------------------------------------------------------------ FIND */
.f-status { flex: none; margin-top: 1rem; height: 2rem; }
.f-list { flex: none; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.find-confirm { margin-top: 1rem; }

/* ------------------------------------------------------------ INPUT TEST */
.in-grid { flex: 1 1 auto; min-height: 0; margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1.5rem; }
.in-grid .panel { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 0.5rem; }
.in-grid .panel .head { margin-bottom: 0.25rem; }
.in-line { font-size: 1.375rem; font-weight: 500; line-height: 1.75; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; word-break: break-word; }
.in-line b { color: var(--textHi); font-weight: 600; }

/* ------------------------------------------------------------ toast (errors only) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 7rem;
  transform: translateX(-50%);
  max-width: 100rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surfaceHi);
  border: 0.125rem solid var(--warn);
  color: var(--textHi);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.35;
  z-index: 10;
}

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