@font-face {
  font-family: 'KingSuperGrotesk';
  src: url('extracted/res_output/king-fonts/fonts/king_super_grotesk_offc_pro_medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #14031f;
  font-family: 'KingSuperGrotesk', 'Arial Rounded MT Bold', sans-serif;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

#app-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 460px;
  max-height: 880px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0,0,0,0.85);
  background: #ff7a00;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.screen.active {
  display: flex;
}

/* 1. KING SPLASH + ORANGE LOADING SCREEN (loading_screen.xml) */
#screen-splash {
  background: radial-gradient(circle at center, #ffb300 0%, #f56800 55%, #d84315 100%);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#splash-crown {
  width: 156px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
}

#splash-loading-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-top: -28px;
}

#splash-logo-curl {
  width: 68px;
  height: auto;
  margin-bottom: -18px;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.28));
}

#splash-loading-logo {
  width: 315px;
  max-width: 82%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}

#splash-spinner {
  display: none;
  position: absolute;
  bottom: 112px;
  width: 48px;
  height: 48px;
  animation: spin 1.05s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#splash-status {
  position: absolute;
  bottom: 26px;
  font-size: 13px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.75);
  text-align: center;
  padding: 0 24px;
}

/* 2. LAYERED MAIN MENU (main_menu_v2.xml) */
#screen-title {
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 18px;
}

#titleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.btn-title-debug {
  position: absolute;
  top: 14px;
  right: 12px;
  z-index: 15;
  width: 74px;
  height: 42px;
  background: transparent;
  background-image: var(--king-btn-console);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85);
  cursor: pointer;
}

.title-controls {
  position: relative;
  z-index: 10;
  margin-bottom: 16px;
}

.title-bottom-bar {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-icon-only,
.btn-round-mini {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.5));
}

.btn-icon-only img,
.btn-round-mini img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btn-round-mini {
  width: 38px;
  height: 38px;
}

.btn-console-pill {
  min-width: 68px;
  height: 44px;
  padding: 0 14px;
  background: transparent;
  background-image: var(--king-btn-console);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 3px rgba(0,0,0,0.85);
  cursor: pointer;
}

.btn-unlock-pill {
  font-size: 13px;
}

.btn-console-mini {
  width: 42px;
  height: 36px;
  background: transparent;
  background-image: var(--king-btn-console);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: bold;
  text-shadow: 0 2px 3px rgba(0,0,0,0.85);
  cursor: pointer;
}

/* 9-SLICE EXTRACTED KING BUTTONS */
.btn-king-play {
  width: 250px;
  height: 84px;
  background: transparent;
  background-image: var(--king-btn-play);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: none;
  font-family: inherit;
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 3px 4px rgb(155, 6, 69), 0 0 3px rgba(90, 0, 40, 0.9);
  cursor: pointer;
  transition: transform 0.1s;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.45));
}

.btn-pre-play-sm {
  width: 224px;
  height: 74px;
  font-size: 28px;
  margin-top: 4px;
}

.btn-king-play:active,
.btn-ui:active,
.btn-console-pill:active,
.btn-console-mini:active {
  transform: scale(0.94);
}

.btn-ui {
  width: 140px;
  height: 48px;
  background: transparent;
  background-image: var(--king-btn-blue);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  text-shadow: 0 2px 3px rgba(0,0,0,0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
}

.btn-pink { background-image: var(--king-btn-pink); }
.btn-orange { background-image: var(--king-btn-orange); }
.btn-green { background-image: var(--king-btn-green); }
.btn-blue { background-image: var(--king-btn-blue); }

.modal-wide-btn {
  width: 220px;
  height: 50px;
  font-size: 17px;
}

.modal-btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

/* 3. SAGA WORLD MAP & TOPBAR (topbar.xml) */
#screen-map {
  background: #a5d65c;
}

.map-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, rgba(45,10,58,0.68) 0%, rgba(45,10,58,0.18) 85%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  gap: 6px;
  z-index: 20;
}

.topbar-capsule {
  height: 44px;
  min-width: 130px;
  padding: 0 6px 0 2px;
  background-image: var(--king-topbar-capsule);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  cursor: pointer;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.45));
}

.heart-badge-wrap {
  position: relative;
  width: 42px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -2px;
}

.heart-badge-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.heart-badge-num {
  position: relative;
  z-index: 2;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85);
}

.topbar-lives-txt {
  font-size: 15px;
  font-weight: bold;
  color: rgb(109, 18, 51);
  padding: 0 2px;
}

.topbar-item-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-left: 6px;
}

.topbar-gold-num {
  font-size: 16px;
  font-weight: bold;
  color: rgb(109, 18, 51);
}

