/*
Theme Name: Legends of the Untold
Theme URI: https://example.com/
Author: MirzaFreddy
Author URI: https://mirzafreddy.com/
Description: A cinematic Persian RTL WordPress landing theme for a fantasy adventure world.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: legends-untold
*/

@font-face {
  font-family: "Pinar";
  src: url("assets/fonts/Pinar-DS4-FD-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pinar";
  src: url("assets/fonts/Pinar-DS4-FD-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pinar";
  src: url("assets/fonts/Pinar-DS4-FD-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pinar";
  src: url("assets/fonts/Pinar-DS4-FD-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Font Awesome 7 Free";
  src: url("assets/vendor/fontawesome/webfonts/fa-solid-900.woff2")
    format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

:root {
  --gold: #dba21b;
  --gold-bright: #f2cf75;
  --cream: #fff0c8;
  --ink: #080706;
  --panel: rgb(13 10 7 / 0.72);
  --panel-deep: rgb(6 5 4 / 0.78);
  --line: rgb(219 162 27 / 0.92);
  --side-width: clamp(104px, 9.65vw, 148px);
  --page-pad: clamp(14px, 2.1vw, 32px);
  --scrollbar-size: 13px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  direction: rtl;
  overflow: hidden;
}

body {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--cream);
  background: #090805;
  font-family: "Pinar", Tahoma, Arial, sans-serif;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
  cursor:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Ccircle%20cx='20'%20cy='20'%20r='10'%20fill='none'%20stroke='%23dba21b'%20stroke-width='3'/%3E%3Cpath%20d='M20%206%20L20%2014%20M20%2026%20L20%2034%20M6%2020%20L14%2020%20M26%2020%20L34%2020'%20stroke='%23f2cf75'%20stroke-width='2'%20stroke-linecap='round'/%3E%3Ccircle%20cx='20'%20cy='20'%20r='4'%20fill='%23f2cf75'/%3E%3C/svg%3E")
      20 20,
    auto;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fantasy-shell {
  position: relative;
  isolation: isolate;
  width: 100vw;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  scrollbar-color: rgb(219 162 27 / 0.86) rgb(5 4 3 / 0.42);
  scrollbar-width: thin;
  background:
    linear-gradient(
      90deg,
      rgb(0 0 0 / 0.5),
      rgb(0 0 0 / 0.08) 36%,
      rgb(0 0 0 / 0.34)
    ),
    url("assets/images/bg.webp") center / cover no-repeat;
}

.fantasy-shell::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

.fantasy-shell::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgb(4 3 2 / 0.78), rgb(17 12 6 / 0.46)),
    rgb(3 3 2 / 0.56);
  border-inline: 1px solid rgb(219 162 27 / 0.2);
}

.fantasy-shell::-webkit-scrollbar-thumb {
  min-height: 64px;
  border: 3px solid rgb(5 4 3 / 0.72);
  border-radius: 999px;
  background:
    linear-gradient(180deg, #ffe08a 0%, #dba21b 42%, #6f4510 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 243 189 / 0.42),
    0 0 12px rgb(219 162 27 / 0.38);
}

.fantasy-shell::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, #fff0b8 0%, #edbd38 44%, #8b5918 100%);
}

.fantasy-shell::-webkit-scrollbar-corner {
  background: transparent;
}

.front-page-shell {
  height: auto;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
}

.fantasy-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 76% 45%, rgb(238 177 55 / 0.18), transparent 28%),
    linear-gradient(
      180deg,
      rgb(0 0 0 / 0.62),
      rgb(0 0 0 / 0.32) 22%,
      rgb(0 0 0 / 0.34) 78%,
      rgb(0 0 0 / 0.66)
    );
}

.fantasy-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgb(255 231 166 / 0.12),
    inset 0 0 110px rgb(0 0 0 / 0.7);
}

.top-nav {
  position: fixed;
  top: 0;
  right: var(--side-width);
  left: var(--scrollbar-size);
  z-index: 70;
  display: flex;
  min-height: clamp(86px, 10vh, 108px);
  align-items: center;
  justify-content: center;
  isolation: isolate;
  padding-inline: var(--page-pad);
}

.top-nav::before {
  content: "";
  position: absolute;
  inset: 0 0 0 calc(-1 * var(--scrollbar-size));
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(4 3 2 / 0.88), rgb(4 3 2 / 0.56) 64%, rgb(4 3 2 / 0));
  box-shadow: 0 18px 34px rgb(0 0 0 / 0.2);
  opacity: 0;
  backdrop-filter: blur(14px) saturate(0.9);
  -webkit-backdrop-filter: blur(14px) saturate(0.9);
  transition: opacity 180ms ease;
}

main.has-page-scrolled .top-nav::before,
body.has-page-scrolled .top-nav::before {
  opacity: 1;
}

.top-nav--full {
  right: 0;
}

.mobile-menu-toggle,
.mobile-menu-backdrop,
.mobile-brand-logo,
.mobile-header-glass,
.mobile-header-actions {
  display: none;
}

.top-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(38px, 5.5vw, 88px);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--gold-bright);
  font-size: clamp(0.82rem, 0.88vw, 0.98rem);
  font-weight: 600;
  text-shadow: 0 2px 10px rgb(0 0 0 / 0.86);
}

.top-nav__list a {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding-inline: 4px;
}

.top-nav__list .internal-cart-count {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding-inline: 4px;
  color: #160e04;
  border-radius: 50%;
  background: var(--gold);
  font-size: 0.66rem;
  text-shadow: none;
}

.top-nav__list a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transform: translateX(50%);
  transition: width 180ms ease;
}

.top-nav__list a:hover::after,
.top-nav__list a:focus-visible::after {
  width: 100%;
}

.side-rail {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: grid;
  width: var(--side-width);
  height: 100%;
  grid-template-rows: auto 1fr;
  justify-items: center;
  padding: clamp(28px, 4vh, 46px) 12px clamp(18px, 3vh, 30px);
  border: 0;
  background:
    linear-gradient(
      180deg,
      rgb(5 4 3 / 0.82) 0%,
      rgb(7 6 5 / 0.68) 14%,
      rgb(9 7 5 / 0.38) 34%,
      rgb(8 6 4 / 0.14) 56%,
      rgb(8 6 4 / 0.03) 76%,
      rgb(8 6 4 / 0) 100%
    ),
    linear-gradient(
      270deg,
      rgb(0 0 0 / 0.38) 0%,
      rgb(0 0 0 / 0.18) 36%,
      rgb(0 0 0 / 0) 100%
    );
  backdrop-filter: blur(3px);
}

.side-rail::before,
.side-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgb(248 212 128 / 0.22) 0%,
    rgb(248 212 128 / 0.12) 26%,
    rgb(248 212 128 / 0.04) 58%,
    rgb(248 212 128 / 0) 100%
  );
}

.side-rail::before {
  right: 0;
}

.side-rail::after {
  left: 0;
}

.brand-logo {
  width: clamp(86px, 6.8vw, 108px);
  margin-bottom: clamp(32px, 6vh, 64px);
}

.side-menu {
  display: grid;
  width: 100%;
  align-content: start;
  gap: clamp(18px, 3.3vh, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-menu li {
  margin: 0;
}

.side-menu__link,
.side-menu a {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 66px;
  color: var(--gold-bright);
  font-size: clamp(0.8rem, 0.96vw, 0.98rem);
  font-weight: 500;
  text-shadow: 0 2px 10px rgb(0 0 0 / 0.9);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.side-menu__link:hover,
.side-menu__link:focus-visible,
.side-menu a:hover,
.side-menu a:focus-visible {
  color: #fff2bf;
  transform: translateY(-2px);
}

.side-menu__icon {
  width: clamp(46px, 4.2vw, 64px);
  height: clamp(46px, 4.2vw, 64px);
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgb(0 0 0 / 0.72));
}

.landing {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  padding: clamp(92px, 12vh, 134px) calc(var(--side-width) + var(--page-pad))
    clamp(34px, 5.5vh, 58px) var(--page-pad);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: 40px;
}

.hero-panel,
.world-strip {
  --panel-shape: polygon(
    0 4%,
    2.8% 4%,
    3.2% 0,
    96.8% 0,
    97.5% 4%,
    100% 4%,
    100% 96%,
    97.5% 96%,
    96.8% 100%,
    3.2% 100%,
    2.8% 96%,
    0 96%
  );
  position: relative;
  z-index: 0;
  isolation: isolate;
  margin-inline: auto;
  /* box-shadow: 0 22px 80px rgb(0 0 0 / 0.46); */
  backdrop-filter: blur(6px);
}

.hero-panel {
  display: grid;
  min-height: clamp(330px, 48vh, 468px);
  align-content: center;
  justify-items: center;
  padding-block: clamp(48px, 7vh, 86px);
  padding-inline: clamp(72px, 8vw, 132px);
  text-align: center;
}

.hero-panel::after,
.world-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.hero-panel::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.5 4 L2.8 4 L3.2 0.5 L96.8 0.5 L97.5 4 L99.5 4 L99.5 96 L97.5 96 L96.8 99.5 L3.2 99.5 L2.8 96 L0.5 96 Z' fill='none' stroke='%23dba21b' stroke-width='1.15' stroke-linejoin='miter' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

.world-strip::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.5 8 L2.2 8 L3 0.5 L97 0.5 L97.8 8 L99.5 8 L99.5 92 L97.8 92 L97 99.5 L3 99.5 L2.2 92 L0.5 92 Z' fill='none' stroke='%23dba21b' stroke-width='1.15' stroke-linejoin='miter' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

.hero-panel::before,
.world-strip::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  clip-path: var(--panel-shape);
  filter: blur(2px) saturate(0.82);
  opacity: 1;
}

.hero-panel::before {
  clip-path: polygon(
    0 4.4%,
    2.8% 4.4%,
    3.2% 0.4%,
    96.8% 0.4%,
    97.5% 4.4%,
    100% 4.4%,
    100% 95.6%,
    97.5% 95.6%,
    96.8% 99.6%,
    3.2% 99.6%,
    2.8% 95.6%,
    0 95.6%
  );
  background: rgb(0 0 0 / 0.42);
  backdrop-filter: blur(3px) brightness(0.48) saturate(0.42);
  filter: none;
}

.hero-panel h1 {
  margin: 0 0 clamp(8px, 2vh, 16px);
  color: var(--gold);
  max-width: 100%;
  font-size: clamp(3.3rem, 6.3vw, 5.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  white-space: normal;
  text-shadow: 0 5px 20px rgb(0 0 0 / 0.62);
}

.hero-panel__lead {
  margin: 0;
  color: #fff7df;
  font-size: clamp(1.15rem, 1.74vw, 1.74rem);
  font-weight: 700;
  line-height: 1.7;
  text-shadow: 0 3px 14px rgb(0 0 0 / 0.75);
}

.hero-panel__copy {
  max-width: 720px;
  margin: clamp(8px, 1.4vh, 14px) 0 clamp(26px, 4vh, 42px);
  color: rgb(255 240 200 / 0.84);
  font-size: clamp(0.98rem, 1.12vw, 1.18rem);
  line-height: 2.15;
}

.ornate-button {
  position: relative;
  display: inline-grid;
  width: clamp(220px, 18vw, 280px);
  min-height: 84px;
  place-items: center;
  padding: 16px 40px 18px;
  color: var(--gold-bright);
  background: url("assets/images/btn.svg") center / 100% 100% no-repeat;
  border: 0;
  box-shadow: none;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  font-weight: 700;
  line-height: 1.2;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.ornate-button:hover,
.ornate-button:focus-visible {
  color: #fff5cc;
  transform: translateY(-1px);
}

.world-strip {
  --panel-shape: polygon(
    0 8%,
    2.2% 8%,
    3% 0,
    97% 0,
    97.8% 8%,
    100% 8%,
    100% 92%,
    97.8% 92%,
    97% 100%,
    3% 100%,
    2.2% 92%,
    0 92%
  );
  display: grid;
  width: min(100%, 1280px);
  min-height: clamp(160px, 22vh, 222px);
  grid-template-columns: 1fr 0.82fr 1fr;
  align-items: stretch;
  padding: clamp(22px, 3vh, 30px) clamp(28px, 4vw, 54px);
}

.world-strip::before {
  inset: 1px;
  /* background:
    linear-gradient(rgb(4 3 2 / 0.84), rgb(4 3 2 / 0.84)),
    url("assets/images/bg.webp") center 68% / cover no-repeat; */
  clip-path: var(--panel-shape);
  filter: blur(2px) saturate(0.82);
}

.world-card {
  display: grid;
  grid-template-rows: 34px auto auto;
  align-content: start;
  min-width: 0;
  padding-inline: clamp(12px, 2vw, 34px);
}

.world-card + .world-card {
  border-right: 1px solid var(--line);
}

.world-card h2,
.world-card h3 {
  align-self: start;
  margin: 0;
  color: var(--gold);
  font-size: clamp(1rem, 1.15vw, 1.22rem);
  font-weight: 700;
  line-height: 1.55;
}

.world-card p,
.world-card li {
  color: rgb(255 240 200 / 0.84);
  font-size: clamp(0.78rem, 0.9vw, 0.94rem);
  line-height: 2.1;
}

.world-card p,
.world-card ul {
  align-self: start;
  margin: 8px 0 0;
}

.world-card ul {
  padding: 0;
  list-style-position: inside;
}

.world-card--era {
  justify-items: center;
  text-align: center;
}

.world-card--era h2 {
  margin-bottom: 2px;
}

.world-card--era strong {
  display: block;
  margin-top: 10px;
  color: #fff6d8;
  font-size: clamp(1.35rem, 1.72vw, 1.8rem);
  font-weight: 800;
  line-height: 1.45;
}

.era-icon {
  width: clamp(58px, 5.2vw, 78px);
  margin-top: 10px;
  filter: drop-shadow(0 9px 16px rgb(0 0 0 / 0.8));
}

.read-more {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 26px;
  color: var(--gold-bright);
  border: 1px solid rgba(219, 162, 27, 0.9);
  border-radius: 12px;
  background: rgb(12 9 6 / 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 214, 120, 0.08),
    0 8px 20px rgb(0 0 0 / 0.15);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.35);
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.read-more:hover,
.read-more:focus-visible {
  color: #fff5cc;
  background: rgb(22 17 12 / 0.82);
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 214, 120, 0.18),
    0 12px 24px rgb(0 0 0 / 0.22);
}

.hero-stage {
  min-height: 100vh;
  padding: 24px 0 40px;
  position: relative;
  overflow: hidden;
}

.fantasy-shell.heroes-page {
  height: 100svh;
  min-height: 0;
  direction: rtl;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  background: none;
}

.heroes-page .hero-stage {
  display: flex;
  min-height: max(100svh, 1060px);
  align-items: stretch;
  overflow: visible;
  padding: 0;
}

.heroes-page .side-rail,
.heroes-page .top-nav {
  position: fixed;
}

.heroes-page .hero-background {
  position: fixed;
  filter: saturate(1.05) blur(1.8px);
}

.hero-stage::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(255, 214, 120, 0.12),
      transparent 22%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.5));
  pointer-events: none;
  z-index: 1;
}

