/* ==========================================================================
   SEAL ONLINE 3D ACTION MMORPG — PHASE 1C: UX/UI DESIGN SYSTEM
   Theme: Shiltz Sky Fantasy Anime MMORPG (Shiltz Sky Blue + Royal Gold)
   Fonts: Kanit, Prompt, Sarabun, Chakra Petch
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Kanit:wght@400;500;600;700;800&family=Prompt:wght@300;400;500;600;700&family=Sarabun:wght@400;500;600;700&display=swap');

:root {
  /* Core Brand Palette — Shiltz Sky & Royal Gold */
  --shiltz-sky-light: #7fd8ff;
  --shiltz-sky: #2da8ff;
  --shiltz-sky-deep: #0f5cad;
  --shiltz-navy-glass: rgba(11, 24, 48, 0.84);
  --shiltz-panel-bg: rgba(14, 29, 58, 0.88);
  --shiltz-card-bg: rgba(20, 41, 78, 0.78);
  --shiltz-card-hover: rgba(32, 65, 118, 0.88);

  --royal-gold-light: #fff1a8;
  --royal-gold: #ffd24c;
  --royal-gold-mid: #e5a922;
  --royal-gold-dark: #9e6b08;

  /* Status Bars */
  --hp-red-light: #ff6b7b;
  --hp-red: #e62e45;
  --hp-red-dark: #8c1122;

  --ap-blue-light: #63d8ff;
  --ap-blue: #1b88f5;
  --ap-blue-dark: #0a468e;

  --xp-green-light: #76ff9b;
  --xp-green: #1fd163;
  --xp-green-dark: #0b6e31;

  /* Accents & Rarities */
  --combo-orange: #ff922b;
  --combo-pink: #ff499e;
  --plus-glow-7: #4cd7ff;
  --plus-glow-9: #ffd24c;
  --plus-glow-12: #ff54b8;

  /* Text */
  --text-cream: #f8fbff;
  --text-sky-muted: #a9c7ec;
  --text-gold: #ffdf75;
  --text-dark: #10203a;

  /* Fonts */
  --font-display: 'Kanit', 'Prompt', sans-serif;
  --font-body: 'Prompt', 'Sarabun', sans-serif;
  --font-num: 'Chakra Petch', 'Prompt', monospace;

  /* Shadows & Borders */
  --gold-border: 1.5px solid rgba(255, 210, 76, 0.62);
  --gold-border-bright: 2px solid #ffd24c;
  --sky-border: 1px solid rgba(127, 216, 255, 0.35);
  --panel-shadow: 0 14px 36px rgba(4, 10, 24, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --gold-glow: 0 0 18px rgba(255, 210, 76, 0.45);
  --sky-glow: 0 0 18px rgba(45, 168, 255, 0.5);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #08152c;
  color: var(--text-cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   3D VIEWPORT & SHILTZ WORLD BACKDROP
   ========================================================================== */
#seal-app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#seal-3d-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(180deg, #1b65c4 0%, #48a9ff 38%, #9be2ff 64%, #5dc264 68%, #2e8540 100%);
  overflow: hidden;
}

#seal-stage-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   TOP PROTOTYPE MODE SWITCHER BAR (DEV / DEMO HEADER)
   ========================================================================== */
.seal-top-nav {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: linear-gradient(180deg, rgba(16, 35, 70, 0.94) 0%, rgba(9, 21, 44, 0.96) 100%);
  border: var(--gold-border);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 241, 168, 0.35);
  backdrop-filter: blur(10px);
}

.seal-brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 210, 76, 0.3);
}

.seal-brand-crest {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff4b8, #ffd24c 55%, #b87708 100%);
  display: grid;
  place-items: center;
  color: #102445;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(255, 210, 76, 0.7);
}

.seal-brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  background: linear-gradient(180deg, #ffffff 0%, #ffd966 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.seal-brand-sub {
  font-size: 11px;
  color: var(--shiltz-sky-light);
  font-weight: 500;
}

.seal-screen-tabs {
  display: flex;
  gap: 6px;
}

.seal-tab-btn {
  cursor: pointer;
  border: 1px solid rgba(127, 216, 255, 0.3);
  background: rgba(21, 46, 86, 0.75);
  color: var(--text-sky-muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.seal-tab-btn:hover {
  color: #fff;
  border-color: var(--royal-gold);
  background: rgba(39, 80, 145, 0.85);
}

.seal-tab-btn.active {
  background: linear-gradient(180deg, #ffe27a 0%, #f0a818 100%);
  color: #122240;
  border-color: #fff3b0;
  box-shadow: 0 0 14px rgba(255, 210, 76, 0.6);
  font-weight: 700;
}

/* ==========================================================================
   SHARED FANTASY ORNATE PANEL STYLING
   ========================================================================== */
.seal-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.seal-screen.active {
  opacity: 1;
  visibility: visible;
}

.seal-panel {
  pointer-events: auto;
  background: linear-gradient(165deg, rgba(17, 37, 74, 0.92) 0%, rgba(10, 22, 46, 0.94) 100%);
  border: var(--gold-border);
  border-radius: 16px;
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.seal-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--royal-gold-light) 30%, var(--shiltz-sky-light) 50%, var(--royal-gold-light) 70%, transparent 100%);
  opacity: 0.85;
}

.seal-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  background: linear-gradient(90deg, rgba(255, 210, 76, 0.16) 0%, rgba(45, 168, 255, 0.12) 60%, transparent 100%);
  border-bottom: 1px solid rgba(255, 210, 76, 0.28);
}

.seal-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--royal-gold-light);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.seal-panel-subtitle {
  font-size: 11.5px;
  color: var(--shiltz-sky-light);
  font-weight: 500;
}

/* ==========================================================================
   SCREEN 1: CHARACTER CREATION SCREEN UI (หน้าสร้างและปรับแต่งตัวละคร)
   ========================================================================== */
#screen-char-create {
  display: grid;
  grid-template-columns: 370px 1fr 410px;
  align-items: stretch;
  padding: 58px 22px 20px;
  gap: 18px;
}

/* Left Column: Job / Class Selection & Stats */
.cc-left-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  height: 100%;
  overflow-y: auto;
}

