
:root {
  --bg: #090817;
  --panel: #15142b;
  --panel2: #1d1b38;
  --line: #383455;
  --gold: #facc15;
  --purple: #8b5cf6;
  --red: #fb536b;
  --blue: #38bdf8;
  --muted: #aaa6c4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, #25204d 0%, var(--bg) 55%);
  color: #f8fafc;
  font-family: Inter, Arial, sans-serif;
}

button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.topbar {
  min-height: 70px;
  padding: 12px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: #080716eF;
  border-bottom: 1px solid #393052;
}

.brand, .top-actions, .arena-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--gold);
  border: 2px solid #fff0a6;
  font-size: 22px;
}

.brand small, .brand strong { display: block; }
.brand small, .eyebrow {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
}
.brand strong { font-size: 14px; margin-top: 4px; }

.container {
  width: min(1100px, 94%);
  margin: 28px auto 55px;
}

.panel {
  background: linear-gradient(145deg, #191832, #111020);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 30px #0004;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .5px;
  transition: .2s;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #171326;
  background: linear-gradient(100deg, #fde047, #f59e0b);
}
.btn-outline {
  color: #e6e2f5;
  background: #17152b;
  border-color: #51466e;
}
.btn-danger {
  color: white;
  background: #b91c3b;
  border-color: #fb7185;
}
.btn-danger:hover { background: #e11d48; }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section-heading h1, .section-heading h2 {
  margin: 7px 0;
}
.section-heading h1 { font-size: clamp(21px, 4vw, 30px); }
.section-heading p, .small-muted {
  color: var(--muted);
  font-size: 12px;
}
.compact { padding-bottom: 13px; }
.compact h2 { font-size: 19px; }

.notice {
  padding: 30px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.quiz-list { display: grid; gap: 12px; margin-top: 18px; }

.quiz-item {
  padding: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: #0e0d1e;
  border: 1px solid #383455;
  border-radius: 10px;
}
.quiz-item h3 { margin: 8px 0 5px; }
.quiz-item p { margin: 0; color: var(--muted); font-size: 11px; }
.quiz-tag {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
}

.arena-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.arena-heading h1 {
  margin: 6px 0 0;
  font-size: clamp(20px, 4vw, 28px);
}

.question-panel { border-color: #7961b5; }
.question-meta {
  display: flex;
  justify-content: space-between;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
}
.timer-label { color: var(--muted); }
.question-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
}
.question-main h2 {
  font-size: clamp(20px, 4vw, 32px);
  line-height: 1.3;
  text-transform: uppercase;
  margin: 0;
}
.timer-wrap {
  flex: 0 0 76px;
  height: 76px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0b0a1b;
}
.timer-value { font-size: 26px; font-weight: 900; }
.timer-unit { color: var(--gold); font-size: 8px; font-weight: 900; }
.timer-track {
  height: 6px;
  background: #383455;
  border-radius: 20px;
  overflow: hidden;
}
.timer-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #22c55e, var(--gold));
  transition: width 1s linear;
}
.timer-bar.danger { background: #ef4444; }

.teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}
.team-card {
  color: white;
  padding: 17px;
  border-radius: 13px;
  background: #151426;
  border: 2px solid #45415d;
  text-align: left;
  display: grid;
  gap: 6px;
  transition: .2s;
}
.team-red.active { border-color: var(--red); box-shadow: 0 0 20px #fb536b30; }
.team-blue.active { border-color: var(--blue); box-shadow: 0 0 20px #38bdf830; }
.team-red .team-caption, .red-result span { color: var(--red); }
.team-blue .team-caption, .blue-result span { color: var(--blue); }
.team-caption { font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.team-card strong { font-size: 15px; }
.team-score { font-size: 36px; font-weight: 1000; }
.team-hint { font-size: 9px; color: var(--muted); }

.strike-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}
.strike-panel h3 { margin: 6px 0 0; font-size: 16px; }
.strike-board { display: flex; gap: 9px; }
.strike-board span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #55516d;
  border-radius: 8px;
  color: #4b4860;
  font-size: 22px;
  font-weight: 900;
}
.strike-board span.used {
  color: #fff;
  background: #be123c;
  border-color: #fb7185;
  box-shadow: 0 0 12px #fb536b50;
}

.answer-section, .options-section { margin-top: 16px; }
.counter-pill {
  padding: 7px 10px;
  border-radius: 20px;
  color: var(--gold);
  background: #332a16;
  font-size: 9px;
  font-weight: 900;
}
.answer-board {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}
.answer-slot {
  display: grid;
  grid-template-columns: 42px 1fr 65px;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  padding: 8px 12px;
  background: linear-gradient(100deg, #28234f, #17152f);
  border: 1px solid #66558e;
  border-radius: 9px;
}
.slot-number, .slot-points {
  display: grid;
  place-items: center;
  min-height: 34px;
  background: #0b0a1a;
  border-radius: 6px;
  color: var(--gold);
  font-weight: 900;
}
.slot-text {
  text-align: center;
  color: #77718f;
  font-weight: 900;
  letter-spacing: 1px;
}
.answer-slot.revealed {
  background: linear-gradient(100deg, #3c2e16, #27203b);
  border-color: var(--gold);
  animation: reveal .35s ease;
}
.answer-slot.revealed .slot-text { color: #fde68a; }
.answer-slot.revealed .slot-points {
  color: #171326;
  background: var(--gold);
}
@keyframes reveal {
  from { transform: scale(.97); opacity: .5; }
  to { transform: scale(1); opacity: 1; }
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 15px;
}
.option-btn {
  text-align: left;
  color: #eeeafc;
  background: #0c0b1b;
  border: 1px solid #45415d;
  padding: 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}
.option-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}
.option-btn:disabled {
  opacity: .35;
  text-decoration: line-through;
  cursor: not-allowed;
}
.control-bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.result-view { text-align: center; padding: 45px 20px; }
.result-icon { font-size: 70px; margin: 20px 0; }
.result-view h1 { color: var(--gold); font-size: clamp(23px, 5vw, 38px); }
.result-view p { color: var(--muted); }
.result-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 550px;
  margin: 25px auto;
}
.result-team {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d0c1d;
}
.result-team span { display: block; font-size: 11px; font-weight: 900; }
.result-team strong { display: block; font-size: 40px; margin-top: 8px; }
.result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

.wrong-popup {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  color: #fb3158;
  background: #05030dcc;
  font-size: min(35vw, 220px);
  font-weight: 1000;
  pointer-events: none;
  animation: wrong .8s ease;
}
@keyframes wrong {
  0% { transform: scale(.5); opacity: 0; }
  30% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 18px;
  border: 1px solid var(--gold);
  border-radius: 9px;
  background: #17142b;
  color: white;
  font-size: 12px;
  z-index: 60;
  box-shadow: 0 8px 30px #0008;
}
footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #302a4c;
  color: #77718f;
  font-size: 10px;
}

@media (max-width: 650px) {
  .topbar, .arena-heading { align-items: flex-start; }
  .topbar { flex-wrap: wrap; }
  .top-actions { flex-wrap: wrap; }
  .top-actions .btn, .arena-actions .btn { padding: 9px; font-size: 9px; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; }
  .quiz-item { align-items: flex-start; flex-direction: column; }
  .teams { gap: 8px; }
  .team-card { padding: 12px; }
  .team-score { font-size: 29px; }
  .strike-panel { flex-wrap: wrap; }
  .options-grid { grid-template-columns: 1fr; }
  .control-bar { flex-wrap: wrap; }
  .control-bar .btn { flex: 1; }
  .question-main { align-items: flex-start; }
  .timer-wrap { flex-basis: 65px; height: 65px; }
}
/* Jawaban ditemukan dengan nilai 0 */
.answer-slot.zero-point {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.answer-slot.zero-point .slot-text {
  color: #f87171;
  font-weight: 900;
}

.answer-slot.zero-point .slot-points {
  color: #f87171;
}
/* Sembunyikan tombol Fullscreen dan Keluar di area arena */
#fullscreenGameBtn,
.arena-actions a[href="../../play.html"] {
    display: none !important;
}
/* ==========================================
   FAMILY 100 — RESPONSIVE LAPTOP & SMARTBOARD
========================================== */

/* Dasar tampilan */
html {
    min-height: 100%;
    width: 100%;
}

body {
    min-height: 100vh;
    width: 100%;
    margin: 0;
}

/* Area utama */
.container {
    width: min(100% - 32px, 1500px);
    margin-left: auto;
    margin-right: auto;
}

/* Panel dibuat lebih fleksibel */
.panel,
.question-panel,
.answer-section,
.options-section {
    min-width: 0;
    box-sizing: border-box;
}

/* Judul dan pertanyaan */
.question-panel {
    padding: clamp(14px, 1.5vw, 26px);
}

.question-panel h1,
.question-panel h2 {
    font-size: clamp(20px, 2.2vw, 34px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* Area tim */
.teams {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 20px);
}

/* Papan jawaban */
#family100Board {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Area pilihan jawaban */
#optionsPoolContainer {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Kontrol permainan */
.control-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.control-bar button {
    max-width: 100%;
}

/* ==========================================
   LAPTOP — layar pendek
========================================== */

@media screen and (max-height: 800px) and (min-width: 900px) {
    .container {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .panel {
        padding: clamp(10px, 1vw, 18px);
    }

    .question-panel {
        padding: 12px 18px;
    }

    .question-panel h1,
    .question-panel h2 {
        font-size: clamp(19px, 1.8vw, 27px);
    }

    .teams {
        gap: 10px;
    }

    .strike-panel {
        padding: 8px 12px;
    }

    .control-bar {
        gap: 8px;
    }
}

/* ==========================================
   SMARTBOARD / FULL HD
========================================== */

@media screen and (min-width: 1400px) and (min-height: 800px) {
    .container {
        width: min(96%, 1700px);
    }

    .question-panel {
        padding: 24px 30px;
    }

    .question-panel h1,
    .question-panel h2 {
        font-size: clamp(30px, 2.2vw, 42px);
    }

    .teams {
        gap: 20px;
    }

    .control-bar {
        gap: 14px;
    }

    .control-bar button {
        font-size: 16px;
        padding: 12px 20px;
    }
}

/* ==========================================
   TABLET / SMARTBOARD PORTRAIT
========================================== */

@media screen and (max-width: 900px) {
    .container {
        width: calc(100% - 24px);
    }

    .teams {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .control-bar {
        justify-content: center;
    }
}

/* ==========================================
   HP
========================================== */

@media screen and (max-width: 600px) {
    .container {
        width: calc(100% - 20px);
    }

    .teams {
        grid-template-columns: 1fr;
    }

    .control-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .control-bar button {
        width: 100%;
    }

    .question-panel h1,
    .question-panel h2 {
        font-size: 21px;
    }
}

/* Hindari elemen melebar keluar layar */
* {
    box-sizing: border-box;
}

img,
video,
canvas {
    max-width: 100%;
}
/* FAMILY 100 — SUSUNAN PAPAN JAWABAN LEBIH RINGKAS */

#family100Board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

#family100Board > * {
    min-width: 0;
    min-height: 38px;
    padding: 7px 12px;
    margin: 0;
    box-sizing: border-box;
}

/* Layar kecil tetap satu kolom */
@media (max-width: 700px) {
    #family100Board {
        grid-template-columns: 1fr;
    }
}
/* Sembunyikan seluruh panel HOST CONTROL - Pilihan Jawaban */
.options-section.panel {
    display: none !important;
}
/* ==================================================
   FAMILY 100 — NEON PURPLE ARENA
   Mengikuti desain referensi
================================================== */

:root {
  --neon-purple: #a855f7;
  --neon-pink: #ff00d4;
  --neon-blue: #00c8ff;
  --neon-yellow: #ffe600;
  --deep-purple: #16002f;
}

/* Latar arena */
body {
  background:
    radial-gradient(ellipse at 50% 40%, #390078 0%, #16002f 65%, #080014 100%);
  min-height: 100vh;
}

#gameplayView {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr);
  grid-template-areas:
    "question question question"
    "team1 strike team2"
    "answers answers answers"
    "input input input"
    "controls controls controls";
  gap: 9px;
  align-items: stretch;
}

/* Hilangkan judul halaman yang tidak ada pada desain */
#gameplayView > .arena-heading {
  display: none;
}

/* ==================================================
   PERTANYAAN DAN TIMER
================================================== */

#gameplayView > .question-panel {
  grid-area: question;
  padding: 10px 16px;
  border: 1px solid var(--neon-purple);
  border-radius: 15px;
  background: linear-gradient(120deg, #24004d, #130026);
  box-shadow: 0 0 15px #8b00ff55;
}

.question-meta {
  font-size: 9px;
  color: var(--neon-yellow);
}

.timer-label {
  color: #d8b4fe;
}

.question-main {
  padding: 7px 0;
  gap: 12px;
}

.question-main h2 {
  font-size: clamp(17px, 2.2vw, 25px);
  line-height: 1.2;
  color: white;
}

.timer-wrap {
  flex: 0 0 53px;
  width: 53px;
  height: 53px;
  border: 2px solid var(--neon-yellow);
  box-shadow: 0 0 12px #ffe60066;
  background: #17002e;
}

.timer-value {
  font-size: 20px;
}

.timer-track {
  height: 4px;
  background: #422060;
}

.timer-bar {
  background: linear-gradient(90deg, #a855f7, #ffe600);
}

/* ==================================================
   KARTU TIM DAN STRIKE BOARD
================================================== */

#gameplayView > .teams {
  display: contents;
}

#cardTeam1 {
  grid-area: team1;
}

#cardTeam2 {
  grid-area: team2;
}

.team-card {
  min-width: 0;
  min-height: 68px;
  padding: 8px 12px;
  gap: 3px;
  align-content: center;
  border-radius: 10px;
  background: #18002e;
}

.team-red {
  border: 2px solid var(--neon-pink);
  box-shadow: 0 0 10px #ff00d455;
}

.team-blue {
  border: 2px solid var(--neon-blue);
  box-shadow: 0 0 10px #00c8ff44;
}

.team-red.active {
  box-shadow: 0 0 15px #ff00d4aa;
}

.team-blue.active {
  box-shadow: 0 0 15px #00c8ffaa;
}

.team-caption {
  font-size: 8px;
}

.team-card strong {
  font-size: 12px;
}

.team-score {
  font-size: 24px;
  line-height: 1;
}

.team-hint {
  display: none;
}

/* Strike berada di tengah kedua tim */
#gameplayView > .strike-panel {
  grid-area: strike;
  margin: 0;
  padding: 7px 5px;
  min-width: 0;
  border: 1px solid var(--neon-yellow);
  border-radius: 10px;
  background: #200044;
  box-shadow: 0 0 10px #a855f755;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
}

.strike-panel .eyebrow {
  font-size: 7px;
  letter-spacing: .5px;
}

.strike-panel h3 {
  margin: 0;
  font-size: 10px;
}

.strike-board {
  justify-content: center;
  gap: 4px;
}

.strike-board span {
  width: 22px;
  height: 22px;
  border: 1px solid #a855f7;
  border-radius: 4px;
  font-size: 15px;
}

.strike-board span.used {
  background: #e60065;
  border-color: #ff48a4;
  color: white;
  box-shadow: 0 0 8px #ff0066;
}

#strikeBtn {
  display: none;
}

