/* Bento Grid, for /worlds/fortnite/ and /battle-pass/ (style: bento).

   The Item Shop is a bento grid: a tile's size and colour are its rarity, so
   the big gold tile is the one that matters. Both pages become that shop at
   night. A size here is never decoration: every span comes from a rank the
   page already states, named in the comment beside its rule (the seasons'
   own verdicts, the loot's rarities, a tier's data-r, a challenge's stars, a
   locker slot's grade). A section that ranks nothing keeps its tiles one size.

   One material for the pair: the Battle Pass's lobby navy as the ground; a
   deeper navy tile lit from above by its rarity, the way the shop lights an
   item from behind; on legendary tiles, the shop's sunburst of rays; and a
   darker name plate across a tile's foot. One family of corners (18px tiles,
   10px controls), wide gutters, Space Grotesk (the pass's own face) for the
   world page's headings, and the pass's gold for every keyboard ring.

   Three parts, like the other style files: the shared palette and tokens,
   the world page, the Battle Pass. Everything is scoped to
   :root[data-style="bento"]; material rules on shared components put that
   scope in :where() so each page's own hover, focus and playing states still
   win. The spec: docs/superpowers/specs/2026-10-11-page-styles-design.md,
   section 9, "Fortnite: Bento Grid". */

/* ── 1. shared: the rarities, the tile, the ground ──────────────────────── */
:root[data-style="bento"] {
  /* the five rarities, the Battle Pass's own values (battle-pass.css) */
  --bn-common: #9aa4b8;
  --bn-uncommon: #5fd07f;
  --bn-rare: #4f9fe0;
  --bn-epic: #b06fd8;
  --bn-legendary: #f0a83a;
  --bn-tile: #111a33;
  --bn-plate: rgba(4, 7, 17, .62);
  --bn-r-tile: 18px;
  --bn-r-in: 10px;
  --bn-gap: clamp(0.8rem, 1.6vw, 1.15rem);
  /* a control's rim, 3:1 on the navy */
  --bn-ctl: rgba(160, 185, 240, .55);

  /* the lobby's navy under the world page too, so the two share one ground */
  --bg: #0b1020;
  --s-surface: var(--bn-tile);
  --s-surface-hi: #16213f;
  --s-edge: rgba(150, 175, 235, .16);
  --s-bw: 1px;
  --s-r: var(--bn-r-tile);
  --s-r-sm: var(--bn-r-in);
  --s-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 18px 34px -26px #000;
  --s-shadow-hi: inset 0 1px 0 rgba(255, 255, 255, .1), 0 28px 44px -26px #000;
  --s-lift: -4px;
  --s-display: "Space Grotesk", system-ui, sans-serif;
  --s-display-w: 700;
  --s-display-ls: -0.035em;
  /* the pass's own ring colour, on both pages */
  --s-focus: #f0a83a;

  /* the bars: lobby navy, a tile's corner and rim */
  --s-bar: rgba(11, 16, 32, .8);
  --s-bar-edge: rgba(150, 175, 235, .18);
  --s-bar-r: var(--bn-r-tile);
  --s-bar-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 40px -20px #000;

  /* shop tiles are flat print: no film grain, no circuit field; the HUD
     lattice takes the island grid's 64px (fortnite.css), the shop's cells */
  --s-grain: 0;
  --s-field: 0;
  --hud-cell: 64px;
  --hud-grid: rgba(140, 180, 255, .035);
}
/* The bars are the one see-through thing here: solid where the browser
   cannot blur, or the reader asked for less transparency. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root[data-style="bento"] { --s-bar: #0d1326; }
}
@media (prefers-reduced-transparency: reduce) {
  :root[data-style="bento"] { --s-bar: #0d1326; --s-bar-blur: none; }
}
/* The navy is a shade lighter than the site's black, so with Increase
   Contrast every ink is restated past the site's own boost (base.css). */
@media (prefers-contrast: more) {
  :root[data-style="bento"] {
    --ink: #fbfaf6; --ink-dim: #cdcbc4; --mute: #aaa8b0; --line: #3f4150;
    --s-edge: rgba(170, 195, 255, .42);
  }
}

/* The tile. --bn-c is the tile's light: its rarity where the page ranks it
   (--bn-r, or the pass's --rar), its own colour where it does not. It is
   declared on each tile, never on :root, so every tile resolves its own. */