.cc-job-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.cc-job-card {
  cursor: pointer;
  padding: 10px 11px;
  border-radius: 12px;
  background: var(--shiltz-card-bg);
  border: 1.5px solid rgba(127, 216, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.18s ease;
  position: relative;
}

.cc-job-card:hover {
  background: var(--shiltz-card-hover);
  border-color: rgba(255, 210, 76, 0.65);
  transform: translateY(-1px);
}

.cc-job-card.selected {
  background: linear-gradient(135deg, rgba(45, 118, 215, 0.52) 0%, rgba(255, 200, 55, 0.25) 100%);
  border: 2px solid var(--royal-gold);
  box-shadow: var(--gold-glow);
}

.cc-job-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.28), rgba(14, 30, 62, 0.9));
  border: 1px solid rgba(255, 210, 76, 0.5);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.cc-job-info {
  min-width: 0;
}

.cc-job-name-th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  line-height: 1.15;
}

.cc-job-name-en {
  font-size: 11px;
  color: var(--royal-gold);
  font-weight: 600;
}

.cc-job-role {
  display: inline-block;
  margin-top: 2px;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(45, 168, 255, 0.25);
  color: var(--shiltz-sky-light);
  border: 1px solid rgba(127, 216, 255, 0.35);
}

/* Job Detail Box */
.cc-job-detail {
  background: rgba(9, 20, 42, 0.68);
  border: 1px solid rgba(127, 216, 255, 0.24);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cc-job-desc {
  font-size: 12px;
  line-height: 1.45;
  color: #d6e8ff;
}

.cc-job-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  background: rgba(25, 52, 98, 0.5);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 76, 0.22);
}

.cc-stat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-stat-row {
  display: grid;
  grid-template-columns: 72px 1fr 34px;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.cc-stat-label {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--royal-gold-light);
}

.cc-stat-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(8, 17, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.cc-stat-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--shiltz-sky) 0%, var(--royal-gold) 100%);
  transition: width 0.28s ease;
}

.cc-stat-val {
  font-family: var(--font-num);
  font-weight: 700;
  text-align: right;
  color: #fff;
}

.cc-starter-skill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 210, 76, 0.14), rgba(45, 168, 255, 0.1));
  border: 1px solid rgba(255, 210, 76, 0.35);
}

.cc-skill-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2b6cb0, #1a365d);
  border: 1.5px solid var(--royal-gold);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* Center Stage Overlay Controls */
.cc-center-stage {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0 8px;
  pointer-events: none;
}

.cc-stage-banner {
  pointer-events: auto;
  text-align: center;
  padding: 8px 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(13, 29, 59, 0.82) 0%, rgba(8, 18, 38, 0.88) 100%);
  border: 1px solid rgba(255, 210, 76, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.cc-stage-banner h1 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--royal-gold-light);
  letter-spacing: 0.4px;
}

.cc-stage-banner p {
  font-size: 11.5px;
  color: var(--shiltz-sky-light);
}

.cc-stage-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.cc-camera-controls {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(11, 24, 48, 0.85);
  border: 1px solid rgba(127, 216, 255, 0.4);
}

.cc-cam-btn {
  cursor: pointer;
  background: rgba(28, 60, 112, 0.85);
  border: 1px solid rgba(255, 210, 76, 0.4);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.cc-cam-btn:hover {
  background: var(--shiltz-sky);
  color: #08152c;
  border-color: #fff;
}

/* Right Column: Appearance Customization Panel */
.cc-right-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  height: 100%;
  overflow-y: auto;
}

.cc-section {
  background: rgba(9, 20, 42, 0.62);
  border: 1px solid rgba(127, 216, 255, 0.22);
  border-radius: 12px;
  padding: 9px 11px;
}

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

.cc-section-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--royal-gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hair & Face Option Pills */
.cc-option-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.cc-opt-btn {
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 9px;
  background: rgba(22, 46, 86, 0.78);
  border: 1.5px solid rgba(127, 216, 255, 0.25);
  color: var(--text-sky-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  transition: all 0.15s ease;
  text-align: center;
}

.cc-opt-btn .opt-ico {
  font-size: 16px;
  line-height: 1;
}

.cc-opt-btn:hover {
  border-color: var(--royal-gold);
  color: #fff;
}

.cc-opt-btn.active {
  background: linear-gradient(180deg, rgba(45, 168, 255, 0.45), rgba(255, 210, 76, 0.3));
  border-color: var(--royal-gold);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(255, 210, 76, 0.45);
}

/* Hat Toggle Button */
.cc-hat-toggle {
  cursor: pointer;
  padding: 3px 10px;
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--royal-gold);
  background: rgba(255, 210, 76, 0.2);
  color: var(--royal-gold-light);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.cc-hat-toggle.off {
  background: rgba(20, 38, 70, 0.8);
  border-color: rgba(127, 216, 255, 0.35);
  color: var(--text-sky-muted);
}

/* Color Swatches */
.cc-swatch-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.cc-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.cc-swatch:hover {
  transform: scale(1.12);
}

.cc-swatch.active {
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px var(--royal-gold), 0 0 10px rgba(255, 210, 76, 0.8);
  transform: scale(1.12);
}

.cc-custom-color-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  font-size: 11px;
  color: var(--shiltz-sky-light);
  background: rgba(18, 39, 76, 0.8);
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid rgba(127, 216, 255, 0.35);
}

.cc-color-input {
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

/* Character Name & CTA Footer */
.cc-name-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cc-name-input {
  width: 100%;
  padding: 9px 95px 9px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 210, 76, 0.55);
  background: rgba(7, 16, 34, 0.9);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.cc-name-input:focus {
  border-color: var(--shiltz-sky-light);
  box-shadow: 0 0 12px rgba(45, 168, 255, 0.45);
}

.cc-name-status {
  position: absolute;
  right: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--xp-green-light);
}

