/* game_tgn_0049 — SAMPLE BAY
   S-RIGHT Lab Rail · Specimen / Spec Table / Well / Tag Tape · play modal
   Bench floor + Steel rail · Acid highlight · Coral CTA */

:root {
  --g49-bg: #dfe8e4;
  --g49-panel: #f0f5f2;
  --g49-ink: #152025;
  --g49-muted: #475569;
  --g49-accent: #c4d82e;
  --g49-accent-text: #4a5306;
  --g49-cta: #e85d4c;
  --g49-bar: #1a2428;
  --g49-rail-ink: #e6f0ec;
  --g49-line: rgba(21, 32, 37, 0.12);
  --g49-star-full: #8a9610;
  --g49-star-empty: #64748b;
  --g49-ph: #c5d0cb;
  --g49-rail-w: 248px;
  --g49-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --g49-mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --g49-mob-h: 54px;
  --g49-pad-x: 18px;
  --g49-radius: 4px;
  --bg-main: var(--g49-bg);
  --text-main: var(--g49-ink);
  --text-muted: var(--g49-muted);
  --accent: var(--g49-accent);
  --ink-muted: var(--g49-muted);
  --ink-on-light: #334155;
}

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

body.g49-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--g49-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--g49-ink);
  background:
    linear-gradient(180deg, rgba(240, 245, 242, 0.65), transparent 160px),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      rgba(21, 32, 37, 0.03) 47px,
      rgba(21, 32, 37, 0.03) 48px
    ),
    var(--g49-bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
  padding-top: calc(48px + env(safe-area-inset-top, 0px));
}
@media (min-width: 900px) {
  body.g49-body { padding-bottom: 0; padding-top: 0; }
  html { background: var(--g49-bg); }
}

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

:focus-visible {
  outline: 2px solid var(--g49-cta);
  outline-offset: 2px;
}
.g49-slip-search input:focus-visible,
.g49-rail-search input:focus-visible,
.g49-bay-search input:focus-visible,
.g49-tags-search input:focus-visible,
.g49-form-input:focus-visible {
  outline: 2px solid var(--g49-cta);
  outline-offset: 1px;
  border-color: rgba(196, 216, 46, 0.7);
}

.g49-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;
}

.g49-page-pad {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 4px 0 8px;
}
.g49-ad-slot,
.g49-ad-top { margin: 12px 0; }
.g49-pick-section { background: transparent; }

/* ========== Buttons ========== */
.g49-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--g49-radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.g49-btn-primary {
  background: var(--g49-cta);
  color: #fff;
}
.g49-btn-primary:hover {
  filter: brightness(1.08);
  color: #fff;
  transform: translateY(-1px);
}
.g49-btn-outline {
  background: var(--g49-panel);
  border-color: var(--g49-line);
  color: var(--g49-ink);
}
.g49-btn-outline:hover {
  border-color: var(--g49-cta);
  color: var(--g49-cta);
}

/* ========== Title / stars / brief / tags ========== */
.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;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--g49-ink);
}
.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;
  margin: 4px 0;
}
.game-star .star-full::before {
  content: "★";
  color: var(--g49-star-full);
}
.game-star .star-empty::before {
  content: "★";
  color: var(--g49-star-empty);
}
.game-star--detail-hero { font-size: 1.15rem; margin: 8px 0; }

.g49-main .brief-comment-game {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 1;
  min-width: 0;
  color: var(--g49-muted);
  font-size: 0.88rem;
}
@media (min-width: 768px) {
  .g49-main .brief-comment-game { -webkit-line-clamp: 2; }
}
.g49-main .g49-card-tags {
  display: flex;
  gap: 6px;
  min-width: 0;
  flex-wrap: nowrap;
  overflow: hidden;
  margin: 4px 0;
}
@media (min-width: 768px) {
  .g49-main .g49-card-tags {
    flex-wrap: wrap;
    overflow: visible;
  }
}
.g49-chip,
.g49-chip-link {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(196, 216, 46, 0.18);
  border: 1px solid rgba(90, 100, 8, 0.22);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-on-light);
  white-space: nowrap;
}
.g49-chip-link:hover {
  background: rgba(232, 93, 76, 0.12);
  border-color: var(--g49-cta);
  color: var(--g49-cta);
}