.hero-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(1.1) blur(2px);
  transform: scale(1.04);
  transition:
    opacity 0.85s ease,
    filter 0.85s ease;
}

.hero-background__fade {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(8, 7, 5, 0.78);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-panel.hero-panel--detail {
  position: relative;
  z-index: 2;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(34px, 4.8vw, 56px);
  background: rgb(7 5 3 / 0.52);
  border: 1px solid rgb(219 162 27 / 0.16);
  border-radius: 34px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 100px rgb(0 0 0 / 0.48);
}

/* Heroes page: remove boxed panel and use full-page layout */
.heroes-page .hero-panel.hero-panel--detail {
  display: grid !important;
  min-height: max(100svh, 1060px) !important;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  align-content: end !important;
  justify-items: stretch !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-top: clamp(82px, 10vh, 112px) !important;
  padding-bottom: clamp(78px, 9vh, 108px) !important;
  padding-inline: 0 !important;
}

.heroes-page .hero-panel::before,
.heroes-page .hero-panel::after {
  display: none !important;
}

.heroes-page .hero-meta {
  grid-row: 2;
  width: min(78vw, 1320px);
  margin-right: calc(var(--side-width) + var(--page-pad) + 18px);
  margin-left: auto;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
  grid-auto-flow: column;
  gap: clamp(12px, 1.4vw, 20px);
  align-items: start;
  direction: ltr;
}

.heroes-page .hero-copy {
  grid-column: 2;
  direction: rtl;
  text-align: right;
}

.heroes-page .hero-panel h1 {
  margin-bottom: clamp(10px, 1.3vh, 16px);
  font-size: clamp(3rem, 4.6vw, 5rem);
  line-height: 1;
}

.heroes-page .hero-panel__lead {
  margin-bottom: clamp(8px, 1vh, 13px);
  font-size: clamp(1rem, 1.18vw, 1.34rem);
  line-height: 1.45;
}

.heroes-page .hero-panel__copy {
  max-width: 860px;
  margin: clamp(10px, 1.3vh, 16px) 0 0;
  font-size: clamp(0.78rem, 0.88vw, 0.98rem);
  line-height: 1.85;
}

.heroes-page .hero-portrait {
  display: none;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(1.1) blur(1.8px);
  transform: scale(1.04);
}

.hero-background__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(8, 7, 5, 0.74);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-meta,
.hero-bottom-grid,
.hero-carousel-controls {
  position: relative;
  z-index: 2;
}

.hero-meta,
.hero-bottom-grid {
  transition:
    opacity 260ms ease,
    transform 320ms ease;
}

.hero-meta {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 3.2vw, 40px);
  align-items: center;
}

.hero-type {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.hero-portrait {
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(7 5 3 / 0.62);
  border: 1px solid rgba(255, 214, 120, 0.12);
  border-radius: 28px;
}

.hero-portrait img {
  width: min(100%, 320px);
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 72px rgb(0 0 0 / 0.44);
}

.hero-bottom-grid {
  grid-row: 3;
  margin-top: clamp(8px, 0.8vw, 12px);
  width: min(78vw, 1320px);
  margin-right: calc(var(--side-width) + var(--page-pad) + 18px);
  margin-left: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(330px, 24vw, 420px);
  align-items: stretch;
  direction: ltr;
  gap: clamp(10px, 1vw, 14px);
}

.hero-panel__box {
  padding: clamp(14px, 1.2vw, 18px);
  background: rgb(8 6 4 / 0.72);
  border: 1px solid rgb(255 214 120 / 0.08);
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.03);
}

.hero-panel__box h2 {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-abilities > h2 {
  display: none;
}

.hero-stats {
  grid-column: 1;
  align-self: end;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  padding: clamp(12px, 1vw, 16px);
  background: rgb(0 0 0 / 0.54);
  border: 1px solid rgb(242 207 117 / 0.62);
  border-radius: 8px;
  box-shadow:
    inset 0 0 28px rgb(255 214 120 / 0.035),
    0 16px 42px rgb(0 0 0 / 0.28);
  direction: ltr;
  text-align: left;
}

.hero-stats > h2 {
  display: none;
}

.hero-stats ul,
.hero-status ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hero-stats ul {
  gap: 7px;
}

.hero-status {
  min-height: clamp(342px, 39vh, 424px);
  max-height: none;
  align-self: center;
  padding: clamp(36px, 3vw, 46px) clamp(32px, 2.8vw, 42px);
  color: #211407;
  background: url("assets/images/mini-paper.webp") center / 100% 100% no-repeat;
  border: 0;
  border-radius: 12px;
  box-shadow:
    0 22px 58px rgb(0 0 0 / 0.34),
    inset 0 0 0 1px rgb(88 52 18 / 0.22);
  direction: rtl;
}

.hero-status ul {
  gap: clamp(10px, 1.1vw, 15px);
  grid-template-columns: 1fr;
}

.hero-status h2 {
  position: relative;
  margin: 0 0 clamp(18px, 1.7vw, 24px);
  color: #060503;
  font-size: clamp(1.05rem, 1.25vw, 1.34rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.hero-status h2::after {
  content: "";
  display: block;
  width: min(76%, 300px);
  height: 10px;
  margin: 8px auto 0;
  background:
    linear-gradient(#8c642e, #8c642e) left 50% / calc(50% - 18px) 1px no-repeat,
    linear-gradient(#8c642e, #8c642e) right 50% / calc(50% - 18px) 1px no-repeat;
  opacity: 0.78;
}

.hero-status h2::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 6px;
  height: 6px;
  background: #8c642e;
  transform: translateX(-50%) rotate(45deg);
  box-shadow:
    -14px 14px 0 -2px #8c642e,
    14px -14px 0 -2px #8c642e;
}

.hero-status-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(44px, 3.6vw, 56px);
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  min-height: clamp(48px, 4vw, 58px);
  padding: 0;
  list-style: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  direction: ltr;
}

.hero-status-icon {
  grid-column: 2;
  width: clamp(44px, 3.6vw, 56px);
  height: clamp(44px, 3.6vw, 56px);
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 3px 5px rgb(48 27 9 / 0.42));
}

.hero-status-content {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 3px;
  justify-items: end;
  text-align: right;
}

.hero-status-label {
  color: #090603;
  font-size: clamp(0.8rem, 0.9vw, 0.98rem);
  font-weight: 800;
  line-height: 1.3;
}

.hero-status-value {
  color: #251609;
  font-size: clamp(0.74rem, 0.82vw, 0.9rem);
  line-height: 1.35;
}

.hero-stat {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: rgb(255 238 188 / 0.92);
  font-size: clamp(0.74rem, 0.78vw, 0.86rem);
  line-height: 1.5;
  direction: ltr;
  text-align: left;
  white-space: nowrap;
}

.hero-stat::before {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold-bright);
  border-radius: 50%;
  color: var(--gold-bright);
  background: rgb(0 0 0 / 0.28);
  font-family: "Font Awesome 7 Free";
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.hero-stat--hp::before {
  content: "\f004";
}

.hero-stat--mana::before {
  content: "\f043";
}

.hero-stat--damage::before {
  content: "\f005";
}

.hero-stat--range::before {
  content: "\f061";
}

.hero-stat strong::after {
  content: " :";
}

.hero-stat strong {
  color: var(--gold-bright);
}

.hero-stat span {
  color: var(--cream);
}

.hero-abilities {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  direction: rtl;
}

#heroAbilities {
  min-height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(96px, 1fr)) minmax(105px, 0.82fr);
  direction: ltr;
  gap: clamp(8px, 0.8vw, 12px);
}

.hero-ability {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(46px, 3.8vw, 60px);
  align-items: start;
  gap: clamp(10px, 1vw, 14px);
  min-height: 0;
  padding: clamp(12px, 1.1vw, 16px);
  background:
    linear-gradient(135deg, rgb(255 214 120 / 0.08), transparent 36%),
    rgb(0 0 0 / 0.7);
  border: 1px solid rgb(242 207 117 / 0.9);
  border-radius: 16px;
  box-shadow:
    inset 0 0 34px rgb(255 214 120 / 0.035),
    0 14px 36px rgb(0 0 0 / 0.26);
  direction: ltr;
  overflow: hidden;
}

.hero-ability--ultimate {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) clamp(52px, 4.3vw, 66px);
  align-items: center;
  padding-inline: clamp(18px, 2vw, 28px);
}

.hero-ability img {
  grid-column: 2;
  width: clamp(46px, 3.8vw, 60px);
  height: clamp(46px, 3.8vw, 60px);
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 8px 16px rgb(0 0 0 / 0.54));
}

.hero-ability--ultimate img {
  width: clamp(52px, 4.3vw, 66px);
  height: clamp(52px, 4.3vw, 66px);
}

.hero-ability-content {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  align-content: start;
  justify-items: end;
  min-width: 0;
  direction: ltr;
  text-align: right;
}

.hero-ability-content span {
  margin-bottom: 2px;
  color: var(--gold);
  font-size: clamp(0.68rem, 0.72vw, 0.8rem);
  font-weight: 800;
  line-height: 1.1;
}

.hero-ability h3 {
  margin: 0 0 clamp(7px, 0.8vw, 11px);
  color: var(--gold-bright);
  font-size: clamp(0.82rem, 0.92vw, 1rem);
  font-weight: 400;
  line-height: 1.45;
}

.hero-ability p {
  margin: 0;
  color: rgb(255 224 144 / 0.95);
  font-size: clamp(0.7rem, 0.78vw, 0.86rem);
  line-height: 1.65;
}

.hero-ability--ultimate .hero-ability-content {
  align-content: center;
}

.hero-ability--ultimate h3 {
  margin-bottom: clamp(6px, 0.7vw, 10px);
}

.hero-carousel-controls {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 12;
  grid-row: 4;
  justify-self: center;
  margin-top: clamp(84px, 10.8vh, 126px);
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 18px;
  width: max-content;
  transform: none;
  transition:
    opacity 260ms ease,
    transform 320ms ease;
}

.hero-nav-button {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid rgba(255, 214, 120, 0.74);
  background: rgb(3 3 2 / 0.42);
  border-radius: 13px;
  transform: rotate(45deg);
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.hero-nav-button:hover,
.hero-nav-button:focus-visible {
  transform: rotate(45deg) scale(1.08);
  background: rgb(255 214 120 / 0.08);
  border-color: var(--gold-bright);
}

.hero-nav-button::before {
  content: "";
  position: absolute;
  color: var(--gold-bright);
  background: transparent;
  font-family: "Font Awesome 7 Free";
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-45deg);
  transform-origin: center;
  transition: color 220ms ease;
}

.hero-nav-button::after {
  content: none;
}

.hero-nav-button.hero-prev::before {
  content: "\f061";
  transform: rotate(-45deg);
}

.hero-nav-button.hero-prev::after {
  content: none;
}

.hero-nav-button.hero-next::before {
  content: "\f060";
  transform: rotate(-45deg);
}

.hero-nav-button.hero-next::after {
  content: none;
}

.hero-nav-button:hover::before,
.hero-nav-button:focus-visible::before {
  color: #fff1b8;
}

.hero-carousel-controls {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 12;
  grid-row: 4;
  justify-self: center;
  margin-top: clamp(84px, 10.8vh, 126px);
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 18px;
  width: max-content;
  transform: none;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

.hero-carousel-viewport {
  width: max-content;
  overflow: hidden;
  padding: 34px 0;
  margin: -34px 0;
}

.hero-carousel {
  --slide-x: 0%;
  --carousel-gap: 30px;
  --hero-card-size: clamp(108px, 7.8vw, 142px);
  --hero-active-column-extra: 50px;
  display: grid;
  grid-template-columns:
    var(--hero-card-size)
    var(--hero-card-size)
    calc(var(--hero-card-size) + var(--hero-active-column-extra))
    var(--hero-card-size)
    var(--hero-card-size);
  direction: ltr;
  gap: var(--carousel-gap);
  width: max-content;
  justify-self: center;
  padding: 6px 0 8px;
  overflow: visible;
  justify-items: center;
  align-items: center;
  transition:
    opacity 260ms ease,
    transform 320ms ease;
}

.hero-carousel.is-expanded {
  grid-auto-flow: column;
  grid-auto-columns: var(--hero-card-size);
  grid-template-columns: none;
  justify-content: start;
}

.hero-card {
  position: relative;
  width: var(--hero-card-size);
  aspect-ratio: 1/1;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  scroll-snap-align: center;
  transition:
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 220ms ease,
    opacity 220ms ease;
}

.hero-card:hover,
.hero-card:focus-visible {
  filter: brightness(1.12) drop-shadow(0 0 18px rgb(219 162 27 / 0.34));
}

.hero-card img {
  width: 74%;
  height: 74%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: center/contain no-repeat url("assets/images/hero-frame.webp");
  pointer-events: none;
}

.hero-card--active {
  transform: scale(1.3);
  box-shadow: none;
  filter: drop-shadow(0 16px 28px rgb(0 0 0 / 0.52));
  z-index: 6;
}

.hero-carousel.is-transitioning .hero-card--active {
  transform: scale(1);
  filter: none;
}

.hero-card--active:hover,
.hero-card--active:focus-visible {
  transform: scale(1.3);
  filter: brightness(1.08) drop-shadow(0 0 24px rgb(242 207 117 / 0.36));
}

.hero-carousel.is-transitioning .hero-card--active:hover,
.hero-carousel.is-transitioning .hero-card--active:focus-visible {
  transform: scale(1);
  filter: none;
}

.hero-card--active::after {
  /* removed rectangular gold border overlay; frame image provides decoration */
  content: none;
}

.hero-panel--detail.is-hero-changing .hero-meta,
.hero-panel--detail.is-hero-changing .hero-bottom-grid {
  opacity: 0;
  transform: translateY(10px);
}

.hero-carousel.is-sliding {
  transform: translateX(var(--slide-x));
}

/* Comics page */
.fantasy-shell.comics-page {
  min-height: 100vh;
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.3), rgb(0 0 0 / 0.16)),
    url("assets/images/comic-bg.webp") center / cover fixed no-repeat;
}

.comics-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgb(0 0 0 / 0.46),
      transparent 42%,
      rgb(0 0 0 / 0.2)
    ),
    radial-gradient(circle at 57% 28%, rgb(208 153 43 / 0.08), transparent 34%);
}

