/* STRATA·9 — single neon accent (#35f0ff), condensed display type,
   full-bleed cinematic composition. The street is the star. */

:root {
  --accent: #35f0ff;
  --accent-dim: rgba(53, 240, 255, 0.55);
  --plate: rgba(4, 8, 12, 0.72);
  --line: rgba(53, 240, 255, 0.28);
  --ink: #cfe9f2;
  --font: "Helvetica Neue Condensed", "Arial Narrow", "Roboto Condensed",
          "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; background: #03040a; }
body {
  font-family: var(--font);
  color: var(--ink);
  cursor: grab;
}
body.dragging, body.touch { cursor: default; }
#app, #app canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

.ui { letter-spacing: 0.04em; user-select: none; }

/* ---------------- start overlay ---------------- */
#startOverlay {
  position: fixed; inset: 0;
  display: flex; align-items: flex-end;
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(35, 226, 255, 0.07), transparent 55%),
    radial-gradient(100% 80% at 15% 90%, rgba(255, 45, 149, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(3, 4, 10, 0.2) 0%, rgba(3, 4, 10, 0.88) 78%);
  z-index: 60;
  transition: opacity .7s ease, visibility .7s;
}
body.entered #startOverlay { opacity: 0; visibility: hidden; pointer-events: none; }

.card {
  margin: 0 auto clamp(20px, 6vh, 64px);
  width: min(560px, calc(100vw - 40px));
  background: var(--plate);
  border: 1px solid var(--line);
  outline: 1px solid rgba(0,0,0,.6);
  padding: 26px 30px 22px;
  backdrop-filter: blur(3px);
  box-shadow: 0 0 44px rgba(53, 240, 255, 0.10), inset 0 0 24px rgba(0,0,0,.5);
}
.eyebrow {
  color: var(--accent);
  font-size: 11px; letter-spacing: 0.34em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px; margin-bottom: 14px;
}
h1 {
  font-size: clamp(30px, 5.6vw, 44px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #eefcff;
  text-transform: uppercase;
  text-shadow: 0 0 18px var(--accent-dim);
  margin-bottom: 10px;
}
.lede { font-size: 14px; line-height: 1.45; color: #93b1bd; max-width: 46ch; }
.ctrl-grid {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 3px 12px;
  margin: 16px 0 18px;
  font-size: 12px;
}
.ctrl-grid .k span {
  color: #eafcff; background: rgba(53,240,255,0.08);
  border: 1px solid var(--line);
  padding: 1px 7px; letter-spacing: .08em;
}
.ctrl-grid .k em { color: #5d7d8a; font-style: normal; margin-left: 5px; font-size: 10px; }
.ctrl-grid .v { color: #8aa8b4; align-self: center; }
.enter {
  font-family: inherit;
  width: 100%;
  background: linear-gradient(180deg, rgba(53,240,255,0.16), rgba(53,240,255,0.05));
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 17px;
  letter-spacing: 0.28em;
  padding: 12px 0 11px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background .2s, box-shadow .2s;
}
.enter:hover, .enter:focus-visible {
  background: rgba(53, 240, 255, 0.26);
  box-shadow: 0 0 22px rgba(53, 240, 255, 0.4);
  outline: none;
}
.seedline {
  display: flex; justify-content: space-between;
  color: #47677380; color: #47677a;
  font-size: 10px; letter-spacing: 0.22em; margin-top: 12px;
}

/* ---------------- compass + mode ---------------- */
#compass {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%);
  width: min(320px, 44vw); height: 46px;
  opacity: .92; z-index: 30;
  filter: drop-shadow(0 0 6px rgba(53,240,255,.25));
}
body:not(.entered) #compass, body.photo #compass { display: none; }

#modePlate {
  position: fixed; left: 18px; bottom: 16px; z-index: 30;
  background: var(--plate);
  border-left: 3px solid var(--accent);
  padding: 6px 14px 5px;
  font-size: 15px; letter-spacing: .18em;
  color: #eafcff;
  text-transform: uppercase;
}
#modePlate .glyph { color: var(--accent); }
.alt {
  position: fixed; left: 18px; bottom: 52px; z-index: 30;
  font-size: 10px; letter-spacing: .24em; color: #5f8494;
}
body:not(.entered) #modePlate, body:not(.entered) .alt,
body.photo #modePlate, body.photo .alt { display: none; }

/* ---------------- crosshair / prompt / caption ---------------- */
#crosshair {
  position: fixed; left: 50%; top: 50%; width: 4px; height: 4px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  opacity: .75; z-index: 30; display: none;
}
body.drone #crosshair { display: none !important; }

#prompt {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%);
  z-index: 31;
  background: var(--plate);
  border: 1px solid var(--line);
  color: #dffaff;
  font-size: 13px; letter-spacing: .2em;
  padding: 7px 18px 6px;
  opacity: 0; transition: opacity .25s, transform .25s;
  text-transform: uppercase;
  white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis;
}
#prompt.on { opacity: 1; transform: translate(-50%, -4px); }

