/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

:root {
  --bg-primary: #0c0a08;
  --bg-secondary: #141210;
  --bg-card: #1c1914;
  --bg-card-hover: #252018;
  --text-primary: #f0ece6;
  --text-secondary: #a09888;
  --text-muted: #605848;
  --accent-start: #c41e1e;
  --accent-mid: #d4872a;
  --accent-end: #e8b84a;
  --accent-glow: rgba(196, 30, 30, 0.3);
  --gold: #d4a03a;
  --gold-light: #e8c868;
  --border-color: rgba(212, 160, 58, 0.08);
  /* Light section palette */
  --bg-light: #f5f3f0;
  --bg-light-alt: #eae7e2;
  --bg-light-card: #ffffff;
  --bg-light-card-hover: #faf9f7;
  --text-light-primary: #1a1714;
  --text-light-secondary: #5c5549;
  --text-light-muted: #9a9288;
  --border-light: rgba(0, 0, 0, 0.08);
  --font-family: 'Inter', sans-serif;
  --banner-height: 38px;
  --header-height: 70px;
  --container-max: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--banner-height, 38px));
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.section__subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  text-align: center;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -0.5px;
  color: #fff;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.btn--outline:hover {
  border-color: var(--accent-start);
  color: #fff;
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

/* ===== TOP BANNER ===== */
.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  padding: 10px 0;
  text-align: center;
}

.top-banner p {
  font-size: 0.82rem;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1.4;
  margin: 0;
}

