/* ════════════════════════════════════════════════════════════
   掼蛋教程 — Style
   Design system: Monochrome editorial (inspired by DESIGN.md)
   ════════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */

:root {
  /* Brand */
  --primary: #000000;
  --on-primary: #ffffff;

  /* Surfaces */
  --canvas: #ffffff;
  --canvas-warm: #f7f7f7;
  --scrim: rgba(0, 0, 0, 0.82);
  --footer: #111111;

  /* Text */
  --ink: #000000;
  --ink-soft: #333333;
  --graphite: #555555;
  --slate: #777777;
  --stone: #999999;
  --mute: #bbbbbb;
  --ash: #dddddd;

  /* Lines */
  --hairline: #e5e5e5;
  --hairline-soft: #f0f0f0;

  /* Card game only */
  --card-red: #cc0000;
  --card-face: #ffffff;
  --card-edge: #d4d4d4;

  /* Typography */
  --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Type tokens */
  --fs-display: 48px;
  --fs-display-sm: 40px;
  --fs-heading-md: 36px;
  --fs-heading-sm: 24px;
  --fs-subtitle: 20px;
  --fs-body: 16px;
  --fs-link: 14px;
  --fs-eyebrow: 14px;
  --fs-meta: 13px;
  --fs-micro: 11px;
  --fs-button: 14px;

  /* Spacing */
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-section: 64px;
  --sp-section-lg: 96px;

  /* Layout */
  --nav-h: 64px;
  --content-w: 1200px;
  --gutter: 40px;
}

/* ── Reset ── */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

::selection { background: var(--ink); color: var(--on-primary); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ── Buttons ── */

.gd-btn {
  display: inline-flex; align-items: center; gap: var(--sp-xs);
  height: 40px;
  padding: var(--sp-sm) var(--sp-lg);
  border: 1px solid var(--ink);
  border-radius: 9999px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-button);
  font-weight: 600;
  line-height: 1.43;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.gd-btn:hover {
  background: var(--hairline);
}

.gd-btn.primary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.gd-btn.primary:hover {
  background: var(--ink-soft);
}

.gd-btn.ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.gd-btn.ghost:hover {
  background: var(--ink);
  color: var(--on-primary);
}

.gd-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.gd-btn.sm {
  height: 32px;
  padding: 4px var(--sp-md);
  font-size: 13px;
}

.gd-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  align-items: center;
}

/* ── Navigation ── */

.gd-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.gd-nav-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gd-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.gd-logo-sub {
  font-weight: 400;
  color: var(--graphite);
  margin-left: 2px;
}

.gd-nav-links {
  display: flex;
  gap: 2px;
}

.gd-nav-links a {
  padding: 10px var(--sp-sm);
  font-size: var(--fs-link);
  font-weight: 500;
  color: var(--graphite);
  text-decoration: none;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.gd-nav-links a:hover,
.gd-nav-links a.is-active {
  color: var(--ink);
  background: var(--hairline-soft);
}

.gd-nav-hamburger { display: none; }

/* ── Scroll Progress ── */

.gd-scroll-progress {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 99;
  background: transparent;
  pointer-events: none;
}

.gd-scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--ink);
  will-change: width;
}

/* ── Hero ── */

.gd-hero {
  background: var(--scrim);
  color: var(--on-primary);
  position: relative;
  overflow: hidden;
}

/* Subtle geometric pattern instead of photography */
.gd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,0.03) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255,255,255,0.03) 25%, transparent 25%);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Radial glow */
.gd-hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.gd-hero-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: var(--sp-section-lg) var(--gutter) var(--sp-section);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xxl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.gd-hero-content .gd-eyebrow {
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-sm);
}

.gd-hero-content h1 {
  margin: 0 0 var(--sp-lg);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -1.2px;
}

.gd-hero-text {
  font-size: var(--fs-subtitle);
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin: 0 0 var(--sp-lg);
}

.gd-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-xl);
}

