/* UNDERCOLONY — underground palette, chalk-on-soil, everything in caps.
 *
 * Bootstrap 5 stays loaded for the grid/utilities and the auth pages; this
 * sheet overrides its variables and styles the game surfaces. Every custom
 * class is prefixed `uc-` so nothing collides with Bootstrap's own (.col-*,
 * .card, .btn) — see the fork-gotchas note on why that matters.
 */
:root {
  --soil: #14100c;
  --soil-2: #1e1712;
  --soil-3: #2a201a;
  --tunnel: #3a2d24;
  --chalk: #f3ead9;
  --chalk-dim: #c9bda8;
  --chalk-mute: #8f8471;
  --amber: #f2a93b;
  --amber-2: #ffc46b;
  --amber-dim: rgba(242, 169, 59, .16);
  --leaf: #7dc466;
  --leaf-dim: rgba(125, 196, 102, .16);
  --blood: #e5533d;
  --blood-dim: rgba(229, 83, 61, .18);
  --sky: #6fb7e8;
  --rule: #3b2f26;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --display: "Arial Black", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  --bs-body-bg: var(--soil);
  --bs-body-color: var(--chalk);
  --bs-border-color: var(--rule);
  --bs-link-color: var(--amber);
  --bs-link-hover-color: var(--amber-2);
  --bs-primary: var(--amber);
  --bs-primary-rgb: 242, 169, 59;
  --bs-secondary-bg: var(--soil-2);
  --bs-tertiary-bg: var(--soil-3);
  --bs-heading-color: var(--chalk);
  --bs-emphasis-color: var(--chalk);
}

html { background: var(--soil); }
body {
  background: var(--soil);
  color: var(--chalk);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  display: flex; flex-direction: column; min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}
main { flex: 1; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-2); text-decoration: underline; }
h1, h2, h3, h4, .uc-caps { text-transform: uppercase; letter-spacing: .02em; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -.01em; }
.uc-mono { font-family: var(--mono); }
.uc-mute { color: var(--chalk-mute); }
.uc-dim { color: var(--chalk-dim); }
.uc-amber { color: var(--amber); }
.uc-leaf { color: var(--leaf); }
.uc-blood { color: var(--blood); }
.text-muted { color: var(--chalk-mute) !important; }
hr { border-color: var(--rule); opacity: 1; }

