/* game_tgn_0052 — CONTAINER YARD
   S-MAST · Crane Lift / Stack Columns / Hatch Grid / Manifest · play inline */

:root {
  --g52-bg: #b8c2cc;
  --g52-panel: #e4ebf1;
  --g52-ink: #121820;
  --g52-muted: #5a6570;
  --g52-accent: #f59e0b;
  --g52-container: #0d9488;
  --g52-cta: #ef4444;
  --g52-bar: #0e1620;
  --g52-line: rgba(18, 24, 32, 0.16);
  --g52-star-full: #f59e0b;
  --g52-star-empty: #5a6570;
  --g52-ph: #9aa6b2;
  --g52-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --g52-mob-h: 54px;
  --g52-mast-w: 196px;
  --g52-pad-x: 18px;
  --g52-radius: 3px;
  --g52-yard-stripe: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 18px,
    rgba(18, 24, 32, 0.035) 18px,
    rgba(18, 24, 32, 0.035) 20px
  );
  --bg-main: var(--g52-bg);
  --text-main: var(--g52-ink);
  --text-muted: var(--g52-muted);
  --accent: var(--g52-accent);
  --ink-muted: var(--g52-muted);
  --ink-on-light: #334155;
}

*, *::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.g52-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--g52-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--g52-ink);
  background:
    linear-gradient(180deg, rgba(14, 22, 32, 0.06) 0, transparent 120px),
    var(--g52-yard-stripe),
    var(--g52-bg);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) {
  /* 勿 width:100% + margin-left，否则总宽超出视口，右侧登录被挤出 */
  body.g52-body > .g52-shell {
    flex: 1 0 auto;
    width: calc(100% - var(--g52-mast-w));
  }
}

a { color: var(--g52-ink); text-decoration: none; }
a:hover { color: var(--g52-cta); }
img { max-width: 100%; height: auto; display: block; }

.g52-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;
}
.g52-page-pad { width: 100%; max-width: 1180px; margin: 0 auto; padding: 20px var(--g52-pad-x) 32px; }
.g52-ad-slot, .g52-ad-top { margin: 12px 0; }
.g52-pick-section { background: transparent; }
.g52-main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px var(--g52-pad-x) 40px;
}

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

/* 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;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 700;
}
.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(--g52-star-full); }
.game-star .star-empty::before { content: "★"; color: var(--g52-star-empty); opacity: 0.45; }
.game-star--detail-hero { font-size: 1.1rem; margin: 8px 0; }

.g52-main .brief-comment-game {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  -webkit-line-clamp: 1; min-width: 0; color: var(--g52-muted); font-size: 0.9rem;
}
@media (min-width: 768px) {
  .g52-main .brief-comment-game { -webkit-line-clamp: 2; }
}
.g52-main .g52-card-tags {
  display: flex; gap: 6px; min-width: 0; flex-wrap: nowrap; overflow: hidden;
}
@media (min-width: 768px) {
  .g52-main .g52-card-tags { flex-wrap: wrap; overflow: visible; }
}
.g52-chip, .g52-chip-link {
  display: inline-block; padding: 2px 7px; border-radius: 2px;
  background: rgba(13, 148, 136, 0.12); border: 1px solid rgba(13, 148, 136, 0.35);
  font-size: 0.72rem; font-weight: 600; color: var(--ink-on-light); white-space: nowrap;
  letter-spacing: 0.02em;
}

/* —— Yard rail section chrome —— */
.g52-mod { margin-bottom: 28px; }
.g52-rail {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 8px 0 10px;
  border-bottom: 3px solid var(--g52-bar);
  position: relative;
}
.g52-rail::after {
  content: "";
  position: absolute; left: 0; bottom: -3px; width: 72px; height: 3px;
  background: var(--g52-accent);
}
.g52-rail-code {
  flex-shrink: 0;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em;
  color: var(--g52-bar); background: var(--g52-accent);
  padding: 4px 7px; border-radius: 2px;
}
.g52-rail-title {
  margin: 0; font-size: 1.28rem; letter-spacing: 0.01em; font-weight: 800;
}
.g52-rail-badge {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--g52-container); border: 1px solid var(--g52-container);
  padding: 3px 8px; border-radius: 2px; font-weight: 700;
}
.g52-rail-exit {
  margin-left: auto; font-size: 0.85rem; color: var(--g52-cta); font-weight: 700;
}
.g52-rail-exit:hover { color: var(--g52-ink); }
.g52-section-desc { color: var(--g52-muted); margin: -6px 0 14px; font-size: 0.92rem; }