:root[data-style="bento"] :is(.fan-card, .fan-tile, .fan-linkcard, .fan-land, .fan-shot, .fan-art-body, .fn-hud-note, .fan-iface) {
  --bn-c: var(--bn-r, var(--a, #6fb0ff));
}
:root[data-style="bento"] :is(.bp-tier, .bp-slot) { --bn-c: var(--rar, var(--c-common)); }
:where(:root[data-style="bento"]) :is(.fan-card, .fan-tile, .fan-linkcard, .fan-land, .fan-shot, .fan-art-body, .fn-hud-note, .fan-iface, .bp-hero-l, .bp-meter, .bp-chals li, .bp-tier, .bp-slot, .bp-map) {
  background:
    radial-gradient(120% 75% at 50% 0%, color-mix(in srgb, var(--bn-c) 19%, transparent), transparent 72%),
    var(--bn-tile);
  border: 1px solid color-mix(in srgb, var(--bn-c) 34%, rgba(150, 175, 235, .1));
  border-radius: var(--bn-r-tile);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--bn-c) 46%, transparent), 0 18px 34px -26px #000;
}
@media (hover: hover) {
  :where(:root[data-style="bento"]) :is(.fan-card, .fan-tile, .fan-linkcard, .fan-land, .fan-shot):hover {
    border-color: color-mix(in srgb, var(--bn-c) 70%, transparent);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--bn-c) 60%, transparent), 0 26px 44px -26px #000,
      0 0 40px -22px var(--bn-c);
  }
}

/* The shop's sunburst, for legendary tiles only: rays from where the item
   would stand, faded out before they reach the words. Drawn behind the
   tile's content (isolation keeps it inside the tile). */
