/* ──────────────────────────────────────────────────────────────────────────
   Ultimate Game Guide — public game database
   Layers on the site's design tokens (header.php): --bg, --surface, --line,
   --text, --app, --display, --body, --r-sm, --r-lg, --gutter.
   ────────────────────────────────────────────────────────────────────────── */

.ugg {
    --nes: #ff3b4a;
    --nes-soft: rgba(255,59,74,0.16);
    --snes: #8a6cff;
    --snes-soft: rgba(138,108,255,0.18);
    --gb: #8f90d8;
    --gb-soft: rgba(143,144,216,0.18);
    --gold: #ffc83d;
    --ink: #0a0d13;
    --peg: #2b2f36;
    --shelf: rgba(255,255,255,0.06);
    --sys: var(--app);
    --sys-soft: var(--app-soft);
    color: var(--text);
}
.ugg.sys-nes { --sys: var(--nes); --sys-soft: var(--nes-soft); }
.ugg.sys-snes { --sys: var(--snes); --sys-soft: var(--snes-soft); }
.ugg.sys-gb { --sys: var(--gb); --sys-soft: var(--gb-soft); }

.ugg *, .ugg *::before, .ugg *::after { box-sizing: border-box; }
.ugg h1, .ugg h2, .ugg h3 { margin: 0; font-family: var(--display); font-weight: bold; letter-spacing: -0.01em; }
.ugg p { margin: 0; }
.ugg a { color: inherit; }
.ugg button { font: inherit; color: inherit; }
.ugg .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ugg-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--display); font-size: 12px; font-weight: bold; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--sys);
}
.ugg-kicker::before { content: ""; width: 18px; height: 2px; background: var(--sys); border-radius: 2px; }

.ugg-section { margin-top: 48px; }
.ugg-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.ugg-section-head h2 { font-size: 24px; line-height: 1.15; }
.ugg-section-head .ugg-more { font-family: var(--display); font-size: 14px; color: var(--text-3); white-space: nowrap; }
.ugg-section-head .ugg-more:hover { color: var(--sys); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.ugg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-strong);
    background: rgba(255,255,255,0.05); color: var(--text); cursor: pointer; text-decoration: none;
    font-family: var(--display); font-weight: 500; font-size: 15px; line-height: 1; white-space: nowrap;
    transition: transform 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s, color 0.18s;
}
.ugg-btn:hover { background: rgba(255,255,255,0.11); border-color: rgba(255,255,255,0.3); color: var(--text); transform: translateY(-1px); }
.ugg-btn.primary { background: var(--sys); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -10px var(--sys); }
.ugg-btn.primary:hover { filter: brightness(1.1); color: #fff; }
.ugg-btn.nes { --sys: var(--nes); }
.ugg-btn.snes { --sys: var(--snes); }
.ugg-btn.gb { --sys: var(--gb); }
.ugg-btn.small { padding: 10px 14px; font-size: 13px; }
.ugg-btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* ── Search ────────────────────────────────────────────────────────────── */
.ugg-search { position: relative; width: 100%; }
.ugg-search input {
    width: 100%; height: 56px; padding: 0 56px 0 52px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18); background: rgba(10,13,19,0.72); color: var(--text);
    font-family: var(--body); font-size: 17px; outline: none; backdrop-filter: blur(12px);
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.ugg-search input::placeholder { color: var(--text-3); }
.ugg-search input:focus { border-color: var(--sys); box-shadow: 0 0 0 4px var(--sys-soft); background: rgba(10,13,19,0.9); }
.ugg-search .ugg-search-ico { position: absolute; z-index: 1; left: 20px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--text-3); stroke-width: 2; pointer-events: none; }
.ugg-search .ugg-search-key {
    position: absolute; z-index: 1; right: 16px; top: 50%; transform: translateY(-50%);
    font-family: var(--display); font-size: 11px; color: var(--text-3); border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 7px; pointer-events: none;
}
.ugg-search.compact input { height: 46px; font-size: 15px; padding-left: 44px; }
.ugg-search.compact .ugg-search-ico { left: 16px; width: 18px; height: 18px; }

.ugg-suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50;
    background: #10141c; border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8); display: none;
}
.ugg-suggest.open { display: block; }
.ugg-suggest a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 14px; text-decoration: none; }
.ugg-suggest a:hover, .ugg-suggest a.active { background: rgba(255,255,255,0.06); }
.ugg-suggest .ugg-suggest-art { width: 44px; aspect-ratio: 1; background-repeat: no-repeat; background-size: 1000% 1000%; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); }
/* Sheet cells hold the box on a bottom baseline (NES art sits ~5% low, SNES ~13.5%); lift it so rows read centred */
.ugg-suggest .ugg-suggest-art.nes { transform: translateY(-4.8%); }
.ugg-suggest .ugg-suggest-art.snes { transform: translateY(-13.5%); }
.ugg-suggest .ugg-suggest-title { font-family: var(--display); font-size: 15px; }
.ugg-suggest .ugg-suggest-meta { font-size: 12px; color: var(--text-3); }
.ugg-suggest .ugg-sys-pill { font-family: var(--display); font-size: 10px; font-weight: bold; letter-spacing: 0.08em; padding: 4px 8px; border-radius: 999px; background: var(--sys-soft); color: var(--sys); }
.ugg-suggest .ugg-sys-pill.nes { --sys: var(--nes); --sys-soft: var(--nes-soft); }
.ugg-suggest .ugg-sys-pill.snes { --sys: var(--snes); --sys-soft: var(--snes-soft); }
.ugg-suggest .ugg-sys-pill.gb { --sys: var(--gb); --sys-soft: var(--gb-soft); }
.ugg-suggest .ugg-suggest-all { padding: 12px 14px; font-family: var(--display); font-size: 13px; color: var(--text-3); border-top: 1px solid var(--line); display: block; text-decoration: none; }
.ugg-suggest .ugg-suggest-all:hover { color: var(--text); }

/* ── Tiles ─────────────────────────────────────────────────────────────── */
.ugg-tile { display: block; text-decoration: none; color: var(--text); position: relative; }
/* --aw/--ah: the art's width and height as fractions of the sheet cell width, so the art is drawn at the
   cell's size and keeps the sheet's margins as breathing room. In a row mixing both systems (--slot = the
   tallest art height, set on .ugg-row) the shorter art is pushed down so its centre lines up with the tall
   boxes, while the caption keeps hugging the art. */
.ugg-tile-slot { display: block; padding-top: calc((var(--slot, var(--ah, 0)) - var(--ah, 0)) * 50%); }
/* Game Boy boxes come in five sizes: each stands at the bottom of a slot as tall as the tallest, on one line */
.ugg-tile-stand .ugg-tile-slot { padding-top: calc((var(--slot, var(--ah, 0)) - var(--ah, 0)) * 100%); }
.ugg-tile-art {
    display: block; width: calc(100% * var(--aw, 1)); margin: 0 auto; aspect-ratio: 100 / 120;
    background-repeat: no-repeat; background-size: 1000% 1000%;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,0.45));
    transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1), filter 0.22s;
    transform-origin: 50% 100%;
}
.ugg-tile:hover .ugg-tile-art { transform: translateY(-6px) scale(1.04); filter: drop-shadow(0 22px 24px rgba(0,0,0,0.6)); }
.ugg-tile-cap { display: grid; gap: 3px; padding: 10px 2px 0; }
.ugg-tile-title { font-family: var(--display); font-size: 14px; line-height: 1.25; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ugg-tile-meta { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ugg-tile-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 16px; }
.ugg-tile-price { font-family: var(--display); font-size: 12px; color: var(--gold); }

.ugg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 20px; }
@media (max-width: 720px) { .ugg-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 22px 14px; } }
@media (max-width: 420px) { .ugg-grid { grid-template-columns: repeat(3, 1fr); gap: 18px 10px; } .ugg-tile-title { font-size: 12px; } .ugg-tile-meta { font-size: 11px; } }