/* Legacy aliases (tags / other pages may still use) */
.g52-section-bar {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 8px 0 14px;
}
.g52-section-title { margin: 0; font-size: 1.25rem; letter-spacing: 0.02em; }
.g52-mod-badge {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--g52-accent); border: 1px solid var(--g52-accent); padding: 2px 8px; border-radius: 2px;
}
.g52-section-more { margin-left: auto; font-size: 0.85rem; color: var(--g52-cta); font-weight: 700; }

/* —— Bill of Lading —— */
.g52-bol {
  display: grid; gap: 14px; align-items: center;
  padding: 0; margin-bottom: 22px;
  background: var(--g52-panel);
  border: 1px solid var(--g52-line);
  border-left: 5px solid var(--g52-accent);
  border-radius: var(--g52-radius);
  overflow: hidden;
  grid-template-columns: auto 1fr;
}
@media (min-width: 720px) {
  .g52-bol { grid-template-columns: auto 1fr auto; padding-right: 14px; }
}
.g52-bol-stamp {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 16px 14px; background: var(--g52-bar); color: #e8eef2;
  min-height: 100%;
}
.g52-bol-mark {
  font-size: 1.35rem; font-weight: 900; letter-spacing: 0.08em; color: var(--g52-accent);
  line-height: 1;
}
.g52-bol-port {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; opacity: 0.75;
}
.g52-bol-copy { padding: 14px 16px 6px; min-width: 0; }
@media (min-width: 720px) {
  .g52-bol-copy { padding: 14px 8px 14px 4px; }
}
.g52-bol-kicker {
  margin: 0 0 4px; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--g52-container);
}
.g52-bol-slogan { margin: 0; font-weight: 800; font-size: 1.12rem; line-height: 1.3; }
.g52-bol-desc { color: var(--g52-muted); font-size: 0.88rem; margin-top: 4px; }
.g52-bol-search {
  display: flex; gap: 0; margin: 0 14px 14px; min-width: 0;
  grid-column: 1 / -1;
}
@media (min-width: 720px) {
  .g52-bol-search {
    grid-column: auto; margin: 0; max-width: 320px; width: 100%;
  }
}
.g52-bol-search input,
.g52-tool-search input,
.g52-rail-search input {
  flex: 1; min-width: 0; border: 1px solid var(--g52-line); background: #fff;
  color: var(--g52-ink); padding: 9px 11px; font: inherit;
  border-radius: var(--g52-radius) 0 0 var(--g52-radius);
}
.g52-bol-search button,
.g52-tool-search button,
.g52-rail-search button {
  border: 0; background: var(--g52-accent); color: #111; font-weight: 800; padding: 9px 14px;
  border-radius: 0 var(--g52-radius) var(--g52-radius) 0; cursor: pointer;
}
.g52-bol-search .g52-btn-primary {
  border-radius: 0 var(--g52-radius) var(--g52-radius) 0;
  background: var(--g52-cta); color: #fff;
}

/* ISO container code label */
.g52-iso {
  display: inline-block; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.1em; color: var(--g52-container); margin-bottom: 4px;
}
.g52-iso--sm { margin-bottom: 2px; font-size: 0.62rem; color: var(--g52-accent); }