.comics-page .side-rail,
.comics-page .top-nav {
  position: fixed;
}

.comics-page .side-menu__link.is-active {
  color: #fff2bf;
  filter: drop-shadow(0 0 10px rgb(219 162 27 / 0.26));
}

.comics-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(
    calc(100vw - var(--side-width) - var(--page-pad) - var(--page-pad)),
    1400px
  );
  min-height: 100vh;
  margin-inline: auto;
  padding: clamp(82px, 9vh, 100px) 0 clamp(28px, 4vh, 44px);
  transform: translateX(calc(var(--side-width) / -2));
}

.comic-intro {
  display: grid;
  grid-template-columns: minmax(390px, 0.76fr) minmax(570px, 1.24fr);
  direction: ltr;
  gap: clamp(42px, 5vw, 76px);
  align-items: center;
}

.comic-cover {
  margin: 0;
}

.comic-cover img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 11px;
  box-shadow: 0 22px 58px rgb(0 0 0 / 0.42);
}

.comic-summary {
  direction: rtl;
  text-align: right;
}

.comic-summary h1 {
  margin: 0 0 clamp(12px, 2vh, 20px);
  color: var(--gold);
  font-size: clamp(2.6rem, 4.3vw, 4.7rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 5px 20px rgb(0 0 0 / 0.72);
}

.comic-summary > p {
  max-width: 840px;
  margin: 0;
  color: rgb(255 231 167 / 0.92);
  font-size: clamp(0.9rem, 1.13vw, 1.14rem);
  line-height: 2.25;
  text-shadow: 0 2px 8px rgb(0 0 0 / 0.85);
}

.comic-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: clamp(14px, 2.5vw, 42px);
  max-width: 760px;
  margin: clamp(34px, 5vh, 58px) 0 0 auto;
  padding: 0;
  list-style: none;
}

.comic-facts li {
  display: grid;
  justify-items: center;
  text-align: center;
}

.comic-facts img {
  width: clamp(52px, 4.6vw, 70px);
  height: clamp(52px, 4.6vw, 70px);
  margin-bottom: 8px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgb(0 0 0 / 0.72));
}

.comic-facts strong {
  color: var(--gold);
  font-size: clamp(0.76rem, 0.9vw, 0.94rem);
  font-weight: 600;
}

.comic-facts span {
  margin-top: 5px;
  color: rgb(255 231 167 / 0.84);
  font-size: clamp(0.74rem, 0.86vw, 0.9rem);
}

.comic-chapters {
  margin-top: clamp(18px, 2.4vh, 30px);
}

.comic-chapters > h2 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: clamp(0.92rem, 1.08vw, 1.12rem);
  font-weight: 500;
  direction: ltr;
  text-align: right;
}

.comic-chapters > h2 span {
  display: inline-block;
  margin-left: 6px;
}

.comic-chapters__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
  direction: rtl;
}

.comic-chapter {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #080706;
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.34);
  transition:
    filter 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.comic-chapter::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      0deg,
      rgb(0 0 0 / 0.92) 0%,
      rgb(0 0 0 / 0.62) 24%,
      transparent 62%
    ),
    linear-gradient(90deg, rgb(0 0 0 / 0.34), transparent 68%);
  transition: background 220ms ease;
}

.comic-chapter > img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: filter 220ms ease;
}

.comic-chapter:hover,
.comic-chapter:focus-within {
  box-shadow:
    0 15px 34px rgb(0 0 0 / 0.48),
    0 0 18px rgb(219 162 27 / 0.2);
  filter: brightness(1.06) saturate(1.08);
  transform: translateY(-2px);
}

.comic-chapter:hover::after,
.comic-chapter:focus-within::after {
  background:
    linear-gradient(
      0deg,
      rgb(0 0 0 / 0.94) 0%,
      rgb(0 0 0 / 0.54) 26%,
      transparent 64%
    ),
    linear-gradient(90deg, rgb(219 162 27 / 0.08), transparent 72%);
}

.comic-chapter__caption {
  position: absolute;
  right: 14px;
  bottom: 10px;
  left: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--gold-bright);
}

.comic-chapter__number {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgb(0 0 0 / 0.48);
  font-size: 0.9rem;
}

.comic-chapter h3 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(0.75rem, 0.9vw, 0.96rem);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comic-chapter__status {
  margin-right: auto;
  color: #52a411;
  font-size: clamp(0.55rem, 0.62vw, 0.66rem);
  font-weight: 700;
  white-space: nowrap;
}

.comic-chapter--available {
  cursor: pointer;
}

.comic-chapter--available::before {
  content: "برای خواندن کلیک کنید";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 5px 10px;
  color: #fff1bd;
  border: 1px solid rgb(219 162 27 / 0.52);
  border-radius: 999px;
  background: rgb(3 2 1 / 0.7);
  box-shadow: 0 4px 15px rgb(0 0 0 / 0.34);
  font-size: clamp(0.54rem, 0.62vw, 0.66rem);
  opacity: 0;
  transform: translateY(-5px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.comic-chapter--available:hover::before,
.comic-chapter--available:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.comic-chapter--available:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

body.comic-reader-open {
  overflow: hidden;
}

.comic-reader[hidden] {
  display: none;
}

.comic-reader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 30px);
  direction: rtl;
  opacity: 0;
  transition: opacity 260ms ease;
}

.comic-reader.is-open {
  opacity: 1;
}

.comic-reader__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgb(92 61 20 / 0.2), transparent 42%),
    rgb(0 0 0 / 0.88);
  backdrop-filter: blur(10px);
}

.comic-reader__panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(94vw, 1500px);
  max-height: 96vh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: var(--cream);
  transform: translateY(18px) scale(0.985);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.comic-reader.is-open .comic-reader__panel {
  transform: none;
}

.comic-reader__header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 0 74px 18px;
  text-align: center;
}

.comic-reader__header span {
  display: block;
  margin-bottom: 9px;
  color: rgb(242 207 117 / 0.72);
  font-size: 0.74rem;
}

.comic-reader__header h2 {
  margin: 0;
  color: var(--gold-bright);
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  line-height: 1.35;
  text-shadow: 0 4px 18px #000;
}

.comic-reader__close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0 0 4px;
  color: var(--gold-bright);
  border: 1px solid rgb(219 162 27 / 0.62);
  border-radius: 50%;
  background: rgb(8 5 2 / 0.76);
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.comic-reader__close:hover,
.comic-reader__close:focus-visible {
  color: #fff7d7;
  background: rgb(46 31 12 / 0.9);
  transform: rotate(8deg);
}

.comic-book-shell {
  display: grid;
  min-height: 0;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  gap: clamp(8px, 1.5vw, 24px);
  direction: ltr;
}

.comic-book {
  width: 100%;
  max-width: min(1280px, calc(172vh - 258px));
  margin-inline: auto;
  perspective: 2400px;
}

.comic-book__cover {
  position: relative;
  width: min(100%, 1280px);
  margin-inline: auto;
  padding: clamp(13px, 1.4vw, 20px);
  border: 2px solid #5f4018;
  border-radius: 12px;
  background:
    linear-gradient(
      90deg,
      #241406,
      #513317 4%,
      #2a1708 49%,
      #1b0e04 50%,
      #513317 96%,
      #211105
    ),
    #241507;
  box-shadow:
    0 36px 100px rgb(0 0 0 / 0.78),
    inset 0 0 0 3px rgb(226 172 68 / 0.16),
    inset 0 0 32px #000;
}

.comic-book__cover::before,
.comic-book__cover::after {
  content: "";
  position: absolute;
  top: 4%;
  bottom: 4%;
  z-index: 0;
  width: 15px;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.5);
  filter: blur(8px);
}

.comic-book__cover::before {
  left: -5px;
}

.comic-book__cover::after {
  right: -5px;
}

.comic-book__pages {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 2 / 1.12;
  direction: ltr;
  perspective: 2600px;
}

.comic-book__page,
.comic-book__turn-face {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 40% 30%,
      rgb(255 244 200 / 0.46),
      transparent 40%
    ),
    linear-gradient(135deg, #d1ae6d, #ead49b 48%, #ba8d4d);
}

.comic-book__page--left {
  border-radius: 10px 2px 2px 10px;
  box-shadow:
    inset -22px 0 28px rgb(48 25 4 / 0.22),
    inset 0 0 24px rgb(82 43 6 / 0.18);
}

.comic-book__page--right {
  border-radius: 2px 10px 10px 2px;
  box-shadow:
    inset 22px 0 28px rgb(48 25 4 / 0.22),
    inset 0 0 24px rgb(82 43 6 / 0.18);
}

.comic-book__page img,
.comic-book__turn-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #070604;
}

.comic-book__page figcaption {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 2;
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding-inline: 6px;
  color: #4b2f12;
  border-radius: 50%;
  background: rgb(236 209 148 / 0.76);
  font-size: 0.72rem;
  transform: none;
}

.comic-book__page.is-missing::after,
.comic-book__turn-face.is-missing::after {
  content: "صفحه هنوز در پوشه قرار نگرفته است";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #4b2f12;
  text-align: center;
  font-weight: 700;
}

.comic-book__gutter {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 8;
  width: 38px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(50 26 5 / 0.34) 38%,
    rgb(0 0 0 / 0.54) 50%,
    rgb(50 26 5 / 0.3) 62%,
    transparent
  );
  transform: none;
}

.comic-book__turn {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 7;
  display: none;
  width: 50%;
  transform-style: preserve-3d;
}

.comic-book__turn-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.comic-book__turn-front {
  z-index: 2;
  transform: rotateY(0deg) translateZ(0.5px);
}

.comic-book__turn-back {
  z-index: 1;
  transform: rotateY(180deg) translateZ(0.5px);
}

.comic-book__turn.is-turning-next {
  left: 0;
  display: block;
  transform-origin: right center;
  animation: comic-page-next 820ms cubic-bezier(0.62, 0.02, 0.28, 1) forwards;
}

.comic-book__turn.is-turning-prev {
  right: 0;
  display: block;
  transform-origin: left center;
  animation: comic-page-prev 820ms cubic-bezier(0.62, 0.02, 0.28, 1) forwards;
}

.comic-book__turn.is-turning-next .comic-book__turn-front,
.comic-book__turn.is-turning-prev .comic-book__turn-back {
  box-shadow: inset -24px 0 30px rgb(0 0 0 / 0.28);
}

.comic-book__turn.is-turning-next .comic-book__turn-back,
.comic-book__turn.is-turning-prev .comic-book__turn-front {
  box-shadow: inset 24px 0 30px rgb(0 0 0 / 0.28);
}

@keyframes comic-page-next {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(180deg);
  }
}

@keyframes comic-page-prev {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(-180deg);
  }
}

.comic-book-nav {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  padding: 0;
  color: #fff0bc;
  border: 1px solid #d3a84d;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #e2ba65, #8a5a1e 62%, #3c220b);
  box-shadow:
    0 8px 22px rgb(0 0 0 / 0.62),
    inset 0 0 0 3px rgb(255 226 147 / 0.14);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 2px 5px #321a04;
  transition:
    filter 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.comic-book-nav:hover:not(:disabled),
.comic-book-nav:focus-visible:not(:disabled) {
  filter: brightness(1.18);
  transform: scale(1.06);
}

.comic-book-nav:disabled {
  cursor: default;
  opacity: 0.24;
}

.comic-reader__footer {
  display: flex;
  justify-content: center;
  gap: 28px;
  min-height: 48px;
  align-items: center;
  color: rgb(255 235 182 / 0.62);
  font-size: clamp(0.68rem, 0.8vw, 0.82rem);
}

.comic-reader__footer span:first-child {
  color: var(--gold-bright);
}

@media (prefers-reduced-motion: reduce) {
  .comic-book__turn.is-turning-next,
  .comic-book__turn.is-turning-prev {
    animation-duration: 1ms;
  }
}

/* World map page */
.fantasy-shell.map-page {
  height: 100svh;
  min-height: 0;
  direction: rtl;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-color: rgb(219 162 27 / 0.9) rgb(5 4 3 / 0.72);
  scrollbar-width: thin;
  background: #050403;
}

.fantasy-shell.map-page::-webkit-scrollbar {
  width: var(--scrollbar-size);
}

.fantasy-shell.map-page::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgb(4 3 2 / 0.78), rgb(17 12 6 / 0.46)),
    rgb(3 3 2 / 0.72);
  border-inline: 1px solid rgb(219 162 27 / 0.2);
}

.fantasy-shell.map-page::-webkit-scrollbar-thumb {
  min-height: 64px;
  border: 3px solid rgb(5 4 3 / 0.72);
  border-radius: 999px;
  background:
    linear-gradient(180deg, #ffe08a 0%, #dba21b 42%, #6f4510 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 243 189 / 0.42),
    0 0 12px rgb(219 162 27 / 0.38);
}

.map-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    url("assets/images/Map page.webp") right center / cover no-repeat,
    #050403;
}

.map-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.22), transparent 30%),
    linear-gradient(180deg, rgb(0 0 0 / 0.12), transparent 30%, rgb(0 0 0 / 0.22));
  box-shadow:
    inset 0 0 0 1px rgb(255 231 166 / 0.12),
    inset 0 0 110px rgb(0 0 0 / 0.7);
}

.map-page .side-rail,
.map-page .top-nav {
  position: fixed;
}

.map-page .side-menu__link.is-active {
  color: #fff3bd;
  filter: drop-shadow(0 0 12px rgb(219 162 27 / 0.28));
}

.map-page__content {
  position: relative;
  z-index: 2;
  width: calc(100% - var(--side-width));
  height: auto;
  min-height: max(100svh, 1060px);
  margin-right: var(--side-width);
  direction: ltr;
  padding: clamp(116px, 15vh, 162px) 0 clamp(34px, 5vh, 58px)
    clamp(54px, 6.5vw, 110px);
}

.map-lore {
  position: relative;
  z-index: 1;
  width: clamp(286px, 21vw, 390px);
  min-height: 740px;
  margin: 0;
  direction: rtl;
  color: #1c1208;
  background: url("assets/images/longpaper.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 20px 35px rgb(0 0 0 / 0.48));
}

.side-rail--mobile-only {
  display: none;
}

.map-lore::before {
  content: "";
  position: absolute;
  inset: 5px -9px -7px 7px;
  z-index: -2;
  background: url("assets/images/longpaper.png") center / 100% 100% no-repeat;
  filter: brightness(0.76) sepia(0.18)
    drop-shadow(0 14px 24px rgb(0 0 0 / 0.34));
  transform: rotate(-2.2deg);
  transform-origin: center;
}

.map-lore::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/images/longpaper.png") center / 100% 100% no-repeat;
  pointer-events: none;
}