/* ==================================================
   PAPAN JAWABAN — LIMA BARIS
================================================== */

#gameplayView > .answer-section {
  grid-area: answers;
  margin: 0;
  padding: 9px 12px;
  border: 2px solid var(--neon-purple);
  border-radius: 13px;
  background: linear-gradient(120deg, #210044, #130024);
  box-shadow: 0 0 13px #a855f755;
}

.answer-section .section-heading {
  padding-bottom: 5px;
  border: 0;
}

.answer-section .section-heading h2 {
  font-size: 12px;
  margin: 2px 0;
}

.answer-section .eyebrow {
  font-size: 8px;
}

.counter-pill {
  padding: 4px 7px;
  font-size: 8px;
  background: #3b0764;
  color: var(--neon-yellow);
}

/* Jawaban tersusun vertikal seperti referensi */
#family100Board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin-top: 3px;
}

#family100Board .answer-slot {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 25px;
  padding: 2px 5px;
  gap: 6px;
  border: 1px solid #a855f7;
  border-radius: 7px;
  background: linear-gradient(90deg, #35006b, #210044);
}

#family100Board .slot-number {
  min-height: 19px;
  border-radius: 4px;
  background: #100020;
  color: var(--neon-yellow);
  font-size: 12px;
}

#family100Board .slot-text {
  color: #c084fc;
  font-size: 11px;
  letter-spacing: 1px;
  text-align: center;
  overflow-wrap: anywhere;
}