/* ========== Section chrome ========== */
.g49-section-bar {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--g49-line);
}
.g49-section-title {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  font-weight: 800;
}
.g49-mod-badge {
  font-family: var(--g49-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--g49-accent-text);
  background: rgba(196, 216, 46, 0.28);
  border: 1px solid rgba(90, 100, 8, 0.28);
  padding: 3px 8px;
  border-radius: 2px;
}
.g49-mod-badge--muted {
  color: var(--g49-muted);
  background: var(--g49-panel);
  border-color: var(--g49-line);
}
.g49-section-more {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--g49-cta);
  font-weight: 700;
}
.g49-section-more:hover { text-decoration: underline; }
.g49-section-desc {
  color: var(--g49-muted);
  margin: 0 0 14px;
  font-size: 0.92rem;
}
.g49-aside-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--g49-accent-text);
  margin: 0 0 4px;
}
.g49-field-label {
  display: block;
  font-family: var(--g49-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g49-muted);
  margin-bottom: 6px;
}
.g49-open-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--g49-cta);
}

/* ========== Protocol Slip ========== */
.g49-slip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 22px;
  background: var(--g49-panel);
  border: 1px solid var(--g49-line);
  border-left: 4px solid var(--g49-accent);
  border-radius: var(--g49-radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.g49-slip-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.g49-slip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--g49-cta);
  box-shadow: 0 0 0 3px rgba(232, 93, 76, 0.2);
}
.g49-slip-id {
  font-family: var(--g49-mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--g49-muted);
}
.g49-slip-copy { flex: 1; min-width: 180px; }
.g49-slip-slogan {
  margin: 0;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.g49-slip-desc {
  color: var(--g49-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}
.g49-slip-search {
  display: flex;
  gap: 0;
  margin-left: auto;
  min-width: 220px;
  flex: 1;
  max-width: 360px;
}
.g49-slip-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--g49-line);
  background: #fff;
  color: var(--g49-ink);
  padding: 9px 12px;
  font: inherit;
  border-radius: var(--g49-radius) 0 0 var(--g49-radius);
  outline: none;
}
.g49-slip-search input:focus {
  border-color: rgba(196, 216, 46, 0.7);
}
.g49-slip-search button {
  border-radius: 0 var(--g49-radius) var(--g49-radius) 0;
}