.cc-action-row {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.btn-randomize {
  cursor: pointer;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--shiltz-sky-light);
  background: linear-gradient(180deg, #1f5fa8 0%, #10376b 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.18s ease;
}

.btn-randomize:hover {
  background: linear-gradient(180deg, #2b7bd6 0%, #16498a 100%);
  transform: translateY(-1px);
  box-shadow: var(--sky-glow);
}

.btn-enter-world {
  cursor: pointer;
  padding: 11px 16px;
  border-radius: 12px;
  border: 2px solid #fff4b8;
  background: linear-gradient(180deg, #ffe47a 0%, #f5ab18 55%, #c97a06 100%);
  color: #132342;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(245, 171, 24, 0.55), inset 0 1px 0 #ffffff;
  transition: all 0.18s ease;
}

.btn-enter-world:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 28px rgba(255, 210, 76, 0.8), inset 0 1px 0 #ffffff;
}

/* ==========================================================================
   SCREEN 2: IN-GAME HUD & WINDOWS (หน้าจอ HUD ในเกม)
   ========================================================================== */
#screen-hud {
  padding: 54px 18px 14px;
}

/* 1. Top-Left Character Status Frame */
.hud-status-frame {
  position: absolute;
  top: 56px;
  left: 18px;
  width: 336px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hud-status-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #48a9ff, #0f3266);
  border: 2.5px solid var(--royal-gold);
  box-shadow: 0 0 14px rgba(255, 210, 76, 0.5);
  flex-shrink: 0;
  overflow: visible;
}

#hud-avatar-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.hud-lv-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: linear-gradient(180deg, #ffe27a, #d98a0b);
  color: #10203a;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hud-bars-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.hud-char-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.hud-char-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-char-job {
  font-size: 11px;
  color: var(--royal-gold);
  font-weight: 600;
  flex-shrink: 0;
}

.hud-bar-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-bar-track {
  position: relative;
  height: 15px;
  border-radius: 99px;
  background: rgba(6, 13, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.hud-bar-track.xp-track {
  height: 11px;
}

.hud-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.25s ease;
  position: relative;
}

.hud-bar-fill::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  right: 4px;
  height: 40%;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent);
}

.hud-bar-fill.hp-fill {
  background: linear-gradient(90deg, var(--hp-red-dark) 0%, var(--hp-red) 55%, var(--hp-red-light) 100%);
}

.hud-bar-fill.ap-fill {
  background: linear-gradient(90deg, var(--ap-blue-dark) 0%, var(--ap-blue) 55%, var(--ap-blue-light) 100%);
}

.hud-bar-fill.xp-fill {
  background: linear-gradient(90deg, var(--xp-green-dark) 0%, var(--xp-green) 60%, var(--xp-green-light) 100%);
}

.hud-bar-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-family: var(--font-num);
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}

.hud-status-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(127, 216, 255, 0.2);
  font-size: 12px;
}

.hud-cegel-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(7, 16, 34, 0.78);
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid rgba(255, 210, 76, 0.45);
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--royal-gold-light);
}

.hud-buff-list {
  display: flex;
  gap: 5px;
}

.hud-buff-ico {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(28, 62, 118, 0.9);
  border: 1px solid var(--royal-gold);
  display: grid;
  place-items: center;
  font-size: 13px;
}

/* 2. Top-Center Monster Target Frame */
.hud-target-frame {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 390px;
  padding: 10px 16px;
}

.hud-target-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.hud-target-id {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-target-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe699, #d96b1b);
  border: 1.5px solid #fff;
  display: grid;
  place-items: center;
  font-size: 19px;
}

.hud-target-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.hud-target-lv {
  font-family: var(--font-num);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--royal-gold);
}

.hud-element-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(230, 46, 69, 0.28);
  border: 1px solid #ff7888;
  color: #ffd0d6;
}

.hud-target-hp-wrap {
  position: relative;
  height: 18px;
  border-radius: 99px;
  background: rgba(8, 14, 28, 0.92);
  border: 1.5px solid rgba(255, 210, 76, 0.6);
  overflow: hidden;
}

.hud-target-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #991224 0%, #e62e45 50%, #ff8552 100%);
  transition: width 0.22s ease;
}

.hud-target-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-sky-muted);
}

.hud-target-switch-btn {
  cursor: pointer;
  background: rgba(32, 68, 126, 0.85);
  border: 1px solid rgba(255, 210, 76, 0.45);
  color: var(--royal-gold-light);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 99px;
}

.hud-target-switch-btn:hover {
  background: var(--royal-gold);
  color: #10203a;
}

/* 3. Top-Right Minimap Radar */
.hud-minimap-frame {
  position: absolute;
  top: 56px;
  right: 18px;
  width: 235px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.hud-minimap-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hud-zone-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--royal-gold-light);
}

.hud-ch-badge {
  font-family: var(--font-num);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(31, 209, 99, 0.22);
  border: 1px solid var(--xp-green-light);
  color: var(--xp-green-light);
}

.hud-radar-circle {
  position: relative;
  width: 146px;
  height: 146px;
  border-radius: 50%;
  border: 2.5px solid var(--royal-gold);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.75), 0 0 14px rgba(45, 168, 255, 0.35);
  overflow: hidden;
  background: #173c2c;
}

#hud-minimap-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hud-minimap-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--shiltz-sky-light);
}

.hud-window-toggles {
  display: flex;
  gap: 6px;
  width: 100%;
}

.hud-win-btn {
  flex: 1;
  cursor: pointer;
  padding: 5px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 76, 0.45);
  background: rgba(20, 44, 84, 0.85);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.hud-win-btn.active {
  background: linear-gradient(180deg, rgba(255, 210, 76, 0.32), rgba(45, 168, 255, 0.28));
  border-color: var(--royal-gold);
  color: var(--royal-gold-light);
  box-shadow: 0 0 10px rgba(255, 210, 76, 0.35);
}

/* 4. Toggleable Popup Windows (Character/Equip +1~+12 & Inventory) */
.hud-popup-window {
  position: absolute;
  top: 236px;
  width: 356px;
  z-index: 40;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.hud-popup-window.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.97);
}

#win-equip {
  left: 18px;
}

#win-inventory {
  right: 18px;
}

.win-close-btn {
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 210, 76, 0.4);
  background: rgba(230, 46, 69, 0.3);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.win-close-btn:hover {
  background: var(--hp-red);
}

.win-body {
  padding: 11px 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Equip Grid (+1 ~ +12) */
.equip-slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.equip-slot-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(10, 22, 46, 0.82);
  border: 1px solid rgba(127, 216, 255, 0.28);
  position: relative;
}

.equip-slot-card.glow-12 {
  border-color: var(--plus-glow-12);
  box-shadow: inset 0 0 12px rgba(255, 84, 184, 0.28);
}