.top-banner strong {
  font-weight: 700;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: var(--banner-height, 38px);
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(12, 10, 8, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(12, 10, 8, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-color);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.nav__logo span {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__list {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  transition: width var(--transition);
  border-radius: 1px;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__toggle,
.nav__close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

.nav__toggle {
  flex-direction: column;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__close {
  font-size: 2rem;
  position: absolute;
  top: 20px;
  right: 24px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 10, 8, 0.82) 0%, rgba(12, 10, 8, 0.88) 50%, rgba(12, 10, 8, 0.97) 100%),
              url('../assets/hero-bg.png') center center / cover no-repeat;
}

.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(232, 200, 100, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(232, 200, 100, 0.5);
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.hero__content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero__title span {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__rotate {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}

.hero__rotate-word {
  display: inline-block;
  position: absolute;
  left: 0;
  right: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  filter: blur(4px);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  pointer-events: none;
}

.hero__rotate-word--active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.hero__rotate-word--out {
  opacity: 0;
  transform: translateY(-6px);
  filter: blur(4px);
}

.hero__description {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__pets-video {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.hero__pets-video video {
  width: 320px;
  display: block;
}

.hero__scroll {
  position: absolute;
  bottom: 200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color var(--transition);
}

.hero__scroll-link:hover {
  color: var(--text-secondary);
}

.hero__scroll-icon {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 3px;
  animation: scroll-bounce 1.5s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

/* ===== FEATURES SECTION ===== */
.discord-bar-fixed {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  background: #2b2d31;
  border-radius: 12px 0 0 12px;
  min-width: 80px;
  box-shadow: -2px 0 16px rgba(0,0,0,0.4);
}

.discord-bar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.discord-bar__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #5865F2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-bar__name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

.discord-bar__status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: #b5bac1;
}

.discord-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23a55a;
  display: inline-block;
}

.discord-bar__join {
  display: block;
  width: 100%;
  text-align: center;
  padding: 6px 12px;
  background: #5865F2;
  color: #fff;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.discord-bar__join:hover {
  background: #4752c4;
}

.features__intro {
  text-align: center;
  max-width: 600px;
  margin: -30px auto 40px;
  font-size: 1rem;
  line-height: 1.7;
}

.section--light .features__intro {
  color: var(--text-light-secondary);
}

/* ===== THEME SWITCHER ===== */
.theme-switcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.theme-switcher__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light-secondary);
}

.theme-switcher__dots {
  display: flex;
  gap: 14px;
}

.theme-switcher__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 0;
}

.theme-switcher__dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.theme-switcher__dot:hover {
  transform: scale(1.15);
}

.theme-switcher__dot--active::after {
  border-color: var(--dot-ring);
}

.theme-switcher__dot--white {
  --dot-ring: #999;
  background: linear-gradient(135deg, #f5f3f0, #e0ddd8);
  border-color: rgba(0, 0, 0, 0.15);
}

.theme-switcher__dot--warm {
  --dot-ring: #e8843a;
  background: linear-gradient(135deg, #3a1e0a, #e8843a);
}

.theme-switcher__dot--cool {
  --dot-ring: #3b82f6;
  background: linear-gradient(135deg, #1a2a4a, #2563eb);
}

.theme-switcher__dot--green {
  --dot-ring: #22c55e;
  background: linear-gradient(135deg, #142e1a, #16a34a);
}

.theme-switcher__dot--purple {
  --dot-ring: #8b5cf6;
  background: linear-gradient(135deg, #1e1535, #7c3aed);
}

.theme-switcher__dot--dark {
  --dot-ring: #d4a03a;
  background: linear-gradient(135deg, #1a1714, #3a3228);
  border-color: rgba(212, 160, 58, 0.3);
}

/* ===== COLOR THEMES ===== */
.features {
  transition: background-color 0.5s ease, color 0.5s ease;
}

.features .feature-block,
.features .feature-block--alt,
.features .slide__race-card,
.features .slide__bio-card,
.features .slide__bio-card-header,
.features .empire-info,
.features .empire-atlas,
.features .slide__feat-card,
.features .slide__pet-table-card,
.features .slide__horse-stage,
.features .slide__horse-special,
.features .pet-stage-btn,
.features .pet-detail,
.features .pet-detail__item,
.features .inv-window,
.features .inv-slot,
.features .slide__tag,
.features .slide__table th,
.features .slide__table td,
.features .slide__balance-box,
.features .slide__screenshot,
.features .section__title,
.features .section__subtitle,
.features .slide__title,
.features .slide__desc,
.features .features__intro,
.features .theme-switcher__label {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

/* White = default light theme */
.features[data-color-theme="white"] {
  --bg-light: #f5f3f0;
  --bg-light-alt: #eae7e2;
  --bg-light-card: #ffffff;
  --bg-light-card-hover: #faf9f7;
  --text-light-primary: #1a1714;
  --text-light-secondary: #4a4038;
  --text-light-muted: #9a9288;
  --border-light: rgba(0, 0, 0, 0.1);
  --accent-start: #c41e1e;
  --accent-mid: #d4872a;
  --accent-end: #e8b84a;
  --accent-glow: rgba(196, 30, 30, 0.15);
  --gold: #b8860b;
  --gold-light: #d4a03a;
  --border-color: rgba(0, 0, 0, 0.08);
  background: #f5f3f0;
}

/* Warm / Orange theme */
.features[data-color-theme="warm"] {
  --bg-light: #2e1a0a;
  --bg-light-alt: #241408;
  --bg-light-card: #3a2010;
  --bg-light-card-hover: #442818;
  --text-light-primary: #ffffff;
  --text-light-secondary: #d4a878;
  --text-light-muted: #9a7450;
  --border-light: rgba(232, 132, 58, 0.15);
  --accent-start: #e8843a;
  --accent-mid: #f0a050;
  --accent-end: #f5c478;
  --accent-glow: rgba(232, 132, 58, 0.4);
  --gold: #f0a050;
  --gold-light: #f5c478;
  --border-color: rgba(232, 132, 58, 0.12);
  background: #2e1a0a;
}

/* Cool theme */
.features[data-color-theme="cool"] {
  --bg-light: #1a2a4a;
  --bg-light-alt: #152240;
  --bg-light-card: #1e3258;
  --bg-light-card-hover: #243a62;
  --text-light-primary: #ffffff;
  --text-light-secondary: #8aadd4;
  --text-light-muted: #5a80aa;
  --border-light: rgba(96, 165, 250, 0.15);
  --accent-start: #2563eb;
  --accent-mid: #3b82f6;
  --accent-end: #60a5fa;
  --accent-glow: rgba(37, 99, 235, 0.4);
  --gold: #60a5fa;
  --gold-light: #93c5fd;
  --border-color: rgba(96, 165, 250, 0.12);
  background: #1a2a4a;
}

/* Green theme */
.features[data-color-theme="green"] {
  --bg-light: #142e1a;
  --bg-light-alt: #102614;
  --bg-light-card: #1a3820;
  --bg-light-card-hover: #204228;
  --text-light-primary: #ffffff;
  --text-light-secondary: #82c492;
  --text-light-muted: #4e9060;
  --border-light: rgba(74, 222, 128, 0.12);
  --accent-start: #16a34a;
  --accent-mid: #22c55e;
  --accent-end: #4ade80;
  --accent-glow: rgba(22, 163, 74, 0.4);
  --gold: #4ade80;
  --gold-light: #86efac;
  --border-color: rgba(74, 222, 128, 0.1);
  background: #142e1a;
}

/* Purple theme */
.features[data-color-theme="purple"] {
  --bg-light: #1e1535;
  --bg-light-alt: #18102c;
  --bg-light-card: #261c42;
  --bg-light-card-hover: #2e224e;
  --text-light-primary: #ffffff;
  --text-light-secondary: #b098d4;
  --text-light-muted: #7e68a8;
  --border-light: rgba(167, 139, 250, 0.12);
  --accent-start: #7c3aed;
  --accent-mid: #8b5cf6;
  --accent-end: #a78bfa;
  --accent-glow: rgba(124, 58, 237, 0.4);
  --gold: #a78bfa;
  --gold-light: #c4b5fd;
  --border-color: rgba(167, 139, 250, 0.1);
  background: #1e1535;
}

/* Dark theme */
.features[data-color-theme="dark"] {
  --bg-light: #1a1714;
  --bg-light-alt: #141210;
  --bg-light-card: #252018;
  --bg-light-card-hover: #2e2820;
  --text-light-primary: #ffffff;
  --text-light-secondary: #c4b89a;
  --text-light-muted: #8a7e68;
  --border-light: rgba(212, 160, 58, 0.1);
  --accent-start: #c41e1e;
  --accent-mid: #d4872a;
  --accent-end: #e8b84a;
  --accent-glow: rgba(196, 30, 30, 0.3);
  --gold: #d4a03a;
  --gold-light: #e8c868;
  --border-color: rgba(212, 160, 58, 0.08);
  background: #1a1714;
}

/* ===== FEATURE BLOCKS (stacked sections) ===== */
.feature-block {
  padding: 60px 0;
  border-top: 1px solid var(--border-light);
}

.feature-block:first-of-type {
  border-top: none;
}

.feature-block--alt {
  background: var(--bg-light-alt);
}

/* --- Slide Layout --- */
.slide {
  max-width: 1200px;
  margin: 0 auto;
}

.slide__header {
  text-align: center;
  margin-bottom: 40px;
}

.slide__kanji {
  display: inline-block;
  font-size: 2rem;
  width: 64px;
  height: 64px;
  line-height: 64px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: rgba(196, 30, 30, 0.07);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 1px solid rgba(196, 30, 30, 0.1);
}

.slide__title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section--light .slide__title {
  color: var(--text-light-primary);
}

.slide__desc {
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.7;
}

.section--light .slide__desc {
  color: var(--text-light-secondary);
}

.hl {
  color: var(--accent-start);
  font-weight: 600;
}

.hl-green {
  color: #2ecc71;
  font-weight: 600;
}

.hl-red {
  color: var(--accent-start);
  font-weight: 600;
}

/* --- Races Grid (Slide 1) --- */
.slide__races-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.slide__race-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.slide__race-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(196, 30, 30, 0.2);
}

.slide__race-img-wrap {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.slide__race-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 30, 30, 0.15) 0%, transparent 70%);
}

/* Race render image (replaces old placeholder) */
.slide__race-render {
  position: relative;
  z-index: 1;
  height: 140px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
  transition: transform var(--transition);
}

.slide__race-card:hover .slide__race-render {
  transform: scale(1.05);
}

/* Race skill icons row */
.slide__race-skills {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}

.slide__race-skills img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: var(--bg-light-alt);
  padding: 2px;
  transition: all var(--transition);
}

.slide__race-skills img:hover {
  border-color: var(--accent-start);
  transform: scale(1.1);
}

.slide__race-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light-primary);
  margin-bottom: 4px;
}

.slide__race-type {
  font-size: 0.8rem;
  color: var(--text-light-secondary);
}


.slide__balance-box {
  text-align: center;
  padding: 14px 24px;
  background: rgba(46, 204, 113, 0.06);
  border: 1px solid rgba(46, 204, 113, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-light-secondary);
}

/* --- Two Column Layout --- */
.slide__two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.slide__two-col .slide__screenshot {
  flex-shrink: 0;
}

.slide__info-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.slide__info-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light-secondary);
}

.slide__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slide__tag {
  display: inline-block;
  padding: 8px 18px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light-primary);
  transition: all var(--transition);
}

.slide__tag:hover {
  border-color: var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* --- Blessings Compact Grid --- */
.slide__blessings-compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.slide__blessing-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-align: center;
  min-width: 100px;
  transition: all var(--transition);
}

.slide__blessing-mini:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: rgba(196, 30, 30, 0.2);
}