/* Bootstrap components we still use, re-skinned */
.card { background: var(--soil-2); border: 1px solid var(--rule); color: var(--chalk); border-radius: 10px; }
.card .card-body { color: var(--chalk); }
.form-control, .form-select {
  background: var(--soil-3); border: 1px solid var(--rule); color: var(--chalk);
  text-transform: uppercase; font-weight: 600; letter-spacing: .02em;
}
.form-control::placeholder { color: var(--chalk-mute); text-transform: uppercase; font-weight: 500; }
.form-control:focus, .form-select:focus { background: var(--soil-3); color: var(--chalk); border-color: var(--amber); box-shadow: 0 0 0 .2rem var(--amber-dim); }
.form-select option { background: var(--soil-2); }
.form-label { color: var(--chalk-dim); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; font-weight: 700; }
.form-text { color: var(--chalk-mute); }
.alert-danger { background: var(--blood-dim); border-color: var(--blood); color: var(--chalk); text-transform: uppercase; font-weight: 700; }
.alert-success { background: var(--leaf-dim); border-color: var(--leaf); color: var(--chalk); text-transform: uppercase; font-weight: 700; }
.btn { text-transform: uppercase; font-weight: 800; letter-spacing: .06em; border-radius: 8px; }
.btn-primary { background: var(--amber); border-color: var(--amber); color: #1a1208; }
.btn-primary:hover, .btn-primary:focus { background: var(--amber-2); border-color: var(--amber-2); color: #1a1208; }
.btn-outline-secondary { border-color: var(--chalk-mute); color: var(--chalk-dim); }
.btn-outline-secondary:hover { background: var(--soil-3); border-color: var(--chalk); color: var(--chalk); }
.btn-outline-light { border-color: var(--rule); color: var(--chalk-dim); }
.btn-outline-light:hover { background: var(--soil-3); color: var(--chalk); border-color: var(--chalk-mute); }
.dropdown-menu { background: var(--soil-2); border: 1px solid var(--rule); }
.dropdown-item { color: var(--chalk-dim); }
.dropdown-item:hover, .dropdown-item.active { background: var(--soil-3); color: var(--chalk); }
.table { color: var(--chalk); --bs-table-bg: transparent; --bs-table-color: var(--chalk); --bs-table-border-color: var(--rule); }
.table > :not(caption) > * > * { color: var(--chalk); }
.progress { background: var(--soil-3); height: 10px; border-radius: 6px; }
.progress-bar { background: var(--amber); transition: width .5s ease; }
.badge { text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.navbar-toggler { border-color: var(--rule); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(243,234,217,.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* --- masthead ------------------------------------------------------- */
.uc-nav { background: var(--soil-2); border-bottom: 1px solid var(--rule); }
.uc-nav .navbar-brand { font-family: var(--display); font-weight: 900; font-size: 20px; color: var(--chalk); letter-spacing: -.01em; }
.uc-nav .navbar-brand .uc-ant { display: inline-block; width: 22px; height: 22px; vertical-align: -4px; margin-right: 6px; }
.uc-nav .nav-link { color: var(--chalk-dim); text-transform: uppercase; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; }
.uc-nav .nav-link:hover, .uc-nav .nav-link.active { color: var(--chalk); }
.uc-live {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px;
  color: var(--chalk-dim); background: var(--soil-3); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 10px;
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.uc-live b { color: var(--chalk); font-weight: 800; }
.uc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 0 rgba(125,196,102,.6); animation: uc-pulse 2s infinite; }
.uc-dot.off { background: var(--chalk-mute); animation: none; box-shadow: none; }
@keyframes uc-pulse { 0% { box-shadow: 0 0 0 0 rgba(125,196,102,.55); } 70% { box-shadow: 0 0 0 8px rgba(125,196,102,0); } 100% { box-shadow: 0 0 0 0 rgba(125,196,102,0); } }

/* --- hero ----------------------------------------------------------- */
.uc-hero { text-align: center; padding: 56px 16px 28px; max-width: 980px; margin: 0 auto; }
.uc-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--amber); text-transform: uppercase; margin-bottom: 14px; }
.uc-hero h1 { font-size: clamp(38px, 7.2vw, 88px); line-height: .95; margin: 0 auto 18px; max-width: 900px; text-wrap: balance; color: var(--chalk); }
.uc-hero h1 .uc-amber { color: var(--amber); }
.uc-hero .uc-sub { font-size: clamp(16px, 2vw, 20px); color: var(--chalk-dim); max-width: 640px; margin: 0 auto 26px; text-transform: uppercase; font-weight: 600; letter-spacing: .02em; }
.uc-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.uc-cta .btn { padding: 12px 22px; font-size: 15px; }
.uc-cta .btn-lg { padding: 14px 28px; font-size: 17px; }

/* --- stat strip ----------------------------------------------------- */
.uc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; max-width: 900px; margin: 28px auto 0; }
.uc-stat { background: var(--soil-2); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 12px; text-align: center; }
.uc-stat b { display: block; font-family: var(--display); font-size: clamp(26px, 3.4vw, 40px); line-height: 1; color: var(--chalk); font-variant-numeric: tabular-nums; }
.uc-stat span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--chalk-mute); text-transform: uppercase; }
.uc-stat.hot b { color: var(--amber); }
.uc-stat.alive b { color: var(--leaf); }