/* —— Crane Lift + Deck cargo —— */
.g52-crane {
  display: grid; gap: 14px;
}
@media (min-width: 900px) {
  .g52-crane {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr);
    align-items: stretch;
  }
  .g52-crane-lead {
    height: 100%;
    min-height: 0;
  }
  .g52-crane-media {
    flex: 0 0 auto;
    aspect-ratio: 2 / 1;
  }
  .g52-crane-meta {
    flex: 0 0 auto;
  }
}
.g52-crane-lead {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--g52-panel);
  border: 2px solid var(--g52-bar);
  border-radius: var(--g52-radius);
  overflow: hidden;
  transition: transform 0.18s ease;
}
.g52-crane-lead:hover { transform: translateY(-2px); color: inherit; }
.g52-crane-hook {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.g52-crane-cable {
  width: 3px; height: 18px; background: var(--g52-accent);
}
.g52-crane-spreader {
  width: 48px; height: 8px; background: var(--g52-accent);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.g52-crane-media {
  aspect-ratio: 16 / 9;
  background: var(--g52-ph);
  overflow: hidden;
  border-bottom: 3px solid var(--g52-accent);
}
.g52-crane-media img { width: 100%; height: 100%; object-fit: cover; }
.g52-crane-meta {
  display: flex; flex-direction: column; gap: 6px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      rgba(13, 148, 136, 0.07) 11px,
      rgba(13, 148, 136, 0.07) 13px
    ),
    var(--g52-panel);
}
@media (max-width: 767px) {
  .g52-main { padding: 10px var(--g52-pad-x) 28px; }
  .g52-bol { margin-bottom: 8px; }
  .g52-bol-stamp { display: none; }
  .g52-bol-copy { padding: 8px 10px 2px; }
  .g52-bol-slogan { font-size: 1rem; line-height: 1.2; }
  .g52-bol-desc {
    margin-top: 2px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .g52-bol-search { margin: 6px 10px 8px; }
  .g52-bol-search input { padding: 7px 10px; }
  .g52-rail { margin: 0 0 8px; padding: 4px 0 6px; }
  .g52-section-desc {
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .g52-crane { gap: 8px; }
  .g52-crane-media { aspect-ratio: 16 / 9; }
  .g52-crane-meta { padding: 8px 10px 10px !important; gap: 4px; }
  .g52-crane-meta .brief-comment-game { -webkit-line-clamp: 1; line-clamp: 1; }
  .g52-crane-meta .g52-card-tags { display: none; }
  .g52-crane-cable { height: 12px; }
}

.g52-deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  background: rgba(14, 22, 32, 0.06);
  border: 1px dashed rgba(18, 24, 32, 0.28);
  border-radius: var(--g52-radius);
  padding: 10px;
}
@media (min-width: 768px) and (max-width: 899px) {
  .g52-deck { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.g52-deck-label {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--g52-muted);
}
.g52-deck-box {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--g52-panel);
  border: 1px solid var(--g52-line);
  border-left: 4px solid var(--g52-container);
  border-radius: var(--g52-radius);
  overflow: hidden;
  transition: transform 0.15s ease;
}
.g52-deck-box:hover { transform: translateY(-1px); color: inherit; }
.g52-deck-ribs {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 8px,
    rgba(18, 24, 32, 0.08) 8px,
    rgba(18, 24, 32, 0.08) 9px
  );
  z-index: 1;
}
.g52-deck-thumb {
  position: relative; z-index: 0;
  aspect-ratio: 8 / 5; background: var(--g52-ph);
}
.g52-deck-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g52-deck-meta {
  position: relative; z-index: 2;
  flex: 0 0 auto;
  padding: 8px 10px 10px !important;
  display: flex; flex-direction: column; gap: 3px;
  background: rgba(228, 235, 241, 0.94);
}
.g52-deck-meta .game-star { font-size: 0.85rem; }

/* Side-by-side with lead: 3 cols, stretch rows to match lead height */
@media (min-width: 900px) {
  .g52-deck {
    height: 100%;
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-auto-rows: 1fr;
    align-content: stretch;
    gap: 10px;
  }
  .g52-deck-box {
    height: 100%;
    min-height: 0;
  }
  .g52-deck-thumb {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 56px;
  }
}

/* —— Stack Columns (equal-width card grid) —— */
.g52-stacks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .g52-stacks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .g52-stacks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.g52-stack-unit {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  position: relative;
  background: var(--g52-panel);
  border: 1px solid var(--g52-line);
  border-top: 4px solid var(--g52-bar);
  border-radius: var(--g52-radius);
  overflow: hidden;
  transition: transform 0.15s ease;
}
.g52-stack-unit:hover { transform: translateY(-2px); color: inherit; }
.g52-stack-ribs {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.25; z-index: 1;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 10px,
    rgba(18, 24, 32, 0.1) 10px,
    rgba(18, 24, 32, 0.1) 11px
  );
}
.g52-stack-code {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  font-size: 0.7rem; font-weight: 900; letter-spacing: 0.06em;
  color: var(--g52-bar); background: var(--g52-accent);
  padding: 2px 6px; border-radius: 2px;
}
.g52-stack-thumb {
  position: relative; z-index: 0;
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--g52-ph);
  overflow: hidden;
}
.g52-stack-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
}
.g52-stack-meta {
  position: relative; z-index: 2;
  flex: 1 1 auto;
  display: flex; flex-direction: column; gap: 5px;
  background: var(--g52-panel);
}