.slide__blessing-icon-sm {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.slide__blessing-mini span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light-primary);
}

/* --- Horse Mini Stages (inline) --- */
.slide__horse-mini-stages {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.slide__horse-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.slide__horse-mini img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.slide__horse-mini span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light-primary);
}

.slide__mini-arrow {
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 700;
}

.slide__info-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slide__panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light-primary);
  margin-bottom: 4px;
}

/* Items Grid */
.slide__items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.slide__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-light-primary);
  cursor: default;
  transition: all var(--transition);
  position: relative;
}

.slide__item:hover {
  border-color: rgba(196, 30, 30, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.slide__item-icon {
  font-size: 1.1rem;
}

.slide__item-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Table */
.slide__table-wrap {
  overflow-x: auto;
}

.slide__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.slide__table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-light-primary);
  border-bottom: 2px solid var(--border-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slide__table td {
  padding: 10px 14px;
  color: var(--text-light-secondary);
  border-bottom: 1px solid var(--border-light);
}

/* UI Window Preview */
.slide__preview-panel {
  display: flex;
  align-items: flex-start;
}

.slide__ui-window {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.slide__ui-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-light-alt);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light-secondary);
  border-bottom: 1px solid var(--border-light);
}

.slide__ui-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-start);
  display: inline-block;
}

.slide__ui-body {
  background: var(--bg-light-card);
}

/* --- Screenshot container --- */
.slide__screenshot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: relative;
}

.slide__screenshot img {
  width: 100%;
  display: block;
}

.slide__screenshot--sm {
  border-radius: var(--radius-sm);
  text-align: center;
}

.slide__screenshot--sm span {
  display: block;
  padding: 6px 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light-secondary);
  background: var(--bg-light-card);
}

/* --- UI Showcase (Core Systems grid) --- */
.slide__ui-showcase {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slide__ui-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.slide__ui-card {
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.slide__ui-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: rgba(196, 30, 30, 0.2);
}

.slide__ui-card .slide__screenshot {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.slide__ui-card h4 {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light-primary);
  text-align: center;
  border-top: 1px solid var(--border-light);
}

/* --- Feature cards (Companions) --- */
.slide__feat-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slide__feat-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.slide__feat-card:hover {
  border-color: rgba(196, 30, 30, 0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.slide__feat-kanji {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border-radius: var(--radius-sm);
  background: rgba(196, 30, 30, 0.06);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 1px solid rgba(196, 30, 30, 0.1);
}

.slide__feat-numeral {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.slide__feat-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}

.slide__feat-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-light-primary);
  margin-bottom: 2px;
}

.slide__feat-card p {
  font-size: 0.82rem;
  color: var(--text-light-secondary);
  line-height: 1.5;
}

/* --- Horse Stages --- */
.slide__horse-stages {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.slide__horse-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  flex: 1;
  min-width: 0;
}

.slide__horse-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.slide__horse-card strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-light-primary);
}

.slide__horse-card span {
  font-size: 0.72rem;
  color: var(--text-light-secondary);
}

.slide__arrow {
  font-size: 1.2rem;
  color: var(--text-light-muted);
  flex-shrink: 0;
}

/* --- Podium (Rankings) --- */
.slide__podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.slide__podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-align: center;
  flex: 1;
}

.slide__podium--1st {
  padding: 24px 20px;
  border-color: rgba(212, 160, 58, 0.3);
  box-shadow: 0 4px 16px rgba(212, 160, 58, 0.1);
}

.slide__podium--2nd {
  padding: 18px 16px;
}

.slide__podium--3rd {
  padding: 14px 16px;
}

.slide__medal {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.slide__podium-item span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light-primary);
}

.slide__podium-item small {
  font-size: 0.72rem;
  color: var(--text-light-secondary);
}

/* --- Ranking Categories --- */
.slide__ranking-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slide__rank-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light-primary);
  transition: all var(--transition);
}

.slide__rank-cat:hover {
  border-color: rgba(196, 30, 30, 0.2);
}

.slide__rank-cat img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* --- PvP Previews --- */
.slide__pvp-previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

/* --- Dungeon Thumbnails --- */
.slide__dg-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.slide__dungeon-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light-primary);
}

.slide__dungeon-item span {
  font-size: 0.78rem;
  color: var(--text-light-secondary);
}

/* --- Sash Tiers --- */
.slide__sash-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.slide__sash-tier {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.slide__sash-tier:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.tier--common { border-left: 3px solid #a0a0a0; }
.tier--rare { border-left: 3px solid #3498db; }
.tier--epic { border-left: 3px solid #9b59b6; }
.tier--legendary { border-left: 3px solid #e8b84a; }

.slide__sash-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.slide__sash-tier strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light-primary);
}

.slide__sash-tier span {
  font-size: 0.75rem;
  color: var(--text-light-secondary);
}

/* --- Costume Row --- */
.slide__costume-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.slide__costume-piece {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  flex: 1;
  text-align: center;
  transition: all var(--transition);
}

.slide__costume-piece:hover {
  border-color: rgba(196, 30, 30, 0.2);
}

.slide__costume-piece img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.slide__costume-piece span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light-primary);
}

/* Costume feature tags */
.slide__costume-feats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.slide__costume-feats > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light-primary);
}

