/* ===================================================
   YUKINONIHONGO - MOBILE-FIRST & LOW-SPEC STYLING
   =================================================== */

:root {
  /* Colors from DESIGN.md (Neubrutalism Core Palette - Paper Pearl & Cream) */
  --bg: #FBF7EE;            /* Warm Vanilla/Cream Canvas (Anti Eye-Strain) */
  --surface: #FFFEFA;       /* Paper Pearl White (Putih Hangat Mewah & Pop di atas Cream) */
  --surface-white: #FFFEFA; /* Paper Pearl White */
  --surface-dark: #F2EDE2;  /* Warm Sand Accent Surface */
  --primary: #FF5252;       /* Vermilion Red (Satu-satunya Aksen Utama) */
  --primary-hover: #E53935; /* Vermilion Red Dark */
  --secondary: #FF5252;     /* Neubrutalist Red */
  --secondary-hover: #E53935;
  --tertiary: #2196F3;      /* Blue */
  --tertiary-hover: #1E88E5;
  --accent: #FF5252;        /* Vermilion Red CTAs */
  --warning: #FF5252;       /* Vermilion Red Highlights */
  --olive: #6B8E23;         /* Olive Green (Hijau Zaitun Jawaban Benar) */
  --concrete: #666666;      /* Neutral Subtitle Text */
  --border: #000000;        /* Bold Neubrutalist Black Outline */
  --border-light: #D5D1C6;  /* Neutral Border Divider */
  --vermilion: #FF5252;     /* Neubrutalist Vermilion Red */
  --vermilion-dark: #E53935;
  --text-main: #000000;     /* Crisp Solid Black Text */
  --text-dark: #000000;     /* Panel Text */
  --text-muted: #555555;    /* Caption Text */
  --success: #FF5252;       /* Red Stamp */
  --error: #FF5252;         /* Solid Red Error */
  --radius-sm: 0px;         /* Sharp Neubrutalist Corners */
  --radius-md: 0px;         /* Sharp Neubrutalist Corners */
  --radius-lg: 0px;
  
  /* Neubrutalist 45° Hard Offset Shadows */
  --manga-shadow: 3.5px 3.5px 0px #000000;
  --manga-shadow-hover: 4.5px 4.5px 0px #000000;
  --manga-shadow-active: 1px 1px 0px #000000;

  /* =========================================
     STANDARDIZED SIZING TOKENS (DESIGN.md)
     ========================================= */
  /* Typography Scale */
  --font-hero: 1.85rem;
  --font-title: 1.25rem;
  --font-subtitle: 1.1rem;
  --font-body: 0.95rem;
  --font-caption: 0.8rem;
  --font-micro: 0.7rem;

  /* Button Hierarchy */
  --btn-h-primary: 48px;
  --btn-h-secondary: 40px;
  --btn-h-sm: 34px;
  --btn-p-primary: 0 18px;
  --btn-p-secondary: 0 14px;
  --btn-p-sm: 0 10px;

  /* Badge Standard Sizing */
  --badge-font: 0.72rem;
  --badge-p: 3px 8px;
  --badge-radius: var(--radius-sm);
  --badge-micro-font: 0.65rem;
  --badge-micro-p: 2px 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "JetBrains Mono", Helvetica, Arial, sans-serif;
  background: #F0EDE4;
  background-image: radial-gradient(#000000 0.8px, #F0EDE4 0.8px);
  background-size: 20px 20px; /* Neubrutalist Grid Dot Pattern */
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  letter-spacing: -0.2px;
}

.app-container {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-left: 2.5px solid var(--border);
  border-right: 2.5px solid var(--border);
  box-shadow: none !important;
}

/* =========================================================================
   GLOBAL FIXED HEADER & FOOTER ARCHITECTURE (IDENTICAL HEIGHT & STABILITY)
   ========================================================================= */
.global-header-bar {
  flex-shrink: 0;
  width: 100%;
  height: 56px;
  min-height: 56px;
  background: var(--surface);
  border-bottom: 2.5px solid #000000;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  z-index: 50;
}

.header-slot-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 12px;
}

#header-slot-study {
  justify-content: flex-start;
  gap: 14px;
}

.global-footer-bar {
  flex-shrink: 0;
  width: 100%;
  height: 56px;
  min-height: 56px;
  background: var(--surface);
  border-top: 2.5px solid #000000;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  user-select: none;
}

.footer-content {
  width: 100%;
  text-align: center;
}

.footer-copyright {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: #555555;
  letter-spacing: 0.8px;
  line-height: 56px;
  text-align: center;
}

/* SCREENS (INDEPENDENT INNER SCROLLING - NO JUMPING) */
.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}

.screen::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.screen.active {
  display: flex;
}

/* HOME SCREEN */
#screen-home {
  padding: 14px 16px 36px;
}

/* QUIZ SCREEN */
#screen-quiz {
  padding: 0;
  overflow: hidden;
}

/* TIPOGRAFI MURNI LOGO BRAND KANJI HEADER */
.brand-kanji-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-kanji-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #000000;
  letter-spacing: 1px;
  line-height: 1;
  margin: 0;
  font-family: inherit;
  user-select: none;
}

/* TEKS SAMBUTAN PENGGUNA (TEKS MURNI CLEAN TYPOGRAPHY) */
.home-greeting-text {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px 2px;
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.2;
}

.home-greeting-text .greeting-prefix {
  font-size: 0.82rem;
  font-weight: 600;
  color: #666666;
  letter-spacing: 0.3px;
}

.home-greeting-text .greeting-username {
  font-size: 0.92rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: 0.4px;
}

/* WALLPAPER BANNER KOMIK (HOME - LOCKED EXACT 1920x600 RATIO) */
.home-banner-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 600 !important;
  border: 2.5px solid #000000;
  background: var(--surface);
  margin-bottom: 12px;
  box-shadow: 3.5px 3.5px 0px #000000;
  overflow: hidden;
  box-sizing: border-box;
  display: block;
  flex-shrink: 0;
}

.home-banner-img,
.home-banner-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-banner-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.btn-banner-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #FFFFFF;
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.85)) drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.6));
  transition: transform 0.12s ease, opacity 0.12s ease;
  user-select: none;
  box-sizing: border-box;
  opacity: 0.9;
}

.btn-banner-action:hover {
  background: transparent;
  transform: scale(1.1);
  opacity: 1;
}

.btn-banner-action:active {
  transform: scale(0.95);
  box-shadow: none;
}

/* =========================================================================
   LEADERBOARD HORIZONTAL SLIDER (TOP 1-3 & USER TIER SLIDE)
   Desain Berbeda: Strip horizontal compact, accent badges, avatar ranking,
   dan neubrutalist card tanpa memakan ruang vertikal.
   ========================================================================= */
.lb-section-container,
.lb-slider-section {
  margin-bottom: 0px;
}

.lb-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 2px;
}

.lb-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lb-icon-svg {
  stroke: #000000;
  display: block;
}

.lb-section-title {
  font-size: 0.82rem;
  font-weight: 900;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.2;
}

/* TOMBOL LIHAT SEMUA (VIEW ALL RANKINGS) */
.lb-btn-all {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--surface);
  border: 1.5px solid #000000;
  color: #000000;
  padding: 3px 8px;
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 1.5px 1.5px 0px #000000;
  transition: transform 0.1s ease, background-color 0.12s ease;
  user-select: none;
}

.lb-btn-all:hover {
  background: #FFFDF9;
}

.lb-btn-all:active {
  transform: translate(1px, 1px);
  box-shadow: 0px 0px 0px #000000;
}

/* FILTER TAB JENJANG RESMI N5 - N1 */
.lb-level-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  overflow: visible;
  padding-right: 2px;
  padding-bottom: 2px;
  box-sizing: border-box;
}

.lb-level-tabs::-webkit-scrollbar {
  display: none;
}

.lb-tab-btn {
  flex: 1;
  min-width: 44px;
  padding: 4px 6px;
  background: var(--surface);
  border: 1.5px solid #000000;
  border-radius: 0px !important;
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  color: #555555;
  box-shadow: 1.5px 1.5px 0px #000000;
  cursor: pointer;
  user-select: none;
  text-align: center;
  transition: all 0.12s ease;
}

.lb-tab-btn.active {
  background: #000000;
  color: #FFFFFF;
  box-shadow: 2px 2px 0px var(--vermilion);
  position: relative;
  z-index: 2;
}

.lb-tab-btn:hover:not(.active) {
  background: #FFFDF9;
  color: #000000;
}

/* TRACK SLIDER LEADERBOARD */
/* 4. PODIUM TOP 1-3 GRID (3 SLOT LANGSUNG TERLIHAT SEMUA TANPA SCROLL) */
.lb-top3-subbar-tag {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.58rem;
  font-weight: 900;
  background: #000000;
  color: #FFFFFF;
  padding: 1px 5px;
  letter-spacing: 0.5px;
}

.lb-top3-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.lb-podium-box {
  background: var(--surface);
  border: 2px solid #000000;
  border-radius: 0px !important;
  box-shadow: 2.5px 2.5px 0px #000000;
  padding: 6px 6px 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  user-select: none;
  min-height: 100px;
  text-align: center;
  transition: transform 0.1s ease;
}

.lb-podium-box:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

/* TOP ROW KARTU PODIUM */
.lb-pod-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
  padding-bottom: 3px;
  margin-bottom: 4px;
}

.lb-pod-rank-tag {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.65rem;
  font-weight: 900;
  color: #000000;
}

.lb-pod-rank-tag.champ {
  color: var(--vermilion);
}

.lb-pod-tier-tag {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.5rem;
  font-weight: 800;
  color: #666666;
  text-transform: uppercase;
}

.lb-pod-tier-tag.champ {
  color: var(--vermilion);
}

/* 3. SATU PANEL LEADERBOARD TERPADU (UNIFIED CLEAN CARD) */
.lb-unified-card {
  background: var(--surface);
  border: 2px solid #000000;
  border-radius: 0px !important;
  box-shadow: 3.5px 3.5px 0px #000000;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

/* GRID 3 KOLOM ULTRA-HEMAT RUANG (TOP 1, TOP 2, TOP 3 DALAM 1 BARIS) */
.lb-pods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 2px solid #000000;
  background: var(--surface);
}

.lb-pod-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 8px 8px;
  gap: 8px;
  box-sizing: border-box;
  position: relative;
  background: var(--surface);
  transition: background-color 0.12s ease;
  user-select: none;
  min-width: 0;
}

.lb-pod-col:not(:last-child) {
  border-right: 1.5px solid #000000;
}

.lb-pod-col:hover {
  background: #FFFDF8;
}

/* WARNA MEDALI BERSIH PADA KOTAK BADGE NOMOR */
.lb-pod-num {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.70rem;
  font-weight: 900;
  width: auto;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 1.5px 1.5px 0px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.lb-pod-num.champ-num {
  background: #F5C518;
  color: #000000;
  border: 1.5px solid #000000;
}

.lb-pod-num.silver-num {
  background: #DCE0E5;
  color: #000000;
  border: 1.5px solid #000000;
}

.lb-pod-num.bronze-num {
  background: #E8B98C;
  color: #000000;
  border: 1.5px solid #000000;
}

.lb-pod-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  flex: 1;
}

.lb-pod-name {
  font-size: 0.76rem;
  font-weight: 900;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.lb-pod-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.63rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-pod-score {
  font-weight: 900;
  color: var(--vermilion);
}

.lb-pod-dot {
  font-size: 0.60rem;
  color: #888888;
  opacity: 0.7;
}

.lb-pod-time {
  font-weight: 800;
  color: #555555;
}

/* STATE KOSONG TOP 1-3 BERSIH & ESTETIS TANPA GARIS TITIK-TITIK */
.lb-pod-col.pod-empty .lb-pod-name {
  color: #777777;
  font-weight: 700;
}

.lb-pod-col.pod-empty .lb-pod-score {
  color: #999999;
  font-weight: 600;
}

.lb-pod-col.pod-empty .lb-pod-dot {
  color: #CCCCCC;
}

.lb-pod-col.pod-empty .lb-pod-time {
  color: #999999;
  font-weight: 600;
}

.lb-pod-col.pod-empty .lb-pod-num {
  opacity: 0.85;
}

/* BOX KOSONG MODAL RANKING NEO-BRUTALIST PAPER PEARL */
.lb-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 18px;
  background: var(--surface);
  border: 1.5px solid #000000;
  box-shadow: 2.5px 2.5px 0px #000000;
  margin: 6px 0;
  gap: 6px;
}

.lb-empty-title {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.82rem;
  font-weight: 900;
  color: #000000;
  letter-spacing: 0.8px;
}

.lb-empty-desc {
  font-size: 0.76rem;
  color: #666666;
  line-height: 1.4;
  max-width: 260px;
}