.equip-slot-card.glow-9 {
  border-color: var(--plus-glow-9);
  box-shadow: inset 0 0 12px rgba(255, 210, 76, 0.24);
}

.equip-slot-card.glow-7 {
  border-color: var(--plus-glow-7);
}

.equip-ico-box {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: radial-gradient(circle at 30% 30%, #2d5a9e, #0e2042);
  border: 1.5px solid var(--royal-gold);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.plus-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  padding: 0 5px;
  border-radius: 99px;
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 800;
  color: #10203a;
  background: linear-gradient(180deg, #fff1a8, #f5ab18);
  border: 1px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.plus-badge.plus-12 {
  background: linear-gradient(180deg, #ffb8e6, #ff2e93);
  color: #fff;
}

.equip-meta {
  min-width: 0;
}

.equip-slot-type {
  font-size: 10px;
  color: var(--shiltz-sky-light);
}

.equip-item-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.equip-item-stat {
  font-family: var(--font-num);
  font-size: 10.5px;
  color: var(--royal-gold-light);
}

/* Character Stat Allocation inside Equip Window */
.char-stats-panel {
  background: rgba(8, 17, 36, 0.76);
  border: 1px solid rgba(255, 210, 76, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.char-stats-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.stat-pts-badge {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--xp-green-light);
  background: rgba(31, 209, 99, 0.16);
  padding: 1px 8px;
  border-radius: 99px;
  border: 1px solid rgba(118, 255, 155, 0.4);
}

.stat-alloc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
}

.stat-alloc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.stat-alloc-key {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--royal-gold-light);
}

.stat-alloc-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stat-plus-btn {
  cursor: pointer;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  border: 1px solid var(--royal-gold);
  background: linear-gradient(180deg, #ffe27a, #d98a0b);
  color: #10203a;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.stat-plus-btn:hover {
  transform: scale(1.1);
}

.combat-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding-top: 5px;
  border-top: 1px solid rgba(127, 216, 255, 0.18);
  text-align: center;
  font-size: 10.5px;
}

.combat-summary-row strong {
  display: block;
  font-family: var(--font-num);
  font-size: 12px;
  color: #fff;
}

/* Inventory Window */
.inv-tabs {
  display: flex;
  gap: 5px;
}

.inv-tab {
  flex: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 7px;
  background: rgba(16, 35, 68, 0.8);
  border: 1px solid rgba(127, 216, 255, 0.25);
  color: var(--text-sky-muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.inv-tab.active {
  background: linear-gradient(180deg, #ffe27a, #e5a922);
  color: #10203a;
  border-color: #fff;
  font-weight: 700;
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.inv-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: rgba(8, 18, 38, 0.86);
  border: 1.5px solid rgba(127, 216, 255, 0.28);
  display: grid;
  place-items: center;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.inv-slot:hover, .inv-slot.selected {
  border-color: var(--royal-gold);
  background: rgba(28, 60, 114, 0.88);
  box-shadow: 0 0 10px rgba(255, 210, 76, 0.5);
  transform: translateY(-1px);
}

.inv-qty {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px #000;
}

.inv-tooltip-box {
  background: rgba(7, 16, 34, 0.9);
  border: 1px solid rgba(255, 210, 76, 0.45);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.inv-tooltip-title {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--royal-gold-light);
}

.inv-tooltip-desc {
  font-size: 11px;
  color: var(--shiltz-sky-light);
}

/* 5. Bottom-Center Seal Combo Bar & Skill/Item Hotbars */
.hud-bottom-dock {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(760px, 95vw);
  z-index: 50;
}

/* SEAL COMBO BAR (A -> S -> A -> S -> D Finisher!) */
.seal-combo-deck {
  width: 100%;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(180deg, rgba(16, 36, 74, 0.95) 0%, rgba(8, 18, 40, 0.97) 100%);
  border: 2px solid var(--royal-gold);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 22px rgba(255, 210, 76, 0.32);
}

.combo-title-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.combo-badge-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--shiltz-sky-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.combo-hit-counter {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
  background: linear-gradient(180deg, #fff6b3 0%, #ffae19 55%, #ff3b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(255, 110, 40, 0.65));
  line-height: 1.05;
}

.combo-sub-note {
  font-size: 10.5px;
  color: var(--text-sky-muted);
}

/* Sequence Keys A -> S -> A -> S -> D */
.combo-sequence-steps {
  display: flex;
  align-items: center;
  gap: 6px;
}

.combo-step-arrow {
  color: var(--royal-gold);
  font-size: 13px;
  font-weight: 800;
  opacity: 0.75;
}

.combo-key-node {
  cursor: pointer;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(19, 41, 78, 0.9);
  border: 2px solid rgba(127, 216, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.16s ease;
}

.combo-key-node.finisher {
  width: 68px;
  border-color: rgba(255, 146, 43, 0.7);
  background: linear-gradient(160deg, rgba(112, 24, 58, 0.9), rgba(48, 14, 34, 0.95));
}

.combo-key-letter {
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.combo-key-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--royal-gold-light);
}

.combo-key-node.done {
  background: linear-gradient(180deg, rgba(31, 209, 99, 0.35), rgba(11, 110, 49, 0.6));
  border-color: var(--xp-green-light);
}

.combo-key-node.active-target {
  background: linear-gradient(180deg, #ffe47a 0%, #f09819 100%);
  border-color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(255, 210, 76, 0.95);
}

.combo-key-node.active-target .combo-key-letter,
.combo-key-node.active-target .combo-key-tag {
  color: #10203a;
}

/* Timing Ring Gauge */
.combo-timing-gauge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timing-ring-svg {
  width: 50px;
  height: 50px;
  transform: rotate(-90deg);
}

.timing-ring-bg {
  fill: none;
  stroke: rgba(127, 216, 255, 0.2);
  stroke-width: 5;
}

.timing-ring-prog {
  fill: none;
  stroke: var(--royal-gold);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 126;
  stroke-dashoffset: 28;
  transition: stroke-dashoffset 0.2s ease;
}

/* Hotbars Row (F1-F6 Skills + 1-4 Potions) */
.hud-hotbars-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 14px;
}

.hotbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hotbar-divider {
  width: 1.5px;
  height: 36px;
  background: rgba(255, 210, 76, 0.35);
}

.hotbar-slot {
  cursor: pointer;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(22, 48, 92, 0.92), rgba(10, 22, 46, 0.95));
  border: 1.5px solid rgba(255, 210, 76, 0.55);
  display: grid;
  place-items: center;
  font-size: 21px;
  transition: all 0.14s ease;
}

.hotbar-slot:hover {
  transform: translateY(-2px);
  border-color: #fff;
  box-shadow: 0 0 12px rgba(45, 168, 255, 0.65);
}

.hotbar-slot:active {
  transform: scale(0.94);
}

.hotbar-key {
  position: absolute;
  top: 2px;
  left: 4px;
  font-family: var(--font-num);
  font-size: 9.5px;
  font-weight: 800;
  color: var(--royal-gold-light);
  text-shadow: 0 1px 2px #000;
}

.hotbar-sub {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-family: var(--font-num);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--shiltz-sky-light);
  text-shadow: 0 1px 2px #000;
}

/* Floating Toast Notification for Actions */
#seal-toast {
  position: fixed;
  bottom: 168px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  pointer-events: none;
  padding: 6px 18px;
  border-radius: 99px;
  background: rgba(10, 24, 52, 0.92);
  border: 1.5px solid var(--royal-gold);
  color: var(--royal-gold-light);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#seal-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* ==========================================================================
   PHASE 1C UPDATE: NOVICE (Lv. 1-10) -> Lv. 10 JOB ADVANCEMENT SYSTEM
   ========================================================================== */
.cc-progression-banner {
  background: linear-gradient(90deg, rgba(255, 210, 76, 0.22) 0%, rgba(45, 168, 255, 0.18) 100%);
  border: 1.5px solid var(--royal-gold);
  border-radius: 11px;
  padding: 8px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cc-prog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--royal-gold-light);
}

.cc-prog-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
}

.cc-prog-pill {
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(12, 28, 58, 0.9);
  border: 1px solid rgba(127, 216, 255, 0.45);
  color: #fff;
}

.cc-prog-pill.novice-active {
  background: linear-gradient(180deg, #76ff9b, #1fd163);
  color: #082012;
  border-color: #fff;
  font-weight: 800;
}

.cc-prog-pill.lv10-gold {
  background: linear-gradient(180deg, #ffe47a, #e5a922);
  color: #122240;
  border-color: #fff;
  font-weight: 800;
}

.cc-preview-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--shiltz-sky-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -4px;
}

.cc-job-tag-lv {
  position: absolute;
  top: 5px;
  right: 6px;
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 99px;
  background: rgba(16, 36, 72, 0.9);
  border: 1px solid rgba(255, 210, 76, 0.55);
  color: var(--royal-gold-light);
}

.cc-job-card[data-job="novice"] .cc-job-tag-lv {
  background: rgba(31, 209, 99, 0.25);
  border-color: var(--xp-green-light);
  color: var(--xp-green-light);
}

/* HUD Lv.10 Job Change Golden CTA Banner Button */
.hud-jobchange-cta {
  cursor: pointer;
  margin-top: 2px;
  width: 100%;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1.5px solid #fff4b8;
  background: linear-gradient(90deg, #ff9900 0%, #ffd24c 50%, #ff8800 100%);
  color: #10203a;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 16px rgba(255, 210, 76, 0.75);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.hud-jobchange-cta:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 0 22px rgba(255, 228, 122, 0.95);
}

.hud-jobchange-cta .cta-pill {
  background: #10203a;
  color: var(--royal-gold-light);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
}

/* Center-Screen Lv.10 Job Advancement Modal (#win-job-change) */
#win-job-change {
  position: absolute;
  top: 192px;
  left: 50%;
  transform: translateX(-50%);
  width: 468px;
  z-index: 65;
  border: 2px solid var(--royal-gold);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.82), 0 0 26px rgba(255, 210, 76, 0.42);
}

#win-job-change.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px) scale(0.96);
}

.jc-flow-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(31, 209, 99, 0.18), rgba(255, 210, 76, 0.24));
  border: 1px solid rgba(255, 210, 76, 0.45);
  font-size: 11.5px;
  font-weight: 700;
}

.jc-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.jc-class-card {
  cursor: pointer;
  padding: 9px 8px;
  border-radius: 11px;
  background: rgba(14, 30, 62, 0.88);
  border: 1.5px solid rgba(127, 216, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  transition: all 0.16s ease;
}

.jc-class-card:hover {
  border-color: var(--royal-gold);
  transform: translateY(-2px);
}

.jc-class-card.selected {
  background: linear-gradient(180deg, rgba(45, 168, 255, 0.36) 0%, rgba(255, 210, 76, 0.28) 100%);
  border: 2px solid var(--royal-gold);
  box-shadow: 0 0 14px rgba(255, 210, 76, 0.55);
}

.jc-class-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe699, #1e3a8a);
  border: 1.5px solid var(--royal-gold);
  display: grid;
  place-items: center;
  font-size: 21px;
}

.jc-class-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.jc-class-sub {
  font-size: 10px;
  color: var(--royal-gold-light);
  font-weight: 600;
}

.jc-class-bonus {
  font-family: var(--font-num);
  font-size: 9.5px;
  color: var(--xp-green-light);
  background: rgba(8, 20, 40, 0.85);
  padding: 2px 6px;
  border-radius: 99px;
  border: 1px solid rgba(118, 255, 155, 0.35);
}

.jc-selected-detail {
  background: rgba(8, 17, 36, 0.86);
  border: 1px solid rgba(127, 216, 255, 0.28);
  border-radius: 10px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
}

.btn-confirm-jobchange {
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1.5px solid #fff4b8;
  background: linear-gradient(180deg, #ffe47a 0%, #f5ab18 60%, #c97a06 100%);
  color: #10203a;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(245, 171, 24, 0.55);
}

.btn-confirm-jobchange:hover {
  transform: scale(1.03);
}

/* ==========================================================================
   PHASE 1C UPDATE 2: VISUAL EQUIPMENT / PAPERDOLL SYSTEM
   (หมวก · ชุดเกราะ · อาวุธ · โล่ · ปีก เปลี่ยนตามของที่สวมใส่จริงแบบเรียลไทม์)
   ========================================================================== */
.paperdoll-loadout-bar {
  background: linear-gradient(90deg, rgba(45, 168, 255, 0.18), rgba(255, 210, 76, 0.22));
  border: 1px solid rgba(255, 210, 76, 0.45);
  border-radius: 10px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.paperdoll-loadout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--royal-gold-light);
}

.paperdoll-preset-btns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.pd-preset-btn {
  cursor: pointer;
  padding: 4px 3px;
  border-radius: 7px;
  border: 1px solid rgba(127, 216, 255, 0.35);
  background: rgba(12, 28, 58, 0.88);
  color: var(--text-sky-muted);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.pd-preset-btn:hover {
  border-color: var(--royal-gold);
  color: #fff;
}

.pd-preset-btn.active {
  background: linear-gradient(180deg, #ffe47a 0%, #e5a922 100%);
  color: #10203a;
  border-color: #fff;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(255, 210, 76, 0.65);
}

.paperdoll-live-summary {
  background: rgba(7, 16, 34, 0.88);
  border: 1px solid rgba(127, 216, 255, 0.32);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 10.5px;
  color: #d6e8ff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.paperdoll-live-summary strong {
  color: var(--royal-gold-light);
}

.inv-slot.is-equipped {
  border: 2px solid #76ff9b;
  background: linear-gradient(160deg, rgba(31, 209, 99, 0.28), rgba(14, 36, 72, 0.92));
  box-shadow: 0 0 10px rgba(31, 209, 99, 0.45);
}

.inv-eq-tag {
  position: absolute;
  bottom: 2px;
  left: 3px;
  padding: 0 4px;
  border-radius: 4px;
  background: #1fd163;
  color: #06210f;
  font-family: var(--font-num);
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1.25;
}

.btn-inv-equip-now {
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1.5px solid #fff4b8;
  background: linear-gradient(180deg, #ffe47a, #e5a922);
  color: #10203a;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(255, 210, 76, 0.45);
}

.btn-inv-equip-now:hover {
  transform: scale(1.04);
}

/* ==========================================================================
   ACTION RPG COMBAT & SKILL DOCK (Replaces Combo Bar — Clean Action MMORPG)
   ========================================================================== */
.hud-action-skill-dock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  background: linear-gradient(180deg, rgba(16, 36, 74, 0.95) 0%, rgba(8, 18, 40, 0.98) 100%);
  border: 2px solid var(--royal-gold);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.72), 0 0 20px rgba(255, 210, 76, 0.28);
}

.action-primary-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-main-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 12px;
  border: 1.5px solid #fff4b8;
  background: linear-gradient(180deg, #ffe47a 0%, #f5ab18 60%, #c97a06 100%);
  color: #10203a;
  font-family: var(--font-display);
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(245, 171, 24, 0.45);
}

.action-main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 210, 76, 0.8);
}

