/* website/armory/armory.css
   MapleStory Classic Armory — Unified with MapleQuest Tracker Design System
*/

:root {
  --bg: #f5f3ee;
  --bg2: #ece8df;
  --card: #ffffff;
  --card-hover: #faf8f4;
  --raise: #f0ece4;
  --raise-hi: #e5dfd3;
  --line: #e0dacf;
  --ink: #1b1f29;
  --mute: #555d6e;
  --faint: #858b98;
  --honey: #c4830a;
  --honey-soft: #fbefd4;
  --honey-dim: rgba(196, 131, 10, 0.14);
  --on-honey: #1b1408;
  --sage: #1f8458;
  --sage-dim: rgba(31, 132, 88, 0.14);
  --sky: #3b61d4;
  --sky-dim: rgba(59, 97, 212, 0.14);
  --coral: #c4473a;
  --coral-dim: rgba(196, 71, 58, 0.14);
  --shadow: 0 22px 60px -24px rgba(40, 30, 10, 0.28);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f131b;
    --bg2: #0b0e14;
    --card: #161b26;
    --card-hover: #1b2130;
    --raise: #1d2330;
    --raise-hi: #252c3c;
    --line: #252c3a;
    --ink: #eef1f7;
    --mute: #a0a8b9;
    --faint: #666f84;
    --honey: #f6b941;
    --honey-soft: rgba(246, 185, 65, 0.12);
    --honey-dim: rgba(246, 185, 65, 0.15);
    --on-honey: #1b1408;
    --sage: #6fd6a6;
    --sage-dim: rgba(111, 214, 166, 0.15);
    --sky: #86a8ff;
    --sky-dim: rgba(134, 168, 255, 0.15);
    --coral: #ff8c7c;
    --coral-dim: rgba(255, 140, 124, 0.15);
    --shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.85);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f131b;
  --bg2: #0b0e14;
  --card: #161b26;
  --card-hover: #1b2130;
  --raise: #1d2330;
  --raise-hi: #252c3c;
  --line: #252c3a;
  --ink: #eef1f7;
  --mute: #a0a8b9;
  --faint: #666f84;
  --honey: #f6b941;
  --honey-soft: rgba(246, 185, 65, 0.12);
  --honey-dim: rgba(246, 185, 65, 0.15);
  --on-honey: #1b1408;
  --sage: #6fd6a6;
  --sage-dim: rgba(111, 214, 166, 0.15);
  --sky: #86a8ff;
  --sky-dim: rgba(134, 168, 255, 0.15);
  --coral: #ff8c7c;
  --coral-dim: rgba(255, 140, 124, 0.15);
  --shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.85);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font: 15px/1.6 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* ------------------------------------------------------------ Header Nav (Matches website/index.html) */
.armory-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.brand svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.brand b {
  color: var(--honey);
  font-weight: 800;
}

.beta {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--honey-soft);
  color: var(--honey);
  line-height: 1.4;
}

.desktop-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mute);
  white-space: nowrap;
}
.desktop-links a:hover {
  color: var(--ink);
}
@media (max-width: 720px) {
  .desktop-links {
    display: none;
  }
}

.armory-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  flex: none;
}
.theme-btn:hover {
  border-color: var(--honey);
}
.theme-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.theme-btn .i-moon {
  fill: currentColor;
  stroke: none;
}
:root[data-theme="light"] .theme-btn .i-sun,
:root:not([data-theme="light"]) .theme-btn .i-moon {
  display: none;
}

/* ------------------------------------------------------------ Buttons & Chips (Matches website/app/style.css) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--raise);
  color: var(--ink);
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
}
.btn:hover {
  background: var(--raise-hi);
  border-color: var(--mute);
}
.btn.primary {
  background: var(--honey);
  color: var(--on-honey);
  border-color: var(--honey);
}
.btn.primary:hover {
  filter: brightness(1.06);
}
.btn.ghost {
  background: var(--card);
  border-color: var(--line);
}
.btn.opt-web {
  background: var(--sage-dim);
  color: var(--sage);
  border-color: rgba(111, 214, 166, 0.35);
}
.btn.opt-web:hover {
  filter: brightness(1.06);
}
.btn.sm {
  padding: 5px 10px;
  font-size: 12.5px;
  border-radius: 8px;
}
.btn.lg {
  padding: 12px 20px;
  font-size: 15px;
  border-radius: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  background: var(--raise);
  color: var(--ink);
  border: 1px solid var(--line);
}
.chip.gold {
  background: var(--honey-dim);
  color: var(--honey);
  border-color: rgba(246, 185, 65, 0.3);
}
.chip.green {
  background: var(--sage-dim);
  color: var(--sage);
  border-color: rgba(111, 214, 166, 0.35);
}
.chip.blue {
  background: var(--sky-dim);
  color: var(--sky);
  border-color: rgba(134, 168, 255, 0.35);
}

/* ------------------------------------------------------------ Tester Mode Banner */
.tester-mode-bar {
  background: var(--card);
  border-bottom: 1.5px solid var(--honey);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  z-index: 101;
}
.tester-mode-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ------------------------------------------------------------ Hero & Landing Sections (Matches website/index.html) */
.hype-hero {
  padding: 48px 0 36px;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--honey);
  background: var(--honey-soft);
  padding: 5px 12px;
  border-radius: 99px;
  letter-spacing: 0.03em;
  box-shadow: 0 0 16px var(--honey-dim);
}
.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
  animation: pulse-glow 1.8s infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* Teaser Metric Grid */