/* =========================================================================
   BARIS MINIMALIS: PERINGKAT USER + TOMBOL SEMUA RANK
   ========================================================================= */
.lb-clean-user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px;
  background: var(--surface);
  border-bottom: none;
  box-sizing: border-box;
  user-select: none;
  gap: 8px;
}

.lb-clean-user-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}

.lb-clean-rank-badge {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.70rem;
  font-weight: 900;
  width: auto;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  background: #000000;
  color: #FFFFFF;
  border: 1.5px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 1.5px 1.5px 0px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.lb-clean-user-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.lb-clean-user-name {
  font-size: 0.76rem;
  font-weight: 900;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.lb-clean-user-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.63rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-clean-score {
  font-weight: 900;
  color: var(--vermilion);
}

.lb-clean-dot {
  font-size: 0.60rem;
  color: #888888;
  opacity: 0.7;
}

.lb-clean-time {
  font-weight: 800;
  color: #555555;
  white-space: nowrap;
}

/* TOMBOL TEXT SEMUA RANK (DI KANAN, TANPA KOTAK) */
.lb-clean-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  background: transparent;
  border: none;
  color: #000000;
  padding: 4px 6px;
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.12s ease, transform 0.1s ease;
  user-select: none;
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
}

.lb-clean-all-btn:hover {
  background: transparent;
  color: var(--vermilion);
  transform: translateX(1px);
}

.lb-clean-all-btn:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

/* =========================================================================
   TOMBOL TANTANGAN DIPISAH (STANDALONE & TIDAK KEPANJANGAN)
   ========================================================================= */
.lb-challenge-standalone-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  margin-bottom: 12px;
  width: 100%;
}

.lb-clean-challenge-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: auto;
  min-width: 220px;
  background: var(--vermilion);
  color: #FFFFFF;
  border: 2px solid #000000;
  box-shadow: 2.5px 2.5px 0px #000000;
  padding: 6px 14px;
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.70rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  transition: background-color 0.12s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.lb-clean-challenge-btn:hover {
  background: #E03E3E;
}

.lb-clean-challenge-btn:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1px 1px 0px #000000;
}

.lb-clean-btn-arrow {
  font-size: 0.76rem;
  transition: transform 0.12s ease;
}

.lb-clean-challenge-btn:hover .lb-clean-btn-arrow {
  transform: translateX(3px);
}

/* =========================================================================
   MODAL LEADERBOARD LENGKAP (ALL RANKINGS & LEVEL FILTER)
   ========================================================================= */
.lb-modal-card {
  max-width: 440px;
  width: 92%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.lb-modal-badge {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.58rem;
  font-weight: 900;
  background: var(--vermilion);
  color: #FFFFFF;
  padding: 2px 6px;
  letter-spacing: 0.6px;
  display: inline-block;
  margin-bottom: 4px;
  line-height: 1;
}

.lb-modal-body {
  padding: 12px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lb-modal-filter-row {
  display: flex;
  gap: 6px;
}

.lb-modal-filter-btn {
  flex: 1;
  padding: 5px;
  background: var(--surface);
  border: 1.8px solid #000000;
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  color: #555555;
  cursor: pointer;
  box-shadow: 2px 2px 0px #000000;
  transition: all 0.12s ease;
}

.lb-modal-filter-btn.active {
  background: #000000;
  color: #FFFFFF;
  box-shadow: 2px 2px 0px var(--vermilion);
}

/* STICKY USER POSITION CARD DI MODAL */
.lb-my-sticky-rank {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFDF8;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px var(--vermilion);
  padding: 8px 10px;
}

.lb-my-sticky-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-sticky-rank-num {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.88rem;
  font-weight: 900;
  background: #000000;
  color: #FFFFFF;
  padding: 2px 6px;
}

.lb-sticky-user-info {
  display: flex;
  flex-direction: column;
}

.lb-sticky-name {
  font-size: 0.8rem;
  font-weight: 900;
  color: #000000;
  line-height: 1.2;
}

.lb-sticky-status {
  font-size: 0.58rem;
  font-weight: 700;
  color: #666666;
  text-transform: uppercase;
}

.lb-my-sticky-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.lb-sticky-score {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--vermilion);
}

.lb-sticky-time {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.65rem;
  font-weight: 800;
  color: #444444;
}

/* LIST ROWS DI MODAL */
.lb-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lb-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1.5px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  padding: 6px 10px;
}

.lb-list-row.rank-1-row {
  border-left: 5px solid #FFE814;
}

.lb-list-row.rank-2-row {
  border-left: 5px solid #C0C0C0;
}

.lb-list-row.rank-3-row {
  border-left: 5px solid #E8B98C;
}

.lb-list-rank {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  color: #000000;
  width: 24px;
}

.lb-list-user {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 8px;
  overflow: hidden;
}

.lb-list-username {
  font-size: 0.75rem;
  font-weight: 800;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-list-usertitle {
  font-size: 0.55rem;
  font-weight: 700;
  color: #777777;
}

.lb-list-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.lb-list-score {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  color: #000000;
}

.lb-list-time {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #666666;
}

.lb-modal-footer {
  padding: 10px 14px 14px;
  border-top: 1.5px solid #000000;
  background: var(--surface);
}

/* PROGRESS DASHBOARD CARD (HOME) */
.progress-dashboard-card {
  background: var(--surface);
  border: 2.5px solid #000000;
  border-radius: 0px !important;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 4px 4px 0px #000000;
  color: #000000;
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dashboard-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000000;
}

.dashboard-percent {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--vermilion);
}

.dashboard-progress-track {
  width: 100%;
  height: 12px;
  background: #EFE8DA;
  border: 2px solid #000000;
  border-radius: 0px !important;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: none !important;
}

.dashboard-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--vermilion);
  transition: width 0.3s ease;
}

/* PROGRESS RANK BAR & LEVEL BADGE (MANGA RANKING) */
.progress-rank-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface);
  border: 2px solid #000000;
  padding: 6px 10px;
  margin-bottom: 12px;
  box-shadow: none !important;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.1s ease;
}

.progress-rank-bar:hover {
  background: #FFFDF9;
}

.rank-tag-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #555555;
  letter-spacing: 0.5px;
}

.rank-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--vermilion);
  background: var(--surface);
  border: 1.5px solid #000000;
  padding: 3px 8px;
  letter-spacing: 0.6px;
  box-shadow: none !important;
  text-transform: uppercase;
}

.rank-badge-arrow {
  stroke: var(--vermilion);
  display: block;
  transition: transform 0.12s ease;
}

.progress-rank-bar:hover .rank-badge-arrow {
  transform: translateX(2px);
}

/* 2 PILAR HERO GRID: MASTERED & NEW CARD */
.progress-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.stat-hero-box {
  background: var(--surface);
  border: 2px solid #000000;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 84px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.1s ease;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.stat-hero-box:active {
  transform: none !important;
  box-shadow: none !important;
}

.stat-hero-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 12px;
  position: relative;
}

.stat-hero-label {
  font-size: 0.90rem;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.stat-hero-number {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  padding: 6px 12px 10px;
  text-align: right;
  font-family: inherit;
  color: #000000;
}

/* Mastered: Header Hitam Solid + Teks Putih Bersih */
.stat-hero-box.box-mastered {
  border-bottom: 3.5px solid #000000;
}

.stat-hero-box.box-mastered .stat-hero-top {
  background: #111111;
  color: #FFFFFF;
  border-bottom: 1.5px solid #000000;
}

/* New Card: Header Bersih */
.stat-hero-box.box-new {
  border-bottom: 3.5px solid #000000;
}

.stat-hero-box.box-new .stat-hero-top {
  background: #F8F5EE;
  color: #000000;
  border-bottom: 1.5px dashed #000000;
}

/* GRID PENCAPAIAN (STAGE CLEARED & TOMBOL LANJUT STAGE) */
.progress-milestone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.milestone-box {
  background: var(--surface);
  border: 2px solid #000000;
  padding: 8px 12px;
  box-shadow: none !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

/* Tombol Aksi: Desain Khusus Split Badge Cyber Manga Sesuai Gambar Referensi */
.milestone-action-btn {
  background: var(--surface);
  border: 2px solid #000000;
  padding: 6px 10px;
  box-shadow: none !important;
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  transition: background-color 0.12s ease;
  gap: 8px;
}

.milestone-action-btn:hover {
  background: #FFFDF9;
}

.milestone-action-btn:active {
  transform: none !important;
  box-shadow: none !important;
}

.ms-action-split {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.ms-chapter-pill {
  font-size: 0.58rem;
  font-weight: 900;
  background: var(--vermilion);
  color: #FFFFFF;
  padding: 1px 6px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-family: inherit;
  line-height: 1.2;
}

.ms-action-txt {
  font-size: 0.82rem;
  font-weight: 900;
  color: #000000;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: inherit;
  line-height: 1.1;
  white-space: nowrap;
}

.ms-action-arrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ms-action-arrow {
  stroke: #000000;
  display: block;
  transition: transform 0.12s ease;
  flex-shrink: 0;
}

.ms-box-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #555555;
  letter-spacing: 0.4px;
}

.ms-box-val {
  font-size: 0.95rem;
  font-weight: 900;
  color: #000000;
  letter-spacing: 0.5px;
  font-family: inherit;
}

/* TOTAL STAGE TELAH SELESAI (LABEL 2 BARIS + ANGKA BESAR) */
.milestone-stage-cleared-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ms-box-label-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
}

.ms-box-title-line {
  font-size: 0.68rem;
  font-weight: 900;
  color: #000000;
  letter-spacing: 0.4px;
  line-height: 1.15;
}

.ms-box-sub-line {
  font-size: 0.58rem;
  font-weight: 800;
  color: #666666;
  letter-spacing: 0.3px;
  line-height: 1.15;
}

.ms-box-val-hero {
  font-size: 1.55rem;
  font-weight: 900;
  color: #000000;
  font-family: inherit;
  line-height: 1;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* TARGET KOSAKATA HARIAN (CUSTOM GOAL STEPPER - PURE BRUTALISM) */
.target-setting-card {
  background: var(--surface);
  border: 2px solid #000000;
  border-radius: 0px !important;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 3px 3px 0px #000000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.target-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.target-card-title {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000000;
}

.target-card-ratio {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #555555;
}

.target-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 2px solid #000000;
  border-radius: 0px !important;
  padding: 6px;
}

.btn-stepper {
  width: 42px;
  height: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000 !important;
  color: #FFFEFA !important;
  border: 2px solid #000000 !important;
  border-radius: 0px !important;
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none !important;
  transition: transform 0.08s ease, background-color 0.1s ease;
}

.btn-stepper:hover {
  background: #222222 !important;
}

.btn-stepper:active {
  transform: scale(0.95);
  background: #444444 !important;
}

.target-val-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.target-val-num {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 1.9rem;
  font-weight: 900;
  color: #000000;
  letter-spacing: -1px;
  line-height: 1;
}

.target-val-unit {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  color: #444444;
  letter-spacing: 0.4px;
}

/* EXAM MODAL SUMMARY STRIP (BRUTALIST REVIEW INFO) */
.exam-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--surface);
  border: 2px solid #000000;
  padding: 8px 10px;
  box-shadow: 2px 2px 0px #000000;
  margin-bottom: 12px;
}

/* LOG RIWAYAT PERCOBAAN UJIAN (NEO-BRUTALIST COMPACT) */
.exam-history-card {
  background: var(--surface);
  border: 1.5px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  padding: 8px 10px;
  text-align: left;
}

.exam-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid #000000;
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.exam-history-title {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #000000;
}

.exam-history-count {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--concrete);
}

.exam-history-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 110px;
  overflow-y: auto;
  padding-right: 2px;
}

.exam-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  border: 1px solid #000000;
  background: #FDFCF7;
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.7rem;
}

.exam-history-attempt {
  font-weight: 800;
  color: #333333;
}

.exam-history-score {
  font-weight: 900;
  padding: 1px 6px;
  border: 1px solid #000000;
}

.exam-history-score.passed {
  background: var(--olive);
  color: #FFFFFF;
}

.exam-history-score.failed {
  background: var(--vermilion);
  color: #FFFFFF;
}

.exam-history-date {
  font-size: 0.62rem;
  color: var(--concrete);
  font-weight: 600;
}

.exam-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.exam-sum-label {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--concrete);
  letter-spacing: 0.5px;
}

.exam-sum-val {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.88rem;
  font-weight: 900;
  color: #000000;
}

/* MODAL DAFTAR GELAR (MANGA BRUTALISM RANK LIST & FULLSCREEN) */
.modal-fullscreen-overlay {
  align-items: center !important;
  padding: 0 !important;
}

