@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #0B0242 25%, #20216C 50%, #0B0242 75%);
  color: #f0f2ff;
  min-height: 100vh;
}
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 20px 24px 40px; }

.game-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto auto auto;
  align-content: start;
  justify-items: center;
  min-height: 100vh;
  max-width: none;
  overflow: hidden;
  padding: 30px clamp(28px, 5.5vw, 80px) clamp(36px, 8vh, 76px);
  background: linear-gradient(135deg, #0B0242 25%, #20216C 50%, #0B0242 75%);
}

.game-screen::before,
.game-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}

.game-screen::before {
  background:
    radial-gradient(circle at 50% 48%, rgba(95, 112, 227, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(255,255,255,0.05), transparent 22%, transparent 78%, rgba(255,255,255,0.05));
}

.game-screen::after {
  box-shadow: inset 0 0 150px rgba(2, 0, 24, 0.5);
}

.game-screen > * {
  position: relative;
  z-index: 1;
}

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.logo-box {
  border: 1px solid #fff;
  background: #fff;
  border-radius: 6px; padding: 8px 14px;
  font-size: 12px; font-weight: bold; letter-spacing: 0.5px;
}
.logo-box img {
  display: block;
  width: clamp(72px, 8vw, 112px);
  height: auto;
}
.info-box { text-align: right; }
.info-level { font-size: 12px; color: #b9c2f0; }
.info-points { font-size: 16px; font-weight: bold; color: #f5c542; }

.game-screen .topbar {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: stretch;
  min-height: 58px;
  margin: 0;
  opacity: 0.9;
}

.game-screen .logo-box {
  border-color: #fff;
  background: #fff;
}

.game-screen .info-box {
  display: none;
}

.lifelines { display: flex; justify-content: center; gap: 16px; margin-bottom: 6px; }
.lifeline-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: transparent; color: #f0f2ff;
  font-size: 13px; font-weight: bold; cursor: pointer;
}
.lifeline-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.lifeline-note { text-align: center; font-size: 11px; color: #8891c2; min-height: 14px; margin-bottom: 16px; }

.game-screen .lifelines {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  gap: 33px;
  margin: clamp(68px, 11.5vh, 132px) 0 0;
  transform: translate(clamp(-185px, -11.6vw, -160px), clamp(160px, 19vh, 210px));
}

.game-screen .lifeline-btn {
  display: grid;
  place-items: center;
  width: 87px;
  height: 87px;
  padding: 0;
  border: 0;
  background: transparent;
}

.game-screen .lifeline-btn img {
  display: block;
  width: 87px;
  height: 87px;
}

.game-screen .lifeline-btn:hover:not(:disabled) {
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.55));
  transform: translateY(-1px);
}

.game-screen .lifeline-note {
  grid-column: 1;
  grid-row: 6;
  min-height: 22px;
  margin: 12px auto 0;
  color: #d7dbf5;
  font-size: 13px;
  text-align: center;
  transform: translate(clamp(-185px, -11.6vw, -160px), clamp(160px, 19vh, 210px));
}

.timer-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.timer-track { flex: 1; height: 5px; background: rgba(255,255,255,0.15); border-radius: 3px; overflow: hidden; }
.timer-fill { height: 100%; background: #f5c542; width: 100%; transition: width 1s linear; }
.timer-label { font-size: 13px; font-weight: bold; color: #f5c542; min-width: 32px; text-align: right; }

.game-screen .timer-row {
  grid-column: 1;
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: min(calc(100vw - clamp(330px, 24.2vw, 410px)), 1200px);
  margin: 7px auto clamp(30px, 3.5vh, 42px);
  transform: translate(clamp(-185px, -11.6vw, -160px), clamp(160px, 19vh, 210px));
}

.game-screen .timer-track {
  width: 100%;
  height: 7px;
  border-radius: 0;
  background: #e2e2e2;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.game-screen .timer-fill {
  background: #ffc400;
  border-radius: 0;
}

.game-screen .timer-label {
  min-width: 0;
  color: #ffc400;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.hex {
  clip-path: polygon(0% 50%, 5% 0%, 95% 0%, 100% 50%, 95% 100%, 5% 100%);
  background: linear-gradient(180deg, #1c3fd6, #0a1a80);
  border: none; color: #f0f2ff;
  padding: 14px 30px; font-size: 14px; font-weight: bold;
  text-align: center; cursor: pointer;
}
.hex.question { margin-bottom: 14px; font-size: 15px; cursor: default; width: 100%; }
.hex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.hex.option { text-align: left; width: 100%; }
.hex.option::before { content: '\25C6'; color: #f5c542; margin-right: 8px; }
.hex.option:disabled { cursor: not-allowed; opacity: 0.5; }

.game-screen .question-wrap {
  position: relative;
  grid-column: 1;
  grid-row: 4;
  width: min(calc(100vw - clamp(330px, 24.2vw, 410px)), 1200px);
  margin: 0 auto clamp(30px, 3.5vh, 42px);
  transform: translate(clamp(-185px, -11.6vw, -160px), clamp(160px, 19vh, 210px));
}

.game-screen .hex-wrap {
  position: relative;
}

.game-screen .hex-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 100vw;
  border-top: 3px solid rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.game-screen .hex {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  clip-path: none;
  color: #fff;
  isolation: isolate;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

.game-screen .hex::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: center / 100% 100% no-repeat;
}

.game-screen .question {
  justify-content: center;
  min-height: clamp(96px, 14.25vh, 146px);
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(94px, 15vw, 180px);
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.25;
}

.game-screen .question::after {
  background-image: url("../assets/img/question-panel.svg");
}

.game-screen .hex-grid {
  grid-column: 1;
  grid-row: 5;
  display: grid;
  grid-template-columns: minmax(260px, 528px) minmax(260px, 528px);
  justify-content: center;
  gap: clamp(22px, 3.5vh, 36px) clamp(36px, 6vw, 96px);
  width: min(calc(100vw - clamp(330px, 24.2vw, 410px)), 1200px);
  margin: 0;
  transform: translate(clamp(-185px, -11.6vw, -160px), clamp(160px, 19vh, 210px));
}

.game-screen .hex-grid .hex-wrap {
  display: block;
  width: 100%;
  grid-column: auto;
  grid-row: auto;
}

@media (min-width: 761px) {
  .game-screen .hex-grid {
    /* Let connectors reach, but never pass, the score panel's left edge. */
    clip-path: inset(
      -64px
      min(-8px, calc(-50vw + clamp(28px, 3.2vw, 60px) + clamp(260px, 20vw, 310px) + 415px))
      -64px
      -100vw
    );
  }
}

.game-screen .option {
  min-height: clamp(74px, 9.85vh, 101px);
  width: 100%;
  padding: 20px clamp(44px, 5.3vw, 78px) 20px clamp(66px, 8vw, 122px);
  font-size: clamp(18px, 2.1vw, 32px);
  line-height: 1.18;
}

.game-screen .option::after {
  background-image: url("../assets/img/answer-panel.svg");
}

.game-screen .option::before {
  content: "";
  width: clamp(19px, 2.6vw, 38px);
  height: clamp(13px, 1.8vw, 26px);
  flex: 0 0 auto;
  margin: 0 clamp(18px, 2.1vw, 31px) 0 0;
  background: url("../assets/img/answer-diamond.svg") center / 100% 100% no-repeat;
}

.game-screen .option:hover:not(:disabled) {
  filter: brightness(1.18) drop-shadow(0 0 14px rgba(61, 103, 255, 0.45));
  transform: translateY(-1px);
}

.game-screen .option:disabled {
  opacity: 1;
}

.game-screen .option.is-correct::after {
  filter: hue-rotate(-105deg) saturate(1.7) brightness(1.12);
}

.game-screen .option.is-wrong::after {
  filter: hue-rotate(135deg) saturate(2.2) brightness(1.12);
}

.game-screen .option.answer-text-hidden {
  color: transparent;
}

.walkaway-btn {
  display: block; margin: 22px auto 0;
  border: 1px solid #f5c542; color: #f5c542; background: transparent;
  border-radius: 20px; padding: 8px 24px; font-size: 13px; font-weight: bold; cursor: pointer;
}

.game-screen .walkaway-btn {
  grid-column: 1;
  grid-row: 7;
  margin-top: 14px;
  transform: translate(clamp(-185px, -11.6vw, -160px), clamp(160px, 19vh, 210px));
  background: rgba(2, 14, 70, 0.36);
  border-color: rgba(255,196,0,0.68);
  border-radius: 999px;
}

.result-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 9999;
}
.result-card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: calc(100% - 40px); box-sizing: border-box;
  background: #0a0f3d; border: 1px solid rgba(255,255,255,0.3); border-radius: 12px;
  padding: 28px 24px; text-align: center; max-width: 340px;
}
.result-card h2 { margin: 0 0 8px; }
.result-desc { color: #b9c2f0; font-size: 13px; margin: 0; }
.points { font-size: 24px; color: #f5c542; font-weight: bold; margin: 12px 0; }
.btn-primary {
  display: inline-block; margin-top: 12px;
  background: #f5c542; color: #0a0f3d; border: none; border-radius: 20px;
  padding: 10px 22px; font-weight: bold; cursor: pointer; text-decoration: none;
}

.card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 16px;
  margin-top: 20px;
}
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.leaderboard-table th,
.leaderboard-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.leaderboard-table th {
  color: #b9c2f0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.leaderboard-table tbody tr:hover {
  background: rgba(255,255,255,0.04);
}
.rank-gold { color: #f5c542; font-weight: bold; }

.ladder { display: flex; flex-direction: column; gap: 2px; margin-top: 24px; }
.ladder-row { display: flex; justify-content: space-between; padding: 6px 12px; font-size: 13px; border-radius: 6px; }
.ladder-row.safe { font-weight: bold; color: #f5c542; }
.ladder-row.current { background: rgba(245,197,66,0.18); font-weight: bold; }

.game-screen .ladder {
  position: absolute;
  top: clamp(84px, 9vh, 110px);
  bottom: clamp(100px, 12vh, 140px);
  right: clamp(28px, 3.2vw, 60px);
  z-index: 2;
  width: clamp(260px, 20vw, 310px);
  min-height: 0;
  margin: 0;
  padding: clamp(12px, 1.7vh, 18px) clamp(22px, 2vw, 30px);
  gap: 0;
  justify-content: center;
  border: 3px solid #fff;
  outline: 1px solid rgba(123, 153, 255, 0.72);
  outline-offset: 4px;
  background: linear-gradient(180deg, #0828b5 0%, #03136d 36%, #06082f 100%);
  box-shadow: 0 18px 36px rgba(0,0,0,0.34), inset 0 0 28px rgba(83, 122, 255, 0.35);
  transform: none;
}

.game-screen .ladder-row {
  min-height: clamp(32px, 4.1vh, 42px);
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border-radius: 0;
  color: #fff;
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.game-screen .ladder-row span:first-child {
  min-width: 2.1em;
  color: #aebeff;
}

.game-screen .ladder-row span:last-child {
  font-variant-numeric: tabular-nums;
}

.game-screen .ladder-row.safe {
  color: #ffc400;
}

.game-screen .ladder-row.safe span:first-child {
  color: #ffc400;
}

.game-screen .ladder-row.completed {
  margin: 0 clamp(-30px, -2vw, -22px);
  padding: 0 clamp(22px, 2vw, 30px);
  background: linear-gradient(90deg, #075e36, #12a95f 52%, #075e36);
  color: #fff;
  box-shadow: 0 0 12px rgba(23, 185, 101, 0.62);
}

.game-screen .ladder-row.completed span:first-child {
  color: #fff;
}

.game-screen .ladder-row.current {
  margin: 0 clamp(-30px, -2vw, -22px);
  padding: 0 clamp(22px, 2vw, 30px);
  background: linear-gradient(90deg, #9b4a00, #e69000 52%, #9b4a00);
  color: #fff;
  box-shadow: 0 0 13px rgba(255, 166, 0, 0.8);
}

.game-screen .ladder-row.current span:first-child {
  color: #fff;
}

.game-screen .ladder-row.current.safe {
  color: #fff600;
}

.game-screen .ladder-row.current.safe span:first-child {
  color: #fff600;
}

@media (max-width: 1000px) and (min-width: 761px) {
  .game-screen .question-wrap,
  .game-screen .hex-grid,
  .game-screen .timer-row {
    width: min(calc(100vw - 330px), 670px);
    transform: translate(clamp(-160px, -18vw, -135px), clamp(160px, 19vh, 210px));
  }

  .game-screen .lifelines,
  .game-screen .lifeline-note {
    transform: translate(clamp(-160px, -18vw, -135px), clamp(160px, 19vh, 210px));
  }

  .game-screen .hex-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 26px;
  }

  .game-screen .option {
    padding: 16px 28px 16px 40px;
    font-size: 18px;
  }

  .game-screen .walkaway-btn {
    transform: translate(clamp(-160px, -18vw, -135px), clamp(160px, 19vh, 210px));
  }
}

@media (max-width: 760px) {
  .game-screen {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto auto auto;
    padding: 20px 16px 32px;
    overflow-y: auto;
  }

  .game-screen .topbar {
    grid-row: 1;
  }

  .game-screen .ladder {
    position: relative;
    top: auto;
    bottom: auto;
    right: auto;
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 360px);
    min-height: 0;
    margin: 18px 0 0;
    transform: none;
  }

  .game-screen .ladder-row {
    min-height: 26px;
    font-size: 15px;
  }

  .game-screen .lifelines {
    grid-row: 3;
    gap: 22px;
    margin-top: 22px;
    transform: none;
  }

  .game-screen .lifeline-btn,
  .game-screen .lifeline-btn img {
    width: 66px;
    height: 66px;
  }

  .game-screen .timer-row {
    grid-row: 4;
    width: min(100%, 726px);
    margin: 10px auto 28px;
    transform: none;
  }

  .game-screen .question-wrap {
    grid-row: 5;
    width: 100%;
    margin-bottom: 28px;
    transform: none;
  }

  .game-screen .hex-wrap::before {
    border-top-width: 2px;
  }

  .game-screen .question {
    width: 100%;
    min-height: 96px;
    padding: 22px 54px;
  }

  .game-screen .hex-grid {
    grid-row: 6;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 14px;
    transform: none;
  }

  .game-screen .option {
    min-height: 74px;
    padding-left: 58px;
    padding-right: 42px;
  }

  .game-screen .lifeline-note {
    grid-row: 7;
    transform: none;
  }

  .game-screen .walkaway-btn {
    grid-row: 8;
    transform: none;
  }
}

@media (max-width: 520px) {
  .game-screen .question {
    padding: 20px 34px;
    font-size: 18px;
  }

  .game-screen .option {
    min-height: 68px;
    padding-left: 42px;
    padding-right: 26px;
    font-size: 17px;
  }

  .game-screen .option::before {
    width: 18px;
    height: 13px;
    margin-right: 14px;
  }
}

.card label {
  display: block;
  margin-top: 10px;
  margin-bottom: 4px;
  font-size: 13px;
}

.card input[type="text"],
.card input[type="number"],
.card input[type="password"] {
  display: block;
  width: 100%;
  padding: 6px 8px;
  box-sizing: border-box;
}

.soal-list-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.soal-list-header h3 { margin: 0; }
.soal-table-summary {
  margin: 6px 0 0;
  color: #b9c2f0;
  font-size: 13px;
}

.soal-category-filter {
  min-width: 190px;
}

.soal-category-filter label {
  margin-top: 0;
}

.soal-category-filter select {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #f0f2ff;
}

.soal-category-filter option { color: #0a0f3d; }

.table-scroll {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
}

.question-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

.question-table th,
.question-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.question-table th {
  position: sticky;
  top: 0;
  background: #15135b;
  color: #b9c2f0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.question-table tbody tr:hover { background: rgba(255,255,255,0.05); }
.question-table tbody tr:last-child td { border-bottom: 0; }
.question-level { font-weight: 800; color: #f5c542; white-space: nowrap; }
.question-category { color: #d7dbf5; white-space: nowrap; }
.question-text { min-width: 280px; line-height: 1.45; }
.question-answer { font-weight: 800; color: #f5c542; text-align: center !important; }

.question-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.question-actions button {
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
}

.question-actions .btn-danger {
  border-color: rgba(240,149,149,0.7);
  color: #ffc0c0;
}

@media (max-width: 600px) {
  .soal-list-header {
    display: block;
  }

  .soal-category-filter {
    width: 100%;
    margin-top: 14px;
  }
}

/* Admin workspace */
.admin-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(77, 96, 214, 0.28), transparent 26%),
    linear-gradient(135deg, #08032f 0%, #161461 52%, #08032f 100%);
}

.admin-container {
  max-width: 1240px;
  padding-top: 28px;
  padding-bottom: 64px;
}

.admin-topbar {
  min-height: 86px;
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(184, 195, 255, 0.22);
}

.admin-topbar-actions,
.admin-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-title span,
.section-kicker {
  display: block;
  color: #9cacff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.admin-title h1,
.admin-section-heading h2,
.admin-card-heading h2,
.admin-login-card h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}

.admin-page .btn-primary {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 16px;
  box-shadow: 0 8px 20px rgba(245, 197, 66, 0.2);
}

.admin-content { display: grid; gap: 28px; }
.admin-section { min-width: 0; }

.admin-section-heading {
  margin: 0 0 14px;
}

.admin-section-heading p {
  max-width: 660px;
  margin: 8px 0 0;
  color: #b9c2f0;
  font-size: 14px;
  line-height: 1.55;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-page .admin-card,
.admin-login-card {
  margin-top: 0;
  border-color: rgba(162, 177, 255, 0.24);
  background: linear-gradient(145deg, rgba(37, 42, 122, 0.72), rgba(11, 10, 58, 0.78));
  box-shadow: 0 16px 36px rgba(0, 0, 30, 0.2);
}

.admin-page .admin-card h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 17px;
}

.setting-card {
  display: flex;
  min-height: 205px;
  flex-direction: column;
}

.admin-page .field-group { margin: 0; }

.admin-page .setting-card .field-group + .field-group { margin-top: 13px; }

.admin-page .field-group label {
  margin: 0 0 6px;
  color: #cfd6ff;
  font-size: 12px;
  font-weight: 650;
}

.admin-page .field-group input {
  min-height: 40px;
  border: 1px solid rgba(184, 195, 255, 0.26);
  border-radius: 7px;
  background: rgba(2, 4, 42, 0.45);
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-page .field-group input:focus,
.admin-page .soal-category-filter select:focus {
  border-color: #f5c542;
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.14);
}

.field-help {
  display: block;
  margin-top: 5px;
  color: #9cacff;
  font-size: 11px;
}

.admin-page .setting-card > button,
.admin-primary-action,
.admin-secondary-action {
  min-height: 38px;
  margin-top: auto;
  border-radius: 7px;
  padding: 8px 12px;
  font-weight: 750;
  cursor: pointer;
}

.admin-page .setting-card > button,
.admin-primary-action {
  border: 1px solid #f5c542;
  background: #f5c542;
  color: #100b42;
}

.admin-secondary-action {
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
}

.form-message {
  min-height: 18px;
  margin: 9px 0 0;
  color: #b9c2f0;
  font-size: 12px;
}

.admin-login-card {
  width: min(100%, 440px);
  margin: 84px auto;
  padding: 28px;
}

.admin-login-card > p:not(.form-message) {
  margin: 10px 0 22px;
  color: #b9c2f0;
  font-size: 14px;
  line-height: 1.55;
}

.admin-login-card .admin-primary-action { width: 100%; }

.question-form-card { padding: 24px; }

.required-note {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.12);
  color: #ffe59a;
  font-size: 12px;
  white-space: nowrap;
}

.question-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.question-form-grid .field-group { min-width: 0; }
.question-form-grid .field-level,
.question-form-grid .field-category { grid-column: span 2; }
.question-form-grid .field-group-wide { grid-column: 1 / -1; }
.question-form-grid .field-group:not(.field-level):not(.field-category):not(.field-group-wide):not(.field-answer) { grid-column: span 2; }
.question-form-grid .field-answer { grid-column: span 1; }

.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.soal-list-card { padding: 24px; }
.soal-list-header { align-items: center; }
.soal-list-header h3 { margin: 4px 0 0; }
.soal-category-filter label { color: #cfd6ff; }

.points-card { max-width: none; }
.points-description {
  max-width: 640px;
  margin: 8px 0 0;
  color: #b9c2f0;
  font-size: 14px;
  line-height: 1.5;
}

.points-scroll {
  overflow-x: auto;
  padding: 2px 2px 8px;
}

.points-grid {
  display: grid;
  width: max-content;
  grid-template-columns: repeat(var(--point-column-count, 3), 150px);
  gap: 12px;
  margin-top: 22px;
}

.point-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

.point-level-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(184, 195, 255, 0.18);
  border-radius: 8px;
  background: rgba(4, 5, 48, 0.32);
}

.point-level-label {
  flex: 0 0 auto;
  color: #cfd6ff;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.admin-page .pointInput {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(184, 195, 255, 0.26);
  border-radius: 6px;
  background: rgba(2, 4, 42, 0.56);
  color: #f5c542;
  font-weight: 800;
  text-align: left;
}

.admin-page .pointInput:focus {
  border-color: #f5c542;
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.14);
  outline: none;
}
.points-card > .admin-primary-action { margin-top: 18px; }

.admin-page .question-actions button {
  margin: 0;
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: #fff;
  box-shadow: none;
}

@media (max-width: 980px) {
  .admin-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-container { padding: 18px 16px 40px; }

  .admin-topbar,
  .admin-topbar-actions,
  .admin-card-heading {
    align-items: flex-start;
  }

  .admin-topbar { min-height: 0; }
  .admin-topbar-actions { flex-direction: column; gap: 12px; }
  .admin-page .btn-primary { width: 100%; text-align: center; }
  .admin-settings-grid { grid-template-columns: 1fr; }
  .setting-card { min-height: 0; }
  .setting-card > button { margin-top: 18px; }
  .question-form-card,
  .soal-list-card { padding: 18px; }
  .admin-card-heading { flex-direction: column; gap: 10px; }
  .question-form-grid { grid-template-columns: 1fr; gap: 13px; margin-top: 20px; }
  .question-form-grid .field-level,
  .question-form-grid .field-category,
  .question-form-grid .field-group-wide,
  .question-form-grid .field-group:not(.field-level):not(.field-category):not(.field-group-wide):not(.field-answer),
  .question-form-grid .field-answer { grid-column: 1; }
  .points-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }
}