.slide__cfeat-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* --- Compare Grid (Graphics) --- */
.slide__compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.slide__compare-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  background: rgba(46, 204, 113, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
}

.slide__compare-label--orig {
  background: rgba(231, 76, 60, 0.9);
}

/* --- Events Row --- */
.slide__events-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.slide__event {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  min-width: 80px;
  text-align: center;
  transition: all var(--transition);
}

.slide__event:hover {
  border-color: rgba(196, 30, 30, 0.2);
  transform: translateY(-2px);
}

.slide__event-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.slide__event span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light-primary);
}

/* --- Evolution Groups & Chains --- */
.slide__evo-group {
  margin-bottom: 20px;
}

.slide__evo-group:last-child {
  margin-bottom: 0;
}

.slide__evo-group-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light-secondary);
  margin-bottom: 12px;
  padding-left: 4px;
}

.slide__evo-chain {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.slide__evo-chain--wrap {
  flex-wrap: wrap;
}

.slide__evo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  min-width: 100px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  flex: 1;
}

.slide__evo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.slide__evo-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.slide__evo-item span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light-primary);
}

/* Rarity border colors */
.evo--common { border-bottom: 3px solid #a0a0a0; }
.evo--rare { border-bottom: 3px solid #3498db; }
.evo--epic { border-bottom: 3px solid #9b59b6; }
.evo--legendary { border-bottom: 3px solid #e8b84a; }

.evo--legendary::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(232,184,74,0.15), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.slide__evo-arrow {
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  font-weight: 700;
}

/* --- Gem Row (Alchemy) --- */
.slide__gem-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.slide__gem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  min-width: 72px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.slide__gem::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 50% 30%, var(--gem-clr, transparent) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}

.slide__gem:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--gem-clr, #888) 25%, transparent);
  border-color: var(--gem-clr, var(--border-light));
}

.slide__gem img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px color-mix(in srgb, var(--gem-clr, #888) 40%, transparent));
}

.slide__gem span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light-primary);
}

/* --- Biologist Tables --- */
.slide__bio-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.slide__bio-card {
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.slide__bio-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-light-alt);
  border-bottom: 1px solid var(--border-light);
}

.slide__bio-card-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light-primary);
}

.slide__bio-card-header span {
  color: var(--gold);
  font-size: 1.2rem;
}

.slide__bio-card .slide__table-wrap {
  padding: 0;
}

.slide__bio-card .slide__table th,
.slide__bio-card .slide__table td {
  padding: 8px 12px;
}

.slide__bio-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.slide__bio-pair {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.slide__bio-pair img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.slide__bio-pair span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light-secondary);
}

/* --- Bio Table Card (fancy design) --- */
.bio-table-card {
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(212, 160, 58, 0.08);
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.bio-table-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-light-alt);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

.bio-table-header h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  transition: color 0.5s ease;
}

.bio-diamond {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.6;
}

.bio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  table-layout: fixed;
}

.bio-table col:nth-child(1) { width: 10%; }
.bio-table col:nth-child(2) { width: 28%; }
.bio-table col:nth-child(3) { width: 18%; }
.bio-table col:nth-child(4) { width: 44%; }

.bio-table th {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  padding: 6px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-light-alt);
  white-space: nowrap;
  font-weight: 700;
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

.bio-table td {
  padding: 5px 8px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-light-secondary);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.bio-table tbody tr:hover td {
  background: var(--bg-light-alt);
}

.bio-table tbody tr:last-child td {
  border-bottom: none;
}

.bio-reward {
  color: #89b88d !important;
  line-height: 1.4;
  font-weight: 500;
}

.bio-items-cell {
  white-space: nowrap;
}

.bio-item-pair {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
}

.bio-item-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
  vertical-align: middle;
}

/* --- Pet Stage Icon Grid --- */
.pet-stage-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 24px auto;
}

.pet-stage-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  padding: 12px 8px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-family);
  transition: all 0.3s ease;
}

.pet-stage-btn:hover {
  border-color: var(--gold);
}

.pet-stage-btn--active {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(212, 160, 58, 0.25);
}

.pet-stage-btn__kanji {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pet-stage-btn__name {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light-secondary);
}

.pet-stage-btn--active .pet-stage-btn__name {
  color: var(--gold);
}

.pet-detail {
  max-width: 500px;
  margin: 20px auto 0;
  padding: 20px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(212, 160, 58, 0.08);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.pet-detail--entering {
  opacity: 0;
  transform: translateY(6px);
}

.pet-detail__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pet-detail__header img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.pet-detail__header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light-primary);
  margin: 0;
}

.pet-detail__badge {
  margin-left: auto;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50px;
  background: rgba(212, 160, 58, 0.1);
  color: var(--gold);
  letter-spacing: 0.5px;
}

.pet-detail__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.82rem;
}

.pet-detail__row:last-of-type {
  border-bottom: none;
}

.pet-detail__label {
  color: var(--text-light-secondary);
  font-weight: 500;
}

.pet-detail__value {
  color: var(--text-light-primary);
  font-weight: 600;
}

.pet-detail__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.pet-detail__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-light-alt);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light-primary);
}

.pet-detail__item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

@media (max-width: 768px) {
  .pet-stage-grid {
    flex-wrap: wrap;
  }
  .pet-detail {
    max-width: 100%;
  }
}

.bio-item-icon-sm {
  width: 16px;
  height: 16px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  vertical-align: middle;
  margin-right: 2px;
}

.bio-qty {
  font-size: 0.68rem;
  color: var(--gold);
  opacity: 0.7;
  font-weight: 600;
}

/* --- Path Badges (Metin2 style, theme-aware) --- */
.path-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 2px;
  border: 1px solid var(--border-light);
  background: var(--bg-light-alt);
  color: var(--gold);
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