/* ========== Specimen Stage ========== */
.g49-specimen { margin-bottom: 8px; }
.g49-specimen-lead {
  display: grid;
  gap: 0;
  background: var(--g49-panel);
  border: 1px solid var(--g49-line);
  border-radius: var(--g49-radius);
  overflow: hidden;
  margin-bottom: 14px;
  transition: transform 0.15s ease;
}
.g49-specimen-lead:hover { transform: translateY(-2px); color: inherit; }
@media (min-width: 768px) {
  .g49-specimen-lead { grid-template-columns: 1.45fr 1fr; }
}
.g49-specimen-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--g49-ph);
  overflow: hidden;
}
.g49-specimen-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g49-specimen-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  font-family: var(--g49-mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #111;
  background: var(--g49-accent);
  border-radius: 2px;
  box-shadow: 2px 2px 0 rgba(21, 32, 37, 0.2);
}
.g49-specimen-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px !important;
}
@media (max-width: 767px) {
  .g49-slip { padding: 8px 10px; margin-bottom: 8px; gap: 8px; }
  .g49-slip-mark { display: none; }
  .g49-slip-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .g49-section-bar { margin: 4px 0 8px; padding-bottom: 4px; }
  .g49-section-desc {
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .g49-specimen-lead { margin-bottom: 8px; }
  .g49-specimen-media { aspect-ratio: 16 / 10; }
  .g49-specimen-meta { padding: 8px 10px 10px !important; }
  .g49-specimen-meta .brief-comment-game { -webkit-line-clamp: 1; line-clamp: 1; }
  .g49-specimen-meta .g49-card-tags { display: none; }
  .g49-specimen-tag { top: 6px; left: 6px; padding: 2px 6px; }
}

.g49-rest-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 900px) {
  .g49-rest-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .g49-rest-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.g49-rest-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--g49-panel);
  border: 1px solid var(--g49-line);
  border-radius: var(--g49-radius);
  overflow: hidden;
  transition: transform 0.15s ease;
}
.g49-rest-card:hover {
  transform: translateY(-2px);
  color: inherit;
  border-color: rgba(196, 216, 46, 0.5);
}
.g49-rest-well {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 2px 6px;
  font-family: var(--g49-mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #111;
  background: var(--g49-accent);
  border-radius: 2px;
}
.g49-rest-thumb {
  aspect-ratio: 3 / 2;
  background: var(--g49-ph);
}
.g49-rest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g49-rest-body { padding: 10px 12px 12px !important; }

/* ========== Spec Table ========== */
.g49-spectable {
  border: 1px solid var(--g49-line);
  border-radius: var(--g49-radius);
  overflow: hidden;
  background: var(--g49-panel);
}
.g49-spectable-head {
  display: none;
  grid-template-columns: 44px 96px 1fr;
  gap: 10px;
  padding: 8px 10px;
  font-family: var(--g49-mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g49-muted);
  background: rgba(21, 32, 37, 0.04);
  border-bottom: 1px solid var(--g49-line);
}
@media (min-width: 640px) {
  .g49-spectable-head { display: grid; }
}
.g49-spectable-list {
  display: flex;
  flex-direction: column;
}
.g49-spectable-row {
  display: grid;
  grid-template-columns: 40px 80px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-bottom: 1px dashed var(--g49-line);
  background: transparent;
  overflow: hidden;
  transition: background 0.15s ease;
}
.g49-spectable-row:last-child { border-bottom: 0; }
.g49-spectable-row:hover {
  background: rgba(196, 216, 46, 0.1);
  color: inherit;
}
@media (min-width: 640px) {
  .g49-spectable-row { grid-template-columns: 44px 96px 1fr; padding: 8px 10px; }
}
.g49-row-num {
  font-family: var(--g49-mono);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--g49-accent-text);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.g49-row-thumb {
  width: 80px;
  height: 60px;
  background: var(--g49-ph);
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--g49-line);
}
@media (min-width: 640px) {
  .g49-row-thumb { width: 96px; height: 72px; }
}
.g49-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g49-row-body { padding: 4px 6px !important; }

