:root {
  --bg: #03070b;
  --bg-soft: #07131a;
  --card: #081a22;

  --border: #0bc9e7;

  --text: #eafcff;
  --muted: #9ccdd3;

  --accent: #00d9ff;
  --accent-soft: rgba(0, 217, 255, 0.12);

  --shadow: 0 0 20px rgba(0, 217, 255, 0.12);

  --radius: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family: "Merriweather", serif;
  color: var(--text);

  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(0, 217, 255, 0.10),
      transparent 45%
    ),
    linear-gradient(
      180deg,
      #020508 0%,
      #03070b 100%
    );

  background-attachment: fixed;
}

.hero-card h1,
.section-title,
.game-title,
.logo,
.nav-link,
.quick-card,
.code {
  font-family: "Cinzel", serif;
}

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

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

/* =========================
   HERO
========================= */

.hero {
  padding: 48px 0 24px;
  text-align: center;
}

.hero-banner {
  display: block;
  width: min(100%, 900px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 18px rgba(0, 217, 255, 0.25));
}

/* =========================
   SUBTITLE
========================= */

.hero-subtitle-section {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 35px;
}

.hero-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0;

  background: linear-gradient(
    90deg,
    #ff3ea5 0%,
    #ffffff 45%,
    #00eaff 100%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;

  text-shadow:
    0 0 10px rgba(0, 234, 255, 0.35),
    0 0 16px rgba(255, 62, 165, 0.25);
}

.hero-subline {
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 14px;
  letter-spacing: 0.6px;
}


/* =========================
   SECTION BANNER
========================= */

.section-banner {
  display: block;
  width: auto;
  max-width: min(100%, 900px);
  height: auto;
  max-height: 200px;
  margin: 0 auto 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 217, 255, 0.18));
}

/* =========================
   UP ARROW
========================= */

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;

  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 1px solid rgba(0, 217, 255, 0.35);
  background: rgba(5, 18, 28, 0.92);

  box-shadow:
    0 0 12px rgba(0, 217, 255, 0.15),
    inset 0 0 18px rgba(0, 217, 255, 0.05);

  cursor: pointer;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(255, 77, 210, 0.55);
  box-shadow:
    0 0 18px rgba(0, 217, 255, 0.22),
    0 0 24px rgba(255, 77, 210, 0.12);
}

.back-to-top img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(0, 217, 255, 0.25));
}

/* =========================
   QUICK ACCESS
========================= */

.quick-access {
  padding: 32px 0;
}

.quick-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(180px, 1fr));

  gap: 18px;
}

.quick-card {
  display: flex;

  justify-content: center;
  align-items: center;

  min-height: 58px;

  padding: 0 18px;

  border-radius: 999px;

  border:
    1px solid rgba(0, 217, 255, 0.35);

  background:
    rgba(0, 217, 255, 0.06);

  color: var(--text);

  font-weight: 700;
  text-align: center;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.quick-card:hover {
  background:
    rgba(0, 217, 255, 0.12);

  box-shadow:
    0 0 16px rgba(0, 217, 255, 0.18);

  transform:
    translateY(-2px);
}

/* =========================
   MENU-NAV
========================= */

.main-nav {
  margin: 40px 0 60px;
}

.nav-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-card {
  width: 220px;
  min-height: 130px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;

  background: rgba(5, 18, 28, 0.92);
  border: 1px solid rgba(0, 220, 255, 0.35);
  border-radius: 20px;

  text-decoration: none;
  color: white;

  box-shadow:
    0 0 12px rgba(0, 255, 255, 0.08),
    inset 0 0 20px rgba(0, 255, 255, 0.03);

  transition: all 0.25s ease;
}

.nav-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 0, 180, 0.55);

  box-shadow:
    0 0 22px rgba(0, 255, 255, 0.18),
    0 0 30px rgba(255, 0, 180, 0.12);
}

.nav-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;

  filter: drop-shadow(0 0 8px rgba(0,255,255,0.25));

  transition: transform 0.25s ease;
}

.nav-card:hover .nav-icon {
  transform: scale(1.08);
}