.gd-hero-tag {
  padding: 6px var(--sp-sm);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

.gd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.gd-btn-on-dark {
  display: inline-flex; align-items: center; gap: var(--sp-xs);
  height: 40px;
  padding: var(--sp-sm) var(--sp-lg);
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: var(--fs-button);
  font-weight: 600;
  line-height: 1.43;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.gd-btn-on-dark.primary {
  background: var(--on-primary);
  color: var(--primary);
  border: none;
}

.gd-btn-on-dark.primary:hover {
  background: rgba(255,255,255,0.85);
}

.gd-btn-on-dark.ghost {
  background: transparent;
  color: var(--on-primary);
  border: 1px solid rgba(255,255,255,0.4);
}

.gd-btn-on-dark.ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--on-primary);
}

/* Hero visual panel */
.gd-hero-panel {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: var(--sp-lg);
  background: rgba(0,0,0,0.3);
}

.gd-hero-panel-h {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin-bottom: var(--sp-md);
}

/* Card fan */
.gd-card-fan {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  min-height: 200px;
  margin-bottom: var(--sp-lg);
}

.gd-card-fan .gd-card {
  position: absolute;
  transform-origin: bottom center;
  opacity: 0;
  animation: gd-fan-deal .5s ease-out forwards;
}

.gd-card-fan .gd-card:nth-child(1) { transform: rotate(-16deg) translateX(-56px); animation-delay: .1s; z-index: 1; }
.gd-card-fan .gd-card:nth-child(2) { transform: rotate(-6deg) translateX(-24px); animation-delay: .25s; z-index: 2; }
.gd-card-fan .gd-card:nth-child(3) { transform: rotate(6deg) translateX(24px); animation-delay: .4s; z-index: 3; }
.gd-card-fan .gd-card:nth-child(4) { transform: rotate(16deg) translateX(56px); animation-delay: .55s; z-index: 4; }

@keyframes gd-fan-deal {
  0%   { opacity: 0; transform: translateY(-100px) rotate(20deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; }
}

.gd-card-fan:hover .gd-card:nth-child(1) { transform: rotate(-22deg) translateX(-70px) !important; }
.gd-card-fan:hover .gd-card:nth-child(2) { transform: rotate(-8deg) translateX(-30px) !important; }
.gd-card-fan:hover .gd-card:nth-child(3) { transform: rotate(8deg) translateX(30px) !important; }
.gd-card-fan:hover .gd-card:nth-child(4) { transform: rotate(22deg) translateX(70px) !important; }

.gd-card-fan .gd-card {
  cursor: pointer;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

.gd-card-fan .gd-card {
  animation: gd-fan-deal .5s ease-out forwards, gd-float 4s ease-in-out infinite;
  animation-delay: var(--deal-delay, .1s), var(--float-delay, 2s);
}

.gd-card-fan .gd-card:nth-child(1) { --deal-delay: .1s; --float-delay: 2.0s; }
.gd-card-fan .gd-card:nth-child(2) { --deal-delay: .25s; --float-delay: 2.4s; }
.gd-card-fan .gd-card:nth-child(3) { --deal-delay: .4s; --float-delay: 2.8s; }
.gd-card-fan .gd-card:nth-child(4) { --deal-delay: .55s; --float-delay: 3.2s; }

@keyframes gd-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.gd-card-fan:hover .gd-card {
  animation-play-state: paused;
}

/* Hero rules grid */
.gd-hero-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.gd-hero-rule {
  padding: var(--sp-sm) var(--sp-md);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
}

.gd-hero-rule strong {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
  color: var(--on-primary);
}

.gd-hero-rule span {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.gd-hero-callout {
  padding: var(--sp-sm) var(--sp-md);
  border-left: 2px solid rgba(255,255,255,0.25);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
}

.gd-hero-callout strong {
  color: var(--on-primary);
}

/* ── Editorial Components ── */

.gd-eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  line-height: 1.43;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: var(--stone);
}

.gd-display {
  margin: 0 0 var(--sp-sm);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -1.2px;
}

.gd-display-sm {
  font-size: var(--fs-display-sm);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -1px;
}

.gd-heading-md {
  font-size: var(--fs-heading-md);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.9px;
  margin: 0 0 var(--sp-sm);
}

.gd-heading-sm {
  font-size: var(--fs-heading-sm);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0;
  margin: 0 0 var(--sp-xs);
}

.gd-body {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--graphite);
}

.gd-meta {
  font-size: var(--fs-meta);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.26px;
  color: var(--slate);
}

/* ── Sections ── */

.gd-section {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: var(--sp-section) var(--gutter);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.gd-section-divider {
  height: 1px;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  border: none;
}

.gd-section-divider::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--hairline);
}

