/*
  NZXT "Circuit" theme — dark PCB face with golden traces, glass telemetry
  modules and amber text. Designed for the 640×640 round Kraken Elite LCD.
*/

:root {
  --bg: #040302;
  --gold: #fbbf24;
  --gold-bright: #fde68a;
  --gold-dim: #b98c2e;
  --panel: #0b0a07;
  --border: #2a261d;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--gold-bright);
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

body.kraken {
  /* On the LCD: face fills the screen edge to edge */
  gap: 0;
}

.face-wrap {
  width: min(100vw, 100vh);
  height: min(100vw, 100vh);
  flex: none;
}

body:not(.kraken) .face-wrap {
  width: min(90vw, 560px);
  height: min(90vw, 560px);
}

#face {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- SVG typography ---- */

.logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 3px;
  fill: #f5f5f4;
}

.mod-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 4px;
  fill: #e7c873;
}

.mod-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  fill: var(--gold-dim);
}

.mod-value {
  font-size: 48px;
  font-weight: 700;
  fill: var(--gold-bright);
}

.mod-value .unit,
.side-value .unit {
  font-size: 24px;
  font-weight: 600;
  fill: #e7c873;
}

.cpu-label {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 5px;
  fill: #f1dca2;
}

.cpu-value {
  font-size: 104px;
  font-weight: 700;
  fill: var(--gold-bright);
}

.side-value {
  font-size: 58px;
  font-weight: 700;
  fill: var(--gold-bright);
}

.gold-icon {
  stroke: #fcd34d;
}

/* ---- PCB layers (elements built by script) ---- */

#traces path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#sparks path {
  fill: none;
  stroke: #fff7e0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* glass module rims */
.glass-outer {
  fill: rgba(20, 17, 11, 0.55);
  stroke: url(#glass-rim-shimmer);
  stroke-width: 3;
}

.glass-inner {
  fill: var(--panel);
  stroke: #6b5520;
  stroke-width: 1.2;
}

.screw {
  fill: #161208;
  stroke: #caa64a;
  stroke-width: 1.2;
}

.screw-slot {
  stroke: #caa64a;
  stroke-width: 1.1;
  stroke-linecap: round;
}

/* ---- configuration card (browser only) ---- */

.config {
  width: 90%;
  max-width: 540px;
  background: #0e0c08;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-sizing: border-box;
  margin-top: 1.5rem;
  color: #d6c294;
}

.config h1 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: #f5f5f4;
}

.config h1 span {
  color: var(--gold);
  font-weight: 600;
}

.config p,
.config label {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #a89263;
  margin: 0.4rem 0;
  display: block;
}

.config .hint {
  font-size: 0.8rem;
}

.config code {
  color: var(--gold);
  word-break: break-all;
}

.config input[type='text'] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.7rem;
  margin: 0.3rem 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #14110b;
  color: var(--gold-bright);
  font-size: 0.85rem;
}

.config input[type='text']:focus {
  outline: none;
  border-color: var(--gold);
}
