/* Zeltrix homepage hub: hero stat strip, weekend events, card shows, learn, releases. Loads after styles.css. */

.home-stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 12px 32px; margin: 30px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.home-stats li { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-stats strong { font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--lime); letter-spacing: -.01em; }
.home-stats span { font-size: 13px; line-height: 1.35; color: #c3cdea; }

.home-section .section-head h2 { overflow-wrap: anywhere; }
.home-event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-show-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-event, .home-release { display: flex; flex-direction: column; gap: 6px; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; transition: box-shadow .15s, border-color .15s; }
.home-event:hover, .home-release:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.home-event h3, .home-release h3 { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.home-event h3 a, .home-release h3 a { color: var(--ink); }
.home-event h3 a:hover, .home-release h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.home-event p, .home-release p { margin: 0; }
.home-event-when, .home-release-date { font-size: 13px; font-weight: 700; color: var(--blue); }
.home-event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--muted); }
.home-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--ink); font-weight: 600; font-size: 12px; }
.home-event-where { font-size: 15px; color: var(--muted); }

.home-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.home-chips > span { font-size: 14px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.home-fineprint { font-size: 13px; color: var(--subtle); margin: 18px 0 0; }

.home-game-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.home-game { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 16px 10px; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.home-game:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.home-game-logo { height: 48px; width: auto; max-width: 100%; object-fit: contain; }
.home-subhead { font-size: 20px; font-weight: 800; margin: 36px 0 16px; }

.home-release-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* The publisher's product picture (whole, on a light panel) on top of a release card; the card opens the release's page. */
.home-release-photo { display: flex; align-items: center; justify-content: center; height: 140px; margin: -4px -6px 6px; overflow: hidden; border-radius: 10px; background: #f3f5fa; }
.home-release-photo img { width: 100%; height: 100%; padding: 8px; box-sizing: border-box; object-fit: contain; }
.home-release-feature { margin: 0 0 18px; font-size: 16px; font-weight: 700; }
.home-release-feature a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .home-event-grid, .home-release-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-show-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .home-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; margin-top: 22px; }
  .home-stats strong { font-size: 24px; }
  .home-stats span { font-size: 12px; }
  .home-event-grid, .home-show-grid, .home-release-grid { grid-template-columns: 1fr; }
  .home-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-section .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.game-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.game-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
.game-chip span { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--pending-bg); color: var(--pending-text); }
.game-chip-instock span { background: var(--ok-bg); color: var(--ok-text); }
.game-chip:hover { border-color: var(--navy); }
.home-info { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 8px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--muted); font-size: 12px; font-weight: 700; font-style: normal; cursor: help; vertical-align: middle; }
.home-game small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }


/* Refresh (2026-10-12): homepage event and release cards share the inner-page card language. */
.home-event, .home-release { position: relative; overflow: hidden; gap: 10px; padding: 18px 18px 16px 26px; border-radius: var(--radius); }
.home-event::before, .home-release::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 7px; background: linear-gradient(180deg, var(--g), var(--g2, var(--g))); }
.home-event-top { display: flex; align-items: flex-start; gap: 14px; }
.home-event-head { min-width: 0; flex: 1; }
.home-event-meta { margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.home-event h3, .home-release h3 { font-size: 18px; font-weight: 800; }
.home-event h3 a:hover, .home-release h3 a:hover { color: var(--blue); text-decoration: none; }
.home-event-where { display: flex; align-items: flex-start; gap: 6px; font-size: 15px; color: var(--text); }
.home-event-where .ico { width: 16px; height: 16px; margin-top: 3px; color: var(--blue); }
.home-event-when { font-size: 14px; font-weight: 600; color: var(--muted); }
.home-event-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.home-release-date { font-size: 15px; font-weight: 800; color: var(--navy); }
.home-show .gchip { background: var(--bg-soft); color: var(--navy); }

/* Game logos sit on one navy plate: the One Piece logo is white and the Magic and Lorcana logos are pale, so all
   six get the same plate and read clearly on white tiles */
.home-game-logo { background: var(--navy); padding: 8px 14px; border-radius: 10px; box-sizing: content-box; height: 34px; width: 132px; object-fit: contain; }
.home-game-logo { display: block; margin: 0 auto; object-position: center; }

/* ===== Backgrounds and section heads (2026-10-26 site review) =====
   One style for every home section head (the navy square with a lime icon, then the H2) and two backgrounds after the
   navy hero: white and one light tint, alternating. No colour bands and no rainbow stripe. */
.home-band { position: relative; border: 0; }
.home-bg-white { background: #fff; }
.home-bg-tint { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.home-sec-ico { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; margin-right: 12px; border-radius: 12px; vertical-align: middle; background: var(--navy); color: var(--lime); }
.home-sec-ico .ico { width: 22px; height: 22px; }
.home-section .section-head h2 { display: flex; align-items: center; }
.home-section .section-link strong { font-weight: inherit; }
/* Learn: the game tiles keep their game colour along the top edge. */
.home-game { position: relative; overflow: hidden; border: 0; border-top: 5px solid var(--g); background: #fff; box-shadow: 0 1px 2px rgba(11, 20, 48, .05), 0 6px 16px rgba(11, 20, 48, .07); transition: transform .18s ease, box-shadow .18s ease; }
.home-game::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(var(--g-rgb), .16)); pointer-events: none; }
.home-game:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* Run a card shop? */
.home-band-store { padding: 40px 0; background: linear-gradient(120deg, #c6f432 0%, #a6e82a 100%); }
.home-store { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: center; }
.home-store img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow-lg); border: 3px solid var(--navy); }
.home-store h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; margin: 0 0 8px; color: var(--navy); }
.home-store p { margin: 0 0 16px; font-size: 17px; max-width: 560px; color: var(--navy); }
.home-store .button-primary { background: var(--navy); color: #fff; }
.home-store .button-primary:hover { background: var(--navy-700); }

/* Hero buttons: the Near me icon */
.hero-ctas .button .ico { margin-right: 6px; }
.hero-ctas .button { display: inline-flex; align-items: center; justify-content: center; }

/* Trust strip and Why cards get a little colour */
.trust-strip { background: linear-gradient(180deg, #fff, #f4f6fa); }
.why-card { border-top: 4px solid var(--lime); box-shadow: 0 1px 2px rgba(11, 20, 48, .05), 0 4px 14px rgba(11, 20, 48, .05); }
.why-card:nth-child(2) { border-top-color: var(--cyan); }
.why-card:nth-child(3) { border-top-color: #ffcb05; }

/* Pick a game chips use game colours */
.game-chip { border-left: 6px solid var(--g, var(--border-strong)); }
.game-chip[data-jump-category="pokemon"] { --g: #ffcb05; }
.game-chip[data-jump-category="mtg"] { --g: #f28b30; }
.game-chip[data-jump-category="onepiece"] { --g: #e63946; }
.game-chip[data-jump-category="lorcana"] { --g: #8e5cff; }
.game-chip[data-jump-category="yugioh"] { --g: #4361ee; }
.game-chip[data-jump-category="riftbound"] { --g: #1fb6a6; }
.game-chip[data-jump-category="digimon"] { --g: #e0457b; }
.game-chip:hover { background: var(--bg-soft); }

@media (max-width: 900px) { .home-store { grid-template-columns: 1fr; } .home-store img { max-width: 360px; } }
@media (max-width: 700px) {
  .home-sec-ico { width: 34px; height: 34px; margin-right: 10px; }
  .home-section.section { padding: 40px 0; }
  /* "This weekend" on phones: the first three events (desktop shows six); "See all events" has the rest. */
  .home-event-grid > .home-event:nth-child(n+4) { display: none; }
  .hero-ctas { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .home-game:hover { transform: none; } }

/* Start-here links in the Learn band */
.home-start { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0 0 22px; }
.home-start a:not(.button) { font-size: 15px; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .home-start .button { width: 100%; justify-content: center; } }

/* "Your weekend" before its script loads, and for visitors without JavaScript: one line linking My Zeltrix.
   The block itself is styled by your-weekend.css, which src/assets/your-weekend.js loads on demand. */
.home-yw { padding: 16px 0; background: #fff; }
.home-yw-static { margin: 0; font-size: 15px; color: var(--muted); }
.home-yw-static a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Game art on the homepage (2026-10-17; docs/BRAND-ASSETS.md "Game banners") ---------- */
/* Learn tiles: the Zeltrix game banner across the top, the game's logo and name below. */
.home-game.has-art { justify-content: flex-start; padding-top: 0; }
.home-game-art { display: block; width: calc(100% + 20px); max-width: none; height: auto; margin: 0 -10px 2px; aspect-ratio: 16 / 9; object-fit: cover; object-position: 85% center; }
.home-game.has-art .home-game-logo { margin-top: -26px; position: relative; z-index: 1; box-shadow: 0 6px 14px rgba(11, 20, 48, .3); }
/* Official logos (scripts/lib/game-art.mjs): a light-background logo (One Piece, black) on white; logo plate on release
   pictures; banner + logo when a release has no official picture; small game thumbnail on the weekend event cards. */
.home-game-logo.is-on-light { background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.home-game.has-art .home-game-logo.is-on-light { box-shadow: inset 0 0 0 1px var(--border), 0 6px 14px rgba(11, 20, 48, .3); }
.home-release-photo { position: relative; }
.home-release-photo .glogo img { width: auto; height: 100%; padding: 0; object-fit: contain; }
.home-release-logo { position: absolute; left: 8px; bottom: 8px; }
.home-release-photo.is-art { display: block; aspect-ratio: auto; }
.home-release-photo.is-art img.gthumb-art { padding: 0; object-fit: cover; }
.home-release-photo.is-art .gthumb-logo { left: 8px; bottom: 8px; }
.home-release-photo.is-art .glogo.is-sm { --glogo-h: 22px; padding: 4px 8px; }
.home-event-art { flex: 0 0 96px; width: 96px; border-radius: 10px; }
@media (max-width: 420px) { .home-event-art { flex-basis: 64px; width: 64px; aspect-ratio: 1; } .home-event-art .gthumb-logo { display: none; } }

/* ---------- "Free with Zeltrix" (2026-10-22; scripts/lib/free-features.mjs, home.mjs freeToolsBlock) ---------- */
/* The free tools as tiles, like products: 4 across on desktop, 2 on phones. The tile name is the link and covers the tile. */
.home-free { background: #fff; }
.home-free-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.home-free-tile { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--lime); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(11, 20, 48, .05), 0 4px 14px rgba(11, 20, 48, .05); transition: box-shadow .15s, border-color .15s; }
.home-free-tile:hover { box-shadow: var(--shadow-hover); border-color: var(--border-strong); border-top-color: var(--lime); }
.home-free-tile:has(.home-free-link:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.home-free-tile img { width: 48px; height: 48px; }
.home-free-tile h3 { margin: 2px 0 0; font-size: 18px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.home-free-link { color: var(--ink); }
.home-free-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.home-free-link:focus-visible { outline: none; }
.home-free-tile:hover .home-free-link { color: var(--blue); }
.home-free-promise { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text); }
.home-free-label { margin: auto 0 0; padding-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.home-free-label strong { display: block; color: var(--ok-text); font-weight: 700; }
.home-free-all { margin: 14px 0 0; font-size: 15px; }
@media (max-width: 980px) { .home-free-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .home-free-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-free-tile { padding: 14px 12px 12px; gap: 4px; }
  .home-free-tile img { width: 40px; height: 40px; }
  .home-free-tile h3 { font-size: 16px; }
  .home-free-promise { font-size: 14px; }
}
/* No hole in the last row, whatever the number of live tiles (7 today; tools go live behind switches): the last tile, or
   the last two, widen to fill the row, with the icon beside the text. */
@media (min-width: 981px) {
  .home-free-tile:last-child:nth-child(4n+3), .home-free-tile:nth-last-child(2):nth-child(4n+1), .home-free-tile:last-child:nth-child(4n+2) { grid-column: span 2; }
  .home-free-tile:last-child:nth-child(4n+1) { grid-column: 1 / -1; }
  .home-free-tile:last-child:nth-child(4n+3), .home-free-tile:nth-last-child(2):nth-child(4n+1), .home-free-tile:last-child:nth-child(4n+2), .home-free-tile:last-child:nth-child(4n+1) { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-content: start; }
}
@media (min-width: 701px) and (max-width: 980px) {
  .home-free-tile:last-child:nth-child(3n+2) { grid-column: span 2; }
  .home-free-tile:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .home-free-tile:last-child:nth-child(3n+2), .home-free-tile:last-child:nth-child(3n+1) { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-content: start; }
}
@media (max-width: 700px) {
  .home-free-tile:last-child:nth-child(2n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-content: start; }
}
.home-free-tile > img { grid-row: 1 / span 3; }
.home-free-tile > :not(img) { grid-column: 2; }

/* ---------- Members' strip above the hero (2026-10-22; home.mjs memberStripBlock, member-flag.js, your-weekend.js) ---------- */
/* Hidden for everyone except signed-in members: html.is-member is set in <head> before the first paint, so the strip is
   there from the first frame. Every line keeps one line of value and one of detail
   (cut with "…"), so filling it in never moves the page. */
html.is-member .home-member[hidden] { display: block !important; } /* beats the global [hidden] rule */
.home-member { padding: 14px 0; background: var(--navy); color: #d4dcf1; border-bottom: 3px solid var(--lime); }
.home-member-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; }
.home-member-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; margin: 0; padding: 0; }
.home-member-item { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.home-member-item.has-emblem { grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; }
.home-member-item.has-emblem > :not(.home-member-emblem) { grid-column: 2; }
.home-member-emblem { grid-row: 1 / span 3; align-self: center; width: 40px; height: 40px; }
.home-member-emblem .emblem { width: 40px; height: 40px; }
.home-member-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b6c2e8; line-height: 1.4; }
.home-member-v, .home-member-meta { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-member-v { font-size: 16px; font-weight: 800; line-height: 1.4; color: #fff; }
.home-member-v a, .home-member-meta a { color: #fff; text-decoration: underline; text-decoration-color: rgba(198, 244, 50, .7); text-underline-offset: 3px; }
.home-member-v a:hover, .home-member-meta a:hover { color: var(--lime); }
.home-member-meta { font-size: 14px; line-height: 1.4; color: #c3cdea; }
.home-member-cta { white-space: nowrap; }
@media (max-width: 980px) { .home-member-inner { grid-template-columns: minmax(0, 1fr); } .home-member-cta { justify-self: start; } }
@media (max-width: 700px) {
  .home-member { padding: 12px 0 14px; }
  .home-member-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .home-member-cta { justify-self: stretch; min-height: 44px; }
}

/* ---------- Hero: the title screen (owner, 2026-10-24; home.mjs heroStartHtml, heroFoxHtml, heroTilesHtml) ---------- */
/* No photo: brand navy with a soft lime and blue glow, a faint grid and a large faint bolt, all CSS (no image download but
   the fox). Zeltrix the fox stands big on the right on a lime light disc. Phones: the fox (about 170 px tall) sits top
   right beside the H1, so the H1, the line and "Start playing free" are in the first screen; the four tiles follow, 2 x 2.
   Motion (rise-in, idle float, breathing glow) comes from the kit in game.css and stops under reduced motion. */
.hero-game { background:
  radial-gradient(ellipse 46% 70% at 80% 52%, rgba(95, 211, 255, .2), transparent 70%),
  radial-gradient(ellipse 30% 42% at 80% 78%, rgba(198, 244, 50, .16), transparent 72%),
  linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%); }
.hero-game::before { display: block; content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 200'%3E%3Cpath d='M70 0 18 112h36L40 200l62-122H64z' fill='%23c6f432' fill-opacity='.05'/%3E%3C/svg%3E") right 4% center / auto 92% no-repeat,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 44px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
/* Two spacer rows (1fr) above and below the copy: the fox's height goes there, so the copy sits centred beside him and
   no row (or button) is stretched. */
.hero-game .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); grid-template-rows: 1fr auto auto auto auto 1fr;
  grid-template-areas: "top fox" "title fox" "desc fox" "ctas fox" "tiles fox" "bottom fox"; column-gap: 40px; min-height: 0; padding: 44px 0 40px; }
.hero-game h1 { grid-area: title; margin: 0 0 14px; font-size: clamp(38px, 4.4vw, 58px); line-height: 1.04; }
.hero-game .hero-desc { grid-area: desc; max-width: 560px; margin: 0 0 24px; }
.hero-game .hero-ctas { grid-area: ctas; }
.hero-fox { grid-area: fox; position: relative; align-self: center; justify-self: center; width: 410px; max-width: 100%; }
.hero-fox-img { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 0 22px rgba(95, 211, 255, .45)) drop-shadow(0 18px 24px rgba(0, 0, 0, .35)); }
/* The light disc the fox stands on, and a soft glow behind him so his navy fur reads on the navy background. */
.hero-fox-disc { position: absolute; left: 8%; right: 8%; bottom: -2%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(198, 244, 50, .5), rgba(198, 244, 50, .12) 60%, transparent); }
.hero-fox::before { content: ''; position: absolute; inset: 6% 2% 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(95, 211, 255, .26), rgba(95, 211, 255, 0)); }
/* Members: "Continue: Lv N" takes the first button's place before the first paint (html.is-member, member-flag.js). */
html.is-member .hero-start { display: none; }
html.is-member .hero-member[hidden] { display: inline-flex !important; } /* beats the global [hidden] rule */
/* The four tiles: Play, Collect, Learn, Level up. */
.hero-tiles { grid-area: tiles; margin-top: 26px; }
.hero-tiles ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.hero-tile { display: flex; align-items: center; gap: 10px; min-height: 60px; height: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(11, 20, 48, .6); color: #fff; text-decoration: none; transition: border-color .15s, background .15s; }
.hero-tile:hover { border-color: var(--lime); background: rgba(198, 244, 50, .08); }
.hero-tile:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.hero-tile-ico { display: inline-grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: rgba(198, 244, 50, .14); color: var(--lime); }
.hero-tile.is-collect .hero-tile-ico, .hero-tile.is-learn .hero-tile-ico { background: rgba(95, 211, 255, .14); color: var(--cyan); }
.hero-tile-ico .ico { width: 18px; height: 18px; }
.hero-tile-text { display: grid; min-width: 0; }
.hero-tile-text b { font-size: 16px; font-weight: 800; line-height: 1.2; }
.hero-tile-text small { font-size: 13px; line-height: 1.3; color: #c3cdea; }
@media (max-width: 1024px) {
  .hero-game .hero-inner { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 24px; padding: 32px 0 34px; }
  .hero-fox { width: 300px; }
  .hero-tiles ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  /* Phones: the fox top right beside the H1 (both in the first row), then the line, the buttons and the tiles. */
  .hero-game .hero-inner { grid-template-columns: minmax(0, 1fr) 150px; grid-template-rows: none; grid-template-areas: "title fox" "desc desc" "ctas ctas" "tiles tiles"; column-gap: 8px; padding: 14px 0 26px; }
  .hero-game h1 { align-self: center; margin: 0; font-size: clamp(30px, 8.6vw, 38px); }
  .hero-fox { width: 150px; margin: 0 -4px 0 0; }
  .hero-fox-img { filter: drop-shadow(0 0 14px rgba(95, 211, 255, .45)); }
  .hero-game .hero-desc { margin: 12px 0 16px; }
  .hero-game .hero-ctas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-game .hero-ctas .button { width: 100%; min-height: 48px; padding: 10px 12px; }
  .hero-tiles { margin-top: 16px; }
  .hero-tiles ul { gap: 8px; }
  .hero-tile { min-height: 56px; padding: 8px 10px; gap: 8px; }
  .hero-tile-ico { width: 30px; height: 30px; border-radius: 8px; }
  .hero-tile-text b { font-size: 15px; }
}

.home-free.section { padding-top: 40px; }


/* Phones (2026-10-26 site review, a shorter home page): two release cards, picture on the left ("See all release dates"
   has the rest); the game tiles three across without their banner art (logo and name only); the free tool tiles without
   the account line (the section note says most work without an account). Last in the file so it wins over the rules above. */
@media (max-width: 700px) {
  .home-release-grid > .home-release:nth-child(n+3) { display: none; }
  .home-release.has-photo { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-content: start; column-gap: 14px; row-gap: 6px; }
  .home-release.has-photo > .home-release-photo { grid-row: 1 / span 3; width: 88px; height: 88px; margin: 0; }
  .home-release.has-photo > :not(.home-release-photo) { grid-column: 2; }
  .home-release.has-photo .home-release-logo { display: none; }
  .home-game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .home-game-art { display: none; }
  .home-game, .home-game.has-art { justify-content: flex-start; min-height: 0; padding: 12px 6px; gap: 6px; font-size: 13px; }
  .home-game-logo, .home-game.has-art .home-game-logo { width: calc(100% - 12px); height: 24px; padding: 6px; margin: 0; box-shadow: none; }
  .home-game small { font-size: 12px; }
  .home-free-label { display: none; }
}
/* The shop line: the icon beside the first line of text. */

/* Trending cards (site plan 2026-11-13, B4; scripts/sections/home.mjs trendingHtml): card art, the CAD price and the 7-day
   change, a row that scrolls sideways on a phone and shows all eight on a computer. The Pokémon Market chip sits beside the
   heading. Colours from the site tokens, so the app's dark and light pages both follow. */
#main > .home-trend, #main > .home-mweek { width: min(var(--shell), calc(100% - 48px)); margin: 24px auto; box-sizing: border-box; }
.home-trend { min-width: 0; contain: inline-size; }
.home-trend-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.home-trend-head h2 { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.2; }
.home-trend-head h2 small { margin-left: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.home-mchip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.home-mchip .ico { width: 16px; height: 16px; color: var(--blue); }
.home-mchip b { font-weight: 800; }
.home-mchip.is-up b, .home-mweek.is-up .home-mweek-ch { color: var(--ok-text); }
.home-mchip.is-down b, .home-mweek.is-down .home-mweek-ch { color: var(--error-text); }
.home-mchip:hover { border-color: var(--border-strong); }
.home-mchip:focus-visible, .home-trend-link:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.home-trend-list { list-style: none; margin: 0; padding: 2px 2px 6px; display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; }
.home-trend-card { position: relative; min-width: 0; scroll-snap-align: start; } /* keeps its screen-reader text inside the strip, which would otherwise widen the page */
.home-trend-link { display: flex; flex-direction: column; gap: 4px; height: 100%; border-radius: 10px; color: var(--ink); text-decoration: none; }
.home-trend-pic { display: block; aspect-ratio: 245 / 342; overflow: hidden; border-radius: 8px; background: var(--bg-soft); box-shadow: 0 4px 14px rgba(2, 8, 28, .25); }
.home-trend-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-trend-name { overflow: hidden; font-size: 13px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.home-trend-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 13px; line-height: 1.3; }
.home-trend-price { font-size: 14px; font-weight: 800; }
.home-trend-pct { padding: 1px 6px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-text); font-size: 12px; font-weight: 800; }
.home-trend-note { margin: 6px 0 0; color: var(--subtle); font-size: 12px; }
@media (max-width: 480px) {
  .home-trend-head { gap: 6px 8px; }
  .home-trend-head h2 { font-size: 18px; }
  .home-trend-head h2 small { margin-left: 4px; font-size: 12px; }
  .home-mchip { gap: 4px; min-height: 32px; padding: 0 10px; font-size: 12px; }
}
@media (min-width: 1024px) {
  .home-trend-list { grid-auto-flow: row; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
}
@media (prefers-reduced-motion: no-preference) {
  .home-trend-pic img { transition: transform .2s ease; }
  .home-trend-link:hover .home-trend-pic img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .home-trend-list { scroll-snap-type: none; } }

/* "Market this week" (home.mjs marketWeekHtml): the Sealed Index, its change, the mood and a small line; the title link covers the card. */
.home-mweek { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg); color: var(--ink); }
.home-mweek > p, .home-mweek-h { grid-column: 1; margin: 0; }
.home-mweek-h { font-size: 16px; line-height: 1.25; }
.home-mweek-link { color: inherit; text-decoration: none; }
.home-mweek-link::after { content: ''; position: absolute; inset: 0; border-radius: 18px; }
.home-mweek-link:focus-visible { outline: none; }
.home-mweek-link:focus-visible::after { outline: 3px solid var(--lime); outline-offset: 2px; }
.home-mweek:hover { border-color: var(--border-strong); }
.home-mweek-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.home-mweek-num b { font-size: 24px; font-weight: 800; line-height: 1.15; }
.home-mweek-k { color: var(--muted); font-size: 13px; font-weight: 600; }
.home-mweek-ch { font-size: 14px; font-weight: 800; }
.home-mweek-mood { color: var(--muted); font-size: 13px; }
.home-mweek-spark { grid-column: 2; grid-row: 1 / span 3; width: 120px; height: 44px; }
.home-mweek-spark path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.home-mweek.is-up .home-mweek-spark path { stroke: var(--ok-text); }
.home-mweek.is-down .home-mweek-spark path { stroke: var(--error-text); }
