/* 罡曜 GambitAura shared theme: "Ling Mo" (靈墨, spirit ink).
   Ink ground with slow mist and fine grain, two soft jade tones for the sides
   (mint = celadon jade, coral = ember agate), champagne as the one accent.
   Restraint is the point: hairlines over boxes, light over neon. */
:root {
  color-scheme: dark;
  --void: #08090c;
  --void-2: #0e1015;
  --glass: rgba(16, 18, 24, .58);
  --glass-hi: rgba(22, 25, 32, .62);
  --edge: rgba(236, 230, 218, .09);
  --edge-hi: rgba(236, 230, 218, .2);
  --ink: #ece6da;
  --body: #bdb7ac;
  --muted: #8e897f;
  --mint: #8fd3bf;
  --mint-deep: #3c8a75;
  --mint-glow: rgba(143, 211, 191, .3);
  --coral: #ec9a82;
  --coral-deep: #a9503b;
  --coral-glow: rgba(236, 154, 130, .3);
  --gold: #d9c38f;
  --gold-glow: rgba(217, 195, 143, .34);
  --focus: #d9c38f;
  --display: 'Cormorant Garamond', 'Noto Serif TC', Georgia, serif;
  --sans: 'Instrument Sans', 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', system-ui, sans-serif;
  --cjk: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--void);
  line-height: 1.6;
  min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) 18px 36px;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
/* Mist: three soft lights that drift very slowly. */
body::before {
  content: '';
  position: fixed; inset: -25vmax;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(34vmax 26vmax at 22% 82%, rgba(143, 211, 191, .085), transparent 70%),
    radial-gradient(34vmax 26vmax at 80% 14%, rgba(236, 154, 130, .075), transparent 70%),
    radial-gradient(50vmax 34vmax at 52% 42%, rgba(217, 195, 143, .05), transparent 72%),
    var(--void);
  animation: mist 70s ease-in-out infinite alternate;
}
@keyframes mist { to { transform: translate3d(-2.5%, 1.8%, 0) scale(1.04); } }
/* Grain: a fine film texture so the dark never looks flat or digital. */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
::selection { background: rgba(217, 195, 143, .3); }

/* Header */
.ga-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 22px; }
.ga-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.ga-brand svg { width: 34px; height: 34px; flex: none; }
/* Lockup: 罡曜 over GAMBITAURA (Chinese name chosen by the owner, 2026-10-28). */
.ga-lock { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; line-height: 1; }
.ga-zh {
  font-family: var(--cjk); font-weight: 700; font-size: 1.32rem; letter-spacing: .2em; white-space: nowrap;
  color: var(--ink);
  text-shadow: 0 0 18px rgba(217, 195, 143, .32);
}
.ga-word {
  font-family: var(--display); font-weight: 600; font-size: .7rem; letter-spacing: .42em;
  text-transform: uppercase; white-space: nowrap; color: var(--muted);
}
.ga-word b { font-weight: 600; color: var(--gold); }
.ga-crumb { font-family: var(--display); font-style: italic; font-size: .95rem; letter-spacing: .04em; color: var(--muted); }
.ga-langs { display: flex; align-items: center; gap: 2px; }
.ga-chip {
  border: 0; background: transparent; padding: 4px 8px; white-space: nowrap;
  font-size: .8rem; font-weight: 500; letter-spacing: .08em; color: var(--muted); cursor: pointer;
  border-bottom: 1px solid transparent; transition: color .3s, border-color .3s;
}
.ga-chip:hover { color: var(--ink); }
.ga-chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold); }
@media (max-width: 520px) {
  .ga-crumb { display: none; }
  .ga-zh { font-size: 1.16rem; }
  .ga-word { font-size: .6rem; letter-spacing: .34em; }
  .ga-brand svg { width: 30px; height: 30px; }
}

/* Surfaces */
.ga-card {
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 40px 90px -40px rgba(0, 0, 0, .7);
}
.ga-label {
  font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted);
}
.ga-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--edge-hi); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 10px 20px; font-weight: 500; font-size: .9rem; letter-spacing: .06em;
  cursor: pointer; text-decoration: none; transition: background .3s, border-color .3s, box-shadow .3s;
}
.ga-btn:hover { background: rgba(236, 230, 218, .05); border-color: rgba(236, 230, 218, .36); }
.ga-btn.primary {
  background: var(--ink); color: #0b0c10; border-color: transparent; font-weight: 600;
  box-shadow: 0 12px 34px -14px rgba(217, 195, 143, .55);
}
.ga-btn.primary:hover { background: #f6f1e6; box-shadow: 0 14px 40px -12px rgba(217, 195, 143, .7); }
.ga-btn:disabled { opacity: .4; cursor: default; }
/* Segmented choices read as quiet words; the chosen one gets a champagne underline. */
.ga-seg { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; }
.ga-seg button {
  border: 0; background: transparent; padding: 4px 0; white-space: nowrap;
  font-size: .88rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); cursor: pointer;
  border-bottom: 1px solid transparent; transition: color .3s, border-color .3s;
}
.ga-seg button:hover { color: var(--ink); }
.ga-seg button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.ga-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--edge); font-size: .8rem; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.ga-foot a { text-decoration: none; border-bottom: 1px solid var(--edge-hi); }
.ga-foot a:hover { color: var(--ink); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
