/* Astghik Games — "Browse games" section (other developers' games; templates/browse-*.php).
   Loaded on /browse-games/ pages only, after site.css, and reuses its tokens. */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.btn--sm { min-height: 36px; padding: 6px 14px; font-size: .86rem; }

/* "Made by other studios" notes: visible but quiet. */
.bnote { margin: 14px 0 0; color: var(--faint); font-size: .92rem; }
.bnote a { white-space: nowrap; }
.bnotours { margin: -4px 0 16px; color: var(--faint); font-size: .86rem; }
.bsmall { color: var(--faint); font-size: .84rem; margin: 12px 0 0; }

/* ---------- Status pill ---------- */
.bstatus { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font: 700 .68rem/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .08em; border: 1px solid; white-space: nowrap; }
.bstatus--in-dev { color: #bfe0e2; background: rgba(127, 183, 187, .14); border-color: rgba(127, 183, 187, .45); }
.bstatus--completed { color: #a9e6bd; background: rgba(127, 207, 154, .14); border-color: rgba(127, 207, 154, .45); }
.bstatus--on-hold { color: #f2d49a; background: rgba(232, 191, 106, .13); border-color: rgba(232, 191, 106, .45); }
.bstatus--abandoned { color: #c9c9cf; background: rgba(163, 166, 177, .12); border-color: rgba(163, 166, 177, .4); }

/* ---------- Hub layout: filters beside the grid on wide screens ---------- */
.browse { display: grid; gap: 24px; }
@media (min-width: 1024px) {
    .browse { grid-template-columns: 292px minmax(0, 1fr); gap: 32px; align-items: start; }
    .bfilters { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
    .admin-bar .bfilters { top: calc(var(--header-h) + 48px); max-height: calc(100vh - var(--header-h) - 64px); }
    .browse > .bgrid, .browse > .bempty { grid-column: 2; }
}

/* ---------- Filter panel ---------- */
.bfilters { display: grid; gap: 14px; align-content: start; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.bfilters__row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; align-items: end; }
.bfilters__row .bfield--search { grid-column: 1 / -1; }
.bfilters__row .bcheck { align-self: end; min-height: 42px; }
@media (min-width: 640px) and (max-width: 1023px) {
    .bfilters__row { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; }
    .bfilters__row .bfield--search { grid-column: auto; }
}
.bfield { display: grid; gap: 5px; min-width: 0; }
.bfield__label { font: 600 .72rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.bfield input, .bfield select, .btagsearch {
    width: 100%; min-height: 42px; padding: 9px 12px;
    background: var(--bg-2); color: var(--text);
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    font: 400 .95rem/1.3 var(--font-body);
    transition: border-color .15s, box-shadow .15s;
}
.bfield select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 34px; }
[dir="rtl"] .bfield select { background-position: 13px 50%, 18px 50%; }
.bfield input:focus, .bfield select:focus, .btagsearch:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(127, 183, 187, .22); }
.bfilters ::placeholder { color: var(--faint); }

.bcheck { display: flex; align-items: center; gap: 9px; min-height: 30px; font-size: .9rem; color: var(--muted); cursor: pointer; line-height: 1.3; }
.bcheck:hover { color: var(--text); }
.bcheck input { width: 17px; height: 17px; margin: 0; accent-color: var(--gold); flex: none; }
.bcheck:has(input:checked) { color: var(--text); }
.bcount-n { margin-inline-start: auto; padding-inline-start: 6px; color: var(--faint); font-size: .78rem; font-variant-numeric: tabular-nums; }

.bfilters__groups { display: grid; gap: 0; border-top: 1px solid var(--border); }
@media (min-width: 640px) and (max-width: 1023px) {
    .bfilters__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
}
.bgroup { border-bottom: 1px solid var(--border); }
.bgroup > summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: .93rem; user-select: none; -webkit-user-select: none; }
.bgroup > summary::-webkit-details-marker { display: none; }
.bgroup > summary::marker { content: ""; }
.bgroup > summary::after { content: ""; width: 7px; height: 7px; margin-inline-start: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.bgroup[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.bgroup > summary:hover { color: var(--gold-hi); }
.bgroup__opts { display: grid; gap: 2px; padding: 0 0 12px; max-height: 260px; overflow-y: auto; scrollbar-width: thin; }
.bgroup__sep { width: 100%; margin: 6px 0; border: 0; border-top: 1px solid var(--border); } /* Language: site languages above, others below */
.bgroup__sel { padding: 1px 8px; border-radius: 999px; background: rgba(217, 178, 106, .16); color: var(--gold-hi); font-size: .72rem; font-weight: 700; }
.bgroup--tags { border-top: 1px solid var(--border); margin-top: -14px; }
.bfilters__groups + .bgroup--tags { border-top: 0; }
.bhint { flex-basis: 100%; order: 3; color: var(--faint); font-weight: 400; font-size: .8rem; }
.btagsearch { min-height: 38px; margin: 0 0 10px; font-size: .9rem; }
.btags { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; max-height: 360px; overflow-y: auto; scrollbar-width: thin; }
.btag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; min-height: 30px;
    border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
    font: 500 .8rem/1.2 var(--font-body); cursor: pointer;
    transition: color .12s, border-color .12s, background .12s;
}
.btag:hover { color: var(--text); border-color: var(--border-strong); }
.btag .bcount-n { margin: 0; padding: 0; font-size: .72rem; }
.btag.is-in { color: #a9e6bd; background: rgba(127, 207, 154, .14); border-color: rgba(127, 207, 154, .55); }
.btag.is-in::before { content: "+"; font-weight: 700; }
.btag.is-ex { color: #f6c1c1; background: rgba(239, 122, 122, .12); border-color: rgba(239, 122, 122, .55); text-decoration: line-through; text-decoration-thickness: 1px; }
.btag.is-ex::before { content: "\2212"; font-weight: 700; text-decoration: none; display: inline-block; }
.btag[hidden] { display: none; }
.btags__none { color: var(--faint); font-size: .85rem; margin: 0 0 12px; }

/* Active tag chips: what is included or excluded right now, each one removable. */
.bactive { display: flex; flex-wrap: wrap; gap: 6px; }
.bactive[hidden] { display: none; }
.bactive .btag::after { content: "\00d7"; margin-inline-start: 2px; color: inherit; opacity: .75; font-size: .95rem; text-decoration: none; }

.bfilters__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bresult { font-weight: 600; font-size: .95rem; color: var(--text); }
.no-js .bfilters__foot .btn { display: none; }

/* ---------- Cards ---------- */
.bgrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.bgrid--related { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.bcard { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.bcard[hidden] { display: none !important; }
.bcard:hover { transform: translateY(-3px); border-color: rgba(217, 178, 106, .4); box-shadow: var(--shadow); }
.bcard__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.bcard:hover .bcard__media img { transform: scale(1.03); }
.bcard__media .bstatus { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bcard__media .bstatus--in-dev { background: rgba(10, 30, 32, .78); }
.bcard__media .bstatus--completed { background: rgba(14, 40, 24, .8); }
.bcard__media .bstatus--on-hold { background: rgba(44, 33, 10, .8); }
.bcard__media .bstatus--abandoned { background: rgba(24, 25, 30, .82); }
/* No title art: the lead screenshot gets the game's name on top. */
.bcard__overlay {
    position: absolute; inset: auto 0 0 0; z-index: 1;
    padding: 34px 14px 12px;
    background: linear-gradient(180deg, transparent, rgba(8, 9, 13, .62) 38%, rgba(8, 9, 13, .9));
    font: 700 1.12rem/1.15 var(--font-display); color: #fff; letter-spacing: .02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
    overflow-wrap: anywhere;
}
.bcard__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.bcard__title { font-size: 1.04rem; margin: 0; }
.bcard__title a { color: var(--text); }
.bcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.bcard__title a:hover { color: var(--gold-hi); }
.bcard__meta { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; font-size: .8rem; color: var(--muted); }
.bcard__rating { color: var(--gold); font-weight: 600; white-space: nowrap; }
.bcard__tagline { margin: 2px 0 0; font-size: .87rem; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bcard .tags { margin-top: auto; padding-top: 6px; }
.bempty { padding: 48px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); }

/* ---------- Game page ---------- */
.game-hero__art--lead { position: relative; }
.game-hero__art--lead img { aspect-ratio: 16 / 9; object-fit: cover; }
.bcard__overlay--hero { padding: 60px 22px 18px; font-size: clamp(1.4rem, 3.4vw, 2.1rem); border-radius: 0 0 var(--radius) var(--radius); }
.bgame .game-hero__meta a { color: var(--gold); font-weight: 600; }

.btabs { display: flex; gap: 4px; margin-top: 22px; border-bottom: 1px solid var(--border); }
.btabs__tab { padding: 10px 16px 11px; color: var(--muted); font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.btabs__tab:hover { color: var(--text); }
.btabs__tab[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }
.btabs + .game-body { padding-top: clamp(24px, 4vw, 40px); }

.bgame .tags a.tag { display: inline-block; color: var(--text); transition: border-color .15s, color .15s; }
.bgame .tags a.tag:hover { color: var(--gold-hi); border-color: rgba(217, 178, 106, .45); }

.blinks { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.blinks a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-size: .92rem; font-weight: 500; }
.blinks a::after { content: "\2197"; color: var(--faint); }
.blinks a:hover { border-color: rgba(217, 178, 106, .45); color: var(--gold-hi); }

/* ---------- Review page ---------- */
.breview__head { display: grid; gap: 22px; align-items: center; }
@media (min-width: 760px) { .breview__head { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; } }
.bscore { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: start; column-gap: 6px; padding: 18px 24px; border-radius: var(--radius); border: 1px solid rgba(217, 178, 106, .4); background: radial-gradient(ellipse at 30% 0%, rgba(217, 178, 106, .16), transparent 70%), var(--surface); }
.bscore__num { font: 700 clamp(2.4rem, 6vw, 3.2rem)/1 var(--font-display); color: var(--gold-hi); }
.bscore__of { color: var(--muted); font-weight: 600; }
.bscore__label { grid-column: 1 / -1; margin-top: 6px; font: 600 .72rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: var(--faint); }

.bpc { display: grid; gap: 20px; }
@media (min-width: 720px) { .bpc { grid-template-columns: 1fr 1fr; } }
.bpc__col { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.bpc__col .game-section__title { font-size: 1.08rem; border-bottom: 0; padding-bottom: 0; margin-bottom: 12px; }
.bpc__col--pros { border-top: 2px solid var(--ok); }
.bpc__col--pros .game-section__title { color: var(--ok); }
.bpc__col--cons { border-top: 2px solid var(--danger); }
.bpc__col--cons .game-section__title { color: #f3a3a3; }
.bpc ul { margin: 0; padding-inline-start: 1.1em; color: #d6d5d1; font-size: .95rem; }
.bpc li + li { margin-top: .5em; }
.bverdict { padding: 16px 20px; border-inline-start: 3px solid var(--gold); background: rgba(217, 178, 106, .06); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.05rem; color: var(--text) !important; }
[dir="rtl"] .bverdict { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }

.bmini { display: grid; gap: 4px; padding: 0; overflow: hidden; color: var(--text); transition: border-color .15s; }
.bmini:hover { border-color: rgba(217, 178, 106, .45); color: var(--text); }
.bmini img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 8px; }
.bmini__title { padding: 0 18px; font: 700 1.05rem/1.25 var(--font-display); }
.bmini__meta { padding: 0 18px 16px; color: var(--muted); font-size: .86rem; }

/* ---------- "From Astghik Games" and prose ---------- */
.bours { border-top: 1px solid var(--border); background: radial-gradient(ellipse at 10% 0%, rgba(217, 178, 106, .07), transparent 60%); }
.bprose { color: #d6d5d1; }
.bprose .section__title { margin-bottom: 14px; }
.bprose p { color: var(--muted); }

/* Title art is often a small store header (460 px): show it at its own size rather than blown up. */
.bgame .game-hero__art:not(.game-hero__art--lead) img { width: auto; max-width: 100%; margin-inline: auto; }
.page-head .bnotours { margin: 10px 0 0; }

/* The free download (or "Buy the game here") is the first official link. */
.blinks a.blinks__main { border-color: rgba(217, 178, 106, .45); color: var(--gold-hi); font-weight: 600; }

/* Sidebar (wide screens): one filter per row, label beside its dropdown, so "Most popular" fits. */
@media (min-width: 1024px) {
    .bfilters__row { grid-template-columns: 1fr; gap: 8px; }
    .bfilters__row .bfield:not(.bfield--search) { grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 10px; }
    .bfilters__row .bcheck { min-height: 34px; }
}

/* ---------- Walkthroughs (templates/browse-walkthrough.php, browse-walkthroughs.php) ---------- */
.bwalk__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; color: var(--muted); font-size: .92rem; }
/* Long-form reading: a little larger and airier than the game pages. */
.bwalk__intro p, .bwalk__main .game-section p { font-size: 1.04rem; line-height: 1.75; overflow-wrap: break-word; }
.bwalk__intro p { color: var(--text); }
.btoc { margin: 28px 0 44px; padding: 18px 22px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.btoc__title { margin: 0 0 12px; font: 600 .76rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: var(--faint); }
.btoc__list { margin: 0; padding-inline-start: 1.5em; color: var(--faint); font-size: .95rem; line-height: 1.45; }
.btoc__list li { padding: 3px 0; break-inside: avoid; }
.btoc__list li::marker { font-variant-numeric: tabular-nums; }
.btoc__list a { color: var(--text); }
.btoc__list a:hover { color: var(--gold-hi); }
@media (min-width: 720px) { .btoc__list { columns: 2; column-gap: 36px; } }
.bsteps { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: bstep; }
.game-section__title + .bsteps { margin-top: 0; }
.bsteps li { position: relative; counter-increment: bstep; padding: 12px 16px; padding-inline-start: 54px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: #d6d5d1; line-height: 1.6; overflow-wrap: break-word; }
.bsteps li::before { content: counter(bstep); position: absolute; top: 12px; inset-inline-start: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(217, 178, 106, .14); border: 1px solid rgba(217, 178, 106, .45); color: var(--gold-hi); font: 700 .8rem/1 var(--font-body); }
.bwalk__note { margin-top: 36px; }
.bwalk__links { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.bwalk__links .link-arrow { white-space: normal; }
/* Hub cards show the whole description (a game card's tagline is cut to three lines). */
.bwcard__desc { margin: 2px 0 0; font-size: .87rem; line-height: 1.5; color: var(--muted); }
/* Overview, Review and Walkthrough side by side on small phones. */
@media (max-width: 420px) { .btabs__tab { padding-inline: 12px; } }

/* ---------- Landing pages (categories, games like, top lists, new) ---------- */
.bsubnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.bsubnav a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: .86rem; line-height: 1.2; transition: border-color .15s, color .15s; }
.bsubnav a:hover, .bsubnav a[aria-current="page"] { color: var(--gold-hi); border-color: rgba(217, 178, 106, .45); }
.bcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; color: var(--faint); font-size: .84rem; }
.bcrumbs a { color: var(--muted); }
.bprose--lead { max-width: 820px; }
.bprose--lead p { margin: 0 0 .8em; }
.section__title--sm { font-size: 1.3rem; }
.bgrid--list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.bmore { margin: 18px 0 0; }

.bchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bchip { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .9rem; line-height: 1.2; transition: border-color .15s, color .15s; }
.bchip:hover { color: var(--gold-hi); border-color: rgba(217, 178, 106, .45); }
.bgame .tags a.tag--page { border-color: rgba(217, 178, 106, .28); }

.bcatgroup + .bcatgroup { margin-top: 28px; }
.bcatlist { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.bcatlist a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: border-color .15s; }
.bcatlist a:hover { border-color: rgba(217, 178, 106, .45); color: var(--gold-hi); }

.bfaq { border-bottom: 1px solid var(--border); padding: 12px 0; }
.bfaq summary { cursor: pointer; font-weight: 600; color: var(--text); }
.bfaq p { margin: 10px 0 0; }

.bpicks { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: pick; }
.bpick { display: grid; gap: 16px; align-items: start; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255, 255, 255, .015); }
@media (min-width: 760px) { .bpick { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); } }
.bpick__why p:last-child { margin: 0; color: #d6d5d1; font-size: 1rem; }

.btoplist { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.btop { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
@media (min-width: 720px) { .btop { grid-template-columns: 52px 220px minmax(0, 1fr); } }
.btop__n { font: 700 1.6rem/1 var(--font-display); color: var(--gold-hi); text-align: center; padding-top: 6px; }
.btop__media { display: none; }
@media (min-width: 720px) { .btop__media { display: block; } }
.btop__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
.btop__title { margin: 0 0 4px; font: 700 1.12rem/1.25 var(--font-display); }
.btop__title a { color: var(--text); }
.btop__body p:last-child { margin: 6px 0 0; color: #d6d5d1; }

.bnewitem { display: grid; gap: 6px; align-content: start; }
.bnewitem__date { margin: 0; color: var(--faint); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Ratings: stars, our rating next to the player rating ---------- */
/* Five stars filled to --v (0–5), any fraction. Decorative: the number is always printed beside them. */
.bstars { --v: 0; display: inline-block; font-size: 1em; line-height: 1; letter-spacing: 0; white-space: nowrap; vertical-align: -.05em; }
.bstars::before { content: "\2605\2605\2605\2605\2605"; background: linear-gradient(90deg, var(--gold) calc(var(--v) * 20%), rgba(255, 255, 255, .2) calc(var(--v) * 20%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bstars--lg { font-size: 1.25em; }
.brate { white-space: nowrap; }
.brate__label { color: var(--faint); font-weight: 500; }
.bscores { display: flex; flex-wrap: wrap; gap: 14px; }
.bscore--ours { grid-template-columns: auto auto auto; border-color: rgba(217, 178, 106, .55); }
.bscore--ours .bscore__stars { align-self: center; margin-inline-start: 6px; }
.bverdict__score { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; color: var(--muted) !important; }

/* ---------- "Notify me when this game updates" ---------- */
.bnotify-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.bnotify { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.bnotify__on { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-size: .92rem; font-weight: 600; }
.bnotify__msg { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Member reviews and comments ---------- */
.btn-row + .bmembers { margin-top: 44px; }
.bmembers__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 18px; color: var(--muted) !important; }
.bmembers__state { color: var(--muted) !important; }
.bjoin { margin: 4px 0 0; padding: 18px 20px; border-radius: var(--radius); border: 1px solid rgba(127, 183, 187, .3); background: radial-gradient(ellipse at 0% 0%, rgba(127, 183, 187, .12), transparent 60%), var(--surface); }
.bjoin__title { margin: 0 0 4px; font: 700 1.08rem/1.3 var(--font-display); color: var(--text) !important; }
.bjoin__text { margin: 0 0 14px; color: var(--muted) !important; font-size: .94rem; }
.bjoin__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bform { margin-top: 4px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.bform__title { margin: 0; font-size: 1.08rem; }
.bform .notice { margin: 0; }

/* Star picker: five radio buttons drawn as stars (filled up to the chosen one, previewed on hover). */
.bstarpick { margin: 0; padding: 0; border: 0; min-width: 0; }
.bstarpick legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
.bstarpick__opts { display: inline-flex; gap: 2px; }
.bstarpick__opt { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); cursor: pointer; }
.bstarpick__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.bstarpick__star { font-size: 1.9rem; line-height: 1; color: rgba(255, 255, 255, .22); transition: color .12s; }
.bstarpick__opt:has(input:checked) .bstarpick__star, .bstarpick__opt:has(~ .bstarpick__opt input:checked) .bstarpick__star { color: var(--gold); }
.bstarpick__opts:hover .bstarpick__star { color: rgba(255, 255, 255, .22); }
.bstarpick__opts .bstarpick__opt:hover .bstarpick__star, .bstarpick__opts .bstarpick__opt:has(~ .bstarpick__opt:hover) .bstarpick__star { color: var(--gold-hi); }
.bstarpick__opt:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 1px; }

.bposts { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.bpost { padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 16px); }
.bpost:target { border-color: rgba(217, 178, 106, .55); }
.bpost--pending { border-style: dashed; background: transparent; }
.bpost__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 6px; color: var(--faint); font-size: .84rem; }
.bpost__name { color: var(--text); font-weight: 600; font-size: .95rem; }
.bpost__text p { margin: 0 0 .7em; overflow-wrap: anywhere; }
.bpost__text p:last-child { margin-bottom: 0; }
.bpost__foot { display: flex; justify-content: flex-end; margin-top: 4px; }
.bpost__foot form { margin: 0; }
.breport { padding: 4px 6px; border: 0; background: none; color: var(--faint); font: 500 .78rem/1.2 var(--font-body); cursor: pointer; }
.breport:hover { color: var(--danger); }
.breport--done { cursor: default; }
.breport--done:hover { color: var(--faint); }

/* ---------- Game page FAQ (inc/browse-faq.php): answers always shown, same look as the category FAQ ---------- */
.bfaqs .section__title { margin-bottom: 12px; }
.bfaqs__list { max-width: 820px; }
.bfaq__q { margin: 0; font: 600 1rem/1.45 var(--font-body); letter-spacing: 0; color: var(--text); }
.bfaqs .bfaq { padding: 14px 0; }
.bfaqs .bfaq p { margin: 6px 0 0; color: #d6d5d1; }

/* ---------- "Updated" line and "How we review" links (inc/browse-pages.php, game and review pages) ---------- */
.bupdated { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 14px 0 0; color: var(--muted); font-size: .9rem; }
.bhow { color: var(--muted); font-size: .84rem; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .28); text-underline-offset: 3px; }
.bhow:hover { color: var(--gold-hi); text-decoration-color: currentColor; }
.bupdated .bhow { font-size: inherit; }
.bgame .game-hero__meta a.bhow { color: var(--muted); font-weight: 500; }
.bgame .game-hero__meta a.bhow:hover { color: var(--gold-hi); }
.bscores__how { flex-basis: 100%; margin: 0; }

/* ---------- Comparison tables (category and "games like" pages, how-we-review page) ---------- */
/* The box scrolls sideways on narrow screens; the page itself never does. */
.bcompare { margin-bottom: clamp(32px, 5vw, 48px); }
.bcompare .section__title { margin-bottom: 14px; }
.btable { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); scrollbar-width: thin; }
.btable__table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .9rem; line-height: 1.4; }
.btable__table th, .btable__table td { padding: 11px 14px; text-align: start; vertical-align: middle; border-bottom: 1px solid var(--border); white-space: nowrap; }
.btable__table tbody tr:last-child > * { border-bottom: 0; }
.btable__table thead th { font: 600 .72rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); background: var(--surface-2); }
.btable__table td { color: #d6d5d1; }
/* The game column stays in view while the rest scrolls. */
.btable__table tr > :first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--surface); white-space: normal; min-width: 150px; max-width: 230px; box-shadow: inset -1px 0 0 var(--border); }
.btable__table thead tr > :first-child { background: var(--surface-2); }
.btable__table tbody th { font-weight: 600; }
.btable__table tbody th a { color: var(--text); }
.btable__table tbody th a:hover { color: var(--gold-hi); }
.btable__score { font-variant-numeric: tabular-nums; }
.btable__score .bstars { margin-inline-end: 4px; }
.bcompare .bsmall { margin-top: 10px; }
/* Text tables (score scale, status labels): no minimum width, the text wraps. */
.btable--text { margin: 18px 0; }
.btable--text .btable__table { min-width: 0; }
.btable--text .btable__table th, .btable--text .btable__table td { padding: 10px 12px; }
.btable--text .btable__table td, .btable--text .btable__table thead th { white-space: normal; }
.btable--text .btable__table tr > :first-child { position: static; min-width: 0; box-shadow: none; white-space: nowrap; }
.btable--text .btable__table td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- How we review (templates/browse-how.php) ---------- */
.bhowto .btoc { margin-top: 0; }
.bhowto__list { margin: 0 0 1em; padding-inline-start: 1.2em; color: #d6d5d1; }
.bhowto__list li { line-height: 1.65; }
.bhowto__list li + li { margin-top: .6em; }
.bhowto .game-section p, .bhowto__list { overflow-wrap: break-word; }

/* Thai, CJK and Arabic: no letter-spacing on small labels (it splits Thai vowel and tone marks from their letters). */
:root:is(:lang(ar), :lang(th), :lang(ja), :lang(ko), :lang(zh)) :is(.bstatus, .bfield__label, .bscore__label, .btoc__title, .bnewitem__date, .btable__table thead th) { letter-spacing: 0; }

/* ─── Gacha section (inc/gacha.php, templates/gacha-*.php) ─── */
.glevel { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; font: 700 .68rem/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.glevel--nsfw { color: #f3b4c0; background: rgba(214, 92, 120, .14); border-color: rgba(214, 92, 120, .45); }
.glevel--fanservice { color: #f2d49a; background: rgba(232, 191, 106, .13); border-color: rgba(232, 191, 106, .45); }
.glevel--none { color: #a9e6bd; background: rgba(127, 207, 154, .14); border-color: rgba(127, 207, 154, .45); }
.bcard__media .glevel { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background-color: rgba(16, 17, 23, .78); }
.gmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 12px; color: var(--muted); font-size: .92rem; }
.gfilters { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 16px; }
.gfilters__group { display: flex; flex-wrap: wrap; gap: 6px; }
.gfilters button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); font: inherit; font-size: .86rem; line-height: 1.2; cursor: pointer; }
.gfilters button:hover { color: var(--text); border-color: var(--gold); }
.gfilters button[aria-pressed="true"] { color: var(--gold-hi); border-color: var(--gold); background: rgba(217, 178, 106, .12); }
.ggame { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ggame { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.ggame__art { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 22px; }
.gshots { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 22px; }
.gshots--tall { max-width: 560px; }
.gshots--tall .shots__item { aspect-ratio: 9 / 16; }
@media (max-width: 599px) {
    .gshots { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 6px; }
    .gshots .shots__item { flex: 0 0 82%; scroll-snap-align: start; }
    .gshots--tall .shots__item { flex-basis: 44%; }
}

/* ─── Gacha guides: tier lists and character lists (inc/gacha-guides.php) ─── */
.gguides { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 0 0 22px; }
.gguide { display: block; padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.gguide strong { display: block; color: var(--text); font-weight: 650; line-height: 1.35; }
.gguide span { display: block; margin-top: 3px; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.gguide:hover { border-color: var(--gold); }
.gguide:hover strong { color: var(--gold-hi); }
.gpicks { margin: 0 0 22px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.gpicks__title { margin: 0 0 10px; font: 700 .74rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.gpicks__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gpicks__list a, .gpicks__list li { color: var(--gold-hi); font-weight: 600; }
.gpicks__list li { padding: 5px 12px; border: 1px solid rgba(217, 178, 106, .45); border-radius: 999px; background: rgba(217, 178, 106, .1); font-size: .9rem; }
.gjump { margin-bottom: 18px; }
.glist + .glist { margin-top: clamp(28px, 5vw, 44px); }
.glist__about { color: var(--muted); margin: -4px 0 12px; }
.gtier { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); }
.gtier__badge { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 14px; font: 800 1.4rem/1 var(--font-display); color: #15120c; }
.gtier--splus .gtier__badge { background: linear-gradient(135deg, #ffd27a, #e8836a); }
.gtier--s .gtier__badge { background: #e8bf6a; }
.gtier--a .gtier__badge { background: #8fd5a6; }
.gtier--b .gtier__badge { background: #8db9e8; }
.gtier--c .gtier__badge { background: #a7a7b3; }
.gtier__title { margin: 0 0 12px; font: 700 1.1rem/1.3 var(--font-display); color: var(--text); }
.gtier__title span { display: block; margin-top: 2px; font: 400 .9rem/1.45 var(--font-body); color: var(--muted); }
.gtier__list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 0; padding: 0; list-style: none; }
.gunit { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); scroll-margin-top: calc(var(--header-h, 64px) + 16px); }
.gunit:target { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.gunit__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 3px; font-weight: 700; color: var(--text); line-height: 1.3; }
.gunit__new { padding: 1px 7px; border: 1px solid rgba(127, 207, 154, .5); border-radius: 999px; color: #a9e6bd; font: 700 .6rem/1.4 var(--font-body); text-transform: uppercase; letter-spacing: .06em; }
.gunit__tags { margin: 0 0 6px; color: var(--faint); font-size: .78rem; line-height: 1.35; }
.gunit__why { margin: 0; color: #d6d5d1; font-size: .88rem; line-height: 1.5; }
.gfaq__q { margin: 1.2em 0 .3em; font-size: 1rem; }
.gmore { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 8px; padding: 0; list-style: none; }
.gmore a { color: var(--muted); }
.gmore a:hover { color: var(--gold-hi); }
.gchars .btable__table { min-width: 640px; }
.gchars .btable__table td, .gchars .btable__table th { white-space: normal; }
.gtierlink { display: inline-block; min-width: 2.2em; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: .82rem; text-align: center; color: #15120c; white-space: nowrap; }
.gtierlink--splus { background: linear-gradient(135deg, #ffd27a, #e8836a); }
.gtierlink--s { background: #e8bf6a; }
.gtierlink--a { background: #8fd5a6; }
.gtierlink--b { background: #8db9e8; }
.gtierlink--c { background: #a7a7b3; }
@media (max-width: 560px) {
    .gtier { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .gtier__badge { width: 46px; height: 46px; font-size: 1.15rem; border-radius: 12px; }
}

/* ─── Gacha codes and banners, kept up to date from feeds (inc/gacha-feeds.php) ─── */
.gcodes .btable__table { min-width: 560px; }
.gcodes .btable__table td, .gcodes .btable__table th { white-space: normal; vertical-align: middle; }
.gcode { font: 700 .95rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; color: var(--gold-hi); white-space: nowrap; }
.gcodes .btable__table td.gcode__act { white-space: nowrap; text-align: end; }
.gcopy, .gredeem { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: 600 .8rem/1.2 var(--font-body); cursor: pointer; text-decoration: none; transition: border-color .15s, color .15s; }
.gcopy:hover, .gredeem:hover { border-color: var(--gold); color: var(--gold-hi); }
.gcopy.is-done { border-color: rgba(127, 207, 154, .6); color: #a9e6bd; }
.gexpired { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.gexpired li { padding: 4px 11px; border: 1px dashed var(--border-strong); border-radius: 999px; color: var(--faint); font-size: .82rem; }
.gexpired code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-decoration: line-through; }
.gbanners { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin: 0 0 28px; }
.gbanner { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.gbanner__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin: 0 0 4px; }
.gbanner__name { margin: 0; font: 700 1.02rem/1.3 var(--font-display); color: var(--text); }
.gbanner__ver { color: var(--faint); font-size: .78rem; white-space: nowrap; }
.gbanner__dates { margin: 0 0 12px; color: var(--muted); font-size: .86rem; }
.gbanner__dates strong { color: var(--gold-hi); font-weight: 600; }
.gbanner__units { display: grid; gap: 7px; margin: 0 0 10px; padding: 0; list-style: none; }
.gbanner__unit { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: #d6d5d1; font-size: .9rem; line-height: 1.35; }
.gbanner__unit--top { color: var(--text); font-weight: 700; font-size: .98rem; }
.gbanner__unit a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.gbanner__unit a:hover { color: var(--gold-hi); }
.gbanner__unit > span { color: var(--faint); font-weight: 400; font-size: .78rem; }
.gbanner__unit .gtierlink { min-width: 0; padding: 1px 6px; font-size: .72rem; color: #15120c; }
.gbanner__items { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.gresets { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.gresets li { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); font-size: .9rem; }
.gresets strong { color: var(--text); }
.gpast .btable__table td, .gpast .btable__table th { white-space: normal; }
@media (max-width: 560px) {
    .gcodes .btable__table td.gcode__act { white-space: normal; }
    .gcopy, .gredeem { margin: 2px 0; }
}

/* ─── Walkthrough image galleries (inc/browse-walkthroughs.php, ag_bwalk_render_gallery) ─── */
.bwalk__jump { margin: 16px 0 0; }
.bwalk__jump a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--gold); border-radius: 999px; background: rgba(217, 178, 106, .08); color: var(--gold-hi); font-weight: 600; text-decoration: none; line-height: 1.3; }
.bwalk__jump a:hover { background: rgba(217, 178, 106, .16); }
.bwalk__jump svg { width: 14px; height: 14px; flex: none; }
.bgallery { display: grid; gap: 18px 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 20px 0 0; padding: 0; list-style: none; }
.bgallery__item { margin: 0; scroll-margin-top: calc(var(--header-h, 64px) + 16px); }
.bgallery__item:target .bgallery__img { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.bgallery__img { position: relative; display: block; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.bgallery__img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .2s; }
.bgallery__img:hover img { transform: scale(1.02); }
.bgallery__n { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 9px; border: 1px solid var(--gold); border-radius: 999px; background: rgba(10, 10, 14, .85); color: var(--gold-hi); font: 800 1rem/1 var(--font-body); }
[dir="rtl"] .bgallery__n { left: auto; right: 8px; }
.bwalk__main .game-section p.bgallery__cap { margin: 8px 2px 0; color: var(--text); font-size: .93rem; line-height: 1.45; }
.bgallery__cap b { margin-inline-end: 2px; color: var(--gold-hi); }
.bgallery__time { display: inline-block; margin-inline-start: 4px; padding: 1px 8px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--muted); font-size: .78rem; white-space: nowrap; }

/* ─── Gacha list pages: best, games like X, most popular, by platform/type (inc/gacha-lists.php) ─── */
.glranked { display: grid; gap: 14px; margin: 0 0 30px; padding: 0; list-style: none; }
.glrank { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px 14px; align-items: start; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 720px) { .glrank { grid-template-columns: 48px 230px minmax(0, 1fr); gap: 16px 18px; } }
.glrank__n { font: 700 1.6rem/1 var(--font-display); color: var(--gold-hi); text-align: center; padding-top: 4px; }
.glrank__img { display: none; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-2); }
@media (min-width: 720px) { .glrank__img { display: block; } }
.glrank__img img { display: block; width: 100%; height: auto; aspect-ratio: 616 / 323; object-fit: cover; transition: transform .2s; }
.glrank__img:hover img { transform: scale(1.03); }
.glrank__img span { display: flex; align-items: center; justify-content: center; aspect-ratio: 616 / 323; padding: 10px; color: var(--muted); font-size: .85rem; text-align: center; }
.glrank__title { margin: 0 0 6px; font: 700 1.12rem/1.25 var(--font-display); }
.glrank__title a { color: var(--text); }
.glrank__title a:hover { color: var(--gold-hi); }
.glrank__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; color: var(--muted); font-size: .84rem; }
.glrank__shared { color: #d6d5d1; }
.glrank__why { margin: 0; color: #d6d5d1; font-size: .98rem; line-height: 1.55; }
.glrank__more { margin: 8px 0 0; font-size: .88rem; }
.glrank__more a { color: var(--gold-hi); }
.glinks { display: grid; gap: 14px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin: 0 0 8px; }
.glinks__label { margin: 0 0 6px; font: 600 .72rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.glinks__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.glinks__list a { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: .86rem; line-height: 1.25; text-decoration: none; }
.glinks__list a:hover { color: var(--text); border-color: var(--gold); }
.glinks__list a[aria-current="page"] { color: var(--gold-hi); border-color: var(--gold); background: rgba(217, 178, 106, .12); }
.gpop .btable__table { min-width: 540px; }
.gpop .btable__table td { font-variant-numeric: tabular-nums; }
/* The rank scrolls away on phones; the game name stays pinned instead. */
.gpop .btable__table tr > :first-child { position: static; min-width: 0; width: 44px; text-align: center; color: var(--faint); box-shadow: none; }
.gpop .btable__table tr > :nth-child(2) { position: sticky; inset-inline-start: 0; z-index: 1; min-width: 160px; white-space: normal; background: var(--surface); box-shadow: inset -1px 0 0 var(--border); }
.gpop .btable__table thead tr > :nth-child(2) { background: var(--surface-2); }

/* ─── Gacha livestream pages (templates/gacha-livestream.php) ─── */
.glive { padding: 16px 18px; border: 1px solid var(--gold); border-radius: var(--radius); background: rgba(217, 178, 106, .06); }
.glive__when { margin: 0 0 8px; font: 700 1.15rem/1.35 var(--font-display); color: var(--gold-hi); }
.glive__in { margin-inline-start: 6px; color: var(--muted); font: 400 .9rem/1.3 var(--font-body); white-space: nowrap; }
.glive p:last-child { margin: 0; color: #d6d5d1; }

/* ─── Gacha revenue estimates (templates/gacha-revenue.php) ─── */
.grev .btable__table { min-width: 560px; }
.grev .btable__table td { font-variant-numeric: tabular-nums; }
.grev .btable__table tr > :first-child { position: static; min-width: 0; width: 44px; text-align: center; color: var(--faint); box-shadow: none; }
.grev .btable__table tr > :nth-child(2) { position: sticky; inset-inline-start: 0; z-index: 1; min-width: 170px; white-space: normal; background: var(--surface); box-shadow: inset -1px 0 0 var(--border); }
.grev .btable__table thead tr > :nth-child(2) { background: var(--surface-2); }
.grev__usd { color: var(--gold-hi); font-weight: 700; }
.grev--ranks .btable__table tr > :first-child { position: sticky; inset-inline-start: 0; z-index: 1; width: auto; min-width: 170px; text-align: start; color: inherit; background: var(--surface); box-shadow: inset -1px 0 0 var(--border); }
.grev--ranks .btable__table thead tr > :first-child { background: var(--surface-2); }
.grev--ranks .btable__table tr > :nth-child(2) { position: static; min-width: 0; background: none; box-shadow: none; }