.map-lore__inner {
  display: flex;
  min-height: 740px;
  flex-direction: column;
  padding: clamp(48px, 5.4vh, 66px) clamp(40px, 3.1vw, 56px)
    clamp(44px, 5vh, 62px);
  text-align: center;
}

.map-lore header h1 {
  margin: 0;
  color: #080503;
  font-size: clamp(1.85rem, 2.25vw, 2.45rem);
  font-weight: 800;
  line-height: 1.35;
}

.map-lore header h2 {
  margin: 4px 0 0;
  color: #1c1208;
  font-size: clamp(1.02rem, 1.22vw, 1.28rem);
  font-weight: 700;
  line-height: 1.55;
}

.map-lore header > p {
  margin: 9px 0 0;
  font-size: clamp(0.9rem, 1vw, 1.04rem);
}

.map-lore__copy {
  margin-top: clamp(12px, 1.5vh, 18px);
}

.map-lore__copy p,
.map-lore__event p {
  margin: 0;
  font-size: clamp(0.92rem, 1.05vw, 1.08rem);
  line-height: 2.05;
}

.map-lore__copy p + p,
.map-lore__event p + p {
  margin-top: 4px;
}

.map-lore__event {
  margin-top: clamp(20px, 2.6vh, 30px);
  padding-top: clamp(18px, 2.2vh, 26px);
  border-top: 1px solid rgb(73 45 18 / 0.25);
}

.map-lore__event strong {
  color: #090603;
}

.map-lore__button {
  width: 100%;
  min-height: 48px;
  margin-top: clamp(18px, 2.3vh, 26px);
  color: #f1c654;
  border-color: #8f6416;
  border-radius: 2px;
  background: #261704;
  font-size: clamp(0.98rem, 1.06vw, 1.12rem);
  font-weight: 800;
}

.map-progress {
  position: relative;
  z-index: 2;
  display: grid;
  width: clamp(290px, 23vw, 420px);
  margin: clamp(18px, 2.6vh, 30px) 0 0;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  align-items: end;
  column-gap: clamp(22px, 2.4vw, 42px);
  row-gap: 7px;
  direction: ltr;
}

.map-progress > img {
  grid-column: 1;
  grid-row: 1;
  width: clamp(72px, 6vw, 100px);
  filter: drop-shadow(0 9px 15px rgb(0 0 0 / 0.54));
}

.map-progress > strong {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  padding-bottom: 3px;
  color: var(--gold-bright);
  font-size: clamp(1rem, 1.15vw, 1.22rem);
  font-weight: 700;
  direction: rtl;
}

.map-progress > span {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  color: rgb(255 234 176 / 0.78);
  font-size: clamp(0.78rem, 0.88vw, 0.92rem);
  direction: rtl;
}

.map-progress__bar {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 235 179 / 0.24);
}

.map-progress__bar i {
  display: block;
  width: 16.666%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold-bright);
  box-shadow: 0 0 10px rgb(242 207 117 / 0.42);
}

.map-progress > small {
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
  color: var(--gold-bright);
  font-size: clamp(0.86rem, 0.96vw, 1rem);
  font-weight: 600;
  direction: ltr;
}

@media (max-width: 760px) {
  html:has(.map-page),
  body:has(.map-page) {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .fantasy-shell.map-page {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
    background: #050403;
  }

  .map-page::before {
    display: none;
  }

  .map-page__content {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 100svh;
    height: auto;
    margin: 0;
    overflow: visible;
    padding: 82px 0 calc(34px + env(safe-area-inset-bottom));
    grid-template-rows: minmax(0, auto) auto;
  }

  .map-page__content::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 768 / 1047;
    height: auto;
    min-height: 0;
    background:
      linear-gradient(
        180deg,
        rgb(0 0 0 / 0.08),
        transparent 66%,
        rgb(0 0 0 / 0.18)
      ),
      url("assets/images/Map page responsive.webp") center top / 100% auto
        no-repeat;
  }

  .map-page__content::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    height: calc(100% - min(108vw, 560px) + 80px);
    min-height: 680px;
    background:
      linear-gradient(
        180deg,
        rgb(0 0 0 / 0),
        rgb(0 0 0 / 0.2) 18%,
        rgb(0 0 0 / 0.54) 100%
      ),
      url("assets/images/mapSecondaryBg.webp") center top / cover repeat-y;
  }

  .map-lore {
    position: relative;
    inset: auto;
    width: min(calc(100% - 48px), 328px);
    min-height: 560px;
    margin: -10px auto 0;
    transform: none;
  }

  .map-lore::before {
    display: none;
  }

  .map-lore__inner {
    min-height: 560px;
    overflow: hidden;
    padding: 62px 34px 54px;
  }

  .map-lore header h1 {
    font-size: 1.35rem;
  }

  .map-lore header h2 {
    font-size: 0.78rem;
  }

  .map-lore__copy p,
  .map-lore__event p {
    font-size: 0.76rem;
  }

  .map-progress {
    position: absolute;
    top: calc(82px + min(96vw, 334px));
    bottom: auto;
    right: auto;
    left: 14px;
    z-index: 4;
    width: min(58vw, 230px);
    margin: 0;
    column-gap: 9px;
    row-gap: 4px;
    transform: none;
  }

  .map-progress > img {
    width: 42px;
  }

  .map-progress > strong {
    font-size: 0.72rem;
    text-shadow: 0 2px 7px rgb(0 0 0 / 0.85);
  }

  .map-progress > span {
    font-size: 0.64rem;
    text-shadow: 0 2px 7px rgb(0 0 0 / 0.85);
  }

  .map-progress > small {
    font-size: 0.72rem;
    text-shadow: 0 2px 7px rgb(0 0 0 / 0.85);
  }
}

/* Asterhold city */
.asterhold-page {
  position: relative;
  isolation: isolate;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  color: var(--cream);
  background:
    linear-gradient(
      180deg,
      rgb(0 0 0 / 0.08),
      rgb(0 0 0 / 0.05) 56%,
      rgb(0 0 0 / 0.64)
    ),
    url("assets/images/citybg.webp") center / cover no-repeat;
}

.asterhold-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow:
    inset 0 0 100px rgb(0 0 0 / 0.34),
    inset 0 -140px 160px rgb(0 0 0 / 0.38);
}

.asterhold-back {
  position: absolute;
  top: 22px;
  left: 28px;
  z-index: 5;
  padding: 8px 15px;
  color: rgb(255 240 190 / 0.82);
  border: 1px solid rgb(219 162 27 / 0.4);
  border-radius: 9px;
  background: rgb(5 4 3 / 0.42);
  backdrop-filter: blur(6px);
  font-size: 0.74rem;
}

.asterhold-layout {
  display: grid;
  width: 100%;
  min-height: 100vh;
  grid-template-columns: minmax(310px, 27%) minmax(0, 1fr) minmax(350px, 29%);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(16px, 1.6vw, 28px);
  padding: clamp(26px, 3vh, 42px) clamp(26px, 2.7vw, 52px) 0;
  direction: ltr;
}

.asterhold-side-cards {
  display: grid;
  grid-column: 1;
  grid-row: 1 / -1;
  align-content: center;
  gap: clamp(14px, 2vh, 24px);
  padding-bottom: clamp(220px, 25vh, 300px);
  direction: rtl;
}

.asterhold-feature-card {
  display: grid;
  min-height: clamp(230px, 27vh, 320px);
  grid-template-columns: minmax(120px, 46%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgb(219 162 27 / 0.75);
  border-radius: 14px;
  background: rgb(3 3 2 / 0.84);
  box-shadow: 0 22px 50px rgb(0 0 0 / 0.34);
}

.asterhold-feature-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asterhold-feature-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(18px, 1.8vw, 28px);
}

.asterhold-feature-card h2 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: clamp(1.05rem, 1.25vw, 1.4rem);
}

.asterhold-feature-card p {
  margin: 0;
  color: rgb(255 235 180 / 0.78);
  font-size: clamp(0.72rem, 0.82vw, 0.9rem);
  line-height: 2;
}

.asterhold-feature-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: auto;
  padding-top: 12px;
  color: var(--gold);
  font-size: 0.78rem;
}

.asterhold-intro {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  padding: clamp(52px, 5vw, 82px) clamp(36px, 3.5vw, 62px);
  color: var(--gold-bright);
  border: 1px solid rgb(219 162 27 / 0.72);
  border-radius: 15px;
  background: rgb(4 4 3 / 0.64);
  box-shadow: 0 28px 70px rgb(0 0 0 / 0.35);
  backdrop-filter: blur(12px) saturate(0.72);
  text-align: center;
  direction: rtl;
}

.asterhold-intro::before,
.asterhold-intro::after {
  content: "";
  position: absolute;
  right: 24%;
  left: 24%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.asterhold-intro::before {
  top: 16px;
}

.asterhold-intro::after {
  bottom: 16px;
}

.asterhold-emblem {
  display: grid;
  width: 90px;
  height: 58px;
  margin: 0 auto 8px;
  place-items: center;
}

.asterhold-emblem i {
  width: 36px;
  height: 36px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgb(219 162 27 / 0.1),
    0 0 22px rgb(219 162 27 / 0.18);
}

.asterhold-intro h1 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(2.5rem, 4vw, 5rem);
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 4px 18px #000;
}

.asterhold-intro h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0 18px;
  color: var(--gold-bright);
  font-size: clamp(1rem, 1.35vw, 1.5rem);
  font-weight: 500;
}

.asterhold-intro h2::before,
.asterhold-intro h2::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.asterhold-intro h2::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.asterhold-intro p {
  margin: 0;
  color: rgb(255 236 184 / 0.88);
  font-size: clamp(0.93rem, 1.2vw, 1.28rem);
  line-height: 2.15;
}

.asterhold-games {
  --games-shape: polygon(
    0 5%,
    2.5% 5%,
    3.2% 0,
    96.8% 0,
    97.5% 5%,
    100% 5%,
    100% 100%,
    0 100%
  );
  position: relative;
  display: grid;
  min-height: clamp(230px, 29vh, 330px);
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: minmax(240px, 0.72fr) minmax(420px, 1.56fr) minmax(
      240px,
      0.72fr
    );
  align-items: center;
  gap: clamp(24px, 3.5vw, 60px);
  padding: clamp(36px, 4vh, 56px) clamp(42px, 4vw, 78px) clamp(26px, 3vh, 42px);
  clip-path: var(--games-shape);
  border-top: 1px solid var(--gold);
  background:
    linear-gradient(rgb(3 3 2 / 0.82), rgb(3 3 2 / 0.9)),
    url("assets/images/citybg.webp") center bottom / cover no-repeat;
  box-shadow: inset 0 0 50px rgb(0 0 0 / 0.4);
  direction: ltr;
}

.asterhold-games__image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border: 1px solid rgb(219 162 27 / 0.8);
  clip-path: polygon(
    0 7%,
    3% 7%,
    4% 0,
    96% 0,
    97% 7%,
    100% 7%,
    100% 93%,
    97% 93%,
    96% 100%,
    4% 100%,
    3% 93%,
    0 93%
  );
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.4);
}

.asterhold-games__content {
  direction: rtl;
  text-align: center;
}

.asterhold-games__content h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  color: var(--gold);
  font-size: clamp(1.25rem, 1.65vw, 1.85rem);
}

.asterhold-games__content h2::before,
.asterhold-games__content h2::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.asterhold-games__content h2::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.asterhold-games__content p {
  max-width: 680px;
  margin: 0 auto 24px;
  color: rgb(255 236 184 / 0.82);
  font-size: clamp(0.84rem, 1vw, 1.08rem);
  line-height: 2;
}

.asterhold-games__content .ghost-button {
  min-width: 220px;
}

@media (max-width: 1100px) {
  .asterhold-page {
    overflow-y: auto;
    background-attachment: fixed;
  }

  .asterhold-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 80px 18px 0;
  }

  .asterhold-intro,
  .asterhold-side-cards,
  .asterhold-games {
    grid-column: 1;
    grid-row: auto;
  }

  .asterhold-intro {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .asterhold-side-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-row: 3;
    padding: 0;
  }

  .asterhold-games {
    grid-row: 2;
    grid-template-columns: minmax(160px, 0.55fr) minmax(320px, 1fr) minmax(
        160px,
        0.55fr
      );
  }
}

@media (max-width: 760px) {
  .asterhold-layout {
    padding-inline: 12px;
  }

  .asterhold-intro {
    padding: 42px 22px;
  }

  .asterhold-intro p {
    font-size: 0.88rem;
  }

  .asterhold-games {
    grid-template-columns: 1fr;
    padding: 34px 18px;
    clip-path: none;
  }

  .asterhold-games__image {
    max-height: 170px;
  }

  .asterhold-games__content {
    grid-row: 1;
  }

  .asterhold-side-cards {
    grid-template-columns: 1fr;
  }

  .asterhold-feature-card {
    grid-template-columns: 42% 1fr;
  }
}

/* Shared internal pages, WooCommerce and journal */
.fantasy-shell.internal-shell {
  height: 100vh;
  min-height: 680px;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(
      90deg,
      rgb(0 0 0 / 0.5),
      transparent 50%,
      rgb(0 0 0 / 0.26)
    ),
    linear-gradient(
      180deg,
      rgb(0 0 0 / 0.44),
      rgb(0 0 0 / 0.15) 44%,
      rgb(0 0 0 / 0.58)
    ),
    url("assets/images/comic-bg.webp") center / cover fixed no-repeat;
}

.internal-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 30%, rgb(209 156 43 / 0.1), transparent 34%),
    linear-gradient(90deg, rgb(0 0 0 / 0.38), transparent 42%);
}

.internal-shell .internal-side-rail,
.internal-shell .internal-top-nav {
  position: fixed;
}

.internal-top-nav {
  top: 0;
  align-items: center;
  min-height: clamp(86px, 10vh, 108px);
  padding-top: 0;
  padding-bottom: 0;
  isolation: isolate;
  background: none;
}

.internal-top-nav::before {
  display: block;
}

.internal-actions {
  position: absolute;
  left: var(--page-pad);
  display: flex;
  align-items: center;
  gap: 10px;
  direction: rtl;
}