.gd-section-header {
  margin-bottom: var(--sp-xxl);
  max-width: 720px;
}

.gd-section-header .gd-eyebrow {
  margin-bottom: var(--sp-sm);
}

.gd-section-header .gd-body {
  margin-top: var(--sp-md);
}

/* ── Card Component ── */

.gd-card {
  width: 72px; height: 98px;
  border-radius: 8px;
  background: var(--card-face);
  border: 1px solid var(--card-edge);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, border-color .2s, opacity .2s;
  flex-shrink: 0;
}

.gd-card:hover,
.gd-card.is-active {
  transform: translateY(-4px);
  border-color: var(--ink);
}

.gd-card.is-dim { opacity: .4; }

.gd-card.red { color: var(--card-red); }
.gd-card.black { color: var(--ink); }

.gd-card-corner {
  position: absolute; left: 7px; top: 7px;
  display: flex; flex-direction: column; align-items: center;
  line-height: 1; gap: 1px;
  font-weight: 700;
}

.gd-card-corner span:first-child { font-size: 14px; font-family: var(--font-sans); }
.gd-card-corner span:last-child  { font-size: 16px; }

.gd-card-corner.bottom {
  left: auto; right: 7px; top: auto; bottom: 7px;
  transform: rotate(180deg);
}

.gd-card-center {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 32px;
}

.gd-card.level {
  border-color: var(--ink);
  border-width: 2px;
  border-style: double;
}

.gd-card.level .gd-card-badge {
  position: absolute; right: 4px; top: 4px;
  font-family: var(--font-mono); font-size: 7px;
  color: var(--ink);
  background: var(--hairline-soft);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 1px 4px;
  letter-spacing: 0.3px;
  line-height: 1.4;
  z-index: 2;
}

.gd-card.joker {
  border-color: var(--card-red);
  border-width: 2px;
}

.gd-joker-star {
  display: inline-block;
  background: var(--ink);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.gd-card .gd-joker-star { width: 28px; height: 28px; }
.gd-card.red .gd-joker-star { background: var(--card-red); }
.gd-card.black .gd-joker-star { background: var(--ink); }

.gd-card.joker .gd-card-corner span:last-child { font-size: 18px; }

.gd-card-mini {
  min-width: 36px; height: 50px;
  border-radius: 6px;
  background: var(--card-face);
  border: 1px solid var(--card-edge);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-sans); font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}

.gd-card-mini.red { color: var(--card-red); }

/* ── Section 01: Tile Explorer ── */

.gd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gd-pill {
  display: inline-flex; align-items: center; gap: var(--sp-xs);
  padding: 8px var(--sp-md);
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  background: var(--canvas);
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  color: var(--graphite);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.gd-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.gd-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-primary);
}

.gd-pill-count {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--stone);
  background: var(--hairline-soft);
  padding: 1px 6px;
  border-radius: 9999px;
}

.gd-pill.is-active .gd-pill-count {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
}

.gd-tile-grid-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-xxl);
  align-items: start;
  margin-top: var(--sp-lg);
}

.gd-tile-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.gd-suit-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-lg);
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--hairline);
}

.gd-suit-row:last-child { border-bottom: none; padding-bottom: 0; }

.gd-suit-title {
  font-size: var(--fs-heading-sm);
  font-weight: 500;
  margin-bottom: 2px;
}

.gd-suit-sub {
  font-size: 15px;
  color: var(--graphite);
  margin-bottom: 6px;
}

.gd-suit-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--slate);
  margin-bottom: 6px;
}

.gd-suit-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
}

.gd-suit-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.gd-info-card {
  position: sticky; top: calc(var(--nav-h) + 24px);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: var(--sp-lg);
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.gd-info-big {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-md);
}

.gd-info-zh {
  font-size: 32px;
  text-align: center;
  margin-bottom: 2px;
  font-weight: 500;
}

.gd-info-en {
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  color: var(--graphite);
  margin-bottom: var(--sp-md);
}