.nav-card span {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =========================
   GENERIC SECTION
========================= */

.section {
  padding: 56px 0;
}

.section-title {
  text-align: center;

  margin-bottom: 32px;

  font-size:
    clamp(2rem, 4vw, 3rem);
}

/* =========================
   CODES
========================= */

.codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 280px));
  justify-content: center;
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.code-card {
  display: flex;

  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  width: 280px;
  min-height: 320px;

  padding: 24px 18px;

  border-radius: var(--radius);

  background: var(--card);

  border:
    1px solid rgba(0, 217, 255, 0.22);

  box-shadow: var(--shadow);

  text-align: center;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.code-card:hover {
  transform: translateY(-4px);

  border-color:
    rgba(0, 217, 255, 0.45);

  box-shadow:
    0 0 22px rgba(0, 217, 255, 0.18);
}

.code {
  margin: 0 0 10px;

  font-size: 1.25rem;
  font-weight: 1.25;

  letter-spacing: 1px;

  color: var(--accent);

  word-break: break-word;
}

.reward-title {
  margin: 10px 0 8px;

  font-weight: 700;

  color: var(--text);
}

.reward-list {
  list-style: none;

  padding: 0;
  margin: 0 0 16px;

  text-align: center;

  line-height: 1.35;

  color: var(--muted);
}

.reward-list li {
  margin: 5px 0;
}

.reward-list li::before {
  content: "◆ ";

  color: var(--accent);

  font-size: 0.75em;
}

.date {
  margin-top: auto;
  margin-bottom: 16px;

  font-size: 0.92rem;

  color: var(--muted);
}

.code-card button {
  padding: 9px 18px;

  border-radius: 999px;

  border: 1px solid var(--accent);

  background: transparent;

  color: var(--text);

  cursor: pointer;

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.code-card button:hover {
  background: var(--accent-soft);

  box-shadow:
    0 0 12px rgba(0, 217, 255, 0.2);

  transform: translateY(-1px);
}

/* =========================
   TIER LIST
========================= */

.tier-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tier-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  min-height: 130px;
  border: 1px solid rgba(0, 217, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(8, 26, 34, 0.72);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tier-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-size: 2rem;
  font-weight: 800;
  background: rgba(0, 217, 255, 0.08);
  border-right: 1px solid rgba(0, 217, 255, 0.22);
  color: var(--accent);
}

.tier-characters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.tier-character {
  width: 96px;
  text-align: center;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.tier-character span {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text);
}

.tier-portrait-wrap {
  position: relative;
  border-radius: 18px;
}

.tier-portrait {
  width: 96px;
  height: 96px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(0, 217, 255, 0.25);
}

.tier-icon {
  position: absolute;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tier-rarity {
  top: 5px;
  right: 5px;
}

.tier-attribute {
  bottom: 5px;
  left: 5px;
}

.tier-character:hover {
  transform: translateY(-4px) scale(1.04);
}

.tier-character.rarity-s:hover .tier-portrait {
  box-shadow: 0 0 22px rgba(255, 170, 0, 0.65);
  border-color: rgba(255, 170, 0, 0.9);
}

.tier-character.rarity-a:hover .tier-portrait {
  box-shadow: 0 0 22px rgba(180, 80, 255, 0.65);
  border-color: rgba(180, 80, 255, 0.9);
}

/* =========================
   GUIDES
========================= */

.guide-links {
  display: flex;

  flex-wrap: wrap;
  justify-content: center;

  gap: 16px;
}

.guide-links a {
  padding: 12px 18px;

  border-radius: 999px;

  background:
    rgba(0, 217, 255, 0.06);

  border:
    1px solid rgba(0, 217, 255, 0.22);

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.guide-links a:hover {
  background:
    rgba(0, 217, 255, 0.12);

  transform:
    translateY(-2px);

  box-shadow:
    0 0 14px rgba(0, 217, 255, 0.14);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .hero {
    padding-top: 32px;
  }

  .codes-grid {
    grid-template-columns: 1fr;
  }

  .code-card {
    min-height: auto;
  }

}

/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 28px 0 40px;
  margin-top: 80px;

  border-top: 1px solid rgba(0, 217, 255, 0.12);

  text-align: center;
}

.site-footer p {
  margin: 0;

  font-size: 0.82rem;
  line-height: 1.6;

  color: var(--muted);

  opacity: 0.75;
}

/* =========================
   PERSONNAGEs
========================= */

.esper-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}

.filter-btn {
  min-width: 54px;
  height: 54px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  background: rgba(0, 217, 255, 0.06);
  color: var(--text);
  font-family: "Cinzel", serif;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.filter-btn img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 217, 255, 0.14);
  box-shadow: 0 0 16px rgba(0, 217, 255, 0.18);
  transform: translateY(-2px);
}

.espers-grid {
  display: grid;
  grid-template-columns: repeat(5, 180px);
  justify-content: center;
  gap: 38px 76px;
  margin: 0 auto;
}

.esper-card {
  display: block;
  border-radius: 18px;
  transition: 0.25s ease;
  width: 180px;
}

.esper-card img {
  width: 75%;
  display: block;
  border-radius: 18px;
}

.esper-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.esper-card.rarity-s:hover {
  filter: drop-shadow(0 0 18px rgba(255, 180, 40, 0.55));
}

.esper-card.rarity-a:hover {
  filter: drop-shadow(0 0 18px rgba(180, 90, 255, 0.55));
}

@media (max-width: 1100px) {
  .espers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 800px) {
  .espers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .espers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   ESPER
========================= */

.sheet-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sheet-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(8, 26, 34, 0.82);
  border: 1px solid rgba(0, 217, 255, 0.22);
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}

.sheet-main {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: center;
}

.sheet-portrait img {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.sheet-main-info h1,
.sheet-card h2,
.sheet-subcard h3 {
  font-family: "Cinzel", serif;
}

.character-tags span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;

  object-fit: contain;
  display: block;
}

.sheet-main-info h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.character-en {
  color: var(--muted);
  margin: 6px 0 20px;
}

.character-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.character-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.22);
  color: var(--text);
  font-size: 0.9rem;
  width: fit-content;
}