.teaser-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 32px 0 16px;
  text-align: left;
}
@media (max-width: 820px) {
  .teaser-stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .teaser-stat-strip {
    grid-template-columns: 1fr;
  }
}
.teaser-stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.teaser-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--honey), transparent);
}
.teaser-stat-num {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.teaser-stat-num em {
  font-style: normal;
  color: var(--honey);
}
.teaser-stat-desc {
  font-size: 12px;
  color: var(--mute);
  line-height: 1.4;
  margin: 0;
}

/* Grand Teaser Callout Banner Below the Stage */
.teaser-callout-card {
  margin-top: 32px;
  padding: 28px 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(246, 185, 65, 0.08) 0%, rgba(34, 197, 94, 0.04) 50%, var(--card) 100%);
  border: 1px solid rgba(246, 185, 65, 0.35);
  box-shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.2), 0 0 24px rgba(246, 185, 65, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.teaser-callout-content {
  max-width: 650px;
}
.teaser-callout-kicker {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--honey);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.teaser-callout-title {
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.teaser-callout-text {
  font-size: 14.5px;
  color: var(--mute);
  line-height: 1.55;
  margin: 0;
}

/* 3-Step Live Armory Workflow Guide */
.gear-link-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 16px;
  text-align: left;
}
@media (max-width: 768px) {
  .gear-link-steps {
    grid-template-columns: 1fr;
  }
}
.gear-step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.gear-step-card:hover {
  transform: translateY(-2px);
  border-color: var(--honey);
  box-shadow: 0 8px 24px rgba(246, 185, 65, 0.12);
}
.gear-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--honey);
}
.gear-step-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.gear-step-desc {
  font-size: 13px;
  color: var(--mute);
  line-height: 1.5;
  margin: 0;
}
.gear-step-link {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--honey);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.gear-step-link:hover {
  text-decoration: underline;
}

.hype-hero h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 14px 0 12px;
  font-weight: 800;
}
.hype-hero h1 em {
  font-style: normal;
  color: var(--honey);
}
.lead {
  font-size: 17px;
  color: var(--mute);
  max-width: 40em;
  margin: 0 auto 24px;
  line-height: 1.55;
}
.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.menu span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
}

.stage-section,
.features-section {
  padding: 36px 0 56px;
  border-top: 1px solid var(--line);
}
.section-head {
  margin-bottom: 20px;
}
.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 6px;
}
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 6px;
}
.sub {
  color: var(--mute);
  font-size: 15.5px;
  max-width: 46em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 860px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card p {
  margin: 0;
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ------------------------------------------------------------ Armory Inspector Card Shell (Matches website/app/) */
.armory-card-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.armory-char-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.armory-char-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.armory-char-ign {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.armory-char-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.armory-guild-pill {
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.armory-guild-pill:hover {
  border-color: var(--sage);
  filter: brightness(1.08);
}

.maple-guild-mark-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  image-rendering: pixelated;
  vertical-align: middle;
}
.maple-guild-mark-img.sm {
  width: 13px;
  height: 13px;
}

.armory-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.armory-header-actions .btn.active {
  background: var(--honey-dim);
  color: var(--honey);
  border-color: var(--honey);
}

/* Navigation Tabs Bar (Exact match with website/app/style.css .tabs-bar) */
.tabs-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 4px;
  padding: 6px 14px;
  overflow-x: auto;
}
.tab-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  color: var(--mute);
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: 0.15s ease;
  white-space: nowrap;
}
.tab-btn:hover {
  color: var(--ink);
}
.tab-btn.active {
  background: var(--card);
  color: var(--honey);
  border-color: var(--line);
}

.armory-tab-pane {
  padding: 16px 18px 20px;
}

/* ------------------------------------------------------------ Stage Map & Tile Spot Selector Bar */
.armory-map-selector-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 14px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.map-selector-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.map-selector-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--mute);
  margin-right: 2px;
}
.map-scene-pill,
.map-spot-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.map-scene-pill:hover,
.map-spot-pill:hover {
  border-color: var(--honey);
}
.map-scene-pill.active,
.map-spot-pill.active {
  background: var(--honey);
  color: var(--on-honey);
  border-color: var(--honey);
  font-weight: 800;
}
.tier-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}
.tier-tag.free {
  background: var(--sage-dim);
  color: var(--sage);
}
.map-scene-pill.active .tier-tag.free,
.map-scene-pill.active .tier-tag.supporter {
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
}
.tier-tag.supporter {
  background: var(--honey-dim);
  color: var(--honey);
}

