/* game_tgn_0048 — CARD INDEX (Pink Series)
   S-NONE · Catalog Face / Drawer Stack / Tab Grid / Spine Row · inline */

:root {
  --g48-bg: #fff0f5;
  --g48-petal: #ffe4ec;
  --g48-panel: #fffafc;
  --g48-ink: #3b1f2b;
  --g48-muted: #7a4558;
  --g48-accent: #db2777;
  --g48-cta: #be185d;
  --g48-rose: #f472b6;
  --g48-bar: #831843;
  --g48-line: rgba(190, 24, 93, 0.16);
  --g48-shadow: rgba(190, 24, 93, 0.1);
  --g48-star-full: #db2777;
  --g48-star-empty: #d4a0b0;
  --g48-ph: #f8d0dc;
  --g48-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --g48-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --g48-mob-h: 54px;
  --g48-pad-x: 16px;
  --g48-radius: 6px;
  --bg-main: var(--g48-bg);
  --text-main: var(--g48-ink);
  --text-muted: var(--g48-muted);
  --accent: var(--g48-accent);
  --ink-muted: var(--g48-muted);
  --ink-on-light: #5c2a3a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body.g48-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--g48-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--g48-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(244, 114, 182, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 8%, rgba(219, 39, 119, 0.1), transparent 50%),
    var(--g48-bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--g48-mob-h) + 12px);
}
@media (min-width: 900px) {
  body.g48-body { padding-bottom: 0; }
}

a { color: var(--g48-ink); text-decoration: none; }
a:hover { color: var(--g48-accent); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
.g48-btn:focus-visible,
.g48-view-btn:focus-visible,
.g48-menu-chip:focus-visible,
.g48-header-out:focus-visible {
  outline: 2px solid var(--g48-accent);
  outline-offset: 2px;
}
img { max-width: 100%; height: auto; display: block; }

.g48-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.g48-page-pad { width: 100%; max-width: 1120px; margin: 0 auto; padding: 20px var(--g48-pad-x) 32px; }
.g48-ad-slot, .g48-ad-top { margin: 12px 0; }
.g48-pick-section { background: transparent; }
.g48-main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px var(--g48-pad-x) 40px;
  min-width: 0;
}

/* Buttons */
.g48-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer;
}
.g48-btn-primary { background: var(--g48-accent); color: #fff; }
.g48-btn-primary:hover { background: var(--g48-cta); color: #fff; }
.g48-btn-outline {
  background: var(--g48-panel); border-color: var(--g48-line); color: var(--g48-ink);
}
.g48-btn-outline:hover { border-color: var(--g48-accent); color: var(--g48-accent); }

/* Title / stars / brief / tags */
.article-list .game-title,
.article-list .card-title,
.special-card .game-title,
.game-card .card-title {
  display: block; max-width: 100%; min-width: 0;
  margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 700;
  font-size: inherit;
  line-height: 1.35;
}
.special-card-content, .card-content { min-width: 0; }
.article-list .special-card-content,
.article-list .carousel-card-content {
  padding: 12px 14px 16px;
}

.game-star { display: inline-flex; align-items: center; gap: 2px; line-height: 1; }
.game-star .star-full::before { content: "★"; color: var(--g48-star-full); }
.game-star .star-empty::before { content: "★"; color: var(--g48-star-empty); opacity: 0.55; }
.game-star--detail-hero { font-size: 1.1rem; margin: 8px 0; }

.g48-main .brief-comment-game {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  -webkit-line-clamp: 1; min-width: 0; color: var(--g48-muted); font-size: 0.9rem;
}
@media (min-width: 768px) {
  .g48-main .brief-comment-game { -webkit-line-clamp: 2; }
}
.g48-main .g48-card-tags {
  display: flex; gap: 6px; min-width: 0; flex-wrap: nowrap; overflow: hidden;
}
@media (min-width: 768px) {
  .g48-main .g48-card-tags { flex-wrap: wrap; overflow: visible; }
}
.g48-chip, .g48-chip-link {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--g48-petal); border: 1px solid var(--g48-line);
  font-size: 0.75rem; color: var(--ink-on-light); white-space: nowrap;
}

/* Archive section head (not generic badge bar) */
.g48-arch-head {
  display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap;
  margin: 6px 0 14px; padding-bottom: 10px;
  border-bottom: 2px dashed var(--g48-line);
  min-height: 44px;
}
.g48-arch-head__stamp {
  flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--g48-mono); font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.04em; color: var(--g48-accent);
  border: 2px solid var(--g48-accent);
  background: var(--g48-panel);
  box-shadow: 0 0 0 3px var(--g48-petal);
  line-height: 1;
}
.g48-arch-head__title {
  margin: 0; font-size: 1.15rem; line-height: 1.2; letter-spacing: 0.01em; color: var(--g48-ink);
}
.g48-arch-head__tag {
  flex: 0 0 auto;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff; line-height: 1;
  background: linear-gradient(135deg, var(--g48-rose), var(--g48-accent));
  padding: 5px 10px; border-radius: 999px;
}
.g48-arch-head__more {
  margin-left: auto; flex: 0 0 auto;
  font-size: 0.85rem; font-weight: 700; line-height: 1; color: var(--g48-cta);
}
.g48-section-desc { color: var(--g48-muted); margin: 0 0 12px; }
.g48-section-more { margin-left: auto; font-size: 0.85rem; color: var(--g48-cta); font-weight: 700; }
.g48-section-bar {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 8px 0 14px;
}
.g48-section-title { margin: 0; font-size: 1.2rem; }

