/* The character library's page (from the Desk Ant prototype): the 3D scene full-screen, a few lines of text over it. A cool dark
   room, a green screen glow -- or the look's own colours (data-look on <html>). */
:root {
  --bg: #061011;
  --ink: #e6f2ee;
  --dim: #7f9a94;
  --accent: #3ce38a;
  --up: #3ce38a;
  --down: #ff4d6d;
  --panel: rgba(4, 14, 13, 0.62);
  --line: rgba(60, 227, 138, 0.22);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
/* the warm look's page: its panels and words in the terracotta family, like the scene (2026-11-20) */
:root[data-look="warm"] { --bg: #0a0606; --ink: #f6e3d3; --dim: #b08d78; --accent: #ff9a50; --up: #ffb347; --down: #e0603a;
  --panel: rgba(18, 9, 6, 0.66); --line: rgba(255, 154, 80, 0.25); }
:root[data-look="warm"] .brand b { text-shadow: 0 0 14px rgba(255, 154, 80, 0.45); }
:root[data-look="warm"] .label.buy b { text-shadow: 0 0 18px rgba(255, 179, 71, 0.6); }
:root[data-look="warm"] .label.sell b { text-shadow: 0 0 18px rgba(224, 96, 58, 0.55); }
* { box-sizing: border-box; }
/* hidden means hidden: a rule's own display (".nogl" a grid) must not show it -- it covered the whole page and took every
   drag and wheel from the scene (2026-11-19) */
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--mono); overflow: hidden; }

#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; transition: filter 1.6s ease; touch-action: none; }
#c.blurred { filter: blur(12px) brightness(0.7); }

.brand { position: fixed; top: max(18px, env(safe-area-inset-top)); left: 22px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.brand b { font-size: 20px; letter-spacing: 0.18em; color: var(--accent); text-shadow: 0 0 14px rgba(60, 227, 138, 0.45); }
.brand span { font-size: 12px; color: var(--dim); }
.brand .look { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); opacity: 0.8; }

.stats { position: fixed; top: max(18px, env(safe-area-inset-top)); right: 18px; display: grid; grid-template-columns: repeat(4, auto); gap: 4px 16px;
  padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; backdrop-filter: blur(6px); }
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats span { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.stats b { font-size: 15px; font-weight: 600; }
.stats .up { color: var(--up); } .stats .down { color: var(--down); }

/* the decision over the ant's head: placed by main.js each frame */
.label { position: fixed; left: 0; top: 0; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 14px 9px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; pointer-events: none;
  opacity: 0; transition: opacity 0.25s ease; will-change: transform, opacity; }
.label.on { opacity: 1; }
.label small { font-size: 10px; color: var(--dim); letter-spacing: 0.12em; }
.label b { font-size: 30px; letter-spacing: 0.06em; line-height: 1; }
.label.buy b { color: var(--up); text-shadow: 0 0 18px rgba(60, 227, 138, 0.6); }
.label.sell b { color: var(--down); text-shadow: 0 0 18px rgba(255, 77, 109, 0.55); }
.label span { font-size: 11px; color: var(--ink); opacity: 0.85; white-space: nowrap; }

.intro { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; transition: opacity 1.2s ease 0.2s; }
.intro.gone { opacity: 0; }
.intro h1 { margin: 0; font-size: clamp(30px, 6vw, 68px); font-weight: 700; letter-spacing: -0.01em; }
.intro h1 em { font-style: normal; color: var(--accent); }
.intro p { margin: 10px 0 0; color: var(--dim); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }

.hint { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); font-size: 11px; color: var(--dim);
  white-space: nowrap; pointer-events: none; opacity: 0.8; }
/* the views: its screen up close, or the whole ant */
.views { position: fixed; right: 18px; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.views button { font: 600 12px var(--mono); letter-spacing: 0.08em; color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; backdrop-filter: blur(6px); }
.views button:hover { border-color: var(--accent); color: var(--accent); }
/* the monitors' chart: made here, off the page, and copied onto them as a picture (main.js sets its size) */
.screen-chart { position: fixed; left: -10000px; top: 0; pointer-events: none; }
.nogl { position: fixed; inset: 0; display: grid; place-content: center; padding: 24px; text-align: center; color: var(--dim); }

/* the coin's links, top middle (2026-11-23): the pump.fun pill with its ticker (dimmed, "soon", no link while the coin has no
   address) and its X account */
.coin-links { position: fixed; top: max(16px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; }
.coin-links a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--panel);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 13px var(--mono); backdrop-filter: blur(6px); white-space: nowrap;
  transition: border-color 0.15s ease, transform 0.15s ease; }
.coin-links a:hover { border-color: var(--accent); transform: translateY(-1px); }
.coin-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.coin-links .pump-logo { width: 24px; height: 24px; flex: none; }
.coin-links .x-link { padding-left: 12px; }
.coin-links .x-logo { width: 14px; height: 14px; flex: none; }
.coin-links b { letter-spacing: 0.04em; }
.coin-links .soon { font: 500 11px var(--mono); color: var(--dim); letter-spacing: 0.06em; }
.coin-links a.is-soon { opacity: 0.62; cursor: default; }
.coin-links a.is-soon:hover { border-color: var(--line); transform: none; }

@media (max-width: 640px) {
  .coin-links { left: auto; right: 12px; transform: none; flex-direction: column; align-items: flex-end; gap: 6px; }
  .stats { top: auto; bottom: 42px; right: 50%; transform: translateX(50%); grid-template-columns: repeat(4, auto); gap: 2px 12px; padding: 8px 12px; }
  .hint { font-size: 10px; bottom: 96px; }
  .views { right: 50%; transform: translateX(50%); bottom: max(10px, env(safe-area-inset-bottom)); gap: 5px; }
  .views button { padding: 7px 10px; font-size: 11px; }
  .brand b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { #c { transition: none; } .intro { transition: none; } }