.internal-actions a {
  position: relative;
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  color: var(--gold-bright);
  border: 1px solid rgb(219 162 27 / 0.24);
  border-radius: 999px;
  background: rgb(4 3 2 / 0.48);
  font-size: 0.74rem;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.internal-actions a:hover {
  border-color: rgb(219 162 27 / 0.7);
  background: rgb(32 22 10 / 0.72);
  transform: translateY(-1px);
}

.internal-actions a b {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding-inline: 4px;
  color: #160e04;
  border-radius: 50%;
  background: var(--gold);
  font-size: 0.66rem;
}

.internal-content {
  position: relative;
  z-index: 2;
  width: min(
    calc(100vw - var(--side-width) - var(--page-pad) - var(--page-pad)),
    1420px
  );
  min-height: 100vh;
  margin-inline: auto;
  padding: clamp(110px, 13vh, 140px) 0 clamp(50px, 7vh, 80px);
  transform: translateX(calc(var(--side-width) / -2));
}

.internal-page-header {
  margin-bottom: clamp(24px, 3vw, 40px);
  text-align: center;
}

.internal-page-header > span,
.single-journal__header > span {
  display: block;
  margin-bottom: 4px;
  color: rgb(242 207 117 / 0.65);
  font-size: clamp(0.7rem, 0.78vw, 0.84rem);
  letter-spacing: 0.08em;
}

.internal-page-header h1,
.single-journal__header h1 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 5px 22px #000;
}

.internal-page-header i {
  display: block;
  width: min(260px, 44vw);
  height: 14px;
  margin: 10px auto 0;
  background:
    linear-gradient(var(--gold), var(--gold)) left center / calc(50% - 14px) 1px
      no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / calc(50% - 14px)
      1px no-repeat;
  opacity: 0.58;
}

.internal-page-header i::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 3px auto;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.internal-panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 40px);
  border: 1px solid rgb(219 162 27 / 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgb(219 162 27 / 0.035), transparent 32%),
    rgb(5 4 3 / 0.76);
  box-shadow:
    0 28px 90px rgb(0 0 0 / 0.46),
    inset 0 0 0 1px rgb(255 244 202 / 0.025);
  backdrop-filter: blur(9px);
}

.internal-panel::before,
.single-journal::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.woocommerce .woocommerce-products-header__title {
  display: none;
}

.woocommerce .woocommerce-breadcrumb {
  margin: 0 0 24px;
  color: rgb(255 236 184 / 0.58);
  font-size: 0.76rem;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--gold-bright);
}

.woocommerce .woocommerce-result-count {
  margin: 8px 0 28px;
  color: rgb(255 236 184 / 0.62);
  font-size: 0.8rem;
}

.woocommerce .woocommerce-ordering {
  float: left;
  margin: 0 0 24px;
}

.woocommerce .woocommerce-ordering select {
  min-width: 220px;
  padding-right: 14px;
  padding-left: 46px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23f2cf75' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: left 16px center;
  background-repeat: no-repeat;
  background-size: 12px 8px;
}

.woocommerce select,
.woocommerce input.input-text,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce .select2-container--default .select2-selection--single {
  min-height: 48px;
  padding: 10px 14px;
  color: #fff0c8;
  border: 1px solid rgb(219 162 27 / 0.36);
  border-radius: 10px;
  outline: 0;
  background: rgb(4 3 2 / 0.72);
  box-shadow: inset 0 2px 12px rgb(0 0 0 / 0.2);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.woocommerce textarea {
  min-height: 120px;
  resize: vertical;
}

.woocommerce select:focus,
.woocommerce input.input-text:focus,
.woocommerce input[type="text"]:focus,
.woocommerce input[type="email"]:focus,
.woocommerce input[type="tel"]:focus,
.woocommerce input[type="password"]:focus,
.woocommerce input[type="number"]:focus,
.woocommerce textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(219 162 27 / 0.1);
}

.woocommerce label {
  display: block;
  margin-bottom: 6px;
  color: rgb(255 236 184 / 0.82);
  font-size: 0.82rem;
}

.woocommerce ul.products {
  clear: both;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product {
  position: relative;
  display: flex;
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(219 162 27 / 0.24);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgb(219 162 27 / 0.05), transparent 36%),
    rgb(7 5 3 / 0.84);
  box-shadow: 0 16px 42px rgb(0 0 0 / 0.32);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.woocommerce ul.products li.product:hover {
  border-color: rgb(219 162 27 / 0.62);
  box-shadow:
    0 22px 54px rgb(0 0 0 / 0.5),
    0 0 22px rgb(219 162 27 / 0.08);
  transform: translateY(-4px);
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
  display: block;
}

.woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  object-fit: cover;
  background:
    radial-gradient(circle, rgb(101 71 27 / 0.3), transparent 62%),
    rgb(3 3 2 / 0.92);
  transition: filter 220ms ease;
}

.woocommerce ul.products li.product:hover img {
  filter: brightness(1.08) saturate(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 64px;
  margin: 0;
  padding: 18px 18px 6px;
  color: var(--gold-bright);
  font-size: clamp(0.92rem, 1vw, 1.08rem);
  line-height: 1.7;
}

.woocommerce ul.products li.product .star-rating {
  margin: 4px 18px;
}

.woocommerce ul.products li.product .price {
  display: block;
  margin: 4px 18px 14px;
  color: #fff0c0;
  font-size: 0.92rem;
}

.woocommerce ul.products li.product .price del {
  color: rgb(255 236 184 / 0.4);
}

.woocommerce ul.products li.product .price ins {
  color: var(--gold-bright);
  text-decoration: none;
}

.woocommerce .onsale {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  min-width: 0;
  min-height: 0;
  padding: 5px 10px;
  color: #160e04;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.4);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.5;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.ghost-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  color: #fff0bd;
  border: 1px solid rgb(219 162 27 / 0.7);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgb(219 162 27 / 0.14), rgb(219 162 27 / 0.035)),
    rgb(9 6 3 / 0.82);
  box-shadow: inset 0 0 0 1px rgb(255 235 174 / 0.04);
  cursor: pointer;
  font-weight: 700;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.woocommerce ul.products li.product .button {
  width: calc(100% - 36px);
  margin: auto 18px 18px;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.ghost-button:hover {
  color: #fff8dc;
  background:
    linear-gradient(180deg, rgb(219 162 27 / 0.24), rgb(219 162 27 / 0.08)),
    rgb(18 12 5 / 0.9);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
  transform: translateY(-1px);
}

.woocommerce nav.woocommerce-pagination,
.navigation.pagination {
  margin-top: 36px;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul,
.navigation.pagination .nav-links {
  display: inline-flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
  float: none;
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.navigation.pagination a,
.navigation.pagination span {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  padding: 0 12px;
  color: var(--gold-bright);
  border: 1px solid rgb(219 162 27 / 0.3);
  border-radius: 9px;
  background: rgb(4 3 2 / 0.62);
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.navigation.pagination .current {
  color: #130c03;
  background: var(--gold);
}

/* Single product */
.woocommerce div.product {
  position: relative;
}

.woocommerce div.product .product_title {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: clamp(2rem, 3.1vw, 3.6rem);
  line-height: 1.25;
}

.woocommerce div.product div.images {
  float: right;
  width: 48%;
  margin-bottom: 40px;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
  margin: 0;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image {
  overflow: hidden;
  border: 1px solid rgb(219 162 27 / 0.38);
  border-radius: 14px;
  background: rgb(3 3 2 / 0.82);
}

.woocommerce div.product div.images img {
  width: 100%;
}

.woocommerce div.product div.images .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.woocommerce div.product div.images .flex-control-thumbs li {
  float: none;
  width: auto;
}

.woocommerce div.product div.images .flex-control-thumbs img {
  overflow: hidden;
  border: 1px solid rgb(219 162 27 / 0.2);
  border-radius: 8px;
}

.woocommerce div.product div.summary {
  float: left;
  width: 47%;
  margin-bottom: 40px;
  padding: clamp(10px, 1.5vw, 24px);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--gold-bright);
  font-size: clamp(1.25rem, 1.7vw, 1.7rem);
}

.woocommerce-product-details__short-description {
  margin: 22px 0;
  color: rgb(255 239 196 / 0.76);
  line-height: 2.05;
}

.woocommerce .quantity {
  display: inline-flex;
  margin-left: 8px;
}

.woocommerce .quantity .qty {
  width: 76px;
  text-align: center;
}

.woocommerce div.product form.cart {
  display: flex;
  align-items: center;
  margin: 28px 0;
}

.woocommerce div.product form.cart .button {
  min-height: 50px;
  flex: 1;
}

.woocommerce div.product .stock {
  color: #8bc84a;
}

.woocommerce div.product .product_meta {
  display: grid;
  gap: 8px;
  padding-top: 20px;
  color: rgb(255 236 184 / 0.6);
  border-top: 1px solid rgb(219 162 27 / 0.16);
  font-size: 0.78rem;
}

.woocommerce div.product .woocommerce-tabs {
  clear: both;
  padding-top: 10px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  overflow-x: auto;
  list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 10px 18px;
  color: rgb(255 236 184 / 0.62);
  border: 1px solid rgb(219 162 27 / 0.2);
  border-radius: 9px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--gold-bright);
  border-color: rgb(219 162 27 / 0.65);
  background: rgb(219 162 27 / 0.08);
}

.woocommerce div.product .woocommerce-tabs .panel {
  padding: clamp(20px, 2vw, 30px);
  color: rgb(255 239 196 / 0.78);
  border: 1px solid rgb(219 162 27 / 0.16);
  border-radius: 12px;
  background: rgb(0 0 0 / 0.26);
  line-height: 2;
}

.woocommerce div.product .woocommerce-tabs .panel h2,
.woocommerce .related.products > h2 {
  color: var(--gold);
}

.woocommerce .related.products {
  clear: both;
  padding-top: 34px;
}

/* Notices */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  position: relative;
  margin: 0 0 22px;
  padding: 16px 18px;
  color: #fff0c8;
  border: 1px solid rgb(219 162 27 / 0.3);
  border-top: 1px solid var(--gold);
  border-radius: 10px;
  background: rgb(13 9 4 / 0.9);
  list-style: none;
}

.woocommerce-error {
  border-top-color: #b84b3f;
}

.woocommerce-message {
  border-top-color: #78a84b;
}

/* Cart and checkout */
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  border: 0;
}

.woocommerce table.shop_table th {
  padding: 12px 14px;
  color: var(--gold);
  border: 0;
  font-size: 0.78rem;
  text-align: right;
}

.woocommerce table.shop_table td {
  padding: 14px;
  color: rgb(255 239 196 / 0.84);
  border-top: 1px solid rgb(219 162 27 / 0.12);
  border-bottom: 1px solid rgb(219 162 27 / 0.12);
  background: rgb(0 0 0 / 0.3);
}

.woocommerce table.shop_table td:first-child {
  border-right: 1px solid rgb(219 162 27 / 0.12);
  border-radius: 0 10px 10px 0;
}

.woocommerce table.shop_table td:last-child {
  border-left: 1px solid rgb(219 162 27 / 0.12);
  border-radius: 10px 0 0 10px;
}

.woocommerce table.cart img {
  width: 76px;
  border: 1px solid rgb(219 162 27 / 0.22);
  border-radius: 9px;
}

.woocommerce a.remove {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #d87968 !important;
  border: 1px solid rgb(216 121 104 / 0.28);
  border-radius: 50%;
}

.woocommerce a.remove:hover {
  color: #fff !important;
  background: #9e3c31;
}

.woocommerce table.cart td.actions {
  background: transparent;
}

.woocommerce .coupon {
  display: flex;
  float: right;
  gap: 8px;
}

.woocommerce .coupon .input-text {
  min-width: 190px;
}

.woocommerce .cart-collaterals {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.woocommerce .cart_totals {
  width: min(100%, 500px);
  padding: 24px;
  border: 1px solid rgb(219 162 27 / 0.24);
  border-radius: 14px;
  background: rgb(0 0 0 / 0.36);
}

.woocommerce .cart_totals h2,
.woocommerce-checkout h3 {
  margin-top: 0;
  color: var(--gold);
}

.woocommerce .wc-proceed-to-checkout .checkout-button {
  width: 100%;
  margin: 12px 0 0;
}

.woocommerce-checkout .col2-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  float: none;
  width: auto;
}

.woocommerce .form-row {
  margin: 0 0 16px;
}

.woocommerce .form-row-first,
.woocommerce .form-row-last {
  width: calc(50% - 7px);
}

.woocommerce .form-row-first {
  float: right;
}

.woocommerce .form-row-last {
  float: left;
}

.woocommerce-checkout-review-order {
  padding: 22px;
  border: 1px solid rgb(219 162 27 / 0.2);
  border-radius: 14px;
  background: rgb(0 0 0 / 0.26);
}

.woocommerce-checkout #payment {
  color: rgb(255 239 196 / 0.8);
  border: 1px solid rgb(219 162 27 / 0.15);
  border-radius: 12px;
  background: rgb(5 4 3 / 0.8);
}

.woocommerce-checkout #payment ul.payment_methods {
  padding: 18px;
  border-bottom-color: rgb(219 162 27 / 0.14);
}

.woocommerce-checkout #payment div.payment_box {
  color: #d8c18d;
  background: rgb(219 162 27 / 0.08);
}

.woocommerce-checkout #payment div.form-row {
  padding: 18px;
}

/* Account */
.account-gate {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(560px, 1.28fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: stretch;
}

.account-gate__intro {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid rgb(219 162 27 / 0.3);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 10%, rgb(219 162 27 / 0.14), transparent 38%),
    rgb(0 0 0 / 0.4);
}

.account-gate__intro > span {
  color: var(--gold);
  font-size: 0.76rem;
}

.account-gate__intro h2 {
  margin: 8px 0 16px;
  color: var(--gold-bright);
  font-size: clamp(1.5rem, 2.2vw, 2.5rem);
  line-height: 1.55;
}

.account-gate__intro p,
.account-gate__intro li {
  color: rgb(255 239 196 / 0.68);
  font-size: 0.86rem;
  line-height: 2;
}

.account-gate__intro ul {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.account-gate__intro li::before {
  content: "◇";
  margin-left: 8px;
  color: var(--gold);
}

.account-gate__forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-gate__forms > section {
  padding: clamp(20px, 2vw, 30px);
  border: 1px solid rgb(219 162 27 / 0.18);
  border-radius: 14px;
  background: rgb(0 0 0 / 0.3);
}

.account-gate__forms h2 {
  margin: 0;
  color: var(--gold);
}

.account-gate__hint {
  min-height: 48px;
  margin: 6px 0 18px;
  color: rgb(255 239 196 / 0.54);
  font-size: 0.74rem;
  line-height: 1.8;
}

.account-gate__forms .button {
  width: 100%;
}

.account-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 18px;
  font-size: 0.7rem;
}

.account-form-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.account-form-actions a {
  color: var(--gold-bright);
}

.woocommerce-account .woocommerce {
  display: flow-root;
}

.woocommerce-MyAccount-navigation {
  float: right;
  width: 25%;
}

.woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-MyAccount-navigation a {
  display: block;
  padding: 12px 16px;
  color: rgb(255 239 196 / 0.7);
  border: 1px solid rgb(219 162 27 / 0.14);
  border-radius: 9px;
  background: rgb(0 0 0 / 0.25);
}