/* ========== Well Grid ========== */
.g49-well {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 4px;
}
@media (min-width: 900px) {
  .g49-well { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
.g49-well-card {
  position: relative;
  display: block;
  background: var(--g49-panel);
  border: 1px solid var(--g49-line);
  border-radius: var(--g49-radius);
  overflow: hidden;
  transition: transform 0.15s ease;
}
.g49-well-card:hover {
  transform: translateY(-2px);
  color: inherit;
  border-color: rgba(196, 216, 46, 0.55);
}
.g49-well-lid {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  padding: 3px 8px;
  font-family: var(--g49-mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--g49-rail-ink);
  background: var(--g49-bar);
  border-radius: 0 0 0 4px;
}
.g49-grid-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--g49-ph);
}
.g49-grid-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g49-well-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(21, 32, 37, 0.88));
  min-width: 0;
}
.g49-well-overlay .game-title {
  color: #fff;
  font-size: 0.92rem;
  margin: 0 0 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.g49-well-overlay .game-star {
  margin: 0;
}
.g49-well-overlay .game-star .star-full::before {
  color: var(--g49-accent);
}
.g49-well-overlay .game-star .star-empty::before {
  color: #94a3b8;
  opacity: 1;
}

/* ========== Tag Tape ========== */
.g49-tagtape-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.g49-tagtape-item {
  flex: 0 0 320px;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: #f7faf0;
  border: 1px solid rgba(90, 100, 8, 0.22);
  border-left: 4px solid var(--g49-accent);
  border-radius: 2px;
  padding: 10px 12px;
  box-shadow: 1px 2px 0 rgba(21, 32, 37, 0.06);
  transition: transform 0.15s ease;
  overflow: hidden;
  min-width: 0;
}
.g49-tagtape-item:hover {
  transform: translateY(-2px) rotate(-0.4deg);
  color: inherit;
}
.g49-tagtape-item .g49-row-thumb {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  align-self: center;
  border-radius: 2px;
  flex-shrink: 0;
}
.g49-tagtape-item .g49-row-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g49-tagtape-item .special-card-content {
  padding: 0 !important;
  min-width: 0;
  overflow: hidden;
}
.g49-tagtape-item .game-title {
  max-width: 100%;
}
.g49-tagtape-item .game-star,
.g49-tagtape-item .g49-card-tags {
  max-width: 100%;
}
.g49-tagtape-item .brief-comment-game {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Quick Protocols ========== */
.g49-quickcats { margin: 28px 0 12px; }
.g49-quickcats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.g49-quickcat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--g49-panel);
  border: 1px dashed var(--g49-line);
  border-radius: var(--g49-radius);
  font-weight: 600;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.g49-quickcat:hover {
  border-color: var(--g49-cta);
  border-style: solid;
  color: var(--g49-ink);
  transform: translateY(-1px);
}
.g49-quickcat-num {
  font-family: var(--g49-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--g49-accent-text);
}

/* ========== S-RIGHT Shell ========== */
.g49-shell {
  min-height: 100vh;
  display: block;
}
@media (min-width: 900px) {
  .g49-shell {
    margin-right: var(--g49-rail-w);
    min-height: 100vh;
  }
}

.g49-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px var(--g49-pad-x) 40px;
}
@media (max-width: 767px) {
  .g49-main { padding: 10px 12px 28px; }
}
@media (min-width: 900px) {
  .g49-main { padding: 20px 28px 48px; }
}

/* ========== Lab Rail (desktop fixed right) ========== */
.g49-lab-rail {
  display: none;
}
@media (min-width: 900px) {
  .g49-lab-rail {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: var(--g49-rail-w);
    height: 100vh;
    height: 100dvh;
    padding: 20px 14px 96px;
    background:
      linear-gradient(180deg, rgba(196, 216, 46, 0.08), transparent 120px),
      var(--g49-bar);
    color: var(--g49-rail-ink);
    border-left: 1px solid rgba(230, 240, 236, 0.1);
    overflow-y: auto;
  }
}

