/* =========================
   Presentation / Empire block
========================= */

:root {
    --font-family: "Inter", sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;

    --accent-start: #c41e1e;
    --accent-end: #e8b84a;
    --gold: #d4a03a;

    --bg-light: #f5f3f0;
    --bg-light-alt: #eae7e2;
    --bg-light-card: #ffffff;

    --text-light-primary: #1a1714;
    --text-light-secondary: #5c5549;
    --border-light: rgba(0, 0, 0, 0.08);
}

/* =========================
   Global block layout
========================= */

.feature-block {
    padding: 60px 0;
}

.feature-block:first-of-type {
    border-top: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
	margin-top: 60px;
}

.slide {
    max-width: 1200px;
    margin: 0 auto;
}

.slide__header {
    text-align: center;
    margin-bottom: 40px;
}

.slide__kanji {
    display: inline-block;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border: 1px solid rgba(196, 30, 30, 0.1);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    line-height: 64px;
    text-align: center;
}

.slide__title {
    margin: 0 0 12px;

    font-size: 1.8rem;
    font-weight: 800;
}

.slide__desc {
    max-width: 680px;
    margin: 0 auto;

    font-size: 0.95rem;
    line-height: 1.7;
}

.hl {
    color: var(--accent-start);
    font-weight: 600;
}

/* =========================
   Empire select layout
========================= */

.empire-select {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.empire-atlas::before {
  content: "";
  position: absolute;
  inset: -14px -14px -14px -14px;
  z-index: -1;

  border-radius: 28px;

  border: 1px solid rgba(125, 211, 252, 0.14);

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.35);
}


.empire-atlas {
  position: relative;
  width: 495px;
  max-width: 100%;
  flex-shrink: 0;
  padding-bottom: 54px;

  border: none;
  outline: none;
  box-shadow: none;

  border-radius: 28px;
  isolation: isolate;
}
.empire-area,
.empire-mapflag,
.empire-nav {
  z-index: 2;
}

.empire-atlas__map {
  position: relative;
  z-index: 1;

  display: block;
  width: 100%;

  filter: brightness(0.85) saturate(0.9);
}
/* =========================
   Empire area overlays
========================= */

.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%;
}

/* =========================
   Empire 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: 60.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
========================= */

.empire-nav {
  position: absolute;
  bottom: 0px;

  width: 140px;
  height: 32px;
  border: none;
  cursor: pointer;

  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 100% 100%;

  transition: transform 0.15s ease;
}

.empire-nav:hover {
    transform: scale(1.05);
}

.empire-nav--left {
    left: calc(50% - 150px);
    background-image: url("/static/images/empire/dragon_left_norm.png");
}

.empire-nav--left:hover {
    background-image: url("/static/images/empire/dragon_left_hover.png");
}

.empire-nav--left:active {
    background-image: url("/static/images/empire/dragon_left_click.png");
}

.empire-nav--right {
    left: calc(50% + 10px);
    background-image: url("/static/images/empire/dragon_right_norm.png");
}

.empire-nav--right:hover {
    background-image: url("/static/images/empire/dragon_right_hover.png");
}

.empire-nav--right:active {
    background-image: url("/static/images/empire/dragon_right_click.png");
}

/* =========================
   Empire info panel
========================= */

.empire-info {
    width: 250px;
    padding: 10px 14px 14px;
    border: 32px solid transparent;
    border-image: url("/static/images/empire/board_border.png") 32 round;
    background: url("/static/images/empire/board_base.png") repeat center #0e0c0a;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.empire-info.is-changing {
    opacity: 0;
    transform: translateY(8px);
}

.empire-info__flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 72px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.3);
}

.empire-info__flag img {
    height: 100%;
    object-fit: contain;
}