.woocommerce-MyAccount-navigation .is-active a,
.woocommerce-MyAccount-navigation a:hover {
  color: var(--gold-bright);
  border-color: rgb(219 162 27 / 0.54);
  background: rgb(219 162 27 / 0.08);
}

.woocommerce-MyAccount-content {
  float: left;
  width: 71%;
  min-height: 360px;
  padding: 24px;
  color: rgb(255 239 196 / 0.76);
  border: 1px solid rgb(219 162 27 / 0.14);
  border-radius: 12px;
  background: rgb(0 0 0 / 0.25);
}

/* Journal */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.journal-card {
  overflow: hidden;
  border: 1px solid rgb(219 162 27 / 0.22);
  border-radius: 16px;
  background: rgb(5 4 3 / 0.78);
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.34);
  transition:
    transform 220ms ease,
    border-color 220ms ease;
}

.journal-card:hover {
  border-color: rgb(219 162 27 / 0.58);
  transform: translateY(-4px);
}

.journal-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.62 / 1;
  background:
    radial-gradient(circle, rgb(109 78 31 / 0.34), transparent 62%), #050403;
}

.journal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 220ms ease;
}

.journal-card:hover .journal-card__media img {
  filter: brightness(1.08);
}

.journal-card__placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  color: rgb(219 162 27 / 0.28);
  font-family: Georgia, serif;
  font-size: 5rem;
}

.journal-card__body {
  padding: 20px;
}

.journal-card__meta {
  display: flex;
  justify-content: space-between;
  color: rgb(255 239 196 / 0.42);
  font-size: 0.67rem;
}

.journal-card h2 {
  margin: 10px 0 8px;
  color: var(--gold-bright);
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  line-height: 1.7;
}

.journal-card p {
  min-height: 68px;
  margin: 0 0 14px;
  color: rgb(255 239 196 / 0.62);
  font-size: 0.78rem;
  line-height: 1.95;
}

.journal-card__link {
  color: var(--gold);
  font-size: 0.76rem;
}

.internal-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  color: rgb(255 239 196 / 0.62);
  border: 1px dashed rgb(219 162 27 / 0.3);
  border-radius: 14px;
  text-align: center;
}

.internal-empty h2 {
  color: var(--gold);
}