.g49-rail-head { flex-shrink: 0; }
.g49-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  font-size: 0.95rem;
}
.g49-brand:hover { color: #fff; }
.g49-brand img { border-radius: 3px; flex-shrink: 0; }
.g49-brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g49-rail-kicker {
  margin: 6px 0 0;
  font-family: var(--g49-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g49-accent);
}

.g49-rail-search {
  display: flex;
  border: 1px solid rgba(230, 240, 236, 0.18);
  border-radius: var(--g49-radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}
.g49-rail-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 8px 10px;
  font: inherit;
  outline: none;
}
.g49-rail-search input::placeholder { color: #94a3b8; }
.g49-rail-search button {
  border: 0;
  background: var(--g49-accent);
  color: #111;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
}

.g49-rail-label {
  margin: 0 0 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.g49-rail-num {
  flex-shrink: 0;
  width: 26px;
  font-family: var(--g49-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--g49-accent);
}

.g49-rail-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
  padding-top: 4px;
}
.g49-menu-chip {
  display: block;
  padding: 9px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  border-radius: var(--g49-radius);
  border-left: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.g49-menu-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.g49-menu-chip.is-active,
.g49-menu-chip.active {
  color: #fff;
  background: rgba(196, 216, 46, 0.18);
  border-left-color: var(--g49-accent);
}

/* Auth host: mobile top bar / desktop rail foot */
.g49-auth-host {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: calc(48px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0;
  background: rgba(240, 245, 242, 0.96);
  border-bottom: 1px solid var(--g49-line);
  box-sizing: border-box;
}
.g49-mob-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--g49-ink);
}
.g49-mob-brand img { border-radius: 3px; flex-shrink: 0; }
.g49-mob-brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g49-auth-host .g49-tool-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.g49-auth-host .g49-signin {
  width: auto;
  padding: 7px 12px;
}
.g49-auth-host .g49-header-user {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.g49-auth-host .g49-header-name { display: none; }
@media (min-width: 900px) {
  .g49-auth-host {
    top: auto;
    left: auto;
    right: 0;
    bottom: 0;
    width: var(--g49-rail-w);
    height: auto;
    padding: 14px 14px 16px;
    background:
      linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35) 40%),
      var(--g49-bar);
    border-bottom: none;
    border-top: 1px solid rgba(230, 240, 236, 0.1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 101;
  }
  .g49-mob-brand { display: none; }
  .g49-auth-host .g49-tool-auth { width: 100%; flex-direction: column; align-items: stretch; }
  .g49-auth-host .g49-signin { width: 100%; }
  .g49-auth-host .g49-header-user {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(230, 240, 236, 0.12);
    border-radius: var(--g49-radius);
  }
  .g49-auth-host .g49-header-name { display: block; }
  .g49-auth-host .g49-header-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
}

.g49-signin {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--g49-cta);
  border-radius: var(--g49-radius);
}
.g49-signin:hover { color: #fff; filter: brightness(1.06); }
.g49-header-user {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
}
.g49-header-meta {
  display: contents;
}
.g49-header-avatar {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(196, 216, 46, 0.35);
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(230, 240, 236, 0.25);
  flex-shrink: 0;
}
.g49-header-name {
  color: #fff;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g49-header-out {
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.g49-header-out:hover { color: #fff; }
@media (max-width: 899px) {
  .g49-auth-host .g49-header-out {
    color: #b91c1c;
  }
  .g49-auth-host .g49-header-out:hover {
    color: #7f1d1d;
  }
}

/* ========== Bay drawer (mobile) ========== */
.g49-bay-open {
  position: fixed;
  z-index: 60;
  right: 12px;
  bottom: calc(var(--g49-mob-h) + 12px + env(safe-area-inset-bottom, 0px));
  border: 0;
  background: var(--g49-cta);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(232, 93, 76, 0.35);
}
@media (min-width: 900px) {
  .g49-bay-open { display: none; }
}

.g49-bay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 140;
  border: 0;
}
@media (min-width: 900px) {
  .g49-bay-backdrop { display: none !important; }
}

.g49-bay-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  pointer-events: none;
}
body.g49-bay-is-open .g49-bay-drawer {
  display: block;
  pointer-events: none;
}
body.g49-bay-is-open .g49-bay-open,
body.g49-bay-is-open .g49-back-top,
body.g49-bay-is-open .back-to-top.g49-back-top {
  visibility: hidden;
  pointer-events: none;
}
.g49-bay-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 340px);
  height: 100%;
  height: 100dvh;
  background: var(--g49-bar);
  color: var(--g49-rail-ink);
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
  overflow: auto;
  pointer-events: auto;
  border-left: 1px solid rgba(230, 240, 236, 0.12);
  box-sizing: border-box;
}
.g49-bay-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.g49-drawer-label {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}
.g49-drawer-sub {
  margin: 2px 0 0;
  font-family: var(--g49-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g49-accent);
}
.g49-bay-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--g49-rail-ink);
}
.g49-bay-search {
  display: flex;
  margin: 12px 0;
  border: 1px solid rgba(230, 240, 236, 0.18);
  border-radius: var(--g49-radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}
.g49-bay-search input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  outline: none;
}
.g49-bay-search input::placeholder { color: #94a3b8; }
.g49-bay-search button {
  border: 0;
  background: var(--g49-accent);
  color: #111;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
}
.g49-bay-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(230, 240, 236, 0.1);
  color: rgba(230, 240, 236, 0.85);
  font-weight: 600;
}
.g49-bay-link:hover,
.g49-bay-link.is-active {
  color: #fff;
}
.g49-bay-menu { margin-top: 0; }