.rank-fullscreen-card {
  height: 100% !important;
  max-height: 100dvh !important;
  max-width: 480px !important;
  width: 100% !important;
  border-top: none !important;
  border-bottom: none !important;
  border-radius: 0px !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 20px 16px 16px !important;
  box-sizing: border-box !important;
}

.rank-fullscreen-card .modal-header {
  flex-shrink: 0;
  margin-bottom: 8px;
}

.rank-fullscreen-card .modal-guide-text {
  flex-shrink: 0;
  margin-bottom: 12px;
}

.rank-fullscreen-card .rank-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  margin-bottom: 12px;
}

.rank-fullscreen-card #btn-ok-rank-modal {
  flex-shrink: 0;
  margin-top: auto !important;
}

/* MODAL TANTANGAN 100 KOTOBA FULLSCREEN */
.challenge-fullscreen-card {
  height: 100% !important;
  max-height: 100dvh !important;
  max-width: 480px !important;
  width: 100% !important;
  border-top: none !important;
  border-bottom: none !important;
  border-radius: 0px !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 20px 16px 16px !important;
  box-sizing: border-box !important;
}

.challenge-fullscreen-card .modal-header {
  flex-shrink: 0;
  margin-bottom: 8px;
}

.challenge-fullscreen-card .exam-summary-strip {
  flex-shrink: 0;
}

.challenge-fullscreen-card .modal-guide-text {
  flex-shrink: 0;
}

.challenge-fullscreen-card .challenge-level-grid {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding-right: 4px;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.rank-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 12px;
}

.rank-item-card {
  background: var(--surface);
  border: 2px solid #000000;
  padding: 12px 14px;
  box-shadow: 2px 2px 0px #000000;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.rank-item-card.active {
  background: #F4F4F4;
  border-left: 6px solid #000000;
}

.rank-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.rank-badge-pill {
  font-size: 0.82rem;
  font-weight: 900;
  color: #000000;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.rank-status-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2.5px 8px;
  background: #000000;
  color: #FFFFFF;
  letter-spacing: 0.4px;
  border-radius: 0px !important;
}

.rank-item-card:not(.active) .rank-status-tag {
  background: #E0E0E0;
  color: #555555;
}

.rank-item-desc {
  font-size: 0.76rem;
  color: #444444;
  line-height: 1.4;
}

.rank-item-card.rank-gold {
  border-color: #000000;
}

.rank-item-card.rank-legend {
  border-color: #000000;
}

/* =========================================================================
   LUXURY SLIDE CARDS (PILIH MATERI KOTOBA - CYBER MANGA SLIDER)
   ========================================================================= */
.cat-slider-section {
  margin-top: 0px;
  margin-bottom: 12px;
  padding: 0;
}

.cat-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cat-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
  line-height: 1.2;
}

.cat-slide-hint {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--vermilion);
  letter-spacing: 0.8px;
  animation: hintBlink 2s infinite ease-in-out;
}

@keyframes hintBlink {
  0%, 100% { opacity: 1; transform: translateX(0); }
  50% { opacity: 0.45; transform: translateX(3px); }
}

.category-slider-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}

.category-slider-track::-webkit-scrollbar {
  display: none;
}

.cat-slide-card {
  flex: 0 0 clamp(190px, 56vw, 235px);
  max-width: 78vw;
  scroll-snap-align: start;
  background: var(--surface);
  border: 2px solid #000000;
  border-radius: 0px !important;
  box-shadow: 3.5px 3.5px 0px #000000;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

/* Animasi mengambang hidup khusus kartu aktif (Hero) */
.cat-slide-card.active-card {
  animation: cardHeroFloat 3.8s ease-in-out infinite alternate;
}

@keyframes cardHeroFloat {
  0% {
    transform: translateY(0px);
    box-shadow: 3.5px 3.5px 0px #000000;
  }
  100% {
    transform: translateY(-3px);
    box-shadow: 3.5px 6.5px 0px #000000;
  }
}

.cat-slide-card.active-card:hover {
  transform: translateY(-4px);
  box-shadow: 4px 7px 0px #000000;
}

.cat-slide-card.active-card:active {
  transform: translate(2px, 2px);
  box-shadow: 1.5px 1.5px 0px #000000;
}

.cat-slide-card.coming-soon {
  background: #F4EFE6;
  opacity: 0.72;
  cursor: not-allowed;
  border-color: #555555;
  box-shadow: 3px 3px 0px #777777;
}

.cat-slide-card.locked-card {
  background: #F2EDE4;
  opacity: 0.75;
  cursor: pointer;
  filter: grayscale(0.25);
  border-color: #222222;
  box-shadow: 2.5px 2.5px 0px #222222;
  animation: none !important;
}

.cat-slide-card.locked-card:hover {
  transform: translateY(-2px);
  box-shadow: 3.5px 4.5px 0px #000000;
  opacity: 0.9;
}

.cat-slide-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  z-index: 2;
}

.cat-chapter-tag {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  color: #555555;
  letter-spacing: 0.5px;
}

.cat-status-pill {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 5px;
  letter-spacing: 0.4px;
  line-height: 1;
}

.cat-status-pill.available {
  background: var(--vermilion);
  color: #FFFFFF;
  border: 1.5px solid #000000;
  box-shadow: 1.5px 1.5px 0px #000000;
}

.cat-status-pill.soon {
  background: var(--surface);
  color: #777777;
  border: 1.5px solid #777777;
}

.cat-slide-body {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

.cat-kanji-watermark {
  position: absolute;
  right: -6px;
  top: -12px;
  font-size: 3.6rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.04);
  pointer-events: none;
  line-height: 1;
  font-family: inherit;
  z-index: 1;
}

.cat-slide-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #000000;
  letter-spacing: 0.2px;
  line-height: 1.15;
  margin: 0 0 4px;
}

.cat-slide-desc {
  font-size: 0.72rem;
  font-weight: 600;
  color: #666666;
  margin: 0;
  line-height: 1.3;
}

.cat-slide-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1.5px dashed rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.cat-count-badge {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: 0.3px;
}

.cat-count-badge.lock {
  color: #777777;
}

.cat-btn-enter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--vermilion);
  color: #FFFFFF;
  padding: 4px 8px;
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: 1.5px solid #000000;
  box-shadow: 1.5px 1.5px 0px #000000;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.cat-slide-card.active-card:hover .cat-btn-enter {
  background: #E03E22;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0px #000000;
}

.cat-lock-lbl {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  color: #888888;
  letter-spacing: 0.5px;
}

/* INDIKATOR GESER MODERN (PAGINATION PILL-DOTS) */
.cat-slide-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 2px;
}

.cat-dot-pill {
  width: 7px;
  height: 7px;
  background: #D5CFC2;
  border: 1.5px solid #000000;
  border-radius: 0px !important;
  cursor: pointer;
  padding: 0;
  box-shadow: 1px 1px 0px #000000;
  transition: width 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s ease, transform 0.15s ease;
}

.cat-dot-pill:hover {
  transform: translateY(-1px);
}

.cat-dot-pill.active {
  width: 22px;
  background: #000000;
  box-shadow: 1.5px 1.5px 0px var(--vermilion);
}

/* DECK SCREEN HEADER (LOCKED & FIXED) */
.deck-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg);
  z-index: 10;
}

.sub-header-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "JetBrains Mono", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* MODAL / BOTTOM SHEET PILIH METODE */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 200;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-top: 3px solid #000000;
  border-left: 2px solid #000000;
  border-right: 2px solid #000000;
  border-radius: 0px !important;
  padding: 20px 16px 24px;
  transform: translateY(100%);
  transition: transform 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
  color: #000000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.modal-overlay.show .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 4px;
}

.modal-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "JetBrains Mono", sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #000000;
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.modal-subtitle {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: #555555;
  letter-spacing: 0.3px;
}

.modal-guide-text,
.exam-info-banner {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #222222;
  background: var(--surface-dark);
  border: 1.5px solid #000000;
  border-left: 4.5px solid var(--primary);
  padding: 10px 12px;
  border-radius: 0px !important;
  margin-bottom: 14px;
  font-weight: 600;
  box-sizing: border-box;
}

.modal-guide-text strong,
.exam-info-banner strong {
  color: var(--primary);
  font-weight: 800;
}

.modal-guide-steps {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  white-space: nowrap;
  margin-top: 3px;
  line-height: 1.25;
  color: #555555;
}

.modal-guide-steps strong {
  color: var(--primary);
  font-size: inherit;
  font-weight: 900;
}

/* SPEED RECALL INTRO START CARD */
.sr-intro-card {
  background: var(--surface);
  border: 2px solid #000000;
  box-shadow: 2.5px 2.5px 0px #000000;
  padding: 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.sr-intro-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #111111;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px dashed #000000;
}

.sr-rules-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sr-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.sr-rule-badge {
  display: inline-block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: #000000;
  color: var(--surface);
  padding: 2px 7px;
  border-radius: 0px;
  flex-shrink: 0;
  margin-top: 1px;
}

.sr-rule-text {
  font-size: 0.8rem;
  color: #222222;
  font-weight: 500;
}

.sr-rule-text strong {
  color: #000000;
  font-weight: 800;
}

/* QUIZ GUIDE MODAL CONTENT */
.guide-content {
  margin-bottom: 18px;
  color: var(--text-dark);
}

.guide-intro {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.guide-badges-demo {
  display: flex;
  justify-content: center;
  gap: 8px;
  background: var(--surface-dark);
  padding: 8px 12px;
  border-radius: 6px;
  margin: 10px 0 14px;
}

.guide-list {
  list-style: none;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  background: #F4F1EA;
  padding: 10px 14px;
  border-radius: 6px !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary);
}

.guide-list li strong {
  color: var(--primary);
}

.guide-footer-note {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #333333;
  background: #F4F1EA;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary);
  padding: 8px 12px;
  border-radius: 6px !important;
  margin-bottom: 10px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-actions .btn {
  min-height: 52px;
  padding: 0 16px;
  text-align: left;
  justify-content: flex-start;
  background: var(--surface) !important;
  color: #000000 !important;
  box-shadow: none !important;
  transform: none !important;
  border: 2px solid #000000 !important;
  border-radius: 0px !important;
}

.modal-actions .btn:hover {
  box-shadow: none !important;
  transform: none !important;
  filter: brightness(0.96);
}

.modal-actions .btn:active {
  box-shadow: none !important;
  transform: none !important;
  filter: brightness(0.92);
}

.modal-actions .btn {
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  padding: 10px 14px;
  min-height: 44px;
}

.modal-actions .btn .exam-btn-content {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  white-space: nowrap;
}

.modal-actions .btn .exam-btn-content > span:first-child {
  font-size: 0.80rem;
  white-space: nowrap;
}

/* SCREEN STUDY & FLASHCARD ARENA (HAFALAN KOTOBA) */
#screen-study,
#screen-flashcard-arena {
  display: none;
  flex-direction: column;
  flex: 1;
  height: 100%;
  padding: 0;
  overflow: hidden;
  position: relative;
}

#screen-study.active,
#screen-flashcard-arena.active {
  display: flex;
}

/* STUDY VIEW TABS (PURE BRUTALISM: SHARP 0PX, FLAT NO SHADOW) */
.study-view-tabs {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 8px 16px 6px;
  background: transparent;
  z-index: 10;
}

.study-tab-btn {
  flex: 1;
  padding: 9px 12px;
  background: var(--surface);
  border: 2px solid #000000 !important;
  color: #000000;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 0px !important;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: none !important;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.study-tab-btn:hover:not(.active) {
  background: #F0F0F0;
  color: #000000;
}

.study-tab-btn.active {
  background: #000000 !important;
  color: #FFFFFF !important;
  border-color: #000000 !important;
  box-shadow: none !important;
}

/* STUDY LIST SECTION & SCROLLING */
#study-list-section {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 20px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
}

#study-list-section::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

#study-flashcard-section {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#study-flashcard-section::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* STUDY LIST HEADER BANNER */
.study-list-header-banner {
  background: var(--surface);
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.study-list-badge {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 8px;
  background: #000000;
  color: #FFFFFF;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.study-list-subtext {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #444444;
}

/* STUDY LIST ITEM CARDS */
.kotoba-study-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.study-item-card {
  background: var(--surface);
  border: 2px solid #000000;
  border-radius: 0px !important;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 3px 3px 0px #000000;
  transition: transform 0.15s ease;
}

.study-item-card:hover {
  transform: translateY(-2px);
}

.study-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.study-card-idx {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.75rem;
  font-weight: 900;
  color: #777777;
  min-width: 22px;
}

.study-jp {
  display: flex;
  flex-direction: column;
}

.study-kanji {
  font-size: 1.45rem;
  font-weight: 900;
  color: #000000;
  line-height: 1.15;
}

.study-furigana {
  font-size: 0.85rem;
  font-weight: 700;
  color: #555555;
  margin-top: 2px;
}

.study-meaning {
  font-size: 0.95rem;
  font-weight: 800;
  color: #222222;
  text-align: right;
  max-width: 50%;
  line-height: 1.25;
}

/* SMART FLASHCARD ARENA (ACTIVE RECALL & COGNITIVE REPETITION) */
#screen-flashcard-arena {
  padding: 0;
  height: 100%;
}

