/* ==========================================================================
   ENOT-B (Edukasi Nasional Orientasi Tanggap Banjir)
   Complete Unified Stylesheet: Frame, Modals, Welcome Splash, Menu & Game
   ========================================================================== */

:root {
  --primary-blue: #0088ff;
  --tablet-frame-blue: #1c50a0;
  --tablet-border-outer: #0d2e61;
  --tablet-border-inner: #3a75db;

  --color-green-main: #4CAF50;
  --color-purple-main: #9C27B0;
  --color-orange-main: #FF9800;
  --color-blue-main: #2196F3;

  --font-game: 'Bubblegum Sans', 'Fredoka', cursive, sans-serif;
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --spring-transition: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-body);
  background-color: #081220;
  color: #2c3e50;
}

/* --------------------------------------------------------------------------
   1. TABLET FRAME & ASPECT-RATIO LOCKED VIEWPORT (1024 x 682)
   -------------------------------------------------------------------------- */
.tablet-frame-wrapper {
  width: 100%;
  min-height: 100vh;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #1a365d 0%, #050a12 100%);
  box-sizing: border-box;
}

.tablet-frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  max-height: 900px;
  background: var(--tablet-frame-blue);
  border: 10px solid var(--tablet-border-outer);
  border-radius: 36px;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.3), 0 20px 50px rgba(0, 0, 0, 0.6);
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tablet-camera {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #081220;
  border: 2px solid var(--tablet-border-inner);
  border-radius: 50%;
  z-index: 20;
}

.app-viewport {
  position: relative;
  aspect-ratio: 1024 / 682;
  width: 100%;
  max-width: min(100%, calc((100vh - 30px) * (1024 / 682)));
  max-height: min(calc(100vh - 30px), calc((100vw - 30px) * (682 / 1024)));
  border-radius: 24px;
  overflow: hidden;
  background: url('assets/background.png') no-repeat center center / contain;
  background-color: #0288D1;
  border: 4px solid var(--tablet-border-inner);
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.25);
}

/* Rain Effect */
.rain-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
  z-index: 2;
  overflow: hidden;
}

.drop {
  position: absolute;
  width: 2px;
  height: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.7));
  opacity: 0.55;
  animation: fallRain 1.2s linear infinite;
}

@keyframes fallRain {
  0% { transform: translateY(-20px); }
  100% { transform: translateY(100%); }
}

.floating-bg-decor { position: absolute; inset: 0; pointer-events: none !important; z-index: 1; }
.cloud { position: absolute; font-size: 2.5rem; opacity: 0.75; }
.cloud-1 { top: 4%; left: 6%; animation: floatCloud 24s infinite linear; }
.cloud-2 { top: 8%; right: 10%; animation: floatCloud 30s infinite linear reverse; }

@keyframes floatCloud {
  0% { transform: translateX(-40px); }
  50% { transform: translateX(40px); }
  100% { transform: translateX(-40px); }
}

/* --------------------------------------------------------------------------
   2. MAIN LANDING NAVIGATION GRID (BELAJAR, BERMAIN, PENGATURAN, PANDUAN)
   -------------------------------------------------------------------------- */
.main-menu-grid {
  position: absolute;
  left: 8.7%;
  top: 70.8%;
  width: 49.6%;
  height: 17.2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 500 !important;
  pointer-events: auto !important;
}

.menu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 23.2%;
  height: 98%;
  border-radius: 20px;
  border: 4px solid #FFFFFF;
  cursor: pointer !important;
  outline: none;
  text-decoration: none !important;
  pointer-events: auto !important;
  z-index: 501 !important;
  box-shadow: 0 6px 0px rgba(0, 0, 0, 0.25), 0 8px 12px rgba(0, 0, 0, 0.3), inset 0 3px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s var(--spring-transition), box-shadow 0.15s ease;
}

.menu-card:hover { transform: translateY(-5px) scale(1.05); }
.menu-card:active { transform: translateY(3px) scale(0.96); }