/* --- Section BG --- */
.section-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-light);
  opacity: 0.92;
  z-index: 0;
}

.section-bg > * {
  position: relative;
  z-index: 1;
}

/* --- Race Section BG Separator --- */
.race-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  padding: 40px 32px;
}

.race-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-light);
  opacity: 0.92;
  z-index: 0;
}

.race-section > * {
  position: relative;
  z-index: 1;
}

/* --- Race Rows (alternating layout) --- */
.race-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 0;
}

.race-row--reverse {
  grid-template-columns: 1fr 1fr;
}

.race-row--reverse .race-row__render {
  order: 2;
}

.race-row--reverse .bio-table-card {
  order: 1;
}

.race-row__render {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.race-row .slide__race-img-wrap {
  height: 100%;
  margin-bottom: 0;
}

.race-row .slide__race-render {
  height: 320px;
}

.race-row .bio-table-card .slide__table-wrap {
  max-height: 320px;
  overflow-y: auto;
}

.race-row .bio-table-card .slide__table-wrap::-webkit-scrollbar {
  width: 5px;
}

.race-row .bio-table-card .slide__table-wrap::-webkit-scrollbar-track {
  background: var(--bg-light-alt);
}

.race-row .bio-table-card .slide__table-wrap::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
  opacity: 0.5;
}

.race-row__name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light-primary);
  margin-top: 12px;
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .race-section {
    padding: 24px 16px;
    margin-bottom: 32px;
  }

  .race-row,
  .race-row--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .race-row--reverse .race-row__render {
    order: -1;
  }

  .race-row--reverse .bio-table-card {
    order: 0;
  }

  .race-row__render {
    margin-bottom: 0;
  }
}

/* --- Choose Your Kingdom (Empire Select) --- */
.empire-select {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.empire-atlas {
  position: relative;
  width: 495px;
  max-width: 100%;
  flex-shrink: 0;
}

.empire-atlas__map {
  width: 100%;
  display: block;
  filter: brightness(0.85) saturate(0.9);
}

/* Empire area overlays - positioned from client source selectempirewindow.py */
.empire-area {
  position: absolute;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, filter 0.3s ease;
  pointer-events: all;
}

.empire-area:hover,
.empire-area--active {
  opacity: 1;
  filter: brightness(1.2) saturate(1.3);
}

.empire-area--a {
  left: 8.7%;
  top: 56.3%;
  width: 63.2%;
}

.empire-area--b {
  left: 3.4%;
  top: 4.5%;
  width: 38.4%;
}

.empire-area--c {
  left: 63.4%;
  top: 9.2%;
  width: 34.1%;
}

/* Flags on map */
.empire-mapflag {
  position: absolute;
  pointer-events: none;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.empire-mapflag--a {
  left: 33.7%;
  top: 65.8%;
  width: 16.2%;
}

.empire-mapflag--b {
  left: 14.1%;
  top: 11.8%;
  width: 16%;
}

.empire-mapflag--c {
  left: 72.1%;
  top: 21.8%;
  width: 16.2%;
}

.empire-area:hover ~ .empire-mapflag,
.empire-area--active ~ .empire-mapflag {
  transform: scale(1.1);
}

/* Dragon navigation buttons (from IntroSelect.dds) */
.empire-nav {
  position: absolute;
  bottom: -6px;
  width: 140px;
  height: 32px;
  border: none;
  cursor: pointer;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: transparent;
  transition: transform 0.15s ease;
}

.empire-nav:hover {
  transform: scale(1.05);
}

.empire-nav--left {
  left: calc(50% - 150px);
  background-image: url('../assets/pres-assets/ui/empire/dragon_left_norm.png');
}

.empire-nav--left:hover {
  background-image: url('../assets/pres-assets/ui/empire/dragon_left_hover.png');
}

.empire-nav--left:active {
  background-image: url('../assets/pres-assets/ui/empire/dragon_left_click.png');
}

.empire-nav--right {
  left: calc(50% + 10px);
  background-image: url('../assets/pres-assets/ui/empire/dragon_right_norm.png');
}

.empire-nav--right:hover {
  background-image: url('../assets/pres-assets/ui/empire/dragon_right_hover.png');
}

.empire-nav--right:active {
  background-image: url('../assets/pres-assets/ui/empire/dragon_right_click.png');
}

/* Empire Info Panel */
.empire-info {
  width: 250px;
  background: url('../assets/pres-assets/ui/board/board_base.png') repeat center #0e0c0a;
  border: 32px solid transparent;
  border-image: url('../assets/pres-assets/ui/board/board_border.png') 32 round;
  padding: 10px 14px 14px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.empire-info__flag {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.empire-info__flag img {
  height: 100%;
  object-fit: contain;
}

.empire-info__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #d4c8a0;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.empire-info__desc {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #9a9080;
  margin-bottom: 14px;
}

.empire-select-btn {
  display: inline-block;
  width: 88px;
  height: 21px;
  background: url('../assets/pres-assets/ui/empire/large_btn_norm.png') center/100% 100% no-repeat;
  color: #d4c8a0;
  font-family: var(--font-family);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
  padding: 0;
}

.empire-select-btn:hover {
  background-image: url('../assets/pres-assets/ui/empire/large_btn_hover.png');
  color: #fff;
  transform: scale(1.05);
}

.empire-select-btn:active {
  background-image: url('../assets/pres-assets/ui/empire/large_btn_click.png');
}

/* --- Pet Feature Grid --- */
.slide__pet-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

/* --- Pet Tables Side by Side --- */
.slide__pet-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.slide__pet-table-card {
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
}

.slide__pet-table-card .slide__panel-title {
  margin-bottom: 12px;
}

.slide__pet-table-card .slide__table {
  width: 100%;
}

/* --- Horse Stages Full --- */
.slide__horse-stages-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.slide__horse-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 20px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-align: center;
  flex: 1;
  max-width: 280px;
  transition: all var(--transition);
}

.slide__horse-stage:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: rgba(196, 30, 30, 0.2);
}

.slide__horse-stage-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.slide__horse-rank {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slide__horse-stage h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light-primary);
}