.character-description {
  color: var(--muted);
  line-height: 1.7;
}

.sheet-card h2 {
  margin: 0 0 22px;
  color: var(--accent);
}

.sheet-inner-title {
  margin-top: 34px !important;
}

.sheet-subcard {
  padding: 18px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(0, 217, 255, 0.045);
  border: 1px solid rgba(0, 217, 255, 0.14);
}

.sheet-subcard:last-child {
  margin-bottom: 0;
}

.sheet-subcard h3 {
  margin: 0 0 10px;
  color: var(--text);
}

.sheet-subcard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.sheet-main.rarity-s {
  border-color: rgba(255, 180, 40, 0.45);
  box-shadow: 0 0 24px rgba(255, 180, 40, 0.16);
}

.sheet-main.rarity-a {
  border-color: rgba(180, 90, 255, 0.45);
  box-shadow: 0 0 24px rgba(180, 90, 255, 0.16);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-header h3 {
  margin: 0;
  display: inline;
}

.skill-type {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.18);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.skill-cyan {
  background: rgba(0, 217, 255, 0.10);
  border: 1px solid rgba(0, 217, 255, 0.30);
  color: #00d9ff;
}

.skill-yellow {
  background: rgba(255, 180, 0, 0.10);
  border: 1px solid rgba(255, 180, 0, 0.35);
  color: #ffb400;
}

.skill-red {
  background: rgba(255, 70, 70, 0.10);
  border: 1px solid rgba(255, 70, 70, 0.35);
  color: #ff5b5b;
}

.skill-white {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f2f2f2;
}

.skill-green {
  background: rgba(80, 255, 170, 0.10);
  border: 1px solid rgba(80, 255, 170, 0.35);
  color: #50ffaa;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.team-member {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  border: none;
  box-shadow: none;
}


.team-member img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(0, 217, 255, 0.25);
}

.team-member span {
  display: none;
}

.team-member:hover,
.team-member:focus,
.team-member:active {
  background: transparent;
  box-shadow: none;
  outline: none;
}

.team-member:hover {
  transform: translateY(-4px) scale(1.04);
}

.team-member.rarity-s:hover img {
  box-shadow: 0 0 18px rgba(255, 180, 40, 0.55);
  border-color: rgba(255, 180, 40, 0.8);
}

.team-member.rarity-a:hover img {
  box-shadow: 0 0 18px rgba(180, 90, 255, 0.55);
  border-color: rgba(180, 90, 255, 0.8);
}

.team-member-missing {
  color: var(--muted);
}

.arc-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.arc-image {
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex-shrink: 0;
}

.arc-card p {
  font-size: 1rem;
  color: var(--text);
}

.console-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.console-image {
  width: 82px;
  height: 82px;
  object-fit: contain;
  flex-shrink: 0;
}

.console-info p {
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 700;
}

.module-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.module-image {
  width: 36px;
  height: 36px;
  object-fit: contain;
  padding: 2px;
  border: 1px solid rgba(0, 217, 255, 0.22);
  border-radius: 6px;
  background: rgba(0, 8, 20, 0.55);
  box-shadow: 0 0 6px rgba(0, 217, 255, 0.08);
}

.module-empty {
  color: var(--muted);
  margin: 0;
}

.favorite-gifts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.favorite-gift {
  width: 92px;
  text-align: center;
}

.favorite-gift img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid rgba(0, 217, 255, 0.55);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.25);
}

.favorite-gift span {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  line-height: 1.15;
  color: #fff;
}

/* =========================
   COLOR-TEXT
========================= */


.attr-incantation {
  color: #ff4f67;
}

.attr-psyche {
  color: #35b8ff;
}

.attr-anima {
  color: #35ffd0;
}

