* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: radial-gradient(circle at top, #1b263b, #0d1b2a);
  color: #e0e1dd;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

header {
  text-align: center;
}

.moon-icon {
  font-size: 3rem;
  margin-bottom: 0.3rem;
}

h1 {
  font-size: 2.2rem;
  letter-spacing: 4px;
  color: #f8f9fa;
}

.subtitle {
  font-size: 0.9rem;
  color: #778da9;
}

.card {
  background: rgba(27, 38, 59, 0.85);
  border: 1px solid rgba(119, 141, 169, 0.25);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hidden {
  display: none !important;
}

input[type="text"] {
  width: 100%;
  padding: 0.85rem;
  margin: 1rem 0;
  border-radius: 10px;
  border: 1px solid #415a77;
  background: #0d1b2a;
  color: #fff;
  font-size: 1rem;
}

.btn-primary,
.btn-secondary {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary {
  background: #e0aaff;
  color: #10002b;
}

.btn-primary:hover {
  background: #c77dff;
}

.btn-secondary {
  background: #415a77;
  color: #fff;
  margin-top: 1rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #0d1b2a;
  border-radius: 4px;
  margin-bottom: 1.2rem;
  overflow: hidden;
}

#progress {
  height: 100%;
  width: 0%;
  background: #e0aaff;
  transition: width 0.3s ease;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.option-btn {
  background: #0d1b2a;
  color: #e0e1dd;
  border: 1px solid #415a77;
  padding: 0.85rem;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s;
}

.option-btn:hover {
  border-color: #e0aaff;
  background: #162436;
}

#result-screen {
  text-align: center;
}

.leaderboard-section h3 {
  margin-bottom: 0.2rem;
}

.small-note {
  font-size: 0.8rem;
  color: #778da9;
  margin-bottom: 1rem;
}

#leaderboard-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

#leaderboard-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  background: #0d1b2a;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

#leaderboard-list li span:first-child {
  word-break: break-word;
}

.badge-score {
  color: #e0aaff;
  font-weight: bold;
  white-space: nowrap;
}

.welcome-card {
  text-align: center;
}

.badge-welcome {
  display: inline-block;
  background: rgba(224, 170, 255, 0.15);
  color: #e0aaff;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.welcome-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

.greeting-tag {
  font-size: 0.85rem;
  color: #e0aaff;
  margin-bottom: 0.6rem;
}

/* Desain Kartu Hasil Dinamis (Kalkulator) */
.status-card {
  border-radius: 20px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 1px;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 1.2rem;
}

.card-badge {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.card-icon {
  font-size: 3.2rem;
  margin-bottom: 0.4rem;
}

.card-user {
  font-size: 0.9rem;
  opacity: 0.9;
}

.score-box {
  margin: 1rem auto;
  padding: 0.8rem 1.4rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.score-box span {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.score-box small {
  font-size: 0.7rem;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-top: 0.2rem;
}

#result-title {
  font-size: 1.25rem;
  margin-top: 0.4rem;
}

.status-card .comment {
  font-size: 0.92rem;
  margin: 0.8rem 0 1.4rem;
  line-height: 1.5;
  font-style: italic;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  opacity: 0.65;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 0.8rem;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* --- 4 TEMA BERDASARKAN SKOR --- */
.theme-merdeka {
  background: linear-gradient(145deg, #064e3b, #022c22);
  border: 2px solid #34d399;
  color: #ecfdf5;
}
.theme-merdeka .score-box span {
  color: #34d399;
}

.theme-rawan {
  background: linear-gradient(145deg, #78350f, #451a03);
  border: 2px solid #fbbf24;
  color: #fffbeb;
}
.theme-rawan .score-box span {
  color: #fbbf24;
}

.theme-akut {
  background: linear-gradient(145deg, #7c2d12, #431407);
  border: 2px solid #fb923c;
  color: #fff7ed;
}
.theme-akut .score-box span {
  color: #fb923c;
}

.theme-parah {
  background: linear-gradient(145deg, #701a75, #3b0764);
  border: 2px solid #f472b6;
  color: #fdf4ff;
}
.theme-parah .score-box span {
  color: #f472b6;
}

/* Kotak Input Opsi Isi Sendiri (Pertanyaan No. 7) */
.custom-input-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #140721;
  border: 1px solid #e0aaff;
  padding: 0.75rem;
  border-radius: 10px;
}

.custom-input-box input[type="text"] {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.92rem;
}

/* ========================================== */
/* PORTAL MENU & WARNA KARTU SESUAI TEMA      */
/* ========================================== */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.portal-card {
  display: block;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.portal-card:hover {
  transform: translateY(-4px);
}

.portal-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.portal-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.portal-card p {
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.portal-cta {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
}

/* 1. Kartu Portal Kalkulator (Ungu Gelap Galau) */
.portal-calc {
  background: linear-gradient(145deg, #2a103d 0%, #170824 100%);
  border: 1px solid rgba(224, 170, 255, 0.35);
}

.portal-calc:hover {
  border-color: #f472b6;
  box-shadow: 0 10px 25px rgba(244, 114, 182, 0.2);
}

.portal-calc h3 {
  color: #fdf4ff;
}

.portal-calc p {
  color: #d8b4fe;
}

.portal-calc .portal-cta {
  color: #f472b6;
}

/* 2. Kartu Portal Let's Say (Putih Gading Lembut / Tidak Silau) */
.portal-letssay {
  background: linear-gradient(145deg, #f4f4f6 0%, #e4e4e7 100%);
  border: 1px solid #cbd5e1;
}

.portal-letssay:hover {
  border-color: #94a3b8;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.14);
}

.portal-letssay h3 {
  color: #0f172a;
}

.portal-letssay p {
  color: #475569;
}

.portal-letssay .portal-cta {
  color: #0f172a;
}

/* 3. Kartu Portal TTL (Hitam Pekat & Biru Elektrik) */
.portal-ttl {
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(145deg, #090d16 0%, #0f172a 100%);
}

.portal-ttl:hover {
  border-color: #38bdf8;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.2);
}

.portal-ttl h3 {
  color: #ffffff;
}

.portal-ttl p {
  color: #94a3b8;
}

.portal-ttl .portal-cta {
  color: #38bdf8;
}

.btn-back {
  display: inline-block;
  align-self: flex-start;
  text-decoration: none;
  background: transparent;
  border: 1px solid #415a77;
  color: #a9b8c9;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-back:hover {
  border-color: #e0aaff;
  color: #fff;
}

/* ========================================== */
/* TEMA VELVET TWILIGHT KHUSUS KALKULATOR GAMON */
/* ========================================== */
body.theme-calc {
  background: radial-gradient(
    circle at top,
    #2e1042 0%,
    #150821 55%,
    #0c0414 100%
  );
}

body.theme-calc .card {
  background: rgba(34, 15, 51, 0.85);
  border: 1px solid rgba(216, 180, 254, 0.2);
  box-shadow: 0 10px 30px rgba(10, 2, 20, 0.5);
}

body.theme-calc input[type="text"],
body.theme-calc .option-btn,
body.theme-calc #leaderboard-list li,
body.theme-calc .custom-input-box {
  background: #140721;
  border-color: #4c236b;
}

body.theme-calc .option-btn:hover {
  background: #230d38;
  border-color: #f472b6;
}

body.theme-calc .btn-primary {
  background: linear-gradient(135deg, #e0aaff 0%, #f472b6 100%);
  color: #160424;
}

body.theme-calc .btn-primary:hover {
  opacity: 0.92;
}

body.theme-calc .btn-secondary {
  background: #3b1854;
}

body.theme-calc .btn-back {
  border-color: #4c236b;
  color: #d8b4fe;
}

body.theme-calc .btn-back:hover {
  border-color: #f472b6;
  color: #ffffff;
}

/* ========================================== */
/* TEMA PUTIH LEMBUT & FONT UNIK LET'S SAY    */
/* ========================================== */
body.theme-light {
  background: #f1f2f6;
  background-image: radial-gradient(#d8dce6 1px, transparent 1px);
  background-size: 22px 22px;
  color: #1e293b;
  font-family: "Plus Jakarta Sans", sans-serif;
}

body.theme-light header h1 {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 2.6rem;
  letter-spacing: 1px;
  color: #0f172a;
}

body.theme-light .subtitle {
  color: #64748b;
}

body.theme-light .btn-back {
  background: #f8f9fa;
  border-color: #cbd5e1;
  color: #475569;
}

body.theme-light .btn-back:hover {
  border-color: #0f172a;
  color: #0f172a;
}

body.theme-light .card {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

body.theme-light .badge-welcome {
  background: #e2e8f0;
  color: #0f172a;
}

body.theme-light h2,
body.theme-light h3 {
  font-family: "Playfair Display", serif;
  color: #0f172a;
}

body.theme-light .welcome-desc,
body.theme-light .form-group label,
body.theme-light .char-counter {
  color: #64748b;
}

.form-group {
  text-align: left;
  margin-bottom: 1rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

body.theme-light .form-group input[type="text"],
body.theme-light .form-group textarea,
body.theme-light #search-menfess-input {
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

body.theme-light .form-group input[type="text"]:focus,
body.theme-light .form-group textarea:focus,
body.theme-light #search-menfess-input:focus {
  background: #ffffff;
  border-color: #0f172a;
}

.char-counter {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

body.theme-light .btn-primary {
  background: #0f172a;
  color: #ffffff;
}

body.theme-light .btn-primary:hover {
  background: #334155;
}

body.theme-light .btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

/* Mood Picker (Pilihan Nuansa Kertas) */
.mood-picker {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.mood-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  cursor: pointer;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.mood-dot:hover {
  transform: scale(1.1);
}

.mood-dot.active {
  border-color: #0f172a;
  transform: scale(1.15);
  box-shadow:
    0 0 0 2px #f8f9fa,
    0 0 0 4px #0f172a;
}

.mood-dot[data-mood="midnight"] {
  background: #f8f9fa;
}
.mood-dot[data-mood="plum"] {
  background: #f3e8ff;
}
.mood-dot[data-mood="forest"] {
  background: #ecfdf5;
}
.mood-dot[data-mood="espresso"] {
  background: #fef3c7;
}
body.theme-light .mood-dot[data-mood="obsidian"] {
  background: #18181b;
}
body.theme-light .mood-dot[data-mood="navy"] {
  background: #1e293b;
}
body.theme-light .mood-dot[data-mood="burgundy"] {
  background: #4c0519;
}

/* Dropdown Pencarian Lagu */
.song-dropdown {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  margin-top: 0.4rem;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.song-option-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}

.song-option-item:last-child {
  border-bottom: none;
}

.song-option-item:hover {
  background: #f8fafc;
}

.song-option-item img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.song-option-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.song-option-text strong {
  font-size: 0.9rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-option-text span {
  font-size: 0.78rem;
  color: #64748b;
}

/* Lagu Terpilih */
.selected-song {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f1f5f9;
  border: 1px solid #0f172a;
  padding: 0.65rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  text-align: left;
}

.selected-song img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.sel-song-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sel-song-info strong {
  font-size: 0.92rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sel-song-info span {
  font-size: 0.8rem;
  color: #64748b;
}

.btn-remove-song {
  background: rgba(244, 114, 182, 0.15);
  border: none;
  color: #e11d48;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
}

/* Header & List Feed Menfess */
.feed-header {
  margin-bottom: 1rem;
  text-align: left;
}

.feed-header h3 {
  margin-bottom: 0.6rem;
}

.menfess-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}

/* Kartu Menfess Gaya "Vinyl Letter" */
.menfess-item {
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
  position: relative;
  transition: transform 0.2s ease;
}

.menfess-item:hover {
  transform: translateY(-2px);
}

/* 4 Warna Kertas Terang */
.mood-midnight {
  background: #f8f9fa;
}
.mood-plum {
  background: linear-gradient(160deg, #faf5ff, #f3e8ff);
}
.mood-forest {
  background: linear-gradient(160deg, #f0fdf4, #dcfce7);
}
.mood-espresso {
  background: linear-gradient(160deg, #fffbeb, #fef3c7);
}

/* 3 Warna Kertas Gelap (Font Putih) */
body.theme-light .mood-obsidian {
  background: linear-gradient(160deg, #27272a, #09090b);
  border-color: #3f3f46;
}

body.theme-light .mood-navy {
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border-color: #334155;
}

body.theme-light .mood-burgundy {
  background: linear-gradient(160deg, #4c0519, #27040e);
  border-color: #881337;
}

.mf-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px dashed #cbd5e1;
  font-size: 0.85rem;
}

.mf-to {
  color: #475569;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.mf-to span {
  color: #0f172a;
  font-weight: 700;
}

.mf-date {
  color: #94a3b8;
  font-size: 0.75rem;
  font-family: monospace;
}

/* Isi Pesan Bergaya Tulisan Tangan */
.mf-body {
  font-family: "Caveat", cursive;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.4;
  color: #0f172a;
  margin-bottom: 1.1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Kotak Pemutar Lagu ala Mini Vinyl Player */
.mf-music-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e2e8f0;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
}

.vinyl-wrapper {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.vinyl-wrapper img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(15, 23, 42, 0.2);
}

.vinyl-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spinVinyl {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.menfess-item.is-playing .vinyl-wrapper img {
  animation: spinVinyl 4s linear infinite;
  border-color: #0f172a;
}

.mf-music-meta {
  flex: 1;
  overflow: hidden;
}

.mf-music-meta strong {
  display: block;
  font-size: 0.88rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mf-music-meta span {
  display: block;
  font-size: 0.76rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-play-preview {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.btn-play-preview:hover {
  background: #334155;
}

.btn-play-preview.playing {
  background: #e11d48;
  color: #ffffff;
}

/* Penyesuaian Font Putih di Dalam 3 Kartu Gelap */
body.theme-light .mood-obsidian .mf-top,
body.theme-light .mood-navy .mf-top,
body.theme-light .mood-burgundy .mf-top {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

body.theme-light .mood-obsidian .mf-to,
body.theme-light .mood-navy .mf-to,
body.theme-light .mood-burgundy .mf-to {
  color: rgba(255, 255, 255, 0.75);
}

body.theme-light .mood-obsidian .mf-to span,
body.theme-light .mood-navy .mf-to span,
body.theme-light .mood-burgundy .mf-to span,
body.theme-light .mood-obsidian .mf-body,
body.theme-light .mood-navy .mf-body,
body.theme-light .mood-burgundy .mf-body,
body.theme-light .mood-obsidian .mf-music-meta strong,
body.theme-light .mood-navy .mf-music-meta strong,
body.theme-light .mood-burgundy .mf-music-meta strong {
  color: #ffffff;
}

body.theme-light .mood-obsidian .mf-date,
body.theme-light .mood-navy .mf-date,
body.theme-light .mood-burgundy .mf-date {
  color: rgba(255, 255, 255, 0.5);
}

body.theme-light .mood-obsidian .mf-music-box,
body.theme-light .mood-navy .mf-music-box,
body.theme-light .mood-burgundy .mf-music-box {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

body.theme-light .mood-obsidian .mf-music-meta span,
body.theme-light .mood-navy .mf-music-meta span,
body.theme-light .mood-burgundy .mf-music-meta span {
  color: rgba(255, 255, 255, 0.65);
}

body.theme-light .mood-obsidian .vinyl-wrapper::after,
body.theme-light .mood-navy .vinyl-wrapper::after,
body.theme-light .mood-burgundy .vinyl-wrapper::after {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.4);
}

body.theme-light .mood-obsidian .btn-play-preview,
body.theme-light .mood-navy .btn-play-preview,
body.theme-light .mood-burgundy .btn-play-preview {
  background: #ffffff;
  color: #0f172a;
}

body.theme-light .mood-obsidian .btn-play-preview:hover,
body.theme-light .mood-navy .btn-play-preview:hover,
body.theme-light .mood-burgundy .btn-play-preview:hover {
  background: #e2e8f0;
}

body.theme-light .mood-obsidian .btn-play-preview.playing,
body.theme-light .mood-navy .btn-play-preview.playing,
body.theme-light .mood-burgundy .btn-play-preview.playing {
  background: #fb7185;
  color: #ffffff;
}

/* ================================================== */
/* TEMA HITAM & SENTUHAN BIRU KHUSUS GAME TTL         */
/* ================================================== */
body.theme-ttl {
  background: radial-gradient(
    circle at top,
    #0a192f 0%,
    #05070a 55%,
    #000000 100%
  );
  color: #f8fafc;
}

body.theme-ttl .card {
  background: rgba(10, 14, 23, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75);
}

body.theme-ttl .badge-welcome {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
}

body.theme-ttl input[type="text"],
body.theme-ttl .ttl-select,
body.theme-ttl .option-btn {
  width: 100%;
  margin: 0;
  padding: 0.8rem 0.95rem;
  border-radius: 10px;
  background: #06090f;
  border: 1px solid #1e293b;
  color: #f8fafc;
  font-size: 0.95rem;
  outline: none;
}

body.theme-ttl input[type="text"]:focus,
body.theme-ttl .ttl-select:focus {
  border-color: #38bdf8;
}

body.theme-ttl .btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #030712;
  font-weight: 800;
}

body.theme-ttl .btn-primary:hover {
  filter: brightness(1.1);
}

body.theme-ttl .btn-secondary {
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #38bdf8;
}

body.theme-ttl .btn-back {
  border-color: #1e293b;
  color: #7dd3fc;
}

body.theme-ttl .btn-back:hover {
  border-color: #38bdf8;
  color: #ffffff;
}

body.theme-ttl #ttl-progress {
  height: 100%;
  width: 0%;
  background: #38bdf8;
  transition: width 0.3s ease;
}

/* HUD & Equalizer Game TTL */
.ttl-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.ttl-timer {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.ttl-timer.timer-danger {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
}

.ttl-player-box {
  background: #06090f;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.ttl-player-box p {
  font-size: 0.85rem;
  color: #7dd3fc;
  margin: 0.65rem 0 0.8rem;
}

.equalizer {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  height: 28px;
}

.equalizer span {
  width: 5px;
  height: 8px;
  background: #38bdf8;
  border-radius: 3px;
  transition: height 0.2s;
}

@keyframes eqBounce {
  0%,
  100% {
    height: 6px;
  }
  50% {
    height: 26px;
  }
}

.equalizer.active span:nth-child(1) {
  animation: eqBounce 0.6s infinite 0.1s;
}
.equalizer.active span:nth-child(2) {
  animation: eqBounce 0.5s infinite 0.3s;
}
.equalizer.active span:nth-child(3) {
  animation: eqBounce 0.7s infinite 0s;
}
.equalizer.active span:nth-child(4) {
  animation: eqBounce 0.55s infinite 0.2s;
}
.equalizer.active span:nth-child(5) {
  animation: eqBounce 0.65s infinite 0.4s;
}

.btn-replay {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-replay:hover {
  background: #38bdf8;
  color: #030712;
}

body.theme-ttl .option-btn:hover:not(:disabled) {
  border-color: #38bdf8;
  background: #0b1322;
}

body.theme-ttl .option-btn.opt-correct {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #ecfdf5;
}

body.theme-ttl .option-btn.opt-wrong {
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
  color: #ffe4e6;
}

.ttl-card-theme {
  background: linear-gradient(155deg, #090d16 0%, #0c2340 100%);
  border: 2px solid #38bdf8;
  color: #f8fafc;
}

.ttl-card-theme .score-box span {
  color: #38bdf8;
}

#ttl-leaderboard-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

#ttl-leaderboard-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  background: #06090f;
  border: 1px solid #1e293b;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

body.theme-ttl .badge-score {
  color: #38bdf8;
}

.ttl-lives {
  font-size: 1rem;
  letter-spacing: 2px;
}