#study-flashcard-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  height: 100%;
  padding: 12px 16px 16px;
  box-sizing: border-box;
}

.flashcard-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
  height: 100%;
  max-width: 440px;
  margin: 0 auto;
  gap: 14px;
  box-sizing: border-box;
}

.fc-header-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  padding: 0;
}

.btn-fc-back-clean {
  background: transparent !important;
  color: #555555 !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  margin-left: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.btn-fc-back-clean:hover {
  opacity: 0.7;
  transform: translateX(-2px);
}

.btn-fc-back-clean:active {
  transform: translateX(-4px);
}

.fc-stage-tag {
  display: none;
}

.flashcard-progress {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.95rem;
  font-weight: 900;
  color: #555555;
  letter-spacing: 1.5px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
}

.flashcard-progress.completed {
  color: var(--primary);
  background: transparent !important;
}

.flashcard-box {
  width: 100%;
  flex: 1;
  min-height: 280px;
  background: var(--surface);
  border: none !important;
  border-width: 0 !important;
  outline: none !important;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px 18px;
  cursor: pointer;
  position: relative;
  user-select: none;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.flashcard-box:active {
  transform: scale(0.995);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.fc-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  flex: 1;
  position: relative;
}

.flashcard-box:not(.flipped) .fc-back {
  display: none !important;
}

.flashcard-box.flipped .fc-front {
  display: none !important;
}

.flashcard-box:not(.completion-active) .fc-completion-view {
  display: none !important;
}

.flashcard-box.completion-active .fc-front,
.flashcard-box.completion-active .fc-back {
  display: none !important;
}

.flashcard-box.completion-active .fc-completion-view {
  display: flex !important;
}

.fc-status-badge {
  display: none;
}

.fc-kanji {
  font-size: clamp(3.8rem, 15vw, 5.8rem);
  font-weight: 900;
  color: #000000;
  margin: 0;
  line-height: 1;
  letter-spacing: 2px;
}

/* PEEK FURIGANA TOGGLE BUTTON (HIDDEN PER USER REQUEST) */
.btn-fc-peek-furigana {
  display: none;
}

.fc-furigana {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--vermilion);
  margin-top: 8px;
}

.fc-furigana.hidden {
  display: none;
}

.fc-back-reading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 22px;
  width: 100%;
  text-align: center;
}

.fc-back-furigana {
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
  font-weight: 700;
  color: #D32F2F; /* Deep Vermilion - Kontras Tajam & Ergonomis (Ruby Reading) */
  line-height: 1.2;
  letter-spacing: 1.5px;
}

.fc-back-kanji {
  font-size: clamp(3.4rem, 13vw, 4.8rem);
  font-weight: 900;
  color: #1A1A1A; /* Sumi Ink Black - Tajam alami tanpa menusuk retina */
  line-height: 1.1;
  letter-spacing: 2px;
}

.fc-meaning {
  font-size: clamp(1.4rem, 5.5vw, 1.9rem);
  font-weight: 800;
  color: #2D2D2D; /* Deep Charcoal - Keterbacaan optimal & menenangkan */
  margin: 0;
  line-height: 1.35;
  letter-spacing: 0.5px;
  text-align: center;
}

/* AUDIO ICON BUTTON ONLY (DI BAWAH KIRI CARD, HANYA ICON & SHADOW, TANPA KOTAK) */
.btn-fc-audio {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent !important;
  color: #555555 !important;
  border: none !important;
  border-width: 0 !important;
  outline: none !important;
  padding: 0;
  cursor: pointer;
  border-radius: 50% !important;
  box-shadow: none !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.12));
  transition: transform 0.15s ease, filter 0.15s ease, color 0.15s ease;
  z-index: 5;
}

.btn-fc-audio svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.btn-fc-audio:hover {
  color: #333333 !important;
  transform: scale(1.1);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.btn-fc-audio:active {
  transform: scale(0.95);
}

.fc-hint {
  display: none;
}

/* SINGLE DYNAMIC CONTROLS ZONE */
.fc-controls-wrap {
  width: 100%;
}

/* TOMBOL LIHAT JAWABAN (TANPA BORDER, WARNA ABU-ABU #9E9E9E PERSIS DARI USER DENGAN TEKS WARNA BG) */
#btn-fc-flip,
.btn-fc-flip,
.btn.btn-fc-flip {
  width: 100%;
  padding: 14px 16px;
  background: #9E9E9E !important;
  color: var(--bg) !important;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none !important;
  border-width: 0 !important;
  outline: none !important;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

#btn-fc-flip:hover,
.btn-fc-flip:hover {
  background: #8E8E8E !important;
  color: var(--surface) !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12) !important;
}

#btn-fc-flip:active,
.btn-fc-flip:active {
  transform: translateY(1px) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
}

/* SELF-ASSESSMENT ACTIONS (BELUM & SUDAH: WARNA ABU-ABU #9E9E9E PERSIS DARI USER DENGAN TEKS WARNA BG) */
.fc-assessment-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.btn-fc-rate,
.btn.btn-fc-rate,
.btn-fc-forgot,
.btn.btn-fc-forgot,
.btn-fc-remembered,
.btn.btn-fc-remembered {
  flex: 1;
  padding: 14px 16px;
  background: #9E9E9E !important;
  color: var(--bg) !important;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none !important;
  border-width: 0 !important;
  outline: none !important;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.btn-fc-rate:hover,
.btn-fc-forgot:hover,
.btn-fc-remembered:hover {
  background: #8E8E8E !important;
  color: var(--surface) !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12) !important;
}

.btn-fc-rate:active,
.btn-fc-forgot:active,
.btn-fc-remembered:active {
  transform: translateY(1px) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
}

/* OPSI C: FLASHCARD COMPLETION VIEW (JUDUL ATAS, BANNER TENGAH, SUBTEKS BAWAH) */
.fc-completion-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 10px 4px;
  box-sizing: border-box;
  text-align: center;
}

.fc-complete-title {
  font-size: clamp(1.6rem, 6.5vw, 2.3rem);
  font-weight: 900;
  color: #1A1A1A;
  letter-spacing: 1.5px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.fc-complete-banner-box {
  width: 100%;
  aspect-ratio: 1920 / 600 !important;
  border: 2.5px solid #000000 !important;
  border-radius: 0px !important;
  background: var(--surface);
  overflow: hidden;
  margin: 12px 0 16px;
  box-shadow: 3.5px 3.5px 0px #000000 !important;
  box-sizing: border-box;
  display: block;
  flex-shrink: 0;
}

.fc-complete-banner-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.fc-complete-sub {
  font-size: clamp(0.85rem, 3.2vw, 0.95rem);
  font-weight: 700;
  color: #555555;
  line-height: 1.45;
  max-width: 92%;
  margin: 0 auto;
}

/* TOMBOL FINISH FLASHCARD / LANJUT KE LATIHAN (BERSIH, TANPA BORDER, SHADOW HALUS) */
#btn-start-quiz-from-study,
.btn-fc-finish,
.btn.btn-fc-finish {
  width: 100%;
  padding: 14px 16px;
  background: var(--vermilion) !important;
  color: #FFFFFF !important;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none !important;
  border-width: 0 !important;
  outline: none !important;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 82, 82, 0.25) !important;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

#btn-start-quiz-from-study:hover,
.btn-fc-finish:hover {
  background: #E53935 !important;
  box-shadow: 0 6px 20px rgba(255, 82, 82, 0.35) !important;
}

#btn-start-quiz-from-study:active,
.btn-fc-finish:active {
  transform: translateY(1px) !important;
  box-shadow: 0 1px 4px rgba(255, 82, 82, 0.15) !important;
}

/* NAVIGASI PREV & NEXT */
.flashcard-nav {
  display: flex;
  gap: 10px;
  width: 100%;
}

.flashcard-nav button {
  flex: 1;
  background: var(--surface) !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  border-radius: 0px !important;
  box-shadow: 2.5px 2.5px 0px #000000 !important;
  font-weight: 800;
  text-transform: uppercase;
}

.flashcard-nav button:hover:not(:disabled) {
  background: #ECE8DE !important;
}

.flashcard-nav button:active:not(:disabled) {
  transform: translate(1.5px, 1.5px) !important;
  box-shadow: 1px 1px 0px #000000 !important;
}

.flashcard-nav button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none !important;
}

/* TOAST NOTIF */
.toast-notif {
  position: fixed;
  bottom: 74px;
  left: 50%;
  transform: translate(-50%, 20px);
  width: auto;
  min-width: 200px;
  max-width: 320px;
  background: var(--surface);
  color: var(--text-main);
  font-family: 'JetBrains Mono', Courier, monospace;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2px;
  padding: 8px 16px;
  border-radius: 0px;
  border: 2px solid #000000;
  box-shadow: 2.5px 2.5px 0px #000000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
  z-index: 999;
  text-align: center;
  line-height: 1.3;
}

.toast-notif.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.deck-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 80px;
}

.day-grid {
  display: flex;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  padding: 18px 8px 16px;
  scrollbar-width: none; /* Disembunyikan untuk digantikan indikator custom neubrutalist */
}

.day-grid::-webkit-scrollbar {
  display: none;
}

/* CUSTOM NEUBRUTALIST SCROLL PROGRESS INDICATOR (CLEAN MINIMALIST BAR) */
.day-scroll-track-wrapper {
  display: flex;
  align-items: center;
  padding: 2px 8px 14px;
  user-select: none;
}

.day-scroll-progress-bar {
  width: 100%;
  height: 8px;
  background: #EAE5D9;
  border: 1.5px solid #000000;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  border-radius: 0px !important;
}

.day-scroll-progress-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 25%;
  background: var(--vermilion);
  border-right: 1.5px solid #000000;
  transition: width 0.08s linear, transform 0.08s linear;
}

/* FLOATING CARD DESIGN (MANGA COMIC PANEL - PURE BRUTALISM) */
.floating-card {
  flex: 0 0 250px;
  max-width: 82vw;
  scroll-snap-align: center;
  background: var(--surface);
  border: 2px solid #000000;
  border-radius: 0px !important;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 4px 4px 0px #000000;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
  position: relative;
  user-select: none;
  cursor: pointer;
}

.floating-card:not(.locked) {
  animation: cardFloat 4s ease-in-out infinite alternate;
}

@keyframes cardFloat {
  0% {
    transform: translateY(0px);
    box-shadow: 4px 4px 0px #000000;
  }
  100% {
    transform: translateY(-4px);
    box-shadow: 4px 8px 0px #000000;
  }
}

.floating-card:not(.locked):active {
  transform: translate(2px, 2px) !important;
  box-shadow: 2px 2px 0px #000000 !important;
}

.floating-card.current-active {
  border-color: #000000;
  box-shadow: 5px 5px 0px #000000;
}

.floating-card.locked {
  background: #F9F9F9;
  border-color: #000000;
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: 2px 2px 0px #000000;
}

.floating-card.in-cooldown {
  cursor: pointer !important;
  opacity: 0.95 !important;
  border-color: #000000;
}

.floating-card.in-cooldown:hover {
  border-color: #000000;
  transform: translateY(-4px);
}

.floating-card.completed {
  border-color: #000000;
  background: var(--surface);
}

.floating-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 14px;
}

.floating-card .day-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #CCCCCC;
  padding-bottom: 8px;
}

.floating-card.locked .day-card-header {
  border-bottom-color: #CCCCCC;
}

.floating-card .day-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: 0.5px;
}

.floating-card.locked .day-num {
  color: #888888;
}