.gd-info-meta {
  font-size: 14px;
  line-height: 1.55;
  color: var(--graphite);
  border-top: 1px solid var(--hairline-soft);
  padding-top: var(--sp-md);
}

.gd-mini-facts {
  display: grid;
  gap: 8px;
  margin-top: var(--sp-md);
}

.gd-mini-facts div {
  border: 1px solid var(--hairline-soft);
  border-radius: 6px;
  padding: 10px var(--sp-sm);
  font-size: 13px;
  color: var(--graphite);
}

/* ── Section 02: Combo Browser ── */

.gd-combo-tabs {
  display: flex;
  gap: 6px;
  padding: 0 0 var(--sp-sm);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
  -webkit-overflow-scrolling: touch;
}

.gd-combo-tabs::-webkit-scrollbar { height: 4px; }
.gd-combo-tabs::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 4px; }

.gd-combo-tab {
  flex-shrink: 0;
  padding: 10px var(--sp-md);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--canvas);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.2;
}

.gd-combo-tab .tab-zh {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.gd-combo-tab .tab-pts {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--stone);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.gd-combo-tab:hover {
  border-color: var(--ink);
}

.gd-combo-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
}

.gd-combo-tab.is-active .tab-zh { color: var(--on-primary); }
.gd-combo-tab.is-active .tab-pts { color: rgba(255,255,255,0.6); }

.gd-combo-stage {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: var(--sp-lg);
  margin-top: var(--sp-md);
}

.gd-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-md);
}

.gd-stage-name {
  font-size: var(--fs-heading-sm);
  font-weight: 500;
  margin-bottom: 4px;
}

.gd-stage-zh {
  color: var(--graphite);
  font-weight: 400;
}

.gd-stage-desc {
  font-size: 15px;
  color: var(--slate);
  max-width: 620px;
}

.gd-stage-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
  white-space: nowrap;
}

.gd-hand-sets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-lg);
  justify-content: center;
  align-items: flex-end;
  padding: var(--sp-md) 0;
}

.gd-meld {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gd-meld-tiles {
  display: flex;
  gap: 4px;
}

.gd-meld-label {
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--slate);
  font-family: var(--font-sans);
}

.gd-stage-footer {
  margin-top: var(--sp-lg);
  padding-top: var(--sp-md);
  border-top: 1px dashed var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-lg);
  align-items: center;
  justify-content: center;
}

.gd-count-big {
  font-size: 32px;
  line-height: 1;
  font-weight: 500;
}

.gd-count-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--slate);
}

.gd-stage-arrow {
  font-size: 20px;
  color: var(--mute);
}

.gd-stage-formula {
  font-size: 16px;
  color: var(--graphite);
}

.gd-stage-formula strong {
  color: var(--ink);
}

/* Glance panel */
.gd-combo-glance {
  margin-top: var(--sp-lg);
  border-top: 1px solid var(--hairline);
  padding-top: var(--sp-md);
}

.gd-glance-title {
  font-size: var(--fs-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--slate);
  margin-bottom: var(--sp-sm);
}

.gd-glance-group {
  margin-bottom: var(--sp-sm);
}

.gd-glance-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--stone);
  margin-bottom: 4px;
  padding: 0 4px;
}

.gd-glance-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.gd-glance-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  color: var(--graphite);
  background: var(--canvas);
}

.gd-glance-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.gd-glance-chip.is-active {
  background: var(--hairline-soft);
  border-color: var(--ink);
  color: var(--ink);
}

.gd-glance-chip .gc-count {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--stone);
  background: var(--hairline-soft);
  padding: 0 5px;
  border-radius: 4px;
  line-height: 1.6;
}

/* ── Section 03: Flow ── */

.gd-flow-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-lg);
  align-items: start;
}

.gd-table {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: var(--sp-lg);
  min-height: 410px;
  position: relative;
  overflow: hidden;
}

/* Felt texture via pattern */
.gd-table::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, var(--hairline-soft) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, var(--hairline-soft) 0%, transparent 50%);
  pointer-events: none;
}

.gd-table-seat {
  position: absolute;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--graphite);
  text-transform: uppercase;
}

