* ==========================================================================
   1. RESET & GAYA DASAR UTAMA (TEMA FUTURISTIK CYBERPUNK)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0b0f19;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    background-image: 
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ==========================================================================
   2. STRUKTUR SATU KARTU BESAR TUNGGAL (CONTAINER UTAMA)
   ========================================================================== */
.single-big-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    min-height: 600px;
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid #38bdf8;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Menjaga header di atas dan footer di bawah */
    align-items: center;
}

/* Header di Dalam Kartu */
.main-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 50px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 15px;
    width: 100%;
}

.header-text {
    text-align: center;
    width: 100%;
}

.header-text h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.sub-title {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
    text-align: center;
}

/* Gambar Kiri dan Kanan */
.logo-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: auto;
}

.robot-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: auto;
}

/* ==========================================================================
   3. BAR NAVIGASI INTERNAL (TIMER & PAUSE)
   ========================================================================== */
.game-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.timer-box-spec {
    background: #1e1b4b;
    padding: 6px 14px;
    border-radius: 20px;
    border: 2px solid #eab308;
    color: #facc15;
    font-weight: 800;
    font-size: 0.85rem;
}

.pause-btn-spec {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid #f43f5e;
    padding: 5px 12px;
    border-radius: 6px;
    color: #f43f5e;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.pause-btn-spec:hover { background: #f43f5e; color: #fff; }

/* Area Konten Tengah */
.main-content-card {
    text-align: center;
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-content-card h2 {
    color: #f1f5f9;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.desc-text {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 15px;
    line-height: 1.4;
    max-width: 90%;
}

/* ==========================================================================
   4. TOMBOL UMUM & FOOTER NAVIGASI POJOK BAWAH
   ========================================================================== */
.game-btn {
    display: block;
    width: 220px;
    padding: 12px 0;
    margin: 10px auto;
    background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}
.game-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

.text-center-btn {
    text-align: center;
    line-height: 20px;
    text-decoration: none;
}

.card-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    width: 100%;
}

.footer-link {
    font-size: 0.8rem;
    font-weight: bold;
    color: #94a3b8;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}
.footer-link:hover { color: #38bdf8; background: rgba(56, 189, 248, 0.1); }
.btn-highlight { color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.btn-highlight:hover { background: #38bdf8; color: #0f172a; }

/* Kotak Umpan Balik (Feedback) */
.info-feedback-box {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(56, 189, 248, 0.3);
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
#game-message { font-size: 0.85rem; font-weight: bold; color: #e2e8f0; text-align: center; }

/* ==========================================================================
   5. MODAL POP-UP JEDA (PAUSE)
   ========================================================================== */
.hidden { display: none !important; }
.modal {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.modal-content { text-align: center; padding: 20px; }

/* ==========================================================================
   6. ELEMEN SPESIFIK JALANNYA LEVEL 1 & LEVEL 3
   ========================================================================== */
.game-status-spec {
    background: rgba(244, 63, 94, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto 12px;
    border: 1px solid rgba(244, 63, 94, 0.3);
}
.game-status-spec p { color: #ff4d6d; font-weight: bold; font-size: 0.9rem; }

.input-area-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}
#guess-input, #word-input {
    width: 180px;
    padding: 10px;
    background: #0f172a;
    border: 2px solid #475569;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.1rem;
    text-align: center;
    outline: none;
}
#guess-input:focus, #word-input:focus { border-color: #38bdf8; }
.text-btn { width: 150px !important; padding: 10px 0 !important; font-size: 0.9rem !important; }

/* Level 3 Scramble Box */
.scramble-word-box {
    background: rgba(15, 23, 42, 0.65);
    border: 2px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 15px 10px;
    margin-bottom: 15px;
    width: 100%;
}
#scrambled-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 5px;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* ==========================================================================
   7. ELEMEN SPESIFIK LEVEL 2 (KUIS PILIHAN GANDA)
   ========================================================================== */
.quiz-question-box {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 12px;
    text-align: left;
    margin-bottom: 12px;
    width: 100%;
}
#question-text { font-size: 0.82rem; color: #e2e8f0; line-height: 1.4; }

.quiz-options-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    width: 100%;
    align-items: center;
}
.option-btn {
    width: 100%;
    padding: 10px 15px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}
.option-btn:hover:not(:disabled) {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    transform: translateX(4px);
}
.option-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.reset-btn-spec { background: #475569 !important; width: 150px !important; padding: 10px 0 !important; font-size: 0.85rem !important; }

/* ==========================================================================
   8. ELEMEN SPESIFIK SELEKSI LIST LEVEL
   ========================================================================== */
.level-menu-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    width: 100%;
}
.level-card-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 14px;
    text-align: left;
    text-decoration: none;
    display: block;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    width: 100%;
}
.card-badge {
    position: absolute;
    top: 12px; right: 15px;
    background: #0384c7; color: #fff;
    font-size: 0.65rem; font-weight: 800;
    padding: 2px 7px; border-radius: 4px;
}
.level-card-item h3 { font-size: 0.95rem; color: #38bdf8; margin-bottom: 4px; }
.level-card-item p { font-size: 0.75rem; color: #94a3b8; line-height: 1.3; max-width: 82%; }
.card-active:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: #38bdf8;
    transform: translateY(-2px);
}
.card-locked { background: rgba(15, 23, 42, 0.5); border: 1px dashed #334155; opacity: 0.5; cursor: not-allowed; }
.card-locked h3 { color: #64748b; }
.badge-locked { background: #334155; color: #64748b; }

/* ==========================================================================
   9. RESPONSIVE MOBILE (PAS UNTUK LAYAR HP)

   ==========================================================================*/

.peraturan-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 25px;
  border-radius: 10px;
  max-width: 400px;
}
.peraturan-box h4 {
  margin: 0 0 10px 0;
  color: #e94560;
}
.peraturan-box ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #ccc;
}