.action-main-btn.dodge-btn {
  background: linear-gradient(180deg, #2b7bd6 0%, #154582 100%);
  border-color: var(--shiltz-sky-light);
  color: #fff;
  box-shadow: 0 4px 14px rgba(45, 168, 255, 0.4);
}

.action-main-btn .act-ico {
  font-size: 20px;
  line-height: 1;
}

.action-main-btn .act-title {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.1;
}

.action-main-btn .act-sub {
  font-family: var(--font-num);
  font-size: 9.5px;
  font-weight: 700;
  opacity: 0.88;
}


/* === FIXED CLASS CARD LAYOUT (NO OVERLAPPING BADGES) & ASSET THUMBNAILS === */
.cc-job-card {
  padding: 8px 10px !important;
  align-items: flex-start !important;
  gap: 9px !important;
}

.cc-job-icon {
  width: 48px !important;
  height: 54px !important;
  border-radius: 10px !important;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, rgba(127, 216, 255, 0.35), rgba(10, 24, 52, 0.95)) !important;
  border: 1.5px solid rgba(255, 210, 76, 0.65) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cc-job-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.cc-job-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
  min-width: 0;
  flex: 1;
}

.cc-job-tag-lv {
  position: static !important;
  display: inline-block !important;
  font-family: var(--font-num);
  font-size: 9px !important;
  font-weight: 800;
  padding: 1px 6px !important;
  border-radius: 99px;
  background: rgba(16, 36, 72, 0.92);
  border: 1px solid rgba(255, 210, 76, 0.6);
  color: var(--royal-gold-light);
  line-height: 1.25;
  margin-bottom: 1px;
  white-space: nowrap;
}