#family100Board .slot-points {
  min-height: 19px;
  font-size: 10px;
  background: #100020;
  color: var(--neon-yellow);
}

#family100Board .answer-slot.revealed {
  border-color: var(--neon-yellow);
  background: linear-gradient(90deg, #572000, #321044);
  box-shadow: 0 0 8px #ffe60055;
}

#family100Board .answer-slot.revealed .slot-text {
  color: #fff1a8;
}

/* ==================================================
   INPUT JAWABAN DAN KEYBOARD
================================================== */

#familyAnswerPanel {
  grid-area: input;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--neon-purple);
  border-radius: 12px;
  background: #200044;
  box-shadow: 0 0 12px #a855f755;
}

/* Kolom input dan tombol cek */
#familyAnswerPanel .answer-entry {
  display: flex;
  gap: 6px;
  margin-bottom: 7px;
}

#familyAnswerInput {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #c026d3;
  border-radius: 8px;
  background: #100020;
  color: white;
  font-size: 13px;
}

#familyAnswerInput::placeholder {
  color: #bda4d5;
}

#familyCheckBtn {
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid #ffe600;
  border-radius: 8px;
  background: linear-gradient(90deg, #ffe600, #ff9900);
  color: #25003e;
  font-size: 10px;
  font-weight: 900;
}