/* --- sections & panels ---------------------------------------------- */
.uc-section { max-width: 1120px; margin: 0 auto; padding: 24px 16px; }
.uc-section-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.uc-section-title h2 { font-size: 18px; margin: 0; letter-spacing: .06em; }
.uc-section-title .uc-mute { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.uc-panel { background: var(--soil-2); border: 1px solid var(--rule); border-radius: 12px; padding: 16px; }
.uc-panel + .uc-panel { margin-top: 12px; }
.uc-panel h3 { font-size: 13px; letter-spacing: .12em; color: var(--chalk-mute); margin: 0 0 10px; font-family: var(--mono); font-weight: 700; }
.uc-grid { display: grid; gap: 12px; }
.uc-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.uc-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.uc-play { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 991px) { .uc-play { grid-template-columns: 1fr; } }

/* --- colony header -------------------------------------------------- */
.uc-colony-head { padding: 28px 16px 8px; text-align: center; }
.uc-colony-head h1 { font-size: clamp(30px, 5.4vw, 56px); margin: 0 0 6px; line-height: 1; }
.uc-colony-head .uc-motto { color: var(--amber); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.uc-colony-head .uc-title { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--chalk-mute); text-transform: uppercase; margin-top: 8px; }
.uc-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.uc-chip { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: var(--soil-3); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 11px; color: var(--chalk-dim); }
.uc-chip b { color: var(--chalk); font-variant-numeric: tabular-nums; }
.uc-chip.leaf { border-color: var(--leaf); color: var(--leaf); }
.uc-chip.amber { border-color: var(--amber); color: var(--amber); }
.uc-chip.blood { border-color: var(--blood); color: var(--blood); }

/* --- my ant card ---------------------------------------------------- */
.uc-me { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.uc-me .uc-avatar { width: 56px; height: 56px; border-radius: 14px; background: var(--soil-3); border: 1px solid var(--rule); display: grid; place-items: center; font-size: 30px; }
.uc-me .uc-name { font-family: var(--display); font-size: 18px; line-height: 1.1; }
.uc-me .uc-rank { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--amber); text-transform: uppercase; }
.uc-energy { margin-top: 8px; }
.uc-energy .uc-bar { height: 10px; background: var(--soil-3); border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); }
.uc-energy .uc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf), var(--amber)); transition: width .6s ease; }
.uc-energy small { font-family: var(--mono); font-size: 11px; color: var(--chalk-mute); letter-spacing: .08em; text-transform: uppercase; display: flex; justify-content: space-between; margin-top: 4px; }
.uc-xp { height: 4px; background: var(--soil-3); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.uc-xp i { display: block; height: 100%; background: var(--sky); transition: width .6s ease; }

/* --- action buttons ------------------------------------------------- */
.uc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.uc-btn {
  font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .08em;
  border: 1px solid var(--rule); background: var(--soil-3); color: var(--chalk); border-radius: 8px;
  padding: 9px 14px; cursor: pointer; font-size: 13px; line-height: 1; transition: transform .08s ease, background .15s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.uc-btn:hover { background: var(--tunnel); }
.uc-btn:active { transform: translateY(1px) scale(.98); }
.uc-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.uc-btn small { font-family: var(--mono); font-weight: 600; font-size: 10px; color: var(--chalk-mute); letter-spacing: .04em; }
.uc-btn.lift { background: var(--amber); border-color: var(--amber); color: #1a1208; font-size: 15px; padding: 11px 18px; letter-spacing: .28em; }
.uc-btn.lift small { color: #4a3510; }
.uc-btn.lift:hover { background: var(--amber-2); }
.uc-btn.lift.bump { animation: uc-bump .35s ease; }
@keyframes uc-bump { 0% { transform: scale(1); } 40% { transform: scale(1.12) translateY(-3px); } 100% { transform: scale(1); } }
.uc-btn.defend { background: var(--blood); border-color: var(--blood); color: #fff; }
.uc-btn.defend:hover { filter: brightness(1.1); }
.uc-btn.forage { background: var(--leaf); border-color: var(--leaf); color: #10200c; }
.uc-btn.forage:hover { filter: brightness(1.08); }
.uc-btn.dig { border-color: var(--sky); color: var(--sky); }
.uc-btn.raid { border-color: var(--blood); color: var(--blood); }
.uc-btn.full { width: 100%; justify-content: center; }

/* --- finds ---------------------------------------------------------- */
.uc-find { background: var(--soil-2); border: 1px solid var(--rule); border-radius: 12px; padding: 14px; position: relative; overflow: hidden; }
.uc-find.delivered { border-color: var(--leaf); }
.uc-find.new { animation: uc-in .5s ease; }
@keyframes uc-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.uc-find .uc-find-top { display: flex; gap: 12px; align-items: flex-start; }
.uc-find .uc-emoji { font-size: 38px; line-height: 1; flex: 0 0 auto; filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); }
.uc-find .uc-find-title { font-family: var(--display); font-size: 17px; line-height: 1.15; color: var(--chalk); }
.uc-find .uc-find-title a { color: inherit; }
.uc-find .uc-find-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--chalk-mute); margin-top: 4px; }
.uc-find .uc-find-meta b { color: var(--amber); }
.uc-lifts { margin-top: 10px; }
.uc-lifts .uc-bar { height: 14px; background: var(--soil-3); border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); position: relative; }
.uc-lifts .uc-bar i { display: block; height: 100%; background: var(--amber); transition: width .5s ease; }
.uc-lifts .uc-bar i.done { background: var(--leaf); }
.uc-lifts .uc-bar .uc-ants { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.uc-lifts small { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--chalk-mute); margin-top: 5px; font-variant-numeric: tabular-nums; }
.uc-lifts small b { color: var(--chalk); }
.uc-replies { margin-top: 10px; border-top: 1px dashed var(--rule); padding-top: 8px; max-height: 220px; overflow-y: auto; }
.uc-reply { display: flex; gap: 8px; font-size: 13px; padding: 3px 0; align-items: baseline; }
.uc-reply .uc-who { font-family: var(--mono); font-size: 11px; color: var(--chalk-mute); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.uc-reply .uc-who.queen { color: var(--amber); }
.uc-reply .uc-line { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--chalk); }
.uc-reply .uc-line.lift { letter-spacing: .3em; color: var(--amber); }
.uc-reply .uc-line.nom, .uc-reply .uc-line.slurp { color: var(--leaf); }
.uc-reply .uc-line.defend { color: var(--blood); }
.uc-reply .uc-line.dig { color: var(--sky); }
.uc-reply.system .uc-line { color: var(--chalk-mute); font-weight: 600; }
.uc-say { display: flex; gap: 8px; margin-top: 8px; }
.uc-say input { flex: 1; }
.uc-say .btn { flex: 0 0 auto; }

/* --- threat banner -------------------------------------------------- */
.uc-threat { background: var(--blood-dim); border: 1px solid var(--blood); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; animation: uc-throb 1.6s infinite; }
@keyframes uc-throb { 0%,100% { box-shadow: 0 0 0 0 rgba(229,83,61,0); } 50% { box-shadow: 0 0 0 6px rgba(229,83,61,.14); } }
.uc-threat.calm { animation: none; background: var(--soil-2); border-color: var(--rule); }
.uc-threat .uc-threat-title { font-family: var(--display); font-size: 20px; color: var(--chalk); line-height: 1.05; }
.uc-threat .uc-threat-title span { font-size: 28px; margin-right: 6px; }
.uc-threat .uc-clock { font-family: var(--mono); font-size: 13px; color: var(--blood); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.uc-threat .uc-bar { height: 12px; background: var(--soil-3); border-radius: 8px; overflow: hidden; margin-top: 10px; border: 1px solid var(--rule); }
.uc-threat .uc-bar i { display: block; height: 100%; background: var(--blood); transition: width .5s ease; }
.uc-threat .uc-bar i.held { background: var(--leaf); }

/* --- world event ---------------------------------------------------- */
.uc-world { background: linear-gradient(180deg, var(--soil-2), var(--soil-3)); border: 1px solid var(--amber); border-radius: 14px; padding: 18px; }
.uc-world .uc-world-title { font-family: var(--display); font-size: clamp(18px, 3vw, 26px); color: var(--chalk); line-height: 1.05; }
.uc-world .uc-world-title span { font-size: 34px; vertical-align: -6px; margin-right: 8px; }
.uc-world .uc-bar { height: 18px; background: var(--soil); border-radius: 10px; overflow: hidden; margin-top: 12px; border: 1px solid var(--rule); }
.uc-world .uc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--amber-2)); transition: width .6s ease; }
.uc-world small { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--chalk-mute); display: flex; justify-content: space-between; margin-top: 6px; font-variant-numeric: tabular-nums; }
.uc-standings { list-style: none; padding: 0; margin: 10px 0 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.uc-standings li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--rule); }
.uc-standings li b { color: var(--amber); }