/* overflow-x: auto also clips vertically, so the row gets headroom for the hover lift (and the negative margin cancels it visually) */
.ugg-row { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 20px; overflow-x: auto; padding: 20px 6px 16px; margin: -12px -2px 0; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; }
.ugg-row > * { scroll-snap-align: start; }
@media (max-width: 720px) { .ugg-row { grid-auto-columns: 124px; gap: 14px; } }

/* Pegboard panel behind the grid (echoes the app) */
.ugg-board {
    position: relative; padding: 28px 24px 32px; border-radius: var(--r-lg); border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(13,16,22,0) 0%, rgba(13,16,22,0.65) 100%),
        radial-gradient(circle at 6px 6px, rgba(0,0,0,0.55) 2.2px, transparent 2.6px) 0 0 / 26px 26px,
        linear-gradient(90deg, #2a2e35, #34383f 50%, #2a2e35);
}
@media (max-width: 720px) { .ugg-board { padding: 18px 14px 22px; } }

/* ── Stars & rarity ────────────────────────────────────────────────────── */
.ugg-stars {
    --v: 0; --sz: 16px;
    position: relative; display: inline-block; vertical-align: middle; flex: none;
    width: calc(var(--sz) * 5.4167); height: var(--sz);
    background: rgba(255,255,255,0.16);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.7.8-4.9 4.6 1.3 6.6L12 17.3l-6 3.3 1.3-6.6L2.4 9.4l6.7-.8z'/%3E%3C/svg%3E") 0 0 / calc(var(--sz) * 1.0833) var(--sz) repeat-x;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.7.8-4.9 4.6 1.3 6.6L12 17.3l-6 3.3 1.3-6.6L2.4 9.4l6.7-.8z'/%3E%3C/svg%3E") 0 0 / calc(var(--sz) * 1.0833) var(--sz) repeat-x;
}
.ugg-stars::before { content: ""; position: absolute; inset: 0; width: calc(var(--v) / 5 * 100%); background: var(--gold); }
.ugg-stars.small { --sz: 12px; }
.ugg-stars.large { --sz: 22px; }
.ugg-stars.white::before { background: #fff; }
.ugg-stars-none { font-size: 12px; color: var(--text-3); font-family: var(--display); }
.ugg-rarity { display: inline-flex; gap: 3px; vertical-align: middle; }
.ugg-rarity i { width: 10px; height: 10px; border-radius: 2px; background: rgba(255,255,255,0.12); }
.ugg-rarity i.on { background: var(--meter, var(--sys)); box-shadow: 0 0 8px color-mix(in srgb, var(--meter, var(--sys)) 45%, transparent); }
/* availability as a temperature: 1 block red (extremely rare) … 7 blocks green (very common) */
.ugg-rarity[data-level="1"] { --meter: #ff3b4a; }
.ugg-rarity[data-level="2"] { --meter: #ff6a3d; }
.ugg-rarity[data-level="3"] { --meter: #ff9a3d; }
.ugg-rarity[data-level="4"] { --meter: #ffc83d; }
.ugg-rarity[data-level="5"] { --meter: #cfd93a; }
.ugg-rarity[data-level="6"] { --meter: #8ed44a; }
.ugg-rarity[data-level="7"] { --meter: #3ddc84; }

/* ── Database home ─────────────────────────────────────────────────────── */
.ugg-hero {
    --hpt: 56px; --hpx: 48px; --hpb: 56px; --hr: var(--r-lg);
    position: relative; z-index: 5; border-radius: var(--hr); border: 1px solid var(--line); isolation: isolate;
    min-height: 520px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 56px 48px;
}
.ugg-hero::before, .ugg-explore::before, .ugg-game-hero::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #000 url("/img/ugg/shared/stars-bg.webp") center top / cover no-repeat; z-index: -1; }
.ugg-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; border-radius: inherit; background: linear-gradient(180deg, rgba(13,16,22,0), rgba(13,16,22,0.9) 75%, var(--bg)); pointer-events: none; }
.ugg-hero > * { position: relative; z-index: 1; }
.ugg-hero h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; text-wrap: balance; margin: 14px 0 18px; }
.ugg-hero .ugg-lead { font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 46ch; margin-bottom: 26px; }
.ugg-hero .ugg-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 980px) { .ugg-hero { --hpt: 40px; --hpx: 28px; --hpb: 32px; grid-template-columns: 1fr; padding: var(--hpt) var(--hpx) var(--hpb); min-height: 0; } }
@media (max-width: 540px) { .ugg-hero { --hpt: 28px; --hpx: 18px; --hpb: 24px; --hr: 16px; padding: var(--hpt) var(--hpx) var(--hpb); } }

/* Floating 3D boxes in the hero */
.ugg-float-clip { overflow: hidden; margin: calc(var(--hpt) * -1) calc(var(--hpx) * -1) calc(var(--hpb) * -1); padding: var(--hpt) var(--hpx) var(--hpb); border-radius: var(--hr); pointer-events: none; }
.ugg-float-clip .ugg-float { pointer-events: auto; }
.ugg-float-stage { position: relative; height: 420px; perspective: 1400px; perspective-origin: 50% 40%; }
.ugg-float { position: absolute; transform-style: preserve-3d; animation: ugg-bob 7s ease-in-out infinite; }
.ugg-float:nth-child(2) { animation-delay: -2s; } .ugg-float:nth-child(3) { animation-delay: -4s; } .ugg-float:nth-child(4) { animation-delay: -1s; } .ugg-float:nth-child(5) { animation-delay: -5s; }
@keyframes ugg-bob { 0%, 100% { transform: translateY(0) rotateY(-28deg) rotateX(6deg); } 50% { transform: translateY(-14px) rotateY(-18deg) rotateX(4deg); } }
@media (max-width: 980px) { .ugg-float-stage { height: 300px; } }
@media (prefers-reduced-motion: reduce) { .ugg-float { animation: none; } }

/* 3D box (shared by hero, detail page) — sizes via custom properties */
.ugg-box3d {
    --bw: 219; --bh: 300; --sw: 42; --sx: 220; --fx: 261; --tw: 480;
    --scale: 1;
    position: relative; width: calc(var(--bw) * var(--scale) * 1px); height: calc(var(--bh) * var(--scale) * 1px);
    transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ugg-box3d.grabbing { transition: none; cursor: grabbing; }
.ugg-box3d > i {
    position: absolute; left: 0; top: 0; display: block; height: 100%; backface-visibility: hidden;
    background-image: var(--img); background-repeat: no-repeat; background-size: calc(var(--tw) * var(--scale) * 1px) 100%;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}
.ugg-box3d .f { width: 100%; background-position: calc(var(--fx) * var(--scale) * -1px) 0; transform: translateZ(calc(var(--sw) * var(--scale) * 0.5px)); }
.ugg-box3d .b { width: 100%; background-position: 0 0; transform: rotateY(180deg) translateZ(calc(var(--sw) * var(--scale) * 0.5px)); }
.ugg-box3d .s { width: calc(var(--sw) * var(--scale) * 1px); background-position: calc(var(--sx) * var(--scale) * -1px) 0; transform: rotateY(-90deg) translateZ(calc(var(--sw) * var(--scale) * 0.5px)); left: 0; transform-origin: 50% 50%; }
.ugg-box3d .r { width: calc(var(--sw) * var(--scale) * 1px); background: #1b1b1b; transform: rotateY(90deg) translateZ(calc(var(--bw) * var(--scale) * 1px - var(--sw) * var(--scale) * 0.5px)); transform-origin: 50% 50%; }
.ugg-box3d .t, .ugg-box3d .u { width: 100%; height: calc(var(--sw) * var(--scale) * 1px); background: #202020; }
.ugg-box3d .t { transform: rotateX(90deg) translateZ(calc(var(--sw) * var(--scale) * 0.5px)); transform-origin: 50% 50%; top: 0; }
.ugg-box3d .u { transform: rotateX(-90deg) translateZ(calc(var(--bh) * var(--scale) * 1px - var(--sw) * var(--scale) * 0.5px)); transform-origin: 50% 50%; top: 0; }
.ugg-box3d .f::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 35%, rgba(0,0,0,0.08) 100%); pointer-events: none; }
.ugg-box3d .s::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.28); pointer-events: none; }
.ugg-box3d-shadow { position: absolute; left: 10%; right: 10%; bottom: -26px; height: 28px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,0.6), rgba(0,0,0,0)); filter: blur(4px); pointer-events: none; }

/* System doors */
.ugg-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
.ugg-door {
    --sys: var(--nes); --sys-soft: var(--nes-soft);
    position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; overflow: hidden;
    padding: 26px 26px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); text-decoration: none; color: var(--text);
    background: radial-gradient(120% 90% at 100% 0%, var(--sys-soft), transparent 60%), var(--surface);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.ugg-door.snes { --sys: var(--snes); --sys-soft: var(--snes-soft); }
.ugg-door.gb { --sys: var(--gb); --sys-soft: var(--gb-soft); }
.ugg-door:hover { transform: translateY(-3px); border-color: var(--sys); box-shadow: 0 30px 50px -30px var(--sys); color: var(--text); }
.ugg-door-logo { height: 34px; width: auto; max-width: 220px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }
.ugg-door-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; }
.ugg-door-strip span { display: block; aspect-ratio: var(--ratio, 0.83); background-repeat: no-repeat; background-size: 1000% 1000%; filter: drop-shadow(0 8px 10px rgba(0,0,0,0.5)); transition: transform 0.25s; }
.ugg-door:hover .ugg-door-strip span { transform: translateY(-4px); }
.ugg-door:hover .ugg-door-strip span:nth-child(2n) { transition-delay: 0.05s; }
.ugg-door-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ugg-door-foot .count { font-family: var(--display); font-size: 22px; font-weight: bold; }
.ugg-door-foot .count small { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }
.ugg-door-foot .go { font-family: var(--display); font-weight: 500; font-size: 14px; color: var(--sys); display: inline-flex; align-items: center; gap: 6px; }
.ugg-door-foot .go svg { width: 16px; height: 16px; fill: currentColor; }
.ugg-section-head .ugg-more svg, .ugg-hero-tools svg, .ugg-note svg { width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 720px) { .ugg-doors { grid-template-columns: 1fr; } .ugg-door-strip { grid-template-columns: repeat(5, 1fr); } .ugg-door-strip span:nth-child(n+6) { display: none; } }

/* Stats strip */
.ugg-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 20px; }
.ugg-stat { padding: 16px 18px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.ugg-stat b { display: block; font-family: var(--display); font-size: 26px; line-height: 1; margin-bottom: 6px; }
.ugg-stat span { font-size: 12px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--display); }
@media (max-width: 980px) { .ugg-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .ugg-stats { grid-template-columns: repeat(2, 1fr); } .ugg-stat b { font-size: 22px; } .ugg-stat:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ── Browse page ───────────────────────────────────────────────────────── */
.ugg-browse-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 20px; }
.ugg-browse-head h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; margin-top: 10px; }
.ugg-browse-head .ugg-lead { color: var(--text-2); margin-top: 10px; max-width: 60ch; }
.ugg-sys-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.ugg-sys-switch a { padding: 10px 16px; border-radius: 999px; font-family: var(--display); font-size: 13px; font-weight: 500; text-decoration: none; color: var(--text-3); }
.ugg-sys-switch a.on { background: var(--sys-soft); color: var(--sys); }
.ugg-sys-switch a.nes.on { --sys: var(--nes); --sys-soft: var(--nes-soft); }
.ugg-sys-switch a.snes.on { --sys: var(--snes); --sys-soft: var(--snes-soft); }
.ugg-sys-switch a.gb.on { --sys: var(--gb); --sys-soft: var(--gb-soft); }
@media (max-width: 720px) { .ugg-browse-head { grid-template-columns: 1fr; } }