.attr-chaos {
  color: #9b7cff;
}

.attr-cosmos {
  color: #b7b9e1;
  text-shadow: 0 0 8px rgba(215, 222, 232, 0.25);
}

.attr-lakshana {
  color: #ffd84a;
}


/* =========================
   GUIDES
========================= */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 360px);
  justify-content: center;
  gap: 38px 76px;
  margin: 0 auto;
}

.guide-card {
  display: flex;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;

  gap: 12px;
  min-height: 160px;
  width: 100%;

  padding: 24px;

  border-radius: 18px;
  background: linear-gradient(145deg, rgba(0,20,35,.85), rgba(0,10,20,.95));
  border: 1px solid rgba(0,217,255,.18);

  transition: all .25s ease;
}

.guide-card h3,
.guide-card p {
  margin: 0 !important;
  width: 100%;
  text-align: center !important;
}

.guide-icon {
  width: 44px;
  height: 44px;
  display: block;
  margin: 0 auto;
}

.guide-card:hover .guide-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 0 14px rgba(0, 217, 255, 0.28));
}

.guide-section {
  margin-bottom: 100px;
}  

.guide-banner {
  display: block;
  width: auto;
  max-width: min(100%, 900px);
  height: auto;
  max-height: 200px;
  margin: 0 auto 32px;
  margin-bottom: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 217, 255, 0.18));
}

.guide-divider {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: 4px;
  margin: 40px auto;

  object-fit: cover;
}

.guide-spacer {
  height: 32px;
}

.guide-video {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;

  margin: 32px auto;

  border-radius: 18px;
  overflow: hidden;

  border: 1px solid rgba(0, 217, 255, 0.18);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.10);
}

.guide-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.guide-links-list {
  margin: 24px 0;
}

.guide-links-list ul {
  list-style: disc;
  padding-left: 28px;
  margin: 0;
}

.guide-links-list li {
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.6;
}

.guide-links-list a {
  color: var(--accent);
  transition: color 0.2s ease;
}

.guide-links-list a:hover {
  color: #6befff;
  text-shadow: 0 0 8px rgba(0, 217, 255, 0.25);
}

.guide-content p {
  max-width: 850px;
  margin: 0 auto 20px;
}

.guide-content ul {
  padding-left: 24px;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.8;
}

.guide-content li {
  margin-bottom: 8px;
}

.guide-image {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;

  margin: 28px auto;

  border-radius: 16px;
  border: 1px solid rgba(0,217,255,.18);

  box-shadow: 0 0 20px rgba(0,217,255,.08);
}

.guide-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: 18px 0 28px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.18);
}

.guide-inline-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.guide-inline-text {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.guide-inline-text strong,
.guide-inline-text span {
  white-space: nowrap;
}

.guide-inline-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(0,217,255,.12);
}

.guide-block {
  margin-bottom: 48px;
}
.guide-block p,
.guide-block li {
  line-height: 1.7;
}

.footer-links a {
  margin-right: 15px
}    

/* =========================
   CODEX-ARCS
========================= */
.codex-arc-zone {
  margin-top: 30px;
}

.arc-tools {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

#arcSearch {
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(0, 234, 255, 0.35);
  background: rgba(0, 15, 25, 0.85);
  color: #fff;
  font-family: 'Merriweather', serif;
}

.arc-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.arc-filter img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.arc-filter,
.arc-level-toggle button,
.codex-arc-card {
  cursor: pointer;
}

.arc-filter,
.arc-level-toggle button {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 234, 255, 0.35);
  background: rgba(0, 25, 40, 0.75);
  color: rgba(255, 255, 255, 0.9);
}

.arc-filter.active,
.arc-level-toggle button.active {
  background: rgba(0, 217, 255, 0.14);
  box-shadow: 0 0 16px rgba(0, 217, 255, 0.18);
  transform: translateY(-2px);
}

.arc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.codex-arc-card {
  border: 1px solid rgba(0, 234, 255, 0.22);
  border-radius: 18px;
  padding: 10px;
  background: rgba(0, 18, 30, 0.72);
  color: #fff;
  text-align: center;
  font-family: 'Cinzel', serif;
}

.codex-arc-card.active {
  border-color: #ff3ea5;
  box-shadow: 0 0 18px rgba(255, 62, 165, 0.35);
}