/* ------------------------------------------------------------ Paperdoll Layout & Tile-Locked Map Stage Window */
.armory-paperdoll-stage {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(280px, 1fr) minmax(210px, 260px);
  gap: 14px;
  align-items: start;
}
@media (max-width: 900px) {
  .armory-paperdoll-stage {
    grid-template-columns: 1fr;
  }
}

.armory-equip-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.armory-center-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* Dedicated 270px Map Stage Window:
   - The map's tile surface (groundY) is locked at y = 208px (62px from the bottom).
   - The bottom 62px displays the authentic MapleStory ground tile + soil/brick cross-section.
   - The character's shoes sit at bottom: 62px (y = 208px) directly ON TOP of the tiles!
   - The classic nametag hangs at top: 212px on the front of the ground tiles beneath the shoes!
*/
.armory-map-stage-window {
  position: relative;
  width: 100%;
  height: 270px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #4fb3dd;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.28);
  user-select: none;
}

.maple-scene-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.maple-scene-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Character sprite anchored directly on top of the tile line (bottom: 62px = y: 208px) */
.armory-avatar-holder {
  position: absolute;
  bottom: 62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
}

/* Official Classic In-Game NameTag (UI/NameTag.img) resting directly beneath the character's shoes (No Guild NameTag) */
.maple-classic-nametag {
  position: absolute;
  top: 211px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  white-space: nowrap;
  pointer-events: none;
}

/* Below-Stage Controls (Weapon Slot, Gear Score, Stance Bar) */
.armory-stage-controls-below {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.armory-weapon-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}
.armory-weapon-bar {
  flex: 1 1 200px;
  min-width: 0;
}
.armory-power-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--honey-dim);
  border: 1px solid rgba(246, 185, 65, 0.35);
  color: var(--honey);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

/* Dynamic Stance & Action Bar */
.armory-stance-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.armory-stance-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--mute);
  margin-right: 4px;
}
.stance-btn {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--mute);
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.stance-btn:hover {
  color: var(--ink);
  border-color: var(--honey);
}
.stance-btn.active {
  background: var(--honey);
  color: var(--on-honey);
  border-color: var(--honey);
  font-weight: 800;
}

/* ------------------------------------------------------------ Slot Cards (Theme-Aware for Light & Dark Mode) */
.armory-slot-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  transition: all 0.15s ease;
  min-height: 56px;
}
.armory-slot-card:hover {
  border-color: var(--honey);
  background: var(--card-hover);
}
.armory-slot-card.right-align {
  flex-direction: row-reverse;
  text-align: right;
}
.armory-slot-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.armory-slot-card.equipped .armory-slot-icon-box {
  border-color: var(--honey);
}
.armory-slot-art {
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
}
.armory-slot-placeholder-icon {
  font-size: 18px;
  opacity: 0.5;
}
.armory-slot-scroll-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: var(--honey);
  color: var(--on-honey);
  font-size: 9px;
  font-weight: 900;
  padding: 1px 3px;
  border-radius: 3px;
  line-height: 1;
}
.armory-slot-info {
  flex: 1;
  min-width: 0;
}
.armory-slot-type-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--faint);
  margin-bottom: 1px;
}
.armory-slot-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.armory-slot-item-title.empty {
  color: var(--faint);
  font-style: italic;
  font-weight: 500;
}
.armory-slot-item-stats {
  font-size: 11px;
  font-weight: 600;
  color: var(--honey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------ Equipment Roster & Stats Sheet */
.armory-equipment-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.armory-roster-item-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
}

.armory-stats-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.armory-stats-group {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}
.armory-stats-group-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--honey);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.armory-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
}
.armory-stat-label {
  color: var(--mute);
}
.armory-stat-val {
  font-weight: 700;
  color: var(--ink);
}

