/* ants.ucagg.de - UCA Web kit (uca-web-v1, RAW CALM). Light by default; dark when the device asks for it.
   Structure comes from the kit (2px rules, mono labels, 800-weight type, pill buttons).
   The game stays soft: screenshots in a rounded landscape frame, its own two colours (leaf teal, honey), no gradients, no blur. */

/* the kit has a dark set (.w-page-dark) but no automatic switch: follow the device */
@media (prefers-color-scheme: dark) {
  .w-page {
    --w-bg: #000000; --w-bg-alt: #101012; --w-text: #f5f5f7; --w-muted: #a1a1a6; --w-faint: #86868b; --w-line: #424245;
    --w-link: #fff; --w-blue: #fff; --w-blue-hover: #e8e8ed; --w-rule: #fff; --w-tile: #141416; --w-glass: rgba(0,0,0,.94); color-scheme: dark;
  }
  .w-page .w-nav { background: rgba(0,0,0,.94); --w-text: #f5f5f7; --w-line: #424245; --w-rule: #fff; --w-blue: #fff; --w-bg: #000; color-scheme: dark; }
  .w-page .dev-land { background: #1d1d1f; box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .9), inset 0 0 0 1.5px #3a3a3c; }
  .w-page .list li { background: rgba(255, 255, 255, .05); }
}

.w-ctas .soon { opacity: .6; cursor: default; }
.w-ctas .soon::after { content: none; }
.w-hero .tag { color: var(--w-accent); }

/* the game is played sideways: a landscape frame (28px radius, soft shadow) */
.stage { display: flex; justify-content: center; margin-top: clamp(28px, 6vw, 64px); }
.dev-land { width: min(980px, 100%); padding: 10px; border-radius: 28px; background: #2a2a2c; box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .55), inset 0 0 0 1.5px #3a3a3c; }
.dev-land .scr { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: #cfe9c4; position: relative; }
.dev-land img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dev-land.small { padding: 7px; border-radius: 22px; } .dev-land.small .scr { border-radius: 16px; }

.pair { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(16px, 3vw, 32px); align-items: center; margin-top: 28px; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* raw numerals */
.big-row { display: flex; align-items: baseline; gap: clamp(10px, 2vw, 22px); flex-wrap: wrap; margin-bottom: 26px; }
.big-row .num { font-weight: 800; font-size: clamp(96px, 18vw, 220px); line-height: .8; letter-spacing: -.04em; color: var(--w-accent); }
.big-row .w-h1 { margin: 0; }

/* name + one line, in a calm grid (ants, biomes) */
.list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border-radius: var(--w-r); overflow: hidden; }
.list li { display: flex; flex-direction: column; gap: 6px; padding: 26px 22px; background: var(--w-tile); }
.list b { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -.03em; }
.list span { font-size: 15px; color: var(--w-muted); line-height: 1.4; }
.list i { font-style: normal; font-family: var(--w-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: color-mix(in srgb, var(--w-accent) 72%, var(--w-text)); }
@media (max-width: 860px) { .list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .list { grid-template-columns: 1fr; } }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.modes .w-card h3 { font-size: 23px; }
.modes .w-card .n { display: block; font-weight: 800; font-size: 54px; line-height: 1; letter-spacing: -.04em; color: var(--w-accent); margin-bottom: 14px; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } }

.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.facts li { font-size: clamp(22px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.03em; padding: 12px 0; border-top: 2px solid var(--w-rule); }
.facts li:last-child { border-bottom: 2px solid var(--w-rule); }
.fair p { color: var(--w-muted); max-width: 46ch; margin: 0; font-size: 19px; }

/* legal pages in the same look */
.doc { max-width: 760px; padding-top: calc(48px + 40px); padding-bottom: 60px; }
.doc h1 { font-weight: 800; font-size: clamp(34px, 6vw, 56px); line-height: 1; letter-spacing: -.04em; margin: 0 0 22px; }
.doc h2 { font-size: 20px; font-weight: 700; margin: 30px 0 8px; padding-top: 14px; border-top: 2px solid var(--w-rule); }
.doc p, .doc li { color: var(--w-muted); line-height: 1.6; } .doc b { color: var(--w-text); }
.doc a { color: var(--w-text); text-decoration: underline; text-decoration-color: var(--w-accent); text-underline-offset: 3px; }
.doc code { font-family: var(--w-mono); font-size: .9em; }
