:root {
  --bg: #0b0c10;
  --tx: #45f248;
}

* {
  margin: 0; padding: 0; box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--tx);
  font-family: 'VT323', 'BoutiqueBitmap9x9_1_6', 'BoutiqueBitmap9x9', monospace;
  height: 100vh;
  overflow: hidden;
  position: relative;
  /* CRT Flicker */
  animation: flicker 0.15s infinite;
  
  /* Prevent text selection */
  -webkit-user-select: none;
  user-select: none;
}

/* CRT Scanlines */
body::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 99999;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}
body::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,0.4) 100%);
  z-index: 99999;
  pointer-events: none;
}

@keyframes flicker {
  0% { opacity: 0.98; }
  50% { opacity: 1; }
  100% { opacity: 0.98; }
}

/* ────────────────────────────────────────
   TERMINAL VIEW & LAYOUT
   ──────────────────────────────────────── */

.terminal-view {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  padding: 30px;
}
.t-hdr {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 2px solid #1a5e1b;
  padding-bottom: 10px; margin-bottom: 20px;
}
.t-hdr-title { font-size: 42px; text-transform: uppercase; }
.t-hdr-tag { font-size: 20px; color: #66fcf1; }

.t-split {
  flex: 1; display: flex; gap: 30px; overflow: hidden;
}
.t-left {
  flex: 1; border-right: 2px solid #1a5e1b; padding-right: 20px;
  overflow-y: auto; display: flex; flex-direction: column;
}
.t-right {
  flex: 1; padding-left: 10px; overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}

.t-lyrics-panel {
  flex: 1; overflow-y: auto; padding-right: 10px;
}

/* ────────────────────────────────────────
   TERMINAL FORMS & BUTTONS
   ──────────────────────────────────────── */

.t-auth-view {
  display: flex; justify-content: center; align-items: center;
  flex-direction: column; max-width: 600px; margin: 0 auto;
}
.t-form { width: 100%; }
.t-field { margin-bottom: 15px; display: flex; align-items: center; }
.t-field label { width: 120px; font-size: 24px; color: #66fcf1; }
.t-input {
  flex: 1; background: transparent; border: none; border-bottom: 1px dashed #1a5e1b;
  color: var(--tx); font-family: 'VT323', 'BoutiqueBitmap9x9_1_6', 'BoutiqueBitmap9x9', monospace; font-size: 24px;
  outline: none; padding: 5px;
  -webkit-user-select: auto;
  user-select: auto;
}
.t-input:focus { border-bottom-color: #45f248; }

.t-btn {
  background: transparent; color: var(--tx); font-family: 'VT323', 'BoutiqueBitmap9x9_1_6', 'BoutiqueBitmap9x9', monospace;
  font-size: 22px; border: 1px dashed #1a5e1b; padding: 5px 15px;
  cursor: pointer; transition: all 0.2s;
}
.t-btn:hover { background: #1a5e1b; color: #0b0c10; }

.t-link { color: #66fcf1; text-decoration: none; cursor: pointer; }
.t-link:hover { text-decoration: underline; color: #45f248; }

.t-error { color: #ff375f; font-size: 20px; margin-bottom: 15px; min-height: 20px; }

/* ────────────────────────────────────────
   TERMINAL ITEMS (TRACKS & PANELS)
   ──────────────────────────────────────── */

.item { margin-bottom: 30px; }
.item-title {
  color: #66fcf1; border-bottom: 1px solid #1a5e1b;
  padding-bottom: 5px; margin-bottom: 10px; font-size: 28px;
}
.item-desc { font-size: 22px; line-height: 1.4; }
.t-lyrics-content { white-space: pre-wrap; font-family: 'VT323', 'BoutiqueBitmap9x9_1_6', 'BoutiqueBitmap9x9', monospace; }

.t-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.t-item {
  border: 1px dashed #1a5e1b; padding: 10px 15px; cursor: pointer; transition: none; display: flex; justify-content: space-between;
}
.t-item:hover { border-color: #66fcf1; color: #66fcf1; }
.t-item.active { background: #1a5e1b; color: #45f248; border-color: #45f248; cursor: default; pointer-events: none; }
.t-item-title { font-size: 22px; }
.t-item-dur { font-size: 20px; opacity: 0.7; }

/* ────────────────────────────────────────
   CURSORS
   ──────────────────────────────────────── */

.prompt::before { content: "> "; color: #45f248; }
.prompt::after {
  content: "█"; margin-left: 8px; animation: blink 1s step-end infinite;
}
.t-cursor-inline {
  display: inline-block; width: 12px; height: 24px; background: #45f248;
  vertical-align: middle; animation: blink 1s step-end infinite; margin-left: 4px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ────────────────────────────────────────
   TERMINAL TRANSITION SCREEN
   ──────────────────────────────────────── */

.t-screen {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: #45f248; color: #0b0c10;
  display: flex; align-items: center; justify-content: center;
  z-index: 10000; pointer-events: none;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}
.t-content { font-family: 'VT323', 'BoutiqueBitmap9x9_1_6', 'BoutiqueBitmap9x9', monospace; text-align: center; }
.t-label { font-size: 64px; font-weight: bold; margin-bottom: 20px; }
.t-screen .t-cursor {
  width: 40px; height: 60px; background: #0b0c10;
  margin: 0 auto; animation: blink 1s step-end infinite;
}

/* ────────────────────────────────────────
   SCROLLBAR
   ──────────────────────────────────────── */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0b0c10; border-left: 1px dashed #1a5e1b; }
::-webkit-scrollbar-thumb { background: #1a5e1b; }
::-webkit-scrollbar-thumb:hover { background: #45f248; }

/* ────────────────────────────────────────
   MOBILE BLOCKER
   ──────────────────────────────────────── */

.mobile-blocker {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg); color: var(--tx);
  align-items: center; justify-content: center;
  text-align: center; padding: 30px;
}
.mobile-blocker-content {
  max-width: 400px;
}
.mobile-blocker-content h2 {
  font-size: 24px; margin-bottom: 12px; color: var(--tx);
}
.mobile-blocker-content p {
  color: #1a5e1b; font-size: 15px; line-height: 1.5;
}

@media (max-aspect-ratio: 133/100), (max-width: 768px), (max-height: 450px) {
  .mobile-blocker { display: flex !important; }
  .terminal-view, .t-screen { display: none !important; }
}