/* ------------------------------------------------------------ Authentic Classic In-Game Inventory Window */
.classic-inventory-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: 6px 0;
  flex-wrap: wrap;
}
.classic-inventory-window {
  width: 256px;
  background: #f7f9fa;
  border: 2px solid #5a7698;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #1e293b;
  overflow: hidden;
  position: relative;
  user-select: none;
}
.classic-window-titlebar {
  background: linear-gradient(180deg, #6c8fa8 0%, #466782 100%);
  color: #ffffff;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #2f4b63;
  text-shadow: 1px 1px 0 #1b2e3e;
}
.classic-window-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.classic-window-close {
  background: #2b70a0;
  border: 1px solid #73b3e2;
  color: #fff;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}
.classic-window-close:hover {
  background: #d9534f;
  border-color: #ff8581;
}
.classic-window-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  background: #baccdb;
  padding: 5px 6px 0 6px;
  border-bottom: 2px solid #b71c1c;
}
.classic-inv-tab {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px 4px 0 0;
  border: 1px solid #7792a7;
  border-bottom: none;
  background: #8e9fab;
  color: #ffffff;
  cursor: pointer;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}
.classic-inv-tab.active {
  background: #e54b64;
  border-color: #a31c32;
  color: #ffffff;
}
.classic-inv-grid-board {
  position: relative;
  background: #ffffff;
  padding: 12px 10px;
  min-height: 250px;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
}
.classic-inv-silhouette {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 200px;
  pointer-events: none;
  opacity: 0.22;
}
.classic-inv-pet-silhouette {
  position: absolute;
  bottom: 8px;
  right: 12px;
  width: 60px;
  height: 60px;
  pointer-events: none;
  opacity: 0.22;
}
.classic-grid-layout {
  display: grid;
  grid-template-columns: repeat(4, 52px);
  grid-template-rows: repeat(4, 52px);
  gap: 4px;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.classic-slot-box {
  width: 50px;
  height: 50px;
  border: 1px solid #c2d1dd;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.classic-slot-box:hover {
  border-color: #f6b941;
  background: rgba(255, 248, 225, 0.9);
}
.classic-slot-box.equipped {
  background: rgba(255, 255, 255, 0.95);
  border-color: #8faec4;
}
.classic-slot-box.covered-bottom {
  background: rgba(239, 68, 68, 0.28) !important;
  border-color: rgba(220, 38, 38, 0.6) !important;
  cursor: not-allowed;
}
.classic-slot-watermark {
  position: absolute;
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  pointer-events: none;
}
.classic-slot-item-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
  z-index: 2;
}
.classic-slot-badge {
  position: absolute;
  bottom: 1px;
  right: 2px;
  background: #f6b941;
  color: #000;
  font-size: 8.5px;
  font-weight: 900;
  padding: 0 3px;
  border-radius: 2px;
  line-height: 1.1;
  z-index: 3;
}
.slot-hat { grid-column: 2; grid-row: 1; }
.slot-earring { grid-column: 3; grid-row: 2; }
.slot-cape { grid-column: 1; grid-row: 2; }
.slot-top { grid-column: 2; grid-row: 2; }
.slot-weapon { grid-column: 3; grid-row: 3; }
.slot-shield { grid-column: 4; grid-row: 3; }
.slot-gloves { grid-column: 1; grid-row: 3; }
.slot-bottom { grid-column: 2; grid-row: 3; }
.slot-shoes { grid-column: 2; grid-row: 4; }

/* ------------------------------------------------------------ Appearance & GuildMark Customizer Pane */
.armory-beauty-pane {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.beauty-custom-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}
.beauty-custom-group.full-width-card {
  grid-column: 1 / -1;
}
.guild-creator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.guild-live-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(10, 14, 22, 0.92);
  border: 1px solid var(--sage);
  color: #72e37f;
  font-size: 13.5px;
}
.guild-creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.guild-sub-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.guild-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
}
.guild-preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.guild-preset-chip img {
  image-rendering: pixelated;
  flex-shrink: 0;
}
.guild-preset-chip:hover {
  border-color: var(--sage);
}
.guild-preset-chip.active {
  background: var(--sage-dim);
  border-color: var(--sage);
  color: var(--sage);
}
.beauty-custom-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--honey);
}
.beauty-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.beauty-chip {
  padding: 5px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}
