/* GRAND THEFT CLAUDE — landing v2: the terminal build monitor.
   Adapted from the approved Claude Design export; the page-level rules are
   scoped to the #landing overlay, which sits in front of the game and fades
   out on ./play_current_build. Content wiring: js/landing.js + js/buildlog.js */

#landing {
  position: fixed; inset: 0; z-index: 80; overflow-y: auto;
  background: var(--bg); color: var(--fg);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
  opacity: 1; transition: opacity .38s ease;
}
#landing.gone { opacity: 0; pointer-events: none; }
#landing a { color: var(--fg); text-decoration-color: var(--fg-ghost); }
#landing a:hover { color: var(--accent); }
#landing ::selection { background: var(--accent); color: var(--bg); }
:root{
  --bg:#0b0a08; --bg2:#080706; --border:#262019; --rule:#17130f;
  --fg:#8a7f6e; --fg-dim:#57503f; --fg-faint:#453e31; --fg-ghost:#2e281f;
  --fg-bright:#e6ddcb; --fg-mid:#c7bba6;
  --accent:#e8551c; --green:#57c25f; --red:#b0524a;
  --mono:ui-monospace,"SFMono-Regular",Menlo,Consolas,"Liberation Mono",monospace;
}
/* Optional self-hosted wordmark font — drop the file in assets/fonts/ and uncomment:
@font-face{font-family:'Righteous';src:url('assets/fonts/righteous.woff2') format('woff2');font-display:swap}
*/
#landing *{box-sizing:border-box}