/* --- the nest (chambers) -------------------------------------------- */
.uc-chambers { display: grid; gap: 8px; }
.uc-chamber { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: var(--soil-3); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; }
.uc-chamber.built { border-color: var(--leaf); }
.uc-chamber.locked { opacity: .5; }
.uc-chamber .uc-chamber-name { font-family: var(--display); font-size: 13px; letter-spacing: .06em; }
.uc-chamber .uc-chamber-blurb { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--chalk-mute); text-transform: uppercase; }
.uc-chamber .uc-bar { height: 6px; background: var(--soil); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.uc-chamber .uc-bar i { display: block; height: 100%; background: var(--sky); transition: width .5s ease; }
.uc-chamber .uc-bar i.done { background: var(--leaf); }

/* --- members, chat, log --------------------------------------------- */
.uc-members { display: flex; flex-wrap: wrap; gap: 6px; }
.uc-member { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; background: var(--soil-3); border: 1px solid var(--rule); border-radius: 999px; padding: 3px 9px; color: var(--chalk-dim); display: inline-flex; align-items: center; gap: 6px; }
.uc-member.queen { border-color: var(--amber); color: var(--amber); }
.uc-member .uc-dot { width: 6px; height: 6px; }
.uc-chat { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.uc-log { list-style: none; padding: 0; margin: 0; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; }
.uc-log li { padding: 5px 0; border-bottom: 1px dashed var(--rule); color: var(--chalk-dim); display: flex; gap: 8px; }
.uc-log li time { color: var(--chalk-mute); flex: 0 0 auto; }
.uc-log li.delivered, .uc-log li.repelled, .uc-log li.built, .uc-log li.levelup { color: var(--leaf); }
.uc-log li.threat, .uc-log li.lost, .uc-log li.raid { color: var(--blood); }
.uc-log li.world, .uc-log li.founded, .uc-log li.crowned { color: var(--amber); }
.uc-log li.new { animation: uc-in .4s ease; }

/* --- ticker (homepage) ---------------------------------------------- */
.uc-ticker { background: var(--soil-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); overflow: hidden; white-space: nowrap; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 0; }
.uc-ticker-inner { display: inline-block; padding-left: 100%; animation: uc-scroll 90s linear infinite; }
.uc-ticker-inner span { margin-right: 44px; color: var(--chalk-dim); }
.uc-ticker-inner span b { color: var(--amber); }
@keyframes uc-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .uc-ticker-inner { animation: none; padding-left: 16px; } }

/* --- colony cards --------------------------------------------------- */
.uc-colony-card { background: var(--soil-2); border: 1px solid var(--rule); border-radius: 12px; padding: 14px; display: block; color: inherit; transition: border-color .15s ease, transform .08s ease; }
.uc-colony-card:hover { border-color: var(--amber); text-decoration: none; color: inherit; transform: translateY(-1px); }
.uc-colony-card .uc-cc-name { font-family: var(--display); font-size: 18px; line-height: 1.1; display: flex; align-items: center; gap: 8px; }
.uc-colony-card .uc-cc-motto { color: var(--amber); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; min-height: 18px; }
.uc-colony-card .uc-cc-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--chalk-mute); margin-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.uc-colony-card .uc-cc-meta b { color: var(--chalk); }
.uc-colony-card.suggested { border-color: var(--leaf); }

