/* Tema "Arena" khusus aplikasi Muezza Game (MODE_APLIKASI=game). Dimuat SETELAH app.css dan hanya berlaku di <body class="tema-game">,
   jadi aplikasi administrasi tidak berubah sama sekali. Cara kerja: menimpa kelas warna bawaan (bg-white, text-gray-*, dst.)
   menjadi gelap bergaya game: latar ungu sangat tua, kartu gelap tembus pandang, aksen magenta ke ungu (warna logo), biru muda untuk sorotan.
   Aturan Bos (Aurora) tetap: tanpa blur, warna punya arti tetap (hijau berhasil, merah masalah, kuning perhatian), gerak singkat. */
:root {
  --latar: #0a0718;
  --latar-2: #120c2a;
  --kartu: rgba(255, 255, 255, .045);
  --kartu-pekat: #151033;
  --garis: rgba(255, 255, 255, .09);
  --garis-kuat: rgba(255, 255, 255, .16);
  --teks: #eef0ff;
  --teks-2: #b4b6d6;
  --teks-3: #7f82a8;
  --utama: #ff2e88;     /* magenta logo Muezza */
  --utama-2: #8b5cf6;   /* ungu */
  --aksen: #22d3ee;     /* biru muda sorotan */
  --hijau: #34c77b;
  --merah: #ff5d73;
  --kuning: #ffb86b;
  --biru: #60a5fa;
  --gradasi: linear-gradient(135deg, var(--utama) 0%, var(--utama-2) 100%);
}

/* ---------------------------------------------------------------- dasar */
body.tema-game {
  background: var(--latar);
  color: var(--teks);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
}
.tema-game .min-h-screen.bg-gray-100 {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(255, 46, 136, .10), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(34, 211, 238, .08), transparent 60%),
    var(--latar);
  background-attachment: fixed;
}
.tema-game h1, .tema-game h2, .tema-game h3, .tema-game h4 { font-family: 'Sora', 'Inter', sans-serif; letter-spacing: -.01em; }
.tema-game ::selection { background: rgba(255, 46, 136, .35); }

/* ---------------------------------------------------------------- warna latar */
.tema-game .bg-white { background-color: var(--kartu) !important; }
.tema-game .bg-gray-50, .tema-game .bg-gray-100 { background-color: rgba(255, 255, 255, .03) !important; }
.tema-game .bg-gray-200 { background-color: rgba(255, 255, 255, .08) !important; }
.tema-game .hover\:bg-gray-50:hover, .tema-game .hover\:bg-gray-100:hover { background-color: rgba(255, 255, 255, .06) !important; }
.tema-game .shadow, .tema-game .shadow-sm, .tema-game .shadow-md, .tema-game .shadow-lg { box-shadow: none !important; }
.tema-game .shadow-xl { box-shadow: 0 20px 60px rgba(0, 0, 0, .5) !important; }

/* kartu: kotak putih bawaan menjadi kartu gelap bergaris tipis */
.tema-game main .bg-white,
.tema-game main .bg-white.shadow,
.tema-game main .bg-white.overflow-hidden {
  border: 1px solid var(--garis);
  border-radius: 18px !important;
}

/* kepala halaman */
.tema-game header.bg-white {
  background: linear-gradient(180deg, rgba(255, 46, 136, .07), rgba(139, 92, 246, .03)) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--garis) !important;
  border-radius: 0 !important;
}
.tema-game header h2 { font-size: 24px !important; font-weight: 600; color: var(--teks) !important; }
.tema-game header h2::before {
  content: ""; display: inline-block; width: 4px; height: .9em; margin-right: 12px; vertical-align: -2px;
  border-radius: 2px; background: var(--gradasi); box-shadow: 0 0 12px rgba(255, 46, 136, .6);
}