.cc-job-name-th {
  font-size: 13px !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.cc-job-name-en {
  font-size: 10.5px !important;
  line-height: 1.15 !important;
}

.cc-job-role {
  margin-top: 1px !important;
  font-size: 9.5px !important;
  padding: 1px 6px !important;
}

/* Compact Top-Center Lv.10 Job Change Window so Center Stage Hero is 100% Unobstructed */
#win-job-change {
  top: 158px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 540px !important;
  padding: 8px 12px !important;
}

#win-job-change .seal-panel-header {
  padding-bottom: 5px !important;
  margin-bottom: 5px !important;
}

#win-job-change .seal-panel-title {
  font-size: 13px !important;
}

#win-job-change .seal-panel-subtitle {
  font-size: 10px !important;
}

#win-job-change .win-body {
  gap: 5px !important;
}

#win-job-change .jc-flow-banner {
  padding: 4px 10px !important;
  font-size: 10.5px !important;
}

#win-job-change .jc-class-card {
  flex-direction: row !important;
  text-align: left !important;
  padding: 5px 7px !important;
  gap: 7px !important;
}

#win-job-change .jc-class-ico {
  width: 36px !important;
  height: 36px !important;
  flex-shrink: 0;
  overflow: hidden;
}

#win-job-change .jc-class-ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#win-job-change .jc-selected-detail {
  padding: 5px 9px !important;
  font-size: 10.5px !important;
}

.equip-ico-box img, .inv-slot img, .cc-opt-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   PHASE 1D: INTERACTIVE 360° CHARACTER CREATOR & PAPERDOLL TRY-ON STUDIO
   ========================================================================== */

#screen-char-create {
  grid-template-columns: 365px 1fr 425px !important;
  padding: 54px 18px 14px !important;
  gap: 14px !important;
}