.ugg-toolbar {
    position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
    padding: 12px 0; margin: 0 0 16px; background: linear-gradient(180deg, var(--bg) 85%, rgba(13,16,22,0));
}
.ugg-select { position: relative; }
.ugg-select select {
    appearance: none; -webkit-appearance: none; height: 46px; padding: 0 38px 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
    background: rgba(255,255,255,0.05); color: var(--text); font-family: var(--display); font-size: 14px; cursor: pointer; outline: none; max-width: 100%;
}
.ugg-select select:focus { border-color: var(--sys); box-shadow: 0 0 0 4px var(--sys-soft); }
.ugg-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.ugg-filter-btn { height: 46px; }
.ugg-filter-btn .n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--sys); color: #fff; font-size: 11px; }
.ugg-filter-btn .n:empty { display: none; }
@media (max-width: 860px) {
    .ugg-toolbar { grid-template-columns: 1fr 1fr; }
    .ugg-toolbar .ugg-search { grid-column: 1 / -1; }
    .ugg-toolbar .ugg-filter-btn { justify-self: end; }
    .ugg-toolbar .ugg-select { grid-column: 1 / -1; }
    .ugg-toolbar .ugg-select select { width: 100%; }
}

.ugg-filters { display: none; margin: 0 0 20px; padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.ugg-filters.open { display: grid; gap: 18px; }
.ugg-filter-group { display: grid; gap: 8px; }
.ugg-filter-group > .label { font-size: 11px; }
.ugg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ugg-chip { border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); padding: 8px 12px; border-radius: 999px; font-family: var(--display); font-size: 12px; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.ugg-chip:hover { border-color: rgba(255,255,255,0.3); color: var(--text); }
.ugg-chip.on { background: var(--sys); border-color: transparent; color: #fff; }
.ugg-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.ugg-filter-grid .ugg-select select { width: 100%; height: 42px; }
.ugg-filter-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ugg-rating-pick { display: inline-flex; gap: 2px; }
.ugg-rating-pick button { border: 0; background: transparent; padding: 2px; cursor: pointer; color: rgba(255,255,255,0.2); }
.ugg-rating-pick button svg { width: 22px; height: 22px; fill: currentColor; }
.ugg-rating-pick button.on { color: var(--gold); }
.ugg-switch { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13px; cursor: pointer; }
.ugg-switch input { appearance: none; width: 40px; height: 24px; border-radius: 999px; background: rgba(255,255,255,0.14); position: relative; cursor: pointer; margin: 0; transition: background 0.15s; }
.ugg-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.ugg-switch input:checked { background: var(--sys); }
.ugg-switch input:checked::after { transform: translateX(16px); }

.ugg-results { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-family: var(--display); font-size: 13px; color: var(--text-3); }
.ugg-alpha { display: flex; flex-wrap: wrap; gap: 4px; }
.ugg-alpha button { border: 0; background: transparent; color: var(--text-3); font-family: var(--display); font-size: 12px; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.ugg-alpha button:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.ugg-alpha button:disabled { opacity: 0.25; cursor: default; }
@media (max-width: 720px) {
    .ugg-results { flex-direction: column; align-items: stretch; gap: 8px; }
    .ugg-alpha { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 2px; }
    .ugg-alpha button { padding: 8px 0; font-size: 13px; text-align: center; }
}
.ugg-empty { padding: 60px 20px; text-align: center; color: var(--text-3); font-family: var(--display); }
.ugg-grid-wrap { position: relative; }
.ugg-sentinel { height: 1px; }

/* ── Game detail ───────────────────────────────────────────────────────── */
.ugg-game-hero {
    position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); isolation: isolate;
    display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px 48px 40px;
}
.ugg-game-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; border-radius: inherit; background: linear-gradient(180deg, rgba(13,16,22,0), rgba(13,16,22,0.9) 75%, var(--bg)); pointer-events: none; }
.ugg-game-hero > * { position: relative; z-index: 1; }
.ugg-hero-art { display: grid; place-items: center; min-height: 380px; perspective: 1600px; perspective-origin: 50% 40%; position: relative; }
.ugg-hero-art .ugg-box3d { cursor: grab; }
.ugg-hero-art .ugg-flat { width: 100%; max-width: 300px; aspect-ratio: var(--ratio, 0.83); background-repeat: no-repeat; background-size: 1000% 1000%; filter: drop-shadow(0 30px 30px rgba(0,0,0,0.6)); }
.ugg-hero-tools { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.ugg-hero-tools button { border: 1px solid var(--line-strong); background: rgba(10,13,19,0.6); color: var(--text-2); border-radius: 999px; padding: 8px 12px; font-family: var(--display); font-size: 12px; cursor: pointer; backdrop-filter: blur(8px); display: inline-flex; align-items: center; gap: 6px; }
.ugg-hero-tools button:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }
.ugg-hero-tools svg { width: 14px; height: 14px; fill: currentColor; }
.ugg-game-hero h1 { font-size: clamp(30px, 4vw, 50px); line-height: 1.02; text-wrap: balance; margin: 12px 0 10px; }
.ugg-game-sub { font-size: 16px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.ugg-game-sub .dot::before { content: "·"; margin-right: 14px; color: var(--text-3); }
.ugg-game-pubs { margin-top: 10px; color: var(--text-3); font-size: 14px; }
.ugg-game-pubs b { color: var(--text-2); font-weight: 500; }
.ugg-ratings { display: flex; flex-wrap: wrap; gap: 18px 32px; margin-top: 22px; }
.ugg-rating-block { display: grid; gap: 4px; }
.ugg-rating-block .label { font-size: 11px; }
.ugg-rating-block .val { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 14px; }
.ugg-rating-block .val small { color: var(--text-3); }
.ugg-game-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.ugg-game-tags .badge { height: 26px; }
.ugg-game-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 980px) { .ugg-game-hero { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px 28px; } .ugg-hero-art { min-height: 320px; } }
@media (max-width: 540px) { .ugg-game-hero { padding: 24px 16px 22px; border-radius: 16px; } }

/* Cartridges */
.ugg-carts { display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 12px; margin-top: 22px; }
.ugg-cart { flex: none; width: 150px; display: grid; gap: 8px; text-align: center; margin: 0; }
.ugg-cart-art { position: relative; display: block; }
.ugg-cart img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 16px rgba(0,0,0,0.5)); transition: transform 0.22s; }
.ugg-cart:hover img { transform: translateY(-4px) rotate(-1deg); }
/* Carts are locked: the file itself is tiny and pre-blurred (cart-locked/), the CSS only softens the upscale */
.ugg-cart.locked { cursor: pointer; outline: none; }
.ugg-cart.locked img { filter: blur(3px) saturate(0.6) brightness(0.7) drop-shadow(0 14px 16px rgba(0,0,0,0.5)); user-select: none; -webkit-user-drag: none; }
.ugg-cart.locked .lock { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; display: grid; place-items: center; background: rgba(13,16,22,0.72); border: 1px solid rgba(255,255,255,0.25); color: #fff; transition: border-color 0.15s, transform 0.22s; }
.ugg-cart.locked .lock svg { width: 16px; height: 16px; fill: currentColor; }
.ugg-cart.locked:hover .lock, .ugg-cart.locked:focus-visible .lock { border-color: var(--sys); transform: translateY(-4px); }
.ugg-cart figcaption { font-family: var(--display); font-size: 12px; color: var(--text-3); line-height: 1.35; }
.ugg-cart figcaption b { display: block; color: var(--text-2); font-weight: 500; }

/* Body layout */
.ugg-game-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.9fr); gap: 40px; margin-top: 36px; align-items: start; }
.ugg-main { display: grid; gap: 40px; min-width: 0; }
.ugg-aside { display: grid; gap: 20px; position: sticky; top: 20px; }
@media (max-width: 980px) { .ugg-game-body { grid-template-columns: 1fr; gap: 32px; } .ugg-aside { position: static; } }