.empire-info__name {
    margin: 0 0 8px;
    color: #d4c8a0;
    font-size: 1.05rem;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.empire-info__desc {
    margin: 0 0 14px;
    color: #9a9080;
    font-size: 0.75rem;
    line-height: 1.6;
}

/* =========================
   Select button
========================= */

.empire-select-btn {
    display: inline-block;
    width: 120px;
    height: 21px;
    padding: 0;
    border: none;
    cursor: pointer;
    color: #d4c8a0;
    background: url("/static/images/empire/large_btn_norm.png") center / 100% 100% no-repeat;
    font-family: var(--font-family);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: transform 0.15s ease;
}

.empire-select-btn:hover {
    color: #ffffff;
    background-image: url("/static/images/empire/large_btn_hover.png");
    transform: scale(1.05);
}

.empire-select-btn:active {
    background-image: url("/static/images/empire/large_btn_click.png");
}

.empire-select-btn--selected {
    transform: scale(0.97);
    filter: brightness(1.25);
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {
    .feature-block {
        padding: 40px 0;
    }

    .slide__header {
        margin-bottom: 30px;
    }

    .empire-select {
        gap: 42px;
    }

    .empire-atlas {
        width: min(495px, 100%);
    }

    .empire-nav {
        bottom: -34px;
    }

    .empire-info {
        width: min(100%, 320px);
    }
}

/* =========================
   Beginning equipment block
========================= */

: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);

  --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;
  --container-max: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

/* ===== BASE MINIMUM POUR LE BLOC BEGINNING ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.feature-block {
  padding: 60px 0;
}

.feature-block--alt {
  background: var(--bg-light-alt);
}

.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);
  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;
}

.slide__desc {
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.7;
}

.hl {
  color: var(--accent-start);
  font-weight: 600;
}

.hl-green {
  color: #2ecc71;
  font-weight: 600;
}

/* ===== BEGINNING INVENTORY SYSTEM ===== */
.inv-layout {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Window frame */
.inv-window {
  background: url('/static/images/presentation/equipment/board/board_base.png') repeat center #0e0c0a;
  border: 16px solid transparent;
  border-image: url('/static/images/presentation/equipment/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 */
.inv-window--equip {
  width: 257px;
  align-self: flex-start;
}

.inv-equip {
  position: relative;
  width: 225px;
  height: 273px;
  background: url('/static/images/presentation/equipment/equip_bg_noRing.png') center/100% 100% no-repeat #0d0b09;
  padding: 0;
}

.inv-eq-slot {
  position: absolute;
  width: 48px;
  height: 48px;
  background: url('/static/images/presentation/equipment/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;
}

.inv-eq-slot--64 {
  height: 96px;
  background-image: url('/static/images/presentation/equipment/slot64.png');
}

.inv-eq-slot--96 {
  height: 144px;
  background-image: url('/static/images/presentation/equipment/slot96.png');
}

.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);
}

.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('/static/images/presentation/equipment/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('/static/images/presentation/equipment/tab_hover.png');
  color: #c9a227;
}

.inv-page-btn--active {
  background-image: url('/static/images/presentation/equipment/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);
}

.inv-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: url('/static/images/presentation/equipment/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);
}

/* ===== METIN2 TOOLTIP ===== */
.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;
}

.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;
}

.pvm-preview-equipment {
  position: relative;
  width: 120px;
  height: 180px;
  margin: 32px auto 0;
}

.pvm-preview-equipment .inv-eq-slot {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  pointer-events: auto;
  z-index: 50;
}



/* ===== RESPONSIVE ===== */
@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;
  }
}

/* =========================================================
   DESIGN GLOBAL UPGRADE - Eldrath2 presentation
   Objectif : rapprocher presentation.html de home/index
   Sans toucher aux systèmes, tooltips, slots, NPC, refine, etc.
========================================================= */

:root {
  --page-bg: #030712;
  --page-bg-soft: #07101c;
  --page-card: rgba(7, 16, 28, .76);
  --page-card-strong: rgba(10, 18, 32, .88);
  --page-border: rgba(125, 211, 252, .16);
  --page-border-warm: rgba(232, 184, 74, .22);
  --page-text: #f8fafc;
  --page-muted: #cbd5e1;
  --page-soft: #94a3b8;
  --page-sky: #7dd3fc;
  --page-cyan: #38bdf8;
  --page-amber: #f8c66b;
  --page-gold: #d4a03a;
  --page-purple: #a78bfa;
  --page-red: #ef4444;

  --accent-start: #38bdf8;
  --accent-mid: #d4a03a;
  --accent-end: #f8c66b;
  --accent-glow: rgba(56, 189, 248, .28);
  --gold: #f8c66b;
  --gold-light: #fde68a;
  --border-light: rgba(125, 211, 252, .14);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --bg-primary: #030712;
  --bg-secondary: #07101c;
  --bg-card: rgba(7, 16, 28, .82);
  --bg-card-hover: rgba(10, 25, 44, .94);
}