.day-badge-ready {
  font-family: inherit;
  font-size: var(--badge-font);
  font-weight: 800;
  padding: 3px 8px;
  background: #000000;
  color: #FFFFFF;
  border: 1.5px solid #000000;
  border-radius: 0px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.day-badge-done {
  font-family: inherit;
  font-size: var(--badge-font);
  font-weight: 800;
  padding: 3px 8px;
  background: var(--vermilion);
  color: #FFFFFF;
  border: 1.5px solid #000000;
  border-radius: 0px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.day-card-center {
  text-align: center;
  padding: 10px 0;
}

.day-big-num {
  font-size: 2.6rem;
  font-weight: 900;
  color: #000000;
  line-height: 1;
}

.floating-card.locked .day-big-num {
  color: #888888;
}

.day-big-lbl {
  font-size: var(--font-micro);
  font-weight: 800;
  color: #666666;
  letter-spacing: 1.5px;
  margin-top: 4px;
  text-transform: uppercase;
}

.day-card-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed #CCCCCC;
  padding-top: 10px;
}

.floating-card.locked .day-card-footer {
  border-top-color: #CCCCCC;
}

.tag-new {
  align-self: flex-start;
  font-family: inherit;
  font-size: var(--badge-font);
  font-weight: 800;
  padding: 3px 8px;
  background: #000000;
  color: #FFFFFF;
  border: 1.5px solid #000000;
  border-radius: 0px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.tag-review {
  align-self: flex-start;
  font-family: inherit;
  font-size: var(--badge-font);
  font-weight: 800;
  padding: 3px 8px;
  background: #F0F0F0;
  color: #000000;
  border: 1.5px solid #000000;
  border-radius: 0px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.day-lock-msg {
  font-size: var(--font-micro);
  color: var(--concrete);
  line-height: 1.3;
}

/* FLOATING EXAM CARD (NEUBRUTALIST MILESTONE PANEL) */
.exam-floating-card {
  border: 2px solid #000000 !important;
  background: var(--surface) !important;
  box-shadow: 4px 4px 0px #000000 !important;
}

.exam-floating-card.locked {
  background: #F4EFE6 !important;
  opacity: 0.88 !important;
  box-shadow: 3px 3px 0px #000000 !important;
}

.exam-card-header {
  border-bottom: 1.5px solid #000000 !important;
  padding-bottom: 8px;
}

.exam-title-text {
  font-family: inherit;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  color: #000000 !important;
  line-height: 1;
}

/* Status Badges */
.exam-tag-badge {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border: 1.5px solid #000000;
  border-radius: 0px !important;
  letter-spacing: 0.5px;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 1.5px 1.5px 0px #000000;
}

.exam-tag-badge.locked {
  background: #E5DFD3;
  color: #555555;
}

.exam-tag-badge.ready {
  background: var(--vermilion);
  color: #FFFFFF;
}

.exam-tag-badge.passed {
  background: #000000;
  color: #FFFFFF;
}

.exam-card-center {
  padding: 10px 0;
  text-align: center;
}

.exam-big-num {
  font-size: 2.8rem !important;
  font-weight: 900;
  color: #000000 !important;
  line-height: 1;
}

.exam-floating-card.locked .exam-big-num {
  color: #666666 !important;
}

.exam-big-lbl {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  color: #555555 !important;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* Exam Requirement Box & Progress Meter */
.exam-card-footer {
  border-top: 1.5px solid #000000 !important;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exam-requirement-box {
  background: #F2EDE2;
  border: 1.5px solid #000000;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 1.5px 1.5px 0px #000000;
}

.exam-req-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exam-req-title {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.6rem;
  font-weight: 800;
  color: #555555;
  letter-spacing: 0.5px;
}

.exam-req-count {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.65rem;
  font-weight: 800;
  color: #000000;
}

.exam-req-meter {
  width: 100%;
  height: 6px;
  background: #E0DACB;
  border: 1px solid #000000;
  position: relative;
  overflow: hidden;
}

.exam-req-meter-fill {
  height: 100%;
  background: var(--vermilion);
  transition: width 0.3s ease;
}

.exam-lock-msg {
  font-size: var(--font-micro);
  color: #555555;
  line-height: 1.3;
}

/* =========================================================================
   ADAPTIVE SRS QUEUE STATUS CARD (PURE BRUTALISM)
   ========================================================================= */
.queue-status-card {
  background: var(--surface);
  border: 2px solid #000000;
  border-radius: 0px !important;
  padding: 14px 16px;
  margin-top: 16px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.queue-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px dashed #CCCCCC;
  padding-bottom: 8px;
  gap: 8px;
}

.queue-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #000000;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.queue-badge-count {
  font-family: inherit;
  font-size: var(--badge-font);
  font-weight: 800;
  padding: 3px 8px;
  background: #000000 !important;
  color: #FFFFFF !important;
  border: 1.5px solid #000000;
  border-radius: 0px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.queue-empty-msg {
  font-size: var(--font-caption);
  color: #222222;
  font-weight: 700;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.queue-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queue-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 8px 12px;
}

.queue-item-word {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.queue-item-kanji {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}

.queue-item-reading {
  font-size: var(--font-caption);
  color: var(--concrete);
}

.queue-item-meaning {
  font-size: var(--font-caption);
  color: #444;
}

.src-badge {
  font-family: inherit;
  font-size: var(--badge-micro-font);
  font-weight: 800;
  text-transform: uppercase;
  padding: var(--badge-micro-p);
  border-radius: 3px;
  letter-spacing: 0.5px;
  line-height: 1.2;
  border: 1px solid transparent;
}

.src-badge-latihan {
  background: #3b2124;
  color: #f799a4;
  border-color: #633339;
}

.src-badge-speed {
  background: #382c16;
  color: #f7b348;
  border-color: #73531d;
}

.src-badge-ujian {
  background: #3d2316;
  color: #fca468;
  border-color: #7d3f1a;
}

.exam-card.day-card .exam-banner-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.exam-card.day-card .exam-banner-range {
  font-size: 0.72rem;
  color: var(--concrete);
  font-weight: 600;
}

.exam-card.day-card .exam-banner-count {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.exam-card.day-card .exam-banner-status {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.exam-banner-status.status-locked {
  background: var(--surface-dark);
  color: var(--concrete);
  border: 1px solid var(--border);
}

.exam-banner-status.status-open {
  background: rgba(181, 166, 66, 0.15);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.exam-banner-status.status-passed {
  background: rgba(107, 142, 35, 0.18);
  color: var(--olive);
  border: 1px solid var(--olive);
}

.exam-card.day-card.locked {
  border-style: dashed;
  border-color: var(--border);
  opacity: 0.5;
  filter: grayscale(30%) brightness(0.9);
}

.exam-card.day-card.completed {
  border-color: var(--olive);
  border-style: solid;
}

.deck-footer-selection {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 40;
  box-sizing: border-box;
}

.selection-info {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--warning);
}

.deck-footer-selection .btn {
  min-height: 44px;
  padding: 0 20px;
}

.deck-footer-selection .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.home-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  z-index: 40;
  box-sizing: border-box;
}

#screen-study .home-footer,
#screen-flashcard-arena .home-footer {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  padding: 8px 16px 12px !important;
  margin-top: auto !important;
  flex-shrink: 0 !important;
  z-index: 10 !important;
}

/* BUTTONS (PURE BRUTALISM: SHARP CORNERS, BOLD INK BORDER, NO SHADOW) */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h-primary);
  padding: var(--btn-p-primary);
  border-radius: 0px !important;
  font-family: inherit;
  font-size: var(--font-body);
  font-weight: 800;
  border: 2px solid #000000 !important;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: none !important;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.btn:active {
  transform: none !important;
}

.btn-primary { 
  background: var(--vermilion) !important; 
  color: #FFFFFF !important; 
  border-color: #000000 !important;
  box-shadow: 3px 3px 0px #000000 !important;
}
.btn-primary:hover {
  background: var(--vermilion-dark) !important;
}
.btn-primary:active {
  transform: translate(2px, 2px) !important;
  box-shadow: 1px 1px 0px #000000 !important;
}

.btn-secondary { 
  background: var(--surface) !important; 
  color: #000000 !important; 
  border-color: #000000 !important;
  box-shadow: 2.5px 2.5px 0px #000000 !important;
}
.btn-secondary:hover {
  background: #ECE8DE !important;
}
.btn-secondary:active {
  transform: translate(1.5px, 1.5px) !important;
  box-shadow: 1px 1px 0px #000000 !important;
}

.btn-dark {
  background: #000000 !important;
  color: #FFFFFF !important;
  border-color: #000000 !important;
  box-shadow: 3px 3px 0px #000000 !important;
}
.btn-dark:hover {
  background: #222222 !important;
}
.btn-dark:active {
  transform: translate(2px, 2px) !important;
  box-shadow: 1px 1px 0px #000000 !important;
}

.btn:disabled {
  opacity: 0.38 !important;
  cursor: not-allowed !important;
  box-shadow: 1.5px 1.5px 0px #000000 !important;
  transform: none !important;
}

.btn-warning { 
  background: var(--surface) !important; 
  color: #000000 !important; 
  border-color: #000000 !important;
}
.btn-warning:hover {
  background: #ECE8DE !important;
}

.btn-block { width: 100%; }

.btn-sm {
  min-height: var(--btn-h-sm);
  padding: var(--btn-p-sm);
  font-size: var(--font-caption);
}

/* Locked state for level buttons inside modals */
.level-action-btn.locked-btn {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(30%);
  pointer-events: none;
}

/* Locked Tahap 2 & 3 buttons */
#btn-choice-quiz.btn-locked,
#btn-choice-speedrun.btn-locked {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(40%) brightness(0.85);
  background: #E8E4D9 !important;
  color: #666666 !important;
  border-color: #000000 !important;
  box-shadow: none !important;
}

.btn-icon {
  width: 38px;
  height: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--warning);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius-sm);
  transition: transform 0.1s;
}

.btn-icon:active {
  transform: scale(0.92);
}

#btn-back-from-study,
#btn-back-home {
  color: #000000 !important;
}

/* QUIZ SCREEN */
.quiz-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 14px;
  margin-bottom: 12px;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-container {
  flex: 1;
  height: 16px;
  background: var(--surface);
  border: 2px solid #000000;
  border-radius: 0px !important;
  overflow: hidden;
  position: relative;
  box-shadow: 2px 2px 0px #000000;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-right: 2px solid #000000;
  border-radius: 0px !important;
  position: relative;
  overflow: hidden;
  /* Transisi pegas cairan saat air bertambah (Knowt Style) */
  transition: width 0.55s cubic-bezier(0.25, 1.25, 0.5, 1);
}

/* Kilauan halus permukaan air statis (tanpa animasi memusingkan) */
.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

/* Efek gelombang air mengalir yang HANYA aktif saat bertambah */
.progress-bar.water-surge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 100%
  );
  animation: waterSurgeSweep 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes waterSurgeSweep {
  0% {
    left: -100%;
    opacity: 0.9;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

.progress-bar.is-remedial {
  background: #555555;
  background-image: repeating-linear-gradient(45deg, #000000, #000000 6px, #555555 6px, #555555 12px);
  border-right: 2px solid #000000;
}

.stats-pill {
  font-size: var(--badge-font);
  font-weight: 700;
  color: #000000;
  background: var(--surface);
  padding: var(--badge-p);
  border-radius: 0px !important;
  border: 2px solid #000000;
  line-height: 1.2;
}

.stats-counter-badge,
.stats-counter-text,
.stats-pill-sword {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px 0 6px;
  border-radius: 0px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #000000;
  font-family: 'JetBrains Mono', Courier, monospace;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  min-width: auto;
  text-align: right;
}

.stats-counter-badge #stats-counter-num,
.stats-counter-text #stats-counter-num,
.stats-pill-sword #stats-counter-num {
  color: #000000;
  font-weight: 900;
}

.stats-sword-icon {
  display: none !important;
}

#screen-quiz {
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.quiz-round-banner {
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
}

.quiz-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  min-height: 0;
  padding: 10px 16px 14px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.kotoba-card {
  background: var(--surface);
  border: 2.5px solid #000000;
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  margin: 0 0 12px 0;
  flex: 1;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 4px 4px 0px #000000;
  transition: all 0.2s ease;
  position: relative;
}

/* Sembunyikan label TEBAK ARTI agar kartu bersih & fokus ke Kanji */
.card-label-top {
  display: none !important;
}

.kanji-display {
  font-size: 3.5rem;
  font-weight: 900;
  color: #000000;
  margin-bottom: 6px;
  line-height: 1.1;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.furigana-display {
  font-size: 1.35rem;
  font-weight: 700;
  color: #555555;
  margin-bottom: 4px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* 4-STAGE TRACKER PER WORD */
.word-stage-tracker {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 10px;
}

.stage-dot {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface);
  color: #000000;
  border: 1.5px solid #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.stage-dot.current {
  border-color: #000000;
  color: #FFFFFF;
  background: var(--vermilion);
  box-shadow: 1.5px 1.5px 0px #000000;
}

.stage-dot.completed {
  background: #E5E5E5;
  border-color: #000000;
  color: #000000;
}

/* CHOICES PANEL */
#zone-mcq {
  width: 100%;
  background: transparent;
  padding: 0 0 12px 0;
  flex-shrink: 0;
}

.mcq-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.mcq-btn {
  background: var(--surface);
  border: 2px solid #000000;
  color: #000000;
  min-height: 58px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 3px 3px 0px #000000;
  transition: transform 0.1s ease, background 0.1s ease, box-shadow 0.1s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
}

.mcq-btn:hover {
  background: #F8F8F8;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000000;
}

.mcq-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000000;
}

.mcq-btn.correct {
  background: #000000 !important;
  border-color: #000000 !important;
  color: #FFFFFF !important;
  box-shadow: 3px 3px 0px #000000 !important;
}

.mcq-btn.correct .mcq-furi,
.mcq-btn.correct .mcq-mean {
  color: #FFFFFF !important;
}

.mcq-btn.wrong,
.mcq-btn.timeout-missed {
  background: #FFF8F8 !important;
  border: 2.5px solid var(--vermilion) !important;
  color: var(--vermilion) !important;
  box-shadow: 2.5px 2.5px 0px var(--vermilion) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mcq-btn.wrong .mcq-furi,
.mcq-btn.wrong .mcq-mean,
.mcq-btn.timeout-missed .mcq-furi,
.mcq-btn.timeout-missed .mcq-mean {
  color: var(--vermilion) !important;
}

/* TAMPILAN NETRAL TOMBOL TERPILIH SAAT MODE UJIAN (TANPA SPOILER BENAR/SALAH) */
.mcq-btn.exam-selected {
  background: #000000 !important;
  border-color: #000000 !important;
  color: #FFFFFF !important;
  box-shadow: 2px 2px 0px #000000 !important;
  transform: translate(1px, 1px) !important;
}

.mcq-btn.exam-selected .mcq-furi,
.mcq-btn.exam-selected .mcq-mean,
.mcq-btn.exam-selected .mcq-single-text {
  color: #FFFFFF !important;
}

.mcq-furi {
  font-family: 'Space Mono', 'Noto Sans JP', monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: #000000;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.mcq-sep {
  display: none;
}

.mcq-mean {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555555;
  line-height: 1.2;
}

.mcq-btn .mcq-single-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.3;
}

.mcq-btn.correct .mcq-single-text {
  color: #FFFFFF !important;
}

.mcq-btn.wrong .mcq-single-text {
  color: var(--vermilion) !important;
}

/* TYPING FORM */
.typing-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.text-input {
  width: 100%;
  min-height: 52px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  outline: none;
}

.text-input:focus {
  border-color: var(--primary);
}

/* FEEDBACK SHEET (MANGA POP PANEL) */
.feedback-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-top: 3.5px solid #000000;
  border-left: 2.5px solid #000000;
  border-right: 2.5px solid #000000;
  border-radius: 0px !important;
  padding: 22px 18px 24px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  box-shadow: 0 -4px 0px rgba(0, 0, 0, 0.25);
  color: #000000;
}