.gd-table-seat.north { top: var(--sp-md); left: 50%; transform: translateX(-50%); }
.gd-table-seat.south { bottom: var(--sp-md); left: 50%; transform: translateX(-50%); }
.gd-table-seat.west { left: var(--sp-sm); top: 50%; transform: translateY(-50%) rotate(-90deg); }
.gd-table-seat.east { right: var(--sp-sm); top: 50%; transform: translateY(-50%) rotate(90deg); }

.gd-flow-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  z-index: 2;
}

.gd-flow-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  background: var(--hairline-soft);
  border: 1px solid var(--hairline);
  padding: 6px var(--sp-sm);
  border-radius: 9999px;
}

.gd-flow-play {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 280px;
}

.gd-flow-caption {
  text-align: center;
  font-size: 15px;
  color: var(--graphite);
  max-width: 320px;
  line-height: 1.4;
}

.gd-team-track {
  position: absolute;
  inset: auto var(--sp-lg) var(--sp-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--slate);
  font-size: 12px;
  z-index: 2;
}

.gd-dot-row {
  display: flex;
  gap: 6px;
}

.gd-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--hairline);
  border: 1px solid var(--hairline-soft);
  transition: background .3s, border-color .3s;
}

.gd-dot.on {
  background: var(--ink);
  border-color: var(--ink);
}

.gd-flow-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.gd-flow-step {
  padding: var(--sp-md) var(--sp-lg);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.gd-flow-step:hover,
.gd-flow-step.is-active {
  background: var(--hairline-soft);
  border-color: var(--ink);
}

.gd-flow-step-top {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-md);
  align-items: baseline;
  margin-bottom: 4px;
}

.gd-flow-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
}

.gd-flow-step h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.gd-flow-step p {
  margin: 0;
  color: var(--graphite);
  font-size: 14px;
}

/* ── Section 04: Level / Rank ── */

.gd-ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-sm);
  position: relative;
}

.gd-rung {
  padding: var(--sp-lg);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  text-align: center;
}

.gd-rung strong {
  display: block;
  font-size: 28px;
  margin-bottom: 4px;
  font-weight: 500;
}

.gd-rung span {
  font-size: 13px;
  color: var(--slate);
}

.gd-split-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
}

.gd-split-two-full {
  grid-template-columns: 1fr;
}

.gd-card-box {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: var(--sp-lg);
}

.gd-card-box h3 {
  margin: 0 0 var(--sp-xs);
  font-size: var(--fs-heading-sm);
  font-weight: 500;
}

.gd-card-box p,
.gd-card-box li {
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.6;
}

.gd-card-box ul {
  margin: 0;
  padding-left: 20px;
}

.gd-card-box li { margin-bottom: 4px; }

/* ── Section 05: Strategy ── */

.gd-strat-diagram-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-lg);
}

.gd-strat-diagram {
  display: grid;
  grid-template-columns: 80px 60px 80px;
  grid-template-rows: 80px 60px 80px;
  width: 220px;
  height: 220px;
  position: relative;
}

.sd-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--graphite);
}

.sd-seat .sd-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--stone);
  font-weight: 400;
}

.sd-center {
  grid-column: 2; grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ink);
  font-weight: 500;
}

.sd-north { grid-column: 2; grid-row: 1; }
.sd-south { grid-column: 2; grid-row: 3; }
.sd-west { grid-column: 1; grid-row: 2; }
.sd-east { grid-column: 3; grid-row: 2; }

.sd-arrow-up, .sd-arrow-down, .sd-arrow-across {
  position: absolute;
  font-size: 16px;
  color: var(--mute);
  pointer-events: none;
}

.sd-arrow-up { left: 50%; top: 90px; transform: translateX(-50%); }
.sd-arrow-down { left: 50%; bottom: 90px; transform: translateX(-50%); }
.sd-arrow-across { right: 65px; top: 50%; transform: translateY(-50%); }

.gd-strat-labels {
  display: flex;
  justify-content: center;
  gap: var(--sp-lg);
  margin-top: var(--sp-xs);
  font-size: 12px;
  color: var(--slate);
}

.gd-strat-labels span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gd-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
}

.gd-strat-card {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: var(--sp-lg);
  border-top: 3px solid var(--ink);
}

.gd-strat-card .gd-koujue {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: var(--sp-sm);
  line-height: 1.3;
}

.gd-strat-card ul {
  margin: 0;
  padding-left: 18px;
}