@keyframes presentationFogMove {
  0% { transform: translate3d(-7%, 0, 0); opacity: .18; }
  50% { opacity: .32; }
  100% { transform: translate3d(7%, -18px, 0); opacity: .18; }
}

@keyframes presentationAshRise {
  0% { transform: translate3d(0, 70px, 0); opacity: 0; }
  25% { opacity: .55; }
  100% { transform: translate3d(24px, -190px, 0); opacity: 0; }
}

@keyframes presentationGlowPulse {
  0%, 100% { opacity: .55; filter: blur(26px); }
  50% { opacity: .95; filter: blur(34px); }
}

@keyframes presentationCardShine {
  0% { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
  32% { opacity: .46; }
  70%, 100% { transform: translateX(190%) skewX(-18deg); opacity: 0; }
}

html {
  scroll-behavior: smooth;
}

body {
  background: #030712 !important;
  color: var(--page-text) !important;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, .12), rgba(3, 7, 18, .82) 74%, #030712 100%),
    radial-gradient(circle at 50% 4%, rgba(14, 165, 233, .24), transparent 34%),
    radial-gradient(circle at 16% 34%, rgba(30, 64, 175, .22), transparent 35%),
    radial-gradient(circle at 86% 44%, rgba(8, 47, 73, .34), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(212, 160, 58, .12), transparent 42%);
}

body::after {
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(to right, rgba(125, 211, 252, .12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(125, 211, 252, .08) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.96), rgba(0,0,0,.52), transparent 94%);
}

.presentation-bg-video {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #030712;
}

.presentation-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  filter: saturate(1.04) contrast(1.05) brightness(.72);
}

.presentation-bg-video__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, .24), rgba(3, 7, 18, .82) 82%, #030712),
    radial-gradient(circle at 50% 12%, rgba(56, 189, 248, .20), transparent 34%),
    radial-gradient(circle at 18% 54%, rgba(14, 165, 233, .15), transparent 36%),
    radial-gradient(circle at 86% 50%, rgba(212, 160, 58, .10), transparent 34%);
}

.presentation-bg-video__grid,
.presentation-bg-video__fog-a,
.presentation-bg-video__fog-b,
.presentation-bg-video__glow,
.presentation-bg-video__ash {
  position: absolute;
  pointer-events: none;
}

.presentation-bg-video__grid {
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(to right, rgba(125, 211, 252, .13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(125, 211, 252, .09) 1px, transparent 1px);
  background-size: 110px 110px;
}

.presentation-bg-video__fog-a {
  left: -12%;
  top: 12%;
  width: 124%;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(148, 163, 184, .24), transparent 70%);
  filter: blur(52px);
  animation: presentationFogMove 24s ease-in-out infinite alternate;
}

.presentation-bg-video__fog-b {
  left: -18%;
  bottom: 4%;
  width: 136%;
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, .15), transparent 72%);
  filter: blur(56px);
  animation: presentationFogMove 28s ease-in-out infinite alternate-reverse;
}

.presentation-bg-video__glow {
  left: 50%;
  top: 8%;
  width: min(620px, 78vw);
  height: min(620px, 78vw);
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, .16), transparent 62%);
  animation: presentationGlowPulse 5.5s ease-in-out infinite;
}

.presentation-bg-video__ash {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(186, 230, 253, .72);
  box-shadow: 0 0 18px rgba(56, 189, 248, .45);
  animation: presentationAshRise 7s ease-in-out infinite;
}

.presentation-bg-video__ash--1 { left: 12%; top: 62%; animation-delay: .1s; }
.presentation-bg-video__ash--2 { left: 22%; top: 72%; width: 4px; height: 4px; animation-delay: 1.2s; }
.presentation-bg-video__ash--3 { right: 18%; top: 66%; animation-delay: 2.1s; }
.presentation-bg-video__ash--4 { right: 28%; top: 76%; width: 4px; height: 4px; animation-delay: 3.4s; }

/* Page spacing */

.feature-block,
.feature-block--alt {
  position: relative;
  z-index: 1;
  padding: 74px 0 !important;
  background: transparent !important;
}

.feature-block:first-of-type {
  padding-top: 110px !important;
  border-top: 0 !important;
}

.container {
  max-width: 1240px !important;
  margin-top: 0 !important;
}