#feedback-sheet {
  min-height: 52vh;
  box-sizing: border-box;
}

#feedback-sheet .feedback-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: calc(52vh - 46px);
}

#screen-quiz:has(#feedback-sheet.show) #zone-mcq {
  visibility: hidden;
  pointer-events: none;
}

#screen-quiz:has(#feedback-sheet.show) #quiz-main-content {
  pointer-events: none;
}

.feedback-sheet.show {
  transform: translate(-50%, 0);
}

.feedback-sheet.is-correct {
  border-top-color: #000000;
}

.feedback-sheet.is-wrong {
  border-top-color: #000000;
}

.feedback-title {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feedback-sheet.is-correct .feedback-title { color: #000000; }
.feedback-sheet.is-wrong {
  border-top: 3.5px solid #000000;
}
.feedback-sheet.is-wrong .feedback-title { 
  color: var(--vermilion); 
}

.feedback-detail {
  font-size: 0.95rem;
  color: #222222;
  margin-bottom: 16px;
  line-height: 1.4;
}

#feedback-sheet .feedback-detail {
  margin-bottom: auto;
  padding-bottom: 14px;
}

/* KOTAK KOREKSI JAWABAN SAAT SALAH (CLEAN ZERO-REDUNDANCY) */
.feedback-correction-box {
  background: var(--surface);
  border: 2px solid #000000;
  padding: 10px 14px;
  margin: 8px 0 10px;
  border-radius: 0px !important;
  box-shadow: 2.5px 2.5px 0px #000000;
}

.fb-corr-label {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #777777;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.fb-corr-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #000000;
  line-height: 1.35;
}

.fb-corr-kanji {
  font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: #000000;
  letter-spacing: 0.5px;
}

.fb-corr-eq {
  color: #555555;
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 2px;
}

.fb-corr-arrow {
  color: var(--vermilion);
  font-weight: 900;
}

.fb-corr-meaning {
  color: #111111;
  font-size: 1.25rem;
  font-weight: 800;
}

.fb-requeue-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #555555;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}

/* AUDIO ICON BUTTON IN FEEDBACK (NO BADGE, ICON ONLY WITH SHADOW) */
.btn-feedback-audio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  padding: 0;
  cursor: pointer;
  color: #555555 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
  transition: transform 0.15s ease, filter 0.15s ease, color 0.15s ease;
  vertical-align: middle;
  flex-shrink: 0;
}

.btn-feedback-audio svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.btn-feedback-audio:hover {
  color: #111111 !important;
  transform: scale(1.15);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

.btn-feedback-audio:active {
  transform: scale(0.92);
}

.fb-correct-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fb-requeue-icon {
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
}

/* FULL-PAGE CHECKPOINT (SOLUSI 2: VISUAL SCALE-UP TRUE VERTICAL CENTERING) */
.quiz-checkpoint-page {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  animation: fadeIn 0.15s ease-out;
  padding: 14px 16px 14px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.quiz-round-banner {
  margin: 0 !important;
  flex-shrink: 0;
}

.checkpoint-greeting-strip {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 4px 0;
  margin: 16px auto 16px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  flex-shrink: 0;
}

#checkpoint-greeting-text {
  font-family: 'Space Mono', 'JetBrains Mono', Courier, monospace;
  font-size: 0.94rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.45;
  text-align: center;
  display: block;
  margin: 0 auto;
  padding: 0;
  max-width: 420px;
}

.checkpoint-card {
  background: var(--surface);
  border: 2.5px solid #000000;
  border-radius: var(--radius-md);
  padding: 18px 16px 16px;
  box-shadow: 4px 4px 0px #000000;
  color: #000000;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin: 0 !important;
}

.round-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
}

.round-pct-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.round-pct-bar-track {
  width: 100%;
  height: 10px;
  background: #E5E0D8;
  border: none;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.round-pct-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  background: var(--vermilion);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.round-progress-pct {
  font-size: 0.82rem;
  font-weight: 800;
  color: #000000;
  font-family: 'JetBrains Mono', Courier, monospace;
  letter-spacing: -0.2px;
  line-height: 1;
  min-width: 32px;
  text-align: right;
  flex-shrink: 0;
}

.round-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.round-section-title {
  font-size: 0.92rem;
  font-weight: 900;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.round-sub-info {
  font-size: var(--font-caption);
  color: var(--concrete);
  font-weight: 700;
}

.round-badge {
  display: inline-block;
  font-family: inherit;
  font-size: var(--badge-font);
  font-weight: 800;
  background: var(--surface);
  color: #000000;
  border: 1.5px solid #000000;
  padding: var(--badge-p);
  border-radius: 0px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: none;
}

/* 4 TIERED STATUS PILLS: 4-COLOR GRID (TINGGI, GAGAH & SIMETRIS) */
.study-status-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0 14px;
}

.study-pill {
  border: none !important;
  border-radius: 4px !important;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 90px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.12s ease, transform 0.1s ease, box-shadow 0.1s ease;
  box-sizing: border-box;
}

.study-pill:active {
  opacity: 0.85;
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.study-pill .pill-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.study-pill .pill-label {
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #FFFFFF !important;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.study-pill .pill-count {
  font-size: 1.65rem;
  font-weight: 900;
  color: #FFFFFF !important;
  text-align: right;
  line-height: 1;
  margin-top: 2px;
  font-family: inherit;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

/* 4 Warna Status Harmonious & Balanced (Edutech Standard) */
.study-pill.pill-new {
  background: #38B2AC !important; /* Fresh Teal / Mint */
}

.study-pill.pill-learning {
  background: #F59E0B !important; /* Warm Amber - Cerah & Kontras Tinggi */
}

.study-pill.pill-almost {
  background: #3B82F6 !important; /* Modern Royal Blue */
}

.study-pill.pill-mastered {
  background: #EF4444 !important; /* Clean Coral Red */
}

/* RESULT SCREEN */
.result-card {
  text-align: center;
  margin: 8px auto 20px;
  background: var(--surface);
  border: 2.5px solid #000000;
  border-radius: 0px !important;
  padding: 24px 18px 20px;
  box-shadow: 4px 4px 0px #000000;
  color: var(--text-dark);
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
}

.result-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: var(--badge-font);
  font-weight: 900;
  background: var(--vermilion);
  color: #FFFFFF;
  padding: 4px 12px;
  border: 2px solid #000000;
  border-radius: 0px !important;
  box-shadow: 2px 2px 0px #000000;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.result-title {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 6px;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.stat-box {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 6px;
}

.stat-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--warning);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--concrete);
  font-weight: bold;
}

.mistake-list-container {
  text-align: left;
  margin-bottom: 24px;
  max-height: 200px;
  overflow-y: auto;
}

.mistake-item {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-main);
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* DEDICATED SPEED RECALL RESULT STYLES (90s GRUNGE ROCK AESTHETIC) */
.sr-res-subtitle {
  font-size: 0.85rem;
  color: var(--concrete);
  font-weight: 600;
  margin-top: -6px;
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.35;
}

.sr-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.sr-metric-card {
  background: var(--surface);
  border: 2px solid #000000;
  border-radius: 0px !important;
  box-shadow: 3px 3px 0px #000000;
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  position: relative;
}

.sr-metric-card.metric-mastered {
  border-top: 5px solid var(--olive);
}

.sr-metric-card.metric-srs {
  border-top: 5px solid var(--vermilion);
}

.sr-metric-num {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
  color: #000000;
}

.sr-metric-card.metric-mastered .sr-metric-num {
  color: var(--olive);
}

.sr-metric-card.metric-srs .sr-metric-num {
  color: var(--vermilion);
}

.sr-metric-label {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #000000;
  margin-top: 8px;
}

.sr-metric-caption {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--concrete);
  margin-top: 2px;
}

.sr-mistakes-container {
  text-align: left;
  margin-bottom: 20px;
}

.sr-mistakes-title-wrap {
  margin-bottom: 10px;
  border-bottom: 1.5px solid #000000;
  padding-bottom: 6px;
}

.sr-mistakes-note {
  font-size: 0.75rem;
  color: var(--concrete);
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

/* ==========================================================================
   EXAM (UJIAN CHECKPOINT) STYLES
   ========================================================================== */
.day-card.exam-card {
  border: 1.5px dashed var(--warning);
  background: var(--surface-dark);
  position: relative;
  overflow: hidden;
}

.day-card.exam-card:not(.locked) {
  background: #25231c;
  box-shadow: 0 0 10px rgba(181, 166, 66, 0.15);
}

.day-card.exam-card .day-num {
  color: var(--warning);
  font-size: 0.85rem;
}

.day-card.exam-card .day-count {
  color: var(--concrete);
}

.day-card.exam-card.completed {
  border-style: solid;
  border-color: var(--olive);
  background: #1e241b;
}

.exam-type-btn {
  padding: 14px 16px;
  text-align: left;
}

.exam-btn-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.exam-speed-tag {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.08);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

.exam-speed-tag.passed {
  background: var(--vermilion) !important;
  color: #FFFFFF !important;
  border-color: #000000 !important;
  font-weight: 900;
}

.exam-speed-tag.failed {
  background: #FFF5F5 !important;
  color: var(--vermilion) !important;
  border-color: var(--vermilion) !important;
  font-weight: 800;
}

.exam-status-pill {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 0px !important;
  background: #F0F0F0;
  color: #000000;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1.5px solid #000000;
}

.exam-status-pill.open {
  background: var(--surface);
  color: #000000;
  border-color: #000000;
}

.exam-status-pill.passed {
  background: var(--vermilion);
  color: #FFFFFF;
  border-color: #000000;
}

/* ==========================================================================
   EXAM & SPEED RECALL EVALUATION LIST (ZERO-SCROLL COMPACT 90s GRUNGE)
   ========================================================================== */
#screen-exam-result,
#screen-result {
  overflow: hidden !important;
  height: 100%;
  max-height: 100%;
  padding: 8px 12px 10px !important;
  box-sizing: border-box;
  display: none;
}

#screen-exam-result.active,
#screen-result.active {
  display: flex !important;
  flex-direction: column;
}

#screen-exam-result .result-card,
#screen-result .result-card {
  margin: 0 auto;
  padding: 12px 14px 12px !important;
  box-shadow: 3px 3px 0px #000000;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(100dvh - 128px);
  box-sizing: border-box;
}