.codex-arc-card-image-wrap {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.codex-arc-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.arc-icon {
  position: absolute;
  width: 32px;
  height: 32px;
  object-fit: contain;
  z-index: 3;
  pointer-events: none;
}

.arc-rarity {
  top: 4px;
  right: 4px;
}

.codex-arc-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.codex-arc-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.codex-arc-card.rarity-s:hover {
  box-shadow: 0 0 18px rgba(255, 180, 40, 0.35);
}

.codex-arc-card.rarity-a:hover {
  box-shadow: 0 0 18px rgba(180, 90, 255, 0.35);
}

.codex-arc-card.rarity-b:hover {
  box-shadow: 0 0 18px rgba(40, 160, 255, 0.35);
}

.arc-type {
  bottom: 4px;
  left: 4px;
}

.codex-arc-card {
  height: 235px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.codex-arc-card span {
  min-height: 54px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
}

.arc-detail-card {
  border: 1px solid rgba(0, 234, 255, 0.28);
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 34px;
  background: linear-gradient(135deg, rgba(0, 20, 32, 0.92), rgba(12, 3, 25, 0.92));
  box-shadow: 0 0 28px rgba(0, 234, 255, 0.12);
}

.arc-detail-top {
  display: flex;
  align-items: center;
  gap: 24px;
}

.arc-detail-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.arc-detail-main h2 {
  margin: 0;
  font-family: 'Cinzel', serif;
  color: white;
  font-size: 2rem;
}

.arc-detail-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  flex-shrink: 0;
}

.arc-detail-tags {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 16px;
}

.arc-detail-tags img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.arc-level-toggle {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 14px !important;
  width: auto !important;
}

.arc-detail-tags span {
  color: #00eaff;
  font-weight: 700;
  font-size: 1rem;
}

.arc-detail-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.arc-detail-meta h2 {
  margin: 0 0 10px;
  font-family: 'Cinzel', serif;
  color: #fff;
}

.arc-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 234, 255, 0.35);
  color: #00eaff;
}

.arc-stats {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.arc-stat {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.arc-stat span {
  color: #00eaff;
  font-weight: 700;
}

.arc-stat strong {
  text-align: right;
  color: #fff;
}

.arc-description {
  margin-top: 24px;
  line-height: 1.75;
}

.arc-description h3 {
  color: #ff3ea5;
  font-family: 'Cinzel', serif;
}

/* =========================
   GUIDE-CAFE
========================= */

.cafe-slider-section {
  margin: 36px 0;
}

.cafe-slider {
  border: 1px solid rgba(0, 234, 255, 0.28);
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(0, 20, 32, 0.92), rgba(12, 3, 25, 0.92));
  box-shadow: 0 0 28px rgba(0, 234, 255, 0.12);
}

.cafe-slide {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
  align-items: center;
}

.cafe-slide-image {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(0, 234, 255, 0.25);
  object-fit: cover;
}

.cafe-slide-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  margin: 0 0 18px;
  color: #00eaff;
}

.cafe-slide-content p {
  margin: 12px 0;
  line-height: 1.6;
}

.cafe-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.cafe-slider-nav button {
  cursor: pointer;
  border: 1px solid rgba(0, 234, 255, 0.35);
  background: rgba(0, 25, 40, 0.75);
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
}

.cafe-slider-nav button:hover {
  border-color: #00eaff;
  box-shadow: 0 0 14px rgba(0, 234, 255, 0.35);
}

.cafe-dots {
  display: flex;
  gap: 8px;
}

.cafe-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
}

.cafe-dot.active {
  background: #00eaff;
  box-shadow: 0 0 12px rgba(0, 234, 255, 0.75);
}

@media (max-width: 800px) {
  .cafe-slide {
    grid-template-columns: 1fr;
  }

  .cafe-slide-content {
    text-align: center;
  }
}

.gestion-slider-section {
  margin: 36px 0;
}
.gestion-slider {
  min-height: 1140px;
}

.gestion-slider {
  border: 1px solid rgba(0, 234, 255, 0.28);
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(0, 20, 32, 0.92), rgba(12, 3, 25, 0.92));
  box-shadow: 0 0 28px rgba(0, 217, 255, 0.12);
}

.gestion-header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.gestion-header h3 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: #00eaff;
}

.gestion-rewards {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.gestion-rewards strong {
  color: #ff3ea5;
}

.gestion-rewards ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.gestion-objectifs {
  display: grid;
  gap: 12px;
}

.gestion-objectif-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(0, 234, 255, 0.16);
}

.gestion-objectif-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #00eaff;
  border: 1px solid rgba(0, 234, 255, 0.55);
  font-weight: 800;
}

.gestion-objectif-card p {
  margin: 0 0 6px;
}

.gestion-objectif-card small {
  color: #00eaff;
}

.gestion-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.gestion-slider-nav button {
  cursor: pointer;
  border: 1px solid rgba(0, 234, 255, 0.35);
  background: rgba(0, 25, 40, 0.75);
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
}