.slide {
  position: relative;
  overflow: hidden;
  max-width: 1200px !important;
  padding: clamp(22px, 3.6vw, 42px);
  border: 1px solid rgba(125, 211, 252, .14);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(20, 53, 97, 0.479), rgba(3, 7, 18, .70)),
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, .13), transparent 34%),
    radial-gradient(circle at 100% 25%, rgba(212, 160, 58, .09), transparent 30%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(14px);
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(125, 211, 252, .08), transparent 30%),
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, .08), transparent 32%);
  opacity: .78;
}

.slide::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 28%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .09), transparent 30%);
  animation: presentationCardShine 8s ease-in-out infinite;
}

.slide__header,
.slide__content {
  position: relative;
  z-index: 1;
}

.slide__header {
  margin-bottom: clamp(28px, 4vw, 48px) !important;
}

.slide__kanji {
  border: 1px solid rgba(125, 211, 252, .18) !important;
  background: rgba(7, 16, 28, .72) !important;
  box-shadow: 0 0 34px rgba(56, 189, 248, .14), inset 0 0 20px rgba(56, 189, 248, .08);
  -webkit-text-fill-color: var(--page-amber) !important;
  color: var(--page-amber) !important;
  text-shadow: 0 0 22px rgba(248, 198, 107, .28);
}

.slide__title,
section h1,
section h2,
section h3 {
  color: #fff !important;
  text-shadow: 0 0 34px rgba(56, 189, 248, .12);
}

.slide__title {
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
  line-height: .98;
  letter-spacing: -.04em;
}

.slide__desc,
section p,
section .text-gray-300,
section .text-gray-400 {
  color: var(--page-muted) !important;
}

.slide__desc {
  max-width: 780px !important;
  font-size: 1rem !important;
}

.hl,
.hl-green {
  color: var(--page-amber) !important;
  text-shadow: 0 0 20px rgba(248, 198, 107, .18);
}

/* Empire block */

.empire-select {
  align-items: center !important;
  gap: clamp(28px, 4vw, 54px) !important;
}

.empire-atlas {
  padding: 18px;
  border-radius: 28px;
}

.empire-atlas__map {
  border-radius: 18px;
  filter: brightness(.82) saturate(1.08) contrast(1.04) drop-shadow(0 28px 40px rgba(0,0,0,.34)) !important;
}

.empire-area:hover,
.empire-area--active {
  filter: brightness(1.22) saturate(1.45) drop-shadow(0 0 18px rgba(248, 198, 107, .42)) !important;
}

.empire-mapflag {
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .72)) drop-shadow(0 0 14px rgba(248, 198, 107, .18)) !important;
}

.empire-nav {
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.66));
}

.empire-info {
  background:
    url("/static/images/empire/board_base.png") repeat center #0e0c0a !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .54), 0 0 42px rgba(56, 189, 248, .08) !important;
  filter: saturate(1.08);
}

.empire-info__flag {
  background: radial-gradient(circle at 50% 0, rgba(56, 189, 248, .12), rgba(0, 0, 0, .38)) !important;
  border-color: rgba(125, 211, 252, .12) !important;
}

.empire-info__name {
  color: #f8e6b0 !important;
}

.empire-info__desc {
  color: #c7bda5 !important;
}

/* Beginning / inventory */

.inv-layout {
  gap: 28px !important;
  align-items: flex-start;
}

.inv-window {
  box-shadow: 0 24px 70px rgba(0, 0, 0, .52), 0 0 34px rgba(56, 189, 248, .08) !important;
  filter: saturate(1.05) contrast(1.02);
}

.inv-window:hover {
  box-shadow: 0 28px 86px rgba(0, 0, 0, .60), 0 0 44px rgba(248, 198, 107, .10) !important;
}