.exam-questions-container,
.sr-mistakes-container {
  text-align: left;
  margin: 6px 0 !important;
  padding: 0 !important;
  border-top: 2px solid #000000;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.exam-questions-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  border: 1.5px solid #000000;
  background: var(--surface);
  padding: 6px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

/* Nilai Akhir & Jawaban Benar Ringkas & Proporsional */
#screen-exam-result .result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px !important;
}

#screen-exam-result .stat-box {
  padding: 6px 8px !important;
  background: var(--surface);
  border: 1.5px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#screen-exam-result .stat-num {
  font-size: 1.15rem !important;
  font-weight: 900;
  line-height: 1.1;
  font-family: 'JetBrains Mono', Courier, monospace;
}

#screen-exam-result .stat-label {
  font-size: 0.65rem !important;
  color: var(--concrete);
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-top: 2px;
}

.exam-q-row {
  background: #FFFEFA;
  border: 1.5px solid #000000;
  border-radius: 0px !important;
  box-shadow: 2px 2px 0px #000000;
  padding: 8px 10px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}

.exam-q-row:last-child {
  margin-bottom: 0;
}

.exam-q-row.is-wrong {
  border-left: 4px solid #000000;
}

.exam-q-row.is-correct {
  border-left: 4px solid #000000;
}

.exam-q-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.exam-q-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.exam-q-num {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--concrete);
}

.exam-q-kanji {
  font-size: 0.95rem;
  font-weight: 900;
  color: #000000;
  line-height: 1.2;
}

.exam-q-furigana {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--concrete);
}

.exam-q-type-badge {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border: 1px solid #000000;
  background: #EFEFEF;
  color: #333333;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.exam-q-audio-btn {
  background: #FFFEFA;
  border: 1.5px solid #000000;
  box-shadow: 1px 1px 0px #000000;
  padding: 3px 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  flex-shrink: 0;
  transition: transform 0.1s ease;
}

.exam-q-audio-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 0px 0px 0px #000000;
}

.exam-q-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.exam-opt-item {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 8px;
  border: 1px solid #000000;
  background: #F7F5F0;
  color: #222222;
  text-align: left;
  line-height: 1.35;
  word-break: break-word;
  box-sizing: border-box;
}

/* Opsi Jawaban Benar: Latar Hijau Zaitun */
.exam-opt-item.opt-correct {
  background: var(--olive) !important;
  color: #FFFFFF !important;
  font-weight: 800;
  border: 1.5px solid #000000;
}

/* Opsi Jawaban Yang Dipilih Salah: Latar Merah Bata */
.exam-opt-item.opt-wrong {
  background: var(--vermilion) !important;
  color: #FFFFFF !important;
  font-weight: 800;
  border: 1.5px solid #000000;
}

.exam-timer-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  color: #000000;
  padding: 3px 8px;
  border-radius: 0px !important;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', Courier, monospace;
  z-index: 5;
  user-select: none;
}

.exam-timer-pill svg {
  color: #000000;
  flex-shrink: 0;
}

.exam-timer-pill.urgent {
  background: #FFF0F0;
  border-color: var(--vermilion);
  color: var(--vermilion);
  box-shadow: 2px 2px 0px var(--vermilion);
  animation: pulse-border-urgent 0.8s infinite ease-in-out;
}

.exam-timer-pill.urgent svg {
  color: var(--vermilion);
}

@keyframes pulse-border-urgent {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ==========================================================================
   ACCOUNT & CLOUD SYNC STYLES
   ========================================================================== */

/* Account Icon Button di Home Header (Minimalist Clean Icon) */
.btn-account-icon {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none !important;
  transition: transform 0.15s ease, color 0.15s ease, background-color 0.15s ease;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0;
}

.btn-account-icon svg {
  width: 24px;
  height: 24px;
  stroke: #000000;
  transition: stroke 0.15s ease;
}

.btn-account-icon:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: var(--vermilion);
}

.btn-account-icon:hover svg {
  stroke: var(--vermilion);
}

.btn-account-icon:active {
  transform: scale(0.92);
}

.btn-account-icon.synced {
  border-color: #000000;
  color: #000000;
}

.btn-account-icon.syncing {
  border-color: #000000;
  color: #000000;
}

/* ==========================================================================
   WELCOME AUTH SCREEN
   ========================================================================== */
#screen-welcome-auth {
  overflow-y: auto;
  padding: 24px 16px;
  justify-content: center;
  align-items: center;
}

.welcome-auth-container {
  width: 100%;
  max-width: 400px;
  margin: auto;
}

.welcome-header {
  text-align: center;
  margin-bottom: 24px;
}

.welcome-tagline {
  font-size: 0.78rem;
  color: var(--concrete);
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

.auth-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 4px 4px 0px #000;
  color: var(--text-dark);
}

.auth-card .account-tab {
  color: var(--concrete);
}

.auth-card .account-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.welcome-guest-opt {
  text-align: center;
  margin-top: 20px;
}

.btn-guest-link {
  background: none;
  border: none;
  color: var(--concrete);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.btn-guest-link:hover {
  color: var(--vermilion);
}

/* Account Tabs */
.account-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.account-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--concrete);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: bold;
  padding: 10px 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.account-tab.active {
  color: var(--vermilion);
  border-bottom-color: var(--vermilion);
}

.account-tab:hover:not(.active) {
  color: var(--text-main);
}

/* Account Panels */
.account-panel {
  padding: 4px 0;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: bold;
  color: var(--concrete);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.form-error {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(140, 39, 39, 0.2);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  color: #ff6b6b;
  font-size: 0.78rem;
  font-weight: bold;
}

/* ID Card (Grunge Zine Style) */
.id-card {
  background: var(--surface-dark);
  border: 1.5px dashed var(--warning);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.id-card-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--warning);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.id-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.id-card-label {
  font-size: 0.72rem;
  font-weight: bold;
  color: var(--concrete);
  letter-spacing: 0.05em;
}

.id-card-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.id-card-uid {
  font-size: 1.1rem;
  color: var(--warning);
  letter-spacing: 0.2em;
}

.id-card-warning {
  margin-top: 12px;
  padding: 8px 10px;
  background: rgba(181, 166, 66, 0.15);
  border: 1px solid var(--warning);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: bold;
  color: #f7e687;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.modal-card-wide {
  max-height: 85vh;
  overflow-y: auto;
}

/* ==========================================================================
   GLOBAL LOADER (UIVERSE TEMPLATE)
   ========================================================================== */
.global-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.global-loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.eye {
  width: 20px;
  height: 8px;
  background-color: rgba(240,220,220,1);
  border-radius: 0px 0px 20px 20px;
  position: relative;
  left: 10px;
  top: 40px;
  box-shadow: 40px 0px 0px 0px rgba(240,220,220,1);
}

.head {
  backface-visibility: hidden;
  position: relative;
  margin: -250px auto;
  width: 80px;
  height: 80px;
  background-color: #111;
  border-radius: 50px;
  box-shadow: inset -4px 2px 0px 0px rgba(240,220,220,1);
  animation: headAnim 1.5s infinite alternate;
  animation-timing-function: ease-out;
}

.body {
  position: relative;
  margin: 90px auto;
  width: 140px;
  height: 120px;
  background-color: #111;
  border-radius: 50px/25px;
  box-shadow: inset -5px 2px 0px 0px rgba(240,220,220,1);
  animation: bodyAnim 1.5s infinite alternate;
  animation-timing-function: ease-out;
}

@keyframes headAnim {
  0% {
    top: 0px;
  }
  50% {
    top: 10px;
  }
  100% {
    top: 0px;
  }
}

@keyframes bodyAnim {
  0% {
    top: -5px;
  }
  50% {
    top: 10px;
  }
  100% {
    top: -5px;
  }
}

.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 90vw;
}