#caption {
  position: fixed; left: 50%; bottom: 118px; transform: translateX(-50%);
  z-index: 31; width: min(520px, calc(100vw - 48px));
  background: linear-gradient(180deg, rgba(4,8,12,.82), rgba(4,8,12,.66));
  border-top: 1px solid var(--accent);
  padding: 12px 18px 13px;
  opacity: 0; transition: opacity .5s, transform .5s;
  pointer-events: none;
}
#caption.on { opacity: 1; transform: translateX(-50%) translateY(-6px); }
.cap-title {
  color: var(--accent); font-size: 14px; letter-spacing: .26em;
  text-transform: uppercase; margin-bottom: 5px;
}
.cap-body { color: #a7bcc6; font-size: 13.5px; line-height: 1.45; letter-spacing: .02em; }

/* ---------------- toasts ---------------- */
#toasts {
  position: fixed; right: 16px; top: 16px; z-index: 31;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
  max-width: min(300px, 74vw);
}
.toast {
  background: var(--plate);
  border-right: 3px solid var(--accent);
  padding: 8px 14px 8px 12px;
  opacity: 0; transform: translateX(16px);
  transition: all .35s ease;
}
.toast.in { opacity: 1; transform: none; }
.t-title { color: var(--accent); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; }
.t-body { color: #7fa0ad; font-size: 11px; letter-spacing: .06em; margin-top: 2px; }

/* ---------------- help sheet ---------------- */
#help {
  position: fixed; right: 16px; top: 74px; z-index: 32;
  width: min(320px, 86vw);
  background: var(--plate); border: 1px solid var(--line);
  padding: 14px 18px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .25s;
}
#help.on { opacity: 1; visibility: visible; transform: none; }
.h-title { color: var(--accent); letter-spacing: .3em; font-size: 12px; margin-bottom: 10px; }
.h-grid {
  display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px;
  font-size: 11.5px; letter-spacing: .06em;
}
.h-grid div:nth-child(odd) { color: #eafcff; }
.h-grid div:nth-child(even) { color: #7fa0ad; }

/* ---------------- photo mode furniture ---------------- */
#photoMask { position: fixed; inset: 0; pointer-events: none; z-index: 40; display: none; }
#photoMask .bar {
  position: absolute; left: 0; right: 0; height: 0;
  background: #000; transition: height .35s ease;
}
#photoMask .bar.top { top: 0; }
#photoMask .bar.bottom { bottom: 0; }
#thirdsGrid {
  position: fixed; inset: 0; display: none; pointer-events: none; z-index: 41;
  background:
    linear-gradient(to right, transparent calc(33.33% - 1px), rgba(160,230,245,.35) 33.33%, transparent calc(33.33% + 1px)),
    linear-gradient(to right, transparent calc(66.66% - 1px), rgba(160,230,245,.35) 66.66%, transparent calc(66.66% + 1px)),
    linear-gradient(to bottom, transparent calc(33.33% - 1px), rgba(160,230,245,.35) 33.33%, transparent calc(33.33% + 1px)),
    linear-gradient(to bottom, transparent calc(66.66% - 1px), rgba(160,230,245,.35) 66.66%, transparent calc(66.66% + 1px));
}
#photoTag {
  position: fixed; left: 50%; top: 14px; transform: translateX(-50%);
  z-index: 42; color: var(--accent);
  font-size: 11px; letter-spacing: .34em;
}
body:not(.photo) #photoTag { display: none; }
#photoChips {
  position: fixed; right: 18px; bottom: 18px; z-index: 42;
  display: flex; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
#photoChips.show { opacity: 1; pointer-events: auto; }
body.photo #photoChips.show { pointer-events: auto; }
#photoChips button {
  font-family: inherit; letter-spacing: .18em;
  background: var(--plate); color: var(--accent);
  border: 1px solid var(--line);
  padding: 7px 13px; font-size: 11px; cursor: pointer;
}
#photoChips button:hover { background: rgba(53,240,255,.14); }
body:not(.photo) #photoChips { display: none !important; }
body.photo .toast, body.photo #prompt { display: none; }
body.photo { cursor: crosshair; }

/* ---------------- touch layer ---------------- */
#touchZone { position: fixed; inset: 0; z-index: 25; display: none; }
body.touch.entered #touchZone { display: block; }
#stick {
  display: none; position: fixed; width: 116px; height: 116px; z-index: 26;
  margin-left: -58px; margin-top: -58px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle, rgba(53,240,255,.07), transparent 68%);
}
#stickKnob {
  position: absolute; left: 50%; top: 50%; width: 42px; height: 42px;
  margin: -21px 0 0 -21px; border-radius: 50%;
  background: rgba(53,240,255,.22);
  border: 1px solid var(--accent-dim);
}
#cornerChips { position: fixed; right: 12px; bottom: 12px; z-index: 27; display: none; gap: 8px; }
body.entered #cornerChips.touch-visible { display: flex; }
#cornerChips button {
  font-family: inherit; letter-spacing: .2em; font-size: 11px;
  color: var(--accent); background: var(--plate);
  border: 1px solid var(--line); padding: 10px 14px;
}

/* narrow screens keep the card readable */
@media (max-width: 640px) {
  .ctrl-grid { grid-template-columns: auto 1fr; }
  .card { padding: 20px 18px 18px; }
  h1 br { display: none; }
}
