/* Psycho-Pass / SIBYL SYSTEM UI */

:root {
  --bg-deep: #00000c;
  --bg-panel: rgba(8, 16, 28, 0.92);
  --accent-cyan: #00d4ff;
  --accent-steel: #4682b4;
  --accent-glow: #e0ffff;
  --text-primary: #e8f4fc;
  --text-dim: rgba(224, 255, 255, 0.65);
  --border-glow: rgba(0, 212, 255, 0.45);
  --font-ui: "Segoe UI", "Yu Gothic UI", "Meiryo", sans-serif;
  --font-mono: "Consolas", "Cascadia Mono", "Yu Gothic UI", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(180deg, rgba(0, 0, 12, 0.75) 0%, rgba(0, 0, 12, 0.55) 40%, rgba(0, 0, 12, 0.85) 100%),
    url("../psyco-pass wall.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: min(100vw, 390px) auto;
  color: var(--text-primary);
  font-family: var(--font-ui);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.03) 2px,
    rgba(0, 212, 255, 0.03) 4px
  );
  z-index: 0;
}

.sibyl-shell {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.sibyl-header {
  text-align: center;
  width: 100%;
}

.sibyl-header__badge {
  display: block;
  margin: 0 auto;
  width: 130px;
  height: 130px;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.35));
}

.sibyl-header__title {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-glow);
  opacity: 0.9;
}

.sibyl-panel {
  width: 100%;
  padding: 1.25rem 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-glow);
  box-shadow:
    0 0 24px rgba(0, 212, 255, 0.08),
    inset 0 1px 0 rgba(224, 255, 255, 0.06);
}

.sibyl-panel__label {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-align: center;
}

.sibyl-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sibyl-btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  background: linear-gradient(
    180deg,
    rgba(70, 130, 180, 0.55) 0%,
    rgba(30, 80, 120, 0.65) 100%
  );
  border: 1px solid rgba(224, 255, 255, 0.35);
  outline: 1px solid transparent;
  outline-offset: 2px;
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.sibyl-btn:hover,
.sibyl-btn:focus-visible {
  color: var(--accent-glow);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.25);
  animation: sibyl-pulse 0.8s ease infinite;
}

.sibyl-btn:active {
  transform: scale(0.98);
}

@keyframes sibyl-pulse {
  0%,
  100% {
    outline-color: rgba(224, 255, 255, 0.5);
    outline-offset: 2px;
  }
  50% {
    outline-color: transparent;
    outline-offset: 8px;
  }
}

.sibyl-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.sibyl-controls__pause {
  display: inline-flex;
  padding: 0.25rem;
  border: 1px solid var(--border-glow);
  border-radius: 2px;
  background: rgba(0, 0, 12, 0.6);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sibyl-controls__pause:hover,
.sibyl-controls__pause:focus-visible {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.sibyl-controls__pause img {
  display: block;
  width: 100px;
  height: 100px;
  opacity: 0.95;
}

.sibyl-audio-hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (min-width: 400px) {
  .sibyl-shell {
    padding-top: 2rem;
  }
}