.beauty-chip:hover {
  border-color: var(--honey);
}
.beauty-chip.active {
  background: var(--honey);
  color: var(--on-honey);
  border-color: var(--honey);
  font-weight: 800;
}

/* ------------------------------------------------------------ Tester Toolbar & Modals */
.tester-char-toolbar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.tester-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tester-select {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--raise);
  color: var(--ink);
  border: 1px solid var(--line);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  padding: 22px;
  box-shadow: var(--shadow);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.modal-head h3 {
  font-size: 17px;
  font-weight: 800;
}
.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--mute);
  cursor: pointer;
}
.input-text {
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--raise);
  border: 1px solid var(--line);
  color: var(--ink);
  outline: none;
}
.input-text:focus {
  border-color: var(--honey);
}

.picker-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.picker-job-btn {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  background: var(--raise);
  border: 1px solid var(--line);
  color: var(--mute);
  cursor: pointer;
}
.picker-job-btn.active {
  background: var(--honey);
  color: var(--on-honey);
  border-color: var(--honey);
}
.picker-scroll-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 7px 11px;
  background: var(--honey-dim);
  border: 1px solid rgba(246, 185, 65, 0.3);
  border-radius: 8px;
}
.picker-scroll-row span {
  font-size: 12px;
  font-weight: 800;
  color: var(--honey);
}
.picker-scroll-row select {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.app-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  background: var(--card);
  border: 1.5px solid var(--honey);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.22s ease;
}
.app-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 13px;
  color: var(--faint);
}
footer a:hover {
  color: var(--ink);
}

/* ============================================================
   Authentic Classic MapleStory Equipment Stat Tooltip
   ============================================================ */
.maple-equip-tooltip-container {
  position: fixed;
  z-index: 100000;
  pointer-events: none;
  width: 290px;
  max-width: calc(100vw - 20px);
  box-sizing: border-box;
  background: linear-gradient(180deg, #172439 0%, #0f1828 50%, #0a101b 100%);
  border: 1.5px solid #d49b28;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #050a12, inset 0 0 0 1px rgba(255, 215, 0, 0.18), 0 16px 36px rgba(0, 0, 0, 0.92);
  padding: 12px 14px;
  font-family: Tahoma, 'MS Sans Serif', 'Segoe UI', Arial, sans-serif;
  font-size: 11px;
  color: #ffffff;
  line-height: 1.36;
  opacity: 1;
  transition: opacity 0.08s ease;
}

.maple-equip-tooltip-header {
  text-align: center;
  margin-bottom: 4px;
}

.maple-equip-tooltip-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.maple-equip-tooltip-bonus {
  color: #f6b941;
  font-weight: 800;
  margin-left: 4px;
}

.maple-equip-tooltip-subtype {
  font-size: 11px;
  color: #f6b941;
  font-weight: 600;
  margin-top: 2px;
}

.maple-equip-tooltip-cash-badge {
  display: inline-block;
  background: linear-gradient(135deg, #d946ef 0%, #a855f7 100%);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 1px 7px;
  border-radius: 4px;
  margin-top: 4px;
  box-shadow: 0 0 8px rgba(217, 70, 239, 0.45);
}

.maple-equip-tooltip-divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, rgba(212, 155, 40, 0.4), transparent);
  margin: 6px 0;
}

.maple-equip-tooltip-req-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin: 6px 0;
}

.maple-equip-tooltip-icon-box {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: radial-gradient(circle, #1a2740 0%, #0c121e 100%);
  border: 1px solid #4a5d7c;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.7);
}

.maple-equip-tooltip-icon-img {
  max-width: 40px;
  max-height: 40px;
  image-rendering: pixelated;
}

.maple-equip-tooltip-req-list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5px;
  font-size: 11px;
}

.maple-req-item {
  display: flex;
  justify-content: space-between;
}

.maple-req-label {
  color: #8da2c4;
  font-weight: 500;
}

.maple-req-val {
  color: #ffffff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.maple-req-val.dim {
  color: #4b586d;
  font-weight: normal;
}

.maple-equip-tooltip-jobs-box {
  margin: 4px 0 6px 0;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.maple-equip-tooltip-jobs-title {
  font-size: 9.5px;
  font-weight: 700;
  color: #8da2c4;
  letter-spacing: 0.6px;
  margin-bottom: 3px;
  text-align: center;
}

.maple-equip-tooltip-jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 4px;
  text-align: center;
  font-size: 10px;
}

.maple-job-tag {
  padding: 1px 2px;
  border-radius: 2px;
}