.inv-eq-badge {
  background: linear-gradient(135deg, #0ea5e9, #f8c66b) !important;
  color: #03101f !important;
  box-shadow: 0 0 24px rgba(56, 189, 248, .22);
}

.inv-eq-perks span,
.inv-eq-plus,
.inv-slot__plus,
.m2-tooltip__bonus {
  color: #86efac !important;
}

/* NPC / PvP / PvM sections using existing Tailwind markup */

section.mx-auto,
section.max-w-6xl,
section.max-w-7xl {
  position: relative;
  z-index: 1;
}

section.mx-auto.max-w-6xl,
section.mx-auto.max-w-7xl {
  margin-top: 0 !important;
}

[data-npc-section] {
  position: relative;
}

[data-npc-section] > .mb-10,
[data-npc-section] .mx-auto.mb-10,
[data-npc-section] .mb-7,
[data-npc-section] .mx-auto.mb-7 {
  position: relative;
  z-index: 1;
}

[data-npc-section] article,
#npc-section-pvm > .relative,
.mx-auto.max-w-fit,
.refine-system,
.dungeon-panel,
.presentation-card,
[class*="rounded-3xl"][class*="bg-slate"],
[class*="rounded-2xl"][class*="bg-slate"] {
  border-color: rgba(125, 211, 252, .14) !important;
  background:
    linear-gradient(180deg, rgba(7, 16, 28, .80), rgba(3, 7, 18, .72)),
    radial-gradient(circle at 50% 0, rgba(56, 189, 248, .10), transparent 36%) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
  backdrop-filter: blur(14px);
}

[data-npc-section] article {
  position: relative;
}

[data-npc-section] article::before,
#npc-section-pvm > .relative::before,
.mx-auto.max-w-fit::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0, rgba(255,255,255,.08), transparent 34%);
  opacity: .8;
}

[data-npc-section] article:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(248, 198, 107, .30) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .46), 0 0 46px rgba(56, 189, 248, .10) !important;
}

[data-npc-section] model-viewer {
  filter: drop-shadow(0 28px 34px rgba(0,0,0,.46));
}

[data-npc-section] .relative.flex.h-\[320px\],
[data-npc-section] div[class*="h-[320px]"] {
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, .10) !important;
  background:
    radial-gradient(circle at 50% 70%, rgba(56, 189, 248, .18), transparent 36%),
    linear-gradient(180deg, rgba(56, 189, 248, .09), rgba(3, 7, 18, .10)) !important;
  box-shadow: inset 0 0 40px rgba(56, 189, 248, .06);
}

.npc-tab-btn {
  border: 1px solid transparent;
}

#npc-tab-pvp,
#npc-tab-pvm:hover,
.npc-tab-btn.bg-amber-500 {
  background: linear-gradient(135deg, #7dd3fc, #f8c66b) !important;
  color: #03101f !important;
  box-shadow: 0 0 38px rgba(56, 189, 248, .22) !important;
}

#npc-tab-pvm:not(.bg-amber-500),
#npc-tab-pvp:not(.bg-amber-500) {
  color: #cbd5e1 !important;
}

/* Text accents */

.text-amber-300,
.text-amber-400,
.text-purple-300,
.text-purple-400,
.text-emerald-300,
.text-emerald-400,
.text-red-400,
.text-white {
  text-shadow: 0 0 20px rgba(56, 189, 248, .10);
}

.text-amber-300,
.text-amber-400 {
  color: #f8c66b !important;
}

.text-purple-300,
.text-purple-400 {
  color: #c4b5fd !important;
}

.text-emerald-300,
.text-emerald-400 {
  color: #86efac !important;
}

.text-red-400 {
  color: #fca5a5 !important;
}

/* Generic windows / refinement elements already present later in page */

.refine-window,
.refine-window__body,
.refine-tree,
.refine-bottom,
.refine-result,
.refine-info,
[class*="refine-"] {
  scrollbar-color: rgba(125, 211, 252, .34) rgba(3, 7, 18, .4);
}

.refine-window,
.refine-tree,
.refine-bottom,
.refine-info {
  box-shadow: 0 18px 58px rgba(0,0,0,.34), 0 0 28px rgba(56,189,248,.06);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(125, 211, 252, .75);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1024px) {
  .feature-block:first-of-type {
    padding-top: 92px !important;
  }

  .slide {
    border-radius: 24px;
  }
}

@media (max-width: 768px) {
  .feature-block,
  .feature-block--alt {
    padding: 46px 0 !important;
  }

  .feature-block:first-of-type {
    padding-top: 72px !important;
  }

  .container {
    padding: 0 14px !important;
  }

  .slide {
    padding: 22px 14px;
    border-radius: 22px;
  }

  .slide__title {
    font-size: clamp(1.8rem, 9vw, 2.7rem) !important;
  }

  .slide__desc {
    font-size: .92rem !important;
  }

  .empire-atlas {
    padding: 10px;
    border-radius: 20px;
  }

  [data-npc-section] article {
    padding: 1.15rem !important;
  }
}



.empire-info {
  width: 250px;
  height: 390px;
  display: flex;
  flex-direction: column;
}

.empire-info__desc {
  height: fit-content;
  overflow: hidden;
}

.empire-select-btn {
  margin-top: auto;
}