.gd-strat-card li {
  font-size: 14px;
  color: var(--graphite);
  margin-bottom: 3px;
  line-height: 1.5;
}

.gd-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-sm);
}

.gd-chip {
  padding: 6px 10px;
  border-radius: 9999px;
  border: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--graphite);
}

.gd-token-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.gd-token {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  font-size: 11px;
  color: var(--graphite);
  cursor: default;
  transition: border-color .15s, color .15s;
}

.gd-token:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.gd-token .tk-num {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--stone);
  background: var(--hairline-soft);
  border-radius: 50%;
  width: 16px; height: 16px;
  display: grid; place-items: center;
}

/* ── Footer ── */

.gd-footer {
  background: var(--footer);
  color: var(--on-primary);
  padding: var(--sp-section) var(--gutter);
  margin-top: var(--sp-section);
}

.gd-footer-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ════════════════════════════════════════════════════════════
   Gamification System
   ════════════════════════════════════════════════════════════ */

/* ── Progress bar ── */

.gd-progress-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 3px);
  z-index: 98;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.gd-progress-row {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.gd-progress {
  flex: 1;
  display: flex;
  gap: 6px;
}

.gd-progress-step {
  flex: 1;
  text-align: center;
  cursor: default;
}

.gd-progress-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--hairline);
  margin-bottom: 4px;
  transition: background .3s;
}

.gd-progress-bar.done { background: var(--ink); }

.gd-progress-bar.current {
  background: linear-gradient(90deg, var(--ink) 50%, var(--hairline) 50%);
  background-size: 200% 100%;
  animation: gd-prog-pulse 1.6s ease-in-out infinite;
}

@keyframes gd-prog-pulse {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

.gd-progress-label {
  font-size: 10px;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.gd-progress-step.done { cursor: pointer; }
.gd-progress-step.done .gd-progress-label { color: var(--ink); font-weight: 600; }

/* ── Challenge wrapper ── */

.gd-challenge {
  margin-top: var(--sp-xxl);
  padding: var(--sp-lg);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  transition: border-color .3s;
}

.gd-challenge.passed {
  border-color: var(--ink);
  background: var(--hairline-soft);
}

/* ── Challenge collapsible ── */

.gd-challenge-body {
  display: none;
}

.gd-challenge.is-open .gd-challenge-body,
.gd-challenge.passed .gd-challenge-body {
  display: block;
}

.gd-challenge-header {
  cursor: pointer;
}

.gd-challenge-header:hover .gd-challenge-kicker {
  color: var(--ink);
}

.gd-challenge.passed .gd-challenge-header {
  cursor: default;
}

.gd-challenge-kicker {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--slate);
  font-weight: 600;
  margin-bottom: var(--sp-xs);
}

.gd-challenge-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
}

.gd-challenge-desc {
  font-size: 14px;
  color: var(--graphite);
  margin: 0 0 var(--sp-md);
}

/* ── Hand cards (sandbox challenges) ── */

.gd-hand {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: var(--sp-md) 0;
}

.gd-hand-card {
  width: 60px; height: 82px;
  border-radius: 8px;
  background: var(--card-face);
  border: 1px solid var(--card-edge);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
  flex-shrink: 0;
}

.gd-hand-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
}

.gd-hand-card.selected {
  border: 2px solid var(--ink);
  transform: translateY(-8px);
}

.gd-hand-card .gd-card-corner {
  position: absolute; left: 5px; top: 5px;
  display: flex; flex-direction: column; align-items: center;
  line-height: 1; gap: 1px;
  font-weight: 700;
}

.gd-hand-card .gd-card-corner span:first-child { font-size: 11px; font-family: var(--font-sans); }
.gd-hand-card .gd-card-corner span:last-child  { font-size: 12px; }

.gd-hand-card .gd-card-corner.bottom {
  left: auto; right: 5px; top: auto; bottom: 5px;
  transform: rotate(180deg);
}

.gd-hand-card .gd-card-center {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 24px;
}