/* Keyboard virtual */
#familyKeyboard {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  gap: 3px;
}

.family-key-row {
  display: flex;
  justify-content: center;
  gap: 3px;
}

.family-key {
  flex: 1;
  min-width: 0;
  min-height: 25px;
  padding: 3px;
  border: 1px solid #7136a8;
  border-radius: 5px;
  background: linear-gradient(180deg, #542080, #260044);
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.family-key:active {
  background: #a855f7;
  transform: scale(.96);
}

/* Feedback jawaban */
#familyAnswerFeedback {
  min-height: 14px;
  margin-top: 4px;
  font-size: 10px;
  text-align: center;
}

/* ==================================================
   TOMBOL KONTROL
================================================== */

#gameplayView > .control-bar {
  grid-area: controls;
  margin: 0;
  gap: 7px;
}

.control-bar .btn {
  padding: 8px 12px;
  font-size: 9px;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (min-width: 1200px) {
  #gameplayView {
    gap: 11px;
  }

  .team-card {
    min-height: 78px;
  }

  #family100Board .answer-slot {
    min-height: 29px;
  }

  .family-key {
    min-height: 30px;
  }
}

@media (max-width: 700px) {
  #gameplayView {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  #gameplayView > .teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  #gameplayView > .strike-panel {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  #strikeBtn {
    display: none;
  }

  #family100Board .answer-slot {
    min-height: 27px;
  }

  .team-card {
    min-height: 65px;
    padding: 7px;
  }

  .team-score {
    font-size: 21px;
  }
}