.single-journal {
  position: relative;
  width: min(100%, 980px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgb(219 162 27 / 0.24);
  border-radius: 18px;
  background: rgb(5 4 3 / 0.82);
  box-shadow: 0 30px 90px rgb(0 0 0 / 0.5);
}

.single-journal__header {
  padding: clamp(34px, 5vw, 70px) clamp(24px, 6vw, 80px);
  text-align: center;
}

.single-journal__header h1 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.single-journal__header > div {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  color: rgb(255 239 196 / 0.48);
  font-size: 0.75rem;
}

.single-journal__hero {
  margin: 0;
}

.single-journal__hero img {
  width: 100%;
  max-height: 580px;
  object-fit: cover;
}

.single-journal__content {
  padding: clamp(30px, 5vw, 72px);
  color: rgb(255 241 204 / 0.8);
  font-size: clamp(0.9rem, 1.05vw, 1.05rem);
  line-height: 2.25;
}

.single-journal__content h2,
.single-journal__content h3 {
  color: var(--gold);
}

.single-journal__content a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.single-journal__content blockquote {
  margin: 30px 0;
  padding: 18px 24px;
  color: #fff0c0;
  border-right: 3px solid var(--gold);
  background: rgb(219 162 27 / 0.06);
}

.single-journal__footer {
  padding: 22px clamp(30px, 5vw, 72px);
  border-top: 1px solid rgb(219 162 27 / 0.14);
}

.single-journal__footer nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.single-journal__footer a {
  color: var(--gold-bright);
}

/* 404 */
.error-shell {
  display: grid;
  place-items: center;
  padding-right: var(--side-width);
}

.error-altar {
  position: relative;
  z-index: 2;
  width: min(90%, 850px);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
}

.error-altar__code {
  display: block;
  margin-bottom: -26px;
  color: rgb(219 162 27 / 0.12);
  font-family: Georgia, serif;
  font-size: clamp(7rem, 18vw, 15rem);
  font-weight: 700;
  line-height: 0.9;
  text-shadow: 0 0 50px rgb(219 162 27 / 0.08);
}

.error-altar__eyebrow {
  color: var(--gold);
  font-size: 0.8rem;
}

.error-altar h1 {
  margin: 8px 0 18px;
  color: var(--gold-bright);
  font-size: clamp(1.8rem, 3.4vw, 3.5rem);
  line-height: 1.5;
}

.error-altar > p:not(.error-altar__eyebrow) {
  max-width: 650px;
  margin: 0 auto 28px;
  color: rgb(255 239 196 / 0.64);
  line-height: 2;
}

.error-altar > div {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.error-altar .ghost-button {
  min-width: 154px;
  min-height: 44px;
  padding: 8px 16px;
}

.prose-panel {
  color: rgb(255 239 196 / 0.78);
  line-height: 2.1;
}

@media (max-width: 1180px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-gate {
    grid-template-columns: 1fr;
  }

  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .comic-intro {
    grid-template-columns: minmax(320px, 0.8fr) minmax(440px, 1.2fr);
    gap: 30px;
  }

  .comic-summary > p {
    line-height: 2;
  }

  .comic-chapters__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1360px) {
  :root {
    --side-width: clamp(94px, 8vw, 122px);
    --page-pad: clamp(12px, 1.8vw, 24px);
  }

  .top-nav__list {
    gap: clamp(20px, 3vw, 48px);
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 18px;
  }

  .top-nav {
    padding-inline: var(--page-pad);
  }

  .side-menu {
    gap: clamp(18px, 4vh, 40px);
  }

  .side-menu__link,
  .side-menu a {
    min-height: 64px;
  }

  .landing {
    padding: clamp(76px, 9vh, 98px) calc(var(--side-width) + var(--page-pad))
      clamp(28px, 4vh, 44px) var(--page-pad);
    max-width: calc(100vw - var(--side-width) - var(--page-pad) - 22px);
    min-height: 100svh;
  }

  .hero-panel,
  .world-strip {
    width: min(100%, calc(100vw - var(--side-width) - var(--page-pad) - 32px));
    max-width: calc(100vw - var(--side-width) - var(--page-pad) - 32px);
  }

  .hero-panel {
    min-height: clamp(260px, 40vh, 340px);
    padding-block: clamp(28px, 5vh, 40px);
    padding-inline: clamp(42px, 5vw, 84px);
  }

  .hero-panel h1 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
  }

  .world-strip {
    gap: 18px;
    padding: clamp(18px, 3vh, 28px) clamp(24px, 3vw, 38px);
  }
}

@media (max-width: 1240px) {
  :root {
    --side-width: clamp(84px, 7vw, 108px);
    --page-pad: clamp(12px, 1.4vw, 20px);
  }

  .top-nav__list {
    gap: clamp(18px, 3vw, 40px);
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 16px;
  }

  .landing {
    padding: clamp(66px, 8.5vh, 88px) calc(var(--side-width) + var(--page-pad))
      clamp(24px, 3.5vh, 34px) var(--page-pad);
    max-width: calc(100vw - var(--side-width) - var(--page-pad) - 18px);
    min-height: 100svh;
  }

  .hero-panel,
  .world-strip {
    width: min(100%, calc(100vw - var(--side-width) - var(--page-pad) - 32px));
    max-width: calc(100vw - var(--side-width) - var(--page-pad) - 32px);
  }

  .hero-panel {
    padding-inline: clamp(34px, 5vw, 72px);
  }
}

@media (max-width: 1040px) {
  :root {
    --side-width: 94px;
  }

  .landing {
    padding-top: 88px;
    grid-template-rows: auto auto;
  }

  .top-nav__list {
    gap: 30px;
  }

  .world-strip {
    grid-template-columns: 1fr 0.8fr 1fr;
    padding-inline: 22px;
  }

  .hero-panel.hero-panel--detail {
    padding: 24px 18px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .heroes-page .hero-meta,
  .heroes-page .hero-bottom-grid {
    width: calc(100% - 36px);
    margin-right: 18px;
    margin-left: 18px;
  }

  .heroes-page .hero-meta {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    direction: rtl;
  }

  .heroes-page .hero-copy,
  .heroes-page .hero-stats {
    grid-column: auto;
  }

  .hero-bottom-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel-controls {
    grid-template-columns: auto auto auto;
    gap: 18px;
  }

  .hero-nav-button {
    width: 52px;
    height: 52px;
    justify-self: center;
  }

  .hero-carousel {
    gap: 30px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow: hidden;
  }

  .fantasy-shell {
    min-height: 0;
    height: 100svh;
    overflow: hidden;
  }

  .side-rail {
    position: relative;
    width: 100%;
    height: auto;
    grid-template-columns: auto 1fr;
    grid-template-rows: none;
    align-items: center;
    padding: 12px 14px;
    border-left: 0;
    border-bottom: 1px solid rgb(248 212 128 / 0.24);
  }

  .side-rail::before,
  .side-rail::after {
    display: none;
  }

  .brand-logo {
    width: 74px;
    margin: 0;
  }

  .side-menu {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .side-menu__link {
    min-width: 64px;
    min-height: 58px;
    gap: 2px;
    font-size: 0.72rem;
  }

  .side-menu__icon {
    width: 34px;
    height: 34px;
  }

  .top-nav {
    position: relative;
    inset: auto;
    padding: 12px 18px 0;
  }

  .top-nav__list {
    width: 100%;
    justify-content: space-around;
    gap: 12px;
  }

  .landing {
    height: calc(100svh - 146px);
    min-height: 0;
    padding: 16px 14px 18px;
    grid-template-rows: minmax(260px, 1fr) auto;
    gap: 34px;
  }

  .hero-panel {
    min-height: 0;
    padding: 26px 18px;
  }

  .hero-panel h1 {
    font-size: clamp(2.7rem, 15vw, 4.4rem);
    white-space: normal;
  }

  .world-strip {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 10px;
    padding-block: 14px;
  }

  .world-card {
    padding: 0;
    text-align: center;
    justify-items: center;
  }

  .world-card + .world-card {
    padding-top: 10px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .world-card p,
  .world-card li {
    font-size: 0.72rem;
    line-height: 1.75;
  }

  html:has(.comics-page),
  body:has(.comics-page) {
    overflow: auto;
  }

  .fantasy-shell.comics-page {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    background-attachment: scroll;
  }

  .comics-page .side-rail,
  .comics-page .top-nav {
    position: relative;
  }

  .comics-page .side-menu {
    gap: 10px;
  }

  .comics-content {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 24px 16px 34px;
    transform: none;
  }

  .comic-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .comic-cover {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .comic-cover img {
    max-height: none;
  }

  .comic-summary h1 {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .comic-summary > p {
    font-size: 0.88rem;
    line-height: 2.05;
  }

  .comic-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }

  .comic-chapters {
    margin-top: 34px;
  }

  .comic-chapters__grid {
    grid-template-columns: 1fr;
  }

  .comic-chapter h3 {
    font-size: 0.9rem;
  }

  .comic-reader {
    padding: 8px;
  }

  .comic-reader__panel {
    width: 100%;
    max-height: 100svh;
  }

  .comic-reader__header {
    min-height: 82px;
    padding-bottom: 14px;
  }

  .comic-book-shell {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 4px;
  }

  .comic-book-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .comic-book__cover {
    padding: 7px;
  }

  .comic-reader__footer {
    min-height: 58px;
    flex-direction: column;
    gap: 0;
    line-height: 1.7;
  }

  .internal-actions__label {
    display: none;
  }

  .internal-actions a {
    padding-inline: 9px;
  }

  .internal-shell .internal-side-rail,
  .internal-shell .internal-top-nav {
    position: relative;
  }

  .fantasy-shell.internal-shell {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    background-attachment: scroll;
  }

  .internal-top-nav {
    display: grid;
    min-height: 0;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 18px;
  }

  .internal-actions {
    position: static;
    justify-content: center;
  }

  .internal-content {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 34px 14px 50px;
    transform: none;
  }

  .internal-page-header {
    margin-bottom: 22px;
  }

  .internal-panel {
    padding: 15px;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce div.product div.images,
  .woocommerce div.product div.summary {
    float: none;
    width: 100%;
  }

  .woocommerce div.product div.summary {
    padding-inline: 0;
  }

  .woocommerce-checkout .col2-set,
  .account-gate__forms,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .woocommerce-MyAccount-navigation,
  .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
  }

  .woocommerce-MyAccount-navigation {
    margin-bottom: 18px;
  }

  .woocommerce-MyAccount-navigation ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce table.shop_table thead {
    display: none;
  }

  .woocommerce table.shop_table,
  .woocommerce table.shop_table tbody,
  .woocommerce table.shop_table tr,
  .woocommerce table.shop_table td {
    display: block;
    width: 100%;
  }

  .woocommerce table.shop_table tr {
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid rgb(219 162 27 / 0.14);
    border-radius: 12px;
    background: rgb(0 0 0 / 0.28);
  }

  .woocommerce table.shop_table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px;
    border: 0;
    background: transparent;
  }

  .woocommerce table.shop_table td::before {
    content: attr(data-title);
    color: var(--gold);
    font-size: 0.7rem;
  }

  .woocommerce .coupon {
    float: none;
    width: 100%;
    flex-wrap: wrap;
  }

  .woocommerce .coupon .input-text {
    min-width: 0;
    flex: 1;
  }

  .woocommerce .cart-collaterals,
  .woocommerce .cart_totals {
    width: 100%;
  }

  .error-shell {
    display: block;
    padding: 0;
  }

  .error-altar {
    margin: 30px auto;
  }

  .error-altar > div {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .front-page-shell {
    min-height: 100svh;
  }

  .landing {
    min-height: 100svh;
    padding-top: 94px;
    padding-bottom: 26px;
    align-content: start;
    gap: 18px;
  }

  .top-nav {
    top: 0;
  }

  .brand-logo {
    width: clamp(72px, 5.8vw, 92px);
    margin-bottom: clamp(18px, 3vh, 28px);
  }

  .side-rail {
    padding-top: clamp(18px, 3vh, 28px);
    padding-bottom: clamp(12px, 2vh, 20px);
  }

  .side-menu {
    gap: clamp(10px, 2.6vh, 22px);
  }

  .side-menu__link,
  .side-menu a {
    min-height: 56px;
    gap: 3px;
    font-size: clamp(0.72rem, 0.82vw, 0.86rem);
  }

  .side-menu__icon {
    width: clamp(38px, 3.4vw, 50px);
    height: clamp(38px, 3.4vw, 50px);
  }

  .hero-panel {
    min-height: 0;
    padding-block: clamp(22px, 4vh, 32px);
  }

  .hero-panel h1 {
    margin-bottom: 6px;
    font-size: clamp(2.7rem, 5.2vw, 4.6rem);
    line-height: 1.05;
  }

  .hero-panel__lead {
    font-size: clamp(1rem, 1.45vw, 1.35rem);
    line-height: 1.55;
  }

  .hero-panel__copy {
    margin-bottom: 14px;
    font-size: clamp(0.86rem, 1vw, 1rem);
    line-height: 1.9;
  }

  .ornate-button {
    width: clamp(186px, 16vw, 230px);
    min-height: 64px;
    padding: 12px 30px 14px;
  }

  .world-strip {
    min-height: 0;
    margin-top: 0;
    padding-block: 14px;
  }

  .world-card {
    grid-template-rows: auto auto auto;
  }

  .world-card p,
  .world-card li {
    font-size: clamp(0.72rem, 0.82vw, 0.86rem);
    line-height: 1.8;
  }
}

@media (min-height: 821px) and (max-height: 920px) and (min-width: 761px) {
  .landing {
    padding-top: clamp(122px, 14.5vh, 142px);
    align-content: start;
    gap: clamp(24px, 3.2vh, 32px);
  }
}

.woocommerce #review_form .comment-form-rating select[data-enhanced="true"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-rating-stars {
  display: inline-flex;
  gap: 6px;
  direction: rtl;
  margin: 4px 0 14px;
}

.woocommerce #review_form .comment-form-rating > p.stars {
  display: none !important;
}

.product-rating-stars button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  color: rgb(242 207 117 / 0.3);
  border: 1px solid rgb(219 162 27 / 0.24);
  border-radius: 50%;
  background: rgb(4 3 2 / 0.58);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.product-rating-stars button.is-active {
  color: var(--gold-bright);
  border-color: rgb(219 162 27 / 0.7);
  background: rgb(219 162 27 / 0.08);
  text-shadow: 0 0 10px rgb(219 162 27 / 0.42);
}

.product-rating-stars button:hover,
.product-rating-stars button:focus-visible {
  outline: 0;
  transform: translateY(-2px) scale(1.05);
}

/* Mobile shop archive */
@media (max-width: 760px) {
  html:has(.commerce-shell),
  body:has(.commerce-shell) {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .fantasy-shell.internal-shell.commerce-shell {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding-bottom: calc(98px + env(safe-area-inset-bottom));
  }

  .commerce-shell .internal-content {
    width: 100%;
    min-height: 100svh;
    margin: 0;
    padding: 118px 14px calc(110px + env(safe-area-inset-bottom));
    transform: none;
  }

  .commerce-shell .internal-page-header {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
  }

  .commerce-shell .internal-page-header h1 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

  .commerce-shell .commerce-panel {
    padding: 16px;
  }

  .commerce-shell .woocommerce-result-count,
  .commerce-shell .woocommerce-ordering {
    float: none;
    width: 100%;
  }

  .commerce-shell .woocommerce-result-count {
    margin: 0 0 14px;
    text-align: right;
  }

  .commerce-shell .woocommerce-ordering {
    margin: 0 0 24px;
  }

  .commerce-shell .woocommerce-ordering select {
    width: 100%;
    min-width: 0;
    padding-left: 48px;
    background-position: left 18px center;
  }

  .commerce-shell ul.products {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .commerce-shell ul.products li.product {
    width: 100%;
    max-width: 430px;
    margin-inline: auto;
  }

  .single-product-shell .internal-panel,
  .single-product-shell .woocommerce,
  .single-product-shell div.product,
  .single-product-shell .woocommerce-tabs,
  .single-product-shell .woocommerce-tabs .panel,
  .single-product-shell #review_form_wrapper,
  .single-product-shell #review_form,
  .single-product-shell #respond,
  .single-product-shell .comment-form,
  .single-product-shell .comment-form > p {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .single-product-shell .comment-form-author,
  .single-product-shell .comment-form-email {
    float: none;
    margin-right: 0;
    margin-left: 0;
  }

  .single-product-shell
    .comment-form
    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
  .single-product-shell .comment-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .single-product-shell .comment-form-cookies-consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  .single-product-shell .comment-form-cookies-consent input {
    margin-top: 7px;
  }

  .single-product-shell .comment-form-cookies-consent label {
    min-width: 0;
    margin: 0;
  }
}

/* Front page mobile app layout */
@media (max-width: 760px) {
  html:has(.front-page-shell),
  body:has(.front-page-shell) {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: #050403;
  }

  body.has-mobile-menu-open {
    overflow: hidden;
  }

  .front-page-shell {
    width: 100%;
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
    background:
      linear-gradient(
        180deg,
        rgb(0 0 0 / 0.1) 0%,
        rgb(0 0 0 / 0.04) 38%,
        rgb(0 0 0 / 0.56) 76%,
        rgb(0 0 0 / 0.92) 100%
      ),
      url("assets/images/bg.webp") center top / auto 100% no-repeat;
  }

  .front-page-shell::before {
    position: fixed;
    background:
      linear-gradient(180deg, rgb(0 0 0 / 0.42), transparent 16%),
      radial-gradient(
        circle at 50% 27%,
        transparent 0 34%,
        rgb(0 0 0 / 0.16) 68%
      );
  }

  .front-page-shell::after {
    position: fixed;
    z-index: 20;
    box-shadow:
      inset 0 0 0 1px rgb(255 231 166 / 0.2),
      inset 0 0 36px rgb(0 0 0 / 0.42);
  }

  .front-page-shell .side-rail {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: block;
    width: 100%;
    height: calc(82px + env(safe-area-inset-bottom));
    padding: 7px 8px env(safe-area-inset-bottom);
    border: 0;
    border-top: 1px solid rgb(219 162 27 / 0.42);
    background:
      linear-gradient(180deg, rgb(18 13 7 / 0.97), rgb(3 3 2 / 0.99)), #050403;
    backdrop-filter: blur(16px);
  }

  .front-page-shell .side-rail::before,
  .front-page-shell .side-rail::after {
    display: none;
  }

  .front-page-shell .brand-logo {
    display: none;
  }

  .front-page-shell .mobile-header-glass {
    position: fixed;
    inset: 0 0 auto;
    z-index: 55;
    display: block;
    height: 82px;
    border-bottom: 1px solid rgb(219 162 27 / 0.18);
    background: linear-gradient(
      180deg,
      rgb(9 7 4 / 0.76),
      rgb(9 7 4 / 0.42) 72%,
      rgb(9 7 4 / 0.08)
    );
    box-shadow: 0 12px 28px rgb(0 0 0 / 0.16);
    backdrop-filter: blur(14px) saturate(0.86);
    -webkit-backdrop-filter: blur(14px) saturate(0.86);
    pointer-events: none;
  }

  .front-page-shell .mobile-brand-logo {
    position: fixed;
    top: 41px;
    left: 50%;
    z-index: 60;
    display: block;
    width: 76px;
    margin: 0;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 5px 12px rgb(0 0 0 / 0.8));
  }

  .front-page-shell .side-menu {
    display: grid;
    height: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 2px;
    overflow: visible;
    padding: 0;
  }

  .front-page-shell .side-menu li {
    min-width: 0;
  }

  .front-page-shell .side-menu__link,
  .front-page-shell .side-menu a {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 66px;
    align-content: center;
    justify-items: center;
    gap: 1px;
    padding: 4px 1px;
    color: #d6a443;
    font-size: 0.68rem;
    line-height: 1.25;
    white-space: nowrap;
  }

  .front-page-shell .side-menu__link.is-active {
    color: #ffe28a;
  }

  .front-page-shell .side-menu__link.is-active::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 20%;
    left: 20%;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 0 9px rgb(219 162 27 / 0.8);
  }

  .front-page-shell .side-menu__icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: sepia(0.25) drop-shadow(0 5px 8px rgb(0 0 0 / 0.78));
  }

  .front-page-shell .mobile-menu-toggle {
    position: fixed;
    top: 41px;
    left: 18px;
    z-index: 72;
    display: grid;
    width: 32px;
    height: 28px;
    align-content: space-between;
    padding: 2px;
    border: 0;
    background: transparent;
    transform: translateY(-50%);
  }

  .front-page-shell .mobile-header-actions {
    position: fixed;
    top: 41px;
    right: 18px;
    left: auto;
    z-index: 68;
    display: flex;
    align-items: center;
    gap: 7px;
    direction: ltr;
    transform: translateY(-50%);
  }

  .front-page-shell .mobile-header-action {
    position: relative;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--gold-bright);
    border: 1px solid rgb(219 162 27 / 0.34);
    border-radius: 50%;
    background: rgb(5 4 3 / 0.34);
    box-shadow: 0 5px 12px rgb(0 0 0 / 0.18);
    backdrop-filter: blur(6px);
  }

  .front-page-shell .mobile-header-action::before {
    font-family: "Font Awesome 7 Free";
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1;
  }

  .front-page-shell .mobile-header-action--account::before {
    content: "\f2bd";
  }

  .front-page-shell .mobile-header-action--cart::before {
    content: "\f07a";
  }

  .front-page-shell .mobile-header-action .internal-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    padding-inline: 3px;
    color: #160e04;
    border: 1px solid rgb(255 226 138 / 0.72);
    border-radius: 50%;
    background: var(--gold);
    font-size: 0.55rem;
    line-height: 1;
  }

  .front-page-shell .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: var(--gold-bright);
    box-shadow: 0 2px 7px rgb(0 0 0 / 0.7);
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .front-page-shell.is-mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .front-page-shell.is-mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .front-page-shell.is-mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .front-page-shell .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 48;
    display: block;
    border: 0;
    background: rgb(0 0 0 / 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }

  .front-page-shell .top-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    display: flex;
    width: min(82vw, 310px);
    padding: 96px 0 110px;
    justify-content: stretch;
    border-right: 1px solid rgb(219 162 27 / 0.48);
    background:
      linear-gradient(160deg, rgb(28 20 10 / 0.98), rgb(4 3 2 / 0.99)), #070503;
    box-shadow: 18px 0 44px rgb(0 0 0 / 0.48);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .front-page-shell.is-mobile-menu-open .top-nav {
    transform: translateX(0);
  }

  .front-page-shell.is-mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .front-page-shell .top-nav__list {
    display: grid;
    width: 100%;
    align-content: start;
    justify-items: stretch;
    gap: 0;
    color: var(--gold-bright);
    font-size: 0.94rem;
    direction: rtl;
    text-align: right;
  }

  .front-page-shell .top-nav__list li {
    width: 100%;
    border-bottom: 1px solid rgb(219 162 27 / 0.28);
  }

  .front-page-shell .top-nav__list a {
    width: 100%;
    min-height: 54px;
    justify-content: flex-start;
    padding: 9px 24px;
    text-align: right;
  }

  .front-page-shell .top-nav__list .menu-item-account,
  .front-page-shell .top-nav__list .menu-item-cart {
    display: none;
  }

  .front-page-shell .landing {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
    padding: 138px 30px 32px;
  }

  .front-page-shell .hero-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 274px;
    overflow: visible;
    padding: 38px 22px 32px;
    backdrop-filter: blur(5px);
  }

  .front-page-shell .hero-panel::before {
    inset: 2px;
    background: rgb(10 8 6 / 0.52);
    backdrop-filter: blur(7px) brightness(0.72);
    -webkit-backdrop-filter: blur(7px) brightness(0.72);
  }

  .front-page-shell .hero-panel h1 {
    width: 100%;
    margin-bottom: 6px;
    font-size: clamp(1.48rem, 8vw, 2rem);
    line-height: 1.35;
    white-space: normal;
  }

  .front-page-shell .hero-panel__lead {
    font-size: 0.72rem;
    line-height: 1.8;
  }

  .front-page-shell .hero-panel__copy {
    max-width: 230px;
    margin: 8px 0 16px;
    color: rgb(255 240 200 / 0.72);
    font-size: 0.63rem;
    line-height: 2.05;
  }

  .front-page-shell .ornate-button {
    width: 150px;
    min-height: 54px;
    padding: 12px 22px 14px;
    font-size: 0.74rem;
  }

  .front-page-shell .world-strip {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    margin-top: 116px;
    gap: 10px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .front-page-shell .world-strip::before,
  .front-page-shell .world-strip::after {
    display: none;
  }

  .front-page-shell .world-card {
    --mobile-card-shape: polygon(
      0 8%,
      2.2% 8%,
      3% 0,
      97% 0,
      97.8% 8%,
      100% 8%,
      100% 92%,
      97.8% 92%,
      97% 100%,
      3% 100%,
      2.2% 92%,
      0 92%
    );
    position: relative;
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 96px;
    overflow: visible;
    align-content: center;
    justify-items: center;
    padding: 18px 18px 15px;
    border: 0;
    background: transparent;
    text-align: center;
    isolation: isolate;
  }

  .front-page-shell .world-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: center / 100% 100% no-repeat
      url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.5 8 L2.2 8 L3 0.5 L97 0.5 L97.8 8 L99.5 8 L99.5 92 L97.8 92 L97 99.5 L3 99.5 L2.2 92 L0.5 92 Z' fill='none' stroke='%23dba21b' stroke-width='1.1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  }

  .front-page-shell .world-card::before {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    clip-path: var(--mobile-card-shape);
    background: rgb(5 4 3 / 0.26);
    backdrop-filter: blur(7px) brightness(0.7);
    -webkit-backdrop-filter: blur(7px) brightness(0.7);
  }

  .front-page-shell .world-card + .world-card {
    padding-top: 18px;
    border: 0;
  }

  .front-page-shell .world-card h2,
  .front-page-shell .world-card h3 {
    font-size: 0.82rem;
  }

  .front-page-shell .world-card p,
  .front-page-shell .world-card li {
    font-size: 0.61rem;
    line-height: 1.8;
  }

  .front-page-shell .world-card p,
  .front-page-shell .world-card ul {
    margin-top: 4px;
  }

  .front-page-shell .read-more {
    min-height: 27px;
    margin-top: 7px;
    padding: 5px 16px;
    border-radius: 5px;
    font-size: 0.57rem;
  }

  .front-page-shell .world-card--era {
    min-height: 96px;
    grid-template-columns: minmax(0, 1fr) 58px;
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: center;
    padding-inline: 32px;
  }

  .front-page-shell .world-card--era h2 {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    margin: 0;
  }

  .front-page-shell .world-card--era strong {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin-top: 2px;
    font-size: 1.08rem;
  }

  .front-page-shell .era-icon {
    width: 52px;
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
  }
}

