/* =====================================================================
   HOLOGRAPHIC CHECKERS — Interface Stylesheet
   ===================================================================== */
:root {
  --cyan: #46f0ff;
  --cyan-soft: #b8fbff;
  --teal: #1be3c8;
  --magenta: #ff4ddb;
  --warn: #ffcf5a;
  --enemy: #ff5a6e;
  --glass: rgba(8, 26, 46, 0.42);
  --glass-line: rgba(96, 224, 255, 0.32);
  --glow: 0 0 14px rgba(70, 240, 255, 0.55);
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-mono: 'Share Tech Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; height: 100%; width: 100%; overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, #07182b 0%, #030a14 55%, #01040a 100%);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  user-select: none; -webkit-user-select: none;
}

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; cursor: grab; }
#scene:active { cursor: grabbing; }

#screen-fx { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom,
    rgba(70,240,255,0.045) 0px, rgba(70,240,255,0.045) 1px,
    transparent 2px, transparent 3px);
  mix-blend-mode: screen; opacity: 0.5;
}
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 52%, rgba(0,0,0,0.62) 100%);
}

.panel {
  position: fixed; z-index: 10;
  background: linear-gradient(160deg, var(--glass), rgba(4,16,28,0.5));
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  box-shadow: var(--glow), inset 0 0 22px rgba(70,240,255,0.08);
  border-radius: 12px;
}

#topbar {
  top: 14px; left: 14px; right: 14px; height: 58px;
  display: flex; align-items: center; gap: 22px; padding: 0 20px;
}
.title {
  font-family: var(--font-display); font-weight: 900; letter-spacing: 3px;
  font-size: 18px; color: #eafdff; text-shadow: var(--glow);
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
}
.title .glyph { font-size: 20px; color: var(--cyan); }
.status { flex: 1; font-size: 13px; letter-spacing: 1.5px; color: var(--cyan); opacity: 0.85; text-align: center; }
.author { font-size: 11px; letter-spacing: 2px; color: var(--teal); opacity: 0.8; white-space: nowrap; }

#sidebar {
  top: 86px; right: 14px; bottom: 14px; width: 268px; padding: 16px;
  display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
}
.block-h {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 2.5px;
  color: var(--teal); margin-bottom: 8px;
  border-bottom: 1px solid rgba(70,240,255,0.18); padding-bottom: 5px;
}
.turn-indicator {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 4px;
  text-align: center; padding: 10px; border: 1px solid var(--glass-line);
  border-radius: 8px; color: #eafdff; text-shadow: var(--glow);
  background: rgba(70,240,255,0.06);
}
.turn-indicator.magenta { color: #ffd6f4; text-shadow: 0 0 14px rgba(255,77,219,0.6); }

.counts { display: flex; gap: 14px; }
.count {
  flex: 1; text-align: center; padding: 12px 6px;
  border: 1px solid var(--glass-line); border-radius: 8px;
}
.count span { font-family: var(--font-display); font-size: 30px; font-weight: 900; display: block; }
.count small { font-size: 10px; letter-spacing: 2px; opacity: 0.7; }
.count.cyan span { color: var(--cyan); text-shadow: var(--glow); }
.count.magenta span { color: var(--magenta); text-shadow: 0 0 14px rgba(255,77,219,0.6); }

.log { flex: 1; min-height: 60px; font-size: 12px; line-height: 1.55; overflow-y: auto; opacity: 0.92; }
.log .mv { display: flex; gap: 8px; }
.log .num { color: var(--teal); opacity: 0.7; min-width: 26px; }

.controls { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
button {
  font-family: var(--font-display); font-size: 13px; letter-spacing: 2px;
  color: #02101c; background: linear-gradient(180deg, var(--cyan), var(--teal));
  border: none; padding: 11px; border-radius: 8px; cursor: pointer; font-weight: 700;
  box-shadow: 0 0 14px rgba(70,240,255,0.4); transition: transform 0.1s, box-shadow 0.2s;
}
button:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(70,240,255,0.7); }
.toggle {
  font-size: 12px; letter-spacing: 1px; display: flex; align-items: center; gap: 8px;
  cursor: pointer; color: var(--cyan-soft);
}
.toggle input { accent-color: var(--cyan); width: 15px; height: 15px; }

.hint {
  position: fixed; bottom: 16px; left: 14px; z-index: 10;
  font-size: 11px; letter-spacing: 1.5px; color: var(--cyan); opacity: 0.6;
  background: rgba(3,12,22,0.5); padding: 8px 14px; border-radius: 8px;
  border: 1px solid rgba(70,240,255,0.14);
}

.banner {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 28;
  font-family: var(--font-display); font-weight: 900; font-size: 38px; letter-spacing: 6px;
  color: #eafdff; text-shadow: 0 0 24px rgba(70,240,255,0.85);
  padding: 26px 50px; border: 1px solid var(--glass-line); border-radius: 16px;
  background: rgba(3,12,22,0.62); box-shadow: var(--glow); text-align: center;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }

.hidden { display: none !important; }

@media (max-width: 820px) {
  #sidebar { display: none; }
  .title { font-size: 13px; letter-spacing: 1.5px; }
  .author { display: none; }
  .hint { font-size: 9px; }
}