/* ========== Mobile bottom nav ========== */
.g49-mobnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  align-items: stretch;
  height: calc(var(--g49-mob-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--g49-bar);
  color: #e8eef2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}
@media (min-width: 900px) {
  .g49-mobnav { display: none; }
}
.g49-mobnav .mobile-nav-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--g49-mob-h);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
}
.g49-mobnav .mobile-nav-item.active { color: var(--g49-accent); }

/* ========== Footer ========== */
.g49-footer {
  margin-top: auto;
  padding: 28px var(--g49-pad-x) calc(24px + var(--g49-mob-h) + env(safe-area-inset-bottom, 0px));
  background: var(--g49-bar);
  color: #e2e8f0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 900px) {
  .g49-footer {
    margin-right: var(--g49-rail-w);
    padding-bottom: 28px;
  }
}
.g49-footer a { color: #cbd5e1; }
.g49-footer a:hover { color: var(--g49-accent); }
.g49-footer-inner { max-width: 1100px; margin: 0 auto; }
.g49-footer-grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 768px) {
  .g49-footer-grid { grid-template-columns: 2fr 2fr 1fr; }
}
.g49-footer-brand { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.g49-footer-tag {
  margin: 0 0 8px;
  font-family: var(--g49-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g49-accent);
}
.g49-footer-desc { color: #cbd5e1; font-size: 0.9rem; margin: 0; }
.g49-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-content: flex-start;
}
.g49-footer-copy {
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 0.85rem;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-social-link { font-size: 0.85rem; font-weight: 600; }

/* Back to top — beat ads.css .back-to-top (loaded after styles.css) */
.back-to-top.g49-back-top,
.g49-back-top {
  position: fixed;
  right: 16px;
  bottom: calc(var(--g49-mob-h) + 64px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--g49-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.g49-back-top::before,
.g49-back-top::before {
  content: none;
  display: none;
  animation: none;
  opacity: 0;
  background: none;
  box-shadow: none;
}
.back-to-top.g49-back-top svg,
.g49-back-top svg {
  position: relative;
  z-index: 1;
  display: block;
}
.back-to-top.g49-back-top.is-visible,
.g49-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  display: inline-flex;
}
.back-to-top.g49-back-top:not(.is-visible),
.g49-back-top:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}
.back-to-top.g49-back-top:hover,
.g49-back-top:hover {
  filter: brightness(1.06);
  background: var(--g49-cta);
  box-shadow: none;
  transform: translateY(-2px);
}
.back-to-top.g49-back-top:active,
.g49-back-top:active {
  transform: translateY(0);
  filter: brightness(0.96);
}
@media (min-width: 900px) {
  .back-to-top.g49-back-top,
.g49-back-top {
    right: calc(var(--g49-rail-w) + 16px);
    bottom: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top.g49-back-top,
.g49-back-top {
    transition: opacity 0.15s ease, visibility 0.15s ease;
    transform: none;
  }
  .back-to-top.g49-back-top:hover,
  .g49-back-top:hover,
  .back-to-top.g49-back-top:active,
  .g49-back-top:active {
    transform: none;
  }
}


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

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

/* ========== Detail ========== */
.g49-crumb {
  margin: 8px 0 14px;
  font-size: 0.82rem;
  color: var(--g49-muted);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb-separator { opacity: 0.5; }
.g49-crumb a:hover { color: var(--g49-cta); }

.g49-detail-hero {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}
@media (min-width: 900px) {
  .g49-detail-hero { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.g49-detail-banner {
  position: relative;
  background: var(--g49-ph);
  border-radius: var(--g49-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--g49-line);
}
.g49-detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g49-detail-info h1 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  font-weight: 800;
}
.g49-detail-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--g49-accent-text);
  margin: 0 0 6px;
  font-family: var(--g49-mono);
}
.g49-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.g49-detail-meta {
  margin: 12px 0;
  font-size: 0.9rem;
  color: var(--g49-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.g49-meta-row span {
  display: inline-block;
  min-width: 88px;
  font-family: var(--g49-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g49-accent-text);
}
.g49-side-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.g49-detail-block {
  margin: 18px 0;
  padding: 18px;
  background: var(--g49-panel);
  border: 1px solid var(--g49-line);
  border-radius: var(--g49-radius);
}
.g49-detail-block h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
}
.g49-quote {
  margin: 0;
  color: var(--g49-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}
.g49-related { margin: 28px 0; }

@media (max-width: 768px) {
  .description-text-wrap.is-collapsed {
    max-height: 180px;
    overflow: hidden;
    position: relative;
  }
  .description-text-wrap.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 48px;
    background: linear-gradient(transparent, var(--g49-panel));
  }
  .description-text-wrap.is-expanded { max-height: none; }
}

/* ========== Auth / Login modal ========== */
.g49-login-modal[hidden] { display: none !important; }
.g49-login-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.g49-login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 36, 40, 0.62);
  border: 0;
}
.g49-login-modal__panel {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 8vh auto;
  padding: 8px;
}
.g49-login-modal__close {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 2;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--g49-ink);
}

.g49-auth-page {
  display: flex;
  justify-content: center;
  padding: 32px 16px 48px;
}
.g49-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--g49-panel);
  border: 1px solid var(--g49-line);
  border-left: 4px solid var(--g49-accent);
  border-radius: var(--g49-radius);
  padding: 24px;
  box-shadow: 0 8px 28px rgba(21, 32, 37, 0.08);
}
.g49-auth-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--g49-accent-text);
  font-family: var(--g49-mono);
  margin: 0;
}
.g49-auth-head { margin: 6px 0 16px; font-size: 1.35rem; font-weight: 800; }
.g49-auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.g49-auth-tab {
  flex: 1;
  padding: 9px;
  border: 1px solid var(--g49-line);
  background: transparent;
  cursor: pointer;
  color: var(--g49-ink);
  font: inherit;
  font-weight: 600;
  border-radius: var(--g49-radius);
}
.g49-auth-tab.active {
  border-color: var(--g49-accent-text);
  background: rgba(196, 216, 46, 0.2);
  color: var(--g49-accent-text);
  font-weight: 800;
}
.g49-auth-panel { display: none; }
.g49-auth-panel.active { display: block; }
.g49-form-group { margin-bottom: 12px; }
.g49-form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--g49-ink);
}
.g49-form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--g49-line);
  background: #fff;
  color: var(--g49-ink);
  border-radius: var(--g49-radius);
  font: inherit;
  outline: none;
}
.g49-form-input:focus {
  border-color: rgba(196, 216, 46, 0.7);
}
.g49-form-input:disabled {
  background: rgba(21, 32, 37, 0.04);
  color: var(--g49-muted);
}
.g49-form-error {
  display: none;
  color: var(--g49-cta);
  font-size: 0.8rem;
  margin-top: 4px;
}
.g49-form-input-wrap { position: relative; }
.g49-form-input.has-toggle { padding-right: 40px; }
.g49-pwd-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 28px;
  height: 28px;
  color: var(--g49-muted);
}
.g49-auth-forgot {
  margin: 0 0 12px;
  font-size: 0.85rem;
}
.g49-auth-forgot a { color: var(--g49-cta); font-weight: 600; }
.g49-btn-auth { width: 100%; }
.g49-auth-divider {
  text-align: center;
  margin: 18px 0 12px;
  color: var(--g49-muted);
  font-size: 0.82rem;
}
.g49-social-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.g49-social-btn {
  padding: 9px;
  border: 1px solid var(--g49-line);
  background: #fff;
  border-radius: var(--g49-radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--g49-ink);
}