/* Index Slip (no-ad home) */
.g48-slip {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 14px 16px; margin-bottom: 18px;
  background: var(--g48-panel);
  border: 1px solid var(--g48-line);
  border-radius: var(--g48-radius);
  box-shadow: 0 8px 24px var(--g48-shadow);
  position: relative;
  overflow: hidden;
}
.g48-slip::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--g48-rose), var(--g48-accent));
}
.g48-slip-copy { padding-left: 8px; }
.g48-slip-kicker {
  margin: 0 0 2px; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--g48-accent);
}
.g48-slip-slogan { margin: 0; font-weight: 800; font-size: 1.05rem; }
.g48-slip-desc { color: var(--g48-muted); font-size: 0.9rem; }
.g48-slip-search {
  display: flex; gap: 0; margin-left: auto; min-width: 220px; flex: 1; max-width: 360px;
}
.g48-slip-search input,
.g48-tool-search input,
.g48-drawers-search input {
  flex: 1; min-width: 0; border: 1px solid var(--g48-line); background: var(--g48-bg);
  color: var(--g48-ink); padding: 8px 10px; font: inherit;
  border-radius: 999px 0 0 999px;
}
.g48-slip-search button,
.g48-tool-search button,
.g48-drawers-search button {
  border: 0; background: var(--g48-accent); color: #fff; font-weight: 800;
  padding: 8px 14px; border-radius: 0 999px 999px 0; cursor: pointer;
}