@media (max-width: 420px) {
  .question-main h2 {
    font-size: 16px;
  }

  .timer-wrap {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  #familyAnswerInput {
    font-size: 12px;
  }

  #familyCheckBtn {
    padding: 6px 8px;
    font-size: 9px;
  }
}
/* PERBAIKAN TAMPILAN TIM DI HP */
@media screen and (max-width: 600px) {
  #gameplayView {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
  }

  #gameplayView > .teams {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
    gap: 8px;
  }

  #cardTeam1,
  #cardTeam2 {
    display: grid;
    width: 100%;
    min-width: 0;
    padding: 8px 5px;
    text-align: center;
  }

  .team-card strong {
    overflow-wrap: anywhere;
    font-size: 11px;
  }

  .team-score {
    font-size: 23px;
  }
}
/* FIX FINAL: KARTU TIM MERAH DAN BIRU DI HP */
@media screen and (max-width: 700px) {
  #gameplayView > .teams {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-auto-flow: row;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #gameplayView > .teams > #cardTeam1,
  #gameplayView > .teams > #cardTeam2 {
    display: grid !important;
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px 5px !important;
    text-align: center !important;
  }

  #gameplayView > .teams > #cardTeam1 .team-score,
  #gameplayView > .teams > #cardTeam2 .team-score {
    font-size: 24px !important;
  }
}