/* --- world map ------------------------------------------------------ */
.uc-map { background: var(--soil-2); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.uc-map svg { display: block; width: 100%; height: auto; }
.uc-map .uc-node { cursor: pointer; }
.uc-map .uc-node circle { fill: var(--chalk-mute); stroke: var(--soil); stroke-width: 2; transition: r .2s ease; }
.uc-map .uc-node.active circle { fill: var(--amber); }
.uc-map .uc-node.mine circle { fill: var(--leaf); }
.uc-map .uc-node:hover circle { r: 14; }
.uc-map .uc-node text { fill: var(--chalk); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; paint-order: stroke; stroke: var(--soil); stroke-width: 4px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.uc-map .uc-node:hover text, .uc-map .uc-node.labelled text { opacity: 1; }

/* --- caste picker --------------------------------------------------- */
.uc-castes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.uc-caste { position: relative; }
.uc-caste input { position: absolute; opacity: 0; inset: 0; }
.uc-caste label { display: block; cursor: pointer; background: var(--soil-3); border: 1px solid var(--rule); border-radius: 10px; padding: 12px; height: 100%; text-transform: none; font-size: 13px; letter-spacing: 0; color: var(--chalk-dim); font-weight: 600; }
.uc-caste label b { display: block; font-family: var(--display); font-size: 15px; color: var(--chalk); letter-spacing: .06em; margin-bottom: 4px; }
.uc-caste label b span { font-size: 20px; margin-right: 6px; }
.uc-caste label small { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--chalk-mute); }
.uc-caste input:checked + label { border-color: var(--amber); background: var(--amber-dim); }
.uc-caste input:focus-visible + label { outline: 2px solid var(--amber); }

/* --- toasts --------------------------------------------------------- */
.uc-toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; pointer-events: none; width: min(520px, calc(100vw - 32px)); }
.uc-toast { background: var(--chalk); color: var(--soil); font-family: var(--display); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; border-radius: 10px; padding: 12px 16px; text-align: center; animation: uc-in .3s ease; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.uc-toast.bad { background: var(--blood); color: #fff; }
.uc-toast.good { background: var(--leaf); color: #10200c; }

/* --- footer --------------------------------------------------------- */
.uc-footer { background: var(--soil-2); border-top: 1px solid var(--rule); padding: 22px 16px; margin-top: 40px; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--chalk-mute); text-align: center; }
.uc-footer a { color: var(--chalk-dim); margin: 0 8px; }
.uc-footer p { margin: 0 0 8px; }

/* --- marching ants (decorative, respects reduced motion) ------------ */
.uc-march { position: relative; height: 18px; overflow: hidden; margin: 12px 0 0; }
.uc-march span { position: absolute; top: 0; font-size: 14px; animation: uc-walk 14s linear infinite; }
@keyframes uc-walk { from { left: -30px; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .uc-march span { animation: none; } }

/* --- legal / prose pages ------------------------------------------- */
.uc-prose { max-width: 760px; margin: 0 auto; padding: 24px 16px; color: var(--chalk-dim); }
.uc-prose h1 { font-size: 30px; text-align: center; margin-bottom: 24px; }
.uc-prose h2 { font-size: 16px; letter-spacing: .1em; margin: 24px 0 8px; color: var(--chalk); }
.uc-prose h3 { font-size: 15px; letter-spacing: .06em; margin: 20px 0 6px; color: var(--chalk); }
.uc-prose p, .uc-prose li { font-size: 14.5px; }
.uc-prose .uc-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.uc-prose .uc-kv b { color: var(--amber); }
.uc-prose table { width: 100%; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.uc-prose table td, .uc-prose table th { padding: 6px 8px; border-bottom: 1px dashed var(--rule); }

/* Auth cards shipped by the template, on the dark ground */
.uc-auth .card { max-width: 440px; margin: 40px auto; }
.uc-auth h1 { font-size: 24px; }

@media (max-width: 575px) {
  .uc-hero { padding-top: 36px; }
  .uc-find .uc-emoji { font-size: 30px; }
  .uc-btn.lift { width: 100%; justify-content: center; }
}

/* The nest canvas scales with its box; the drawing buffer stays 1120x360. */
#uc-nest { width: 100%; height: auto; display: block; }

/* --- generated art ------------------------------------------------- */
.uc-hero-art { max-width: 1120px; margin: 8px auto 0; padding: 0 16px; }
.uc-hero-art img { width: 100%; height: auto; display: block; border-radius: 16px; border: 1px solid var(--rule); box-shadow: 0 30px 80px rgba(0,0,0,.5); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.uc-world { position: relative; }
.uc-world-art { float: right; width: 96px; height: 96px; border-radius: 12px; margin: 0 0 8px 12px; border: 1px solid var(--rule); }
.uc-threat { position: relative; }
.uc-threat-art { float: right; width: 72px; height: 72px; border-radius: 10px; margin: 0 0 6px 12px; border: 1px solid var(--rule); }
.uc-chamber { grid-template-columns: auto 1fr auto; }
.uc-chamber-art { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--rule); }
.uc-chamber.locked .uc-chamber-art { filter: grayscale(1); }
@media (max-width: 575px) { .uc-world-art { width: 64px; height: 64px; } .uc-threat-art { width: 56px; height: 56px; } }
.uc-emoji img { width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--rule); display: block; }
.uc-find .uc-emoji { line-height: 0; }

.uc-guestbar { background: var(--amber-dim); border-bottom: 1px solid var(--amber); color: var(--chalk); font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; text-align: center; padding: 7px 12px; }
.uc-guestbar a { color: var(--amber); font-weight: 800; }

/* The Feedback pill ships styled for a light Bootstrap page; on soil it vanished. */
.fb-pill { background: var(--amber) !important; color: #1a1208 !important; border-color: var(--amber) !important; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.fb-pill:hover { background: var(--amber-2) !important; }

/* --- the lander in motion ------------------------------------------ */
.uc-lander-wrap { max-width: 1120px; margin: 8px auto 0; padding: 0 16px; }
.uc-lander { border-radius: 16px; border: 1px solid var(--rule); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: var(--soil-2); cursor: crosshair; }
.uc-lander canvas { display: block; width: 100%; height: auto; }
.uc-lander-cap { font-family: var(--display); font-size: clamp(13px, 1.6vw, 17px); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); text-align: center; padding: 12px 8px 0; min-height: 40px; }
.uc-lander-cap.flash { animation: uc-in .4s ease; }

/* --- the planet ------------------------------------------------------ */
.uc-planet-wrap { position: relative; }
.uc-planet { background: radial-gradient(ellipse at 50% 40%, #1e1712 0%, #0d0a07 70%); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; min-height: 360px; }
.uc-planet canvas { display: block; }
.uc-planet-card { position: absolute; left: 16px; bottom: 16px; max-width: 360px; z-index: 2; }
.uc-landbar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: var(--soil-3); border: 1px solid var(--rule); }
.uc-landbar i { display: block; height: 100%; background: var(--chalk-mute); border-right: 1px solid var(--soil); min-width: 2px; }
.uc-landbar i.active { background: var(--amber); }
.uc-landbar i.mine { background: var(--leaf); }

/* --- juice: things that move when you act ---------------------------- */
@keyframes uc-float { 0% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, -46px); opacity: 0; } }
.uc-float { position: absolute; left: 50%; top: -6px; font-family: var(--display); font-weight: 900; color: var(--amber); font-size: 18px; pointer-events: none; animation: uc-float .9s ease-out forwards; text-shadow: 0 2px 0 rgba(0,0,0,.5); z-index: 3; }
.uc-float.good { color: var(--leaf); }
.uc-float.bad { color: var(--blood); }
@keyframes uc-run { from { left: -12px; } to { left: 100%; } }
.uc-bar .uc-runner { position: absolute; top: -3px; font-size: 12px; line-height: 1; animation: uc-run .9s linear forwards; pointer-events: none; }
@keyframes uc-shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.uc-shake { animation: uc-shake .5s ease; }
@keyframes uc-fly { 0% { transform: translate(0,0) scale(1); opacity: 1; } 100% { transform: translate(var(--fx, 0px), var(--fy, -220px)) scale(.4); opacity: 0; } }
.uc-fly { position: fixed; z-index: 300; pointer-events: none; animation: uc-fly 1.1s cubic-bezier(.4,0,.6,1) forwards; border-radius: 12px; }
@keyframes uc-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.uc-pop { animation: uc-pop .5s cubic-bezier(.2,.9,.3,1.2); }
@keyframes uc-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(242,169,59,0); } 50% { box-shadow: 0 0 0 6px rgba(242,169,59,.28); } }
.uc-btn.lift:not(:disabled):not(.low) { animation: uc-glow 2.4s ease-in-out infinite; }
.uc-btn.low { opacity: .55; }
.uc-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 290; overflow: hidden; }
.uc-confetti span { position: absolute; top: -20px; font-size: 18px; animation: uc-fall linear forwards; }
@keyframes uc-fall { to { transform: translateY(110vh) rotate(720deg); } }
.uc-find { position: relative; }
.uc-lifts .uc-bar { position: relative; overflow: visible; }
.uc-lifts .uc-bar i { border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .uc-btn.lift:not(:disabled) { animation: none; } .uc-float, .uc-fly, .uc-runner, .uc-confetti span { animation-duration: .01s; } }