.cc-left-panel,
.cc-right-panel {
  padding: 11px 12px !important;
  gap: 8px !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 210, 76, 0.5) rgba(8, 18, 38, 0.5);
}

.cc-job-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px !important;
}

.cc-job-card {
  padding: 6px 8px !important;
  gap: 7px !important;
  border-radius: 10px !important;
}

.cc-job-card.span-2 {
  grid-column: span 2;
}

.cc-job-icon {
  width: 42px !important;
  height: 46px !important;
}

/* Live Paperdoll Box on Left Panel */
.cc-paperdoll-box {
  background: linear-gradient(160deg, rgba(12, 28, 58, 0.9), rgba(7, 16, 34, 0.94));
  border: 1.5px solid rgba(255, 210, 76, 0.48);
  border-radius: 11px;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-paperdoll-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--royal-gold-light);
}

.cc-refine-pill {
  font-family: var(--font-num);
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(31, 209, 99, 0.2);
  border: 1px solid #76ff9b;
  color: #76ff9b;
}

.cc-refine-pill.ref-7 {
  background: rgba(76, 215, 255, 0.22);
  border-color: #4cd7ff;
  color: #7fd8ff;
}

.cc-refine-pill.ref-9 {
  background: rgba(255, 210, 76, 0.25);
  border-color: #ffd24c;
  color: #fff1a8;
}

.cc-refine-pill.ref-12 {
  background: linear-gradient(90deg, rgba(255, 84, 184, 0.35), rgba(255, 210, 76, 0.35));
  border-color: #ff54b8;
  color: #ffb8e6;
  box-shadow: 0 0 10px rgba(255, 84, 184, 0.55);
}

.cc-paperdoll-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.cc-pd-slot {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(16, 36, 70, 0.82);
  border: 1px solid rgba(127, 216, 255, 0.3);
  transition: all 0.14s ease;
  min-width: 0;
}

.cc-pd-slot:hover,
.cc-pd-slot.active-cat {
  border-color: var(--royal-gold);
  background: rgba(32, 68, 126, 0.9);
  box-shadow: 0 0 8px rgba(255, 210, 76, 0.45);
}

.cc-pd-slot-thumb {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: radial-gradient(circle at 35% 30%, rgba(127, 216, 255, 0.3), rgba(8, 18, 38, 0.95));
  border: 1px solid rgba(255, 210, 76, 0.55);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cc-pd-slot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cc-pd-slot-meta {
  min-width: 0;
  flex: 1;
}

.cc-pd-slot-lbl {
  font-size: 9px;
  color: var(--shiltz-sky-light);
  line-height: 1.1;
}

.cc-pd-slot-val {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Center Stage 360 Turnaround Controls & Drag Hint */
.cc-drag-hint {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 13px;
  border-radius: 999px;
  background: rgba(9, 21, 44, 0.82);
  border: 1px solid rgba(127, 216, 255, 0.45);
  font-size: 11px;
  color: #d6e8ff;
  margin-top: 4px;
  margin-bottom: auto;
}

.cc-angle-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 210, 76, 0.28), rgba(45, 168, 255, 0.24));
  border: 1px solid var(--royal-gold);
  color: var(--royal-gold-light);
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 10.5px;
}

.cc-turnaround-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9, 20, 42, 0.9);
  border: 1.5px solid rgba(255, 210, 76, 0.55);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.cc-angle-btn {
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(127, 216, 255, 0.35);
  background: rgba(20, 44, 84, 0.85);
  color: var(--text-sky-muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  transition: all 0.14s ease;
}

.cc-angle-btn:hover {
  color: #fff;
  border-color: var(--royal-gold);
}

.cc-angle-btn.active {
  background: linear-gradient(180deg, #ffe47a 0%, #e5a922 100%);
  color: #10203a;
  border-color: #fff;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(255, 210, 76, 0.65);
}

.cc-slider-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-num);
  font-size: 10px;
  color: var(--shiltz-sky-light);
  padding-left: 4px;
}

#cc-angle-slider {
  width: 96px;
  accent-color: #ffd24c;
  cursor: pointer;
}

/* Right Panel Sub-Mode Tabs & Scroll Container */
.cc-right-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.cc-rmode-btn {
  cursor: pointer;
  padding: 5px 6px;
  border-radius: 8px;
  border: 1px solid rgba(127, 216, 255, 0.3);
  background: rgba(16, 35, 68, 0.82);
  color: var(--text-sky-muted);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  transition: all 0.14s ease;
}

.cc-rmode-btn.active {
  background: linear-gradient(180deg, rgba(45, 168, 255, 0.42), rgba(255, 210, 76, 0.32));
  border-color: var(--royal-gold);
  color: #fff;
  font-weight: 700;
}

.cc-right-scroll {
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  flex: 1;
  padding-right: 2px;
}

.cc-pane-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cc-pane-group.hidden {
  display: none;
}

/* 6-Column Hairstyle Grid & 5-Column Face Grid with Real Sprite Thumbnails */
.cc-option-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.cc-opt-btn {
  padding: 4px 3px !important;
  gap: 2px !important;
}