/* ========== Profile ========== */
.g49-profile-page { padding-bottom: 40px; }
.g49-tickets-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: var(--g49-panel);
  border: 1px solid var(--g49-line);
  border-left: 4px solid var(--g49-accent);
  border-radius: var(--g49-radius);
  margin-bottom: 18px;
}
.g49-profile-user {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.g49-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(196, 216, 46, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--g49-ink);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 2px solid rgba(21, 32, 37, 0.1);
}
.g49-profile-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}
.g49-profile-email {
  margin: 2px 0 0;
  color: var(--g49-muted);
  font-size: 0.88rem;
}
.g49-profile-stats {
  display: flex;
  gap: 16px;
  margin-left: auto;
}
.g49-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}
.g49-stat-num {
  font-family: var(--g49-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--g49-accent-text);
}
.g49-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g49-muted);
  font-weight: 700;
}
.g49-profile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}
.g49-profile-nav-item {
  padding: 8px 14px;
  border: 1px solid var(--g49-line);
  background: transparent;
  color: var(--g49-ink);
  cursor: pointer;
  border-radius: var(--g49-radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
}
.g49-profile-nav-item.active {
  border-color: var(--g49-accent-text);
  background: rgba(196, 216, 46, 0.22);
  color: var(--g49-accent-text);
  font-weight: 800;
}
.g49-profile-panel { display: none; }
.g49-profile-panel.active { display: block; }
.g49-shelf-block {
  padding: 16px;
  background: var(--g49-panel);
  border: 1px solid var(--g49-line);
  border-radius: var(--g49-radius);
}
.g49-profile-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.g49-profile-card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}
.g49-shelf-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.g49-stat-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--g49-muted);
  padding: 4px 10px;
  background: rgba(21, 32, 37, 0.05);
  border-radius: 999px;
}
.g49-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
@media (max-width: 767px) {
  .g49-game-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.g49-loading {
  padding: 24px;
  text-align: center;
  color: var(--g49-muted);
}
.g49-loading-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 3px solid var(--g49-line);
  border-top-color: var(--g49-accent);
  animation: g49-spin 0.8s linear infinite;
}
@keyframes g49-spin { to { transform: rotate(360deg); } }
.g49-empty-state {
  padding: 28px 16px;
  text-align: center;
  color: var(--g49-muted);
}
.g49-profile-form-block { max-width: 520px; }
.g49-avatar-upload {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.g49-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(196, 216, 46, 0.3);
  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(--g49-line);
  flex-shrink: 0;
}
.g49-avatar-hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--g49-muted);
}
.g49-form-row {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .g49-form-row { grid-template-columns: 1fr 1fr; }
}