@keyframes blink{0%,49%{opacity:1}50%,100%{opacity:0}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.25}}
@keyframes boot{from{opacity:0}to{opacity:1}}
#landing .grain-fx{position:fixed;inset:0;pointer-events:none;z-index:60;opacity:.05;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E")}
#landing .wrap{min-height:100vh;padding:8px 10px 46px;display:flex;flex-direction:column;gap:8px}
.row{display:flex;gap:8px}
.pane{position:relative;border:1px solid var(--border);padding:22px 18px 16px;min-width:0;animation:boot .01s both}
.pane-title{position:absolute;top:-8px;left:10px;background:var(--bg);padding:0 8px;font-size:11px;color:var(--fg-dim);white-space:nowrap}
.pane-title b{color:var(--fg-mid);font-weight:400}
.pane-idx{position:absolute;top:-8px;right:10px;background:var(--bg);padding:0 8px;font-size:11px;color:var(--fg-faint)}
.cursor{display:inline-block;width:8px;height:13px;background:var(--accent);animation:blink 1.1s steps(1) infinite;vertical-align:-2px}
.dot{display:inline-block;width:5px;height:5px;border-radius:50%}
.dot.g{background:var(--green);animation:pulse 2.2s infinite}
.dot.o{background:var(--accent);animation:pulse 1.6s infinite}
.dim{color:var(--fg-dim)} .faint{color:var(--fg-faint)} .mid{color:var(--fg-mid)}
.bright{color:var(--fg-bright)} .acc{color:var(--accent)} .ok{color:var(--green)} .err{color:var(--red)}
.hd{color:var(--fg-bright);font-weight:700}
ul,ol{list-style:none;margin:0;padding:0}
.leader{display:flex;align-items:baseline;font-size:12px}
.leader .fill{flex:1;border-bottom:1px dotted var(--border);margin:0 10px;transform:translateY(-3px)}
.playline{display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-weight:700;color:var(--accent);font-size:14px;font-family:var(--mono)}
.playline:hover{color:var(--fg-bright)}
.topbar,.footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:4px 8px;font-size:11px;flex-wrap:wrap}
.topbar-right{display:inline-flex;gap:22px;flex-wrap:wrap}
.wordmark{font-family:'Righteous',var(--mono);font-size:clamp(30px,4.6vw,54px);line-height:1;color:var(--fg-bright);letter-spacing:-.015em;font-weight:400}
/* hero band: wordmark + PLAY left, render center, boot + status right */
.heroband{position:relative;border:1px solid var(--border);padding:30px 26px 26px;display:grid;grid-template-columns:minmax(300px,1.15fr) minmax(200px,1fr) minmax(220px,.8fr);gap:26px;align-items:center;background:radial-gradient(ellipse at 52% 42%,#15100b 0%,var(--bg) 70%)}
.hero-prompt{font-size:22px;font-weight:700;margin-bottom:4px}
.hero-wordmark{margin:0;display:grid;font-family:'Anton','Arial Narrow',Impact,var(--mono);font-weight:700;font-size:clamp(44px,6.6vw,92px);line-height:.92;letter-spacing:.005em;color:var(--fg-bright);text-transform:uppercase;font-stretch:condensed}
.hero-tag{margin:14px 0 0;color:var(--fg-mid)}
.hero-actions{margin-top:22px;display:flex;gap:24px;flex-wrap:wrap;align-items:center}
.hero-play{display:inline-flex;align-items:center;gap:8px;font:700 17px var(--mono);letter-spacing:.06em;color:var(--accent);text-decoration:none;padding:10px 16px;border:1px solid var(--accent);text-transform:uppercase;transition:box-shadow .15s,color .15s}
.hero-play:hover{color:var(--fg-bright);box-shadow:0 0 18px rgba(232,85,28,.45),inset 0 0 10px rgba(232,85,28,.18)}
.hero-watch{font:700 13px var(--mono);letter-spacing:.06em;color:var(--fg-mid);text-decoration:none;text-transform:uppercase}
.hero-watch:hover{color:var(--accent)}
.hero-visual{display:flex;align-items:center;justify-content:center;min-width:0}
.hero-visual svg,.hero-visual img{max-width:100%;max-height:290px;width:100%}
.hero-visual img{object-fit:contain}
.hero-side{display:flex;flex-direction:column;gap:14px;min-width:0}
.hero-boot{font-size:11px;line-height:1.9;overflow:hidden;max-height:96px}
.hero-status{border:1px solid var(--border);padding:12px 14px;background:var(--bg2)}
.hero-status .hs-title{font-size:10px;letter-spacing:.18em;color:var(--fg-dim)}
.hero-status .hs-state{font:700 20px var(--mono);letter-spacing:.08em;margin-top:4px}
.hero-status #hero-bar{display:block;margin-top:6px;font-size:13px;letter-spacing:.05em}
.hero-status .hs-eta{margin-top:6px;font-size:10px;letter-spacing:.14em}
.feed-line{white-space:nowrap;overflow:hidden;display:flex;gap:10px;align-items:center;color:var(--fg-dim)}
.feed-line.cur{color:var(--fg-mid)}
.feed-line .ts{color:var(--fg-faint);flex:none}
#pane-status{flex:2 1 400px} #pane-queue{flex:1 1 300px} #pane-systems{flex:1 1 320px}
#pane-log{flex:2 1 480px} #pane-gitlog{flex:1 1 340px}
#pane-completion{flex:1 1 340px} #pane-subject{flex:1 1 320px}
#queue-list li,.kv{display:flex;gap:12px}
#queue-list{display:grid;gap:6px;line-height:1.8}
#systems-list{display:grid;gap:4px}
.sys-status{letter-spacing:.06em;font-size:11px;color:var(--fg-dim)}
.sys-status.active{color:var(--accent)} .sys-status.resync{color:var(--fg)}
#log-entries{display:grid;gap:16px}
#log-entries article{display:grid;grid-template-columns:46px minmax(0,1fr);gap:14px}
#log-entries .ts{color:var(--fg-faint);font-size:11px}
#commit-list li{padding:5px 0;border-bottom:1px solid var(--rule);cursor:default}
#commit-list .cline{display:flex;gap:12px;font-size:12px}
#commit-list .diff{display:none;margin:6px 0 3px 20px;font-size:11px}
#commit-list li:hover .diff{display:grid;gap:2px}
.stats{margin-top:14px;border-top:1px solid var(--rule);padding-top:10px;display:grid;gap:4px;font-size:11px}
.stats div{display:flex;justify-content:space-between}
#pane-map{padding:0;background:var(--bg2)}
#map-frame{position:relative;height:340px;cursor:crosshair}
#map-canvas{display:block;width:100%;height:100%}
.map-label{position:absolute;font-size:11px;letter-spacing:.1em;pointer-events:none}
#completion-pct{font-weight:700;color:var(--fg-bright)}
#completion-pct.recalc{color:var(--accent);outline:1px solid var(--accent);outline-offset:3px}
#completion-list{margin-top:12px;display:grid;gap:3px}
#timeline-list{display:flex;overflow-x:auto}
#timeline-list li{flex:none;width:150px;border-left:1px solid var(--rule);padding:2px 12px 4px}
#timeline-list .day{font-weight:700;font-size:12px;color:var(--fg-mid)}
#timeline-list li:last-child .day{color:var(--accent)}
#timeline-list .what{font-size:11px;margin-top:3px;line-height:1.5}
#timeline-list .hash{font-size:10px;color:var(--fg-ghost);margin-top:5px}
#captures-list{display:flex;flex-wrap:wrap;gap:14px}
#captures-list figure{margin:0;min-width:0;position:relative}
#captures-list figure[data-capture="0184"]{flex:2 1 380px}
#captures-list figure{flex:1 1 240px}
#captures-list img{display:block;width:100%;background:var(--bg2);border:1px solid var(--rule);object-fit:cover}
#captures-list .cap-meta{position:absolute;top:8px;left:8px;font-size:10px;color:var(--fg-bright);background:rgba(11,10,8,.85);padding:3px 7px;opacity:0;transition:opacity .2s;pointer-events:none}
#captures-list figure:hover .cap-meta{opacity:1}
#captures-list figcaption{margin-top:6px;font-size:11px}
.sprite{position:absolute;top:26px;right:18px;width:34px;height:40px}
.sprite i{position:absolute;background:var(--accent)}
.sprite .eye{background:var(--bg)}
#statusbar{position:fixed;left:0;right:0;bottom:0;z-index:55;background:rgba(11,10,8,.93);border-top:1px solid var(--border)}
#statusbar>div{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:6px 18px;font-size:10px;letter-spacing:.08em;color:var(--fg-dim);flex-wrap:wrap}
#statusbar-typed{color:var(--fg);overflow:hidden;white-space:nowrap}
@media (max-width:720px){
  .row{flex-direction:column}
  /* mobile hero: wordmark + PLAY stacked and thumb-reachable pre-scroll;
     boot lines drop, the status panel collapses to a slim strip */
  .heroband{grid-template-columns:1fr;padding:20px 16px 18px;gap:16px}
  .hero-wordmark{font-size:clamp(54px,17vw,84px)}
  .hero-actions{margin-top:16px;gap:14px}
  .hero-play{font-size:16px;padding:12px 18px}
  .hero-visual svg,.hero-visual img{max-height:170px}
  .hero-side{flex-direction:row;align-items:stretch}
  .hero-boot{display:none}
  .hero-status{flex:1}
  .topbar-right{gap:14px}
  #map-frame{height:240px}
  #captures-list figure,#captures-list figure[data-capture="0184"]{flex:1 1 100%}
}