.maple-job-tag.active {
  color: #ffd24d;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(255, 210, 77, 0.4);
}

.maple-job-tag.dim {
  color: #475467;
  font-weight: 400;
}

.maple-equip-tooltip-stats {
  display: flex;
  flex-direction: column;
  gap: 2.5px;
  margin: 6px 0;
}

.maple-stat-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
}

.maple-stat-name {
  color: #cbd5e1;
  font-weight: 500;
}

.maple-stat-val {
  color: #ffffff;
  font-weight: 700;
}

.maple-stat-val.upgraded {
  color: #38bdf8;
}

.maple-stat-calc {
  color: #38bdf8;
  font-size: 10px;
  font-weight: 600;
  margin-left: 2px;
}

.maple-stat-slots {
  color: #f6b941;
  font-weight: 800;
}

.maple-equip-tooltip-desc {
  font-style: italic;
  color: #d1d9e2;
  font-size: 10.5px;
  line-height: 1.35;
  margin-top: 4px;
}

.maple-equip-tooltip-drops {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 4px;
}

.maple-drops-title {
  color: #f6b941;
  font-weight: 700;
}

/* Hover indicators for inspectable items */
.armory-slot-card.equipped[data-equip-name],
.classic-slot-box.equipped[data-equip-name],
.armory-roster-item-card[data-equip-name] {
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.armory-slot-card.equipped[data-equip-name]:hover {
  border-color: rgba(246, 185, 65, 0.6);
}

.classic-slot-box.equipped[data-equip-name]:hover {
  border-color: #f6b941;
  transform: scale(1.04);
}

.armory-roster-item-card[data-equip-name]:hover {
  border-color: rgba(246, 185, 65, 0.5);
  background: rgba(246, 185, 65, 0.05);
}

/* ============================================================
   PILLAR 4: HISTORICAL PROGRESSION TIMELINE & VELOCITY CURVES
   ============================================================ */
.timeline-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.15s ease-out;
  padding: 6px 0;
}

.timeline-hero-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(26, 32, 44, 0.95) 100%);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 10px;
  padding: 18px 20px;
}

.timeline-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.timeline-timeframe-btns {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-timeframe-btn {
  background: transparent;
  border: none;
  color: var(--mute, #a0aec0);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.timeline-timeframe-btn.active {
  background: #0ea5e9;
  color: #fff;
}

.timeline-chart-wrap {
  width: 100%;
  height: 200px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px;
  box-sizing: border-box;
  position: relative;
}

.timeline-records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.timeline-record-card {
  background: var(--card-bg, #1e2430);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.15s, border-color 0.15s;
}

.timeline-record-card:hover {
  border-color: rgba(246, 185, 65, 0.4);
  transform: translateY(-2px);
}

.timeline-record-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-milestones-card {
  background: var(--card-bg, #1e2430);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 20px;
}

.timeline-milestones-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 20px;
  padding-bottom: 8px;
  overflow-x: auto;
  gap: 16px;
}

.timeline-milestones-stepper::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.timeline-milestone-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  min-width: 100px;
}

.timeline-milestone-pin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 8px;
  background: #181d26;
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: var(--mute, #a0aec0);
}

.timeline-milestone-step.achieved .timeline-milestone-pin {
  border-color: #2ed573;
  color: #2ed573;
  box-shadow: 0 0 10px rgba(46, 213, 115, 0.4);
}

.timeline-milestone-step.current .timeline-milestone-pin {
  border-color: #f6b941;
  color: #f6b941;
  box-shadow: 0 0 12px rgba(246, 185, 65, 0.5);
  animation: pulse 2s infinite;
}

/* ============================================================
   PILLAR 5: SMART PARTY FINDER & LFP SPEECH BALLOONS
   ============================================================ */
.lfp-speech-balloon {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  background: #fffbe8;
  color: #1a202c;
  border: 2px solid #2d3748;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  animation: balloonBob 2.5s ease-in-out infinite;
}

.lfp-speech-balloon::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #2d3748;
}

@keyframes balloonBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}