/* ---------------------------------------------------------------- teks */
.tema-game .text-gray-900, .tema-game .text-gray-800 { color: var(--teks) !important; }
.tema-game .text-gray-700, .tema-game .text-gray-600 { color: var(--teks-2) !important; }
.tema-game .text-gray-500, .tema-game .text-gray-400, .tema-game .text-gray-300 { color: var(--teks-3) !important; }
.tema-game .hover\:text-gray-700:hover, .tema-game .hover\:text-gray-500:hover { color: var(--teks) !important; }
.tema-game .text-indigo-600, .tema-game .text-indigo-700, .tema-game .text-blue-600, .tema-game .text-blue-700 { color: var(--aksen) !important; }
.tema-game a.text-indigo-600:hover { color: #67e8f9 !important; }
.tema-game .text-green-600, .tema-game .text-green-700, .tema-game .text-green-800 { color: var(--hijau) !important; }
.tema-game .text-red-500, .tema-game .text-red-600, .tema-game .text-red-700, .tema-game .text-red-800 { color: var(--merah) !important; }
.tema-game .text-amber-600, .tema-game .text-amber-700, .tema-game .text-amber-800,
.tema-game .text-yellow-500, .tema-game .text-yellow-700, .tema-game .text-yellow-800 { color: var(--kuning) !important; }

/* ---------------------------------------------------------------- garis */
.tema-game .border-gray-100, .tema-game .border-gray-200, .tema-game .border-gray-300,
.tema-game .border-gray-400, .tema-game .border-gray-800 { border-color: var(--garis) !important; }
.tema-game .divide-y > :not([hidden]) ~ :not([hidden]),
.tema-game .divide-gray-100 > :not([hidden]) ~ :not([hidden]),
.tema-game .divide-gray-200 > :not([hidden]) ~ :not([hidden]) { border-color: var(--garis) !important; }
.tema-game .border-t, .tema-game .border-b { border-color: var(--garis); }
.tema-game .ring-gray-300 { --tw-ring-color: var(--garis-kuat) !important; }

/* ---------------------------------------------------------------- kotak keterangan berwarna (peringatan) */
.tema-game .bg-green-50, .tema-game .bg-green-100 { background-color: rgba(52, 199, 123, .10) !important; }
.tema-game .bg-red-50, .tema-game .bg-red-100 { background-color: rgba(255, 93, 115, .10) !important; }
.tema-game .bg-amber-50, .tema-game .bg-amber-100, .tema-game .bg-yellow-50, .tema-game .bg-yellow-100 { background-color: rgba(255, 184, 107, .10) !important; }
.tema-game .bg-blue-50, .tema-game .bg-blue-100, .tema-game .bg-indigo-50 { background-color: rgba(96, 165, 250, .10) !important; }
.tema-game .border-green-200 { border-color: rgba(52, 199, 123, .35) !important; }
.tema-game .border-red-200 { border-color: rgba(255, 93, 115, .35) !important; }
.tema-game .border-amber-200, .tema-game .border-yellow-200 { border-color: rgba(255, 184, 107, .35) !important; }
.tema-game .border-blue-200 { border-color: rgba(96, 165, 250, .35) !important; }
.tema-game .bg-green-50, .tema-game .bg-red-50, .tema-game .bg-amber-50, .tema-game .bg-yellow-50, .tema-game .bg-blue-50 { border-radius: 14px; }

/* ---------------------------------------------------------------- tombol */
.tema-game .bg-indigo-600 {
  background-image: var(--gradasi) !important; background-color: var(--utama) !important;
  border: 0 !important; color: #fff !important;
  box-shadow: 0 6px 20px rgba(255, 46, 136, .28);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.tema-game .bg-indigo-600:hover, .tema-game .hover\:bg-indigo-700:hover {
  filter: brightness(1.08); box-shadow: 0 8px 26px rgba(255, 46, 136, .42); transform: translateY(-1px);
}
.tema-game a.bg-indigo-600, .tema-game button.bg-indigo-600, .tema-game .rounded-md { border-radius: 10px !important; }
.tema-game .bg-green-600 { background-color: var(--hijau) !important; color: #06210f !important; }
.tema-game .bg-red-600, .tema-game .bg-red-500 { background-color: var(--merah) !important; color: #fff !important; }
.tema-game button.bg-white, .tema-game a.bg-white.inline-flex {
  background: rgba(255, 255, 255, .06) !important; border: 1px solid var(--garis-kuat) !important; color: var(--teks) !important;
}
.tema-game button.bg-white:hover, .tema-game a.bg-white.inline-flex:hover { background: rgba(255, 255, 255, .10) !important; }

/* ---------------------------------------------------------------- isian */
.tema-game input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]),
.tema-game select, .tema-game textarea {
  background-color: rgba(8, 5, 22, .65) !important;
  color: var(--teks) !important;
  border: 1px solid var(--garis-kuat) !important;
  border-radius: 10px !important;
}
.tema-game input::placeholder, .tema-game textarea::placeholder { color: var(--teks-3) !important; }
.tema-game input:focus, .tema-game select:focus, .tema-game textarea:focus {
  outline: none !important; border-color: var(--utama) !important;
  box-shadow: 0 0 0 3px rgba(255, 46, 136, .22) !important;
}
.tema-game select option { background: var(--kartu-pekat); color: var(--teks); }
.tema-game input[type=date], .tema-game input[type=month], .tema-game input[type=time] { color-scheme: dark; }
.tema-game input[type=checkbox], .tema-game input[type=radio] { accent-color: var(--utama); }
.tema-game input[type=file] { color: var(--teks-2); }
.tema-game input[type=file]::file-selector-button {
  background: rgba(255, 255, 255, .08); color: var(--teks); border: 1px solid var(--garis-kuat); border-radius: 8px; padding: 6px 12px; margin-right: 10px;
}

/* ---------------------------------------------------------------- tabel */
.tema-game table { color: var(--teks-2); }
.tema-game thead, .tema-game thead tr, .tema-game thead.bg-gray-50 { background: rgba(255, 255, 255, .035) !important; }
.tema-game thead th {
  color: var(--teks-3) !important; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
  border-color: var(--garis) !important;
}
.tema-game tbody tr { border-color: var(--garis) !important; }
.tema-game tbody tr:hover { background: rgba(255, 46, 136, .045); }
.tema-game td { border-color: var(--garis) !important; }

/* ---------------------------------------------------------------- menu samping */
.tema-game aside.bg-navy-900, .tema-game .lg\:hidden.bg-navy-900 {
  background: linear-gradient(180deg, #120b2b 0%, #0b0720 100%) !important;
  border-right: 1px solid var(--garis);
}
@media (min-width: 1024px) {
  .tema-game aside { position: sticky !important; top: 0; height: 100vh; }
}
.tema-game aside > div.bg-white img { height: 44px !important; }
.tema-game .lg\:hidden.bg-navy-900 img { height: 32px !important; }
.tema-game aside > div.bg-white {
  background: transparent !important; border-bottom: 1px solid var(--garis) !important; border-radius: 0 !important; padding-top: 22px; padding-bottom: 18px;
}
.tema-game aside nav a, .tema-game aside nav button { color: var(--teks-2) !important; border-radius: 12px !important; }
.tema-game aside nav a:hover, .tema-game aside nav button:hover,
.tema-game aside .hover\:bg-navy-800:hover { background: rgba(255, 255, 255, .06) !important; color: var(--teks) !important; }
.tema-game aside nav .bg-navy-800 { background: rgba(255, 255, 255, .06) !important; color: var(--teks) !important; }
.tema-game aside nav a.bg-indigo-600 {
  background: linear-gradient(90deg, rgba(255, 46, 136, .28), rgba(139, 92, 246, .18)) !important;
  box-shadow: inset 3px 0 0 var(--utama), 0 0 18px rgba(255, 46, 136, .15) !important;
  color: #fff !important; transform: none !important; filter: none !important;
}
.tema-game aside nav .ml-8 a { color: var(--teks-3) !important; position: relative; }
.tema-game aside nav .ml-8 a.text-white { color: #fff !important; background: rgba(255, 46, 136, .12); }
.tema-game aside nav .ml-8 a.text-white::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--utama); box-shadow: 0 0 8px var(--utama);
}
.tema-game aside .border-navy-800, .tema-game .border-navy-800 { border-color: var(--garis) !important; }
.tema-game aside .text-navy-300, .tema-game aside .text-navy-200 { color: var(--teks-3) !important; }
.tema-game aside .h-8.w-8.bg-indigo-600 { box-shadow: 0 0 0 2px rgba(255, 46, 136, .35); transform: none !important; }

/* ---------------------------------------------------------------- jendela munculan (sesi akan berakhir, konfirmasi) */
.tema-game .fixed .bg-white.rounded-lg, .tema-game .fixed .bg-white.shadow-xl {
  background: var(--kartu-pekat) !important; border: 1px solid var(--garis-kuat); border-radius: 18px !important;
}

/* ---------------------------------------------------------------- lencana kecil */
.tema-game .rounded-full.bg-green-100 { color: var(--hijau) !important; }
.tema-game .rounded-full.bg-red-100 { color: var(--merah) !important; }
.tema-game .rounded-full.bg-amber-100, .tema-game .rounded-full.bg-yellow-100 { color: var(--kuning) !important; }
.tema-game .rounded-full.bg-blue-100, .tema-game .rounded-full.bg-gray-100 { color: var(--teks-2) !important; }

/* ---------------------------------------------------------------- halaman masuk */
.tema-game .kotak-masuk {
  background: rgba(12, 8, 32, .58) !important;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px !important;
  padding: 26px 26px 24px !important;
  box-shadow: 0 0 0 1px rgba(255, 46, 136, .12), 0 24px 70px rgba(0, 0, 0, .55), 0 0 40px rgba(139, 92, 246, .18) !important;
}
.tema-game .kotak-masuk label { color: var(--teks-2) !important; }
.tema-game .kotak-masuk button[type=submit] {
  width: 100%; justify-content: center; padding-top: 12px; padding-bottom: 12px; font-size: 13px;
}
.tema-game .judul-masuk { color: var(--teks) !important; font-family: 'Sora', sans-serif; letter-spacing: .35em !important; text-shadow: 0 0 18px rgba(255, 46, 136, .55); }

/* ---------------------------------------------------------------- HP: jarak tepi 12px, kartu tidak menempel layar, halaman tidak bergeser ke samping */
@media (max-width: 639px) {
  .tema-game main [class*="max-w-"] { padding-left: 12px !important; padding-right: 12px !important; }
  .tema-game main .py-12 { padding-top: 20px !important; padding-bottom: 28px !important; }
  .tema-game main form .flex.flex-wrap, .tema-game main form.flex { flex-wrap: wrap; }
  .tema-game header h2 { font-size: 20px !important; }
  .tema-game .lg\:flex.min-h-screen { overflow-x: hidden; }
}

/* ---------------------------------------------------------------- gerak & cetak */
@media (prefers-reduced-motion: reduce) {
  .tema-game * { transition: none !important; transform: none !important; }
}
@media print {
  body.tema-game, .tema-game .min-h-screen.bg-gray-100 { background: #fff !important; color: #000 !important; }
  .tema-game * { color: #000 !important; background: transparent !important; box-shadow: none !important; border-color: #ccc !important; }
}