.ugg-card { padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ugg-card h3 { font-size: 18px; margin-bottom: 14px; }

/* Collecting card */
.ugg-collect { background: radial-gradient(120% 80% at 0% 0%, var(--sys-soft), transparent 55%), var(--surface); border-color: rgba(255,255,255,0.12); }
.ugg-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.ugg-price { padding: 12px 12px 10px; border-radius: 12px; background: rgba(0,0,0,0.25); border: 1px solid var(--line); }
.ugg-price b { display: block; font-family: var(--display); font-size: 22px; line-height: 1; color: #fff; }
.ugg-price.gold b { color: var(--gold); }
.ugg-price span { display: block; margin-top: 6px; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--display); }
.ugg-price-note { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.ugg-shop { display: grid; gap: 10px; }
.ugg-shop a {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; text-decoration: none;
    background: rgba(255,255,255,0.06); border: 1px solid var(--line-strong); color: var(--text); transition: transform 0.18s, background 0.18s, border-color 0.18s;
}
.ugg-shop a:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: var(--text); }
.ugg-shop .mark { font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: bold; font-size: 22px; letter-spacing: -0.03em; line-height: 1; display: inline-flex; }
.ugg-shop .mark.ebay span:nth-child(1) { color: #e53238; } .ugg-shop .mark.ebay span:nth-child(2) { color: #0064d2; } .ugg-shop .mark.ebay span:nth-child(3) { color: #f5af02; } .ugg-shop .mark.ebay span:nth-child(4) { color: #86b817; }
.ugg-shop .mark.amazon { color: #fff; position: relative; font-weight: 500; letter-spacing: -0.02em; }
.ugg-shop .mark.amazon::after { content: ""; position: absolute; left: 2px; right: 10px; bottom: -6px; height: 6px; border: 2px solid #ff9900; border-top: 0; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.ugg-shop .txt { display: grid; gap: 2px; }
.ugg-shop .txt b { font-family: var(--display); font-weight: 500; font-size: 15px; }
.ugg-shop .txt span { font-size: 12px; color: var(--text-3); }
.ugg-shop svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; opacity: 0.6; }
.ugg-disclosure { margin-top: 12px; font-size: 11px; line-height: 1.45; color: var(--text-3); }

/* Get the app */
.ugg-app-card { background: linear-gradient(160deg, rgba(61,143,240,0.22), rgba(61,143,240,0) 60%), var(--surface); }
.ugg-app-card .ugg-logo { width: 100%; max-width: 240px; aspect-ratio: 1536 / 448; background: url("/img/logo-large-ultimate-game-guide.webp") left center / contain no-repeat; margin-bottom: 12px; }
.ugg-app-card p { color: var(--text-2); font-size: 14px; line-height: 1.55; }
.ugg-app-card .free { margin-top: 10px; font-size: 12px; color: var(--text-3); }
.ugg-app-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
/* Store badges: keep the logotype at one size in every state (the product-page hover rules enlarge it otherwise) */
.ugg-app-badges .app-store, .ugg-app-badges .mac-app-store, .ugg-app-badges .google-play,
.ugg-app-badges .app-store:hover, .ugg-app-badges .mac-app-store:hover, .ugg-app-badges .google-play:hover { width: 150px; height: 44px; background-size: auto 24px !important; background-position: center center !important; }

/* Screenshots */
.ugg-screens { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ugg-screen { position: relative; aspect-ratio: 256 / 224; border-radius: 10px; overflow: hidden; border: 2px solid rgba(255,255,255,0.9); background: #bebebe center / cover no-repeat; image-rendering: pixelated; cursor: zoom-in; }
.ugg-screen.locked { cursor: pointer; border-color: rgba(255,255,255,0.25); transition: border-color 0.15s, transform 0.15s; image-rendering: auto; }
.ugg-screen.locked:hover { border-color: var(--sys); transform: translateY(-2px); }
.ugg-screen.locked::before { content: ""; position: absolute; inset: -18px; background: #3a3a3a var(--shot) var(--pos) / var(--size) no-repeat; background-origin: content-box; background-clip: content-box; padding: 18px; filter: blur(4px) saturate(0.7); }
.ugg-screen.locked::after { content: ""; position: absolute; inset: 0; background: rgba(13,16,22,0.45); }
.ugg-screen .lock { position: absolute; inset: 0; display: grid; grid-auto-rows: max-content; place-items: center; align-content: center; z-index: 1; gap: 6px; text-align: center; font-family: var(--display); font-size: 12px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.ugg-screen .lock svg { width: 22px; height: 22px; fill: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8)); }
@media (max-width: 720px) { .ugg-screens { grid-template-columns: repeat(2, 1fr); gap: 10px; } .ugg-screen { border-radius: 8px; } .ugg-screen.locked::before { filter: blur(3px) saturate(0.7); } }
.ugg-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; background: rgba(0,0,0,0.92); cursor: zoom-out; padding: 20px; }
.ugg-lightbox.open { display: grid; }
.ugg-lightbox div { width: min(96vw, 1024px); aspect-ratio: 256 / 224; background: center / contain no-repeat; image-rendering: pixelated; border-radius: 12px; }

/* Review */
.ugg-review { position: relative; }
.ugg-review p { font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--text-2); }
.ugg-review .fade { position: relative; max-height: 11.5em; overflow: hidden; }
.ugg-review .fade::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(180deg, rgba(13,16,22,0), var(--bg) 92%); pointer-events: none; }
.ugg-continue { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* Details table */
.ugg-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 24px; border-top: 1px solid var(--line); }
.ugg-detail { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ugg-detail .label { font-size: 11px; padding-top: 3px; }
.ugg-detail .val { font-size: 15px; color: var(--text-2); }
.ugg-detail .val a { text-decoration: none; border-bottom: 1px dotted var(--text-3); }
.ugg-detail .val a:hover { color: var(--sys); border-color: var(--sys); }

/* Tips, codes, genie */
.ugg-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
/* More than 12 tips/codes: the list scrolls, with the 13th row peeking through a fade */
.ugg-list.scroll { max-height: 560px; overflow-y: auto; overscroll-behavior: contain; padding-right: 10px; margin-right: -10px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; -webkit-mask-image: linear-gradient(#000 calc(100% - 56px), transparent); mask-image: linear-gradient(#000 calc(100% - 56px), transparent); }
.ugg-list.scroll li:last-child { border-bottom: 0; }
.ugg-list li { list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ugg-list li[data-unlock] { cursor: pointer; }
.ugg-list li[data-unlock]:hover { color: #fff; }
.ugg-list li[data-unlock]:hover .lock-tag { color: var(--sys); }
.ugg-list ul, .ugg-list ol { margin: 0; padding: 0; }
.ugg-list .lock-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.ugg-list .lock-tag svg { width: 12px; height: 12px; fill: currentColor; }
.ugg-list code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--gold); background: rgba(255,200,61,0.1); padding: 3px 8px; border-radius: 6px; letter-spacing: 0.08em; }
.ugg-list .blur { filter: blur(5px); user-select: none; }
.ugg-note { margin-top: 12px; font-size: 13px; color: var(--text-3); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Media */
.ugg-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; align-items: start; }
.ugg-media figure { margin: 0; display: grid; gap: 8px; }
.ugg-media .frame { position: relative; aspect-ratio: var(--ar, 3 / 4); border-radius: 10px; overflow: hidden; background: var(--surface-2) center / cover no-repeat; border: 1px solid var(--line); }
.ugg-media .frame.locked, .ugg-media .frame.preview { cursor: pointer; outline: none; transition: transform 0.15s, border-color 0.15s; }
.ugg-media .frame.locked:hover, .ugg-media .frame.preview:hover, .ugg-media .frame.preview:focus-visible { transform: translateY(-2px); border-color: var(--sys); }
/* The free preview opens the app modal: a "full size in the app" tag slides up on hover */
.ugg-media .frame .zoom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 22px 8px 9px; background: linear-gradient(180deg, rgba(13,16,22,0), rgba(13,16,22,0.85)); font-family: var(--display); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; transform: translateY(100%); transition: transform 0.2s; }
.ugg-media .frame .zoom svg { width: 13px; height: 13px; fill: currentColor; }
.ugg-media .frame.preview:hover .zoom, .ugg-media .frame.preview:focus-visible .zoom { transform: none; }
@media (hover: none) { .ugg-media .frame .zoom { transform: none; } }
.ugg-media .frame.locked { background-image: none !important; }
.ugg-media .frame.locked::before { content: ""; position: absolute; inset: -20px; background: var(--surface-2) var(--shot) center / cover no-repeat; background-origin: content-box; background-clip: content-box; padding: 20px; filter: blur(5px); }
.ugg-media .frame.locked::after { content: ""; position: absolute; inset: 0; background: rgba(13,16,22,0.5); }
.ugg-media .frame .lock { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.ugg-media .frame .lock svg { width: 22px; height: 22px; fill: #fff; }
.ugg-media figcaption { font-family: var(--display); font-size: 12px; color: var(--text-3); }

/* Pager & share */
.ugg-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.ugg-pager a { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.ugg-pager a.next { grid-template-columns: 1fr 56px; text-align: right; }
.ugg-pager a.next .ugg-pager-art { order: 2; }
.ugg-pager a:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.ugg-pager-art { aspect-ratio: var(--ratio, 0.83); background-repeat: no-repeat; background-size: 1000% 1000%; }
.ugg-pager small { display: block; font-family: var(--display); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.ugg-pager b { font-family: var(--display); font-weight: 500; font-size: 14px; }
@media (max-width: 540px) { .ugg-pager { grid-template-columns: 1fr; } }

.ugg-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: #fff; color: #000; font-family: var(--display); font-size: 13px; padding: 10px 16px; border-radius: 999px; transition: 0.25s; z-index: 1001; pointer-events: none; }
.ugg-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Product-page teaser band ──────────────────────────────────────────── */
.ugg-explore {
    position: relative; z-index: 5; margin-top: 32px; border-radius: var(--r-lg); border: 1px solid var(--line); isolation: isolate;
}
.ugg-explore::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0) 100%); pointer-events: none; }
.ugg-explore-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; padding: 40px 40px; }
.ugg-explore h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.05; margin: 12px 0 12px; text-wrap: balance; }
.ugg-explore p { color: var(--text-2); font-size: 16px; line-height: 1.5; max-width: 48ch; }
.ugg-explore .ugg-search { margin-top: 20px; max-width: 460px; }
.ugg-explore .ugg-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ugg-marquee { position: relative; display: grid; gap: 14px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ugg-marquee-row { display: flex; gap: 14px; width: max-content; animation: ugg-marquee 60s linear infinite; }
.ugg-marquee-row.reverse { animation-direction: reverse; animation-duration: 75s; }
.ugg-marquee:hover .ugg-marquee-row { animation-play-state: paused; }
.ugg-marquee-row a { display: block; width: 92px; aspect-ratio: var(--ratio, 0.83); background-repeat: no-repeat; background-size: 1000% 1000%; filter: drop-shadow(0 10px 12px rgba(0,0,0,0.55)); transition: transform 0.2s; }
.ugg-marquee-row a:hover { transform: translateY(-6px) scale(1.06); }
@keyframes ugg-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 980px) { .ugg-explore-inner { grid-template-columns: 1fr; padding: 28px 22px; } .ugg-explore::after { background: linear-gradient(180deg, rgba(0,0,0,0.75), rgba(0,0,0,0.2)); } }
@media (prefers-reduced-motion: reduce) { .ugg-marquee-row { animation: none; } }

.ugg-lazy-art { background-color: rgba(255,255,255,0.04); }

/* ── Art reveal: with JS, artwork stays transparent until its image has loaded, then fades in (ugg.js revealArt).
   3D boxes fade as a whole scene (.ugg-float-stage / .ugg-hero-art): opacity below 1 flattens preserve-3d, so fading
   a box itself would show it flat until the fade ends. The 3.5s safety animation shows everything regardless. ── */
html.ugg-js :is(.ugg-tile-art, .ugg-marquee-row a, .ugg-float-stage, .ugg-hero-art, .ugg-door-strip span, .ugg-screen, .ugg-media .frame, .ugg-cart img, .ugg-pager-art, .app-hero .viewer-layer:first-child, .app-hero .game-logo):not(.is-loaded) { opacity: 0; animation: ugg-art-safety 0.4s ease 3.5s forwards; }
html.ugg-js :is(.ugg-tile-art, .ugg-marquee-row a, .ugg-float-stage, .ugg-hero-art, .ugg-door-strip span, .ugg-screen, .ugg-media .frame, .ugg-cart img, .ugg-pager-art, .app-hero .viewer-layer:first-child, .app-hero .game-logo).is-loaded { animation: ugg-art-in 0.55s ease backwards; }
html.ugg-js :is(.ugg-tile-art, .ugg-marquee-row a, .ugg-float-stage, .ugg-hero-art, .ugg-door-strip span, .ugg-screen, .ugg-media .frame, .ugg-cart img, .ugg-pager-art, .app-hero .viewer-layer:first-child, .app-hero .game-logo).is-loaded.now { animation: none; }
@keyframes ugg-art-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ugg-art-safety { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html.ugg-js :is(.ugg-tile-art, .ugg-marquee-row a, .ugg-float-stage, .ugg-hero-art, .ugg-door-strip span, .ugg-screen, .ugg-media .frame, .ugg-cart img, .ugg-pager-art, .app-hero .viewer-layer:first-child, .app-hero .game-logo).is-loaded { animation-duration: 0.01s; } }

/* Long breadcrumbs (Apps / Ultimate Game Guide / Game Database / NES / Title) must wrap on phones */
.path { flex-wrap: wrap; min-width: 0; }
.path > span { min-width: 0; }

/* ── App download modal (opened from any locked item) ───────────────────── */
.ugg-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; background: rgba(6,8,12,0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ugg-modal[hidden] { display: none; }
.ugg-modal-panel {
    position: relative; width: min(100%, 520px); padding: 28px 28px 26px; border-radius: 24px;
    background: radial-gradient(120% 70% at 50% 0%, rgba(61,143,240,0.28), transparent 60%), #121722;
    border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(0,0,0,0.4);
    animation: ugg-modal-in 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes ugg-modal-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ugg-modal-panel { animation: none; } }
.ugg-modal-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.06); color: var(--text-2); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ugg-modal-close:hover { background: rgba(255,255,255,0.14); color: #fff; }
/* 48px touch target around the 36px button, without changing its look */
.ugg-modal-close::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.ugg-modal-panel { text-align: center; }
.ugg-modal-art { position: relative; height: 120px; margin: 10px 0 10px; display: grid; place-items: center; }
.ugg-modal-glow { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(61,143,240,0.35), transparent); filter: blur(10px); }
.ugg-modal-art .ugg-logo { position: relative; width: min(340px, 86%); aspect-ratio: 1536 / 448; background: transparent url("/img/logo-large-ultimate-game-guide.webp") center / contain no-repeat; }
.ugg-modal-panel h3 { font-size: 24px; margin: 10px 0 10px; }
.ugg-modal-panel .ugg-modal-msg { font-size: 15px; line-height: 1.55; color: var(--text); margin: 0 auto; max-width: 48ch; text-wrap: balance; }
.ugg-modal-panel .ugg-modal-also { margin: 8px auto 0; font-size: 13px; line-height: 1.5; color: var(--text-3); max-width: 50ch; text-wrap: balance; }
.ugg-modal-panel .ugg-app-badges { margin-top: 20px; justify-content: center; }
.ugg-modal-panel .free { margin-top: 12px; font-size: 12px; color: var(--text-3); }
.ugg-app-badges > a { display: block; flex: 0 0 auto; }
@media (max-width: 540px) {
    .ugg-modal { padding: 12px; }
    .ugg-modal-panel { padding: 20px 18px 18px; border-radius: 20px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
    .ugg-modal-art { height: 96px; margin: 6px 0 6px; }
    .ugg-modal-art .ugg-logo { width: min(300px, 88%); }
    .ugg-modal-glow { width: 220px; height: 220px; }
    .ugg-modal-panel h3 { font-size: 21px; margin: 8px 0 8px; }
    .ugg-modal-msg { font-size: 14px; }
    .ugg-modal-panel .ugg-app-badges { margin-top: 16px; }
    .ugg-modal-panel .ugg-app-badges > a { flex: 1 1 calc(50% - 5px); min-width: 140px; }
    .ugg-modal-panel .ugg-app-badges > a > div { width: 100%; }
}
@media (max-height: 640px) { .ugg-modal-art { height: 80px; margin: 0; } .ugg-modal-glow { display: none; } }

/* ── Currency picker ───────────────────────────────────────────────────── */
.ugg-currency { display: inline-flex; align-items: center; gap: 8px; }
.ugg-currency-label { font-family: var(--display); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.ugg-currency .ugg-select select { height: 36px; padding: 0 32px 0 12px; font-size: 13px; }
.ugg-currency .ugg-select::after { right: 12px; }
.ugg-prefs { display: flex; justify-content: flex-end; margin-top: 16px; }
.ugg-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ugg-card-head h3 { margin-bottom: 0; }
.ugg-card-head .ugg-currency-label { display: none; }
.ugg-card-head .ugg-currency .ugg-select select { height: 32px; background: rgba(0,0,0,0.25); }

/* ── Collector's shelf (ugg/shelf.php) ─────────────────────────────────── */
.ugg-shelf-hero {
    position: relative; isolation: isolate; border-radius: var(--r-lg); border: 1px solid var(--line);
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 48px 44px;
}
.ugg-shelf-hero::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #000 url("/img/ugg/shared/stars-bg.webp") center top / cover no-repeat; z-index: -1; }
.ugg-shelf-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 50%; border-radius: inherit; background: linear-gradient(180deg, rgba(13,16,22,0), rgba(13,16,22,0.85) 80%, var(--bg)); pointer-events: none; z-index: -1; }
.ugg-shelf-hero h1 { font-size: clamp(30px, 4vw, 52px); line-height: 1.05; text-wrap: balance; margin: 14px 0 16px; }
.ugg-shelf-hero h1 b { color: var(--gold); font-weight: inherit; }
.ugg-shelf-hero .ugg-lead { font-size: 17px; line-height: 1.5; color: var(--text-2); max-width: 44ch; }
.ugg-shelf-hero .ugg-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.ugg-shelf-stats { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
.ugg-shelf-stats .ugg-stat { background: rgba(10,13,19,0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ugg-shelf-stats .ugg-stat-value { grid-column: 1 / -1; }
.ugg-shelf-stats .ugg-stat-value b { color: var(--gold); }
/* Grid children may shrink below their content (long headline words, stat labels) instead of pushing the hero wider */
.ugg-shelf-hero > * { min-width: 0; }
/* Tablets and phones: one column, the numbers below the headline and actions */
@media (max-width: 980px) {
    .ugg-shelf-hero { grid-template-columns: 1fr; gap: 26px; padding: 36px 28px; }
    .ugg-shelf-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
    .ugg-shelf-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .ugg-shelf-hero { gap: 20px; padding: 24px 18px 20px; border-radius: 18px; }
    .ugg-shelf-hero h1 { font-size: 30px; line-height: 1.08; margin: 12px 0 12px; }
    .ugg-shelf-hero .ugg-lead { font-size: 15px; }
    .ugg-shelf-hero .ugg-hero-actions { flex-direction: column; gap: 8px; margin-top: 18px; }
    .ugg-shelf-hero .ugg-hero-actions .ugg-btn { width: 100%; justify-content: center; }
    .ugg-shelf-hero .ugg-kicker { font-size: 11px; letter-spacing: 0.1em; }
    .ugg-collector { max-width: none; margin: 16px 0 4px; }
    .ugg-shelf-stats { gap: 8px; }
    .ugg-shelf-stats .ugg-stat { padding: 12px 14px; }
    .ugg-shelf-stats .ugg-stat b { font-size: 22px; }
    .ugg-shelf-stats .ugg-stat span { font-size: 10px; letter-spacing: 0.06em; }
}
.ugg-shelf-missing { grid-template-columns: 1fr; }
/* Collector card (profile shared from the app) */
.ugg-collector { display: flex; align-items: center; gap: 16px; margin: 18px 0 6px; padding: 14px 16px; border-radius: 18px; background: rgba(10,13,19,0.66); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); max-width: 520px; }
.ugg-collector-photo { width: 72px; height: 72px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.85); box-shadow: 0 10px 24px -10px rgba(0,0,0,0.9); background: var(--surface-2); }
.ugg-collector-initial { display: grid; place-items: center; font-family: var(--display); font-size: 30px; font-weight: bold; color: #fff; background: linear-gradient(160deg, var(--nes), var(--snes)); }
.ugg-collector-text { display: grid; gap: 2px; min-width: 0; }
.ugg-collector-kicker { font-family: var(--display); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.ugg-collector-name { font-family: var(--display); font-size: 20px; font-weight: bold; line-height: 1.15; overflow-wrap: anywhere; }
.ugg-collector-bio { font-size: 14px; line-height: 1.45; color: var(--text-2); margin-top: 4px; overflow-wrap: anywhere; }
@media (max-width: 540px) { .ugg-collector { gap: 12px; padding: 12px; } .ugg-collector-photo { width: 56px; height: 56px; } .ugg-collector-initial { font-size: 24px; } .ugg-collector-name { font-size: 17px; } }
.ugg-shelf-n { font-size: 14px; color: var(--text-3); font-weight: 500; margin-left: 8px; white-space: nowrap; }

/* The app's glass shelves (GamesViewController.loadGames / games.css): a pegboard, a shelf image repeated
   every row period, and sheet cells floated with the app's margins. The shelf has depth, so the angled
   cartridges only sit right at these exact proportions. Every length is a multiple of one unit (--u), which is
   the board width divided by the app's design width: 420 for the phone layout (NES and Game Boy 4 across,
   Super NES 3), 840 for the iPad layout (8 / 6, viewports from 900px). The board therefore fills its container, the same
   width as the hero above it, at any size. */
/* --u is registered as a length so it is resolved on the board (in px) and inherited as a plain length
   by every tile, whatever the browser's rules for container units inside custom properties; ugg.js also
   sets it in px from the board's measured width (initAppShelves) for browsers without container units. */
@property --u { syntax: '<length>'; inherits: true; initial-value: 1px; }
.ugg-app-shelf-wrap { display: block; container-type: inline-size; }
.ugg-app-shelves {
    --u: calc(100cqw / 420); --design: 420;
    position: relative; width: 100%; display: flow-root; border-radius: var(--r-lg); overflow: hidden;
    background: #000 url("/img/ugg/shared/app/nes-peg.png") center top / 100% calc(26 * var(--u)) repeat;
    box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9), inset 0 0 0 1px var(--line);
    padding-bottom: calc(var(--pb) * var(--u));
}
.ugg-app-shelves::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--first) * var(--u)); bottom: 0; z-index: 1; background: var(--shelf-url) center top / 100% calc(var(--period) * var(--u)) repeat-y; }
.ugg-app-shelves.sys-nes  { --tw: 100; --th: 120; --mt: 25; --ml: -3; --mr: 0;  --mlf: 15; --first: 132; --period: 145; --sw: 1000; --sh: 1200; --pb: 57; }
.ugg-app-shelves.sys-snes { --tw: 120; --th: 120; --mt: 5;  --ml: 0;  --mr: 10; --mlf: 20; --first: 101; --period: 125; --sw: 1200; --sh: 1200; --pb: 57; }
/* Game Boy (ShelfLayout.forSystem in the apps): 120-unit tiles that overlap by their empty margins, 4 across */
.ugg-app-shelves.sys-gb   { --tw: 120; --th: 120; --mt: 15; --ml: -10; --mr: -5; --mlf: -10; --first: 122; --period: 135; --sw: 1200; --sh: 1200; --pb: 57; }
.ugg-app-shelves.sys-nes::before  { --shelf-url: url("/img/ugg/shared/app/nes-shelf.png"); }
.ugg-app-shelves.sys-snes::before { --shelf-url: url("/img/ugg/shared/app/snes-shelf.png"); }
.ugg-app-shelves.sys-gb::before   { --shelf-url: url("/img/ugg/shared/app/gb-shelf.png"); }
.ugg-app-tile {
    position: relative; z-index: 2; float: left; display: block;
    width: calc(var(--tw) * var(--u)); height: calc(var(--th) * var(--u));
    margin: calc(var(--mt) * var(--u)) calc(var(--mr) * var(--u)) 0 calc(var(--ml) * var(--u));
    background-repeat: no-repeat; background-size: calc(var(--sw) * var(--u)) calc(var(--sh) * var(--u));
    text-decoration: none; color: var(--text);
    transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1); transform-origin: 50% 100%;
}
.ugg-app-tile.ugg-lazy-art { background-color: transparent; }
.ugg-app-shelves.sys-nes  .ugg-app-tile:nth-child(4n+1) { margin-left: calc(var(--mlf) * var(--u)); clear: left; }
.ugg-app-shelves.sys-snes .ugg-app-tile:nth-child(3n+1) { margin-left: calc(var(--mlf) * var(--u)); clear: left; }
.ugg-app-shelves.sys-gb   .ugg-app-tile:nth-child(4n+1) { margin-left: calc(var(--mlf) * var(--u)); clear: left; }
/* Game Boy boxes come in five sizes and the app seats each at its own depth on the shelf (games.css .box-type-N) */
.ugg-app-shelves.sys-gb .ugg-app-tile.bt-1 { top: calc(-1 * var(--u)); }
.ugg-app-shelves.sys-gb .ugg-app-tile.bt-2 { top: calc(-10 * var(--u)); }
.ugg-app-shelves.sys-gb .ugg-app-tile.bt-4 { top: calc(10 * var(--u)); }
.ugg-app-shelves.sys-gb .ugg-app-tile.bt-5 { top: calc(-10 * var(--u)); }
/* a shelf game whose system has no public page yet is not a link */
span.ugg-app-tile { cursor: default; }
@media (hover: hover) { .ugg-app-tile:hover { transform: translateY(-7px) scale(1.04); z-index: 3; } }
.ugg-app-tile:focus-visible { transform: translateY(-7px) scale(1.04); z-index: 3; outline: none; }
.ugg-app-name {
    position: absolute; left: 50%; top: -14px; z-index: 4; transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
    max-width: 180px; padding: 4px 8px; border-radius: 6px; background: rgba(10,13,19,0.94); border: 1px solid var(--line);
    font-family: var(--display); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.15s, transform 0.15s;
}
@media (hover: hover) { .ugg-app-tile:hover .ugg-app-name { opacity: 1; transform: translate(-50%, 0); } }
.ugg-app-tile:focus-visible .ugg-app-name { opacity: 1; transform: translate(-50%, 0); }
.ugg-app-count, .ugg-app-tag { position: absolute; z-index: 3; font-family: var(--display); font-weight: bold; line-height: 1; pointer-events: none; }
.ugg-app-count { right: 6%; top: 10%; padding: 3px 6px; border-radius: 999px; background: rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.45); font-size: 11px; color: #fff; }
.ugg-app-tag { left: 8%; top: 10%; padding: 3px 5px; border-radius: 4px; background: var(--sys, var(--nes)); color: #fff; font-size: 8px; letter-spacing: 0.08em; }
.ugg-app-shelves.sys-snes .ugg-app-tag { --sys: var(--snes); }
.ugg-app-shelves.sys-gb .ugg-app-tag { --sys: #393c9f; left: 14%; top: 22%; }
.ugg-app-shelves.sys-gb .ugg-app-count { right: 12%; top: 22%; }
/* Super NES boxes are landscape and sit in the lower part of their square cell (art starts about
   30 units down), so the hover title drops to just above the box instead of floating over the shelf above. */
.ugg-app-shelves.sys-snes .ugg-app-name { top: calc(30 * var(--u) - 28px); }
.ugg-app-shelves.sys-gb .ugg-app-name { top: calc(22 * var(--u) - 28px); }

/* Tablet / desktop: the app's iPad layout (twice the design width, 8 and 6 across) */
@media (min-width: 900px) {
    .ugg-app-shelves { --u: calc(100cqw / 840); --design: 840; background-image: url("/img/ugg/shared/app/nes-peg-tablet.png"); }
    .ugg-app-shelves.sys-nes  { --mlf: 30; }
    .ugg-app-shelves.sys-snes { --mlf: 35; }
    .ugg-app-shelves.sys-nes::before  { --shelf-url: url("/img/ugg/shared/app/nes-shelf-tablet.png"); }
    .ugg-app-shelves.sys-snes::before { --shelf-url: url("/img/ugg/shared/app/snes-shelf-tablet.png"); }
    .ugg-app-shelves.sys-gb::before   { --shelf-url: url("/img/ugg/shared/app/gb-shelf-tablet.png"); }
    .ugg-app-shelves.sys-nes  .ugg-app-tile:nth-child(4n+1) { margin-left: calc(var(--ml) * var(--u)); clear: none; }
    .ugg-app-shelves.sys-snes .ugg-app-tile:nth-child(3n+1) { margin-left: calc(var(--ml) * var(--u)); clear: none; }
    .ugg-app-shelves.sys-gb   .ugg-app-tile:nth-child(4n+1) { margin-left: calc(var(--ml) * var(--u)); clear: none; }
    .ugg-app-shelves.sys-nes  .ugg-app-tile:nth-child(8n+1) { margin-left: calc(var(--mlf) * var(--u)); clear: left; }
    .ugg-app-shelves.sys-snes .ugg-app-tile:nth-child(6n+1) { margin-left: calc(var(--mlf) * var(--u)); clear: left; }
    .ugg-app-shelves.sys-gb   .ugg-app-tile:nth-child(8n+1) { margin-left: calc(var(--mlf) * var(--u)); clear: left; }
}
/* Browsers without container-query units get the app's fixed-size board, centred */
@supports not (width: 1cqw) {
    .ugg-app-shelf-wrap { display: flex; justify-content: center; }
    .ugg-app-shelves { --u: 1px; width: 420px; }
    @media (min-width: 900px) { .ugg-app-shelves { width: 840px; } }
}

.ugg-shelf-note { font-size: 13px; color: var(--text-3); white-space: normal; max-width: 60ch; text-align: right; }
@media (max-width: 720px) { .ugg-shelf-note { text-align: left; } }

/* Share this shelf */
.ugg-shelf-share { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-top: 18px; padding: 14px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ugg-shelf-share-label { font-family: var(--display); font-weight: bold; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.ugg-shelf-share-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ugg-share-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 12px;
    border-radius: 999px; border: 1px solid var(--line-strong, rgba(255,255,255,0.2)); background: rgba(255,255,255,0.05); color: var(--text);
    font-family: var(--display); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s, color 0.15s;
}
.ugg-share-btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.ugg-share-btn[hidden] { display: none; }
.ugg-share-btn:hover { transform: translateY(-1px); border-color: transparent; color: #fff; }
.ugg-share-btn.x:hover { background: #000; border-color: rgba(255,255,255,0.4); }
.ugg-share-btn.facebook:hover { background: #1877f2; }
.ugg-share-btn.bluesky:hover { background: #1185fe; }
.ugg-share-btn.threads:hover { background: #000; border-color: rgba(255,255,255,0.4); }
.ugg-share-btn.reddit:hover { background: #ff4500; }
.ugg-share-btn.whatsapp:hover { background: #25d366; }
.ugg-share-btn.email:hover, .ugg-share-btn.copy:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }
.ugg-share-btn.native { background: var(--accent); border-color: transparent; color: #fff; padding: 0 16px; }
.ugg-share-btn.native:hover { filter: brightness(1.1); }
.ugg-share-btn.copy.done { background: rgba(61,220,132,0.18); border-color: rgba(61,220,132,0.6); }
@media (max-width: 540px) {
    .ugg-shelf-share { padding: 14px; }
    /* Even rows on phones: the Share button across the top, then the eight round buttons four by four */
    .ugg-shelf-share-list { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
    .ugg-share-btn { min-width: 0; }
    .ugg-share-btn.native { grid-column: 1 / -1; }
    .ugg-share-btn.copy span { display: none; }
}

/* Get the app: the way to build your own shelf */
.ugg-shelf-promo {
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 34px 38px;
    border-radius: var(--r-lg); border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(61,143,240,0.24), rgba(61,143,240,0) 60%), var(--surface);
}
.ugg-shelf-promo h2 { font-size: 28px; line-height: 1.12; margin: 10px 0 12px; text-wrap: balance; }
.ugg-shelf-promo p { color: var(--text-2); font-size: 15px; line-height: 1.55; max-width: 52ch; }
.ugg-shelf-promo-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.ugg-shelf-promo-list li { position: relative; padding-left: 26px; font-size: 14px; color: var(--text-2); }
.ugg-shelf-promo-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat; }
.ugg-shelf-promo .free { margin-top: 10px; font-size: 12px; color: var(--text-3); }
.ugg-shelf-promo-art { display: grid; place-items: center; min-height: 200px; position: relative; }
.ugg-shelf-promo-art::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(61,143,240,0.45), rgba(61,143,240,0) 70%); filter: blur(10px); }
/* No filter on the logo: Safari draws a drop-shadow on a contained background image as a dark box the size of the element */
.ugg-shelf-promo-art .ugg-logo { position: relative; width: min(360px, 90%); aspect-ratio: 1536 / 448; background: transparent url("/img/logo-large-ultimate-game-guide.webp") center / contain no-repeat; }
/* ".ugg p { margin: 0 }" outranks a single class, so the footnote rule is scoped under .ugg */
.ugg .ugg-shelf-foot { margin: 40px auto 8px; max-width: 72ch; text-align: center; }
@media (max-width: 720px) { .ugg-shelf-promo { grid-template-columns: 1fr; padding: 26px 20px; } .ugg-shelf-promo-art { min-height: 120px; order: -1; } }