/* ============================================================ Banned Players & Integrity System */
.armory-search-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.armory-search-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 6px 4px 12px;
  flex: 1;
  min-width: 260px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.armory-search-input-group:focus-within {
  border-color: var(--honey);
  box-shadow: 0 0 0 2px rgba(246,185,65,0.25);
}
.armory-search-icon {
  font-size: 14px;
  opacity: 0.6;
}
.armory-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font: 600 13.5px Manrope, system-ui, sans-serif;
}
.armory-search-input::placeholder {
  color: var(--faint);
  font-weight: 500;
}
.armory-banned-alert-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(239,68,68,0.2) 0%, rgba(185,28,28,0.28) 100%);
  border: 1px solid rgba(239,68,68,0.6);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(239,68,68,0.2);
  animation: bannerPulse 3s infinite ease-in-out;
}
@keyframes bannerPulse {
  0%, 100% { border-color: rgba(239,68,68,0.6); }
  50% { border-color: rgba(239,68,68,0.9); box-shadow: 0 8px 30px rgba(239,68,68,0.35); }
}
.banned-banner-icon {
  font-size: 28px;
  line-height: 1;
}
.banned-banner-info {
  flex: 1;
  min-width: 0;
}
.banned-banner-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #ff6b6b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.banned-banner-sub {
  font-size: 12.5px;
  color: #e5e7eb;
  line-height: 1.4;
}
/* Authentic MapleStory Red Rubber Stamp */
.maple-ban-stamp {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  border: 4px dashed #ff3333;
  border-radius: 8px;
  padding: 6px 18px;
  background: rgba(180, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  color: #ff3b30;
  text-align: center;
  z-index: 40;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(255, 50, 50, 0.6), inset 0 0 12px rgba(255, 0, 0, 0.4);
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
  animation: stampSlam 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}
@keyframes stampSlam {
  0% { transform: translate(-50%, -50%) rotate(-14deg) scale(2.2); opacity: 0; }
  100% { transform: translate(-50%, -50%) rotate(-14deg) scale(1); opacity: 1; }
}
.ban-stamp-inner {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  font-family: Impact, "Arial Black", sans-serif;
  color: #ffffff;
  text-shadow: -2px -2px 0 #cc0000, 2px -2px 0 #cc0000, -2px 2px 0 #cc0000, 2px 2px 0 #cc0000;
}
.ban-stamp-sub {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-top: 3px;
  color: #ffcccc;
}
/* Yellow/Black GM Police Caution Tape */
.maple-police-tape {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  height: 22px;
  background: repeating-linear-gradient(45deg, #ffd700, #ffd700 12px, #000 12px, #000 24px);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  z-index: 35;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  opacity: 0.95;
  pointer-events: none;
}
.maple-police-tape span {
  background: rgba(255, 215, 0, 0.95);
  padding: 1px 10px;
  border-radius: 4px;
}
/* Confiscated slot state */
.is-banned-char #stage-avatar-container img {
  filter: grayscale(100%) brightness(0.65) contrast(1.1);
  opacity: 0.7;
}
.is-banned-char .armory-slot-card {
  position: relative;
  filter: grayscale(90%) opacity(0.6);
  border-color: rgba(239,68,68,0.3) !important;
}
.is-banned-char .armory-slot-card::after {
  content: "⛔ CONFISCATED";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ff4d4d;
  background: rgba(0,0,0,0.85);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255,77,77,0.5);
  pointer-events: none;
  white-space: nowrap;
}
/* Modal for Banned Players registry */
.banned-modal-card {
  background: var(--raise);
  border: 1px solid rgba(239,68,68,0.35);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.banned-modal-card b {
  color: #ff6b6b;
  font-size: 15px;
}
.banned-pill-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(239,68,68,0.2);
  color: #ff6b6b;
  border: 1px solid rgba(239,68,68,0.4);
}

[hidden] { display: none !important; }