.circ {
  backface-visibility: hidden;
  margin: 10px auto 0;
  width: 180px;
  height: 180px;
  border-radius: 0px 0px 50px 50px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hands {
  margin-top: 140px;
  width: 120px;
  height: 120px;
  position: absolute;
  background-color: #111;
  border-radius: 20px;
  box-shadow: -1px -4px 0px 0px rgba(240,220,220,1);
  transform: rotate(45deg);
  top: 75%;
  left: 16%;
  z-index: 1;
  animation: bodyAnim 1.5s infinite alternate;
  animation-timing-function: ease-out;
}

.load {
  position: static;
  width: auto;
  max-width: 85vw;
  text-align: center;
  margin-bottom: 20px;
  font-family: 'Courier New', Courier, monospace, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.05em;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

/* COOLDOWN MODAL & BADGES (12-HOUR MEMORY CONSOLIDATION) */
.cooldown-modal-card {
  max-width: 440px;
  width: 92%;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 0px #000;
  padding: 18px 16px;
  color: var(--text-dark);
}

.cooldown-modal-badge {
  font-family: inherit;
  font-size: var(--badge-font);
  font-weight: 800;
  background: var(--warning);
  color: #000;
  border: 1px solid #8c7f28;
  padding: var(--badge-p);
  border-radius: var(--badge-radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.4);
}

.cooldown-modal-body {
  margin-top: 12px;
}

.cooldown-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cooldown-timer-notice {
  font-size: 0.88rem;
  color: var(--primary);
  margin-bottom: 14px;
  font-weight: bold;
}

.cooldown-insight-box {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
  color: var(--text-main);
  text-align: left;
}

.insight-item {
  line-height: 1.45;
}

.insight-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.insight-icon {
  font-size: 1.1rem;
}

.insight-heading {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--warning);
}

.insight-desc {
  font-size: 0.8rem;
  color: var(--concrete);
  margin: 0;
}

.cooldown-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* DAY CARD COOLDOWN BADGE */
.day-badge-cooldown {
  font-family: inherit;
  font-size: var(--badge-font);
  font-weight: 800;
  background: #382a18;
  color: #f5b042;
  border: 1px solid #825b24;
  padding: var(--badge-p);
  border-radius: var(--badge-radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.4);
}

/* RESPONSIVITAS LAYAR PENDEK (< 680px & KEYBOARD VIRTUAL AKTIF) */
@media (max-height: 680px) {
  .quiz-checkpoint-page {
    padding: 12px 14px 12px;
    justify-content: flex-start;
  }

  .quiz-round-banner {
    width: 100%;
    aspect-ratio: 1920 / 600 !important;
    margin: 0 !important;
  }

  .checkpoint-greeting-strip {
    padding: 2px 0;
    margin: 10px auto !important;
    justify-content: center;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
  }

  #checkpoint-greeting-text {
    font-size: 0.88rem;
    line-height: 1.38;
    text-align: center;
    margin: 0 auto;
    max-width: 360px;
  }

  .checkpoint-card {
    padding: 10px 12px 10px;
    margin: 0 !important;
  }

  .round-header-row {
    margin-bottom: 4px;
  }

  .round-section-title {
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .study-status-list {
    gap: 6px;
    margin: 4px 0 6px;
  }

  .study-pill {
    padding: 8px 10px;
    min-height: 76px;
  }

  .study-pill .pill-label {
    font-size: 0.68rem;
  }

  .study-pill .pill-count {
    font-size: 1.35rem;
    margin-top: 1px;
  }

  #btn-round-continue,
  #btn-next-round {
    padding: 8px 14px;
    min-height: 38px;
    font-size: 0.84rem;
    margin-top: 6px !important;
  }

  .feedback-detail#round-cp-detail {
    margin-top: 8px !important;
    font-size: 0.85rem !important;
    margin-bottom: 2px !important;
    line-height: 1.35 !important;
  }

  /* Quiz Content & MCQ Compact Scale (Pas 1 Viewport tanpa scroll vertikal) */
  .quiz-content {
    padding: 8px 12px 10px;
  }

  .kotoba-card {
    min-height: 140px;
    padding: 16px 12px;
    margin-bottom: 10px;
  }

  .kanji-display {
    margin-bottom: 4px;
  }

  .mcq-grid {
    gap: 7px;
  }

  .mcq-btn {
    min-height: 52px;
    padding: 8px 14px;
  }

  .mcq-furi {
    font-size: 1.15rem;
  }

  .mcq-mean {
    font-size: 0.8rem;
  }

  /* Cooldown modal compact */
  .cooldown-modal-card {
    padding: 12px 14px;
    max-height: 92vh;
    overflow-y: auto;
  }

  .cooldown-insight-box {
    padding: 8px 10px;
    margin-bottom: 10px;
  }

  .insight-heading {
    font-size: 0.8rem;
  }

  .insight-desc {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .cooldown-actions {
    gap: 6px;
  }

  .cooldown-actions .btn {
    min-height: 38px;
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  /* Screen result compact */
  .result-card {
    padding: 14px 12px;
    margin-top: 8px;
  }

  .result-study-progress {
    margin-bottom: 12px !important;
  }

  .result-actions {
    gap: 8px;
  }
}

/* RESPONSIVE SCALING KHUSUS MOBILE (SCREEN WIDTH <= 480px / HP PHONES) */
@media (max-width: 480px) {
  /* Kompakkan greeting & banner */
  .home-greeting-text {
    margin: 0 0 6px 2px;
    font-size: 0.8rem;
  }

  .home-banner-card {
    margin-bottom: 8px;
  }

  /* Leaderboard Micro-Compact (Bentuk Desain Sama Persis) */
  .lb-section-container,
  .lb-slider-section {
    margin-bottom: 0px;
  }

  .lb-section-header {
    margin-bottom: 5px;
  }

  .lb-level-tabs {
    gap: 4px;
    margin-bottom: 6px;
    overflow: visible;
    padding-right: 2px;
    padding-bottom: 2px;
  }

  .lb-tab-btn {
    padding: 3px 0;
    font-size: 0.68rem;
  }

  /* Pod 3 Kolom Compact di Layar HP */
  .lb-pod-col {
    padding: 6px 3px;
    gap: 4px;
    min-width: 0;
  }

  .lb-pod-num {
    min-width: 18px;
    height: 18px;
    font-size: 0.58rem;
    padding: 0 2px;
  }

  .lb-pod-name {
    font-size: 0.68rem;
    margin-bottom: 2px;
  }

  .lb-pod-sub {
    font-size: 0.52rem;
    gap: 2px;
    white-space: nowrap;
    letter-spacing: -0.3px;
  }

  .lb-pod-time {
    white-space: nowrap;
    letter-spacing: -0.3px;
  }

  .lb-row-item {
    padding: 5px 8px;
  }

  .lb-rank-num {
    width: 20px;
    height: 20px;
    min-width: 20px;
    font-size: 0.70rem;
  }

  .lb-rank-num.user-num {
    min-width: 24px;
    font-size: 0.68rem;
  }

  .lb-item-name {
    font-size: 0.76rem;
  }

  .lb-clean-user-row {
    padding: 6px 3px;
    gap: 4px;
    align-items: center;
  }

  .lb-clean-user-col {
    gap: 4px;
    min-width: 0;
  }

  .lb-clean-rank-badge {
    min-width: 18px;
    height: 18px;
    font-size: 0.58rem;
    padding: 0 2px;
  }

  .lb-clean-user-name {
    font-size: 0.68rem;
    margin-bottom: 2px;
  }

  .lb-clean-user-sub {
    font-size: 0.52rem;
    gap: 2px;
    white-space: nowrap;
    letter-spacing: -0.3px;
  }

  .lb-clean-time {
    white-space: nowrap;
    letter-spacing: -0.3px;
  }

  .lb-clean-all-btn {
    padding: 3px 4px;
    font-size: 0.58rem;
    gap: 2px;
  }

  .lb-challenge-standalone-wrap {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .lb-clean-challenge-btn {
    min-width: 180px;
    padding: 5px 12px;
    font-size: 0.65rem;
  }

  /* All Progress Micro-Compact (100% Desain Asli, Skala Pas Layar) */
  .progress-dashboard-card {
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  .dashboard-top {
    margin-bottom: 5px;
  }

  .dashboard-title {
    font-size: 0.78rem;
  }

  .dashboard-percent {
    font-size: 1rem;
  }

  .dashboard-progress-track {
    height: 9px;
    margin-bottom: 8px;
  }

  .progress-rank-bar {
    padding: 4px 8px;
    margin-bottom: 8px;
  }

  .rank-tag-label {
    font-size: 0.62rem;
  }

  .rank-tag-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
  }

  .progress-hero-grid {
    gap: 8px;
    margin-bottom: 8px;
  }

  .stat-hero-box {
    min-height: 68px;
  }

  .stat-hero-top {
    padding: 6px 8px;
  }

  .stat-hero-label {
    font-size: 0.78rem;
  }

  .stat-hero-number {
    font-size: 1.55rem;
    padding: 4px 8px 6px;
  }

  .progress-milestone-grid {
    gap: 6px;
  }

  .milestone-box {
    padding: 6px 7px;
    gap: 4px;
    min-height: 48px;
    box-sizing: border-box;
  }

  .ms-box-label-col {
    gap: 1px;
  }

  .ms-box-title-line {
    font-size: 0.54rem;
    line-height: 1.15;
  }

  .ms-box-sub-line {
    font-size: 0.48rem;
    line-height: 1.15;
  }

  .ms-box-val-hero {
    font-size: 1.35rem;
    line-height: 1;
  }

  .milestone-action-btn {
    padding: 5px 8px;
    min-height: 48px;
    box-sizing: border-box;
    gap: 6px;
  }

  .ms-chapter-pill {
    font-size: 0.48rem;
    padding: 1px 4px;
    line-height: 1.1;
  }

  .ms-action-txt {
    font-size: 0.58rem;
    white-space: nowrap;
    letter-spacing: 0.2px;
  }

  .ms-action-arrow-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ms-action-arrow {
    width: 15px;
    height: 15px;
  }

  .queue-status-card {
    padding: 12px;
    margin-top: 14px;
    gap: 8px;
  }

  .queue-card-title {
    font-size: 0.76rem;
  }

  .queue-badge-count {
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  .round-progress-pct {
    font-size: 0.65rem;
  }
}

/* ==========================================================================
   NEUBRUTALIST TARGET PILL BUTTON (HEADER SCREEN DECK)
   Wajib Paper Pearl White (#FFFEFA) & Monospace Sesuai DESIGN.md
   ========================================================================== */
.btn-target-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  color: #000000;
  border: 2px solid #000000;
  border-radius: 9999px;
  padding: 5px 10px;
  font-family: 'JetBrains Mono', Courier, monospace;
  cursor: pointer;
  box-shadow: 2px 2px 0px #000000;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
  user-select: none;
  text-decoration: none;
  line-height: 1;
}

.btn-target-pill:hover {
  background: #FFF9E6;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000000;
}

.btn-target-pill:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

.btn-target-pill-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: #FFFEFA;
  background: #000000;
  border: 1px solid #000000;
  border-radius: 9999px;
  padding: 1px 7px;
  letter-spacing: 0px;
}

.btn-target-pill-lbl {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #000000;
}

.btn-target-pill-icon {
  flex-shrink: 0;
  color: #000000;
}

@media (max-width: 400px) {
  .sub-header-title {
    font-size: 0.88rem;
    letter-spacing: 0.2px;
  }
  .btn-target-pill {
    padding: 4px 8px;
    gap: 4px;
  }
  .btn-target-pill-val {
    font-size: 0.78rem;
    padding: 1px 5px;
  }
  .btn-target-pill-lbl {
    font-size: 0.62rem;
  }
}

/* =========================================================================
   TANTANGAN 100 KOTOBA MODAL (PLACEMENT & ADVANCEMENT GATE)
   ========================================================================= */
.lb-choice-modal-card {
  max-width: 520px;
  width: 92%;
  background: var(--surface) !important;
  border: 3px solid #000000;
  box-shadow: 6px 6px 0px #000000;
}

.lb-choice-body {
  padding: 16px 20px 24px;
}

.lb-choice-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #333333;
  margin-bottom: 18px;
}

.lb-levels-selection-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lb-level-select-box {
  background: #FFFEFA;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.lb-level-select-box:hover {
  transform: translateY(-2px);
  box-shadow: 4.5px 4.5px 0px #000000;
  background: #FFFDF5;
}

.lb-level-select-box:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1.5px 1.5px 0px #000000;
}

.lb-level-select-box.btn-secondary {
  background: #F4EFE6;
  opacity: 0.68;
  cursor: not-allowed;
  border-color: #666666;
  box-shadow: 2.5px 2.5px 0px #666666;
}

.lb-level-select-box.btn-secondary:hover {
  transform: none;
  box-shadow: 2.5px 2.5px 0px #666666;
  background: #F4EFE6;
}

.lb-lvl-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lb-lvl-tag {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #777777;
}

.lb-lvl-name {
  font-size: 1.08rem;
  font-weight: 900;
  color: #000000;
  margin: 0;
  letter-spacing: -0.3px;
}

.lb-lvl-meta {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.72rem;
  color: #555555;
  margin: 0;
}

/* =========================================================================
   STYLING KARTU TANTANGAN 100 KOTOBA (MODAL POPUP FULLSCREEN & PROPORSI)
   ========================================================================= */
.modal-card.ch-fullscreen-modal {
  max-width: 520px;
  width: 100%;
  max-height: 92vh;
  height: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 16px 14px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 480px) {
  .modal-card.ch-fullscreen-modal {
    max-height: 95vh;
    padding: 14px 12px 18px;
    border-top: 3px solid #000000;
  }
}

.ch-fullscreen-modal .modal-header {
  margin-bottom: 8px;
}

.ch-fullscreen-modal .modal-title {
  font-size: 1.10rem;
  letter-spacing: 0.3px;
}

.ch-fullscreen-modal .modal-subtitle {
  font-size: 0.70rem;
}

.ch-fullscreen-modal .exam-summary-strip {
  margin-bottom: 10px;
}

.ch-fullscreen-modal .modal-guide-text {
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.challenge-level-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.challenge-level-box {
  background: var(--surface);
  border: 2px solid #000000;
  box-shadow: 2.5px 2.5px 0px #000000;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-sizing: border-box;
  min-height: 58px;
}

.challenge-level-box.active-challenge {
  background: #FFFEFA;
  border: 2px solid #000000;
}

.challenge-level-box.active-challenge:hover {
  transform: translateY(-2px);
  box-shadow: 3.5px 3.5px 0px #000000;
  background: #FFFDF5;
}

.challenge-level-box.active-challenge:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

.challenge-level-box.locked-challenge {
  background: #F4EFE6;
  opacity: 0.65;
  cursor: not-allowed;
  border-color: #666666;
  box-shadow: 1.5px 1.5px 0px #666666;
}

.challenge-level-box.locked-challenge:hover {
  transform: none;
  box-shadow: 1.5px 1.5px 0px #666666;
  background: #F4EFE6;
}

.ch-box-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.ch-box-tag {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #777777;
  line-height: 1;
}

.ch-box-title {
  font-size: 0.86rem;
  font-weight: 900;
  color: #000000;
  line-height: 1.2;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-box-meta {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.66rem;
  color: #666666;
  margin-top: 1px;
  line-height: 1.15;
}

.ch-btn-action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  border: 1.5px solid #000000;
  box-shadow: 1.5px 1.5px 0px #000000;
  transition: transform 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.ch-btn-action.ch-action-ready {
  background: var(--vermilion);
  color: #FFFFFF;
}

.challenge-level-box.active-challenge:hover .ch-btn-action.ch-action-ready {
  background: #E03E22;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0px #000000;
}

.ch-btn-action.ch-action-locked {
  background: #E5E0D8;
  color: #777777;
  border-color: #888888;
  box-shadow: none;
}

/* =========================================================================
   CROP WALLPAPER BANNER (RATIO 1920:600 / 3.2:1)
   ========================================================================= */
.crop-modal-card {
  max-width: 520px;
  width: 95%;
  background: var(--surface);
  border: 2.5px solid #000000;
  box-shadow: 4px 4px 0px #000000;
}

.crop-viewport-container {
  width: 100%;
  margin: 10px 0 14px;
  background: #111111;
  padding: 8px;
  box-sizing: border-box;
  border: 2px solid #000000;
}

.crop-viewport-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 600 !important;
  overflow: hidden;
  background: #222222;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.crop-viewport-box:active {
  cursor: grabbing;
}

.crop-preview-img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  pointer-events: none;
  user-select: none;
  max-width: none;
  max-height: none;
}

.crop-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1.5px dashed rgba(255, 255, 255, 0.7);
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.15);
}

.crop-grid-overlay::before {
  content: '';
  position: absolute;
  top: 33.33%;
  bottom: 33.33%;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.35);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
}

.crop-grid-overlay::after {
  content: '';
  position: absolute;
  left: 33.33%;
  right: 33.33%;
  top: 0;
  bottom: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.35);
  border-right: 1px dashed rgba(255, 255, 255, 0.35);
}

.crop-controls-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #F4EFE6;
  border: 1.5px solid #000000;
  padding: 8px 12px;
  box-sizing: border-box;
}

.crop-hint-text {
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.68rem;
  color: #444444;
  line-height: 1.3;
}

.crop-zoom-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.crop-tool-btn {
  background: var(--surface);
  border: 1.5px solid #000000;
  box-shadow: 1.5px 1.5px 0px #000000;
  color: #000000;
  font-family: 'JetBrains Mono', Courier, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
  min-width: 28px;
  height: 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, background-color 0.1s ease;
}

.crop-tool-btn:hover {
  background: #FFFDF5;
  transform: translate(-0.5px, -0.5px);
}

.crop-tool-btn:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}



