/* gosuvoice - "2000s game UI" skin.
   Loaded after style.css and only overrides looks: bevelled metal panels,
   raised buttons, terminal type and an LCD timer. Remove the <link> to this
   file in index.html to go back to the flat modern theme. */
:root {
  --radius: 0px;
  --line: #2b3745;
  --hi: #55667a;      /* bevel highlight (top / left) */
  --lo: #04060a;      /* bevel shadow (bottom / right) */
  --sans: Tahoma, Verdana, Geneva, "DejaVu Sans", sans-serif;
  --mono: "VT323", "Lucida Console", "Courier New", Courier, monospace;
}

body {
  font-size: 16px;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(0, 204, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 204, 255, .035) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Title bar ── */
.topbar {
  background: linear-gradient(90deg, #0d4456 0%, #0a2530 45%, var(--bg) 100%);
  border-bottom: 2px solid #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.brand { font-family: var(--mono); letter-spacing: .06em; color: #b9c7d6; text-shadow: 2px 2px 0 #000; }
.brand strong { font-weight: 400; text-shadow: 2px 2px 0 #000, 0 0 10px rgba(0, 204, 255, .6); }
.topbar-status { font-family: var(--mono); letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar { gap: 12px; }

/* ── Bevelled panels ── */
.panel {
  border: 2px solid;
  border-color: var(--hi) var(--lo) var(--lo) var(--hi);
  border-radius: 0;
  background: linear-gradient(180deg, #1c232d 0%, #131820 100%);
  box-shadow: inset 0 0 0 1px #0a0d12, inset 0 3px 0 rgba(0, 204, 255, .4), 3px 3px 0 rgba(0, 0, 0, .55);
  padding-top: 16px;
}

/* ── Terminal-style labels ── */
.field-label, .state-line, .chip, .timeline-cols, .sync-label, .lock-note,
.timeline-head h2, .timeline-head span, .settings summary, .summary-hint {
  font-family: var(--mono);
}
.field-label { letter-spacing: .06em; margin-bottom: 4px; }
.state-line { letter-spacing: .1em; }
.state-dot { border-radius: 0; }
.chip { letter-spacing: .04em; border-radius: 0; padding: 0 8px; background: #0c1016; }
.chip::before { content: "["; margin-right: 4px; opacity: .6; }
.chip::after { content: "]"; margin-left: 4px; opacity: .6; }
.lock-note { color: var(--red); }
.timeline-head h2, .settings summary { font-weight: 400; letter-spacing: .08em; text-shadow: 2px 2px 0 #000; }
.build-desc { font-size: .95rem; }

/* ── Raised buttons that press in ── */
.btn, .btn-small, .race-tab, .select {
  border: 2px solid;
  border-color: #6a7c91 var(--lo) var(--lo) #6a7c91;
  border-radius: 0;
  background: linear-gradient(180deg, #303b49 0%, #1d2530 100%);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .6);
  text-shadow: 1px 1px 0 #000;
}
.btn:active:not(:disabled), .btn-small:active, .race-tab:active:not(:disabled) {
  border-color: var(--lo) #6a7c91 #6a7c91 var(--lo);
  box-shadow: none;
  transform: translate(2px, 2px);
  filter: none;
}
.btn { font-family: var(--sans); font-size: 1.05rem; }
.btn-start {
  background: linear-gradient(180deg, #58ff3d 0%, #1fd100 55%, #149600 100%);
  border-color: #b6ffa8 #064400 #064400 #b6ffa8;
  color: #031400; text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-pause { border-color: #6a7c91 var(--lo) var(--lo) #6a7c91; }
.btn-reset { border-color: #6a7c91 var(--lo) var(--lo) #6a7c91; }
.btn-small { font-weight: 400; }
.btn-wide { font-family: var(--sans); font-size: 1rem; font-weight: 700; border-color: #6a7c91 var(--lo) var(--lo) #6a7c91; }

.race-tab { font-family: var(--sans); font-size: 1rem; }
.race-tab[aria-pressed="true"] {
  border-color: var(--lo) #6a7c91 #6a7c91 var(--lo);
  background: #06202a;
  color: var(--cyan);
  box-shadow: inset 0 0 14px rgba(0, 204, 255, .35);
  text-shadow: 0 0 8px rgba(0, 204, 255, .7);
}

.select {
  background: #0c1016 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M0 0h12L6 8z' fill='%2300ccff'/%3E%3C/svg%3E") no-repeat right 14px center / 12px;
  border-color: var(--lo) #6a7c91 #6a7c91 var(--lo);   /* sunken field */
  box-shadow: none;
  font-family: var(--sans); font-size: 1rem;
}

/* ── Strategy picker ── */
.build-current {
  border: 2px solid; border-color: #6a7c91 var(--lo) var(--lo) #6a7c91; border-radius: 0;
  background: linear-gradient(180deg, #303b49 0%, #1d2530 100%);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .6);
}
.build-current:active:not(:disabled) { border-color: var(--lo) #6a7c91 #6a7c91 var(--lo); box-shadow: none; transform: translate(2px, 2px); }
.build-current[aria-expanded="true"] { border-color: var(--lo) #6a7c91 #6a7c91 var(--lo); background: #0c1016; box-shadow: none; }
.bc-name { text-shadow: 2px 2px 0 #000; }
.bc-action { font-family: var(--mono); border-radius: 0; border-color: var(--cyan); background: #06202a; }
.bc-action::before { content: "> "; }
.build-list { border: 2px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); border-radius: 0; background: #0a0e13; scrollbar-color: #55667a #0a0e13; }
.build-group { background: linear-gradient(90deg, #0d4456, #0a1a22 80%); border-bottom: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.bg-mu, .bg-vs, .br-style, .br-len { font-family: var(--mono); }
.bg-mu { font-weight: 400; text-shadow: 2px 2px 0 #000; }
.build-row { border-bottom-color: #1a212b; }
.build-row[aria-selected="true"] { background: linear-gradient(180deg, rgba(34, 255, 0, .18), rgba(34, 255, 0, .07)); }
.build-row[aria-selected="true"] .br-name::before { content: "\25B6  "; font-size: .8em; }
.br-style { font-weight: 400; }
.br-style::before { content: "["; opacity: .6; } .br-style::after { content: "]"; opacity: .6; }

.btn-mini { font-family: var(--mono); font-weight: 400; border: 2px solid; border-color: #6a7c91 var(--lo) var(--lo) #6a7c91; border-radius: 0; background: linear-gradient(180deg, #303b49, #1d2530); text-shadow: 1px 1px 0 #000; }
.btn-mini:active { border-color: var(--lo) #6a7c91 #6a7c91 var(--lo); transform: translate(1px, 1px); }
.build-add { font-family: var(--sans); border-bottom-color: #1a212b; text-shadow: 0 0 8px rgba(34, 255, 0, .45); }
.paste-text { border: 2px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); border-radius: 0; background: #030603; color: #b8ffab; caret-color: var(--green); }
.paste-msg { font-family: var(--mono); }

/* ── LCD timer ── */
.timer {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  gap: clamp(6px, 2.2vw, 14px);
  margin: 8px 0 12px;
  padding: 16px 10px;
  background: #030603;
  border: 2px solid;
  border-color: var(--lo) var(--hi) var(--hi) var(--lo);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .9);
  text-shadow: none !important;
  color: #4d5c6d;
}
.timer svg { display: block; height: clamp(4.2rem, 21vw, 7rem); width: auto; overflow: visible; }
.timer .seg { fill: currentColor; opacity: .07; }
.timer .seg.on { opacity: 1; }
[data-state="running"] .timer svg { filter: drop-shadow(0 0 7px rgba(34, 255, 0, .7)); }
[data-state="countdown"] .timer svg { filter: drop-shadow(0 0 7px rgba(255, 51, 51, .7)); }
[data-state="paused"] .timer svg { filter: drop-shadow(0 0 6px rgba(0, 204, 255, .5)); }
/* scanlines */
.timer::after, .next-up::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, .28) 2px 4px);
}

/* ── Next-step readout ── */
.next-up {
  position: relative;
  background: #070b10;
  border: 2px solid;
  border-color: var(--lo) var(--hi) var(--hi) var(--lo);
  border-left: 6px solid var(--cyan);
  border-radius: 0;
}
.next-label { letter-spacing: .06em; }
.next-action { font-family: var(--sans); text-shadow: 2px 2px 0 #000; }

/* ── Timeline ── */
.timeline {
  background: #0a0e13;
  border: 2px solid;
  border-color: var(--lo) var(--hi) var(--hi) var(--lo);
  margin-top: 6px;
  scrollbar-color: #55667a #0a0e13;
}
.timeline li { border-radius: 0; border-bottom: 1px solid #141a22; }
.timeline .t, .timeline .sup { font-weight: 400; }
.timeline .act { font-family: var(--sans); }
.timeline li.next { background: rgba(0, 204, 255, .1); }
.timeline li.active {
  background: linear-gradient(180deg, rgba(34, 255, 0, .2), rgba(34, 255, 0, .08));
  text-shadow: 0 0 8px rgba(34, 255, 0, .5);
}

/* ── Options ── */
.switch { border-radius: 0; border: 2px solid; border-color: var(--lo) #6a7c91 #6a7c91 var(--lo); background: #0c1016; }
.switch::after { border-radius: 0; top: 2px; left: 2px; background: linear-gradient(180deg, #8494a7, #55667a); }
.switch:checked { background: #0b2a05; border-color: var(--lo) #6a7c91 #6a7c91 var(--lo); }
.switch:checked::after { background: linear-gradient(180deg, #58ff3d, #1fd100); box-shadow: 0 0 8px rgba(34, 255, 0, .7); }
.slider-row output { font-weight: 400; }
.switch-row small, .hint { font-size: .8rem; }
.voice-status { font-family: var(--mono); color: var(--cyan); }

@media (min-width: 900px) {
  .timeline { margin-top: 8px; }
}

/* ── How it works / about ── */
.about { border-top: 2px solid #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); margin-top: 8px; }
.about h2 { font-family: var(--mono); font-weight: 400; text-shadow: 2px 2px 0 #000; }
.vt323 .about h2 { font-size: 1.3rem; }

/* ── Sizes for the VT323 pixel font ──
   VT323 is narrow and small for its point size, so these bumps apply only once it
   has actually loaded (app.js adds .vt323 to <html>). Offline, the fallback
   monospace keeps the base sizes from style.css. */
.vt323 .brand { font-size: 1.5rem; }
.vt323 .topbar-status { font-size: 1.1rem; }
.vt323 .field-label { font-size: 1.15rem; }
.vt323 .state-line { font-size: 1.25rem; }
.vt323 .chip, .vt323 .timeline-cols, .vt323 .timeline-head span, .vt323 .summary-hint { font-size: 1.05rem; }
.vt323 .sync-label, .vt323 .lock-note { font-size: 1.1rem; }
.vt323 .timeline-head h2, .vt323 .settings summary { font-size: 1.4rem; }
.vt323 .btn-small { font-size: 1.45rem; }
.vt323 .next-label { font-size: 1.3rem; }
.vt323 .timeline .t, .vt323 .timeline .sup { font-size: 1.35em; line-height: 1; }
.vt323 .slider-row output { font-size: 1.5rem; }
.vt323 .voice-status { font-size: 1.15rem; }
.vt323 .bc-action { font-size: 1.15rem; }
.vt323 .bg-mu { font-size: 1.45rem; }
.vt323 .bg-vs, .vt323 .br-style, .vt323 .br-len { font-size: 1.15rem; }
.vt323 .btn-mini { font-size: 1.15rem; }
.vt323 .paste-text { font-size: 1.3rem; line-height: 1.2; }
.vt323 .paste-msg { font-size: 1.15rem; }