.topbar-plus-btn {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.topbar-right-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.map-footer-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(0deg, rgba(40,10,55,0.75) 0%, rgba(40,10,55,0.22) 85%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  z-index: 20;
}

.map-footer-nav .btn-ui {
  width: 126px;
  height: 44px;
  font-size: 14px;
}

.map-scroll-viewport {
  position: absolute;
  inset: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.map-scroll-viewport::-webkit-scrollbar {
  display: none;
}

.map-track-canvas {
  position: relative;
  width: 100%;
  height: 1000px;
}

#mapCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.map-node {
  position: absolute;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.15s;
}

.map-node:hover {
  transform: translate(-50%, -50%) scale(1.12);
}

.map-node.current-node .map-pin-circle {
  animation: pinPulseGlow 1.1s ease-in-out infinite alternate;
}

@keyframes pinPulseGlow {
  0% { filter: drop-shadow(0 4px 6px rgba(0,0,0,0.45)) brightness(1); }
  100% { filter: drop-shadow(0 0 14px rgba(255,255,140,0.95)) brightness(1.16); }
}

.map-pin-circle {
  position: relative;
  width: 56px;
  height: 56px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.45));
}

.map-pin-num {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-shadow:
    -1px -1px 0 rgba(25, 8, 0, 0.9),
     1px -1px 0 rgba(25, 8, 0, 0.9),
    -1px  1px 0 rgba(25, 8, 0, 0.9),
     1px  1px 0 rgba(25, 8, 0, 0.9),
     0    2px 3px rgba(0, 0, 0, 0.85);
}

.map-pin-lock {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.7));
}

.map-node-stars {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
}

.map-node-star {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.7));
}

.map-tiffi-avatar {
  position: absolute;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 15;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.5));
  animation: tiffiBounce 0.8s ease-in-out infinite alternate;
}

@keyframes tiffiBounce {
  0% { transform: translate(-50%, -95%); }
  100% { transform: translate(-50%, -115%); }
}

.map-episode-sign {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-image: var(--king-map-banner);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  min-width: 256px;
  height: 48px;
  padding: 0 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 3px rgba(95, 10, 0, 0.95);
  white-space: nowrap;
  z-index: 12;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.45));
}

/* 4. IN-GAME HUD & BOARD (game_hud.xml) */
#screen-game {
  background: #000;
}

#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.game-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 108px;
  padding: 8px 10px 10px;
  background-image: var(--king-hud-topbar);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 25;
}

.game-hud-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.hud-moves-card {
  width: 58px;
  height: 92px;
  margin-top: -10px;
  background-image: var(--king-hud-moves);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 12px;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.45));
}

.hud-level-badge {
  font-size: 10px;
  color: #fce4ec;
  text-transform: uppercase;
  line-height: 1;
}

.hud-moves-num {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 2px 3px rgba(0,0,0,0.85);
}

.hud-moves-lbl {
  font-size: 10px;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
}

.hud-center-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}

.hud-score-readout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 6px;
}

.hud-score-caption {
  font-size: 12px;
  color: #ffe4f2;
  text-shadow: 0 1px 2px #000;
}

.hud-score-num {
  font-size: 19px;
  font-weight: bold;
  color: #fff8e1;
  text-shadow: 0 2px 3px #000;
}

.game-progress-bar {
  position: relative;
  width: 100%;
  height: 22px;
  background-image: var(--king-hud-scorebar);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 3px 4px;
  overflow: visible;
}

.game-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(180deg, #fff176 0%, #ff9800 55%, #e65100 100%);
  border-radius: 7px;
  transition: width 0.25s ease-out;
}

.star-milestone {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  z-index: 5;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.8));
}

.star-milestone.earned {
  transform: translate(-50%, -50%) scale(1.22);
}

.hud-goal-card {
  width: 92px;
  height: 76px;
  background-image: var(--king-hud-goals);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.45));
}

.hud-goal-title {
  font-size: 10px;
  color: #ffe4f2;
  text-shadow: 0 1px 2px #000;
}

.hud-goal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

#game-goal-icon {
  display: none;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.hud-goal-val {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 3px #000;
}

.btn-hud-pause {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  margin-top: 2px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.btn-hud-pause img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* TUTORIAL BANNER */
#tutorial-banner {
  position: absolute;
  bottom: 78px;
  left: 16px;
  right: 16px;
  background: rgba(34, 8, 52, 0.92);
  border: 2px solid #ffd54f;
  border-radius: 16px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 26;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.65);
}

#tutorial-char {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.tutorial-title {
  font-size: 12px;
  color: #ffeb3b;
  font-weight: bold;
}

.tutorial-msg {
  font-size: 12px;
  color: #fff;
  line-height: 1.25;
}