.slide__horse-lvl {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
}

.slide__horse-stage > p {
  font-size: 0.8rem;
  color: var(--text-light-secondary);
}

.slide__horse-task {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

.slide__horse-task-label {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(196, 30, 30, 0.08);
  color: var(--accent-start);
  border-radius: 50px;
  margin-bottom: 4px;
}

.slide__horse-task p {
  font-size: 0.78rem;
  color: var(--text-light-secondary);
}

/* Horse Special Items */
.slide__horse-specials {
  display: flex;
  gap: 12px;
}

.slide__horse-special {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px;
  background: var(--bg-light-alt);
  border-radius: var(--radius-sm);
  text-align: center;
  flex: 1;
}

.slide__horse-special img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.slide__horse-special-val {
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slide__horse-special p {
  font-size: 0.72rem;
  color: var(--text-light-secondary);
}

/* Systems Grid (Core Systems, etc.) */
.slide__systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.slide__systems-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.slide__system-card {
  padding: 24px 20px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.slide__system-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  border-color: rgba(196, 30, 30, 0.2);
}

.slide__system-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.slide__system-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light-primary);
  margin-bottom: 8px;
}

.slide__system-card p {
  font-size: 0.83rem;
  color: var(--text-light-secondary);
  line-height: 1.6;
}

/* Mock Ranking List */
.slide__mock-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slide__mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: var(--bg-light-alt);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-light-secondary);
}

.slide__rank {
  font-weight: 700;
  min-width: 28px;
}

