:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #14141f;
  --bg-tertiary: #1e1e2e;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;
  --accent: #00d4ff;
  --accent-secondary: #00ff88;
  --danger: #ff4466;
  --focus-ring: #00d4ff;
  --focus-glow: rgba(0, 212, 255, 0.4);
  --radius-md: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 600px; height: 600px; overflow: hidden;
  background: #000;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#app { width: 100%; height: 100%; position: relative; }
.screen { width: 100%; height: 100%; position: absolute; top: 0; left: 0; display: flex; flex-direction: column; }
.screen.hidden { display: none; }
.focusable { transition: all 0.15s ease; border: 2px solid transparent; cursor: pointer; outline: none; }
.focusable:focus { border-color: var(--focus-ring); box-shadow: 0 0 20px var(--focus-glow); }
.hidden { display: none !important; }

/* ---------- HOME ---------- */
#home { justify-content: center; align-items: center; gap: 48px; padding: 40px; }
.hero { text-align: center; }
.logo {
  font-size: 96px; line-height: 1; letter-spacing: -8px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), #b14bff, var(--accent-secondary));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero h1 {
  font-size: 52px; font-weight: 800; letter-spacing: 1px; margin-top: 8px;
}
.tagline { color: var(--text-secondary); font-size: 22px; margin-top: 10px; }

.menu { display: flex; flex-direction: column; gap: 16px; width: 360px; }
.btn {
  height: 88px; border-radius: var(--radius-md);
  background: var(--bg-tertiary); color: var(--text-primary);
  font-size: 26px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.btn.primary {
  background: linear-gradient(135deg, #003a4a, #0a2a3a);
  color: var(--accent);
}

/* ---------- PLASMA ---------- */
#plasma { background: #000; }
#plasmaCanvas {
  position: absolute; top: 0; left: 0;
  width: 600px; height: 600px; display: block;
  image-rendering: auto;
}
.hud {
  position: absolute; top: 16px; left: 16px;
  background: rgba(10, 10, 15, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px; border-radius: 999px;
  font-size: 18px; letter-spacing: 0.5px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.hud .dot { color: var(--text-muted); margin: 0 8px; }

.controlbar {
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 96px;
  display: flex; gap: 10px; padding: 10px;
  background: linear-gradient(0deg, rgba(10,10,15,0.92), rgba(10,10,15,0.55));
}
.ctrl {
  flex: 1; border-radius: var(--radius-md);
  background: rgba(28, 30, 33, 0.85);
  color: var(--text-primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; font-size: 16px; font-weight: 600;
}
.ctrl .ico { font-size: 24px; line-height: 1; color: var(--accent); }

/* ---------- TOPBAR (settings / about) ---------- */
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar h2 { font-size: 28px; font-weight: 700; }
.iconbtn {
  height: 56px; min-width: 96px; padding: 0 18px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary); color: var(--text-primary);
  font-size: 20px; font-weight: 600;
}

/* ---------- SETTINGS LIST ---------- */
.list { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.row {
  height: 88px; padding: 0 24px; border-radius: var(--radius-md);
  background: var(--bg-secondary); color: var(--text-primary);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 24px;
}
.row-label { font-weight: 600; }
.row-val { color: var(--accent); font-weight: 700; font-size: 24px; }
.row-val.accent { color: var(--accent-secondary); }

/* ---------- ABOUT ---------- */
.about-body { padding: 24px 28px; overflow-y: auto; }
.about-body p { font-size: 21px; line-height: 1.5; color: var(--text-secondary); margin-bottom: 16px; }
.about-body .hint { color: var(--text-primary); font-weight: 600; }
.keys { list-style: none; margin: 4px 0 20px; display: flex; flex-direction: column; gap: 10px; }
.keys li { font-size: 19px; color: var(--text-secondary); }
.keys b { color: var(--accent); font-weight: 700; }