/* —— Hatch Grid —— */
.g52-hatch {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
@media (min-width: 960px) {
  .g52-hatch { grid-template-columns: repeat(4, 1fr); }
}
.g52-hatch-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--g52-panel);
  border: 1px solid var(--g52-line);
  border-radius: var(--g52-radius);
  overflow: hidden;
  transition: transform 0.15s ease;
}
.g52-hatch-card:hover { transform: translateY(-2px); color: inherit; }
.g52-hatch-lid {
  display: flex; justify-content: space-between; align-items: flex-end;
  height: 14px; padding: 0 18px;
  background: linear-gradient(180deg, #2a3542, var(--g52-bar));
}
.g52-hatch-hinge {
  width: 18px; height: 6px; background: var(--g52-accent);
  border-radius: 1px 1px 0 0;
}
.g52-grid-media { aspect-ratio: 16 / 10; background: var(--g52-ph); }
.g52-grid-media img { width: 100%; height: 100%; object-fit: cover; }

/* —— Manifest table —— */
.g52-manifest {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--g52-line);
  border-radius: var(--g52-radius);
  overflow: hidden;
  background: var(--g52-panel);
}
.g52-manifest-head {
  display: none;
  grid-template-columns: 48px 104px 1fr;
  gap: 10px; align-items: center;
  padding: 8px 12px;
  background: var(--g52-bar); color: #94a3b8;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
@media (min-width: 640px) {
  .g52-manifest-head { display: grid; }
}
.g52-manifest-row {
  display: grid;
  grid-template-columns: 40px 72px 1fr;
  gap: 8px; align-items: center;
  padding: 8px 10px;
  border-top: 1px solid var(--g52-line);
  background: var(--g52-panel);
  transition: background 0.12s ease;
}
@media (min-width: 640px) {
  .g52-manifest-row {
    grid-template-columns: 48px 104px 1fr;
    gap: 10px; padding: 8px 12px;
  }
}
.g52-manifest-row:first-of-type { border-top: 0; }
@media (min-width: 640px) {
  .g52-manifest-row:first-of-type { border-top: 1px solid var(--g52-line); }
}
.g52-manifest-row:hover {
  background: rgba(245, 158, 11, 0.1);
  color: inherit;
}
.g52-manifest-row .special-card-content { padding: 4px 0 !important; }
.g52-row-num {
  font-weight: 800; color: var(--g52-accent);
  text-align: center; font-variant-numeric: tabular-nums; font-size: 0.95rem;
}
.g52-row-thumb {
  width: 72px; height: 54px; background: var(--g52-ph);
  overflow: hidden; border-radius: 2px; border: 1px solid var(--g52-line);
}
@media (min-width: 640px) {
  .g52-row-thumb { width: 96px; height: 64px; }
}
.g52-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g52-row-body {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}

/* Quick bays */
.g52-quickcats { margin-top: 8px; }
.g52-quickcats-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
@media (min-width: 640px) {
  .g52-quickcats-row { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .g52-quickcats-row { grid-template-columns: repeat(6, 1fr); }
}
.g52-quickcat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 10px;
  background: var(--g52-panel);
  border: 1px solid var(--g52-line);
  border-top: 3px solid var(--g52-container);
  border-radius: var(--g52-radius);
  font-weight: 700; min-width: 0;
  transition: transform 0.15s ease;
}
.g52-quickcat:hover { transform: translateY(-1px); color: inherit; border-top-color: var(--g52-accent); }
.g52-quickcat-n {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; color: var(--g52-accent);
}
.g52-quickcat-name {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 0.88rem;
}

/* ========== Skeleton-specific nav ========== */

.g52-shell { display: block; min-height: 100vh; }
@media (min-width: 900px) {
  .g52-shell {
    margin-left: var(--g52-mast-w);
    width: calc(100% - var(--g52-mast-w));
    min-height: 100vh;
    box-sizing: border-box;
  }
  /* fixed：不依赖 sticky/grid，footer 在 yard-col 内时也不会把菜单顶走 */
  .g52-mast {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: var(--g52-mast-w);
    height: 100vh;
    max-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background:
      linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0, transparent 72px),
      linear-gradient(90deg, rgba(13, 148, 136, 0.08), transparent 40%),
      var(--g52-bar);
    color: #dce6ef;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-right: 1px solid rgba(245, 158, 11, 0.45);
    box-shadow: inset -3px 0 0 var(--g52-accent);
    box-sizing: border-box;
  }
  .g52-yard-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
  }
}
@media (max-width: 899px) {
  .g52-mast { display: none; }
}
.g52-brand--mast {
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  width: 100%; color: #fff; min-width: 0;
  flex-shrink: 0;
  padding: 16px 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.g52-brand--mast:hover { color: #fff; }
.g52-brand-mark {
  position: relative;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.55);
  box-shadow: inset 0 -2px 0 rgba(13, 148, 136, 0.65);
}
.g52-brand-mark img {
  width: 100%; height: 100%; object-fit: cover;
}
.g52-brand-mark-fallback {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.04em; color: var(--g52-accent);
}
.g52-brand-copy {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1;
}
.g52-brand-kicker {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--g52-accent);
}
.g52-brand-short {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
}
.g52-mast-label {
  margin: 14px 14px 6px;
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
}
.g52-mast-menu {
  display: flex; flex-direction: column; gap: 3px;
  width: 100%; padding: 0 10px 12px;
  flex: 1 1 auto;
  min-height: 0;
}
.g52-mast-link {
  display: flex; align-items: center; gap: 10px;
  color: #94a3b8;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 9px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.g52-mast-dot {
  width: 7px; height: 7px; flex-shrink: 0;
  border-radius: 1px;
  background: #475569;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.g52-mast-link:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
}
.g52-mast-link:hover .g52-mast-dot {
  background: var(--g52-container);
}
.g52-mast-link.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.06));
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: inset 3px 0 0 var(--g52-accent);
}
.g52-mast-link.is-active .g52-mast-dot {
  background: var(--g52-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}
.g52-mast-menu-text {
  display: block; min-width: 0; flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g52-mast-foot {
  margin-top: auto;
  flex-shrink: 0;
  padding: 12px 14px 16px;
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.g52-mast-iso {
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.12em; color: #64748b;
}
.g52-mast-iso-line {
  flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--g52-container), transparent);
  border-radius: 1px;
}
.g52-yardarm {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: var(--g52-bar); color: #e8eef2;
  border-bottom: 2px solid var(--g52-container);
}
.g52-yardarm .g52-tool-search input {
  background: rgba(0, 0, 0, 0.35); color: #fff; border-color: rgba(255, 255, 255, 0.12);
}
.g52-yardarm .g52-tool-search input::placeholder { color: #94a3b8; }

/* Auth / brand shared */
.g52-brand {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800;
  letter-spacing: 0.03em; color: inherit; flex-shrink: 0;
}
.g52-brand img { border-radius: 3px; }
.g52-tool-search { display: flex; flex: 1; min-width: 0; max-width: 360px; }
.g52-tool-auth { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.g52-signin { font-weight: 700; color: var(--g52-accent); }
.g52-signin:hover { color: #fff; }
.g52-header-user { display: flex; align-items: center; gap: 10px; line-height: 1; }
.g52-header-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.28) center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.g52-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.g52-header-name {
  display: inline-flex;
  align-items: center;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.88rem;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}
.g52-header-out {
  appearance: none;
  cursor: pointer;
  font: inherit;
  background: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 2px;
  padding-left: 10px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
#logoutBtn {
  appearance: none;
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
}
.g52-header-out:hover { color: #fff; }
.g52-menu-chip { padding: 4px 8px; font-size: 0.85rem; opacity: 0.9; }
.g52-menu-chip.is-active { color: var(--g52-accent); font-weight: 800; }

/* Mobile drawer open button */
.g52-yard-open {
  position: fixed; z-index: 60; right: 12px; bottom: calc(var(--g52-mob-h) + 12px);
  border: 0; background: var(--g52-cta); color: #fff; font-weight: 800;
  padding: 10px 14px; border-radius: 2px; cursor: pointer;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem;
}
@media (min-width: 900px) {
  .g52-yard-open { display: none; }
}
.g52-yard-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 70; border: 0;
}
.g52-yard-drawer {
  position: fixed; inset: 0; z-index: 80; display: none; pointer-events: none;
}
body.g52-yard-is-open .g52-yard-drawer { display: block; pointer-events: none; }
.g52-yard-panel {
  position: absolute; top: 0; right: 0; width: min(86vw, 340px); height: 100%;
  background: var(--g52-panel); color: var(--g52-ink); padding: 16px;
  overflow: auto; pointer-events: auto;
  border-left: 4px solid var(--g52-accent);
}
.g52-drawer-label {
  margin: 0; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.78rem; color: var(--g52-container);
}
.g52-yard-head { display: flex; justify-content: space-between; align-items: center; }
.g52-yard-link { display: block; padding: 10px 0; border-bottom: 1px solid var(--g52-line); }
.g52-yard-search { display: flex; margin: 12px 0; }
.g52-yard-search input {
  flex: 1; padding: 8px; border: 1px solid var(--g52-line);
  background: #fff; color: var(--g52-ink); border-radius: var(--g52-radius) 0 0 var(--g52-radius);
}
.g52-yard-search button {
  border: 0; background: var(--g52-accent); color: #111; font-weight: 800; padding: 8px 12px;
  border-radius: 0 var(--g52-radius) var(--g52-radius) 0; cursor: pointer;
}
.g52-yard-close { border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; color: inherit; }

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

/* Footer — mobile bottom padding clears fixed .g52-mobnav (same --g52-bar, no body gap) */
.g52-footer {
  margin-top: auto; padding: 28px var(--g52-pad-x) 24px;
  background: var(--g52-bar); color: #e2e8f0;
  border-top: 3px solid var(--g52-container);
}
@media (max-width: 899px) {
  .g52-footer {
    padding-bottom: calc(24px + var(--g52-mob-h));
  }
}
.g52-footer a { color: #cbd5e1; }
.g52-footer a:hover { color: var(--g52-accent); }
.g52-footer-grid {
  max-width: 1180px; margin: 0 auto; display: grid; gap: 18px;
}
@media (min-width: 768px) {
  .g52-footer-grid { grid-template-columns: 2fr 2fr 1fr; }
}
.g52-footer-links { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.g52-footer-copy { max-width: 1180px; margin: 16px auto 0; opacity: 0.7; font-size: 0.85rem; }
.g52-footer-desc { color: #94a3b8; font-size: 0.9rem; }
.g52-footer-brand { letter-spacing: 0.04em; }

/* Back to top — beat ads.css .back-to-top (loaded after styles.css) */
.back-to-top.g52-back-top,
.g52-back-top {
  position: fixed;
  right: 16px;
  bottom: calc(var(--g52-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: 2px;
  background: var(--g52-cta);
  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.g52-back-top::before,
.g52-back-top::before {
  content: none;
  display: none;
  animation: none;
  opacity: 0;
  background: none;
  box-shadow: none;
}
.back-to-top.g52-back-top svg,
.g52-back-top svg {
  position: relative;
  z-index: 1;
  display: block;
}
.back-to-top.g52-back-top.is-visible,
.g52-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  display: inline-flex;
}
.back-to-top.g52-back-top:not(.is-visible),
.g52-back-top:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}
.back-to-top.g52-back-top:hover,
.g52-back-top:hover {
  filter: brightness(1.06);
  background: var(--g52-cta);
  box-shadow: none;
  transform: translateY(-2px);
}
.back-to-top.g52-back-top:active,
.g52-back-top:active {
  transform: translateY(0);
  filter: brightness(0.96);
}
@media (min-width: 900px) {
  .back-to-top.g52-back-top,
.g52-back-top {
    bottom: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top.g52-back-top,
.g52-back-top {
    transition: opacity 0.15s ease, visibility 0.15s ease;
    transform: none;
  }
  .back-to-top.g52-back-top:hover,
  .g52-back-top:hover,
  .back-to-top.g52-back-top:active,
  .g52-back-top:active {
    transform: none;
  }
}


/* Tags page */
.g52-tags-head { margin-bottom: 16px; }
.g52-tags-head h1 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  line-height: 1.25;
}
.g52-tags-head .tag-h2 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--g52-muted);
}
.g52-tags-search { display: flex; gap: 8px; margin: 10px 0; max-width: 420px; }
.g52-tags-search input {
  flex: 1; padding: 8px 10px; border: 1px solid var(--g52-line);
  background: var(--g52-panel); color: var(--g52-ink);
}
.g52-tags-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.g52-filter-open { display: inline-flex; }
@media (min-width: 900px) {
  .g52-filter-open { display: none; }
}
.g52-view-toggle { display: flex; gap: 4px; }
.g52-view-btn {
  padding: 6px 10px; border: 1px solid var(--g52-line); background: var(--g52-panel);
  cursor: pointer; color: var(--g52-ink); border-radius: 2px;
}
.g52-view-btn.is-active { border-color: var(--g52-accent); color: var(--g52-accent); font-weight: 800; }
/* Desktop chips; mobile uses Categories drawer */
.g52-tags-cats { display: none; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
@media (min-width: 900px) {
  .g52-tags-cats { display: flex; }
}
@media (max-width: 899px) {
  .g52-tags-head { margin-bottom: 10px; }
  .g52-tags-head h1 { font-size: 1.15rem; margin-bottom: 4px; }
  .g52-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;
  }
  .g52-tags-search { margin: 6px 0; max-width: none; }
  .g52-tags-search input { padding: 8px 10px; font-size: 0.85rem; }
  .g52-tags-tools { gap: 8px; }
  .g52-view-btn { padding: 8px 12px; min-height: 40px; font-size: 0.8rem; }
  .g52-filter-open { min-height: 40px; padding: 8px 14px; }
}
.g52-tags-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
@media (min-width: 768px) {
  .g52-tags-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .g52-tags-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.g52-tags-grid.is-manifest { grid-template-columns: 1fr; gap: 8px; }
.g52-tags-grid.is-manifest .g52-tags-card {
  display: grid; grid-template-columns: 40px 120px minmax(0, 1fr); align-items: center; gap: 10px;
}
.g52-tags-grid.is-manifest .g52-tags-media {
  aspect-ratio: auto; height: 80px;
}
.g52-tags-grid.is-manifest .g52-tags-num {
  position: static; padding: 8px; border: 0; background: transparent;
}
.g52-tags-grid.is-manifest .g52-tags-body {
  padding: 10px 12px 10px 0 !important;
}
.g52-tags-card {
  display: flex; flex-direction: column; min-width: 0; position: relative;
  background: var(--g52-panel); border: 1px solid var(--g52-line);
  border-radius: var(--g52-radius); overflow: hidden;
  border-top: 3px solid var(--g52-bar); color: inherit;
}
.g52-tags-media {
  display: block; aspect-ratio: 16 / 10; background: var(--g52-ph); overflow: hidden;
}
.g52-tags-media img { width: 100%; height: 100%; object-fit: cover; }
.g52-tags-body {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.g52-tags-body .game-title,
.g52-tags-body .card-title { font-size: 0.92rem; line-height: 1.3; }
.g52-tags-body .game-star { margin: 2px 0; }
.g52-tags-body .brief-comment-game { font-size: 0.8rem; -webkit-line-clamp: 2; line-clamp: 2; }
.g52-tags-num {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  font-weight: 800; color: var(--g52-accent);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--g52-line);
  padding: 2px 6px; font-size: 0.72rem; line-height: 1.2; border-radius: 2px;
}
@media (max-width: 899px) {
  .g52-tags-grid { gap: 10px; }
  .g52-tags-body { padding: 8px 10px 10px !important; gap: 3px; }
  .g52-tags-body .game-title,
  .g52-tags-body .card-title { font-size: 0.82rem; }
  .g52-tags-body .game-star { font-size: 0.78rem; }
  .g52-tags-body .brief-comment-game,
  .g52-tags-body .g52-card-tags { display: none; }
  .g52-tags-grid.is-manifest .g52-tags-card {
    grid-template-columns: 32px 96px minmax(0, 1fr);
  }
  .g52-tags-grid.is-manifest .g52-tags-media { height: 72px; }
  .g52-tags-grid.is-manifest .g52-tags-body { padding: 8px 8px 8px 0 !important; }
}

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

/* Detail — Hatch Bay (layout/chrome; player shell in details.css) */
.g52-detail-kicker {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem;
  color: var(--g52-container); margin: 0 0 6px; font-weight: 800;
}
.g52-detail-meta { margin: 10px 0; font-size: 0.9rem; color: var(--g52-muted); }
.g52-meta-row span { display: inline-block; min-width: 88px; opacity: 0.8; }
.g52-detail-block {
  margin: 20px 0; padding: 16px; background: var(--g52-panel);
  border: 1px solid var(--g52-line); border-radius: var(--g52-radius);
  border-left: 4px solid var(--g52-container);
}
.g52-quote { margin: 0; color: var(--g52-muted); }
.g52-play-stage { display: grid; gap: 16px; margin-bottom: 20px; min-width: 0; max-width: 100%; }
@media (min-width: 900px) {
  .g52-play-stage { grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.9fr); }
}
.g52-related { margin: 24px 0; }
.g52-manifest-list { display: flex; flex-direction: column; gap: 0; }
.g52-manifest-list .g52-manifest-row,
.g52-manifest-list .special-card {
  display: grid;
  grid-template-columns: 40px 96px 1fr;
  gap: 10px; align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--g52-line);
  border-bottom: 0;
  background: var(--g52-panel);
}
.g52-manifest-list .special-card:last-child { border-bottom: 1px solid var(--g52-line); }

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

/* Profile shell */
.g52-profile-page { padding-bottom: 40px; }
.g52-tickets-banner {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  padding: 18px; background: var(--g52-panel); border: 1px solid var(--g52-line);
  border-radius: var(--g52-radius); margin-bottom: 18px;
  border-left: 5px solid var(--g52-accent);
}
.g52-profile-nav { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.g52-profile-nav-item {
  padding: 8px 12px; border: 1px solid var(--g52-line); background: transparent;
  color: var(--g52-ink); cursor: pointer; border-radius: var(--g52-radius);
}
.g52-profile-nav-item.active { border-color: var(--g52-accent); color: var(--g52-accent); font-weight: 800; }
.g52-profile-panel { display: none; }
.g52-profile-panel.active { display: block; }
.g52-game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
@media (max-width: 767px) {
  .g52-game-grid { grid-template-columns: 1fr; gap: 8px; }
}
.g52-loading { padding: 24px; text-align: center; color: var(--g52-muted); }
.g52-loading-spinner {
  width: 28px; height: 28px; margin: 0 auto 8px; border-radius: 50%;
  border: 3px solid var(--g52-line); border-top-color: var(--g52-accent);
  animation: g52-spin 0.8s linear infinite;
}
@keyframes g52-spin { to { transform: rotate(360deg); } }
.g52-empty-state { padding: 24px; text-align: center; color: var(--g52-muted); }
.g52-aside-label {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem;
  color: var(--g52-container); 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; }
.g52-legal {
  background: var(--g52-panel); padding: 20px; border-radius: var(--g52-radius);
  border: 1px solid var(--g52-line);
}

@media (min-width: 900px) {
  .g52-yard-col .g52-main { max-width: none; padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 899px) {
  .g52-header-name { display: none; }
}

/* Profile shelves / identity (Container Yard) */
.g52-profile-user { display: flex; align-items: center; gap: 14px; min-width: 0; }
.g52-profile-avatar {
  width: 56px; height: 56px; border-radius: 3px;
  background: var(--g52-container); color: #fff;
  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(--g52-bar);
}
.g52-profile-name { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--g52-ink); }
.g52-profile-email { margin: 2px 0 0; color: var(--g52-muted); font-size: 0.88rem; }
.g52-profile-stats { display: flex; gap: 16px; margin-left: auto; }
.g52-stat-item { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.g52-stat-num { font-size: 1.25rem; font-weight: 800; color: var(--g52-container); }
.g52-stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--g52-muted); font-weight: 700; }
.g52-profile-shelves { display: grid; gap: 14px; }
.g52-shelf-block {
  padding: 16px; background: var(--g52-panel); border: 1px solid var(--g52-line);
  border-radius: var(--g52-radius); border-left: 4px solid var(--g52-accent);
}
.g52-profile-panel-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.g52-profile-card-title { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--g52-ink); }
.g52-shelf-actions { display: flex; align-items: center; gap: 10px; }
.g52-stat-badge {
  font-size: 0.8rem; font-weight: 700; color: var(--g52-ink);
  padding: 4px 10px; background: rgba(245, 158, 11, 0.25); border-radius: 3px;
}
.g52-aside-label {
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem;
  color: var(--g52-container); margin: 0; font-weight: 800;
}
.g52-profile-form-block { max-width: 520px; }
.g52-avatar-upload { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.g52-avatar-preview {
  width: 72px; height: 72px; border-radius: 3px;
  background: var(--g52-container); color: #fff;
  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(--g52-bar); flex-shrink: 0;
}
.g52-avatar-hint { margin: 6px 0 0; font-size: 0.78rem; color: var(--g52-muted); }
.g52-form-row { display: grid; gap: 12px; }
@media (min-width: 560px) { .g52-form-row { grid-template-columns: 1fr 1fr; } }
.g52-game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
@media (max-width: 767px) {
  .g52-game-grid { grid-template-columns: 1fr; gap: 8px; }
}
.g52-loading { padding: 24px; text-align: center; color: var(--g52-muted); }
.g52-loading-spinner {
  width: 28px; height: 28px; margin: 0 auto 8px; border-radius: 50%;
  border: 3px solid var(--g52-line); border-top-color: var(--g52-accent);
  animation: g52-spin 0.8s linear infinite;
}
@keyframes g52-spin { to { transform: rotate(360deg); } }
.g52-empty-state { padding: 28px 16px; text-align: center; color: var(--g52-muted); }