.gestion-slider-nav button:hover {
  border-color: #00eaff;
  box-shadow: 0 0 14px rgba(0, 234, 255, 0.35);
}

.gestion-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.gestion-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
}

.gestion-dot.active {
  background: #00eaff;
  box-shadow: 0 0 12px rgba(0, 234, 255, 0.75);
}

.esper-life-section {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 28px;
  margin: 36px 0;
  align-items: start;
}

.esper-life-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.esper-life-portrait {
  cursor: pointer;
  border: 1px solid rgba(0, 234, 255, 0.25);
  border-radius: 18px;
  padding: 10px;
  background: rgba(0, 18, 30, 0.72);
  color: #fff;
  font-family: 'Cinzel', serif;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.esper-life-portrait:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #00eaff;
  box-shadow: 0 0 18px rgba(0, 234, 255, 0.3);
}

.esper-life-portrait.active {
  border-color: #ff3ea5;
  box-shadow: 0 0 18px rgba(255, 62, 165, 0.35);
}

.esper-life-portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.esper-life-portrait span {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
}

.esper-life-card {
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 24px;
  padding: 24px;
  min-height: 815px;
  background: linear-gradient(135deg, rgba(0, 20, 32, 0.92), rgba(12, 3, 25, 0.92));
  box-shadow: 0 0 28px rgba(0, 217, 255, 0.12);
}

.esper-life-card-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.esper-life-card-header img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.esper-life-card-header h3 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: #fff;
}

.esper-life-card-header p {
  margin: 8px 0;
  color: #00eaff;
  font-weight: 700;
}

.esper-life-rating {
  display: flex;
  gap: 4px;
  font-size: 1.2rem;
}

.esper-life-rating span {
  color: rgba(255, 255, 255, 0.25);
}

.esper-life-rating span.filled {
  color: #ff3ea5;
  text-shadow: 0 0 10px rgba(255, 62, 165, 0.6);
}

.esper-life-levels {
  display: grid;
  gap: 12px;
}

.esper-life-level {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(0, 234, 255, 0.14);
}

.esper-life-level strong {
  color: #00eaff;
  font-family: 'Cinzel', serif;
}

.esper-life-level p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.cafe-slider,
.gestion-slider,
.esper-life-card,
.esper-life-section {
  border-color: rgba(0, 217, 255, 0.28);
  }

/* =========================
   CODEX-CONSOLES
========================= */

.cartouche-codex-section {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 28px;
  margin: 36px 0;
  align-items: start;
}

.cartouche-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cartouche-card {
  cursor: pointer;
  border: 1px solid rgba(0, 217, 255, 0.25);
  border-radius: 18px;
  padding: 10px;
  background: rgba(0, 18, 30, 0.72);
  color: #fff;
  font-family: 'Cinzel', serif;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cartouche-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #00d9ff;
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.3);
}

.cartouche-card.active {
  border-color: #ff3ea5;
  box-shadow: 0 0 18px rgba(255, 62, 165, 0.35);
}

.cartouche-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.cartouche-card span {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.25;
}

.cartouche-detail-card {
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 580px;
  background: linear-gradient(135deg, rgba(0, 20, 32, 0.92), rgba(12, 3, 25, 0.92));
  box-shadow: 0 0 28px rgba(0, 217, 255, 0.12);
}

.cartouche-detail-header {
  display: flex;
  gap: 22px;
  align-items: center;
}

.cartouche-detail-header img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  flex-shrink: 0;
}

.cartouche-detail-header h2 {
  margin: 0 0 16px;
  font-family: 'Cinzel', serif;
  color: #fff;
  font-size: 2rem;
}

.catouche-bonus {
  display: grid;
  gap: 10px;
}

.cartouche-bonus h3 {
  font-family: 'Cinzel', serif;
  color: #ff3ea5;
  margin-bottom: 16px;
}

.cartouche-bonus p {
  margin: 0;
  line-height: 1.6;
}

.cartouche-bonus strong {
  color: #00d9ff;
}

.cartouche-modules {
  margin-top: auto;
}

.cartouche-modules h3 {
  font-family: 'Cinzel', serif;
  color: #ff3ea5;
  margin-bottom: 16px;
}