.gd-hand-card.red .gd-card-corner { color: var(--card-red); }
.gd-hand-card.black .gd-card-corner { color: var(--ink); }
.gd-hand-card.red .gd-card-center { color: var(--card-red); }
.gd-hand-card.black .gd-card-center { color: var(--ink); }
.gd-hand-card .gd-joker-star { width: 18px; height: 18px; }
.gd-hand-card.red .gd-joker-star { background: var(--card-red); }
.gd-hand-card.black .gd-joker-star { background: var(--ink); }
.gd-hand-card.dim { opacity: .45; border-style: dashed; }
.gd-hand-card.chosen { border-color: var(--ink); opacity: 1 !important; }

/* ── Feedback ── */

.gd-feedback {
  display: none;
  margin-top: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  border: 1px solid var(--hairline);
}

.gd-feedback.show { display: block; }

.gd-feedback.correct {
  background: var(--hairline-soft);
  border-color: var(--ink);
}

.gd-feedback.wrong {
  background: var(--hairline-soft);
  border-color: var(--mute);
}

.gd-feedback .gd-score {
  display: inline-block;
  font-weight: 700;
  font-size: 18px;
}

.gd-feedback .gd-badge-unlock {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--graphite);
}

.gd-feedback .gd-show-answer {
  display: inline-block;
  margin-top: 8px;
  padding: 4px var(--sp-sm);
  background: var(--hairline-soft);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--hairline);
  font-family: var(--font-sans);
}

.gd-retry-hint { font-size: 12px; opacity: 0.7; }

/* ── Multiple choice ── */

.gd-choices {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin: var(--sp-md) 0;
}

.gd-choice {
  padding: var(--sp-sm) var(--sp-lg);
  border: 2px solid var(--hairline);
  border-radius: 8px;
  background: var(--card-face);
  font-size: 15px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.gd-choice:hover {
  border-color: var(--ink);
}

.gd-choice.selected {
  border-color: var(--ink);
  background: var(--hairline-soft);
}

.gd-choices .gd-choice.correct-answer {
  border-color: var(--ink);
  background: var(--hairline-soft);
}

.gd-choices .gd-choice.wrong-answer {
  border-color: var(--mute);
  opacity: 0.6;
}

.gd-choice-label { font-size: 10px; color: var(--stone); }
.gd-choice-title { font-size: 20px; font-weight: 700; }
.gd-choice-desc { font-size: 12px; color: var(--slate); }

.gd-rank-lg { font-size: 24px; }
.gd-suit-lg { font-size: 22px; }

/* ── Match pairs ── */

.gd-match-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px 14px;
  align-items: center;
  margin: var(--sp-md) 0;
}

.gd-match-item {
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--card-face);
  font-size: 14px;
  text-align: center;
}

.gd-match-item.selected {
  border-color: var(--ink);
  background: var(--hairline-soft);
}

.gd-match-item.matched {
  border-color: var(--stone);
  opacity: .7;
}

.gd-match-arrow {
  font-size: 18px;
  color: var(--mute);
}

.gd-match-select {
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--card-face);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-sans);
}

/* ── Badges ── */

.gd-badges {
  flex-shrink: 0;
}

.gd-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gd-badge {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px;
  transition: .2s;
  position: relative;
}

.gd-badge.locked {
  border: 2px dashed var(--hairline);
  opacity: .5;
  font-size: 12px;
}

.gd-badge.unlocked {
  background: var(--ink);
  border: 2px solid var(--ink);
}

.gd-badge.current {
  border: 2px solid var(--ink);
  background: var(--canvas);
  animation: gd-badge-breathe 1.8s ease-in-out infinite;
}

@keyframes gd-badge-breathe {
  0%, 100% { box-shadow: 0 0 0 3px var(--hairline); }
  50% { box-shadow: 0 0 0 6px rgba(0,0,0,0.08); }
}

.gd-completed-msg {
  font-size: 14px;
  color: var(--graphite);
  padding: 10px;
}

.gd-completed-msg-center { text-align: center; }

/* ── Celebration overlay ── */

.gd-celebration {
  display: none;
  position: fixed; inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
}

.gd-celebration.show { display: flex; }

.gd-celebration-inner {
  background: var(--canvas);
  border-radius: 16px;
  padding: var(--sp-xxl);
  text-align: center;
  max-width: 420px;
}

.gd-celebrate-icon { font-size: 48px; margin-bottom: var(--sp-sm); }
.gd-celebrate-title {
  font-size: var(--fs-heading-sm);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--sp-xs);
}

