/* game_tgn_0053 — READING LEDGE
   Desk blotter + Folio book · upright shelf volumes · museum vitrine · catalog drawer slips
   S-EDGE · modal */

:root {
  --g53-paper: #f7f3ea;
  --g53-panel: #fffdf8;
  --g53-spine: #2c3e50;
  --g53-ink: #1c2833;
  --g53-edge-ink: #f0ebe3;
  --g53-muted: #475569;
  --g53-cord: #8b3a3a;
  --g53-sage: #5f7a61;
  --g53-line: rgba(28, 40, 51, 0.12);
  --g53-hi: #fde68a;
  --g53-wood: #6b4f3a;
  --g53-wood-deep: #3e2c20;
  --g53-blotter: #243342;
  --g53-star-full: #b8860b;
  --g53-star-empty: #64748b;
  --g53-ph: #d9d2c4;
  --g53-edge: 148px;
  --g53-dock: 54px;
  --g53-gx: 18px;
  --g53-max: 1200px;
  --g53-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg-main: var(--g53-paper);
  --text-main: var(--g53-ink);
  --text-muted: var(--g53-muted);
  --accent: var(--g53-sage);
  --ink-muted: #334155;
  --ink-on-light: #1e293b;
}
@media (max-width: 560px) { :root { --g53-gx: 12px; } }

*, *::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; }
}

/* Desk blotter world — paper ledge sits on dark oak */
body.g53-body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--g53-font); font-size: 16px; line-height: 1.5;
  color: var(--g53-ink);
  background:
    radial-gradient(ellipse 90% 40% at 40% 0%, rgba(253, 230, 138, 0.08), transparent 55%),
    linear-gradient(180deg, #1a2430 0%, var(--g53-blotter) 28%, #1e2a36 100%);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--g53-dock) + 10px);
}
@media (min-width: 900px) {
  body.g53-body { padding-bottom: 0; padding-left: var(--g53-edge); }
}

