:root {
  --bg-overlay: rgba(0, 0, 0, .78);
  --panel: rgba(0, 0, 0, .60);
  --panel-soft: rgba(255, 255, 255, 0.08);
  --accent: #ff2a2a;
  --accent-2: #ff5656;
  --ink: #fff;
  --hover-glow: 0 0 22px rgba(255, 42, 42, .75), 0 0 8px rgba(255, 42, 42, .45);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
* { box-sizing: border-box; }
html, body { 
  height: 100%; 
  background: #050505; 
  overflow-x: hidden;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: 'Orbitron', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
}
.page-bg {
  position: fixed;
  inset: -50px;
  z-index: -1;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.9)),
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.2) 50%
  );
  background-size: 100% 4px;
  z-index: 2;
  animation: scanline 10s linear infinite;
  pointer-events: none;
}
@keyframes scanline {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}
@keyframes backgroundMove {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.1) translate(20px, 20px); }
}
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px clamp(12px, 2.5vw, 24px) 60px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.logo-text { font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.menu { display: flex; flex-wrap: wrap; gap: 10px; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(23, 23, 23, 0.8);
  color: #ccc;
  border: 1px solid #333;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: .85rem;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
}
.tab:hover { 
  transform: translateY(-2px); 
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--hover-glow);
}
.tab.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 42, 42, 0.4);
  font-weight: 700;
}
.section { display: none; animation: fadeIn 0.4s ease-out; }
.section.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.card {
  background: var(--panel);
  border: 1px solid var(--panel-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.card h1 { margin: 0 0 12px; color: var(--accent); font-size: 2rem; letter-spacing: -0.5px; }
.card h2 { margin: 0 0 10px; color: var(--accent); font-size: 1.2rem; }
.tagline { opacity: .85; margin: 0 0 12px; font-weight: 400; }
.hero .quote {
  margin: 16px 0 24px;
  padding: 14px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 42, 42, 0.1);
  border-radius: 8px;
  font-style: italic;
  font-size: 1.1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #5b00ff, #9b00ff);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all .2s ease;
}
.btn.strong { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.btn.ghost { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(255, 42, 42, 0.4); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.sc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-soft);
  font-size: 0.9rem;
}
.sc kbd {
  background: #000;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.8rem;
  color: var(--accent);
}
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.anime-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.anime-col h3 {
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.anime-col .link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: default;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.anime-col .link-row:hover {
  background: rgba(255, 42, 42, 0.05);
  border-color: rgba(255, 42, 42, 0.4);
  transform: translateX(5px);
  box-shadow: var(--hover-glow);
}
.status-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}
.status-badge.finished { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); }
.status-badge.active { background: rgba(255, 42, 42, 0.15); color: var(--accent); border: 1px solid var(--accent); }
.wheel-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px auto;
  width: fit-content;
}
.pointer {
  position: absolute;
  top: -15px; 
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 25px solid var(--accent); 
  z-index: 10;
  filter: drop-shadow(0 0 12px var(--accent));
}
#wheelCanvas {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: #0d0d0d;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.9), 0 0 40px rgba(255, 42, 42, 0.2);
  border: 5px solid #1a1a1a;
}
.result {
  margin: 20px 0;
  text-align: center;
  min-height: 28px;
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.link-list { display: grid; gap: 10px; }
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-soft);
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}
.link-row:hover { background: rgba(255, 42, 42, 0.1); border-color: var(--accent); transform: scale(1.02); }
.footer {
  text-align: center;
  padding: 40px 0;
  opacity: 0.4;
  font-size: 0.8rem;
  border-top: 1px solid var(--panel-soft);
}
.card h1 {
  position: relative;
  display: inline-block;
}
.card h1:hover {
  animation: glitch 0.3s cubic-bezier(.25,.46,.45,.94) both infinite;
  color: #fff;
  text-shadow: 2px 0 var(--accent), -2px 0 #00fff2;
}
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}
#cursor-dot, #cursor-outline {
  position: fixed;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}
#cursor-dot {
  width: 8px; height: 8px;
  background-color: var(--accent);
}
#cursor-outline {
  width: 40px; height: 40px;
  border: 2px solid var(--accent);
  transition: all 0.15s ease-out;
}
.system-status {
  font-size: 0.6rem;
  margin-left: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  opacity: 0.6;
}
.pulse {
  animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(255, 42, 42, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 42, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 42, 42, 0); }
}