.cc-opt-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 35%, rgba(127, 216, 255, 0.28), rgba(8, 18, 38, 0.92));
  border: 1px solid rgba(255, 210, 76, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cc-opt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Direct Paperdoll Equipment Try-On Section inside Screen 1 */
.cc-equip-tryon-section {
  border-color: rgba(255, 210, 76, 0.5) !important;
  background: linear-gradient(165deg, rgba(16, 35, 70, 0.85), rgba(9, 20, 42, 0.92)) !important;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cc-refine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.cc-refine-btn {
  cursor: pointer;
  padding: 4px 4px;
  border-radius: 7px;
  border: 1px solid rgba(127, 216, 255, 0.35);
  background: rgba(12, 26, 52, 0.9);
  color: var(--text-sky-muted);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
  transition: all 0.14s ease;
}

.cc-refine-btn.active {
  border-color: #fff;
  color: #10203a;
  background: linear-gradient(180deg, #ffe47a, #e5a922);
  font-weight: 800;
  box-shadow: 0 0 10px rgba(255, 210, 76, 0.65);
}

.cc-refine-btn.ref-7.active {
  background: linear-gradient(180deg, #8ae6ff, #1ca3ec);
  color: #061c36;
  box-shadow: 0 0 12px rgba(76, 215, 255, 0.8);
}

.cc-refine-btn.ref-12.active {
  background: linear-gradient(180deg, #ffb8e6, #ff2e93);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 84, 184, 0.85);
}

.cc-eq-cat-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.cc-eq-tab {
  cursor: pointer;
  padding: 4px 2px;
  border-radius: 7px;
  border: 1px solid rgba(127, 216, 255, 0.28);
  background: rgba(14, 30, 60, 0.85);
  color: var(--text-sky-muted);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.cc-eq-tab.active {
  background: linear-gradient(180deg, #ffe27a, #e5a922);
  color: #10203a;
  border-color: #fff;
  font-weight: 800;
}

.cc-eq-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.cc-eq-item-card {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 9px;
  background: rgba(8, 18, 38, 0.88);
  border: 1.5px solid rgba(127, 216, 255, 0.26);
  transition: all 0.14s ease;
  min-width: 0;
}

.cc-eq-item-card:hover {
  border-color: var(--royal-gold);
  background: rgba(24, 52, 98, 0.9);
  transform: translateY(-1px);
}

.cc-eq-item-card.equipped {
  border-color: #76ff9b;
  background: linear-gradient(145deg, rgba(31, 209, 99, 0.24), rgba(20, 46, 88, 0.92));
  box-shadow: 0 0 10px rgba(31, 209, 99, 0.45);
}

.cc-eq-item-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: radial-gradient(circle at 35% 30%, rgba(127, 216, 255, 0.3), rgba(8, 18, 38, 0.95));
  border: 1px solid rgba(255, 210, 76, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cc-eq-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cc-eq-item-info {
  min-width: 0;
  flex: 1;
}

.cc-eq-item-name {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-eq-item-stat {
  font-family: var(--font-num);
  font-size: 9.5px;
  color: var(--royal-gold-light);
}

/* ==========================================================================
   CONSOLE-SKILL TOOLBAR, TELEMETRY & MODALS (Saves mc0, Controller, Tuner)
   ========================================================================== */
.seal-console-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 210, 76, 0.3);
}

.console-tool-btn {
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(127, 216, 255, 0.38);
  background: rgba(15, 34, 68, 0.88);
  color: #e2f1ff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.console-tool-btn:hover,
.console-tool-btn.active {
  border-color: var(--royal-gold);
  background: rgba(34, 72, 136, 0.92);
  color: var(--royal-gold-light);
  box-shadow: 0 0 10px rgba(255, 210, 76, 0.45);
}

.console-fps-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(7, 18, 36, 0.92);
  border: 1px solid rgba(118, 255, 155, 0.5);
  font-family: var(--font-num);
  font-size: 10.5px;
  font-weight: 700;
  color: #76ff9b;
  white-space: nowrap;
}

.fps-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #76ff9b;
  box-shadow: 0 0 6px #76ff9b;
}

.console-modal {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 94vw);
  z-index: 160;
  border: 2px solid var(--royal-gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 28px rgba(255, 210, 76, 0.38);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.console-modal.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px) scale(0.97);
}

.console-modal-body {
  padding: 12px 15px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mc-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: #d6e8ff;
  background: rgba(8, 18, 38, 0.78);
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid rgba(127, 216, 255, 0.28);
}

.mc-io-btns {
  display: flex;
  gap: 6px;
}

.mc-action-btn {
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--royal-gold);
  background: linear-gradient(180deg, rgba(255, 210, 76, 0.28), rgba(45, 168, 255, 0.22));
  color: var(--royal-gold-light);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
}

.mc-action-btn:hover {
  background: var(--royal-gold);
  color: #10203a;
}

.mc-slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mc-slot-card {
  background: rgba(11, 24, 48, 0.9);
  border: 1.5px solid rgba(127, 216, 255, 0.32);
  border-radius: 11px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mc-slot-card.has-save {
  border-color: rgba(255, 210, 76, 0.65);
}

.mc-slot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 800;
  color: var(--royal-gold-light);
}

.mc-slot-desc {
  font-size: 11px;
  color: #e2f1ff;
  line-height: 1.35;
}

.mc-slot-btns {
  display: flex;
  gap: 5px;
  margin-top: 2px;
}

.mc-slot-btn {
  flex: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid rgba(127, 216, 255, 0.35);
  background: rgba(22, 48, 92, 0.85);
  color: #fff;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
}

.mc-slot-btn.save {
  background: linear-gradient(180deg, #ffe27a, #d98a0b);
  color: #10203a;
  border-color: #fff;
  font-weight: 800;
}

.mc-slot-btn:hover {
  filter: brightness(1.12);
}

.mc-bak-status {
  font-size: 11px;
  color: #76ff9b;
  background: rgba(8, 22, 38, 0.85);
  border: 1px solid rgba(118, 255, 155, 0.35);
  padding: 6px 10px;
  border-radius: 8px;
}

.pad-preset-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--royal-gold-light);
}

.pad-preset-btn,
.aspect-btn,
.fps-cap-btn {
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid rgba(127, 216, 255, 0.35);
  background: rgba(16, 36, 70, 0.88);
  color: var(--text-sky-muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
}

.pad-preset-btn.active,
.aspect-btn.active,
.fps-cap-btn.active {
  background: linear-gradient(180deg, #ffe47a, #e5a922);
  color: #10203a;
  border-color: #fff;
  font-weight: 800;
}

.pad-tuning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pad-tune-box {
  background: rgba(9, 20, 42, 0.88);
  border: 1px solid rgba(127, 216, 255, 0.28);
  border-radius: 9px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.pad-tune-lbl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--shiltz-sky-light);
}

.pad-tune-lbl strong {
  font-family: var(--font-num);
  color: var(--royal-gold-light);
}

.pad-tune-box input[type="range"] {
  width: 100%;
  accent-color: #ffd24c;
  cursor: pointer;
}

.pad-bindings-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.pad-bind-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(12, 26, 52, 0.86);
  border: 1px solid rgba(127, 216, 255, 0.24);
  font-size: 11px;
}

.pad-bind-key {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--royal-gold-light);
  background: rgba(255, 210, 76, 0.16);
  padding: 1px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 210, 76, 0.4);
}