/* ========== Catalog Face ========== */
.g48-catalog { display: flex; flex-direction: column; gap: 14px; }
.g48-catalog-lead {
  display: grid; gap: 0;
  background: var(--g48-panel);
  border: 1px solid var(--g48-line);
  border-radius: 4px 18px 4px 4px;
  overflow: hidden;
  box-shadow: 6px 10px 0 var(--g48-shadow);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%);
}
@media (min-width: 768px) {
  .g48-catalog-lead { grid-template-columns: 1.35fr 1fr; }
}
.g48-catalog-stamp {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255, 250, 252, 0.92);
  border: 2px solid var(--g48-accent);
  color: var(--g48-accent);
  font-family: var(--g48-mono);
  box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.12);
  transform: rotate(-8deg);
}
.g48-catalog-stamp__lab { font-size: 0.55rem; font-weight: 800; letter-spacing: 0.08em; }
.g48-catalog-stamp__num { font-size: 0.95rem; font-weight: 800; line-height: 1; }
.g48-catalog-media {
  aspect-ratio: 16/10; background: var(--g48-ph); overflow: hidden;
}
.g48-catalog-media img { width: 100%; height: 100%; object-fit: cover; }
.g48-catalog-meta {
  display: flex; flex-direction: column; gap: 8px; justify-content: center;
  padding: 16px 18px !important;
  background:
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      rgba(219, 39, 119, 0.08) 27px,
      rgba(219, 39, 119, 0.08) 28px
    );
}
.g48-catalog-meta .game-title { font-size: 1.2rem; }
@media (max-width: 767px) {
  .g48-main { padding: 8px var(--g48-pad-x, 12px) 28px; }
  .g48-slip { padding: 8px 10px; margin-bottom: 8px; gap: 8px; }
  .g48-slip-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .g48-arch-head { margin: 4px 0 8px; padding-bottom: 6px; }
  .g48-arch-head__stamp { width: 32px; height: 32px; font-size: 0.7rem; }
  .g48-section-desc {
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .g48-catalog { gap: 8px; }
  .g48-catalog-media { aspect-ratio: 16 / 9; }
  .g48-catalog-meta { padding: 8px 10px 10px !important; gap: 4px; }
  .g48-catalog-meta .brief-comment-game { -webkit-line-clamp: 1; line-clamp: 1; }
  .g48-catalog-meta .g48-card-tags { display: none; }
  .g48-catalog-meta .game-title { font-size: 1.05rem; }
  .g48-catalog-stamp { width: 36px; height: 36px; top: 6px; left: 6px; }
}

/* File slips */
.g48-rest-rail {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
@media (min-width: 900px) {
  .g48-rest-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .g48-rest-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.g48-rest-card {
  display: flex; flex-direction: column;
  background: var(--g48-panel);
  border: 1px solid var(--g48-line);
  border-radius: 3px 3px 8px 8px;
  overflow: hidden;
  box-shadow: 0 4px 0 var(--g48-petal);
  position: relative;
}
.g48-rest-card::before {
  content: "";
  position: absolute; top: 8px; left: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--g48-rose); box-shadow: 0 0 0 2px var(--g48-panel), 0 0 0 3px var(--g48-line);
  z-index: 1;
}
.g48-rest-thumb { aspect-ratio: 3/2; background: var(--g48-ph); }
.g48-rest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g48-rest-body { padding: 10px 12px 12px !important; }

/* ========== Drawer Stack ========== */
.g48-dstack-list { display: flex; flex-direction: column; gap: 10px; }
.g48-dstack-row {
  display: grid; grid-template-columns: 52px 18px 96px 1fr; gap: 0; align-items: stretch;
  background: var(--g48-panel);
  border: 1px solid var(--g48-line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 3px 0 var(--g48-shadow);
  transition: transform 0.15s ease;
}
.g48-dstack-row:hover { transform: translateX(4px); }
.g48-drawer-spine {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--g48-rose), var(--g48-accent));
  color: #fff; font-family: var(--g48-mono); font-weight: 800; font-size: 0.85rem;
  writing-mode: horizontal-tb;
}
.g48-drawer-pull {
  background: var(--g48-petal);
  border-left: 1px solid var(--g48-line);
  border-right: 1px solid var(--g48-line);
  position: relative;
}
.g48-drawer-pull::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 8px; height: 28px; border-radius: 4px;
  transform: translate(-50%, -50%);
  background: var(--g48-rose);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.g48-row-thumb {
  width: 96px; height: 100%; min-height: 72px; background: var(--g48-ph); overflow: hidden;
}
.g48-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g48-row-body { padding: 10px 12px !important; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.g48-row-num { font-weight: 800; color: var(--g48-accent); text-align: center; font-variant-numeric: tabular-nums; }

/* ========== Tab Grid (folder tabs in document flow) ========== */
.g48-tabgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  align-items: start;
}
@media (min-width: 900px) {
  .g48-tabgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
}
.g48-tabgrid-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  color: inherit;
  transition: transform 0.15s ease;
}
.g48-tabgrid-card:hover {
  transform: translateY(-3px);
  color: inherit;
}
.g48-tabgrid-card:hover .g48-tabgrid-face {
  border-color: rgba(190, 24, 93, 0.35);
  box-shadow: 0 8px 0 var(--g48-shadow);
}
.g48-tabgrid-card:hover .g48-tabgrid-tab {
  background: linear-gradient(180deg, var(--g48-rose), var(--g48-accent));
}
.g48-tabgrid-tab {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin: 0 0 -1px 12px;
  max-width: calc(100% - 28px);
  padding: 5px 12px 6px;
  background: linear-gradient(180deg, #ffd6e7, var(--g48-rose));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--g48-line);
  border-bottom-color: var(--g48-panel);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--g48-mono);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.35) inset;
}
.g48-tabgrid-face {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--g48-panel);
  border: 1px solid var(--g48-line);
  border-radius: 0 10px 10px 10px;
  overflow: hidden;
  box-shadow: 0 5px 0 var(--g48-petal);
}
.g48-grid-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--g48-ph);
  overflow: hidden;
  flex-shrink: 0;
}
.g48-grid-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.g48-tabgrid-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px 14px !important;
  border-top: 1px solid var(--g48-line);
}
.g48-tabgrid-body .game-title {
  font-size: 0.92rem;
  line-height: 1.35;
}
.g48-tabgrid-body .brief-comment-game {
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
@media (max-width: 767px) {
  .g48-tabgrid { gap: 16px 12px; }
  .g48-tabgrid-tab { margin-left: 8px; padding: 4px 10px 5px; font-size: 0.65rem; }
  .g48-tabgrid-body { padding: 10px 12px 12px !important; gap: 4px; }
  .g48-tabgrid-body .g48-card-tags { display: none; }
}

/* ========== Spine Row ========== */
.g48-spine-rail {
  display: flex; gap: 12px; overflow-x: auto; padding: 8px 2px 14px;
  scroll-snap-type: x mandatory;
}
.g48-spine-item {
  flex: 0 0 200px; scroll-snap-align: start;
  display: grid; grid-template-columns: 36px 1fr; gap: 0;
  background: var(--g48-panel);
  border: 1px solid var(--g48-line);
  border-radius: 4px;
  overflow: hidden;
  min-height: 150px;
  box-shadow: 3px 4px 0 var(--g48-shadow);
}
.g48-spine-band {
  background: linear-gradient(180deg, var(--g48-accent), #9d174d);
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--g48-mono); font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.12em; padding: 8px 0;
}
.g48-spine-body {
  display: flex; flex-direction: column; gap: 6px; padding: 10px !important; min-width: 0;
}
.g48-spine-thumb {
  aspect-ratio: 16/10; background: var(--g48-ph); overflow: hidden; border-radius: 3px;
}
.g48-spine-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Quick drawers */
.g48-quickcats { margin-top: 28px; }
.g48-quickcats-row { display: flex; flex-wrap: wrap; gap: 8px; }
.g48-quickcat {
  padding: 8px 14px;
  background: var(--g48-panel);
  border: 1px dashed var(--g48-accent);
  border-radius: 999px;
  font-weight: 700; color: var(--g48-cta); font-size: 0.88rem;
}
.g48-quickcat:hover { background: var(--g48-petal); }

/* ========== Index Pull (S-NONE nav) ========== */
.g48-index-pull {
  position: sticky; top: 0; z-index: 50;
  margin: 0 auto;
  max-width: 1120px;
  width: calc(100% - 2 * var(--g48-pad-x));
  padding: 12px 14px 14px;
  background: var(--g48-panel);
  border: 1px solid var(--g48-line);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 28px var(--g48-shadow);
}
.g48-drawer-tabs {
  display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px;
  padding-bottom: 2px;
}
.g48-drawer-tab {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center;
  min-width: 76px; padding: 8px 10px 10px;
  background: linear-gradient(180deg, #ffd6e7, var(--g48-petal));
  border: 1px solid var(--g48-line);
  border-radius: 10px 10px 0 0;
  border-bottom: 3px solid var(--g48-accent);
  transition: transform 0.15s ease;
}
.g48-drawer-tab:hover { transform: translateY(-3px); color: var(--g48-ink); }
.g48-tab-num {
  font-family: var(--g48-mono); font-weight: 800; color: var(--g48-accent); font-size: 0.75rem;
}
.g48-tab-name { font-size: 0.75rem; white-space: nowrap; max-width: 88px; overflow: hidden; text-overflow: ellipsis; }
.g48-pull-body { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.g48-pull-menu { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.g48-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--g48-line);
  border-radius: 10px;
  background: var(--g48-petal);
  color: var(--g48-ink);
  cursor: pointer;
}
.g48-menu-toggle__bars,
.g48-menu-toggle__bars::before,
.g48-menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}
.g48-menu-toggle__bars::before,
.g48-menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.g48-menu-toggle__bars::before { top: -6px; }
.g48-menu-toggle__bars::after { top: 6px; }
.g48-menu-toggle[aria-expanded="true"] {
  background: var(--g48-accent);
  border-color: var(--g48-accent);
  color: #fff;
}

.g48-brand {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800;
  letter-spacing: 0.02em; color: inherit; flex-shrink: 0;
  max-width: min(42vw, 180px);
}
.g48-brand span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.g48-brand img { border-radius: 50%; box-shadow: 0 0 0 2px var(--g48-rose); flex-shrink: 0; }
.g48-tool-search { display: flex; flex: 1; min-width: 0; max-width: 360px; }
.g48-tool-auth { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.g48-signin {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; background: var(--g48-accent);
  padding: 8px 14px; border-radius: 999px; font-size: 0.88rem;
  min-height: 36px; white-space: nowrap;
}
.g48-signin:hover { background: var(--g48-cta); color: #fff; }
.g48-header-user { display: flex; align-items: center; gap: 10px; line-height: 1; }
.g48-header-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--g48-ph) center/cover no-repeat;
  border: 2px solid var(--g48-rose);
  color: var(--g48-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.g48-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.g48-header-name {
  display: inline-flex;
  align-items: center;
  color: var(--g48-ink);
  font-weight: 700;
  font-size: 0.84rem;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}
.g48-header-out {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 2px;
  padding: 6px 12px;
  border: 1px solid var(--g48-line);
  border-radius: 999px;
  background: var(--g48-petal);
  color: var(--g48-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  min-height: 32px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.g48-header-out:hover { color: var(--g48-accent); border-color: var(--g48-accent); }
.g48-menu-chip {
  padding: 4px 10px; font-size: 0.85rem; border-radius: 999px;
  background: var(--g48-petal); color: var(--ink-on-light);
}
.g48-menu-chip.is-active {
  background: var(--g48-accent); color: #fff; font-weight: 800;
}

@media (max-width: 899px) {
  .g48-index-pull { width: calc(100% - 2 * var(--g48-pad-x)); padding: 10px 12px; }
  .g48-pull-body {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .g48-pull-menu { display: none; }
  .g48-menu-toggle { display: inline-flex; }
  .g48-tool-search { display: none; }
  .g48-tool-auth { margin-left: auto; }
  .g48-signin {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.88rem;
  }
  .g48-header-user { gap: 8px; }
  .g48-header-avatar {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }
  .g48-header-out {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-left: 0;
  }
}

/* Mobile drawers FAB */
.g48-drawers-open {
  position: fixed; z-index: 60; right: 12px; bottom: calc(var(--g48-mob-h) + 12px);
  border: 0; background: var(--g48-accent); color: #fff; font-weight: 800;
  padding: 10px 14px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 16px var(--g48-shadow);
}
@media (min-width: 900px) {
  .g48-drawers-open { display: none; }
}
.g48-drawers-backdrop {
  position: fixed; inset: 0; background: rgba(59, 31, 43, 0.4); z-index: 70; border: 0;
}
.g48-drawers-drawer {
  position: fixed; inset: 0; z-index: 80; display: none; pointer-events: none;
}
body.g48-drawers-is-open .g48-drawers-drawer { display: block; pointer-events: none; }
.g48-drawers-panel {
  position: absolute; top: 0; right: 0; width: min(86vw, 340px); height: 100%;
  background: var(--g48-panel); color: var(--g48-ink); padding: 16px;
  overflow: auto; pointer-events: auto;
  border-left: 3px solid var(--g48-accent);
  box-shadow: -8px 0 24px var(--g48-shadow);
}
.g48-drawers-head { display: flex; justify-content: space-between; align-items: center; }
.g48-drawer-label {
  margin: 0; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--g48-accent);
}
.g48-drawers-link {
  display: block; padding: 10px 0; border-bottom: 1px dashed var(--g48-line); font-weight: 600;
}
.g48-drawers-search { display: flex; margin: 12px 0; }
.g48-drawers-close { border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; color: inherit; }

/* Mobile bottom nav */
.g48-mobnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: flex; height: var(--g48-mob-h);
  background: var(--g48-bar); color: #fff;
  border-top: 2px solid var(--g48-rose);
}
@media (min-width: 900px) { .g48-mobnav { display: none; } }
.g48-mobnav .mobile-nav-item {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: #fbcfe8; font-size: 0.78rem; font-weight: 700;
}
.g48-mobnav .mobile-nav-item.active { color: #fff; }

/* Footer */
.g48-footer {
  margin-top: auto; padding: 28px var(--g48-pad-x) 24px;
  background: var(--g48-bar); color: #fce7f3;
  border-top: 3px solid var(--g48-rose);
}
.g48-footer a { color: #fbcfe8; }
.g48-footer a:hover { color: #fff; }
.g48-footer-grid {
  max-width: 1120px; margin: 0 auto; display: grid; gap: 18px;
}
@media (min-width: 768px) {
  .g48-footer-grid { grid-template-columns: 2fr 2fr 1fr; }
}
.g48-footer-links { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.g48-footer-copy { max-width: 1120px; margin: 16px auto 0; opacity: 0.75; font-size: 0.85rem; }
.g48-footer-desc { color: #f9a8d4; font-size: 0.9rem; }

/* Back to top — beat ads.css .back-to-top (loaded after styles.css) */
.back-to-top.g48-back-top,
.g48-back-top {
  position: fixed;
  right: 16px;
  bottom: calc(var(--g48-mob-h) + 64px);
  z-index: 900;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--g48-accent);
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: pointer;
  font-size: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, filter 0.15s ease;
}
.back-to-top.g48-back-top::before,
.g48-back-top::before {
  content: none;
  display: none;
  animation: none;
  opacity: 0;
  background: none;
  box-shadow: none;
}
.back-to-top.g48-back-top svg,
.g48-back-top svg {
  position: relative;
  z-index: 1;
  display: block;
}
.back-to-top.g48-back-top.is-visible,
.g48-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  display: inline-flex;
}
.back-to-top.g48-back-top:not(.is-visible),
.g48-back-top:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}
.back-to-top.g48-back-top:hover,
.g48-back-top:hover {
  filter: brightness(1.06);
  background: var(--g48-accent);
  box-shadow: none;
  transform: translateY(-2px);
}
.back-to-top.g48-back-top:active,
.g48-back-top:active {
  transform: translateY(0);
  filter: brightness(0.96);
}
@media (min-width: 900px) {
  .back-to-top.g48-back-top,
.g48-back-top {
    bottom: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top.g48-back-top,
.g48-back-top {
    transition: opacity 0.15s ease, visibility 0.15s ease;
    transform: none;
  }
  .back-to-top.g48-back-top:hover,
  .g48-back-top:hover,
  .back-to-top.g48-back-top:active,
  .g48-back-top:active {
    transform: none;
  }
}


/* Tags */
.g48-tags-head { margin-bottom: 16px; }
.g48-tags-head h1 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  line-height: 1.25;
}
.g48-tags-head .tag-h2 {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--g48-muted);
}
.g48-tags-search { display: flex; gap: 8px; margin: 10px 0; max-width: 420px; }
.g48-tags-search input {
  flex: 1; padding: 8px 12px; border: 1px solid var(--g48-line);
  background: var(--g48-panel); color: var(--g48-ink); border-radius: 999px;
}
.g48-tags-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.g48-filter-open { display: inline-flex; }
@media (min-width: 900px) {
  .g48-filter-open { display: none; }
}
.g48-view-toggle { display: flex; gap: 4px; }
.g48-view-btn {
  padding: 6px 12px; border: 1px solid var(--g48-line); background: var(--g48-panel);
  cursor: pointer; color: var(--g48-ink); border-radius: 999px;
}
.g48-view-btn.is-active {
  border-color: var(--g48-accent); background: var(--g48-accent); color: #fff; font-weight: 800;
}
/* Desktop chips; mobile uses Categories drawer to avoid duplicate */
.g48-tags-cats {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
@media (min-width: 900px) {
  .g48-tags-cats { display: flex; }
}
.g48-tags-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
@media (min-width: 900px) {
  .g48-tags-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
.g48-tags-grid.is-drawer { grid-template-columns: 1fr; gap: 8px; }
.g48-tags-grid.is-drawer .g48-tags-card {
  display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 0;
  border-radius: 6px;
}
.g48-tags-grid.is-drawer .g48-tags-media {
  aspect-ratio: auto;
  height: 80px;
}
.g48-tags-grid.is-drawer .g48-tags-body {
  padding: 10px 12px !important;
}
.g48-tags-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--g48-panel); border: 1px solid var(--g48-line);
  border-radius: 8px; overflow: hidden; box-shadow: 0 4px 0 var(--g48-petal);
  position: relative;
}
.g48-tags-media { display: block; aspect-ratio: 16/10; background: var(--g48-ph); overflow: hidden; }
.g48-tags-media img { width: 100%; height: 100%; object-fit: cover; }
.g48-tags-body {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.g48-tags-num {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--g48-mono); font-weight: 800; font-size: 0.7rem;
  background: var(--g48-panel); color: var(--g48-accent);
  border: 2px solid var(--g48-accent);
}
.g48-tags-grid.is-drawer .g48-tags-num {
  top: 6px; left: 6px; width: 26px; height: 26px; font-size: 0.62rem;
}
@media (max-width: 899px) {
  .g48-tags-head { margin-bottom: 10px; }
  .g48-tags-head .g48-aside-label { font-size: 0.62rem; margin-bottom: 2px; }
  .g48-tags-head h1 { font-size: 1.15rem; margin-bottom: 4px; }
  .g48-tags-head .tag-h2 {
    font-size: 0.78rem;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .g48-tags-search { margin: 6px 0; max-width: none; }
  .g48-tags-search input { padding: 8px 10px; font-size: 0.85rem; }
  .g48-tags-tools { gap: 8px; }
  .g48-view-btn { padding: 8px 12px; min-height: 40px; font-size: 0.8rem; }
  .g48-filter-open { min-height: 40px; padding: 8px 14px; }
  .g48-tags-grid { gap: 10px; }
  .g48-tags-num { width: 26px; height: 26px; font-size: 0.62rem; top: 6px; left: 6px; }
  .g48-tags-body {
    padding: 8px 10px 10px !important;
    gap: 3px;
  }
  .g48-tags-body .game-title,
  .g48-tags-body .card-title { font-size: 0.82rem; }
  .g48-tags-body .game-star { font-size: 0.78rem; }
  .g48-tags-body .brief-comment-game,
  .g48-tags-body .g48-card-tags { display: none; }
  .g48-tags-grid.is-drawer .g48-tags-card {
    grid-template-columns: 96px 1fr;
  }
  .g48-tags-grid.is-drawer .g48-tags-media { height: 72px; }
  .g48-tags-grid.is-drawer .g48-tags-body { padding: 8px 10px !important; }
}

body.g48-drawer-open .g48-tags-drawer { pointer-events: none; display: block; }
.g48-tags-drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.g48-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(59, 31, 43, 0.4); z-index: 89; border: 0;
}
.g48-drawer-panel {
  position: absolute; top: 0; left: 0; width: min(86vw, 320px); height: 100%;
  background: var(--g48-panel); padding: 16px; overflow: auto; pointer-events: auto;
  border-right: 3px solid var(--g48-accent); z-index: 91;
}
.g48-drawer-head { display: flex; justify-content: space-between; align-items: center; }
.g48-drawer-link { display: block; padding: 10px 0; border-bottom: 1px dashed var(--g48-line); }
.g48-drawer-close { border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; }

/* Detail — Card Window */
.g48-detail-kicker {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem;
  color: var(--g48-accent); margin: 0 0 6px; font-weight: 800;
}
.g48-detail-meta { margin: 10px 0; font-size: 0.9rem; color: var(--g48-muted); }
.g48-meta-row span { display: inline-block; min-width: 88px; opacity: 0.8; }
.g48-detail-block {
  margin: 20px 0; padding: 16px;
  background: var(--g48-panel); border: 1px solid var(--g48-line);
  border-radius: var(--g48-radius); box-shadow: 0 4px 0 var(--g48-petal);
}
.g48-quote { margin: 0; color: var(--g48-muted); }
.g48-play-stage { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 900px) {
  .g48-play-stage { grid-template-columns: 1.4fr 1fr; }
}
.g48-play-side {
  background: var(--g48-panel);
  border: 1px solid var(--g48-line);
  border-radius: 4px 16px 4px 4px;
  padding: 18px;
  box-shadow: 6px 8px 0 var(--g48-shadow);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.g48-related { margin: 24px 0; }
.g48-crumb { margin-bottom: 12px; font-size: 0.85rem; color: var(--g48-muted); }
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }

/* Auth */
.g48-login-modal[hidden] { display: none !important; }
.g48-login-modal { position: fixed; inset: 0; z-index: 200; }
.g48-login-modal__backdrop { position: absolute; inset: 0; background: rgba(59, 31, 43, 0.5); border: 0; }
.g48-login-modal__panel {
  position: relative; z-index: 1; max-width: 420px; margin: 8vh auto; padding: 8px;
}
.g48-login-modal__close {
  position: absolute; right: 16px; top: 16px; z-index: 2;
  border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; color: var(--g48-ink);
}
.g48-auth-page { display: flex; justify-content: center; padding: 32px 16px; }
.g48-auth-card {
  width: 100%; max-width: 420px; background: var(--g48-panel);
  border: 1px solid var(--g48-line); border-radius: 12px; padding: 24px;
  box-shadow: 0 12px 32px var(--g48-shadow);
}
.g48-auth-kicker {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem;
  color: var(--g48-accent); font-weight: 800; margin: 0;
}
.g48-auth-head { margin: 4px 0 16px; }
.g48-auth-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.g48-auth-tab {
  flex: 1; padding: 8px; border: 1px solid var(--g48-line); background: transparent;
  cursor: pointer; color: var(--g48-ink); border-radius: 999px;
}
.g48-auth-tab.active {
  border-color: var(--g48-accent); background: var(--g48-accent); color: #fff; font-weight: 800;
}
.g48-auth-panel { display: none; }
.g48-auth-panel.active { display: block; }
.g48-form-group { margin-bottom: 12px; }
.g48-form-group label { display: block; margin-bottom: 4px; font-size: 0.85rem; }
.g48-form-input {
  width: 100%; padding: 10px; border: 1px solid var(--g48-line);
  background: var(--g48-bg); color: var(--g48-ink); border-radius: 8px; font: inherit;
}
.g48-form-error { display: none; color: var(--g48-cta); font-size: 0.8rem; }
.g48-form-input-wrap { position: relative; }

/* Profile */
.g48-profile-page { padding-bottom: 40px; }
.g48-tickets-banner {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  padding: 18px; background: var(--g48-panel); border: 1px solid var(--g48-line);
  border-radius: 12px; margin-bottom: 18px; box-shadow: 0 8px 20px var(--g48-shadow);
}
.g48-profile-nav { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.g48-profile-nav-item {
  padding: 8px 12px; border: 1px solid var(--g48-line); background: transparent;
  color: var(--g48-ink); cursor: pointer; border-radius: 999px;
}
.g48-profile-nav-item.active {
  border-color: var(--g48-accent); background: var(--g48-accent); color: #fff; font-weight: 800;
}
.g48-profile-panel { display: none; }
.g48-profile-panel.active { display: block; }
.g48-game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
@media (max-width: 767px) {
  .g48-tickets-banner {
    gap: 10px;
    padding: 12px;
    margin-bottom: 12px;
  }
  .g48-profile-avatar { width: 44px; height: 44px; font-size: 1rem; }
  .g48-profile-name { font-size: 1rem; }
  .g48-profile-email { font-size: 0.78rem; }
  .g48-profile-stats { gap: 12px; margin-left: 0; width: 100%; justify-content: flex-start; }
  .g48-stat-num { font-size: 1.05rem; }
  .g48-stat-label { font-size: 0.62rem; }
  .g48-profile-nav-item { padding: 7px 10px; font-size: 0.72rem; }
  .g48-shelf-block { padding: 12px; }
  .g48-profile-panel-head { margin-bottom: 10px; }
  .g48-profile-card-title { font-size: 1rem; }
  .g48-game-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.g48-loading { padding: 24px; text-align: center; color: var(--g48-muted); }
.g48-loading-spinner {
  width: 28px; height: 28px; margin: 0 auto 8px; border-radius: 50%;
  border: 3px solid var(--g48-line); border-top-color: var(--g48-accent);
  animation: g48-spin 0.8s linear infinite;
}
@keyframes g48-spin { to { transform: rotate(360deg); } }
.g48-empty-state { padding: 24px; text-align: center; color: var(--g48-muted); }
.g48-aside-label {
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem;
  color: var(--g48-accent); margin: 0; font-weight: 800;
}

.game-empty { text-align: center; padding: 48px 16px; }
.game-empty-title { font-size: 1.4rem; margin-bottom: 8px; }
.pagination-container { margin: 32px 0 12px; }
.g48-legal {
  background: var(--g48-panel); padding: 20px; border-radius: var(--g48-radius);
  border: 1px solid var(--g48-line); box-shadow: 0 4px 0 var(--g48-petal);
}

/* Comments */
.g48-comment-login-prompt { text-align: center; padding: 16px; }
.g48-comment-form-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.g48-comment-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--g48-petal);
  display: grid; place-items: center; font-weight: 800; color: var(--g48-accent);
}
.g48-rating-input { display: flex; gap: 4px; margin-bottom: 10px; }
.g48-rating-star {
  border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; color: var(--g48-star-empty);
}
.g48-rating-star.active { color: var(--g48-star-full); }
.g48-comment-textarea {
  width: 100%; min-height: 90px; padding: 10px; border: 1px solid var(--g48-line);
  border-radius: 8px; background: var(--g48-bg); color: var(--g48-ink); font: inherit; resize: vertical;
}
.g48-comment-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

@media (max-width: 899px) {
  .g48-header-name { display: none; }
  .g48-brand { max-width: min(30vw, 112px); }
  .g48-drawers-open {
    /* Header hamburger is primary; keep FAB as secondary drawers entry */
    bottom: calc(var(--g48-mob-h) + 12px);
  }
}
@media (min-width: 900px) {
  .g48-menu-toggle { display: none !important; }
  .g48-brand { max-width: none; }
}

/* Profile shelves / identity (Card Index) */
.g48-profile-user { display: flex; align-items: center; gap: 14px; min-width: 0; }
.g48-profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(219, 39, 119, 0.2); color: var(--g48-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; flex-shrink: 0;
  background-size: cover; background-position: center;
  border: 2px solid var(--g48-line);
}
.g48-profile-name { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--g48-ink); }
.g48-profile-email { margin: 2px 0 0; color: var(--g48-muted); font-size: 0.88rem; }
.g48-profile-stats { display: flex; gap: 16px; margin-left: auto; }
.g48-stat-item { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.g48-stat-num { font-size: 1.25rem; font-weight: 800; color: var(--g48-accent); }
.g48-stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--g48-muted); font-weight: 700; }
.g48-profile-shelves { display: grid; gap: 14px; }
.g48-shelf-block {
  padding: 16px; background: var(--g48-panel); border: 1px solid var(--g48-line);
  border-radius: var(--g48-radius);
}
.g48-profile-panel-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.g48-profile-card-title { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--g48-ink); }
.g48-shelf-actions { display: flex; align-items: center; gap: 10px; }
.g48-stat-badge {
  font-size: 0.8rem; font-weight: 700; color: var(--g48-muted);
  padding: 4px 10px; background: rgba(190, 24, 93, 0.08); border-radius: 999px;
}
.g48-aside-label {
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem;
  color: var(--g48-accent); margin: 0; font-weight: 800;
}
.g48-profile-form-block { max-width: 520px; }
.g48-avatar-upload { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.g48-avatar-preview {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(219, 39, 119, 0.2); color: var(--g48-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.4rem;
  background-size: cover; background-position: center;
  border: 2px solid var(--g48-line); flex-shrink: 0;
}
.g48-avatar-hint { margin: 6px 0 0; font-size: 0.78rem; color: var(--g48-muted); }
.g48-form-row { display: grid; gap: 12px; }
@media (min-width: 560px) { .g48-form-row { grid-template-columns: 1fr 1fr; } }
.g48-empty-state { padding: 28px 16px; text-align: center; color: var(--g48-muted); }
