/* vs-AI edition: the landing sections under the title screen, and the Privacy and Terms pages.
   The game's own stylesheet (src/style.css) is untouched; everything here is prefixed tc-. */

:root {
  --tc-gold: #e6b04a;
  --tc-gold-hi: #f6e7c1;
  --tc-ink: #e9eef8;
  --tc-soft: #c9d4e6;
  --tc-mut: #a3b2c9;
  --tc-bg: #0b1322;
  --tc-line: rgba(230, 176, 74, 0.26);
  --tc-you: #3b6fd4;
  --tc-claude: #c04040;
  --tc-serif: 'Cinzel', 'Trajan Pro', Georgia, 'Times New Roman', serif;
  --tc-sans: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Home page: the document scrolls only while the title screen is showing -------------- */
/* The game locks the page (html, body { overflow: hidden }). While <html> has .tc-landing the
   title screen stays fixed and these sections scroll up over it. src/landing.js removes the
   class when a lobby or match opens. */
#landing,
.tc-float { display: none; }

html.tc-landing {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
}
html.tc-landing body { height: auto; overflow: visible; }

html.tc-landing #landing {
  display: block;
  position: relative;
  z-index: 1;
  margin-top: 100vh;
  color: var(--tc-ink);
  font: 400 17px/1.65 var(--tc-sans);
  background:
    radial-gradient(1200px 520px at 50% 0, rgba(46, 104, 160, 0.22), transparent 70%),
    linear-gradient(180deg, #0c1a2e 0, #0b1322 520px, #090e19 100%);
  user-select: text;
  -webkit-user-select: text;
  cursor: auto;
}
#landing *,
#landing *::before,
#landing *::after { box-sizing: border-box; }
#landing a { cursor: pointer; }
#landing a:not(.tc-btn):not(.tc-cue) { color: var(--tc-gold-hi); }

/* The pill and wave that peek over the bottom of the title screen. */
.tc-cue {
  position: absolute;
  top: -88px;
  left: 50%;
  z-index: 2;
  padding: 10px 18px;
  border-radius: 999px;
  font: 600 13.5px/1 var(--tc-sans);
  letter-spacing: 0.05em;
  color: var(--tc-gold-hi);
  text-decoration: none;
  white-space: nowrap;
  background: rgba(11, 19, 34, 0.6);
  border: 1px solid var(--tc-line);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transform: translateX(-50%);
  animation: tc-bob 2.6s ease-in-out infinite;
}
.tc-cue:hover { background: rgba(230, 176, 74, 0.18); }
@keyframes tc-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
.tc-wave {
  position: absolute;
  left: 0;
  top: -43px;
  display: block;
  width: 100%;
  height: 44px;
  pointer-events: none;
}
.tc-wave__back { fill: #14365a; opacity: 0.75; }
.tc-wave__front { fill: #0c1a2e; }

/* ---- Sections ---------------------------------------------------------------------------- */
.tc-sec {
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 24px 8px;
}
.tc-sec--narrow { max-width: 860px; }

#landing h2 {
  margin: 0 0 16px;
  font: 900 clamp(28px, 4.4vw, 46px)/1.08 var(--tc-serif);
  letter-spacing: 0.02em;
  color: var(--tc-gold-hi);
  text-wrap: balance;
}
#landing h3 {
  margin: 0 0 6px;
  font: 700 18px/1.3 var(--tc-sans);
  color: #fff;
}
#landing p { margin: 0; }
.tc-kicker {
  margin: 0 0 14px !important;
  font: 600 12.5px/1.4 var(--tc-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tc-gold);
}
.tc-lead {
  max-width: 64ch;
  margin: 0 0 28px !important;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--tc-soft);
}
.tc-fine { font-size: 12.5px; color: #8492aa; }

.tc-versus {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 44px;
  font: 700 14px/1 var(--tc-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tc-side { padding: 11px 18px; border-radius: 10px; color: #fff; }
.tc-side--you { background: linear-gradient(180deg, #5b9bf0, var(--tc-you)); box-shadow: 0 6px 22px rgba(59, 111, 212, 0.4); }
.tc-side--claude { background: linear-gradient(180deg, #ee7566, var(--tc-claude)); box-shadow: 0 6px 22px rgba(192, 64, 64, 0.4); }
.tc-vs { font: 900 18px/1 var(--tc-serif); color: var(--tc-gold); text-transform: none; }

/* How it works: four cards, each with a gold coin, joined by a dotted sea route. */
.tc-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}
.tc-steps::before {
  content: '';
  position: absolute;
  left: 44px;
  right: 44px;
  top: 0;
  border-top: 2px dashed rgba(230, 176, 74, 0.38);
}
.tc-step {
  position: relative;
  padding: 40px 20px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.tc-step__n {
  position: absolute;
  top: -23px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font: 900 20px/1 var(--tc-serif);
  color: #1a1306;
  background: radial-gradient(circle at 32% 26%, #fff0c4, var(--tc-gold) 58%, #b07f22);
  box-shadow: 0 5px 16px rgba(230, 176, 74, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}
.tc-step p { color: var(--tc-mut); font-size: 15.5px; }

/* Buttons */
.tc-btn,
.tc-float {
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 14px;
  font: 700 17px/1 var(--tc-sans);
  color: #1a1306;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(180deg, #f6d98a, var(--tc-gold));
  box-shadow: 0 10px 30px rgba(230, 176, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.tc-btn { display: inline-flex; }
.tc-btn:hover,
.tc-float:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 36px rgba(230, 176, 74, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.tc-btn--lg { min-height: 62px; padding: 0 40px; font-size: 19px; }
.tc-btn--sm { min-height: 38px; padding: 0 16px; border-radius: 10px; font-size: 14.5px; box-shadow: none; }
.tc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.tc-cta__note { color: var(--tc-mut); font-size: 14.5px; }

.tc-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 5;
  min-height: 48px;
  padding: 0 22px;
  font-size: 15.5px;
  cursor: pointer;
}
html.tc-landing.tc-scrolled .tc-float { display: inline-flex; animation: tc-pop 0.28s ease-out; }
@keyframes tc-pop {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Screenshots: one large picture and a grid of smaller ones. */
.tc-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
}
.tc-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--tc-line);
  background: #0a0f1a;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.tc-shot--main { grid-row: span 2; }
.tc-shot a { display: block; height: 100%; cursor: zoom-in !important; }
.tc-shot img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tc-shot:hover img { transform: scale(1.045); }
.tc-shot figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 14px 11px;
  font-size: 13.5px;
  line-height: 1.35;
  color: #f2f5fb;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 14, 0.88));
  pointer-events: none;
}
.tc-shot--main figcaption { padding: 44px 18px 15px; font-size: 15.5px; }

.tc-zoom {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 7, 12, 0.92);
  cursor: zoom-out;
  animation: tc-fade 0.18s ease-out;
}
.tc-zoom img {
  display: block;
  max-width: min(100%, 1600px);
  max-height: calc(100vh - 120px);
  border-radius: 12px;
  border: 1px solid var(--tc-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.tc-zoom p { margin: 14px 0 0; text-align: center; color: var(--tc-ink); font: 400 15px/1.4 var(--tc-sans); }
@keyframes tc-fade { from { opacity: 0; } to { opacity: 1; } }

/* How to play */
.tc-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 26px;
}
.tc-basics {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tc;
}
.tc-basics li {
  position: relative;
  padding: 16px 18px 16px 64px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  counter-increment: tc;
}
.tc-basics li::before {
  content: counter(tc);
  position: absolute;
  left: 16px;
  top: 15px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font: 900 16px/1 var(--tc-serif);
  color: var(--tc-gold-hi);
  background: rgba(230, 176, 74, 0.16);
  border: 1px solid var(--tc-line);
}
.tc-basics p { color: var(--tc-mut); font-size: 15.5px; }

.tc-card {
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #152240, #101a30);
  border: 1px solid var(--tc-line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
#landing .tc-card > h3 { margin-bottom: 12px; font: 900 19px/1.2 var(--tc-serif); letter-spacing: 0.04em; color: var(--tc-gold-hi); }
.tc-keys { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.tc-keys th {
  width: 42%;
  padding: 8px 14px 8px 0;
  text-align: left;
  vertical-align: top;
  font-weight: 600;
  color: var(--tc-gold-hi);
}
.tc-keys td { padding: 8px 0; color: var(--tc-soft); }
.tc-keys tr + tr th,
.tc-keys tr + tr td { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.tc-card .tc-fine { margin-top: 12px !important; }

.tc-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 44px;
}
.tc-tri { display: block; width: min(100%, 340px); margin: 4px auto 14px; font: 600 15px var(--tc-sans); }
.tc-tri__node rect { fill: #1b2a4a; stroke: var(--tc-gold); stroke-width: 1.5; }
.tc-tri__node text { fill: #fff; font-weight: 700; }
.tc-tri__edge { fill: none; stroke: var(--tc-gold); stroke-width: 2.5; }
.tc-tri marker path { fill: var(--tc-gold); }
.tc-tri__pct { fill: var(--tc-gold-hi); font-size: 14px; font-weight: 700; }
.tc-list { margin: 0; padding-left: 20px; color: var(--tc-soft); font-size: 15.5px; }
.tc-list li { margin: 7px 0; }
.tc-list b { color: #fff; }

#landing h3.tc-sub { margin: 0 0 18px; font: 900 22px/1.2 var(--tc-serif); letter-spacing: 0.03em; color: var(--tc-gold-hi); }
.tc-forces thead th { padding-top: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tc-gold); }
.tc-forces th,
.tc-forces td { width: auto; padding-right: 12px; vertical-align: top; }
.tc-forces td:last-child { padding-right: 0; }
.tc-forces tbody th { color: #fff; }
.tc-forces small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--tc-mut); }
.tc-habits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 52px;
  padding: 0;
  list-style: none;
}
.tc-habits li {
  padding: 18px 20px;
  border-radius: 14px;
  border-left: 3px solid var(--tc-gold);
  background: rgba(255, 255, 255, 0.04);
  color: var(--tc-mut);
  font-size: 15.5px;
}
.tc-habits b { display: block; margin-bottom: 4px; color: #fff; font-size: 16.5px; }
.tc-ages {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tc-age {
  position: relative;
  padding: 52px 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
  line-height: 1.45;
}
.tc-age__n {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font: 900 13px/1 var(--tc-serif);
  color: #1a1306;
  background: radial-gradient(circle at 32% 26%, #fff0c4, var(--tc-gold) 60%, #b07f22);
}
.tc-age h4 { margin: 0 0 8px; font: 700 15.5px/1.2 var(--tc-sans); color: #fff; }
.tc-age p { margin: 6px 0 0 !important; color: var(--tc-mut); }
.tc-age b {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tc-gold);
}

/* Questions */
.tc-faq { display: grid; gap: 10px; }
.tc-q {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, background 0.2s;
}
.tc-q[open] { border-color: var(--tc-line); background: rgba(230, 176, 74, 0.06); }
.tc-q summary {
  position: relative;
  padding: 17px 54px 17px 20px;
  font: 600 17px/1.35 var(--tc-sans);
  color: #fff;
  list-style: none;
  cursor: pointer;
}
.tc-q summary::-webkit-details-marker { display: none; }
.tc-q summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  font: 400 26px/1 var(--tc-sans);
  color: var(--tc-gold);
  transform: translateY(-50%);
  transition: transform 0.2s;
}
.tc-q[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.tc-q p { padding: 0 20px 18px; color: var(--tc-soft); }

.tc-final { padding-top: 104px; padding-bottom: 104px; text-align: center; }
.tc-final .tc-lead { margin-left: auto !important; margin-right: auto !important; }
.tc-final .tc-cta { justify-content: center; }

.tc-foot {
  padding: 30px 24px 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--tc-mut);
  font: 400 14px/1.6 var(--tc-sans);
}
.tc-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; margin-bottom: 10px; }
.tc-foot a { display: inline-block; padding: 7px 2px; color: #d7deea !important; text-decoration: none; }
.tc-foot a:hover { color: var(--tc-gold-hi) !important; text-decoration: underline; }
.tc-foot p { margin: 4px 0 !important; }

/* Sections ease in as they scroll into view (only when JavaScript is running). */
html.tc-js .tc-rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.tc-js .tc-rv.is-in { opacity: 1; transform: none; }

/* ---- Leaderboard ------------------------------------------------------------------------ */
/* The list is filled by src/landing.js from /api/vsai/leaderboard. */
.tc-board {
  padding: 10px 22px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #152240, #101a30);
  border: 1px solid var(--tc-line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.tc-board__score {
  margin: 8px 0 2px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14.5px;
  color: var(--tc-mut);
}
.tc-board__you { font-weight: 600; color: #9dbcff; }
.tc-board__claude { font-weight: 600; color: #ff9c92; }
.tc-ranks { margin: 0; padding: 0; list-style: none; }
.tc-rank {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 86px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 0;
  font-size: 17px;
}
.tc-rank + .tc-rank { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.tc-rank__n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font: 700 15px/1 var(--tc-sans);
  color: var(--tc-soft);
  background: rgba(255, 255, 255, 0.07);
}
.tc-rank--1 .tc-rank__n { color: #2a1c00; background: linear-gradient(180deg, #f6d77a, #d9a23a); }
.tc-rank--2 .tc-rank__n { color: #1b2230; background: linear-gradient(180deg, #e9edf4, #a9b4c6); }
.tc-rank--3 .tc-rank__n { color: #2a1505; background: linear-gradient(180deg, #e6ad7e, #b06a3a); }
.tc-rank__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #fff; }
.tc-rank--1 .tc-rank__name { color: var(--tc-gold-hi); }
.tc-rank__wins { font-size: 13.5px; white-space: nowrap; color: var(--tc-mut); }
.tc-rank__time { text-align: right; font: 600 18px/1 var(--tc-sans); font-variant-numeric: tabular-nums; color: var(--tc-gold-hi); }
.tc-rank.tc-rank--open .tc-rank__n { color: #94a2ba; background: transparent; border: 1px dashed rgba(255, 255, 255, 0.22); }
.tc-rank.tc-rank--open .tc-rank__name { font-weight: 400; font-style: italic; color: #94a2ba; }
.tc-rank.tc-rank--open .tc-rank__time { font-weight: 400; color: #94a2ba; }
.tc-rank--note { display: block; min-height: 0; padding: 16px 0; color: var(--tc-soft); }
#leaderboard .tc-fine { max-width: 72ch; margin: 14px 0 24px !important; }

/* The top three on the title screen. src/landing.js adds this card to the game's hero column. */
.tc-hboard {
  display: block;
  align-self: flex-start;
  box-sizing: border-box;
  width: min(100%, 400px);
  padding: 12px 16px 10px;
  border-radius: 14px;
  border: 1px solid var(--tc-line);
  background: rgba(9, 15, 28, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--tc-ink);
  font: 400 14.5px/1.35 var(--tc-sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.tc-hboard[hidden] { display: none; }
.tc-hboard:hover,
.tc-hboard:focus-visible { border-color: rgba(230, 176, 74, 0.62); background: rgba(9, 15, 28, 0.8); }
.tc-hboard__title { font: 900 15px/1.2 var(--tc-serif); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tc-gold-hi); }
.tc-hboard__sub { margin-left: 8px; font-size: 12.5px; color: var(--tc-mut); }
.tc-hboard__list { margin: 8px 0 6px; padding: 0; list-style: none; }
.tc-hboard__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 3px 0; }
.tc-hboard__list b { font-weight: 700; color: var(--tc-gold); }
.tc-hboard__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.tc-hboard__time { font-variant-numeric: tabular-nums; color: var(--tc-gold-hi); }
.tc-hboard__open .tc-hboard__name,
.tc-hboard__open .tc-hboard__time { font-style: italic; color: #94a2ba; }
.tc-hboard__list .tc-hboard__note { display: block; color: var(--tc-soft); }
.tc-hboard__more { font-size: 12.5px; color: var(--tc-gold); }
/* The game stacks its title screen below 900px, and a short window has no room: the full
   board is one scroll away there. */
@media (max-width: 900px), (max-height: 540px) {
  .tc-hboard { display: none; }
}
@media (max-width: 560px) {
  .tc-board { padding: 6px 14px 8px; }
  .tc-rank { grid-template-columns: 34px minmax(0, 1fr) 70px; gap: 10px; font-size: 16px; }
  .tc-rank__n { width: 30px; height: 30px; font-size: 14px; }
  .tc-rank__wins { display: none; }
  .tc-rank__time { font-size: 16.5px; }
}

/* The no-JavaScript card in the title screen's place. */
.play-overlay__controls a { color: var(--tc-gold-hi); }

@media (max-width: 980px) {
  .tc-steps { grid-template-columns: 1fr 1fr; row-gap: 38px; }
  .tc-steps::before { display: none; }
  .tc-guide,
  .tc-duo { grid-template-columns: 1fr; }
  .tc-ages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tc-habits { grid-template-columns: 1fr; }
  .tc-gallery { grid-template-columns: 1fr 1fr; }
  .tc-shot--main { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .tc-sec { padding: 68px 18px 4px; }
  .tc-steps { grid-template-columns: 1fr; }
  .tc-ages { grid-template-columns: 1fr 1fr; }
  .tc-gallery { grid-template-columns: 1fr; }
  .tc-shot--main { grid-column: auto; }
  .tc-float { left: 16px; right: 16px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html.tc-landing { scroll-behavior: auto; }
  html.tc-js .tc-rv { opacity: 1; transform: none; transition: none; }
  .tc-cue,
  .tc-zoom,
  html.tc-landing.tc-scrolled .tc-float { animation: none; }
  .tc-shot img { transition: none; }
}

/* ---- Privacy Policy and Terms of Service -------------------------------------------------- */
body.tc-docpage {
  margin: 0;
  color: var(--tc-ink);
  font: 400 17px/1.7 var(--tc-sans);
  background: var(--tc-bg) linear-gradient(180deg, #0c1a2e 0, var(--tc-bg) 420px) no-repeat;
  -webkit-font-smoothing: antialiased;
}
.tc-dochead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 24px;
}
.tc-brand {
  padding: 6px 0;
  font: 900 22px/1 var(--tc-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tc-gold-hi);
  text-decoration: none;
}
.tc-dochead nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 20px; }
.tc-dochead nav a:not(.tc-btn) { display: inline-block; padding: 7px 2px; color: #d7deea; font-size: 15px; text-decoration: none; }
.tc-dochead nav a:not(.tc-btn):hover { color: var(--tc-gold-hi); text-decoration: underline; }
.tc-doc { max-width: 760px; margin: 0 auto; padding: 34px 24px 84px; }
.tc-doc h1 {
  margin: 0 0 8px;
  font: 900 clamp(32px, 5vw, 46px)/1.1 var(--tc-serif);
  letter-spacing: 0.02em;
  color: var(--tc-gold-hi);
}
.tc-updated { margin: 0 0 34px; font-size: 15px; color: var(--tc-mut); }
.tc-doc h2 { margin: 46px 0 12px; font: 700 23px/1.3 var(--tc-sans); color: #fff; scroll-margin-top: 20px; }
.tc-doc h3 { margin: 28px 0 8px; font: 600 18px/1.35 var(--tc-sans); color: var(--tc-gold-hi); }
.tc-doc p,
.tc-doc li { color: #cfd8e8; }
.tc-doc p { margin: 0 0 14px; }
.tc-doc ul { margin: 0 0 14px; padding-left: 22px; }
.tc-doc li { margin: 8px 0; }
.tc-doc a { color: var(--tc-gold-hi); }
.tc-doc address {
  display: inline-block;
  padding: 16px 20px;
  border-left: 3px solid var(--tc-gold);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.04);
  font-style: normal;
  color: #cfd8e8;
}
@media print {
  body.tc-docpage { background: #fff; color: #000; }
  .tc-doc h1, .tc-doc h2, .tc-doc h3, .tc-doc p, .tc-doc li, .tc-doc address, .tc-doc a { color: #000; }
  .tc-dochead nav, .tc-foot nav { display: none; }
}