.card-belajar { background: linear-gradient(180deg, #4CAF50 0%, #2E7D32 100%); }
.card-bermain { background: linear-gradient(180deg, #9C27B0 0%, #6A1B9A 100%); }
.card-pengaturan { background: linear-gradient(180deg, #FF9800 0%, #E65100 100%); }
.card-panduan { background: linear-gradient(180deg, #2196F3 0%, #0D47A1 100%); }

.card-icon-container { color: #FFFFFF; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); }
.menu-svg-icon { width: clamp(22px, 3.5vw, 40px); height: clamp(22px, 3.5vw, 40px); }
.card-label { font-family: var(--font-heading); font-size: clamp(0.55rem, 1.1vw, 0.9rem); font-weight: 700; color: #FFFFFF; margin-top: 0.15rem; letter-spacing: 0.5px; }

/* Toolbar Bottom Buttons */
.game-footer-toolbar {
  position: absolute;
  inset: 0;
  pointer-events: none !important;
  z-index: 400;
}

.toolbar-btn {
  position: absolute;
  pointer-events: auto !important;
  z-index: 401 !important;
  width: 6.4%;
  height: 9.6%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 4px solid #FFFFFF;
  background: linear-gradient(180deg, #29B6F6 0%, #0288D1 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  box-shadow: 0 5px 0px #01579B, 0 8px 12px rgba(0, 0, 0, 0.3);
}

.sound-btn { left: 2.2%; top: 83.2%; }
.info-btn { left: 91.4%; top: 83.2%; }

.toolbar-icon { width: 55%; height: 55%; }
.info-letter { font-family: 'Georgia', serif; font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: bold; }

/* --------------------------------------------------------------------------
   3. WELCOME SPLASH POPUP MODAL (INDEX.HTML INITIAL SCREEN)
   -------------------------------------------------------------------------- */
.splash-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 24, 48, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.splash-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  display: flex !important;
}

.splash-card {
  position: relative;
  width: 95%;
  max-width: 920px;
  max-height: 94vh;
  background: #FFFFFF;
  border: 6px solid #FFCA28;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 10px rgba(255, 255, 255, 0.9);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-y: auto;
}

.splash-close-icon {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #E53935;
  border: 3px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.splash-image-container {
  width: 100%;
  max-height: 72vh;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #E0F7FA;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.splash-img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 18px;
  display: block;
}

.welcome-fallback-icon { font-size: 4rem; padding: 1.5rem; }

.splash-title { font-family: var(--font-heading); font-size: clamp(1.4rem, 3.2vw, 1.8rem); color: #0288D1; margin-bottom: 0.6rem; }
.splash-subtitle { font-size: 1rem; line-height: 1.55; color: #37474F; margin-bottom: 1.2rem; }

.btn-start-game {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(180deg, #4CAF50 0%, #2E7D32 100%);
  padding: 0.8rem 2.4rem;
  border-radius: 50px;
  border: 4px solid #FFFFFF;
  cursor: pointer;
  box-shadow: 0 6px 0px #1B5E20, 0 10px 15px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s var(--spring-transition);
}

.btn-start-game:hover {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   4. POPUP MODALS SYSTEM (PENGATURAN & PANDUAN)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 24, 48, 0.8);
  backdrop-filter: blur(8px);
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 1;
  visibility: visible;
}

.modal-overlay.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.modal-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 28px;
  width: 100%;
  max-width: 540px;
  padding: 1.6rem;
  border: 5px solid #81D4FA;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.modal-large {
  width: 95%;
  max-width: min(95%, calc((100vh - 20px) * (1024 / 682)));
  max-height: calc(100vh - 20px);
  padding: 1.2rem;
}

.page-full-card {
  width: 100% !important;
  height: 100% !important;
  max-width: min(100%, calc((100vh - 20px) * (1024 / 682))) !important;
  max-height: min(calc(100vh - 20px), calc((100vw - 20px) * (682 / 1024))) !important;
}

.tujuan-img-container {
  width: 100%;
  max-height: 72vh;
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
  border: 4px solid #81D4FA;
  background: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tujuan-img-container img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  border-radius: 20px;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.header-purple { background: linear-gradient(180deg, #9C27B0, #6A1B9A); }
.header-orange { background: linear-gradient(180deg, #FF9800, #E65100); }
.header-blue { background: linear-gradient(180deg, #2196F3, #0D47A1); }

.header-title-wrap { display: flex; align-items: center; gap: 10px; }
.header-icon { font-size: 1.5rem; }

.modal-close-btn {
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 1.8rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-content-scroll { flex: 1; overflow-y: auto; padding: 0.4rem; }

.settings-group { display: flex; flex-direction: column; gap: 1.2rem; }
.setting-item { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 700; color: #37474F; }

.range-wrap { display: flex; align-items: center; gap: 1rem; }
.range-wrap input[type="range"] { flex: 1; height: 10px; border-radius: 5px; accent-color: #FF9800; cursor: pointer; }
.custom-select { padding: 0.6rem; border-radius: 12px; border: 2px solid #B2EBF2; font-family: var(--font-body); font-size: 0.95rem; }

/* Reset Progress Styles */
.reset-section-box {
  margin-top: 0.6rem;
  padding: 0.8rem;
  background: #FFF3E0;
  border: 2px dashed #FF9800;
  border-radius: 16px;
}

.reset-hint-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #E65100;
  margin-bottom: 0.5rem;
}

.btn-reset-progress {
  background: linear-gradient(180deg, #E53935 0%, #C62828 100%) !important;
  box-shadow: 0 4px 0 #B71C1C !important;
  font-size: 0.95rem !important;
  padding: 0.6rem 1.2rem !important;
  width: 100%;
}

.btn-reset-progress:hover { transform: scale(1.02); }

.guide-section { display: flex; flex-direction: column; gap: 1rem; }
.guide-box { background: #E0F7FA; border: 2px solid #81D4FA; border-radius: 16px; padding: 1rem; color: #006064; }
.guide-box h3 { font-family: var(--font-heading); margin-bottom: 0.5rem; color: #00838F; }
.guide-box ul, .guide-box ol { margin-left: 1.4rem; line-height: 1.6; }

.modal-footer { display: flex; justify-content: center; margin-top: 1rem; }
.action-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.7rem 1.8rem;
  border-radius: 30px;
  border: 3px solid #FFFFFF;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}

.modal-close-btn-bottom { background: linear-gradient(180deg, #FF9800, #E65100); }

/* --------------------------------------------------------------------------
   5. MENU CERITA ANIMASI (BELAJAR.HTML) STYLES
   -------------------------------------------------------------------------- */
.page-cerita-body, .page-infografis-body, .page-other-body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.cerita-app-viewport {
  position: relative;
  aspect-ratio: 1024 / 682;
  width: 100%;
  max-width: min(100%, calc((100vh - 20px) * (1024 / 682)));
  max-height: min(calc(100vh - 20px), calc((100vw - 20px) * (682 / 1024)));
  background: radial-gradient(circle at 50% 20%, #73E8FF 0%, #0288D1 70%, #01579B 100%);
  border-radius: 24px;
  overflow-y: auto;
  border: 5px solid #E0F7FA;
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.3), 0 15px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  color: #2c3e50;
}

.cerita-top-bar { display: flex; justify-content: space-between; align-items: center; z-index: 10; }

.circle-icon-btn {
  background: linear-gradient(180deg, #4CAF50, #2E7D32);
  border: 3px solid #FFFFFF;
  color: #FFFFFF;
  padding: 0.4rem 1.1rem;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 0 #1B5E20;
  text-decoration: none !important;
}

.cerita-title-badge {
  background: linear-gradient(180deg, #AB47BC, #7B1FA2);
  border: 3px solid #FFFFFF;
  color: #FFFFFF;
  padding: 0.45rem 2rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 0 #4A148C;
}

.cerita-title-badge h2 { font-family: var(--font-heading); font-size: clamp(1.1rem, 2vw, 1.4rem); }

.sticker-badge {
  background: #FFF8E1;
  border: 3px solid #FFCA28;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 0 #FFA000;
}

.sticker-info { display: flex; flex-direction: column; }
.sticker-label { font-size: 0.65rem; font-weight: 800; color: #795548; }
.sticker-val { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 800; color: #E65100; }

.cerita-sub-banner {
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid #81D4FA;
  border-radius: 18px;
  padding: 0.5rem 1.2rem;
  text-align: center;
  margin: 0.4rem 0;
}

.cerita-sub-banner p { font-weight: 700; color: #0277BD; font-size: clamp(0.85rem, 1.3vw, 1.05rem); }

.cerita-main-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 1.1rem;
  flex: 1;
  margin-bottom: 0.4rem;
}

.player-container { display: flex; flex-direction: column; justify-content: space-between; }

.video-screen-frame {
  position: relative;
  width: 100%;
  flex: 1;
  background: #081C36;
  border: 5px solid #FFFFFF;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.mp4-video-player { width: 100%; height: 100%; object-fit: cover; }

.video-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 169, 244, 0.95) 0%, rgba(1, 87, 155, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  color: #FFFFFF;
}

.video-hint-text { font-size: 0.8rem; margin-top: 0.6rem; background: rgba(0,0,0,0.25); padding: 0.3rem 0.8rem; border-radius: 12px; }
.cover-logo-badge { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 900; text-shadow: 3px 3px 0 #01579B; }
.cover-subtitle { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 0.6rem; }

.big-orange-play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FF9800, #F57C00);
  border: 4px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 6px 0 #E65100;
}

/* BEAUTIFUL EDUCATIONAL TEXT BOX FOR "APA YANG AKAN KAMU PELAJARI" */
.learn-info-box {
  background: linear-gradient(135deg, #FFFFFF 0%, #E0F7FA 100%);
  border: 3px solid #81D4FA;
  border-radius: 18px;
  padding: 0.7rem 0.9rem;
  margin-top: 0.5rem;
  box-shadow: 0 6px 16px rgba(2, 136, 209, 0.12);
}

.learn-info-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.learn-bulb-icon {
  font-size: 1.2rem;
}

.learn-info-header h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: #00838F;
  margin: 0;
}

.learn-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

@media (max-width: 700px) {
  .learn-info-grid { grid-template-columns: 1fr; }
}

.learn-info-item {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 0.55rem 0.8rem;
  border: 2px solid #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
}

.learn-info-item.item-blue { border-color: #81D4FA; background: #F4FBFD; }
.learn-info-item.item-orange { border-color: #FFCC80; background: #FFFDF9; }
.learn-info-item.item-green { border-color: #A5D6A7; background: #F7FCF7; }

.item-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-badge {
  color: #FFFFFF;
  font-weight: 900;
  font-size: 0.7rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-blue { background: #0288D1; }
.badge-orange { background: #E65100; }
.badge-green { background: #2E7D32; }

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

.item-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: #37474F;
}

.item-desc {
  font-size: 0.75rem;
  color: #546E7A;
  line-height: 1.35;
  margin: 0;
}

.episodes-panel { background: #FFFFFF; border: 5px solid #AB47BC; border-radius: 22px; padding: 0.9rem; display: flex; flex-direction: column; }
.panel-header h3 { font-family: var(--font-heading); font-size: 1.15rem; color: #6A1B9A; text-align: center; margin-bottom: 0.6rem; }
.episodes-list { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; overflow-y: auto; }

.ep-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F3E5F5;
  border: 3px solid #CE93D8;
  border-radius: 16px;
  padding: 0.6rem;
  cursor: pointer !important;
}

.ep-card.active-ep { background: #E1BEE7; border-color: #8E24AA; }
.ep-card.locked-ep { opacity: 0.6; }
.ep-num-badge { background: #8E24AA; color: #FFFFFF; font-weight: 800; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.ep-thumb { font-size: 1.5rem; }
.ep-info h4 { font-family: var(--font-heading); font-size: 0.85rem; color: #4A148C; }
.ep-info p { font-size: 0.72rem; color: #6A1B9A; }

.cerita-bottom-bar { display: flex; justify-content: space-between; align-items: center; z-index: 10; }
.nav-ep-controls { display: flex; gap: 0.6rem; }

.pill-nav-btn {
  background: linear-gradient(180deg, #FF9800, #F57C00);
  border: 3px solid #FFFFFF;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 22px;
  cursor: pointer;
  box-shadow: 0 4px 0 #E65100;
  text-decoration: none !important;
}

.pill-btn-summary { background: linear-gradient(180deg, #AB47BC, #7B1FA2); box-shadow: 0 4px 0 #4A148C; }
.pill-btn-sound { background: linear-gradient(180deg, #29B6F6 0%, #0288D1 100%); box-shadow: 0 4px 0 #01579B; }
.tetes-mascot-box { display: flex; align-items: center; gap: 6px; }
.tetes-emoji { font-size: 1.8rem; }

/* --------------------------------------------------------------------------
   6. INFOGRAFIS STYLES
   -------------------------------------------------------------------------- */
.infografis-app-viewport {
  position: relative;
  aspect-ratio: 1024 / 682;
  width: 100%;
  max-width: min(100%, calc((100vh - 20px) * (1024 / 682)));
  max-height: min(calc(100vh - 20px), calc((100vw - 20px) * (682 / 1024)));
  background: #0288D1;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid var(--tablet-border-inner);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.8rem;
  color: #FFFFFF;
}

.info-top-header { display: flex; align-items: center; gap: 1rem; background: rgba(0, 0, 0, 0.25); padding: 0.4rem 0.8rem; border-radius: 16px; }
.info-top-header h2 { font-family: var(--font-heading); font-size: 1.1rem; }

.infografis-content-container { flex: 1; position: relative; margin: 0.5rem 0; border-radius: 16px; overflow-y: auto; background: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 0.4rem; }
.infografis-img { width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 12px; }

.infografis-interactive-fallback { padding: 0.8rem; color: #37474F; overflow-y: auto; }
.info-causes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.6rem; }
.cause-card { background: #FFF8E1; border: 2px solid #FFE082; border-radius: 12px; padding: 0.6rem; }
.cause-num { background: #E65100; color: #FFFFFF; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.75rem; }
.cause-card h4 { font-family: var(--font-heading); font-size: 0.85rem; color: #3E2723; margin: 0.3rem 0; }
.cause-card p { font-size: 0.75rem; color: #5D4037; }

.infografis-action-bar { display: flex; justify-content: space-between; align-items: center; background: rgba(0, 0, 0, 0.25); padding: 0.5rem 1rem; border-radius: 18px; }
.info-motto { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; }
.btn-paham { background: linear-gradient(180deg, #4CAF50, #2E7D32) !important; font-size: 1.05rem !important; text-decoration: none !important; }

.sub-btn-small { padding: 0.3rem 0.8rem; font-size: 0.85rem; }
.hidden { display: none !important; }

/* --------------------------------------------------------------------------
   7. MENU BERMAIN & EVALUASI STYLES
   -------------------------------------------------------------------------- */
.menu-bermain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  padding: 0.4rem;
}

.main-option-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border: 4px solid #E0E0E0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.main-option-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

.card-purple-theme { border-color: #AB47BC; background: linear-gradient(180deg, #FFFFFF 0%, #F3E5F5 100%); }
.card-blue-theme { border-color: #2196F3; background: linear-gradient(180deg, #FFFFFF 0%, #E3F2FD 100%); }
.card-orange-theme { border-color: #FF9800; background: linear-gradient(180deg, #FFFFFF 0%, #FFF3E0 100%); }

.option-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #37474F;
  margin-top: 0.4rem;
}

.option-badge {
  display: inline-block;
  background: #8E24AA;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.badge-blue { background: #1976D2; }
.badge-orange { background: #E65100; }

.option-desc {
  font-size: 0.85rem;
  color: #455A64;
  line-height: 1.55;
  margin: 0.8rem 0 1.2rem 0;
  flex: 1;
}

.btn-play-theme { background: linear-gradient(180deg, #9C27B0, #6A1B9A) !important; width: 100%; border: none !important; }
.btn-eval-blue { background: linear-gradient(180deg, #2196F3, #1565C0) !important; width: 100%; border: none !important; }
.btn-eval-orange { background: linear-gradient(180deg, #FF9800, #E65100) !important; width: 100%; border: none !important; }

.bermain-subview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subview-nav-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0,0,0,0.04);
  padding: 0.5rem 0.8rem;
  border-radius: 14px;
}

.subview-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #0277BD;
}

.poster-display-wrapper {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 4px solid #81D4FA;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  background: #E0F7FA;
}

.poster-img-full {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #00838F;
  margin-top: 0.5rem;
}

.motorik-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.motorik-card {
  position: relative;
  background: #FFF8E1;
  border: 3px solid #FFE082;
  border-radius: 16px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.motorik-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #E65100;
  color: #FFFFFF;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.motorik-icon { font-size: 2.2rem; margin: 0.2rem 0; }

.motorik-card h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: #3E2723;
  margin-bottom: 0.3rem;
}

.motorik-card p {
  font-size: 0.75rem;
  color: #5D4037;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  flex: 1;
}

.motorik-play-btn {
  background: linear-gradient(180deg, #4CAF50, #2E7D32);
  color: #FFFFFF;
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 #1B5E20;
}

.eval-placeholder-box {
  background: #FFFFFF;
  border: 4px solid #64B5F6;
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
}

.eval-box-orange { border-color: #FFB74D; }

.eval-header-badge {
  display: inline-block;
  background: #1976D2;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  margin-bottom: 0.8rem;
}

.badge-orange-bg { background: #E65100; }

.eval-placeholder-box h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #37474F;
  margin-bottom: 0.5rem;
}

.eval-placeholder-box p {
  font-size: 0.95rem;
  color: #546E7A;
  max-width: 600px;
  margin: 0 auto 1.2rem auto;
  line-height: 1.5;
}

.hint-pill {
  background: #E3F2FD;
  color: #0D47A1;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.hint-pill-orange {
  background: #FFF3E0;
  color: #E65100;
}

/* --------------------------------------------------------------------------
   8. EVALUASI KOGNITIF PAGE STYLES
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   8. EVALUASI KOGNITIF PAGE STYLES (HIGH CONTRAST & SYMMETRICAL LAYOUT)
   -------------------------------------------------------------------------- */
.eval-stepper-badge {
  background: #FFF8E1;
  border: 3px solid #FFCA28;
  color: #E65100;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
}

.eval-progress-bar-container {
  width: 100%;
  height: 14px;
  background: #CFD8DC;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.8rem;
  border: 2px solid #90A4AE;
}

.eval-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4FC3F7 0%, #0288D1 100%);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.eval-question-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.eval-q-header {
  background: linear-gradient(180deg, #1565C0 0%, #0D47A1 100%);
  border: 4px solid #FFFFFF;
  border-radius: 18px;
  padding: 0.8rem 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.eval-q-header h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #FFE082 !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  margin-bottom: 0.3rem;
}

.eval-q-header p {
  font-size: 0.9rem;
  font-weight: bold;
  color: #FFFFFF !important;
}

.eval-q-img-wrapper {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 4px solid #81D4FA;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  background: #E0F7FA;
}

.eval-q-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* SYMMETRICAL OPTIONS GRID */
.eval-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 0.4rem 0;
  width: 100%;
}

.eval-options-grid.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.eval-options-grid.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.eval-options-grid.grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
.eval-options-grid.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 650px) {
  .eval-options-grid,
  .eval-options-grid.grid-cols-2,
  .eval-options-grid.grid-cols-3,
  .eval-options-grid.grid-cols-4,
  .eval-options-grid.grid-cols-5 {
    grid-template-columns: 1fr;
  }
}

.eval-option-btn {
  background: #FFFFFF;
  border: 4px solid #0288D1;
  border-radius: 16px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 800;
  color: #0D47A1 !important;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.eval-option-btn:hover {
  transform: translateY(-3px);
  border-color: #01579B;
  background: #E0F7FA;
}

.eval-option-btn.selected {
  border-color: #FFD54F !important;
  background: linear-gradient(180deg, #0288D1 0%, #01579B 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 15px rgba(2, 136, 209, 0.4);
}

.eval-option-btn.selected span {
  color: #FFFFFF !important;
}

.option-checkbox {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 3px solid #0288D1;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #0288D1;
  flex-shrink: 0;
}

.eval-option-btn.selected .option-checkbox {
  background: #FFCA28;
  border-color: #FFFFFF;
  color: #000000;
}

.eval-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.eval-next-btn {
  margin-left: auto;
  font-size: 1rem !important;
}

/* HIGHLY ATTRACTIVE & VIBRANT EVALUATION RESULT CARD */
.eval-result-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDE7 100%);
  border: 6px solid #FFD54F;
  border-radius: 28px;
  padding: 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
  margin: 0.5rem 0;
}

.result-badge-icon {
  font-size: 4rem;
  margin-bottom: 0.3rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  animation: pulseTrophy 2s infinite ease-in-out;
}

@keyframes pulseTrophy {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.eval-result-card h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #0288D1;
  text-shadow: 1px 1px 0 #FFF;
  margin-bottom: 0.2rem;
}

.result-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: #37474F;
  margin-bottom: 1rem;
}

.result-stars {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 10px rgba(255, 193, 7, 0.5));
}

.result-score-box {
  background: linear-gradient(180deg, #FFF8E1 0%, #FFE082 100%);
  border: 4px solid #FFA000;
  border-radius: 22px;
  padding: 0.9rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 15px rgba(255, 160, 0, 0.25);
}

.score-label {
  font-size: 0.85rem;
  font-weight: 900;
  color: #5D4037;
  letter-spacing: 0.5px;
}

.score-val {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: #D84315;
  text-shadow: 2px 2px 0 #FFFFFF;
}

.badge-certificate {
  background: linear-gradient(135deg, #7B1FA2 0%, #4A148C 100%);
  border: 4px solid #FFD54F;
  border-radius: 22px;
  padding: 0.9rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
  text-align: left;
  box-shadow: 0 6px 18px rgba(74, 20, 140, 0.3);
}

.cert-icon { font-size: 2.6rem; }
.cert-text h4 { font-family: var(--font-heading); font-size: 1.15rem; color: #FFD54F !important; }
.cert-text p { font-size: 0.85rem; color: #FFFFFF !important; }

.result-buttons-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

/* HARMONIZED GAME BUTTON SYSTEM FOR EVALUASI KOGNITIF & BERMAIN */
.eval-btn-base {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 800;
  color: #FFFFFF !important;
  border: 3px solid #FFFFFF !important;
  border-radius: 50px !important;
  padding: 0.65rem 1.6rem !important;
  cursor: pointer !important;
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  box-sizing: border-box;
}

.eval-btn-base.hidden {
  display: none !important;
}

.eval-btn-base:hover {
  transform: translateY(-3px) scale(1.03) !important;
}

.eval-btn-base:active {
  transform: translateY(2px) scale(0.97) !important;
}

/* 1. Green Theme Button (Jawab & Lanjut, Ulangi Evaluasi) */
.eval-btn-green {
  background: linear-gradient(180deg, #4CAF50 0%, #2E7D32 100%) !important;
  box-shadow: 0 5px 0 #1B5E20, 0 8px 18px rgba(0, 0, 0, 0.2) !important;
}

/* 2. Orange Theme Button (Soal Sebelumnya) */
.eval-btn-orange {
  background: linear-gradient(180deg, #FF9800 0%, #E65100 100%) !important;
  box-shadow: 0 5px 0 #B71C1C, 0 8px 18px rgba(0, 0, 0, 0.2) !important;
}

/* 3. Purple Theme Button (Menu Bermain) */
.eval-btn-purple {
  background: linear-gradient(180deg, #9C27B0 0%, #6A1B9A 100%) !important;
  box-shadow: 0 5px 0 #4A148C, 0 8px 18px rgba(0, 0, 0, 0.2) !important;
}

/* 4. Blue Theme Button (Menu Utama) */
.eval-btn-blue {
  background: linear-gradient(180deg, #2196F3 0%, #0D47A1 100%) !important;
  box-shadow: 0 5px 0 #01579B, 0 8px 18px rgba(0, 0, 0, 0.2) !important;
}

@media (max-width: 600px) {
  .tablet-frame-wrapper { padding: 0; }
  .tablet-frame { border: none; border-radius: 0; padding: 0; }
  .app-viewport, .cerita-app-viewport, .infografis-app-viewport {
    border-radius: 0;
    border: none;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
  }
  .main-menu-grid { left: 7.0%; top: 70.0%; width: 54.0%; height: 18.5%; }
  .menu-card { border-width: 3px; border-radius: 14px; }
}

/* --------------------------------------------------------------------------
   12. EVALUASI KEMAMPUAN MOTORIK COMPONENT STYLES
   -------------------------------------------------------------------------- */
.motorik-banner-header {
  background: linear-gradient(135deg, #0288D1 0%, #01579B 100%);
  border: 4px solid #81D4FA;
  border-radius: 20px;
  padding: 1rem 1.2rem;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 6px 18px rgba(2, 136, 209, 0.25);
}

.banner-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-mascot {
  font-size: 2.8rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.banner-title-area h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #FFE082;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.banner-title-area p {
  font-size: 0.9rem;
  color: #E0F7FA;
  margin: 0.2rem 0 0 0;
  font-weight: 600;
}

.banner-info-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 650px) {
  .banner-info-boxes { grid-template-columns: 1fr; }
}

.banner-box {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 0.8rem 1rem;
  color: #37474F;
  border: 3px solid #B2EBF2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.banner-box.box-blue { border-color: #4FC3F7; }
.banner-box.box-green { border-color: #81C784; }

.banner-box h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: #0277BD;
}

.banner-box.box-green h4 { color: #2E7D32; }

.banner-box p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #455A64;
  margin: 0;
}

.banner-box ol {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #455A64;
  margin: 0;
  padding-left: 1.2rem;
}

/* 7 POS SKEMA GRID */
.pos-skema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.pos-card {
  position: relative;
  background: #FFFFFF;
  border: 3px solid #DDD;
  border-radius: 18px;
  padding: 1.2rem 0.9rem 0.9rem 0.9rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pos-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

.pos-badge {
  position: absolute;
  top: -12px;
  left: 12px;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.2rem 0.75rem;
  border-radius: 14px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.pos-purple { border-color: #AB47BC; }
.pos-purple .pos-badge { background: #8E24AA; }
.pos-purple h4 { color: #6A1B9A; }

.pos-blue { border-color: #4FC3F7; }
.pos-blue .pos-badge { background: #0288D1; }
.pos-blue h4 { color: #01579B; }

.pos-green { border-color: #66BB6A; }
.pos-green .pos-badge { background: #388E3C; }
.pos-green h4 { color: #1B5E20; }

.pos-orange { border-color: #FFA726; }
.pos-orange .pos-badge { background: #F57C00; }
.pos-orange h4 { color: #E65100; }

.pos-pink { border-color: #EC407A; }
.pos-pink .pos-badge { background: #C2185B; }
.pos-pink h4 { color: #880E4F; }

.pos-cyan { border-color: #26C6DA; }
.pos-cyan .pos-badge { background: #00838F; }
.pos-cyan h4 { color: #006064; }

.pos-darkpurple { border-color: #7E57C2; }
.pos-darkpurple .pos-badge { background: #512DA8; }
.pos-darkpurple h4 { color: #311B92; }

.pos-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.pos-detail p {
  font-size: 0.8rem;
  color: #37474F;
  margin: 0.25rem 0;
  line-height: 1.35;
}

.pos-detail ul {
  margin: 0.2rem 0 0 1.1rem;
  padding: 0;
  font-size: 0.78rem;
  color: #546E7A;
}

.pos-detail li {
  margin-bottom: 0.15rem;
}

/* RUBRIK & PERHITUNGAN CONTAINER */
.motorik-rubrik-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.rubrik-card {
  background: #FFFFFF;
  border: 4px solid #4FC3F7;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.rubrik-header {
  background: linear-gradient(90deg, #0288D1, #01579B);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  padding: 0.6rem 1rem;
  font-weight: 800;
}

.rubrik-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.rubrik-table th {
  background: #E0F7FA;
  color: #006064;
  font-weight: 800;
  padding: 0.5rem 0.8rem;
  text-align: left;
  border-bottom: 2px solid #B2EBF2;
}

.rubrik-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid #ECEFF1;
  color: #37474F;
}

.badge-skor {
  display: inline-block;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
}

.skor-4 { background: #4CAF50; }
.skor-3 { background: #2196F3; }
.skor-2 { background: #FF9800; }
.skor-1 { background: #F44336; }

/* KATEGORI & CALC GRID */
.kategori-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 650px) {
  .kategori-calc-grid { grid-template-columns: 1fr; }
}

.calc-card, .kategori-card {
  background: #FFFFFF;
  border: 4px solid #AB47BC;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.kategori-card { border-color: #FF9800; }

.calc-header {
  background: linear-gradient(90deg, #8E24AA, #6A1B9A);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1rem;
  padding: 0.55rem 1rem;
  font-weight: 800;
}

.kategori-header {
  background: linear-gradient(90deg, #F57C00, #E65100);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1rem;
  padding: 0.55rem 1rem;
  font-weight: 800;
}

.calc-body {
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: #37474F;
}

.formula-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F3E5F5;
  border: 2px dashed #AB47BC;
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  margin: 0.6rem 0;
  font-weight: 700;
  color: #4A148C;
}

.fraction {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.78rem;
}

.fraction .top { border-bottom: 1px solid #4A148C; padding-bottom: 1px; }
.fraction .bottom { padding-top: 1px; }

.fraction-sm { display: inline-block; font-weight: 800; color: #D84315; }

.contoh-box {
  background: #FFF3E0;
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
}

.contoh-box p { margin: 0.15rem 0; }

.kategori-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.kategori-table th {
  background: #FFE082;
  color: #E65100;
  font-weight: 800;
  padding: 0.5rem 0.8rem;
  text-align: left;
}

.kategori-table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid #FFF3E0;
  color: #37474F;
}

/* OBSERVASI TABLE & INTERACTIVE FORM */
.observasi-section {
  background: #FFFFFF;
  border: 4px solid #66BB6A;
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  margin-top: 0.5rem;
}

.observasi-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #1B5E20;
  margin-bottom: 0.2rem;
}

.observasi-header p {
  font-size: 0.85rem;
  color: #388E3C;
  margin-bottom: 0.8rem;
}

.observasi-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 2px solid #C8E6C9;
}

.observasi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 600px;
}

.observasi-table th {
  background: #A5D6A7;
  color: #1B5E20;
  font-weight: 800;
  padding: 0.6rem 0.6rem;
  text-align: center;
  border-bottom: 2px solid #81C784;
}

.observasi-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid #E8F5E9;
  color: #2E7D32;
}

.observasi-table td.text-center { text-align: center; }

.observasi-table input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #2E7D32;
}

.catatan-input {
  width: 100%;
  border: 2px solid #C8E6C9;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  outline: none;
  box-sizing: border-box;
}

.catatan-input:focus {
  border-color: #2E7D32;
  background: #F1F8E9;
}

/* SCORE RESULT PANEL */
.motorik-score-result-panel {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  border: 3px solid #4CAF50;
  border-radius: 16px;
  padding: 0.8rem 1.2rem;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 0.8rem;
}

.score-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sum-label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: #1B5E20;
}

.sum-value {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  color: #2E7D32;
}

.sum-value.value-highlight {
  font-size: 1.5rem;
  color: #D84315;
  background: #FFFFFF;
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  border: 2px solid #FF8A65;
}

.badge-kategori {
  font-size: 0.85rem !important;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  color: #FFFFFF !important;
}

.bsb-color { background: #2E7D32; }
.bsh-color { background: #1976D2; }
.mb-color { background: #F57C00; }
.bb-color { background: #D32F2F; }

/* FOOTER NOTE */
.motorik-footer-note {
  background: #FFF8E1;
  border: 3px solid #FFE082;
  border-radius: 16px;
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.note-icon { font-size: 1.4rem; }

.note-text strong {
  color: #E65100;
  font-size: 0.85rem;
}

.note-text p {
  font-size: 0.8rem;
  color: #5D4037;
  margin: 0.1rem 0 0 0;
}

.motto-box {
  background: linear-gradient(90deg, #0288D1, #0097A7);
  color: #FFFFFF;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --------------------------------------------------------------------------
   13. PORTRAIT SCREEN ORIENTATION OVERLAY & MOBILE LANDSCAPE SYSTEM
   -------------------------------------------------------------------------- */
.orientation-warning-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999999 !important;
  background: radial-gradient(circle at center, #1c50a0 0%, #081220 100%);
  color: #FFFFFF;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* Show overlay automatically when device orientation is portrait */
@media screen and (orientation: portrait) {
  .orientation-warning-overlay {
    display: flex !important;
  }
}

.orientation-warning-card {
  background: rgba(255, 255, 255, 0.96);
  border: 4px solid #FFD54F;
  border-radius: 28px;
  padding: 1.8rem 1.4rem;
  max-width: 380px;
  width: 90%;
  color: #37474F;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  animation: popInCard 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popInCard {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.rotate-phone-animation {
  font-size: 3.5rem;
  display: inline-block;
  animation: rotatePhone 2s ease-in-out infinite;
}

@keyframes rotatePhone {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}

.orientation-warning-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #0288D1;
  margin: 0;
}

.orientation-warning-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #455A64;
  margin: 0;
  font-weight: 600;
}

.orientation-hint-pill {
  background: #FFF3E0;
  color: #E65100;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 2px solid #FFE082;
}

/* Preserve exact desktop 1024x682 layout on mobile landscape screens */
@media screen and (max-height: 550px) and (orientation: landscape) {
  .tablet-frame-wrapper {
    padding: 2px;
  }
  .tablet-frame {
    border-width: 4px;
    border-radius: 18px;
    padding: 4px;
  }
  .app-viewport, .cerita-app-viewport, .infografis-app-viewport {
    border-radius: 14px;
    border-width: 3px;
  }
}