/* BOOSTERS TRAY (game_booster_menu.xml) */
.boosters-tray {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 6px 12px;
  z-index: 25;
  pointer-events: auto;
}

.booster-btn {
  position: relative;
  width: 60px;
  height: 58px;
  background-image: var(--king-booster-blue);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.15s;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.55));
}

.booster-btn:active, .booster-btn.active {
  transform: scale(1.14);
  background-image: var(--king-booster-green);
}

.booster-img {
  width: 66%;
  height: 66%;
  object-fit: contain;
}

.tilt-hammer { transform: rotate(-8deg); }
.tilt-switch { transform: rotate(-47deg); }

.booster-count {
  position: absolute;
  bottom: -4px; right: -4px;
  width: 24px;
  height: 22px;
  background-image: var(--king-purple-badge);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}

/* COMPOSITE KING DIALOG FRAMES (t_pop_small_bg.xml) */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 2, 24, 0.72);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 60;
  backdrop-filter: blur(2px);
}

.modal-frame-king {
  position: relative;
  width: 92%;
  max-width: 396px;
  min-height: 360px;
  max-height: 86%;
  background-image: var(--king-popup-frame);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 20px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 14px 32px rgba(0,0,0,0.85));
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0.75); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.btn-modal-quit {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 38px;
  height: 38px;
  background: transparent;
  background-image: var(--king-btn-quit);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: none;
  cursor: pointer;
  z-index: 5;
}

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

.modal-title-bar {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(180deg, #ff70b3 0%, #e01b6c 100%);
  border: 2px solid rgba(255, 240, 248, 0.9);
  border-radius: 999px;
  padding: 3px 22px;
  margin-bottom: 8px;
  box-shadow: 0 3px 8px rgba(105, 0, 46, 0.45);
  text-shadow: 0 2px 3px rgb(125, 0, 56);
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.modal-beige-body {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 4px;
  text-align: center;
}

.arched-stars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

.arched-star {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.35));
}

.arched-star.s-left { transform: rotate(-8deg) translateY(4px); }
.arched-star.s-mid { width: 52px; height: 52px; }
.arched-star.s-right { transform: rotate(8deg) translateY(4px); }

.pre-ep-sub {
  font-size: 13px;
  font-weight: bold;
  color: rgb(109, 18, 51);
}

.target-blue-ribbon {
  width: 96%;
  min-height: 48px;
  background-image: var(--king-target-blue);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0,0,0,0.75);
}

.target-mode-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: none;
}

.beige-label {
  font-size: 14px;
  font-weight: bold;
  color: rgb(109, 18, 51);
}

.win-score-big {
  font-size: 30px;
  font-weight: bold;
  color: #d81b60;
  text-shadow: 0 1px 0 #fff;
}

.modal-character {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.35));
}

.prelevel-boosters {
  display: flex;
  gap: 12px;
  margin: 4px 0;
}

.prebooster-item {
  width: 62px;
  height: 60px;
  background-image: var(--king-booster-blue);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.prebooster-item.selected {
  background-image: var(--king-booster-green);
  transform: scale(1.07);
}

.prebooster-sprite {
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.prebooster-check-img {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 22px;
  height: 22px;
  display: none;
}

.prebooster-item.selected .prebooster-check-img {
  display: block;
}

.wheel-stage {
  display: flex;
  justify-content: center;
  align-items: center;
}

#wheelCanvas {
  width: 250px;
  height: 250px;
}

#inspect-content {
  width: 100%;
  text-align: left;
  background: rgba(24, 5, 36, 0.94);
  border: 2px solid #ffd54f;
  border-radius: 12px;
  padding: 10px;
  font-family: monospace;
  font-size: 11px;
  color: #80deea;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 310px;
  overflow-y: auto;
}

/* FICTION FACTORY WEB CONSOLE OVERLAY (~) */
#modal-console {
  position: absolute;
  top: 12px;
  left: 10px;
  right: 10px;
  height: 360px;
  background: rgba(12, 8, 22, 0.94);
  border: 2px solid #64ffda;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  z-index: 95;
  box-shadow: 0 12px 36px rgba(0,0,0,0.88);
  font-family: Consolas, monospace;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(100, 255, 218, 0.14);
  border-bottom: 1px solid rgba(100, 255, 218, 0.35);
  font-size: 12px;
  color: #64ffda;
}

#btn-console-close {
  background: #e91e63;
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 24px;
  height: 22px;
  cursor: pointer;
  font-weight: bold;
}

#console-buffer {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #b2ebf2;
}

.console-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-top: 1px solid rgba(100, 255, 218, 0.3);
}

.console-prompt {
  color: #64ffda;
  font-weight: bold;
}

#console-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: Consolas, monospace;
  font-size: 13px;
  user-select: text;
  -webkit-user-select: text;
}