/* NX cash cover slots (same as the web app) */
/* Dedicated NX Cash Shelf / Rack */
.armory-nx-rack {
  margin-top: 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(217, 70, 239, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 15px rgba(217, 70, 239, 0.08);
}
.armory-nx-rack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(217, 70, 239, 0.15);
}
.armory-nx-rack-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #e879f9;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.armory-nx-rack-badge {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 99px;
  background: linear-gradient(135deg, #d946ef, #a855f7);
  color: #ffffff;
}
.armory-nx-rack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 8px;
}
.armory-nx-slot-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(217, 70, 239, 0.3);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 48px;
}
.armory-nx-slot-card:hover {
  border-color: #d946ef;
  background: rgba(217, 70, 239, 0.12);
  transform: translateY(-1px);
}
.armory-nx-slot-card.equipped {
  border-style: solid;
  border-color: rgba(217, 70, 239, 0.55);
  background: rgba(217, 70, 239, 0.08);
}
.armory-nx-slot-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(217, 70, 239, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.armory-nx-slot-card.equipped .armory-nx-slot-icon-box {
  border-color: rgba(217, 70, 239, 0.6);
  box-shadow: 0 0 8px rgba(217, 70, 239, 0.25);
}
.armory-nx-slot-info {
  flex: 1;
  min-width: 0;
}
.armory-nx-slot-label {
  font-size: 9.5px;
  font-weight: 800;
  color: #c084fc;
  text-transform: uppercase;
}
.armory-nx-slot-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.armory-nx-slot-card.empty .armory-nx-slot-name {
  color: var(--mute);
  font-style: italic;
  font-weight: 400;
  font-size: 10.5px;
}
.armory-nx-badge-tag {
  font-size: 8.5px;
  font-weight: 800;
  background: linear-gradient(135deg, #d946ef, #a855f7);
  color: #fff;
  border-radius: 2px;
  padding: 0 4px;
  margin-left: 3px;
  display: inline-block;
}

/* NX covers wait until Classic World's cash shop is in use */
.armory-nx-rack, .armory-stage-mode-bar, #btn-gear-filter-nx, .armory-slot-nx-cover-pill { display: none !important; }

/* Gear Score breakdown (tap the badge) */
.armory-power-badge[role="button"] { cursor: pointer; }
.armory-power-badge .gs-info { opacity: .75; font-weight: 700; }
.armory-power-badge.open { border-color: var(--honey); }
.gs-break { margin-top: 2px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(246, 185, 65, 0.35); background: var(--honey-dim); font-size: 13px; }
.gs-rows { display: grid; gap: 2px; }
.gs-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 4px 0; border-bottom: 1px dashed rgba(246, 185, 65, 0.25); }
.gs-row span { color: var(--ink); font-weight: 700; display: flex; flex-direction: column; }
.gs-row small { color: var(--mute); font-weight: 500; font-size: 11.5px; }
.gs-row b { color: var(--honey); font-variant-numeric: tabular-nums; }
.gs-row.gs-total { border-bottom: 0; padding-top: 6px; }
.gs-row.gs-total b { font-size: 15px; }
.gs-how { margin: 8px 0 0; color: var(--mute); font-size: 12px; line-height: 1.5; }

/* Reserve your name (first look page) */
.name-reserve-card { margin-top: 18px; padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(246, 185, 65, 0.35); background: linear-gradient(135deg, var(--honey-dim), transparent 70%); }
.nr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nr-head h3 { margin: 0; font-size: 18px; color: var(--ink); }
.nr-badge { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(111, 214, 166, 0.16); color: var(--sage, #6fd6a6); border: 1px solid rgba(111, 214, 166, 0.45); }
.nr-text { margin: 8px 0 12px; color: var(--mute); font-size: 14px; line-height: 1.55; }
.nr-text code { color: var(--ink); }
.nr-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.nr-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--mute); }
.nr-field input, .nr-field select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; min-width: 170px; }
.nr-field input:focus { outline: none; border-color: var(--honey); }
.nr-note { margin-top: 10px; font-size: 13px; color: var(--faint); min-height: 1.2em; }
.nr-note.ok { color: var(--sage, #6fd6a6); }
.nr-note.bad { color: var(--coral, #ff8c7c); }
.nr-mine { margin-top: 8px; font-size: 13px; color: var(--mute); }
.nr-mine button { margin-left: 6px; background: none; border: 0; color: var(--coral, #ff8c7c); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }

/* Gear Score explained + FAQ (static section) */
.gs-static { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 760px) { .gs-static { grid-template-columns: 1fr; } }
.gs-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
.gs-table th, .gs-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.gs-table th { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.gs-table td:last-child, .gs-table th:last-child { text-align: right; color: var(--honey); font-weight: 800; white-space: nowrap; }
.gs-table tr:last-child td { border-bottom: 0; }
.gs-example { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(246, 185, 65, 0.35); background: var(--honey-dim); }
.gs-example h3 { margin: 0 0 8px; font-size: 15px; color: var(--ink); }
.gs-example ul { list-style: none; margin: 0; padding: 0; }
.gs-example li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed rgba(246, 185, 65, 0.25); font-size: 14px; color: var(--ink); }
.gs-example li b { color: var(--honey); }
.gs-example li.gs-sum { border-bottom: 0; font-weight: 800; }
.gs-example p { margin: 8px 0 0; font-size: 12.5px; color: var(--mute); }
.gs-faqs { display: grid; gap: 8px; max-width: 820px; }
.gs-faq { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 12px 16px; }
.gs-faq summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.gs-faq p { margin: 8px 0 0; color: var(--mute); line-height: 1.6; font-size: 14px; }
