:root {
  --tc-ink: #060816;
  --tc-deep: #0a1230;
  --tc-blue: #164ed8;
  --tc-cyan: #42dcff;
  --tc-gold: #f3c95c;
  --tc-silver: #f4f8ff;
  --tc-violet: #7b2dff;
  --tc-magenta: #f02bbd;
  --tc-coral: #ff6e73;
}

.thumb-command-page {
  color: var(--tc-silver);
  background: var(--tc-ink);
}

.thumb-command-page .site-header,
.thumb-command-page .game-subnav {
  background: rgb(5 9 25 / 92%);
  border-color: rgb(66 220 255 / 18%);
  backdrop-filter: blur(18px);
}

.thumb-command-page .game-subnav a,
.thumb-command-page .game-subnav strong { color: #fff; }
.thumb-command-page .game-subnav a[aria-current="page"] { color: var(--tc-cyan); }

.tc-hero {
  position: relative;
  min-height: min(900px, calc(100svh - 110px));
  display: grid;
  align-items: center;
  overflow: clip;
  isolation: isolate;
  background: #050919;
}

.tc-hero-art,
.tc-hero-art img,
.tc-hero-scrim,
.tc-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tc-hero-art img {
  object-fit: cover;
  object-position: 60% center;
}

.tc-hero-scrim {
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(3 7 21 / 95%) 0%, rgb(3 7 21 / 82%) 34%, rgb(3 7 21 / 20%) 66%, rgb(3 7 21 / 12%) 100%),
    linear-gradient(0deg, rgb(4 7 20 / 76%) 0%, transparent 42%);
}

.tc-stars {
  z-index: 2;
  opacity: .35;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 24%, #fff 0 1px, transparent 1.6px),
    radial-gradient(circle at 28% 62%, #7eeaff 0 1px, transparent 1.7px),
    radial-gradient(circle at 72% 20%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 86% 58%, #c6d9ff 0 1px, transparent 1.7px);
  background-size: 170px 160px, 260px 250px, 220px 210px, 310px 300px;
  animation: tc-star-drift 36s linear infinite;
}

.tc-hero-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 38%);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  padding-block: clamp(5rem, 11vw, 10rem);
}