.cartouche-module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cartouche-module {
  border: 1px solid rgba(0, 217, 255, 0.18);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.cartouche-module img {
  width: 100%;
  max-width: 90px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.cartouche-module span {
  display: block;
  margin-top: 8px;
  color: #00d9ff;
  font-weight: 700;
}

/* =========================
   CODEX-LOGEMENTS
========================= */

.housing-codex-section {
  margin: 36px 0;
}

.housing-list {
  display: grid;
  gap: 34px;
}

.housing-card {
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 24px;
  padding: 26px;
  background: linear-gradient(135deg, rgba(0, 20, 32, 0.92), rgba(12, 3, 25, 0.92));
  box-shadow: 0 0 28px rgba(0, 217, 255, 0.12);
}

.housing-img {
  display: block;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 1312 / 784;
  height: auto;
  object-fit: cover;
  object-position: center;
  margin: 0 auto 24px;
  border-radius: 18px;
  border: 1px solid rgba(0, 217, 255, 0.22);
}

.housing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.housing-header h2 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: #fff;
}

.housing-header span {
  color: #00d9ff;
  font-weight: 800;
  border: 1px solid rgba(0, 217, 255, 0.35);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(0, 25, 40, 0.75);
}

.housing-info {
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
}

.housing-info p {
  margin: 0;
  line-height: 1.6;
}

.housing-info strong {
  color: #00d9ff;
}

.housing-furniture-section h3 {
  margin: 0 0 18px;
  font-family: 'Cinzel', serif;
  color: #ff3ea5;
}

.housing-furniture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.housing-furniture-card {
  border: 1px solid rgba(0, 217, 255, 0.18);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.housing-furniture-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.housing-furniture-top img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}

.housing-furniture-top h4 {
  margin: 0;
  font-family: 'Cinzel', serif;
  color: #fff;
  font-size: 1rem;
}

.housing-furniture-card p {
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .housing-card {
    padding: 18px;
  }

  .housing-header {
    flex-direction: column;
    text-align: center;
  }

  .housing-header h2 {
    font-size: 1.5rem;
  }

  .housing-furniture-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   CODEX-VEHICULES
========================= */

.vehicle-codex-section {
  margin: 36px 0;
}

.vehicle-list {
  display: grid;
  gap: 28px;
}

.vehicle-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.8fr) minmax(360px, 1.4fr);
  gap: 24px;
  align-items: stretch;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(0, 20, 32, 0.92), rgba(12, 3, 25, 0.92));
  box-shadow: 0 0 28px rgba(0, 217, 255, 0.12);
  box-sizing: border-box;
}

.vehicle-main,
.vehicle-base,
.vehicle-advanced {
  border: 1px solid rgba(0, 217, 255, 0.16);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  box-sizing: border-box;
  min-width: 0;
}

.vehicle-main {
  text-align: center;
}

.vehicle-main img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 14px;
  border-radius: 14px;
}

.vehicle-main h2 {
  margin: 0 0 14px;
  font-family: 'Cinzel', serif;
  color: #fff;
  font-size: 1.6rem;
}

.vehicle-main p {
  margin: 8px 0;
  line-height: 1.5;
}

.vehicle-main strong,
.vehicle-base-stat span,
.vehicle-gauge-header strong {
  color: #00d9ff;
}

.vehicle-base h3,
.vehicle-advanced h3 {
  margin: 0 0 18px;
  font-family: 'Cinzel', serif;
  color: #ff3ea5;
}

.vehicle-base {
  display: grid;
  align-content: start;
  gap: 12px;
}

.vehicle-base-stat {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.vehicle-base-stat strong {
  color: #fff;
  text-align: right;
}

.vehicle-advanced {
  display: grid;
  align-content: start;
  gap: 14px;
}

.vehicle-gauge {
  display: grid;
  gap: 6px;
}

.vehicle-gauge-header {
  line-height: 1.35;
}

.vehicle-gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  opacity: 0.9;
}

.vehicle-gauge-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.vehicle-gauge-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff3ea5, #00d9ff);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.45);
}

/* =========================
   GUIDE-BRAQUAGE
========================= */

.bank-map-section {
  margin: 36px 0;
}

.bank-map-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.bank-map-frame {
  cursor: zoom-in;
  padding: 0;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(0, 18, 30, 0.72);
  box-shadow: 0 0 28px rgba(0, 217, 255, 0.12);
}

.bank-map-frame img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: contain;
}

.bank-map-arrow {
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(0, 217, 255, 0.35);
  background: rgba(0, 25, 40, 0.75);
  color: #fff;
  font-size: 1.4rem;
}

.bank-map-arrow:hover {
  border-color: #00d9ff;
  box-shadow: 0 0 14px rgba(0, 217, 255, 0.35);
}

.bank-map-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.bank-map-dot {
  cursor: pointer;
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 217, 255, 0.45);
  background: rgba(255, 255, 255, 0.15);
}

.bank-map-dot.active {
  background: #00d9ff;
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.75);
}

.bank-map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.88);
}

.bank-map-lightbox.active {
  display: flex;
}

.bank-map-lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 0 34px rgba(0, 217, 255, 0.22);
}