@media (max-width: 1100px) {
  .world-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: clamp(20px, 2.8vw, 40px);
    gap: 18px;
  }

  .world-card + .world-card {
    border-right: 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
}

@media (max-width: 900px) {
  .world-strip {
    grid-template-columns: 1fr;
    padding-inline: 18px;
  }

  .world-card + .world-card {
    border-top: 1px solid var(--line);
  }
}

@media (min-height: 761px) and (max-height: 820px) and (min-width: 761px) {
  .landing {
    padding-top: clamp(108px, 13vh, 124px);
    padding-bottom: clamp(24px, 4vh, 44px);
    align-content: start;
    gap: 20px;
  }

  .hero-panel {
    min-height: clamp(240px, 34vh, 340px);
    padding-block: clamp(24px, 4vh, 48px);
  }

  .hero-panel__copy {
    margin-bottom: 18px;
  }

  .world-strip {
    margin-top: 0;
    min-height: auto;
    padding-block: clamp(16px, 2.8vh, 26px);
  }
}

@media (max-height: 680px) and (min-width: 761px) {
  .landing {
    padding-top: 58px;
    gap: 18px;
  }

  .top-nav__list {
    row-gap: 8px;
  }

  .hero-panel {
    padding-block: 18px;
    padding-inline: clamp(30px, 4vw, 58px);
  }

  .hero-panel h1 {
    font-size: clamp(2.35rem, 4.8vw, 4rem);
  }

  .hero-panel__copy {
    max-width: 680px;
    margin-top: 4px;
    margin-bottom: 10px;
    line-height: 1.75;
  }

  .world-strip {
    grid-template-columns: 1fr 0.72fr 1fr;
    padding-inline: clamp(18px, 2.8vw, 36px);
  }

  .world-card {
    padding-inline: clamp(8px, 1.4vw, 20px);
  }

  .world-card p,
  .world-card li {
    line-height: 1.65;
  }

  .world-card--era strong {
    margin-top: 4px;
    font-size: clamp(1.1rem, 1.45vw, 1.48rem);
  }

  .era-icon {
    width: clamp(46px, 4.2vw, 62px);
    margin-top: 4px;
  }

  .read-more {
    min-height: 36px;
    margin-top: 8px;
    padding: 7px 20px;
  }
}

/* Shared mobile navigation for every page */
@media (max-width: 760px) {
  body.has-mobile-menu-open {
    overflow: hidden !important;
  }

  main .side-rail,
  main .side-rail--mobile-only,
  .internal-shell .internal-side-rail {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: block;
    width: 100%;
    height: calc(82px + env(safe-area-inset-bottom));
    padding: 7px 8px env(safe-area-inset-bottom);
    border: 0;
    border-top: 1px solid rgb(219 162 27 / 0.42);
    background:
      linear-gradient(180deg, rgb(18 13 7 / 0.97), rgb(3 3 2 / 0.99)), #050403;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  main .side-rail::before,
  main .side-rail::after {
    display: none;
  }

  main .side-rail .brand-logo {
    display: none;
  }

  main .side-menu {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 2px;
    overflow: visible;
    padding: 0;
  }

  main .side-menu li {
    min-width: 0;
  }

  main .side-menu__link,
  main .side-menu a {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 66px;
    align-content: center;
    justify-items: center;
    gap: 1px;
    padding: 4px 1px;
    color: #d6a443;
    font-size: 0.68rem;
    line-height: 1.25;
    white-space: nowrap;
  }

  main .side-menu__link.is-active {
    color: #ffe28a;
  }

  main .side-menu__link.is-active::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 20%;
    left: 20%;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 0 9px rgb(219 162 27 / 0.8);
  }

  main .side-menu__icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: sepia(0.25) drop-shadow(0 5px 8px rgb(0 0 0 / 0.78));
  }

  main .mobile-header-glass {
    position: fixed;
    inset: 0 0 auto;
    z-index: 55;
    display: block;
    height: 82px;
    border-bottom: 1px solid rgb(219 162 27 / 0.18);
    background: linear-gradient(
      180deg,
      rgb(9 7 4 / 0.76),
      rgb(9 7 4 / 0.42) 72%,
      rgb(9 7 4 / 0.08)
    );
    box-shadow: 0 12px 28px rgb(0 0 0 / 0.16);
    backdrop-filter: blur(14px) saturate(0.86);
    -webkit-backdrop-filter: blur(14px) saturate(0.86);
    pointer-events: none;
  }

  main .mobile-brand-logo {
    position: fixed;
    top: 41px;
    left: 50%;
    z-index: 60;
    display: block;
    width: 76px;
    margin: 0;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 5px 12px rgb(0 0 0 / 0.8));
  }

  main .mobile-menu-toggle {
    position: fixed;
    top: 41px;
    left: 18px;
    z-index: 72;
    display: grid;
    width: 32px;
    height: 28px;
    align-content: space-between;
    padding: 2px;
    border: 0;
    background: transparent;
    transform: translateY(-50%);
  }

  main .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: var(--gold-bright);
    box-shadow: 0 2px 7px rgb(0 0 0 / 0.7);
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  main.is-mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  main.is-mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  main.is-mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  main .mobile-header-actions {
    position: fixed;
    top: 41px;
    right: 18px;
    left: auto;
    z-index: 68;
    display: flex;
    align-items: center;
    gap: 7px;
    direction: ltr;
    transform: translateY(-50%);
  }

  main .mobile-header-action {
    position: relative;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--gold-bright);
    border: 1px solid rgb(219 162 27 / 0.34);
    border-radius: 50%;
    background: rgb(5 4 3 / 0.34);
    box-shadow: 0 5px 12px rgb(0 0 0 / 0.18);
    backdrop-filter: blur(6px);
  }

  main .mobile-header-action::before {
    font-family: "Font Awesome 7 Free";
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1;
  }

  main .mobile-header-action--account::before {
    content: "\f2bd";
  }

  main .mobile-header-action--cart::before {
    content: "\f07a";
  }

  main .mobile-header-action .internal-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    padding-inline: 3px;
    color: #160e04;
    border: 1px solid rgb(255 226 138 / 0.72);
    border-radius: 50%;
    background: var(--gold);
    font-size: 0.55rem;
    line-height: 1;
  }

  main .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 69;
    display: block;
    border: 0;
    background: rgb(0 0 0 / 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }

  main .top-nav,
  .internal-shell .internal-top-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    display: flex;
    width: min(82vw, 310px);
    min-height: 100svh;
    padding: 96px 0 110px;
    justify-content: stretch;
    border: 0;
    border-right: 1px solid rgb(219 162 27 / 0.48);
    background:
      linear-gradient(160deg, rgb(28 20 10 / 0.98), rgb(4 3 2 / 0.99)), #070503;
    box-shadow: 18px 0 44px rgb(0 0 0 / 0.48);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  main .top-nav::before,
  .internal-shell .internal-top-nav::before {
    display: none;
  }

  .commerce-shell .internal-top-nav {
    top: 0;
    min-height: 100svh;
    padding: 96px 0 110px;
    background:
      linear-gradient(160deg, rgb(28 20 10 / 0.98), rgb(4 3 2 / 0.99)), #070503;
  }

  main.is-mobile-menu-open .top-nav {
    transform: translateX(0);
  }

  main.is-mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  main .top-nav__list {
    display: grid;
    width: 100%;
    align-content: start;
    justify-items: stretch;
    gap: 0;
    color: var(--gold-bright);
    font-size: 0.94rem;
    direction: rtl;
    text-align: right;
  }

  main .top-nav__list li {
    width: 100%;
    border-bottom: 1px solid rgb(219 162 27 / 0.28);
  }

  main .top-nav__list a {
    width: 100%;
    min-height: 54px;
    justify-content: flex-start;
    padding: 9px 24px;
    text-align: right;
  }

  main .top-nav__list .menu-item-account,
  main .top-nav__list .menu-item-cart {
    display: none;
  }
}

/* Heroes mobile page */
@media (max-width: 760px) {
  html:has(.heroes-page),
  body:has(.heroes-page) {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: #030504;
  }

  .fantasy-shell.heroes-page {
    width: 100%;
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding-bottom: calc(202px + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 50% 48%, rgb(21 72 47 / 0.28), transparent 34%),
      linear-gradient(180deg, #080a08 0%, #06120d 42%, #020604 100%);
  }

  .heroes-page::before {
    position: fixed;
    background:
      radial-gradient(
        circle at 24% 58%,
        rgb(35 108 69 / 0.18),
        transparent 24%
      ),
      radial-gradient(circle at 78% 74%, rgb(20 77 49 / 0.14), transparent 26%);
  }

  .heroes-page::after {
    position: fixed;
    z-index: 20;
  }

  .heroes-page .hero-background {
    position: relative;
    inset: auto;
    z-index: 1;
    display: block;
    width: 100%;
    height: min(72vh, 650px);
    margin-top: 82px;
    background-position: 20% top;
    background-size: cover;
    filter: none;
    transform: none;
    transition: none;
  }

  .heroes-page .hero-background::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgb(0 0 0 / 0.06), transparent 48%),
      linear-gradient(0deg, #050806 0%, transparent 38%);
  }

  .heroes-page .hero-background__fade {
    display: none;
  }

  .heroes-page .hero-stage {
    display: block;
    min-height: 0;
    overflow: visible;
    padding: 0;
    background:
      linear-gradient(180deg, rgb(2 8 5 / 0.04), rgb(2 7 4 / 0.24)),
      url("assets/images/hero respovsive down BG.webp") center top / cover
        repeat-y;
  }

  .heroes-page .hero-stage::before {
    display: none;
  }

  .heroes-page .hero-panel.hero-panel--detail {
    display: block !important;
    min-height: 0 !important;
    padding: 0 0 28px !important;
  }

  .heroes-page .hero-meta {
    display: flex;
    width: 100%;
    margin: 0;
    flex-direction: column;
    gap: 0;
  }

  .heroes-page .hero-portrait {
    display: none;
  }

  .heroes-page .hero-copy {
    position: relative;
    z-index: 2;
    order: 1;
    width: 100%;
    margin-top: -270px;
    padding: 0 26px 18px;
    text-align: center;
  }

  .heroes-page .hero-type {
    display: none;
  }

  .heroes-page .hero-panel h1 {
    margin: 0;
    font-size: clamp(3.25rem, 18vw, 5.2rem);
    line-height: 1.05;
    text-shadow: 0 5px 18px rgb(0 0 0 / 0.82);
  }

  .heroes-page .hero-panel__lead {
    margin: 4px 0 10px;
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .heroes-page .hero-panel__copy {
    max-width: 430px;
    margin: 0 auto;
    color: rgb(255 238 192 / 0.9);
    font-size: 0.76rem;
    line-height: 2.05;
    text-align: justify;
    text-align-last: center;
  }

  .heroes-page .hero-stats {
    order: 2;
    width: calc(100% - 52px);
    margin: 0 26px 14px;
    padding: 18px;
    border-radius: 10px;
    background: rgb(3 8 5 / 0.62);
    backdrop-filter: blur(8px);
  }

  .heroes-page .hero-stats ul {
    gap: 11px;
  }

  .heroes-page .hero-stat {
    font-size: 0.78rem;
  }

  .heroes-page .hero-bottom-grid {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0 26px;
    flex-direction: column;
    gap: 18px;
  }

  .heroes-page .hero-abilities {
    order: 1;
    width: 100%;
  }

  .heroes-page #heroAbilities {
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
  }

  .heroes-page .hero-ability,
  .heroes-page .hero-ability--ultimate {
    display: grid;
    min-height: 116px;
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr) 58px;
    align-items: center;
    padding: 14px;
    border-radius: 10px;
    background:
      linear-gradient(135deg, rgb(22 88 55 / 0.16), transparent 42%),
      rgb(2 8 5 / 0.68);
    backdrop-filter: blur(8px);
  }

  .heroes-page .hero-ability img,
  .heroes-page .hero-ability--ultimate img {
    width: 54px;
    height: 54px;
  }

  .heroes-page .hero-ability-content {
    direction: rtl;
  }

  .heroes-page .hero-ability-content span {
    font-size: 0.62rem;
  }

  .heroes-page .hero-ability h3 {
    font-size: 0.82rem;
  }

  .heroes-page .hero-ability p {
    font-size: 0.66rem;
    line-height: 1.85;
  }

  .heroes-page .hero-status {
    order: 2;
    width: min(100%, 340px);
    min-height: 430px;
    margin: 0 auto;
    padding: 48px 38px;
  }

  .heroes-page .hero-status h2 {
    font-size: 1.08rem;
  }

  .heroes-page .hero-status ul {
    gap: 18px;
  }

  .heroes-page .hero-status-item {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .heroes-page .hero-status-icon {
    width: 52px;
    height: 52px;
  }

  .heroes-page .hero-carousel-controls {
    position: fixed;
    right: 0;
    bottom: calc(71px + env(safe-area-inset-bottom));
    left: 0;
    z-index: 43;
    display: grid;
    width: 100%;
    height: 120px;
    margin: 0;
    padding: 6px 8px;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 3px;
    isolation: isolate;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
  }

  .heroes-page .hero-carousel-controls::before {
    content: "";
    position: absolute;
    inset: 42px 0 -1px;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgb(3 10 6 / 0),
      rgb(3 10 6 / 0.08) 52%,
      rgb(2 7 4 / 0.18) 100%
    );
    backdrop-filter: blur(16px) saturate(0.88);
    -webkit-backdrop-filter: blur(16px) saturate(0.88);
    mask-image: linear-gradient(
      180deg,
      rgb(0 0 0 / 0.18) 0%,
      rgb(0 0 0 / 0.62) 46%,
      #000 100%
    );
    -webkit-mask-image: linear-gradient(
      180deg,
      rgb(0 0 0 / 0.18) 0%,
      rgb(0 0 0 / 0.62) 46%,
      #000 100%
    );
  }

  .heroes-page .hero-nav-button {
    width: 28px;
    height: 28px;
    justify-self: center;
    border-radius: 5px;
  }

  .heroes-page .hero-nav-button::before {
    font-size: 0.72rem;
  }

  .heroes-page .hero-carousel-viewport {
    width: 100%;
    margin: 0;
    padding: 10px 0;
    overflow: hidden;
  }

  .heroes-page .hero-carousel {
    --hero-card-size: 70px;
    --carousel-gap: 10px;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, var(--hero-card-size));
    justify-content: center;
    gap: var(--carousel-gap);
    padding: 8px 0;
  }

  .heroes-page .hero-card {
    width: var(--hero-card-size);
  }

  .heroes-page .hero-card--active {
    transform: scale(1.18);
  }

  .heroes-page .hero-card--active:hover,
  .heroes-page .hero-card--active:focus-visible {
    transform: scale(1.18);
  }
}