.gd-celebrate-desc {
  font-size: 14px;
  color: var(--graphite);
  margin: 0 0 var(--sp-lg);
}

.gd-celebrate-badges {
  display: flex;
  gap: var(--sp-sm);
  justify-content: center;
  margin-bottom: var(--sp-lg);
}

.gd-celebrate-badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--hairline-soft);
  border: 2px solid var(--hairline);
  display: grid; place-items: center;
  font-size: 18px;
}

/* ── Utility ── */

.gd-passed-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  padding: 4px 12px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  color: var(--graphite);
  margin-left: 10px;
}

/* ════════════════════════════════════════════════════════════
   Mobile: Top bar (replaces desktop nav)
   ════════════════════════════════════════════════════════════ */

.gd-topbar-mobile {
  display: none;
}

/* ── Responsive ── */

@media (max-width: 1080px) {
  .gd-hero-inner,
  .gd-tile-grid-wrap,
  .gd-flow-grid,
  .gd-split-two,
  .gd-grid-3 { grid-template-columns: 1fr; }

  .gd-suit-row { grid-template-columns: 1fr; gap: var(--sp-md); }
  .gd-ladder { grid-template-columns: repeat(3, 1fr); }
  .gd-info-card { position: static; min-height: unset; }
  .gd-token-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 900px) {
  :root {
    --gutter: 20px;
    --fs-display: 36px;
    --fs-display-sm: 32px;
    --fs-heading-md: 28px;
  }

  .gd-nav-links { display: none; }

  .gd-nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: none;
    border: 1px solid var(--hairline);
    border-radius: 6px;
    cursor: pointer;
    color: var(--ink);
    font-size: 18px;
  }

  .gd-nav-hamburger:hover {
    background: var(--hairline-soft);
  }

  /* Mobile detail menu */
  .gd-topbar-mobile {
    display: block;
    position: sticky;
    top: var(--nav-h);
    z-index: 99;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
  }

  .gd-topbar-mobile summary {
    list-style: none;
    padding: var(--sp-sm) var(--gutter);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
  }

  .gd-topbar-mobile summary::-webkit-details-marker { display: none; }

  .gd-topbar-mobile[open] .gd-mobile-nav {
    animation: gd-slide-down .2s ease-out;
  }

  .gd-mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 0 var(--gutter) var(--sp-sm);
    gap: 8px;
  }

  .gd-mobile-nav a {
    text-decoration: none;
    color: var(--graphite);
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--hairline-soft);
    transition: color .15s;
  }

  .gd-mobile-nav a:hover { color: var(--ink); }

  @keyframes gd-slide-down {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 400px; }
  }
}

@media (max-width: 640px) {
  :root {
    --sp-section: 40px;
    --fs-display: 28px;
    --fs-display-sm: 26px;
    --fs-heading-md: 24px;
  }

  .gd-section { padding: var(--sp-section) var(--gutter); }
  .gd-hero-inner { padding: var(--sp-xxl) var(--gutter) var(--sp-section); }

  .gd-card { width: 64px; height: 88px; }
  .gd-ladder { grid-template-columns: 1fr; }
  .gd-strat-diagram { transform: scale(.8); }
  .gd-token-grid { grid-template-columns: repeat(3, 1fr); }
  .gd-hero-rules { grid-template-columns: 1fr; }

  .gd-progress-row { padding: 8px var(--gutter); }
  .gd-badges { display: none; }
  .gd-progress-label { font-size: 9px; }
}

@media (max-width: 480px) {
  .gd-hero-inner { grid-template-columns: 1fr; }
  .gd-hero-panel { display: none; }
  .gd-strat-diagram-wrap { display: none; }
  .gd-match-grid { grid-template-columns: 1fr; justify-items: center; }
  .gd-match-arrow { transform: rotate(90deg); }
}

@media print {
  .gd-nav, .gd-topbar-mobile, .gd-progress, .gd-badges { display: none !important; }
  .gd-section { break-inside: avoid; opacity: 1 !important; }
  body { background: #fff !important; color: #000 !important; }
  .gd-card, .gd-card-mini { border-color: #ccc !important; }
}