.g49-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(26, 36, 40, 0.55);
  padding: 16px;
}
.g49-confirm-overlay[aria-hidden="false"] { display: flex; }
.g49-confirm-modal {
  width: 100%;
  max-width: 380px;
  background: var(--g49-panel);
  border: 1px solid var(--g49-line);
  border-radius: var(--g49-radius);
  padding: 22px;
}
.g49-confirm-title { margin: 0 0 8px; font-size: 1.1rem; }
.g49-confirm-desc { margin: 0 0 16px; color: var(--g49-muted); }
.g49-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.g49-confirm-cancel {
  padding: 8px 14px;
  border: 1px solid var(--g49-line);
  background: transparent;
  border-radius: var(--g49-radius);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--g49-ink);
}

/* ========== Legal / empty / pagination ========== */
.game-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--g49-muted);
}
.game-empty-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--g49-ink);
  font-weight: 800;
}
.pagination-container { margin: 32px 0 12px; }
.g49-legal {
  background: var(--g49-panel);
  padding: 22px 24px;
  border-radius: var(--g49-radius);
  border: 1px solid var(--g49-line);
  border-left: 4px solid var(--g49-accent);
}
.g49-legal h1,
.g49-legal h2,
.g49-legal h3 { color: var(--g49-ink); }
.g49-legal p,
.g49-legal li { color: var(--g49-muted); }

.g49-mod { margin-bottom: 28px; }