.tc-hero-copy { max-width: 760px; }
.tc-eyebrow,
.tc-kicker {
  margin: 0 0 1rem;
  color: var(--tc-cyan);
  font: 800 clamp(.72rem, 1vw, .88rem)/1.2 system-ui, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.tc-hero h1 {
  margin: 0;
  color: #fff;
  font: 950 clamp(3.6rem, 9.4vw, 8.6rem)/.8 system-ui, sans-serif;
  letter-spacing: -.075em;
  text-transform: uppercase;
  text-wrap: balance;
  filter: drop-shadow(0 .1em .25em #02030a);
}

.tc-hero h1 span {
  display: block;
  color: var(--tc-gold);
  background: linear-gradient(180deg, #fff5b4 0%, #f6c953 46%, #b36a08 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tc-tagline {
  margin: clamp(1.1rem, 2vw, 1.8rem) 0 .9rem;
  color: #fff;
  font: 900 clamp(1.25rem, 2.4vw, 2.1rem)/1 system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tc-lede,
.tc-lead {
  color: #eef5ff;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.62;
}

.tc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.75rem;
}

.tc-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.25rem;
  border: 1px solid var(--tc-cyan);
  border-radius: .45rem;
  color: #041225;
  background: var(--tc-cyan);
  box-shadow: 0 0 0 1px rgb(66 220 255 / 18%), 0 .6rem 2rem rgb(30 161 255 / 25%);
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.tc-button:hover { transform: translateY(-2px); box-shadow: 0 0 28px rgb(66 220 255 / 40%); }
.tc-button:active { transform: translateY(1px); }
.tc-button.ghost { color: #fff; background: rgb(4 14 35 / 72%); }
.tc-button:focus-visible,
.tc-gallery-grid a:focus-visible,
.tc-news-callout a:focus-visible {
  outline: 3px solid var(--tc-gold);
  outline-offset: 4px;
}

.tc-status {
  margin: 1rem 0 0;
  color: #b9c9e8;
  font-size: .87rem;
}

.tc-app-icon {
  width: min(100%, 520px);
  height: auto;
  justify-self: end;
  border-radius: 24%;
  filter: drop-shadow(0 1.4rem 3.5rem rgb(44 11 114 / 55%));
  transform: rotate(2deg);
}

.tc-section {
  position: relative;
  padding-block: clamp(4.5rem, 8vw, 8rem);
  overflow: clip;
}

.tc-section:nth-of-type(even) { background: var(--tc-deep); }
.tc-section h2,
.tc-news-callout h2,
.tc-final h2 {
  margin: 0;
  color: #fff;
  font: 950 clamp(2.35rem, 5.8vw, 5.7rem)/.92 system-ui, sans-serif;
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-wrap: balance;
}

.tc-copy > p:not(.tc-kicker),
.tc-section-head > p:not(.tc-kicker) {
  color: #c8d6ed;
  font-size: 1.05rem;
  line-height: 1.75;
}

.tc-section-head { max-width: 910px; margin-bottom: clamp(2rem, 5vw, 4rem); }
.tc-section-head > p:last-child { max-width: 720px; }
.tc-split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(440px, 1.3fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: center;
}
.tc-split.reverse { grid-template-columns: minmax(440px, 1.2fr) minmax(0, .8fr); }

.tc-frame,
.tc-wide-art,
.tc-defense-layout figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(97 223 255 / 28%);
  border-radius: 1rem;
  background: #050916;
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 35%);
}
.tc-frame picture,
.tc-frame img,
.tc-wide-art picture,
.tc-wide-art img,
.tc-defense-layout figure picture,
.tc-defense-layout figure img { display: block; width: 100%; height: auto; }
.tc-frame figcaption,
.tc-wide-art figcaption {
  padding: .8rem 1rem;
  color: #bfd0ec;
  background: #09132b;
  font-size: .88rem;
}

.tc-mission::before,
.tc-blueguard::after,
.tc-final::before {
  content: "";
  position: absolute;
  width: 38rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(37 190 255 / 18%), transparent 66%);
  pointer-events: none;
}
.tc-mission::before { inset: -18rem auto auto -15rem; }
.tc-blueguard::after { inset: auto -17rem -20rem auto; }

.tc-mission-stats { margin: 2rem 0 0; border-top: 1px solid rgb(139 178 231 / 25%); }
.tc-mission-stats div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgb(139 178 231 / 18%); }
.tc-mission-stats dt { color: var(--tc-cyan); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.tc-mission-stats dd { margin: 0; color: #fff; }

.tc-gameplay {
  background:
    linear-gradient(rgb(4 7 20 / 90%), rgb(4 7 20 / 90%)),
    radial-gradient(circle at 70% 30%, #4d146f, transparent 52%);
}
.tc-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tc-feature-grid article {
  min-height: 250px;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  border: 1px solid rgb(86 157 238 / 24%);
  border-radius: .85rem;
  background: linear-gradient(145deg, rgb(17 35 82 / 78%), rgb(8 15 39 / 88%));
}
.tc-feature-grid b { color: var(--tc-gold); font-size: .8rem; letter-spacing: .18em; }
.tc-feature-grid h3 { margin: 3rem 0 .7rem; color: #fff; font-size: 1.45rem; }
.tc-feature-grid p { margin: 0; color: #afc0df; line-height: 1.65; }

.tc-wide-art { margin-bottom: 1.25rem; }
.tc-upgrade-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.tc-upgrade-line li { padding: 1rem; border-top: 2px solid var(--tc-blue); background: rgb(8 20 52 / 80%); }
.tc-upgrade-line span { display: block; color: var(--tc-cyan); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.tc-upgrade-line strong { display: block; margin-top: .3rem; color: #fff; font-size: 1.15rem; }

.tc-aliens { background: radial-gradient(circle at 30% 44%, #43124f 0%, #160c2f 33%, #070914 74%); }
.tc-enemy-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin: 1.6rem 0; padding: 0; list-style: none; }
.tc-enemy-list li { padding: .75rem .9rem; border: 1px solid rgb(240 43 189 / 35%); color: #fff; background: rgb(93 17 105 / 28%); font-weight: 850; }

.tc-cities { background: #070c1c; }
.tc-city-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.tc-city-card { overflow: hidden; border: 1px solid rgb(84 164 242 / 22%); border-radius: 1rem; background: #0b1530; }
.tc-city-card.flagship { grid-column: 1 / -1; display: grid; grid-template-columns: 1.45fr .75fr; }
.tc-city-card picture,
.tc-city-card img { display: block; width: 100%; height: 100%; min-height: 290px; object-fit: cover; }
.tc-city-card > div { padding: clamp(1.2rem, 3vw, 2.2rem); }
.tc-city-card span { color: var(--tc-cyan); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.tc-city-card h3 { margin: .45rem 0 .65rem; color: #fff; font-size: clamp(1.55rem, 3vw, 2.5rem); }
.tc-city-card p { margin: 0; color: #b8c9e4; line-height: 1.65; }

.tc-defense-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 1.2rem; align-items: stretch; }
.tc-defense-layout figure img { height: 100%; object-fit: cover; }
.tc-defense-layout ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin: 0; padding: 0; list-style: none; }
.tc-defense-layout li { min-height: 100px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem; border: 1px solid rgb(243 201 92 / 25%); background: linear-gradient(145deg, #112653, #091329); color: #fff; font-weight: 850; }
.tc-defense-layout li span { margin-bottom: auto; color: var(--tc-gold); font-size: .72rem; letter-spacing: .12em; }

.tc-gallery { background: #050816; }
.tc-gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: .8rem; }
.tc-gallery-grid a { position: relative; min-height: 250px; grid-column: span 4; overflow: hidden; border-radius: .75rem; color: #fff; background: #10162a; text-decoration: none; }
.tc-gallery-grid a:first-child,
.tc-gallery-grid a:last-child { grid-column: span 6; }
.tc-gallery-grid picture,
.tc-gallery-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tc-gallery-grid a:hover img { transform: scale(1.025); }
.tc-gallery-grid span { position: absolute; inset: auto .8rem .8rem; width: max-content; max-width: calc(100% - 1.6rem); padding: .45rem .65rem; border-radius: .3rem; background: rgb(2 5 16 / 82%); font-weight: 850; }

.tc-news-callout { padding-block: clamp(4rem, 8vw, 7rem); color: #fff; background: linear-gradient(115deg, #22104a, #071a45 56%, #082536); }
.tc-news-callout .shell { display: grid; grid-template-columns: minmax(0, .8fr) minmax(360px, 1.2fr); gap: clamp(2rem, 7vw, 7rem); align-items: end; }
.tc-news-callout p:not(.tc-kicker) { color: #cdd7ee; line-height: 1.7; }
.tc-news-callout .shell > div:last-child { display: grid; }
.tc-news-callout a { min-height: 54px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgb(255 255 255 / 20%); color: #fff; font-weight: 850; text-decoration: none; }
.tc-news-callout a::after { content: "→"; color: var(--tc-cyan); }

.tc-final { position: relative; overflow: hidden; padding-block: clamp(5rem, 12vw, 10rem); text-align: center; background: #030711; }
.tc-final::before { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 65rem; background: radial-gradient(circle, rgb(39 129 255 / 26%), transparent 62%); }
.tc-final .shell { position: relative; max-width: 900px; }
.tc-final p:not(.tc-kicker) { color: #d4e2f4; font-size: clamp(1.1rem, 2vw, 1.4rem); }
.tc-final .tc-button { margin-top: 1rem; }
.tc-final small { display: block; margin: 1.1rem auto 0; max-width: 580px; color: #97aacb; }

.thumb-command-home-feature {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #060919;
}
.thumb-command-home-feature > picture,
.thumb-command-home-feature > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-command-home-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(3 6 18 / 94%), rgb(3 6 18 / 77%) 48%, rgb(3 6 18 / 20%)); }
.thumb-command-home-feature .shell { position: relative; z-index: 1; min-height: 640px; display: grid; grid-template-columns: minmax(0, 650px) 1fr; align-items: center; padding-block: 5rem; }
.thumb-command-home-feature h2 { margin: 0; color: #fff; font: 950 clamp(3rem, 7vw, 6.7rem)/.84 system-ui, sans-serif; letter-spacing: -.065em; text-transform: uppercase; }
.thumb-command-home-feature h2 span { display: block; color: var(--tc-gold); }
.thumb-command-home-feature .tagline { color: var(--tc-cyan); font-weight: 950; letter-spacing: .15em; text-transform: uppercase; }
.thumb-command-home-feature .lede { color: #e8f0ff; }
.thumb-command-home-feature .tc-actions { margin-bottom: 0; }

.tc-home-tile {
  position: absolute;
  right: 0;
  bottom: 2rem;
  width: clamp(92px, 12vw, 160px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid rgb(255 255 255 / 72%);
  border-radius: 22%;
  box-shadow: 0 .8rem 2.5rem rgb(0 0 0 / 45%);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tc-home-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tc-home-tile:hover { transform: translateY(-3px) rotate(1deg); box-shadow: 0 1rem 3rem rgb(30 183 255 / 40%); }
.tc-home-tile:focus-visible { outline: 3px solid var(--tc-gold); outline-offset: 4px; }

.catalog-card.thumb-command .catalog-art { background: radial-gradient(circle, #48207b, #070b1b); }
.catalog-card.thumb-command .catalog-art img { object-fit: contain; }

@keyframes tc-star-drift { to { transform: translate3d(-60px, 30px, 0); } }

@media (max-width: 960px) {
  .tc-hero { min-height: auto; }
  .tc-hero-layout { grid-template-columns: 1fr; }
  .tc-app-icon { width: min(58vw, 420px); justify-self: start; }
  .tc-split,
  .tc-split.reverse { grid-template-columns: 1fr; }
  .tc-split.reverse .tc-frame { order: 2; }
  .tc-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tc-city-card.flagship { display: block; }
  .tc-defense-layout { grid-template-columns: 1fr; }
  .tc-news-callout .shell { grid-template-columns: 1fr; }
  .thumb-command-home-feature .shell { grid-template-columns: minmax(0, 650px); }
}

@media (max-width: 680px) {
  .tc-hero-art img { object-position: 67% center; }
  .tc-hero-scrim { background: linear-gradient(0deg, #030714 0%, rgb(3 7 20 / 92%) 48%, rgb(3 7 20 / 35%) 100%); }
  .tc-hero-layout { padding-top: 13rem; padding-bottom: 3.5rem; }
  .tc-app-icon { width: min(78vw, 340px); }
  .tc-actions { flex-direction: column; }
  .tc-button { width: 100%; }
  .tc-feature-grid,
  .tc-city-grid,
  .tc-upgrade-line,
  .tc-defense-layout ul { grid-template-columns: 1fr; }
  .tc-city-card.flagship { grid-column: auto; }
  .tc-city-card picture,
  .tc-city-card img { min-height: 220px; }
  .tc-enemy-list { grid-template-columns: 1fr; }
  .tc-gallery-grid { grid-template-columns: 1fr; }
  .tc-gallery-grid a,
  .tc-gallery-grid a:first-child,
  .tc-gallery-grid a:last-child { grid-column: auto; min-height: 230px; }
  .thumb-command-home-feature .shell { min-height: 610px; padding-top: 12rem; align-items: end; }
  .thumb-command-home-feature::after { background: linear-gradient(0deg, rgb(3 6 18 / 96%), rgb(3 6 18 / 62%) 76%, rgb(3 6 18 / 20%)); }
  .tc-home-tile { position: static; display: block; margin-top: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tc-stars { animation: none; }
  .tc-button,
  .tc-gallery-grid img { transition: none; }
  .tc-button:hover,
  .tc-gallery-grid a:hover img { transform: none; }
  .tc-home-tile { transition: none; }
}