.bank-map-close {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 10000;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 3rem;
}

.valuable-section {
  margin: 36px 0;
}

.valuable-list {
  display: grid;
  gap: 14px;
}

.valuable-card {
  display: grid;
  grid-template-columns: 70px 90px 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(0, 217, 255, 0.24);
  border-radius: 18px;
  padding: 14px 18px;
  background: rgba(0, 18, 30, 0.72);
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.08);
}

.valuable-rank {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ff3ea5;
  text-align: center;
}

.valuable-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.valuable-card h3 {
  margin: 0;
  font-family: 'Cinzel', serif;
  color: #fff;
  font-size: 1.15rem;
}

.valuable-values {
  text-align: right;
  min-width: 150px;
}

.valuable-values p {
  margin: 4px 0;
}

.valuable-values strong {
  color: #00d9ff;
}

/* =========================
   CODEX-RESSOURCES
========================= */
.ressources-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.ressources-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 35px;
}

.ressources-filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ressource-filter {
  border: 1px solid rgba(0, 217, 255, 0.45);
  background: rgba(5, 15, 25, 0.8);
  color: #e8faff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s ease;
}

.ressource-filter:hover,
.ressource-filter.active {
  background: rgba(0, 217, 255, 0.18);
  box-shadow: 0 0 14px rgba(0, 217, 255, 0.35);
  color: #00d9ff;
}

.ressources-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px;
}

.ressource-card {
  perspective: 1000px;
  min-height: 220px;
}

.ressource-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  transform-style: preserve-3d;
  transition: transform 0.55s ease;
}

.ressource-card:hover .ressource-card-inner {
  transform: rotateY(180deg);
}

.ressource-card-front,
.ressource-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1px solid rgba(0, 217, 255, 0.35);
  border-radius: 18px;
  background: rgba(8, 18, 30, 0.88);
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.16);
  padding: 14px;
  text-align: center;
}

.ressource-card-front img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 10px;
}

.ressource-card-front h3,
.ressource-card-back h3 {
  font-size: 0.85rem;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 8px;
}

.ressource-card-front p {
  font-size: 0.78rem;
  color: #00d9ff;
  margin: 0;
}

.ressource-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.ressource-card-back div:first-child {
  margin-top: 12px;
}

.ressource-card-back div:last-child {
  margin-bottom: 12px;
}

.ressource-card-back p {
  margin: 5px 0 0;
  font-size: 0.75rem;
  line-height: 1.15;
  color: #e8faff;
}

.ressource-card-back strong {
  color: #00d9ff;
  font-size: 0.8rem;
}

.ressource-card-back p {
  margin: 5px 0 0;
  font-size: 0.78rem;
  color: #e8faff;
}

.ressource-card-back ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.ressource-card-back li {
  font-size: 0.72rem;
  line-height: 1.15;
  color: #e8faff;
  margin-bottom: 4px;
}

.ressource-card-back li::before {
  content: "• ";
  color: #00d9ff;
}

@media (max-width: 1200px) {
  .ressources-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 900px) {
  .ressources-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .ressources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {
  .valuable-card {
    grid-template-columns: 54px 70px 1fr;
  }

  .valuable-values {
    grid-column: 1 / -1;
    text-align: center;
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .bank-map-carousel {
    grid-template-columns: 1fr;
  }

  .bank-map-arrow {
    width: 100%;
  }
}


@media (max-width: 1000px) {
  .vehicle-card {
    grid-template-columns: 1fr;
  }

  .vehicle-main img {
    max-height: 240px;
  }
}

@media (max-width: 900px) {
  .cartouche-codex-section {
    grid-template-columns: 1fr;
  }

  .catouche-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .cartouche-detail-header {
    flex-direction: column;
    text-align: center;
  }

  .cartouche-module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .esper-life-section {
    grid-template-columns: 1fr;
  }

  .esper-life-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .esper-life-card-header {
    flex-direction: column;
    text-align: center;
  }

  .esper-life-rating {
    justify-content: center;
  }
}

@media (max-width: 800px) {
  .gestion-header {
    grid-template-columns: 1fr;
  }

  .gestion-header h3 {
    text-align: center;
  }

  .gestion-objectif-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .gestion-objectif-number {
    margin: 0 auto;
  }
}

@media (max-width: 800px) {
  .sheet-main {
    grid-template-columns: 1fr;
  }

  .sheet-portrait {
    max-width: 280px;
    margin: 0 auto;
  }
}

  .arc-detail-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .arc-detail-img {
    margin: 0 auto;
  }

  .arc-level-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .arc-stat {
    grid-template-columns: 1fr auto;
  }
}