:root[data-style="bento"] :is(#og .fan-card:nth-child(2), #loot .fan-tile:nth-child(n+5), .fn-stage, .bp-tier[data-r="legendary"], .bp-slot[style*="--c-legendary"]) {
  position: relative; isolation: isolate;
}
:root[data-style="bento"] :is(#og .fan-card:nth-child(2), #loot .fan-tile:nth-child(n+5), .fn-stage, .bp-tier[data-r="legendary"], .bp-slot[style*="--c-legendary"])::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: repeating-conic-gradient(from 0deg at var(--bn-at, 50% 100%),
    color-mix(in srgb, var(--bn-c, var(--bn-legendary)) 30%, transparent) 0 5deg, transparent 5deg 12deg);
  -webkit-mask-image: radial-gradient(circle at var(--bn-at, 50% 100%), #000, transparent var(--bn-reach, 52%));
  mask-image: radial-gradient(circle at var(--bn-at, 50% 100%), #000, transparent var(--bn-reach, 52%));
}

/* ── 2. the world page: the Item Shop at night ──────────────────────────── */

/* The island stays (the storm, the bus, the skyline), lit like the pass's
   lobby: the same navy and violet, under the .36 cap every sky wears. */
:root[data-style="bento"] .fn-sky { background: radial-gradient(70% 50% at 50% 0%, #1d2a52 0%, #121a36 44%, #0b1020 100%); }
:root[data-style="bento"] .tabbar { --s-accent: var(--a); }

/* the title as the pass sets its own: Space Grotesk in capitals, sheared
   like every button on the pass, solid white where it was a gradient */
:root[data-style="bento"] .fan-title {
  font-family: var(--s-display); font-weight: 700; font-style: normal;
  letter-spacing: var(--s-display-ls); text-transform: uppercase;
  background: none; color: #fff; -webkit-text-fill-color: currentColor;
  transform: skewX(-8deg); transform-origin: 0 100%;
}
/* section heads as the pass sets its own ("The rewards"): the name in white
   Space Grotesk, the note beside it in small mono */
:root[data-style="bento"] .subsec--fan {
  font-family: var(--s-display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em; text-transform: none; color: var(--ink);
}
:root[data-style="bento"] .subsec--fan .subsec-yr {
  font-family: var(--mono); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mute);
}
/* the picker's heading is a section head too, so it takes the same weight,
   size, tracking and white; it was Inter and reading faces never move, so
   it keeps Inter */
:root[data-style="bento"] .fp-head :is(h2, h3) {
  font-family: var(--s-display);
  font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em; text-transform: none; color: var(--ink);
}
:root[data-style="bento"] :is(.fan-card :is(h2, h3, h4, h5), .fan-tiletext b, .fn-hud-note h2, .fan-land-head :is(h2, h3, h4, h5)) {
  font-family: var(--s-display); font-weight: 700; letter-spacing: -0.015em;
}

/* An item's own colour (a tile's caption, a card's subtitle, its tag, Listen
   link and Play button) is lifted a quarter toward white, so the darker
   ones hold 4.5:1 on a lit tile. The labels come up to the site's 0.66rem. */
:root[data-style="bento"] :is(.fan-tiletext i, .fan-card .fan-sub) { color: color-mix(in srgb, var(--a) 72%, #fff); opacity: 1; font-size: 0.66rem; }
:where(:root[data-style="bento"]) :is(.fan-tag, .fan-visit, .fan-hear) { color: color-mix(in srgb, var(--a) 72%, #fff); }
:where(:root[data-style="bento"]) :is(.fan-tag, .fan-meta) { font-size: 0.66rem; }
:where(:root[data-style="bento"]) .fan-tag { background: color-mix(in srgb, var(--a) 12%, transparent); }
/* a tag is a label at its own width, under the name it describes, not a
   bar across the tile above it: in the card's grid, align-self alone left
   it stretched edge to edge. Order moves it in the grid and the flex
   fallback alike; the name takes the first row and its margin. */
:where(:root[data-style="bento"]) .fan-card > :is(h2, h3, h4, h5) { order: -2; margin-top: 0; }
:where(:root[data-style="bento"]) .fan-card > .fan-tag { order: -1; justify-self: start; align-self: start; margin-top: 0.45rem; }

/* the name plate: the shop's dark band across a tile's foot, edge to edge,
   carrying the card's meta line where the shop puts the price */
:root[data-style="bento"] .fan-cards > .fan-card { --bn-px: 1.25rem; --bn-pb: 1.2rem; padding: 1.3rem var(--bn-px) var(--bn-pb); }
:where(:root[data-style="bento"]) .fan-cards > .fan-card > .fan-meta {
  margin: auto calc(-1 * var(--bn-px)) calc(-1 * var(--bn-pb));
  padding: 0.7rem var(--bn-px) 0.8rem;
  background: var(--bn-plate); color: var(--ink-dim);
  border-top: 1px solid color-mix(in srgb, var(--bn-c) 22%, transparent);
  border-radius: 0 0 calc(var(--bn-r-tile) - 1px) calc(var(--bn-r-tile) - 1px);
}
@supports (grid-template-rows: subgrid) {
  :where(:root[data-style="bento"]) .fan-cards > .fan-card > .fan-meta { margin-top: 0.8rem; align-self: stretch; }
}

/* ── the signature: the six seasons, sized by the page's own verdicts ──
   The section ranks them in words: Season 4 is "the best one"; 3 and 5 are
   the rest of "three, four and five above everything else" (its lede); 6 is
   "still great", 7 "the end of the run", 9 "where I drifted". So, in page
   order: epic, legendary, epic, rare, uncommon, common. */
:root[data-style="bento"] #og .fan-card:is(:nth-child(1), :nth-child(3)) { --bn-r: var(--bn-epic); }
:root[data-style="bento"] #og .fan-card:nth-child(2) { --bn-r: var(--bn-legendary); --bn-px: clamp(1.4rem, 2.4vw, 2rem); }
:root[data-style="bento"] #og .fan-card:nth-child(4) { --bn-r: var(--bn-rare); }
:root[data-style="bento"] #og .fan-card:nth-child(5) { --bn-r: var(--bn-uncommon); }
:root[data-style="bento"] #og .fan-card:nth-child(6) { --bn-r: var(--bn-common); }
/* the tag is the verdict, so it wears the rarity, not the season's colour */
:root[data-style="bento"] #og .fan-tag {
  color: color-mix(in srgb, var(--bn-r) 62%, #fff);
  border-color: color-mix(in srgb, var(--bn-r) 55%, transparent);
  background: color-mix(in srgb, var(--bn-r) 16%, transparent);
}
/* the name grows with the rank, which is how the rank survives on a phone,
   where the column is the only width there is; a row shares one title line,
   so each name sits at its foot, on its date */
:root[data-style="bento"] #og .fan-card h3 { align-self: end; }
:root[data-style="bento"] #og .fan-card:nth-child(2) h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; }
:root[data-style="bento"] #og .fan-card:is(:nth-child(1), :nth-child(3)) h3 { font-size: 1.45rem; }
:root[data-style="bento"] #og .fan-card:nth-child(4) h3 { font-size: 1.26rem; }
:root[data-style="bento"] #og .fan-card:nth-child(6) h3 { font-size: 1rem; }
/* On a phone the legendary tile opens with its burst, in a band of its own
   above the words; wider, the rays rise into the empty half of a tile two
   rows tall. */
:root[data-style="bento"] #og .fan-card:nth-child(2) { padding-top: 5.5rem; --bn-at: 50% 0%; --bn-reach: 26%; }
/* On twelve columns the ranks become widths: 4 is half the row and two rows
   tall, 3 and 5 half the row, then 6, 7 and 9 at five, four and three
   twelfths. Between a tablet and a laptop, 6, 7 and 9 share a row evenly. */
@media (min-width: 700px) {
  :root[data-style="bento"] #og .fan-cards { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  :root[data-style="bento"] #og .fan-card { grid-column: span 4; }
  :root[data-style="bento"] #og .fan-card:nth-child(-n+3) { grid-column: span 6; }
  :root[data-style="bento"] #og .fan-card:nth-child(2) { grid-row: span 2; padding-top: clamp(1.4rem, 2.4vw, 2rem); --bn-at: 50% 100%; --bn-reach: 52%; }
}
@media (min-width: 1100px) {
  :root[data-style="bento"] #og .fan-card:nth-child(4) { grid-column: span 5; }
  :root[data-style="bento"] #og .fan-card:nth-child(6) { grid-column: span 3; }
}
/* with subgrid each card is six rows of the grid (fanpages.css), so two
   cards tall is twelve, and the plate drops to the last of them */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 700px) {
    :root[data-style="bento"] #og .fan-card:nth-child(2) { grid-row: span 12; }
    :root[data-style="bento"] #og .fan-card:nth-child(2) > .fan-meta { grid-row: -2 / -1; }
  }
}

/* Omega and Carbide are the season's two legendary outfits: the section
   about them is lit gold, its four reasons one size (none outranks another) */
:root[data-style="bento"] #omega { --bn-r: var(--bn-legendary); }

/* ── the loot: the rarities themselves, each tile wider than the last ──
   On 24 columns: common 4, uncommon 5, rare 6, epic 9; then legendary 10 and
   mythic 14, a row of their own, with the burst. On a phone, two across and
   the top two full width. */
@media (min-width: 900px) {
  :root[data-style="bento"] #loot .fan-tiles { grid-template-columns: repeat(24, minmax(0, 1fr)); }
  :root[data-style="bento"] #loot .fan-tile:nth-child(1) { grid-column: span 4; }
  :root[data-style="bento"] #loot .fan-tile:nth-child(2) { grid-column: span 5; }
  :root[data-style="bento"] #loot .fan-tile:nth-child(3) { grid-column: span 6; }
  :root[data-style="bento"] #loot .fan-tile:nth-child(4) { grid-column: span 9; }
  :root[data-style="bento"] #loot .fan-tile:nth-child(5) { grid-column: span 10; }
  :root[data-style="bento"] #loot .fan-tile:nth-child(6) { grid-column: span 14; }
}
@media (max-width: 899px) {
  :root[data-style="bento"] #loot .fan-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root[data-style="bento"] #loot .fan-tile:nth-child(n+5) { grid-column: 1 / -1; }
}
:root[data-style="bento"] #loot .fan-tile:nth-child(n+5) { --bn-at: 100% 100%; --bn-reach: 44%; padding-block: 1.1rem; }
:root[data-style="bento"] #loot .fan-tile:nth-child(4) .fan-tiletext b { font-size: 1.05rem; }
:root[data-style="bento"] #loot .fan-tile:nth-child(5) .fan-tiletext b { font-size: 1.2rem; }
:root[data-style="bento"] #loot .fan-tile:nth-child(6) .fan-tiletext b { font-size: 1.4rem; }

/* ── the first screen as the shop's featured row ──
   The Omega mark (the season's legendary) and its words, then the build HUD
   and its note, on one shared pair of columns, so the four read as one block
   of tiles. */
:root[data-style="bento"] :is(.fan-art--fn, .fn-hud) { gap: var(--bn-gap); align-items: stretch; }
:root[data-style="bento"] .fn-hud { margin-top: var(--bn-gap); }
@media (min-width: 820px) {
  :root[data-style="bento"] :is(.fan-art--fn, .fn-hud) { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); }
}
:root[data-style="bento"] .fan-art--fn .fn-stage {
  --bn-c: var(--bn-legendary); --bn-at: 50% 46%; --bn-reach: 60%;
  max-width: none; margin-inline: 0; display: flex; flex-direction: column; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--bn-legendary) 45%, transparent); border-radius: var(--bn-r-tile);
  background: radial-gradient(70% 60% at 50% 46%, rgba(240, 168, 58, .3), rgba(120, 60, 14, .14) 55%, transparent 80%), #140f1e;
  box-shadow: inset 0 1px 0 rgba(240, 168, 58, .5), 0 18px 34px -26px #000;
}
:root[data-style="bento"] .fan-art--fn .fn-stage svg { max-width: 360px; margin-inline: auto; }
:root[data-style="bento"] .fan-art--fn .fn-stage figcaption { color: #c9c3b6; }
:root[data-style="bento"] :is(.fan-art--fn .fan-art-body, .fn-hud-note) { max-width: none; padding: clamp(1.3rem, 2.6vw, 2rem); justify-content: center; }
:root[data-style="bento"] .fn-hud > div:first-child { display: flex; flex-direction: column; justify-content: center; }
:root[data-style="bento"] .fn-hud-note h2 { font-size: 1.35rem; letter-spacing: -0.015em; text-transform: none; color: var(--ink); }
/* the materials and build pieces as small tiles of the same make */
:where(:root[data-style="bento"]) :is(.fn-mat, .fn-build) {
  border-radius: var(--bn-r-in); background: var(--bn-tile);
  border: 1px solid rgba(150, 175, 235, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
:where(:root[data-style="bento"]) .fn-mat {
  background: radial-gradient(90% 120% at 0% 50%, color-mix(in srgb, var(--m) 26%, transparent), transparent 70%), var(--bn-tile);
  border-color: color-mix(in srgb, var(--m) 45%, transparent);
}
:root[data-style="bento"] .fn-mat i { border-radius: 4px; }
:root[data-style="bento"] .fn-build span { font-size: 0.66rem; color: #c8d6f5; }

/* the interface door and its fragment: tiles of the pass's own gold */
:root[data-style="bento"] .fan-iface { --bn-r: var(--bn-legendary); border-radius: var(--bn-r-tile); }
:root[data-style="bento"] .fan-iface-k { color: color-mix(in srgb, var(--bn-legendary) 75%, #fff); }
:root[data-style="bento"] .fan-iface-a { border-radius: var(--bn-r-in); color: var(--bn-legendary); border-color: color-mix(in srgb, var(--bn-legendary) 45%, transparent); }

/* controls: small tiles with a rim that reads at 3:1, the top bar's
   search button included, since the navy bar is a shade lighter */
:where(:root[data-style="bento"]) .ql--search { border-color: var(--bn-ctl); }
:where(:root[data-style="bento"]) :is(.fan-link, .fp-go, .wsib-i a) { background: var(--bn-tile); border-color: var(--bn-ctl); }
:where(:root[data-style="bento"]) :is(.fp-go, .fan-sortbtn, .fp-slot, .wsib-i a) { border-radius: var(--bn-r-in); }
:where(:root[data-style="bento"]) .fp-bar { border-radius: var(--bn-r-tile); background: var(--bn-tile); border-color: rgba(150, 175, 235, .2); padding: 8px; gap: 8px; }
:where(:root[data-style="bento"]) .fp-slot { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
:root[data-style="bento"] .fp-slot u { font-size: 0.66rem; top: 2px; left: 5px; color: rgba(255, 255, 255, .6); }
:root[data-style="bento"] .fan-shot figcaption { background: var(--bn-plate); }
:root[data-style="bento"] .fan-tick::before { border-radius: 3px; }

/* ── 3. the Battle Pass: the same shop ──────────────────────────────────── */

/* The pass header as two tiles side by side: the pass in the pass's blue,
   the meter in the gold of tier one hundred, the thing it counts toward. */
:root[data-style="bento"] .bp-hero { gap: var(--bn-gap); align-items: stretch; }
:root[data-style="bento"] .bp-hero-l { --bn-c: var(--blue); padding: clamp(1.4rem, 3vw, 2.2rem); }
:root[data-style="bento"] .bp-meter { --bn-c: var(--c-legendary); padding: clamp(1.2rem, 2.4vw, 1.6rem); display: flex; flex-direction: column; justify-content: space-between; }
/* the meter's percentage is the tile's art, the way a tier's number is */
:root[data-style="bento"] .bp-meter-top { align-items: flex-end; margin-bottom: 0.9rem; }
:root[data-style="bento"] .bp-meter-top b { font-family: var(--s-display); font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 0.9; letter-spacing: -0.04em; }
:root[data-style="bento"] :is(.bp-btn, .bp-trk-btn, .bp-bar) { border-radius: var(--bn-r-in); }
:root[data-style="bento"] .bp-btn--ghost { background: var(--bn-tile); box-shadow: inset 0 0 0 1px var(--bn-ctl); }
:root[data-style="bento"] .bp-trk-btn { background: var(--bn-tile); border-color: var(--bn-ctl); }

/* The track: each node a small tile, its size its rarity (the node's label
   names it): 46px up to rare, epic 52, legendary 60, tier one hundred 68. */
:root[data-style="bento"] .bp-node-d {
  border-radius: var(--bn-r-in);
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rar, var(--c-common)) 42%, transparent), var(--bn-tile) 78%);
}
:root[data-style="bento"] .bp-node[aria-label$="epic"] .bp-node-d { width: 52px; height: 52px; }
:root[data-style="bento"] .bp-node[aria-label$="legendary"] .bp-node-d { width: 60px; height: 60px; font-size: 0.8rem; }
:root[data-style="bento"] .bp-node.bp-node--100 .bp-node-d { width: 68px; height: 68px; }
:root[data-style="bento"] :is(.bp-node, .bp-tier):focus-visible { outline-color: var(--s-focus); }

/* The challenges, sized by the stars each pays (data-stars): a ten-star
   challenge two columns, a five-star one. Five across on a desktop, which
   seats all seven in two full rows in their own order; two across on a
   phone, the same rule. A challenge reads top down, its count and stars
   at its foot, its tick in the corner. */
:root[data-style="bento"] .bp-chals { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--bn-gap); }
@media (max-width: 900px) {
  :root[data-style="bento"] .bp-chals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
:root[data-style="bento"] .bp-chals li[data-stars="10"] { grid-column: span 2; }
:root[data-style="bento"] .bp-chals li {
  --bn-c: var(--c-common);
  grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr auto;
  align-items: start; gap: 0.35rem 0.8rem; padding: 1.05rem 1.1rem 1rem;
}
:root[data-style="bento"] .bp-chals li.is-done { --bn-c: var(--c-uncommon); }
:root[data-style="bento"] .bp-chals li b { grid-column: 1 / -1; grid-row: 1; padding-right: 1.6rem; }
:root[data-style="bento"] .bp-chals li[data-stars="10"] b { font-size: 1.08rem; }
:root[data-style="bento"] .bp-chals li i { grid-column: 1 / -1; grid-row: 2; }
:root[data-style="bento"] .bp-chals li em { grid-column: 1; grid-row: 4; align-self: end; padding-top: 0.6rem; }
:root[data-style="bento"] .bp-chals li .bp-chal-st { grid-column: 2; grid-row: 4; align-self: end; }
:root[data-style="bento"] .bp-chals li::before { left: auto; right: 1.1rem; top: 1.2rem; margin-top: 0; }

/* The rewards, the shop itself: legendary 2 by 2, epic 2 by 1, the rest
   1 by 1, by each tile's data-r, and tier one hundred the whole row, two
   rows tall. Placed in tier order and never packed out of it, so where a
   wide tile cannot fit the end of a row, that slot stays empty. Six across,
   four on a tablet, two on a phone. */
:root[data-style="bento"] .bp-grid-r { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(124px, auto); gap: var(--bn-gap); }
@media (max-width: 1023px) {
  :root[data-style="bento"] .bp-grid-r { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  :root[data-style="bento"] .bp-grid-r { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
:root[data-style="bento"] .bp-tier[data-r="epic"] { grid-column: span 2; }
:root[data-style="bento"] .bp-tier[data-r="legendary"] { grid-column: span 2; grid-row: span 2; --bn-at: 72% 42%; --bn-reach: 70%; }
:root[data-style="bento"] .bp-tier.bp-tier--100 { grid-column: 1 / -1; grid-row: span 2; --bn-at: 78% 50%; }
/* each tier tile: rarity light from above, the name on a dark plate at its
   foot, the tier number and chip lifted toward white so both hold on it */
:root[data-style="bento"] .bp-tier {
  display: flex; flex-direction: column; justify-content: flex-end; padding: 2.5rem 1rem 1rem;
  background:
    linear-gradient(to top, rgba(5, 8, 18, .8), rgba(5, 8, 18, .5) 34%, transparent 62%),
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--bn-c) 26%, transparent), transparent 74%),
    var(--bn-tile);
  /* the rim is the rarity itself, lifted a little toward white: a tier is a
     link, so its outline holds 3:1 on the navy in every rarity, and still
     does at the pass's own dimming of a locked tier */
  border: 1px solid color-mix(in srgb, var(--bn-c) 82%, #fff);
}
:root[data-style="bento"] .bp-tier-n { top: 0.7rem; left: 0.95rem; color: color-mix(in srgb, var(--bn-c) 40%, #fff); }
:root[data-style="bento"] .bp-tier-i { color: color-mix(in srgb, var(--bn-c) 62%, #fff); border-radius: 6px; top: 0.6rem; right: 0.7rem; }
:root[data-style="bento"] .bp-tier i { color: #aab6d3; }
/* a legendary tier's number is its art, as the item is on a shop tile */
:root[data-style="bento"] :is(.bp-tier[data-r="legendary"], .bp-tier--100) .bp-tier-n {
  font-family: var(--s-display); font-weight: 700; font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1; letter-spacing: -0.05em; color: color-mix(in srgb, var(--bn-c) 58%, #fff);
}
:root[data-style="bento"] .bp-tier--100 .bp-tier-n { font-size: clamp(3.6rem, 9vw, 6.6rem); }
:root[data-style="bento"] .bp-tier[data-r="legendary"] b { font-size: 1.2rem; }
:root[data-style="bento"] .bp-tier--100 b { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }

/* The locker, graded the same way (each slot's --rar): on 24 columns,
   legendary half the row and two rows tall, epic half, rare three eighths,
   uncommon a quarter. Two across on a phone. */
:root[data-style="bento"] .bp-locker { grid-template-columns: repeat(24, minmax(0, 1fr)); gap: var(--bn-gap); }
:root[data-style="bento"] .bp-slot { grid-column: span 6; display: flex; flex-direction: column; justify-content: flex-end; padding: 2.2rem 1rem 2.3rem; }
:root[data-style="bento"] .bp-slot[style*="--c-rare"] { grid-column: span 9; }
:root[data-style="bento"] .bp-slot[style*="--c-epic"] { grid-column: span 12; }
:root[data-style="bento"] .bp-slot[style*="--c-legendary"] { grid-column: span 12; grid-row: span 2; --bn-at: 80% 50%; --bn-reach: 70%; }
:root[data-style="bento"] .bp-slot[style*="--c-legendary"] b { font-size: clamp(1.5rem, 3vw, 2.1rem); }
@media (max-width: 620px) {
  :root[data-style="bento"] .bp-locker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root[data-style="bento"] .bp-slot[style] { grid-column: span 1; }
  :root[data-style="bento"] .bp-slot:is([style*="--c-epic"], [style*="--c-legendary"]) { grid-column: 1 / -1; }
  /* full width is all a phone has, so the legendary slot is the taller one */
  :root[data-style="bento"] .bp-slot[style*="--c-legendary"] { min-height: 14rem; }
}
:root[data-style="bento"] .bp-slot-r { color: color-mix(in srgb, var(--bn-c) 62%, #fff); }
:root[data-style="bento"] .bp-slot-k { color: #aab6d3; }

/* the map: one more tile, in the pass's blue */
:root[data-style="bento"] .bp-map { --bn-c: var(--blue); max-width: 620px; }

/* The world button, purple on every other interface, is the pass's gold here
   (the colour this page already set for it), cut to a control's corner. */
:root[data-style="bento"] .bp .iw { --iw-a: var(--c-legendary); border-radius: var(--bn-r-in); }
:root[data-style="bento"] .bp .iw-i { border-radius: 7px; }
:root[data-style="bento"] .bp .iw:focus-visible { outline-color: var(--s-focus); }