/* Caste cards wear their art */
.uc-caste label { padding: 0 0 12px; overflow: hidden; }
.uc-caste-art { display: block; width: 100%; height: 120px; object-fit: cover; object-position: center 30%; border-bottom: 1px solid var(--rule); margin-bottom: 10px; }
.uc-caste label b, .uc-caste label small { display: block; padding: 0 12px; }
.uc-caste input:checked + label .uc-caste-art { filter: saturate(1.2); }
.uc-caste label b span { display: none; }

/* Colony scenes everywhere a colony is shown */
.uc-colony-card { overflow: hidden; padding-top: 0; }
.uc-cc-art { display: block; width: calc(100% + 28px); margin: 0 -14px 10px; height: 118px; object-fit: cover; object-position: center 55%; border-bottom: 1px solid var(--rule); }
.uc-colony-card.suggested .uc-cc-art { height: 160px; }
.uc-colony-head-art { background-size: cover; background-position: center 40%; border-radius: 0 0 24px 24px; padding-top: 110px; margin-bottom: 8px; }
.uc-place { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--amber); text-transform: uppercase; margin-bottom: 6px; }
.uc-page-art { display: block; width: 120px; height: 120px; border-radius: 24px; margin: 0 auto 16px; border: 1px solid var(--rule); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.uc-planet-card { padding-top: 0; }
.uc-planet-card .uc-cc-art { height: 90px; }

/* Above the fold: title, the living colony, one button. */
.uc-hero-tight { padding: 34px 16px 10px; }
.uc-hero-tight h1 { margin-bottom: 0; }
.uc-lander { position: relative; }
.uc-lander-cta { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; pointer-events: none; }
.uc-lander-cta .btn { pointer-events: auto; padding: 16px 34px; font-size: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 0 6px rgba(242,169,59,.18); animation: uc-glow 2.4s ease-in-out infinite; }
.uc-chips-home { margin-top: 12px; }
@media (max-width: 575px) { .uc-hero-tight { padding-top: 22px; } .uc-lander-cta .btn { padding: 12px 22px; font-size: 15px; } }