a { color: var(--g53-ink); text-decoration: none; }
a:hover { color: var(--g53-cord); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--g53-cord);
  outline-offset: 2px;
}
img { max-width: 100%; height: auto; display: block; }
.g53-skip {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  padding: 10px 16px; background: var(--g53-cord); color: #fff;
  font-weight: 800; text-decoration: none;
}
.g53-skip:focus {
  left: var(--g53-gx); top: 8px;
  outline: 2px solid #fff; outline-offset: 2px;
}
.g53-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;
}
.g53-page-pad {
  width: min(100% - 2 * var(--g53-gx), var(--g53-max));
  margin: 0 auto; padding: 20px 0 32px;
}
.g53-ad-slot, .g53-ad-top {
  width: min(100% - 2 * var(--g53-gx), var(--g53-max));
  margin: 12px auto; box-sizing: border-box;
}
/* Legal pages nest ads inside .g53-page-pad — don't subtract gutter twice */
.g53-page-pad .g53-ad-slot,
.g53-page-pad .g53-legal-ad {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.g53-pick-section { background: transparent; }

/* Paper reading surface — solid cream (no transparent gradients; beat dark CMS overrides) */
.g53-ledge.g53-main,
.g53-main,
main.g53-catalog,
main.tags-box {
  flex: 1; width: 100%; max-width: none; margin: 0; padding: 0 0 56px; min-width: 0;
  background: #f7f3ea !important;
  color: #1c2833 !important;
  border-top: 1px solid rgba(240, 235, 227, 0.12);
  box-shadow: inset 0 8px 24px rgba(28, 40, 51, 0.04);
}

.g53-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; border: 1px solid transparent; font: inherit;
  font-weight: 800; font-size: 0.75rem; letter-spacing: 0.05em;
  text-transform: uppercase; cursor: pointer;
}
.g53-btn-primary { background: var(--g53-cord); color: #fff; }
.g53-btn-primary:hover { filter: brightness(1.08); color: #fff; }
.g53-btn-outline, .g53-btn--line {
  background: transparent; border-color: var(--g53-line); color: var(--g53-ink);
}

.article-list .game-title,
.article-list .card-title,
.special-card .game-title,
.game-card .card-title,
.carousel-card .game-title {
  display: block; max-width: 100%; min-width: 0; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 800;
}
.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(--g53-star-full); }
.game-star .star-empty::before { content: "★"; color: var(--g53-star-empty); opacity: 0.5; }
.game-star--detail-hero { font-size: 1.1rem; margin: 8px 0; }

.g53-main .brief-comment-game {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  -webkit-line-clamp: 2; min-width: 0; color: var(--ink-on-light);
  font-size: 0.95rem; line-height: 1.45; font-weight: 500;
}
@media (min-width: 768px) { .g53-main .brief-comment-game { -webkit-line-clamp: 3; } }
.g53-main .g53-card-tags {
  display: flex; gap: 6px; min-width: 0; flex-wrap: nowrap; overflow: hidden;
}
@media (min-width: 768px) {
  .g53-main .g53-card-tags { flex-wrap: wrap; overflow: visible; }
}
.g53-chip, .g53-chip-link,
a.g53-chip-link,
.g53-catalog-cats .category-item {
  display: inline-block; padding: 6px 12px;
  background: #ffffff !important;
  border: 1px solid #1c2833 !important;
  font-size: 0.9rem; font-weight: 800;
  color: #0f172a !important;
  white-space: nowrap; line-height: 1.25;
}
a.g53-chip-link:hover,
a.g53-chip-link.active,
.g53-catalog-cats .category-item:hover,
.g53-catalog-cats .category-item.active {
  background: #2c3e50 !important;
  border-color: #2c3e50 !important;
  color: #f0ebe3 !important;
}
.g53-bay-meta .g53-chip,
.g53-slip-meta .g53-chip,
.g53-card-tags .g53-chip {
  background: #e8f0e9 !important;
  border-color: #3f5642 !important;
  color: #1a2e1c !important;
  font-size: 0.8rem; font-weight: 700;
}

/* Section head — chapter marks */
.g53-sec-hd {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  width: min(100% - 2 * var(--g53-gx), var(--g53-max));
  margin: 32px auto 14px; box-sizing: border-box;
}
.g53-sec-code {
  font-size: 0.85rem; font-weight: 900; font-variant-numeric: tabular-nums;
  color: var(--g53-cord); border-bottom: 2px solid var(--g53-cord); padding: 0 2px 2px;
}
.g53-sec-title { margin: 0; font-size: 1.5rem; font-weight: 900; letter-spacing: 0.01em; color: var(--g53-ink); }
.g53-sec-badge {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #3f5642;
}
.g53-sec-more {
  margin-left: auto; font-size: 0.85rem; font-weight: 800;
  color: var(--g53-cord); letter-spacing: 0.04em; text-transform: uppercase;
}
.g53-sec-desc {
  width: min(100% - 2 * var(--g53-gx), var(--g53-max));
  margin: 0 auto 14px; color: #1e293b; font-size: 1rem; font-weight: 500;
  line-height: 1.55; box-sizing: border-box;
}
.g53-section-more { font-size: 0.75rem; font-weight: 800; color: var(--g53-cord); text-transform: uppercase; }
.g53-kicker {
  margin: 0 0 4px; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: #3f5642;
}

/* ===== Colophon — circular press seal (no search; search lives in brow) ===== */
.g53-imprint {
  display: grid; gap: 16px; align-items: center;
  width: min(100% - 2 * var(--g53-gx), var(--g53-max));
  margin: 20px auto 8px; padding: 18px 20px; box-sizing: border-box;
  background: var(--g53-panel);
  border: 1px solid var(--g53-line);
  border-left: 4px solid var(--g53-cord);
}
@media (min-width: 640px) {
  .g53-imprint { grid-template-columns: auto 1fr; }
}
.g53-imprint-seal {
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px solid var(--g53-cord); color: var(--g53-cord);
  box-shadow: inset 0 0 0 4px var(--g53-panel), inset 0 0 0 5px rgba(139, 58, 58, 0.35);
}
.g53-imprint-ring {
  font-size: 0.62rem; font-weight: 900; letter-spacing: 0.1em; text-align: center;
  max-width: 72px; line-height: 1.25;
}
.g53-imprint-yr { font-size: 1.05rem; font-weight: 900; margin-top: 4px; font-variant-numeric: tabular-nums; }
.g53-imprint-k {
  margin: 0 0 4px; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: #3f5642;
}
.g53-imprint-s { margin: 0; font-weight: 900; font-size: 1.25rem; color: var(--g53-ink); }
.g53-imprint-d { color: var(--ink-muted); font-size: 1rem; margin-top: 6px; line-height: 1.5; }
@media (max-width: 639px) {
  .g53-imprint {
    grid-template-columns: auto 1fr;
    gap: 10px; margin: 10px auto 4px; padding: 10px 12px;
  }
  .g53-imprint-seal { width: 52px; height: 52px; }
  .g53-imprint-ring { font-size: 0.48rem; max-width: 44px; letter-spacing: 0.06em; }
  .g53-imprint-yr { font-size: 0.8rem; margin-top: 2px; }
  .g53-imprint-k { margin: 0 0 2px; font-size: 0.62rem; letter-spacing: 0.1em; }
  .g53-imprint-s { font-size: 0.92rem; line-height: 1.25; }
  .g53-imprint-d {
    font-size: 0.82rem; line-height: 1.35; margin-top: 3px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  }
}
.g53-brow-q, .g53-drawer-q {
  display: flex; min-width: 0;
}
.g53-brow-q input, .g53-drawer-q input {
  flex: 1; min-width: 0; border: 1px solid var(--g53-line);
  background: #fff; color: var(--g53-ink); padding: 8px 10px; font: inherit;
}
.g53-drawer-q button {
  border: 0; background: var(--g53-sage); color: #fff; font-weight: 800;
  padding: 8px 12px; cursor: pointer;
}

/* ===== FOLIO — open book on desk + ribbon bookmarks ===== */
.g53-bookdesk {
  position: relative;
  width: min(100% - 2 * var(--g53-gx), var(--g53-max));
  margin: 0 auto 8px; padding-top: 88px; box-sizing: border-box;
}

.g53-ribbons {
  position: absolute; top: 0; left: 2%; right: 2%; z-index: 5;
  display: flex; justify-content: center; gap: 8px; pointer-events: none;
}
.g53-ribbon {
  pointer-events: auto;
  display: flex; flex-direction: column; align-items: stretch;
  width: min(118px, 20vw); max-width: 128px;
  background: var(--g53-cord); color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 50% 100%, 0 calc(100% - 14px));
  padding: 0 0 16px; transform: translateY(0);
  transition: transform 0.18s ease;
  box-shadow: 0 4px 10px rgba(28, 40, 51, 0.25);
}
.g53-ribbon:nth-child(3n+2) { background: var(--g53-sage); }
.g53-ribbon:nth-child(3n) { background: var(--g53-spine); }
.g53-ribbon:nth-child(even) { transform: translateY(8px); }
.g53-ribbon:hover { transform: translateY(-6px); color: #fff; }
.g53-ribbon-face {
  aspect-ratio: 4 / 3; overflow: hidden; background: rgba(0, 0, 0, 0.2); margin: 5px;
}
.g53-ribbon-face img { width: 100%; height: 100%; object-fit: cover; }
.g53-ribbon-meta {
  padding: 6px 8px 10px !important; color: #fff;
  display: flex; flex-direction: column; gap: 3px;
}
.g53-ribbon-meta .game-title {
  color: #fff; font-size: 0.86rem; font-weight: 800; line-height: 1.25;
}
.g53-ribbon-meta .game-star { font-size: 0.85rem; }
.g53-ribbon-meta .game-star .star-full::before { color: var(--g53-hi); }
.g53-ribbon-meta .game-star .star-empty::before { color: rgba(255, 255, 255, 0.45); }
.g53-ribbon-n {
  font-size: 0.7rem; font-weight: 900; letter-spacing: 0.08em; opacity: 0.95;
}
@media (max-width: 640px) {
  .g53-bookdesk { padding-top: 62px; }
  .g53-ribbons {
    left: 0; right: 0; gap: 8px;
    overflow-x: auto; justify-content: flex-start;
    padding: 0 2px 2px; scroll-padding-inline: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .g53-ribbon {
    flex: 0 0 86px; width: 86px; max-width: none;
    /* Softer tip so title/stars aren't clipped by the V cut */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 50% 100%, 0 calc(100% - 8px));
    padding: 0 0 12px;
    transform: none;
  }
  .g53-ribbon:nth-child(even) { transform: none; }
  .g53-ribbon-face { margin: 3px; aspect-ratio: 16 / 10; }
  .g53-ribbon-meta { padding: 3px 5px 4px !important; gap: 1px; }
  .g53-ribbon-meta .game-title { font-size: 0.7rem; line-height: 1.2; }
  .g53-ribbon-meta .game-star { display: none; }
  .g53-ribbon-n { font-size: 0.58rem; }
}

.g53-openbook {
  position: relative; z-index: 2; display: grid; gap: 0;
  background: var(--g53-wood-deep);
  padding: 10px 8px 14px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease;
}
.g53-openbook:hover { transform: translateY(-3px); color: inherit; }
@media (min-width: 800px) {
  .g53-openbook { grid-template-columns: 1fr 14px 1fr; padding: 14px 12px 18px; }
}
.g53-openbook-bind {
  display: none;
}
@media (min-width: 800px) {
  .g53-openbook-bind {
    display: block; grid-column: 2; grid-row: 1;
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 40%, transparent 60%, rgba(0, 0, 0, 0.35)),
      linear-gradient(180deg, #2a1c14, var(--g53-wood), #2a1c14);
    border-radius: 2px; box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
  }
}
.g53-page {
  position: relative; background: var(--g53-panel); min-height: 240px;
  box-shadow: inset 0 0 40px rgba(28, 40, 51, 0.04);
}
.g53-page--verso { overflow: hidden; }
@media (min-width: 800px) {
  .g53-page--verso { grid-column: 1; }
  .g53-page--recto { grid-column: 3; }
  .g53-page--verso {
    box-shadow: inset -18px 0 28px -18px rgba(28, 40, 51, 0.18);
  }
  .g53-page--recto {
    box-shadow: inset 18px 0 28px -18px rgba(28, 40, 51, 0.14);
    background:
      repeating-linear-gradient(
        transparent 0 28px,
        rgba(28, 40, 51, 0.06) 28px 29px
      ),
      var(--g53-panel);
  }
}
.g53-page-num {
  position: absolute; bottom: 8px; font-size: 0.75rem; font-weight: 700;
  color: var(--ink-muted); letter-spacing: 0.08em; z-index: 2;
}
.g53-page--verso .g53-page-num { left: 12px; }
.g53-page--recto .g53-page-num { right: 12px; }
.g53-page-art { aspect-ratio: 16 / 10; background: var(--g53-ph); }
.g53-page-art img { width: 100%; height: 100%; object-fit: cover; }
.g53-page--recto.special-card-content {
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
  padding: 28px 24px 40px !important;
}
@media (max-width: 799px) {
  .g53-page { min-height: 0; }
  .g53-page--recto.special-card-content {
    padding: 14px 12px 20px !important; gap: 6px;
  }
  .g53-page--recto .game-title { font-size: 1.05rem; }
  .g53-page--recto .brief-comment-game { -webkit-line-clamp: 2; font-size: 0.88rem; }
  .g53-openbook { padding: 8px 6px 10px; }
}
.g53-page--recto .game-title {
  font-size: 1.35rem; font-weight: 900; color: var(--g53-ink);
}
.g53-page--recto .game-star { font-size: 1.05rem; }
.g53-page--recto .brief-comment-game {
  font-size: 1rem; color: var(--ink-muted); -webkit-line-clamp: 4;
}
.g53-page-hi {
  position: absolute; left: 0; top: 22%; width: 5px; height: 36%;
  background: var(--g53-hi);
}
.g53-page-k {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: #3f5642;
}

/* ===== SHELF — upright volumes on wood ledge ===== */
.g53-shelfcase {
  width: min(100% - 2 * var(--g53-gx), var(--g53-max));
  margin: 0 auto; box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), transparent 40%),
    linear-gradient(90deg, #2a1c14 0 10px, transparent 10px),
    linear-gradient(90deg, transparent calc(100% - 10px), #2a1c14 calc(100% - 10px)),
    linear-gradient(180deg, #5a4030 0%, var(--g53-wood-deep) 100%);
  border: 3px solid #1e140e;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 0 0 0;
  overflow: hidden;
}
.g53-shelfcase-crown {
  display: flex; align-items: center; justify-content: center;
  height: 28px;
  background: linear-gradient(180deg, #8a6a4e, var(--g53-wood));
  border-bottom: 2px solid #1e140e;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}
.g53-shelfcase-crown-lab {
  font-size: 0.58rem; font-weight: 900; letter-spacing: 0.2em;
  color: rgba(247, 243, 234, 0.7); text-transform: uppercase;
}
.g53-shelfrow {
  display: flex; align-items: flex-end; gap: 0;
  padding: 28px 8px 0; min-height: 320px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(253, 230, 138, 0.06), transparent 60%),
    linear-gradient(180deg, #3a2a1e 0%, #2a1c14 100%);
}
.g53-bookend {
  flex: 0 0 14px; align-self: flex-end; height: 200px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 40%, transparent 60%, rgba(0, 0, 0, 0.25)),
    linear-gradient(180deg, #c4a574, #8a6a4e 40%, #6b4f3a);
  border-radius: 2px 2px 0 0;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.3);
}
.g53-bookend--r { box-shadow: -2px 0 6px rgba(0, 0, 0, 0.3); }
.g53-volumes {
  flex: 1; min-width: 0;
  display: flex; align-items: flex-end; gap: 8px;
  overflow-x: auto; padding: 0 6px 0 4px; scroll-snap-type: x proximity;
  scroll-padding-inline: 8px;
  -webkit-overflow-scrolling: touch;
}
.g53-volume {
  flex: 0 0 auto; width: 152px; scroll-snap-align: start;
  display: flex; align-items: stretch;
  height: calc(228px + (var(--v, 0) % 3) * 12px);
  transform-origin: bottom center;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}
.g53-volume:nth-child(3n+2) { transform: rotate(1.2deg); }
.g53-volume:nth-child(3n) { transform: rotate(-1deg); }
.g53-volume:nth-child(5n) { transform: rotate(0.6deg); }
.g53-volume:hover {
  transform: translateY(-10px) rotate(0deg) scale(1.03);
  color: inherit; z-index: 2;
}
.g53-volume-spine {
  flex: 0 0 18px; position: relative; overflow: hidden;
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--g53-cord), #5c2626);
  color: #f7f3ea; box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.35);
}
.g53-volume:nth-child(3n+2) .g53-volume-spine {
  background: linear-gradient(180deg, var(--g53-sage), #3a4e3c);
}
.g53-volume:nth-child(3n) .g53-volume-spine {
  background: linear-gradient(180deg, var(--g53-spine), #1a2430);
}
.g53-volume:nth-child(4n+1) .g53-volume-spine {
  background: linear-gradient(180deg, #8b6914, #5c450c);
}
.g53-volume-band {
  position: absolute; left: 0; right: 0; top: 18%; height: 6px;
  background: rgba(253, 230, 138, 0.55);
}
.g53-volume-spine-t {
  max-height: 85%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.06em; padding: 4px 0;
}
.g53-volume-face {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  background: var(--g53-panel);
  border: 1px solid rgba(42, 28, 20, 0.4);
  border-left: 0;
}
.g53-volume-cover {
  flex: 1 1 auto; min-height: 72px; background: var(--g53-ph); overflow: hidden;
}
.g53-volume-cover img { width: 100%; height: 100%; object-fit: cover; }
.g53-volume-meta {
  flex: 0 0 auto;
  display: flex; flex-direction: column; gap: 3px;
  padding: 8px 10px 10px !important;
  border-top: 1px solid var(--g53-line);
  background: linear-gradient(180deg, #fffdf8, #f3ebd8);
}
.g53-volume-n {
  font-size: 0.55rem; font-weight: 900; letter-spacing: 0.12em;
  color: var(--g53-cord);
}
.g53-volume-meta .game-title { font-size: 0.9rem; color: var(--g53-ink); }
.g53-volume-meta .brief-comment-game { display: none; }
.g53-volume-meta .g53-card-tags { display: none; }
@media (min-width: 900px) {
  .g53-volume-meta .brief-comment-game {
    display: -webkit-box; -webkit-line-clamp: 2;
  }
  .g53-volume-meta .g53-card-tags { display: flex; }
  .g53-volume { width: 168px; height: calc(248px + (var(--v, 0) % 3) * 12px); }
}
@media (max-width: 560px) {
  .g53-volume {
    width: 108px;
    height: calc(156px + (var(--v, 0) % 3) * 6px);
    transform: none;
  }
  .g53-volume:nth-child(n) { transform: none; }
  .g53-volume-spine { flex-basis: 12px; }
  .g53-volume-meta { padding: 5px 6px 6px !important; gap: 1px; }
  .g53-volume-meta .game-title { font-size: 0.72rem; }
  .g53-volume-meta .game-star { font-size: 0.68rem; }
  .g53-volume-n { font-size: 0.5rem; }
  .g53-bookend { flex-basis: 8px; height: 140px; }
  .g53-shelfrow { min-height: 190px; padding-top: 12px; }
  .g53-volumes { gap: 6px; padding-right: 10px; }
}
.g53-shelfplank {
  position: relative; height: 22px;
  background: linear-gradient(180deg, #8a6a4e, var(--g53-wood) 40%, #2a1c14);
  border-top: 2px solid #1e140e;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}
.g53-shelfplank-lip {
  display: block; height: 6px; margin-top: -1px;
  background: linear-gradient(180deg, #a8845c, #6b4f3a);
  box-shadow: 0 3px 0 #1e140e;
}

/* ===== CASE — museum vitrine with mullions ===== */
.g53-vitrine {
  position: relative;
  width: min(100% - 2 * var(--g53-gx), var(--g53-max));
  margin: 0 auto; box-sizing: border-box;
  background: var(--g53-wood-deep);
  border: 5px solid #2a1c14;
  padding: 18px 14px 14px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.g53-vitrine-frame {
  position: absolute; inset: 6px; pointer-events: none; z-index: 3;
  border: 1px solid rgba(196, 165, 116, 0.35);
}
.g53-vitrine-corn {
  position: absolute; width: 16px; height: 16px;
  border: 2px solid #c4a574;
}
.g53-vitrine-corn--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.g53-vitrine-corn--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.g53-vitrine-corn--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.g53-vitrine-corn--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.g53-vitrine-label {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 2px 10px; font-size: 0.55rem; font-weight: 900;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: linear-gradient(180deg, #d4b896, #a8845c);
  color: #2a1c14; border: 1px solid #6b4f3a;
  white-space: nowrap;
}
.g53-vitrine-glass {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: #1e140e; padding: 8px;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
}
@media (min-width: 768px) {
  .g53-vitrine-glass { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (min-width: 1100px) {
  .g53-vitrine-glass { grid-template-columns: repeat(4, 1fr); }
}
.g53-bay {
  position: relative; display: flex; flex-direction: column;
  background: var(--g53-panel);
  border: 3px solid #5a4030;
  box-shadow:
    inset 0 0 0 1px rgba(196, 165, 116, 0.25),
    0 2px 0 #1e140e;
  overflow: hidden; transition: transform 0.18s ease;
}
.g53-bay:hover { transform: translateY(-3px); color: inherit; z-index: 1; }
.g53-bay-mullion {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(42, 28, 20, 0.2);
}
.g53-bay-shine {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.28) 0 12%, transparent 28%),
    linear-gradient(300deg, transparent 60%, rgba(255, 255, 255, 0.08) 100%);
}
.g53-bay-plaque {
  position: relative; z-index: 1; align-self: flex-start;
  margin: 8px 0 0 10px; padding: 3px 8px;
  background: linear-gradient(180deg, #e8d5b0, #c4a574);
  border: 1px solid #8a6a4e;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.g53-bay-plaque-n {
  font-size: 0.55rem; font-weight: 900; letter-spacing: 0.14em;
  color: #2a1c14;
}
.g53-bay-art {
  position: relative; z-index: 1;
  aspect-ratio: 16 / 10; margin: 8px 10px 0;
  background: var(--g53-ph); overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 10px rgba(0, 0, 0, 0.15);
}
.g53-bay-art img { width: 100%; height: 100%; object-fit: cover; }
.g53-bay-meta {
  position: relative; z-index: 1;
  padding: 12px 14px 16px !important;
  display: flex; flex-direction: column; gap: 5px;
  background:
    repeating-linear-gradient(
      transparent 0 22px,
      rgba(28, 40, 51, 0.05) 22px 23px
    ),
    var(--g53-panel);
}
.g53-bay-meta .game-title { font-size: 1.05rem; font-weight: 800; color: #1c2833; }
@media (max-width: 640px) {
  .g53-vitrine { padding: 14px 8px 8px; border-width: 3px; }
  .g53-vitrine-glass { gap: 6px; padding: 6px; }
  .g53-bay { border-width: 2px; }
  .g53-bay-plaque { margin: 6px 0 0 6px; padding: 2px 6px; }
  .g53-bay-art { margin: 6px 6px 0; }
  .g53-bay-meta { padding: 8px 8px 10px !important; gap: 3px; }
  .g53-bay-meta .game-title { font-size: 0.82rem; }
  .g53-bay-meta .brief-comment-game { display: none; }
  .g53-bay-meta .g53-card-tags { gap: 4px; }
  .g53-bay-meta .g53-chip {
    padding: 2px 6px; font-size: 0.62rem;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  }
}

/* ===== SLIP — pulled catalog drawer + ruled cards ===== */
.g53-drawerbox {
  width: min(100% - 2 * var(--g53-gx), var(--g53-max));
  margin: 0 auto; box-sizing: border-box;
  background: linear-gradient(180deg, #4a3426, #2a1c14);
  border: 3px solid #1e140e;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
  padding: 0 0 10px;
}
.g53-drawerface {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 12px 8px;
  background: linear-gradient(180deg, #8a6a4e, var(--g53-wood));
  border-bottom: 2px solid #1e140e;
}
.g53-drawerpull {
  width: 56px; height: 10px; border-radius: 999px;
  background: linear-gradient(180deg, #d4b896, #8a6a4e);
  border: 1px solid #5a4030;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 3px rgba(0, 0, 0, 0.35);
}
.g53-drawerface-lab {
  font-size: 0.55rem; font-weight: 900; letter-spacing: 0.18em;
  color: rgba(247, 243, 234, 0.75); text-transform: uppercase;
}
.g53-tray {
  display: flex; flex-direction: column; gap: 8px; box-sizing: border-box;
  padding: 14px 12px 6px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.25), transparent 8%, transparent 92%, rgba(0, 0, 0, 0.25)),
    #3a2a1e;
}
.g53-alike .g53-drawerbox { width: 100%; }
.g53-slip {
  position: relative;
  display: grid;
  grid-template-columns: 10px 28px 40px 96px 1fr;
  align-items: center; gap: 0;
  margin-left: calc((var(--s, 0) % 3) * 6px);
  margin-right: calc(12px - (var(--s, 0) % 3) * 6px);
  background:
    repeating-linear-gradient(
      transparent 0 23px,
      rgba(28, 40, 51, 0.07) 23px 24px
    ),
    #f3ecd8;
  border: 1px solid #cbbfa8;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.14),
    0 6px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease;
}
.g53-slip:hover {
  transform: translateX(6px) rotate(-0.35deg);
  color: inherit; z-index: 1;
}
.g53-slip-margin {
  align-self: stretch;
  background: linear-gradient(90deg, transparent, rgba(139, 58, 58, 0.55));
  border-right: 1.5px solid rgba(139, 58, 58, 0.65);
}
.g53-slip-hole {
  width: 14px; height: 14px; margin: 0 auto;
  border-radius: 50%;
  background: #3a2a1e;
  box-shadow:
    inset 0 0 0 2px #c4a574,
    0 0 0 1px rgba(0, 0, 0, 0.2);
}
.g53-slip-stamp {
  position: absolute; top: 8px; right: 12px; z-index: 2;
  font-size: 0.55rem; font-weight: 900; letter-spacing: 0.14em;
  color: var(--g53-cord); border: 1.5px solid var(--g53-cord);
  padding: 2px 5px; transform: rotate(9deg); opacity: 0.7;
  background: rgba(243, 236, 216, 0.85);
}
.g53-slip-no {
  font-weight: 900; font-variant-numeric: tabular-nums;
  color: var(--g53-cord); text-align: center; font-size: 0.95rem;
}
.g53-slip-art {
  width: 96px; height: 72px; margin: 12px 0;
  background: var(--g53-ph); overflow: hidden;
  border: 1px solid #cbbfa8;
  box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}
.g53-slip-art img { width: 100%; height: 100%; object-fit: cover; }
.g53-slip-meta {
  display: flex; flex-direction: column; gap: 5px;
  padding: 12px 14px 14px !important; min-width: 0;
}
.g53-slip-meta .game-title { font-size: 1rem; color: var(--g53-ink); }
.g53-slip-call {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em;
  color: #3f5642; text-transform: uppercase;
}
@media (max-width: 640px) {
  .g53-drawerbox { overflow: hidden; }
  .g53-tray { padding: 10px 8px 6px; gap: 6px; }
  .g53-slip {
    grid-template-columns: 6px 24px 56px minmax(0, 1fr);
    margin-left: 0; margin-right: 0;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
  }
  .g53-slip-hole { display: none; }
  .g53-slip-art { width: 56px; height: 42px; margin: 8px 0; }
  .g53-slip-stamp { display: none; }
  .g53-slip-call { display: none; }
  .g53-slip-no { font-size: 0.8rem; }
  .g53-slip-meta {
    padding: 8px 8px 8px !important; gap: 3px;
    min-width: 0; overflow: hidden;
  }
  .g53-slip-meta .game-title { font-size: 0.88rem; }
  .g53-slip-meta .brief-comment-game {
    -webkit-line-clamp: 1; font-size: 0.78rem;
  }
  .g53-slip-meta .g53-card-tags { gap: 4px; }
  .g53-slip-meta .g53-chip {
    padding: 2px 6px; font-size: 0.62rem;
    max-width: 7em; overflow: hidden; text-overflow: ellipsis;
  }
}

/* ===== S-EDGE — book brow + left index rail ===== */
.g53-shell { position: relative; display: block; min-width: 0; }

.g53-brow {
  position: sticky; top: 0; z-index: 100;
  /* Solid opaque fill — gradient/transparent parents make sticky look “see-through” on scroll */
  background: #fffdf8 !important;
  background-color: #fffdf8 !important;
  background-image: none !important;
  opacity: 1 !important;
  border-bottom: 2px solid var(--g53-spine);
  box-shadow: 0 8px 24px rgba(28, 40, 51, 0.14);
  isolation: isolate;
}
.g53-brow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fffdf8;
  pointer-events: none;
}
.g53-brow-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px; flex-wrap: nowrap;
  width: min(100% - 2 * var(--g53-gx), var(--g53-max));
  margin: 0 auto; padding: 12px 0; box-sizing: border-box;
  background: transparent;
  min-height: 56px;
}
.g53-brand { order: 1; }
.g53-brow-q { order: 2; }
.g53-brow-auth { order: 3; }
@media (max-width: 899px) {
  .g53-brow-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand auth"
      "search search";
    align-items: center;
    gap: 8px 10px;
    padding: 8px 0;
    min-height: 0;
  }
  .g53-brand { grid-area: brand; order: unset; min-width: 0; }
  .g53-brow-auth {
    grid-area: auth; order: unset;
    justify-self: end; align-self: center;
  }
  .g53-brow-q {
    grid-area: search; order: unset;
    flex: none; max-width: none; width: 100%; margin-left: 0;
  }
  .g53-brand-name { font-size: 0.9rem; max-width: min(46vw, 160px); }
  .g53-brand img, .g53-brand-mark { width: 24px; height: 24px; }
  .g53-brow-q input { padding: 7px 10px; font-size: 0.9rem; }
  .g53-brow-go { padding: 0 12px; font-size: 0.65rem; }
}

/* Brow auth — always in styles.css so Sign In stays visible next to logo */
.g53-brow-auth {
  display: flex !important;
  align-items: center;
  align-self: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 4px;
}
.g53-brow-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 0;
  background: var(--g53-cord);
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.g53-brow-signin:hover { filter: brightness(1.08); color: #fff !important; }
.g53-brow-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.g53-brow-uname {
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.82rem; font-weight: 700; color: var(--g53-ink) !important; text-decoration: none;
}
.g53-brow-out {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 10px; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--g53-cord) !important;
  background: rgba(139, 58, 58, 0.08);
  border: 1px solid rgba(139, 58, 58, 0.28);
  text-decoration: none; white-space: nowrap;
  font-family: inherit; cursor: pointer; appearance: none;
}
.g53-brow-out:hover {
  color: #fff !important; background: var(--g53-cord); border-color: var(--g53-cord);
}
.g53-brow-auth .nav-user[hidden] { display: none !important; }
@media (max-width: 899px) {
  .g53-brow-signin { padding: 7px 12px; font-size: 0.65rem; }
  .g53-brow-uname { display: none; }
  .g53-brow-out { padding: 5px 8px; font-size: 0.6rem; }
}
.g53-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900; letter-spacing: 0.02em; flex-shrink: 0;
  color: var(--g53-ink);
}
.g53-brand:hover { color: var(--g53-cord); }
.g53-brand img { border-radius: 3px; border: 1px solid var(--g53-line); }
.g53-brand-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c4a574, var(--g53-cord));
  box-shadow: inset 0 0 0 2px var(--g53-paper), inset 0 0 0 3px var(--g53-cord);
}
.g53-brand-name {
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 1.05rem;
}
@media (min-width: 1100px) {
  .g53-brand-name { max-width: none; }
}

.g53-brow-q {
  flex: 1 1 220px; max-width: 360px; margin-left: auto;
  border: 1px solid var(--g53-line);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(28, 40, 51, 0.04);
}
.g53-brow-q input {
  border: 0 !important; background: transparent !important; padding: 9px 12px;
}
.g53-brow-go {
  border: 0; background: var(--g53-cord); color: #fff;
  font-weight: 800; font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0 14px; cursor: pointer;
}
.g53-brow-go:hover { filter: brightness(1.08); }

/* Brow auth styles: member-nav.css (loaded when member_flag on) */
@media (max-width: 899px) {
  .g53-sec-hd { margin: 18px auto 10px; gap: 6px; }
  .g53-sec-title { font-size: 1.15rem; }
  .g53-sec-badge { display: none; }
  .g53-sec-more { font-size: 0.72rem; }
  .g53-sec-desc { font-size: 0.88rem; margin-bottom: 10px; line-height: 1.4; }
}

/* Left edge — same colorful thumb tabs as before, horizontal readable text */
@media (min-width: 900px) {
  .g53-edge {
    position: fixed; top: 0; left: 0; bottom: 0; width: var(--g53-edge); z-index: 50;
    display: flex; flex-direction: column; align-items: stretch;
    padding: 20px 0 24px; gap: 6px;
    background: transparent;
    overflow: visible;
    pointer-events: none;
  }
  .g53-edge > * { pointer-events: auto; }
}
@media (max-width: 899px) {
  .g53-edge { display: none; }
}

.g53-edge-lab {
  margin: 0 0 8px 12px; padding: 0;
  font-size: 0.58rem; font-weight: 900; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(240, 235, 227, 0.5);
}

.g53-edge-menu {
  display: flex; flex-direction: column; gap: 5px;
  flex: 1; min-height: 0; padding-right: 0;
}

.g53-etab {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 11px 14px 11px 12px;
  margin-left: 0;
  width: calc(var(--g53-edge) - 8px);
  font-size: 0.95rem; font-weight: 800; letter-spacing: 0.01em;
  color: #fff;
  background: #3d5368;
  border-radius: 0 10px 10px 0;
  box-shadow:
    3px 2px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.18s ease, filter 0.18s ease, width 0.18s ease;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}
.g53-edge-menu .g53-etab:nth-child(6n+1) {
  background: linear-gradient(90deg, #a04545, var(--g53-cord));
  width: calc(var(--g53-edge) - 4px);
}
.g53-edge-menu .g53-etab:nth-child(6n+2) {
  background: linear-gradient(90deg, #6f8f72, var(--g53-sage));
  width: calc(var(--g53-edge) - 14px);
}
.g53-edge-menu .g53-etab:nth-child(6n+3) {
  background: linear-gradient(90deg, #3d5368, var(--g53-spine));
  width: calc(var(--g53-edge) - 8px);
}
.g53-edge-menu .g53-etab:nth-child(6n+4) {
  background: linear-gradient(90deg, #b8860b, #8b6914);
  width: calc(var(--g53-edge) - 16px);
}
.g53-edge-menu .g53-etab:nth-child(6n+5) {
  background: linear-gradient(90deg, #5f7a61, #3f5642);
  width: calc(var(--g53-edge) - 6px);
}
.g53-edge-menu .g53-etab:nth-child(6n) {
  background: linear-gradient(90deg, #8b3a3a, #5c2626);
  width: calc(var(--g53-edge) - 12px);
}
.g53-etab-tip {
  flex: 0 0 3px; align-self: stretch; width: 3px; min-height: 14px;
  background: var(--g53-hi); border-radius: 2px; opacity: 0.95;
}
.g53-edge-menu .g53-etab:nth-child(6n+2) .g53-etab-tip,
.g53-edge-menu .g53-etab:nth-child(6n+5) .g53-etab-tip { background: #d4e0d5; }
.g53-edge-menu .g53-etab:nth-child(6n+3) .g53-etab-tip { background: #a8c0d4; }
.g53-edge-menu .g53-etab:nth-child(6n+4) .g53-etab-tip { background: #fde68a; }
.g53-edge-menu .g53-etab:nth-child(6n+1) .g53-etab-tip,
.g53-edge-menu .g53-etab:nth-child(6n) .g53-etab-tip { background: #f5c2c2; }
.g53-etab-txt {
  display: block; min-width: 0; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.g53-etab:hover, .g53-etab.is-active {
  width: var(--g53-edge);
  transform: translateX(2px);
  color: #fff; z-index: 2;
  filter: brightness(1.1);
}

.g53-edge-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--g53-spine) center / cover no-repeat;
  border: 2px solid var(--g53-hi);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.8rem; line-height: 1;
  overflow: hidden; flex-shrink: 0; box-sizing: border-box;
}
.g53-edge-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Mobile drawer — FAB on left so it doesn't cover right-edge cards */
.g53-fab {
  position: fixed; z-index: 60; left: 12px; right: auto; bottom: calc(var(--g53-dock) + 12px);
  border: 0; background: var(--g53-cord); color: #fff; font-weight: 800;
  padding: 8px 12px; cursor: pointer; letter-spacing: 0.06em;
  text-transform: uppercase; font-size: 0.68rem;
}
@media (min-width: 900px) { .g53-fab { display: none; } }
.g53-scrim {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 109; border: 0;
}
.g53-drawer { position: fixed; inset: 0; z-index: 110; display: none; pointer-events: none; }
body.g53-drawer-on .g53-drawer { display: block; pointer-events: none; }
.g53-drawer-panel {
  position: absolute; top: 0; right: 0; width: min(86vw, 340px); height: 100%;
  background: var(--g53-paper); color: var(--g53-ink); padding: 16px;
  overflow: auto; pointer-events: auto; border-left: 4px solid var(--g53-spine);
}
.g53-drawer-hd { display: flex; justify-content: space-between; align-items: center; }
.g53-drawer-lab {
  margin: 0; font-size: 0.7rem; font-weight: 900;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--g53-sage);
}
.g53-drawer-a {
  display: block; padding: 10px 0; border-bottom: 1px solid var(--g53-line); font-weight: 600;
}
.g53-drawer-a.is-active { color: var(--g53-cord); font-weight: 800; }
.g53-drawer-q { margin: 12px 0; }
.g53-drawer-x { border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; }

.g53-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: flex; height: var(--g53-dock);
  background: #1a2430; color: var(--g53-edge-ink);
  border-top: 1px solid rgba(240, 235, 227, 0.1);
}
@media (min-width: 900px) { .g53-dock { display: none; } }
.g53-dock .mobile-nav-item {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: rgba(240, 235, 227, 0.65); font-size: 0.68rem; font-weight: 700;
  padding: 0 2px; min-width: 0; white-space: nowrap;
}
.g53-dock .mobile-nav-item.active { color: var(--g53-hi); }

.g53-foot {
  margin-top: auto; padding: 28px var(--g53-gx) 24px;
  background: #1a2430; color: var(--g53-edge-ink);
  border-top: 3px solid var(--g53-cord);
}
.g53-foot a { color: rgba(240, 235, 227, 0.8); }
.g53-foot a:hover { color: var(--g53-hi); }
.g53-foot-grid {
  max-width: var(--g53-max); margin: 0 auto; display: grid; gap: 18px;
}
@media (min-width: 768px) {
  .g53-foot-grid { grid-template-columns: 2fr 2fr 1fr; }
}
.g53-foot-links { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.g53-foot-copy {
  max-width: var(--g53-max); margin: 16px auto 0; opacity: 0.6; font-size: 0.85rem;
}
.g53-foot-desc { color: #cbd5e1; font-size: 0.9rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social-link { font-size: 0.85rem; font-weight: 700; }

/* Override ads.css .back-to-top (loads after styles.css; uses visibility + .show) */
.g53-totop.back-to-top {
  position: fixed; right: 16px; bottom: calc(var(--g53-dock) + 64px); z-index: 40;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--g53-cord); color: #fff; cursor: pointer;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: none; box-shadow: none; backdrop-filter: none;
  transition: opacity 0.2s, visibility 0.2s;
}
@media (min-width: 900px) {
  .g53-totop.back-to-top { bottom: 24px; right: 16px; }
}
.g53-totop.back-to-top.is-on,
.g53-totop.back-to-top.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
  transform: none !important;
}
.g53-totop.back-to-top::before { display: none; }

/* Tags — Case / Slip catalog (reuses vitrine + drawerbox) */
.g53-ledge.g53-main.g53-catalog,
main.g53-catalog.tags-box,
main.g53-catalog {
  padding: 20px 0 56px;
  box-sizing: border-box;
}
.g53-catalog-top,
.g53-catalog-cats,
.g53-catalog .game-empty,
.g53-catalog .pagination-container {
  width: min(100% - 2 * var(--g53-gx), var(--g53-max));
  margin-left: auto; margin-right: auto; box-sizing: border-box;
}
.g53-catalog-top {
  color: #1c2833 !important;
  background: #fffdf8 !important;
  border: 1px solid rgba(28, 40, 51, 0.18);
  border-left: 4px solid #8b3a3a;
  padding: 16px 18px 14px;
  margin-bottom: 12px;
}
.g53-catalog-top h1,
.g53-catalog-top #page-title {
  margin: 0 0 8px; font-size: 1.65rem; font-weight: 900;
  color: #0f172a !important;
  border-bottom: 2px solid #2c3e50; padding-bottom: 8px;
}
.g53-catalog-top .g53-kicker { color: #3f5642 !important; }
.tag-h2,
.g53-catalog-top .tag-h2 {
  margin: 0 0 12px; font-size: 1.05rem; font-weight: 600; line-height: 1.55;
  color: #1e293b !important;
}
.g53-catalog-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.g53-view { display: flex; border: 1px solid #2c3e50; }
.g53-view-btn {
  padding: 7px 14px; border: 0; background: #fff !important; cursor: pointer;
  color: #0f172a !important; font-weight: 800; font-size: 0.8rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.g53-view-btn.is-on {
  background: #2c3e50 !important; color: #f0ebe3 !important;
}
.g53-catalog-cats {
  display: none; flex-wrap: wrap; gap: 8px;
  margin: 0 auto 16px; padding: 12px 14px;
  background: #fffdf8 !important;
  border: 1px solid rgba(28, 40, 51, 0.18);
}
@media (max-width: 899px) {
  .g53-ledge.g53-main.g53-catalog,
  main.g53-catalog.tags-box,
  main.g53-catalog {
    padding: 14px 0 56px;
  }
  .g53-catalog-top {
    padding: 10px 12px 10px;
    margin-bottom: 8px;
  }
  .g53-catalog-top .g53-kicker {
    margin: 0 0 2px;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }
  .g53-catalog-top h1,
  .g53-catalog-top #page-title {
    margin: 0 0 4px;
    font-size: 1.2rem;
    padding-bottom: 4px;
    border-bottom-width: 1px;
  }
  .tag-h2,
  .g53-catalog-top .tag-h2 {
    margin: 0 0 8px;
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 500;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .g53-catalog-tools {
    gap: 6px;
    margin-top: 0;
  }
  .g53-catalog-tools .g53-btn {
    padding: 6px 10px;
    font-size: 0.65rem;
  }
  .g53-view-btn {
    padding: 6px 10px;
    font-size: 0.65rem;
  }
}
@media (min-width: 900px) {
  .g53-catalog-cats { display: flex; }
  .g53-catalog-tools #g53-filter-btn { display: none !important; }
}
.g53-catalog-case[hidden],
.g53-catalog-slip[hidden] { display: none !important; }
.g53-catalog-case .g53-vitrine,
.g53-catalog-slip .g53-drawerbox { margin-top: 4px; margin-bottom: 8px; }
/* Tags catalog: equal dense grid, ignore home lead spans */
.g53-catalog-case .g53-vitrine-glass {
  grid-template-columns: repeat(2, 1fr) !important;
}
.g53-catalog-case .g53-bay,
.g53-catalog-case .g53-bay--lead {
  grid-column: auto !important;
  grid-row: auto !important;
}
@media (min-width: 768px) {
  .g53-catalog-case .g53-vitrine-glass {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (min-width: 1100px) {
  .g53-catalog-case .g53-vitrine-glass {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

body.g53-cat-on .g53-cat-drawer { pointer-events: none; display: block; }
.g53-cat-drawer { position: fixed; inset: 0; z-index: 110; display: none; }
.g53-cat-scrim {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 109; border: 0;
}
.g53-cat-sheet {
  position: absolute; top: 0; left: 0; width: min(86vw, 320px); height: 100%;
  background: var(--g53-paper);
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  overflow: auto; pointer-events: auto;
  border-right: 4px solid var(--g53-spine); z-index: 111;
  box-sizing: border-box;
}
.g53-cat-top {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  margin: -4px 0 8px; padding: 8px 0;
  background: var(--g53-paper);
  border-bottom: 1px solid var(--g53-line);
}
.g53-cat-top h2 { margin: 0; font-size: 1.05rem; font-weight: 900; }
.g53-cat-sheet .g53-drawer-a {
  display: block; padding: 11px 0; border-bottom: 1px solid var(--g53-line);
  font-weight: 700; font-size: 1rem; color: #1c2833;
}
.g53-cat-sheet .g53-drawer-a:hover,
.g53-cat-sheet .g53-drawer-a.active { color: var(--g53-cord); }

/* Detail — full-bleed paper ledge (same as home); constrain inner blocks only */
.g53-body--detail .g53-main,
.g53-read {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 0 56px;
  box-sizing: border-box;
  background: #f7f3ea !important;
  color: #1c2833 !important;
}
.g53-body--detail .g53-entry,
.g53-body--detail .g53-alike,
.g53-body--detail .game-empty {
  width: min(100% - 2 * var(--g53-gx), var(--g53-max));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.g53-crumb { margin-bottom: 14px; font-size: 0.85rem; }
.breadcrumb-list {
  display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0;
  color: var(--ink-muted);
}
.breadcrumb-separator { opacity: 0.5; }
.g53-entry-hero {
  position: relative;
  display: grid; gap: 0; margin-bottom: 20px; overflow: hidden;
  background: var(--g53-panel);
  border: 4px solid #2a1c14;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(196, 165, 116, 0.35);
}
@media (min-width: 900px) {
  .g53-entry-hero { grid-template-columns: 1.25fr 1fr; }
}
.g53-entry-banner {
  position: relative;
  background: var(--g53-ph); aspect-ratio: 16 / 9; overflow: hidden;
}
.g53-entry-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0 10%, transparent 24%),
    linear-gradient(180deg, transparent 70%, rgba(42, 28, 20, 0.18));
}
.g53-entry-banner img { width: 100%; height: 100%; object-fit: cover; }
.g53-entry-info {
  padding: 18px 20px 22px;
  background:
    repeating-linear-gradient(
      transparent 0 24px,
      rgba(28, 40, 51, 0.05) 24px 25px
    ),
    linear-gradient(180deg, #fffdf8, #f3ebd8);
  border-left: 1px solid var(--g53-line);
}
@media (max-width: 899px) {
  .g53-entry-info { border-left: 0; border-top: 1px solid var(--g53-line); }
}
.g53-entry-info .g53-kicker {
  margin: 0 0 6px;
  color: var(--g53-cord);
}
.g53-entry-info h1 {
  margin: 0 0 8px; font-size: 1.55rem; font-weight: 900; color: var(--g53-ink);
  line-height: 1.2;
}
@media (min-width: 900px) {
  .g53-entry-info h1 { font-size: 1.75rem; }
}
.g53-entry-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.g53-entry-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin: 12px 0; font-size: 0.88rem; color: var(--ink-muted);
}
.g53-meta {
  margin: 0;
  padding: 5px 10px;
  background: rgba(28, 40, 51, 0.04);
  border: 1px solid var(--g53-line);
}
.g53-meta span {
  display: inline; min-width: 0; margin-right: 6px;
  font-weight: 800; color: var(--g53-spine); font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.g53-entry-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.g53-panel {
  margin: 18px 0; padding: 16px 18px;
  background: var(--g53-panel);
  border: 1px solid var(--g53-line);
  border-left: 4px solid var(--g53-cord);
  box-shadow: 0 6px 16px rgba(28, 40, 51, 0.06);
}
.g53-panel h2 {
  margin: 0 0 10px; font-size: 1.05rem; font-weight: 800;
  padding-bottom: 6px; border-bottom: 1px solid var(--g53-line);
  color: var(--g53-ink);
}
.g53-excerpt {
  margin: 0; padding: 12px 14px; color: var(--ink-on-light);
  background: linear-gradient(90deg, var(--g53-hi) 0 4px, rgba(253, 230, 138, 0.28) 4px);
  border: 1px solid rgba(184, 134, 11, 0.25);
  line-height: 1.55;
}
.g53-alike { margin: 28px 0; }
.g53-alike .g53-sec-hd { width: 100%; margin-left: 0; margin-right: 0; }
.g53-alike .g53-vitrine { width: 100%; }
.g53-alike .g53-bay-meta .brief-comment-game {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  -webkit-line-clamp: 2;
}

.description-text-wrap.is-collapsed {
  max-height: 180px; overflow: hidden;
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.description-text-wrap.is-expanded { max-height: none; mask-image: none; }

/* Comment / auth form styles live in member-detail.css & member-auth.css */

/* Profile page layout / cards: member-profile.css (full-bleed paper ledge) */
.g53-body--profile .g53-main {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #f7f3ea !important;
}
.g53-tickets-banner {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  padding: 18px; background: var(--g53-panel); border: 1px solid var(--g53-line);
  margin-bottom: 18px;
}
.g53-profile-user { display: flex; align-items: center; gap: 12px; }
.g53-profile-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--g53-spine);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.2rem;
}
.g53-profile-name { margin: 0; font-size: 1.25rem; font-weight: 900; }
.g53-profile-email { margin: 2px 0 0; color: var(--ink-muted); font-size: 0.9rem; }
.g53-profile-stats { display: flex; gap: 16px; }
.g53-stat-item { display: flex; flex-direction: column; align-items: center; }
.g53-stat-num { font-size: 1.2rem; font-weight: 900; color: var(--g53-cord); }
.g53-stat-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted);
}
.g53-profile-nav { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.g53-profile-nav-item {
  padding: 8px 12px; border: 1px solid var(--g53-line); background: transparent;
  color: var(--g53-ink); cursor: pointer; font-weight: 700; font-size: 0.8rem;
}
.g53-profile-nav-item.active {
  border-color: var(--g53-spine); background: var(--g53-spine); color: var(--g53-edge-ink);
}
.g53-profile-panel { display: none; }
.g53-profile-panel.active { display: block; }
.g53-profile-panel-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.g53-profile-card-title { margin: 0; font-size: 1.1rem; font-weight: 800; }
.g53-shelf-actions { display: flex; gap: 10px; align-items: center; }
.g53-btn-clear {
  border: 1px solid var(--g53-line); background: transparent; padding: 6px 10px;
  cursor: pointer; font-weight: 700; font-size: 0.78rem; color: var(--g53-cord);
}
.g53-game-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px;
}
.g53-loading { padding: 24px; text-align: center; color: var(--ink-muted); }
.g53-loading-spinner {
  width: 28px; height: 28px; margin: 0 auto 8px; border-radius: 50%;
  border: 3px solid var(--g53-line); border-top-color: var(--g53-sage);
  animation: g53-spin 0.8s linear infinite;
}
@keyframes g53-spin { to { transform: rotate(360deg); } }
.g53-empty-state { padding: 24px; text-align: center; color: var(--ink-muted); }
.g53-aside-label {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.65rem;
  font-weight: 800; color: var(--g53-sage); margin: 0;
}
.g53-confirm-overlay {
  position: fixed; inset: 0; z-index: 210; display: none;
  align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.5);
}
.g53-confirm-overlay[aria-hidden="false"] { display: flex; }
.g53-confirm-modal {
  background: var(--g53-panel); padding: 20px; max-width: 360px; width: 90%;
  border: 1px solid var(--g53-line);
}
.g53-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.g53-confirm-cancel {
  border: 1px solid var(--g53-line); background: transparent; padding: 8px 12px; cursor: pointer;
}

.game-empty { text-align: center; padding: 48px 16px; }
.game-empty-title { font-size: 1.4rem; font-weight: 900; margin-bottom: 8px; }
.pagination-container { margin: 20px 0; }
.g53-legal {
  background: var(--g53-panel); padding: 20px 22px; border: 1px solid var(--g53-line);
}