.slide__rank.gold { color: #d4a03a; }
.slide__rank.silver { color: #a0a0a0; }
.slide__rank.bronze { color: #cd7f32; }

/* Dungeon List */
.slide__dungeon-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slide__dungeon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.slide__dungeon-item:hover {
  border-color: rgba(196, 30, 30, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.slide__dungeon-diff {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 50px;
  min-width: 60px;
  text-align: center;
}

.diff--easy { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.diff--medium { background: rgba(241, 196, 15, 0.1); color: #f1c40f; }
.diff--hard { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }
.diff--mythic { background: rgba(155, 89, 182, 0.1); color: #9b59b6; }

.slide__dungeon-item div {
  flex: 1;
  min-width: 0;
}

.slide__dungeon-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light-primary);
}

.slide__dungeon-lvl {
  font-size: 0.8rem;
  color: var(--text-light-secondary);
}

/* Companion Cards */
.slide__companion-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.slide__companion-card:hover {
  border-color: rgba(196, 30, 30, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.slide__companion-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.slide__companion-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light-primary);
  margin-bottom: 6px;
}

.slide__companion-card p {
  font-size: 0.85rem;
  color: var(--text-light-secondary);
  line-height: 1.6;
}

/* Feature Check List */
.slide__feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slide__feature-item {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.slide__feature-item:hover {
  border-color: rgba(196, 30, 30, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.slide__feature-check {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  font-weight: 700;
  flex-shrink: 0;
}

.slide__feature-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light-primary);
  margin-bottom: 4px;
}

.slide__feature-item p {
  font-size: 0.83rem;
  color: var(--text-light-secondary);
  line-height: 1.5;
}

/* Progress Bar (Life Skills) */
.slide__progress-bar {
  margin-top: 12px;
  height: 22px;
  background: var(--bg-light-alt);
  border-radius: 11px;
  position: relative;
  overflow: hidden;
}

.slide__progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  border-radius: 11px;
  transition: width 0.8s ease;
}

.slide__progress-bar span {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light-secondary);
}


/* --- Beginning Inventory System (Real Game UI) --- */
.inv-layout {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Window frame - real MT2 board from git */
.inv-window {
  background: url('../assets/pres-assets/ui/board/board_base.png') repeat center #0e0c0a;
  border: 16px solid transparent;
  border-image: url('../assets/pres-assets/ui/board/board_border.png') 32 round;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.inv-window__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4px 12px;
  margin: -4px -4px 0;
  background: linear-gradient(180deg, rgba(42, 34, 24, 0.6), rgba(26, 22, 16, 0.6));
  border-bottom: 1px solid rgba(58, 48, 32, 0.5);
  font-size: 0.75rem;
  font-weight: 600;
  color: #b8a880;
  letter-spacing: 1px;
}

.inv-window__x {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #5a4a38;
  cursor: default;
}

/* Equipment Panel - uses equip_bg_noRing from git (155x187) scaled to 1.5x */
.inv-equip {
  position: relative;
  width: 225px;
  height: 273px;
  background: url('../assets/pres-assets/ui/equip_bg_noRing.png') center/100% 100% no-repeat #0d0b09;
  padding: 0;
}

.inv-eq-slot {
  position: absolute;
  width: 48px;
  height: 48px;
  background: url('../assets/pres-assets/ui/slot32.png') center/100% 100% no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: box-shadow 0.25s ease;
  z-index: 1;
}

/* 32x64 slot (Body Armor) */
.inv-eq-slot--64 {
  height: 96px;
  background-image: url('../assets/pres-assets/ui/slot64.png');
}

/* 32x96 slot (Weapon) */
.inv-eq-slot--96 {
  height: 144px;
  background-image: url('../assets/pres-assets/ui/slot96.png');
}

/* Empty equipment slots (no item inside) */
.inv-eq-slot--empty {
  opacity: 0.4;
}

.inv-eq-slot:hover {
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.4);
  z-index: 2;
}

.inv-eq-slot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7));
}

.inv-eq-plus {
  position: absolute;
  bottom: 0;
  right: 1px;
  font-size: 0.55rem;
  font-weight: 800;
  color: #2ecc71;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* Metin2-style Item Tooltip (JS-driven) */
.m2-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  min-width: 180px;
  max-width: 260px;
  background: linear-gradient(180deg, rgba(20, 16, 10, 0.97), rgba(10, 8, 5, 0.98));
  border: 1px solid #4a3a20;
  box-shadow: 0 0 1px #000, 0 4px 20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(100, 80, 40, 0.15);
  padding: 8px 10px;
  font-family: var(--font-family);
  font-size: 0.7rem;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.m2-tooltip.active { opacity: 1; }
.m2-tooltip__name {
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
  text-shadow: 0 0 6px rgba(0,0,0,0.8);
}
.m2-tooltip__sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, #4a3a20, transparent);
  margin: 4px 0;
}
.m2-tooltip__row {
  display: flex;
  justify-content: space-between;
  color: #b8a880;
  padding: 1px 0;
}
.m2-tooltip__row span:last-child { color: #ddd; }
.m2-tooltip__bonus {
  color: #58d68d;
  padding: 1px 0;
}
.m2-tooltip__socket {
  color: #85c1e9;
  padding: 1px 0;
}
.m2-tooltip__upgrade {
  text-align: center;
  color: #c9a227;
  font-weight: 600;
  font-size: 0.65rem;
  margin-top: 3px;
}
/* Name colors by rarity */
.m2-tooltip__name--normal { color: #ddd; }
.m2-tooltip__name--green { color: #58d68d; }
.m2-tooltip__name--blue { color: #5dade2; }
.m2-tooltip__name--red { color: #ec7063; }
.m2-tooltip__name--gold { color: #f4d03f; }
.m2-tooltip__name--purple { color: #bb8fce; }

.inv-window--equip {
  width: 257px;
  align-self: flex-start;
}

.inv-eq-footer {
  text-align: center;
  padding: 6px 6px;
  border-top: 1px solid rgba(58, 48, 32, 0.4);
}

.inv-eq-badge {
  display: inline-block;
  padding: 2px 10px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 50px;
  margin-bottom: 4px;
}

.inv-eq-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 6px;
}

.inv-eq-perks span {
  font-size: 0.5rem;
  color: #58d68d;
  font-weight: 600;
  white-space: nowrap;
}

.inv-eq-perks span::before {
  content: '\2714 ';
  font-size: 0.45rem;
}

/* Inventory Bag */
.inv-window--bag {
  width: 257px;
  align-self: flex-start;
}

.inv-bag {
  padding: 4px;
}

.inv-bag__pages {
  display: flex;
  gap: 0;
  margin-bottom: 2px;
}

.inv-page-btn {
  flex: 1;
  height: 19px;
  background: url('../assets/pres-assets/ui/tab_norm.png') center/100% 100% no-repeat;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 0.65rem;
  font-weight: 700;
  color: #8a7a60;
  padding: 0;
  transition: color 0.15s ease;
}

.inv-page-btn:hover {
  background-image: url('../assets/pres-assets/ui/tab_hover.png');
  color: #c9a227;
}

.inv-page-btn--active {
  background-image: url('../assets/pres-assets/ui/tab_clicked.png');
  color: #c9a227;
}

.inv-bag__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.inv-bag__grid--entering {
  opacity: 0;
  transform: translateY(4px);
}

/* Inventory Slot - uses real game slot texture (slot_32x32.tga converted) */
.inv-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: url('../assets/pres-assets/ui/slot32.png') center/100% 100% no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: box-shadow 0.2s ease;
  overflow: hidden;
}

.inv-slot--filled:hover {
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.3);
}

.inv-slot__icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

.inv-slot__name {
  font-size: 0.42rem;
  font-weight: 600;
  color: #8a7a68;
  text-align: center;
  line-height: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.inv-slot__qty {
  position: absolute;
  bottom: 1px;
  right: 2px;
  font-size: 0.5rem;
  font-weight: 700;
  color: #c9a227;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.9);
}

.inv-slot__plus {
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 0.48rem;
  font-weight: 800;
  color: #2ecc71;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* Old CSS tooltip removed - now using JS Metin2-style tooltip */

@media (max-width: 768px) {
  .inv-layout {
    flex-direction: column;
    align-items: center;
  }

  .inv-window--equip,
  .inv-window--bag {
    width: calc(100vw - 56px);
    max-width: 257px;
  }

  .inv-equip {
    width: 100%;
    height: auto;
    aspect-ratio: 225 / 273;
  }

  .empire-select {
    flex-direction: column;
    align-items: center;
  }

  .empire-atlas {
    width: 100%;
    max-width: 400px;
  }

  .empire-nav {
    width: 100px;
    height: 24px;
  }

  .empire-nav--left {
    left: calc(50% - 110px);
  }

  .empire-nav--right {
    left: calc(50% + 10px);
  }

  .empire-info {
    width: calc(100vw - 56px);
    max-width: 360px;
    border-width: 20px;
  }
}

/* ===== PORTFOLIO ===== */
.portfolio-slider-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.portfolio-slider {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-slider:hover {
  border-color: rgba(212, 160, 58, 0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.portfolio-slider__track {
  display: flex;
  transition: transform 0.5s ease;
}

.portfolio-slider__slide {
  min-width: 100%;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio-slide__num {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 4px;
}

.portfolio-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-card__tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 50px;
  background: rgba(212, 160, 58, 0.1);
  color: var(--gold);
}

.portfolio-card__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.portfolio-card__list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portfolio-card__list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.portfolio-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
}

.portfolio-slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.portfolio-slider__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-slider__arrow:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.portfolio-slider__dots {
  display: flex;
  gap: 8px;
}

.portfolio-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.portfolio-slider__dot--active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .portfolio-card--wide {
    padding: 24px;
  }

  .portfolio-slider__slide {
    min-height: 220px;
    padding: 20px;
  }

  .portfolio-slider__slide img {
    max-height: 200px;
  }

  .portfolio-card__info-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ===== ABOUT ===== */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__image {
  position: relative;
}

.about__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 6px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(3px);
}

.about__video {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  display: block;
}

.about__image-placeholder {
  aspect-ratio: 1;
  max-width: 400px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.about__content .section__subtitle,
.about__content .section__title {
  text-align: left;
}

.about__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Tech Stack Strip */
.about__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.about__tech-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(10px);
  animation: techFadeIn 0.5s ease forwards;
}

.about__tech-item:nth-child(1) { animation-delay: 0.1s; }
.about__tech-item:nth-child(2) { animation-delay: 0.25s; }
.about__tech-item:nth-child(3) { animation-delay: 0.4s; }
.about__tech-item:nth-child(4) { animation-delay: 0.55s; }
.about__tech-item:nth-child(5) { animation-delay: 0.7s; }

@keyframes techFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about__tech-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.about__tech-item:hover {
  border-color: var(--accent-start);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.about__stat {
  display: flex;
  flex-direction: column;
}

.about__stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ===== CONTACT ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.contact__card:hover {
  border-color: rgba(212, 160, 58, 0.3);
  background: var(--bg-card-hover);
}

.contact__card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(212, 160, 58, 0.1);
  color: var(--accent-start);
  flex-shrink: 0;
}

.contact__card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact__card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  resize: none;
}

.contact__input::placeholder {
  color: var(--text-muted);
}

.contact__input:focus {
  border-color: var(--accent-start);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  padding: 60px 0 0;
  border-top: 1px solid var(--border-color);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}

.footer__links h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== LIGHT SECTIONS ===== */
.section--light {
  background: var(--bg-light);
  color: var(--text-light-primary);
}

.section--light .section__title {
  color: var(--text-light-primary);
}

/* About in light section */
.section--light .about__image-placeholder {
  background: var(--bg-light-card);
  border-color: var(--border-light);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  color: var(--text-light-muted);
}

.section--light .about__content .section__title {
  color: var(--text-light-primary);
}

.section--light .about__text {
  color: var(--text-light-secondary);
}

.section--light .about__stat-label {
  color: var(--text-light-secondary);
}

/* Contact in light section */
.section--light .contact__card {
  background: var(--bg-light-card);
  border-color: var(--border-light);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.section--light .contact__card:hover {
  background: var(--bg-light-card-hover);
  border-color: rgba(196, 30, 30, 0.2);
}

.section--light .contact__card h4 {
  color: var(--text-light-primary);
}

.section--light .contact__card p {
  color: var(--text-light-secondary);
}

.section--light .contact__card-icon {
  background: rgba(196, 30, 30, 0.08);
}

.contact__card-icon--discord {
  background: rgba(88, 101, 242, 0.12) !important;
  color: #5865F2 !important;
}

.contact__card-icon--discord-white {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

.contact__card-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.contact__card-link:hover {
  opacity: 0.85;
}


.section--light .contact__input {
  background: var(--bg-light-card);
  border-color: var(--border-light);
  color: var(--text-light-primary);
}

.section--light .contact__input::placeholder {
  color: var(--text-light-muted);
}

.section--light .contact__input:focus {
  border-color: var(--accent-start);
}

/* Portfolio in light section */
.section--light .portfolio-slider {
  background: var(--bg-light-card);
  border-color: var(--border-light);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.section--light .portfolio-card__desc {
  color: var(--text-light-secondary);
}

.section--light .portfolio-card__list li {
  color: var(--text-light-secondary);
}

.section--light .portfolio-slider__arrow {
  background: var(--bg-light-card);
  border-color: var(--border-light);
  color: var(--text-light-secondary);
}

.section--light .portfolio-slider__dot {
  background: var(--border-light);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .slide__systems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slide__systems-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .slide__ui-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .slide__sash-tiers {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --banner-height: 52px;
  }

  .top-banner p {
    font-size: 0.75rem;
  }

  .section {
    padding: 70px 0;
  }

  .section__title {
    margin-bottom: 40px;
  }

  .discord-bar-fixed {
    padding: 10px 10px;
    min-width: 60px;
  }
  .discord-bar__name {
    font-size: 0.7rem;
  }

  /* Mobile nav */
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(20, 18, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 80px 40px 40px;
    transition: right var(--transition);
    z-index: 1001;
    border-left: 1px solid var(--border-color);
  }

  .nav__menu.open {
    right: 0;
  }

  .nav__close {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    gap: 24px;
  }

  .nav__link {
    font-size: 1.1rem;
  }

  /* Grids */
  .slide__races-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slide__two-col {
    grid-template-columns: 1fr;
  }

  .slide__systems-grid,
  .slide__systems-grid--3 {
    grid-template-columns: 1fr;
  }

  .slide__ui-row {
    grid-template-columns: 1fr;
  }

  .slide__sash-tiers {
    grid-template-columns: repeat(2, 1fr);
  }

  .slide__podium {
    flex-direction: column;
    align-items: stretch;
  }

  .slide__horse-stages {
    flex-direction: column;
  }

  .slide__arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .slide__pvp-previews {
    grid-template-columns: 1fr;
  }

  .slide__compare-grid {
    grid-template-columns: 1fr;
  }

  .slide__costume-row {
    flex-direction: column;
  }

  .slide__evo-chain {
    flex-wrap: wrap;
    justify-content: center;
  }

  .slide__evo-arrow {
    transform: rotate(90deg);
  }

  .slide__gem-row {
    justify-content: center;
  }

  .slide__bio-tables {
    grid-template-columns: 1fr;
  }

  .slide__pet-features {
    grid-template-columns: 1fr;
  }

  .slide__pet-tables {
    grid-template-columns: 1fr;
  }

  .slide__horse-stages-full {
    flex-direction: column;
    align-items: center;
  }

  .slide__horse-stages-full .slide__evo-arrow {
    transform: rotate(90deg);
  }

  .slide__horse-stage {
    max-width: 100%;
    width: 100%;
  }

  .slide__horse-specials {
    flex-direction: column;
  }


  .slide__horse-mini-stages {
    justify-content: center;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__image-placeholder {
    max-width: 280px;
    margin: 0 auto;
  }

  .about__content .section__subtitle,
  .about__content .section__title {
    text-align: center;
  }

  .about__stats {
    justify-content: center;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer__text {
    margin: 16px auto 0;
  }

  .hero__scroll {
    display: none;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .inv-window {
    border-width: 12px;
  }

  .empire-info {
    border-width: 16px;
  }

  .empire-nav {
    width: 80px;
    height: 20px;
  }

  .empire-nav--left {
    left: calc(50% - 88px);
  }

  .empire-nav--right {
    left: calc(50% + 8px);
  }
}
