/* ==========================================================================
   PENGATURAN TATA LETAK HEADER (LOGO - JUDUL - ROBOT)
   ========================================================================== */
body {
    /* 1. Warna dasar gelap kebiruan bertema teknologi */
    background-color: #0b0f19;
    
    /* 2. Efek garis kotak-kotak (grid) digital cyberpunk */
    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);
    
    /* 3. Ukuran kotak grid (30px x 30px) agar terlihat estetik */
    background-size: 30px 30px;
    
    /* Pengaturan tampilan utama agar selalu di tengah */
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    overflow-x: hidden;
}
.single-big-card {
    position: relative;
    width: 100%;
    max-width: 600px;
    min-height: 650px; /* Tinggi kartu diperbesar agar muat semua elemen */
    background: rgba(30, 41, 59, 0.75); /* Kaca transparan cyberpunk */
    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 footer tetap di paling bawah kartu */
}

/* Header di dalam kartu */
.main-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: justify;
    padding: 15px 65px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 15px;
}

.header-text {
    text-align: justify;
}

.header-text h1 {
    font-size: 1.4rem;
    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;
}

/* Pengunci Gambar di Kiri dan Kanan dalam Header */
.logo-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: auto;
}

.robot-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: auto;
}

/* Bar Navigasi Atas Game (Timer & Pause) */
.game-nav {
    display: flex;
    justify-content: space-between;
    align-items: justify;
    margin-bottom: 20px;
}

/* Timer Kuning Terang */
.timer-box-spec {
    background: #1e1b4b;
    padding: 6px 14px;
    border-radius: 20px;
    border: 2px solid #eab308;
    color: #facc15;
    font-weight: 800;
    font-size: 0.9rem;
}

/* Tombol Pause Merah */
.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;
}
.pause-btn-spec:hover { background: #f43f5e; color: #fff; }

/* Area Tengah Isi Permainan */
.main-content-card {
    text-align: justify;
    flex-grow: 1;
}

.main-content-card h2 {
    color: #f1f5f9;
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.desc-text {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

/* Kotak Nyawa */
.game-status-spec {
    background: rgba(244, 63, 94, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto 15px;
    border: 1px solid rgba(244, 63, 94, 0.3);
}
.game-status-spec p {
    color: #ff4d6d;
    font-weight: bold;
    font-size: 0.95rem;
}

/* Input Area */
.input-area-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

#guess-input {
    width: 180px;
    padding: 10px;
    background: #0f172a;
    border: 2px solid #38bdf8;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.2rem;
    text-align: center;
    outline: none;
}

/* Kotak Petunjuk Tebakan (Feedback) */
.info-feedback-box {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(56, 189, 248, 0.3);
    padding: 12px;
    border-radius: 8px;
    width: 90%;
    margin: 0 auto;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

#game-message {
    font-size: 0.9rem;
    font-weight: bold;
    color: #e2e8f0;
    line-height: 1.4;
}

/* Bagian Footer Pojok Bawah Kartu */
.card-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
}

.footer-link {
    font-size: 0.85rem;
    font-weight: bold;
    color: #94a3b8;
    text-decoration: none;
    padding: 6px 14px;
    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;
}

/* Klas Sembunyi & Jendela Modal */
.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; }

.footer-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px 40px;
  gap: 20px;
}
.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;
}