/*
  NZXT "Fluid Dynamics" theme — dark face with violet accents, designed for
  the 640×640 round Kraken Elite LCD. SVG text classes carry the typography;
  the face scales to the smallest viewport dimension so it stays circular.
*/

:root {
  --bg: #04040a;
  --violet: #8b5cf6;
  --violet-light: #a78bfa;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --panel: #0d0d16;
  --border: #22222e;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  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: 34px;
  font-weight: 800;
  letter-spacing: 2px;
  fill: #ffffff;
}

.subtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  fill: var(--violet-light);
}

.arc-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3.5px;
  fill: #d1d5db;
}

.small-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  fill: var(--violet-light);
}

.tiny-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.8px;
  fill: var(--muted);
}

.mid-value {
  font-size: 30px;
  font-weight: 700;
  fill: #ffffff;
}

.mid-value .unit {
  font-size: 16px;
  font-weight: 600;
  fill: #d1d5db;
}

.cpu-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 3px;
  fill: var(--violet-light);
}

.big-value {
  font-size: 84px;
  font-weight: 700;
  fill: #ffffff;
}

.cpu-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  fill: var(--violet);
}

.clock {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2px;
  fill: #e5e7eb;
}

.clock-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  fill: var(--violet-light);
}

/* ---- gauge arcs ---- */

.arc {
  fill: none;
  stroke: url(#purple-grad);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 0.6s ease;
}

.arc-big {
  stroke-width: 6;
}

/* ---- stat pills (SVG, built by script) ---- */

.pill-bg {
  fill: var(--panel);
  stroke: var(--border);
  stroke-width: 1.5;
}

.pill-icon-bg {
  fill: #15151f;
}

.pill-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  fill: var(--violet-light);
}

.pill-value {
  font-size: 17px;
  font-weight: 700;
  fill: #ffffff;
}

.pill-unit {
  font-size: 10px;
  font-weight: 600;
  fill: var(--muted);
}

/* ---- waves ---- */

#waves path {
  fill: none;
  stroke: var(--violet);
  stroke-width: 1;
}

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

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

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

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

.config p,
.config label {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0.4rem 0;
  display: block;
}

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

.config code {
  color: var(--violet-light);
  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: #15151f;
  color: var(--text);
  font-size: 0.85rem;
}

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