/* =========================================================
   Yi_Han — Personal Playlog
   Shared styles for home, games and stories
   ========================================================= */

:root {
  --ink: #041b23;
  --ink-deep: #021319;
  --ink-soft: #0a2932;
  --ink-card: #0b2b34;
  --cream: #f3f1e9;
  --paper: #f5f2e9;
  --paper-deep: #e9e4d7;
  --mint: #bce9dd;
  --cyan: #8cd4d0;
  --mint-bright: #d9f4ea;
  --text-muted: rgba(233, 243, 238, 0.66);
  --text-soft: rgba(233, 243, 238, 0.46);
  --line: rgba(227, 245, 239, 0.16);
  --line-strong: rgba(227, 245, 239, 0.28);
  --card-ink: #0a2930;
  --card-muted: #627b7b;
  --card-line: rgba(12, 43, 48, 0.12);
  --max-width: 1320px;
  --edge: clamp(22px, 4.4vw, 64px);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-sans: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Songti SC", "SimSun", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-card: 0 30px 70px rgba(0, 9, 12, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 18% 0%, rgba(45, 116, 121, 0.18), transparent 58%),
    radial-gradient(ellipse 60% 45% at 90% 24%, rgba(35, 92, 102, 0.1), transparent 65%),
    var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: 500;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.74' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(6) infinite;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  color: var(--ink);
  background: var(--mint);
}

img,
svg,
video {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: 112px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 1000;
  padding: 11px 18px;
  color: var(--ink);
  background: var(--mint);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transform: translate(-50%, -180%);
  transition: transform 0.25s var(--ease-out);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ink-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(173, 222, 213, 0.25);
  border: 3px solid var(--ink-deep);
  border-radius: 999px;
}

/* ---------- Type & shared components ---------- */

.section-shell {
  width: min(calc(100% - (var(--edge) * 2)), var(--max-width));
  margin-inline: auto;
}

.section-kicker,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--mint);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 56px;
}

.section-heading h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 3.9vw, 3.65rem);
  font-weight: 640;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-intro {
  width: min(390px, 38%);
  padding-bottom: 6px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.9;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding-bottom: 5px;
  color: var(--mint-bright);
  border-bottom: 1px solid rgba(217, 244, 234, 0.38);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.text-link span {
  font-size: 15px;
  transition: transform 0.35s var(--ease-out);
}

.text-link:hover {
  color: #fff;
  border-color: var(--mint);
}

.text-link:hover span {
  transform: translateX(4px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    transform 0.4s var(--ease-out),
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.4s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-light {
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 14px 34px rgba(0, 12, 16, 0.2);
}

.btn-light:hover {
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 12, 16, 0.28);
}

.btn-ghost {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(233, 248, 242, 0.46);
}

.btn-arrow {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.35s var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 100;
  width: min(calc(100% - 48px), 1320px);
  transform: translateX(-50%);
  pointer-events: none;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 62px;
  padding: 9px 11px 9px 18px;
  border: 1px solid rgba(235, 248, 243, 0.18);
  border-radius: 999px;
  background: linear-gradient(115deg, rgba(3, 23, 30, 0.66), rgba(22, 57, 64, 0.34));
  box-shadow:
    0 20px 64px rgba(0, 10, 14, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  pointer-events: auto;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.is-scrolled .nav-shell {
  border-color: rgba(235, 248, 243, 0.2);
  background: linear-gradient(115deg, rgba(3, 21, 28, 0.91), rgba(13, 42, 49, 0.78));
  box-shadow:
    0 20px 50px rgba(0, 8, 11, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid rgba(233, 248, 243, 0.26);
  border-radius: 50%;
  color: var(--mint);
  background: rgba(255, 255, 255, 0.04);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-word {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

.brand-word span {
  color: var(--mint);
  font-style: normal;
}

.brand-sub {
  color: rgba(232, 244, 239, 0.46);
  font-size: 7px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 21px;
  color: rgba(235, 245, 240, 0.67);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.03em;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 1px;
  background: var(--mint);
  transform: translateX(-50%);
  transition: width 0.35s var(--ease-out);
}

.nav-link:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.055);
}

.nav-link.is-active {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.075);
}

.nav-link.is-active::before {
  width: 16px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--cream);
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.nav-toggle > span:nth-child(1) { top: 16px; }
.nav-toggle > span:nth-child(2) { top: 21px; }
.nav-toggle > span:nth-child(3) { top: 26px; }

.nav-toggle[aria-expanded="true"] > span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] > span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] > span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Media and hero atmosphere ---------- */

.media-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink-deep);
}

.media-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: #03191f;
  transition: opacity 0.62s ease;
}

.media-layer.is-looping::after {
  opacity: 0.9;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
  filter: saturate(0.72) brightness(0.73) contrast(1.08) hue-rotate(-7deg) sepia(0.07);
  transform: scale(1.035);
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 18, 25, 0.96) 0%, rgba(2, 20, 27, 0.78) 33%, rgba(3, 24, 31, 0.2) 69%, rgba(3, 21, 28, 0.5) 100%),
    linear-gradient(180deg, rgba(3, 20, 27, 0.66) 0%, rgba(3, 20, 27, 0.05) 30%, rgba(3, 20, 27, 0.19) 56%, rgba(3, 18, 24, 0.9) 100%),
    radial-gradient(ellipse 55% 42% at 79% 24%, rgba(109, 189, 187, 0.16), transparent 78%);
}

.hero-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, transparent calc(100% - 1px), rgba(255,255,255,0.035) 100%),
    repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255, 255, 255, 0.02) 25%);
  opacity: 0.45;
  mask-image: linear-gradient(to bottom, transparent, #000 35%, transparent 100%);
}

/* ---------- Home hero ---------- */

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 14px);
  margin: 14px 14px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  background: var(--ink-deep);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(calc(100% - (var(--edge) * 2)), var(--max-width));
  min-height: calc(100svh - 16px);
  margin-inline: auto;
  padding: clamp(140px, 18vh, 185px) 0 clamp(28px, 4vh, 44px);
}

.hero-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(34px, 6vw, 90px);
  flex: 1;
}

.hero-copy {
  width: min(860px, 74%);
  padding-bottom: clamp(18px, 3vh, 36px);
}

.hero-eyebrow {
  opacity: 0;
  animation: riseIn 0.9s 0.08s var(--ease-out) forwards;
}

.hero-title {
  margin-top: clamp(22px, 3.6vh, 36px);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 6.35vw, 6.2rem);
  font-weight: 630;
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-wrap: balance;
  text-shadow: 0 18px 50px rgba(0, 9, 13, 0.2);
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(32px);
  animation: titleIn 1.1s 0.16s var(--ease-out) forwards;
}

.title-line:nth-child(2) {
  animation-delay: 0.27s;
}

.title-em {
  position: relative;
  display: inline-block;
  color: var(--mint-bright);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.title-em::after {
  content: "";
  position: absolute;
  left: 0.06em;
  right: 0.04em;
  bottom: 0.09em;
  height: 0.055em;
  border-radius: 999px;
  background: var(--mint);
  opacity: 0.55;
  transform: rotate(-1.2deg);
}

.hero-lede {
  width: min(575px, 100%);
  margin-top: clamp(22px, 3.4vh, 32px);
  color: rgba(234, 244, 239, 0.7);
  font-size: clamp(13.5px, 1.06vw, 15.5px);
  line-height: 1.95;
  letter-spacing: 0.005em;
  opacity: 0;
  animation: riseIn 1s 0.48s var(--ease-out) forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: clamp(26px, 3.8vh, 38px);
  opacity: 0;
  animation: riseIn 1s 0.62s var(--ease-out) forwards;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(235, 245, 240, 0.55);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.live-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(188, 233, 221, 0.08);
  animation: statusPulse 3s ease-in-out infinite;
}

.hero-postcard {
  position: relative;
  z-index: 2;
  width: clamp(220px, 19vw, 264px);
  flex: none;
  margin: 0 1.1vw 16px 0;
  opacity: 0;
  transform: translateY(28px) rotate(2.8deg);
  animation: postcardIn 1.3s 0.72s var(--ease-out) forwards;
}

.postcard-frame {
  position: relative;
  display: block;
  padding: 7px;
  border: 1px solid rgba(239, 249, 244, 0.24);
  border-radius: 25px;
  background: rgba(240, 245, 239, 0.1);
  box-shadow:
    0 28px 65px rgba(0, 7, 10, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  transition: transform 0.55s var(--ease-out), border-color 0.4s ease;
}

.postcard-frame:hover {
  transform: translateY(-5px) rotate(-0.6deg);
  border-color: rgba(239, 249, 244, 0.4);
}

.postcard-pin {
  position: absolute;
  top: -12px;
  left: -34px;
  z-index: 3;
  padding: 7px 10px;
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(3, 22, 29, 0.72);
  backdrop-filter: blur(10px);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.16em;
  transform: rotate(-5deg);
}

.postcard-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 19px;
  background: var(--ink-soft);
}

.postcard-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(3, 19, 25, 0.66) 100%);
}

.postcard-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: saturate(0.82) contrast(1.02);
  transition: transform 0.9s var(--ease-out);
}

.postcard-frame:hover .postcard-image img {
  transform: scale(1.035);
}

.postcard-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(3, 20, 27, 0.56);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.postcard-overline {
  color: var(--mint);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.postcard-caption strong {
  color: var(--cream);
  font-size: 15px;
  font-weight: 590;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.postcard-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 8px;
  color: rgba(235, 245, 240, 0.52);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.postcard-link span {
  color: var(--mint);
  font-size: 14px;
  transition: transform 0.3s var(--ease-out);
}

.postcard-frame:hover .postcard-link span {
  transform: translate(2px, -2px);
}

.postcard-scribble {
  position: absolute;
  right: -36px;
  bottom: 42px;
  color: rgba(230, 241, 236, 0.42);
  font-family: var(--font-serif);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.02em;
  transform: rotate(83deg);
  transform-origin: center;
  white-space: nowrap;
}

.hero-corner {
  position: absolute;
  top: 38px;
  left: 32px;
  z-index: 2;
  color: rgba(236, 246, 241, 0.28);
  font-family: var(--font-serif);
  font-size: 9px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.hero-lower {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-top: clamp(34px, 5vh, 54px);
}

.search-panel-wrap {
  width: min(760px, 74%);
}

.search-panel {
  position: relative;
  z-index: 5;
  padding: 8px;
  border: 1px solid rgba(237, 249, 243, 0.2);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(14, 48, 56, 0.6), rgba(3, 23, 30, 0.47));
  box-shadow:
    0 18px 50px rgba(0, 10, 14, 0.23),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 4px 4px 10px;
}

.search-glyph {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid rgba(234, 246, 240, 0.18);
  border-radius: 50%;
  color: rgba(235, 246, 240, 0.74);
}

.search-glyph svg {
  width: 17px;
  height: 17px;
}

.search-input {
  width: 100%;
  height: 44px;
  min-width: 0;
  padding: 0 3px;
  color: var(--cream);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  letter-spacing: 0.01em;
  appearance: none;
}

.search-input::-webkit-search-cancel-button {
  display: none;
}

.search-input::placeholder {
  color: rgba(237, 246, 241, 0.54);
}

.search-submit {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--cream);
  font-size: 19px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.35s var(--ease-out);
}

.search-submit:hover {
  background: #fff;
  transform: rotate(-5deg) scale(1.04);
}

.search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 4px;
  padding: 10px 10px 4px 16px;
  border-top: 1px solid rgba(237, 249, 243, 0.09);
}

.search-hints {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: rgba(231, 244, 238, 0.44);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.search-hints-label {
  margin-right: 3px;
  letter-spacing: 0.08em;
}

.search-hints a {
  padding: 3px 8px;
  color: rgba(235, 245, 240, 0.64);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.search-hints a:hover {
  color: var(--cream);
  border-color: rgba(238, 249, 243, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.search-note {
  flex: none;
  color: rgba(234, 245, 239, 0.34);
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.search-suggestions {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 30;
  max-height: min(390px, 55vh);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid rgba(236, 249, 243, 0.18);
  border-radius: 18px;
  background: rgba(3, 23, 30, 0.96);
  box-shadow: 0 28px 60px rgba(0, 8, 12, 0.45);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.search-suggestions[hidden] {
  display: none;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 10px;
  border-radius: 12px;
  transition: background-color 0.2s ease;
}

.search-result:hover,
.search-result.is-focused {
  background: rgba(255, 255, 255, 0.07);
}

.search-result-thumb {
  width: 44px;
  height: 44px;
  flex: none;
  overflow: hidden;
  border-radius: 9px;
  background: var(--ink-soft);
}

.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.search-result-copy strong {
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
}

.search-result-copy small {
  overflow: hidden;
  color: rgba(233, 245, 239, 0.46);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-arrow {
  color: var(--mint);
  font-size: 15px;
}

.search-empty {
  padding: 18px 14px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  color: rgba(233, 245, 239, 0.44);
}

.scroll-cue-line {
  position: relative;
  display: block;
  width: 1px;
  height: 43px;
  overflow: hidden;
  background: rgba(229, 245, 238, 0.2);
}

.scroll-cue-line i {
  position: absolute;
  top: -45%;
  left: 0;
  width: 100%;
  height: 45%;
  background: var(--mint);
  animation: scrollLine 2.5s ease-in-out infinite;
}

.scroll-cue-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.scroll-cue-copy small {
  color: rgba(234, 245, 239, 0.24);
  font-size: 6.5px;
  letter-spacing: 0.18em;
}

.scroll-cue:hover {
  color: var(--mint);
}

/* ---------- Statement ---------- */

.statement {
  position: relative;
  margin-top: 14px;
  padding: clamp(70px, 9vw, 120px) 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(ellipse 55% 90% at 0% 50%, rgba(41, 106, 110, 0.18), transparent 65%),
    linear-gradient(110deg, #061f27, #08262e 55%, #051c24);
}

.statement::after {
  content: "MORE LIVING";
  position: absolute;
  right: -0.02em;
  bottom: -0.32em;
  color: rgba(238, 247, 242, 0.025);
  font-family: var(--font-serif);
  font-size: clamp(7rem, 15vw, 17rem);
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.07em;
  white-space: nowrap;
  pointer-events: none;
}

.statement-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.6fr);
  gap: clamp(48px, 9vw, 150px);
  align-items: end;
  width: min(calc(100% - (var(--edge) * 2)), var(--max-width));
  margin-inline: auto;
}

.statement-heading h2 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.2vw, 5.2rem);
  font-weight: 630;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.statement-heading h2 span {
  color: var(--mint);
}

.statement-aside {
  padding-bottom: 7px;
}

.statement-aside p {
  max-width: 390px;
  margin-bottom: 27px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.95;
}

/* ---------- Worlds ---------- */

.worlds {
  padding-top: clamp(80px, 10vw, 132px);
  padding-bottom: clamp(70px, 8vw, 110px);
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(38px, 5vw, 58px);
}

.world-card {
  position: relative;
  aspect-ratio: 0.725;
  overflow: hidden;
  border: 1px solid rgba(236, 248, 243, 0.13);
  border-radius: 22px;
  background: var(--ink-card);
  box-shadow: 0 18px 45px rgba(0, 8, 11, 0.17);
  isolation: isolate;
}

.world-card:nth-child(even) {
  transform: translateY(20px);
}

.world-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 18, 24, 0.2) 0%, transparent 28%, rgba(2, 17, 23, 0.38) 55%, rgba(2, 15, 21, 0.94) 100%),
    linear-gradient(90deg, rgba(3, 20, 26, 0.22), transparent 50%);
  transition: opacity 0.45s ease;
}

.world-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.02) brightness(0.88);
  transition: transform 0.9s var(--ease-out), filter 0.5s ease;
}

.world-card:nth-child(2) img { object-position: 47% 24%; }
.world-card:nth-child(3) img { object-position: 50% 50%; }
.world-card:nth-child(4) img { object-position: 50% 45%; }
.world-card:nth-child(5) img { object-position: 60% 50%; }

.world-card:hover {
  border-color: rgba(217, 244, 234, 0.3);
}

.world-card:hover img {
  filter: saturate(0.95) contrast(1.03) brightness(0.95);
  transform: scale(1.055);
}

.world-card-top {
  position: absolute;
  top: 15px;
  right: 15px;
  left: 15px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(240, 248, 244, 0.74);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.world-card-top span:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--ink);
  border-radius: 50%;
  background: rgba(238, 246, 240, 0.86);
  font-family: var(--font-serif);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0;
}

.world-card-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 18px 17px 20px;
}

.world-card-en {
  margin-bottom: 5px;
  color: rgba(218, 241, 233, 0.6);
  font-family: var(--font-serif);
  font-size: 9.5px;
  font-style: italic;
  letter-spacing: 0.02em;
}

.world-card-body strong {
  color: var(--cream);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.world-card-line {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: rgba(229, 243, 236, 0.58);
  font-size: 10.5px;
  line-height: 1.7;
  opacity: 0;
  transition: max-height 0.4s var(--ease-out), margin 0.4s var(--ease-out), opacity 0.3s ease;
}

.world-card:hover .world-card-line {
  max-height: 30px;
  margin-top: 5px;
  opacity: 1;
}

.worlds-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(50px, 6vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.worlds-note {
  color: var(--text-soft);
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* ---------- Story CTA on home ---------- */

.home-story-cta {
  padding-bottom: clamp(82px, 9vw, 120px);
}

.story-cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.65fr);
  gap: clamp(50px, 9vw, 140px);
  align-items: end;
  overflow: hidden;
  padding: clamp(48px, 6.5vw, 84px);
  border: 1px solid rgba(232, 248, 241, 0.13);
  border-radius: 28px;
  background:
    linear-gradient(115deg, rgba(9, 37, 45, 0.95), rgba(6, 27, 34, 0.9)),
    radial-gradient(ellipse at 80% 0%, rgba(115, 190, 185, 0.2), transparent 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.story-cta-glow {
  position: absolute;
  top: -150px;
  right: -110px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119, 198, 190, 0.16), transparent 67%);
  pointer-events: none;
}

.story-cta-copy {
  position: relative;
  z-index: 2;
}

.story-cta-copy h2 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.6vw, 4.5rem);
  font-weight: 620;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.story-cta-aside {
  position: relative;
  z-index: 2;
  padding-bottom: 4px;
}

.story-cta-quote-mark {
  display: block;
  margin-bottom: 14px;
  color: rgba(190, 235, 222, 0.22);
  font-family: var(--font-serif);
  font-size: 70px;
  line-height: 0.55;
}

.story-cta-aside p {
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.story-cta-watermark {
  position: absolute;
  right: -0.2em;
  bottom: -0.47em;
  z-index: 0;
  color: rgba(236, 248, 242, 0.028);
  font-family: var(--font-serif);
  font-size: clamp(9rem, 17vw, 18rem);
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.07em;
  pointer-events: none;
}

/* ---------- Footer ---------- */

.site-footer {
  width: min(calc(100% - (var(--edge) * 2)), var(--max-width));
  margin-inline: auto;
  padding: clamp(38px, 4.5vw, 58px) 0 30px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr auto;
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}

.footer-brand {
  width: fit-content;
}

.footer-manifesto {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.9;
}

.footer-nav {
  display: flex;
  gap: 4px;
}

.footer-nav a {
  padding: 7px 12px;
  color: rgba(235, 245, 240, 0.54);
  border-radius: 999px;
  font-size: 11.5px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.footer-nav a:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(44px, 5vw, 66px);
  padding-top: 20px;
  color: var(--text-soft);
  border-top: 1px solid rgba(231, 245, 238, 0.08);
  font-size: 9.5px;
  letter-spacing: 0.055em;
}

.footer-motto {
  color: rgba(235, 245, 240, 0.3);
  font-family: var(--font-serif);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.01em;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(235, 245, 240, 0.54);
  transition: color 0.25s ease;
}

.back-top:hover {
  color: var(--mint);
}

.back-top span {
  font-size: 13px;
}

/* ---------- Reveal & keyframes ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.world-card[data-reveal].is-revealed:nth-child(even) {
  transform: translateY(20px);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes titleIn {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes postcardIn {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(3.4deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(2.8deg);
  }
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(188, 233, 221, 0.06); }
  50% { box-shadow: 0 0 0 7px rgba(188, 233, 221, 0.12); }
}

@keyframes scrollLine {
  0% { top: -45%; }
  55%, 100% { top: 100%; }
}

@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(2%, 2%); }
  80% { transform: translate(-1%, -1%); }
}
/* =========================================================
   Games library
   ========================================================= */

.games-page {
  background:
    radial-gradient(ellipse 65% 35% at 8% 0%, rgba(44, 113, 119, 0.2), transparent 62%),
    var(--ink);
}

.library-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(620px, 72svh, 760px);
  margin: 14px 14px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  background: var(--ink-deep);
}

.library-wash {
  background:
    linear-gradient(90deg, rgba(2, 18, 25, 0.94) 0%, rgba(2, 19, 26, 0.72) 37%, rgba(3, 24, 31, 0.2) 72%, rgba(2, 18, 25, 0.47) 100%),
    linear-gradient(180deg, rgba(2, 17, 23, 0.72) 0%, rgba(2, 19, 26, 0.08) 31%, rgba(2, 18, 25, 0.34) 60%, rgba(2, 17, 23, 0.94) 100%),
    radial-gradient(ellipse 42% 52% at 88% 63%, rgba(117, 195, 187, 0.14), transparent 70%);
}

.library-hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(calc(100% - (var(--edge) * 2)), var(--max-width));
  min-height: clamp(618px, calc(72svh - 2px), 758px);
  margin-inline: auto;
  padding: clamp(136px, 16vh, 174px) 0 24px;
}

.library-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: end;
}

.library-copy {
  max-width: 830px;
}

.library-eyebrow {
  opacity: 0;
  animation: riseIn 0.9s 0.08s var(--ease-out) forwards;
}

.library-title {
  margin-top: clamp(22px, 3.4vh, 34px);
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 6vw, 6rem);
  font-weight: 630;
  line-height: 1.03;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.library-lede {
  width: min(560px, 100%);
  margin-top: clamp(22px, 3.4vh, 30px);
  color: var(--text-muted);
  font-size: clamp(13.5px, 1.06vw, 15px);
  line-height: 1.95;
  opacity: 0;
  animation: riseIn 1s 0.48s var(--ease-out) forwards;
}

.library-search-card {
  width: 100%;
  max-width: 410px;
  justify-self: end;
  padding: 20px;
  border: 1px solid rgba(235, 248, 242, 0.18);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(18, 53, 61, 0.52), rgba(3, 22, 29, 0.48));
  box-shadow:
    0 24px 60px rgba(0, 9, 13, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

.library-search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(232, 245, 239, 0.42);
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.library-search-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(233, 245, 239, 0.53);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.library-search-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(188, 233, 221, 0.08);
}

.library-search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding: 5px 5px 5px 12px;
  border: 1px solid rgba(238, 249, 244, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.library-search:focus-within {
  border-color: rgba(207, 241, 230, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.library-search-icon {
  color: rgba(233, 246, 239, 0.56);
}

.library-search-icon svg {
  width: 18px;
  height: 18px;
}

.library-search-input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 2px;
  color: var(--cream);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12.5px;
  appearance: none;
}

.library-search-input::-webkit-search-cancel-button {
  display: none;
}

.library-search-input::placeholder {
  color: rgba(235, 246, 240, 0.44);
}

.library-search-submit {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.3s var(--ease-out);
}

.library-search-submit:hover {
  background: #fff;
  transform: rotate(-5deg);
}

.library-search-hint {
  margin-top: 10px;
  color: rgba(233, 245, 239, 0.33);
  font-size: 9px;
  letter-spacing: 0.015em;
}

.library-hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: clamp(40px, 6vh, 66px);
  padding-top: 17px;
  border-top: 1px solid rgba(235, 248, 241, 0.13);
}

.library-ticker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(235, 246, 240, 0.46);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.library-ticker i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(191, 232, 220, 0.42);
}

.library-scroll {
  flex: none;
}

.library-scroll .scroll-cue-line {
  height: 34px;
}

.library-main {
  padding-top: clamp(62px, 6.5vw, 88px);
  padding-bottom: clamp(82px, 9vw, 120px);
}

.library-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 56px;
}

.library-heading h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.3vw, 4.1rem);
  font-weight: 630;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: clamp(38px, 4.8vw, 54px);
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-chip {
  padding: 9px 15px;
  color: rgba(235, 245, 240, 0.57);
  border: 1px solid rgba(231, 247, 239, 0.14);
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.3s var(--ease-out);
}

.filter-chip:hover {
  color: var(--cream);
  border-color: rgba(231, 247, 239, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.filter-chip.is-active {
  color: var(--ink);
  border-color: var(--cream);
  background: var(--cream);
}

.filter-chip:active {
  transform: scale(0.97);
}

.result-count {
  flex: none;
  color: var(--text-soft);
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.result-count strong {
  color: var(--mint);
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: linear-gradient(180deg, #f8f5ec, #f1ede2);
  color: var(--card-ink);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.55s var(--ease-out),
    box-shadow 0.55s var(--ease-out);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 38px 86px rgba(0, 8, 11, 0.38);
}

.game-card.is-hidden {
  display: none;
}

.game-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #09242c;
}

.game-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 18, 24, 0.35) 0%, transparent 26%, transparent 60%, rgba(3, 18, 24, 0.38) 100%);
  pointer-events: none;
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: transform 0.9s var(--ease-out), filter 0.5s ease;
}

.game-card:hover .game-card__media img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.03);
}

#identity-v .game-card__media img { object-position: 50% 24%; }
#star-rail .game-card__media img { object-position: 50% 52%; }
#roco-kingdom .game-card__media img { object-position: 50% 42%; }
#naraka .game-card__media img { object-position: 56% 48%; }

.game-card__tag {
  position: absolute;
  top: 17px;
  left: 17px;
  z-index: 2;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(3, 20, 26, 0.46);
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.15em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.game-card__number {
  position: absolute;
  top: 5px;
  right: 18px;
  z-index: 2;
  color: rgba(245, 249, 246, 0.36);
  font-family: var(--font-serif);
  font-size: 46px;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.05em;
}

.game-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 29px 29px 25px;
}

.game-card__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-card__kicker {
  color: #6e8584;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.game-card__title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.game-card h3 {
  color: var(--card-ink);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.25vw, 1.95rem);
  font-weight: 640;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.game-card__en {
  color: #73888a;
  font-family: var(--font-serif);
  font-size: 11px;
  font-style: italic;
  letter-spacing: -0.01em;
}

.game-card__desc {
  max-width: 580px;
  margin-top: 15px;
  color: #4b6466;
  font-size: 13px;
  line-height: 1.88;
}

.game-card__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.game-card__tags span {
  padding: 5px 9px;
  color: #5c7575;
  border: 1px solid rgba(10, 41, 48, 0.11);
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.game-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 20px;
}

.game-card__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #75898a;
  font-size: 10px;
  line-height: 1.5;
}

.game-card__meta span {
  color: #9aa9a6;
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.game-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 13px;
  color: var(--card-ink);
  border: 1px solid rgba(9, 39, 45, 0.18);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.game-card__link span {
  font-size: 13px;
  transition: transform 0.3s var(--ease-out);
}

.game-card__link:hover {
  color: var(--cream);
  border-color: var(--card-ink);
  background: var(--card-ink);
}

.game-card__link:hover span {
  transform: translate(2px, -2px);
}

/* Featured Genshin card */

.game-card--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(380px, 0.8fr);
  min-height: 560px;
}

.game-card--feature .game-card__media {
  height: 100%;
  min-height: 560px;
  aspect-ratio: auto;
}

.game-card--feature .game-card__media img {
  object-position: 50% 38%;
}

.game-card--feature .game-card__media::after {
  background:
    linear-gradient(180deg, rgba(3, 18, 24, 0.4) 0%, transparent 24%, transparent 64%, rgba(3, 18, 24, 0.65) 100%),
    linear-gradient(90deg, transparent 72%, rgba(3, 18, 24, 0.18) 100%);
}

.game-card--feature .game-card__body {
  justify-content: center;
  padding: clamp(34px, 4vw, 54px);
}

.game-card--feature h3 {
  font-size: clamp(2rem, 3vw, 2.85rem);
}

.game-card--feature .game-card__desc {
  max-width: 450px;
  margin-top: 21px;
  font-size: 13.5px;
  line-height: 1.93;
}

.game-card--feature .game-card__tags {
  margin-top: 22px;
}

.game-card--feature .game-card__foot {
  margin-top: 32px;
}

.game-feature-inset {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 218px;
  padding: 6px 8px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(5, 27, 34, 0.53);
  box-shadow: 0 15px 35px rgba(0, 8, 11, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.game-feature-inset__image {
  width: 66px;
  height: 55px;
  flex: none;
  overflow: hidden;
  border-radius: 11px;
}

.game-feature-inset__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-feature-inset__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: rgba(248, 251, 247, 0.8);
  font-size: 10px;
  line-height: 1.45;
}

.game-feature-inset__copy small {
  color: rgba(203, 235, 225, 0.48);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.no-results {
  padding: clamp(50px, 7vw, 82px) 24px;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
}

.no-results[hidden] {
  display: none;
}

.no-results__glyph {
  display: block;
  margin-bottom: 18px;
  color: var(--mint);
  font-size: 24px;
}

.no-results h3 {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 580;
  letter-spacing: -0.035em;
}

.no-results p {
  margin-top: 9px;
  font-size: 12px;
}

.no-results__button {
  margin-top: 24px;
  color: var(--ink);
  background: var(--cream);
}

.library-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: clamp(60px, 8vw, 92px);
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.library-footnote p {
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.8;
}

.library-footnote p span {
  display: inline-block;
  margin-right: 10px;
  color: var(--mint);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.16em;
}

/* =========================================================
   Stories
   ========================================================= */

.stories-page {
  background: #031920;
}

.story-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--ink-deep);
}

.story-background__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.story-background__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: #03191f;
  transition: opacity 0.62s ease;
}

.story-background__media.is-looping::after {
  opacity: 0.9;
}

.story-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: saturate(0.62) brightness(0.57) contrast(1.09) hue-rotate(-9deg) sepia(0.04);
  transform: scale(1.04);
}

.story-background__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 15, 21, 0.95) 0%, rgba(2, 17, 23, 0.73) 36%, rgba(2, 18, 24, 0.28) 68%, rgba(2, 15, 21, 0.55) 100%),
    linear-gradient(180deg, rgba(2, 16, 22, 0.82) 0%, rgba(2, 16, 22, 0.12) 25%, rgba(2, 16, 22, 0.28) 57%, rgba(2, 16, 22, 0.93) 100%),
    radial-gradient(ellipse 54% 60% at 82% 28%, rgba(110, 190, 183, 0.14), transparent 68%);
}

.story-background__wash::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255, 255, 255, 0.025) 25%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.story-main,
.stories-footer {
  position: relative;
  z-index: 1;
}

.stories-hero {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.stories-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(50px, 9vw, 140px);
  width: min(calc(100% - (var(--edge) * 2)), var(--max-width));
  flex: 1;
  margin-inline: auto;
  padding: clamp(144px, 17.5vh, 190px) 0 clamp(34px, 4.5vh, 52px);
}

.stories-hero-copy {
  max-width: 860px;
}

.stories-eyebrow {
  opacity: 0;
  animation: riseIn 0.9s 0.08s var(--ease-out) forwards;
}

.stories-title {
  margin-top: clamp(22px, 3.4vh, 34px);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7.1vw, 7.2rem);
  font-weight: 630;
  line-height: 1.01;
  letter-spacing: -0.065em;
  text-wrap: balance;
  text-shadow: 0 24px 60px rgba(0, 8, 11, 0.25);
}

.stories-lede {
  width: min(555px, 100%);
  margin-top: clamp(24px, 3.8vh, 34px);
  color: rgba(233, 244, 238, 0.68);
  font-size: clamp(13.5px, 1.05vw, 15px);
  line-height: 2;
  opacity: 0;
  animation: riseIn 1s 0.52s var(--ease-out) forwards;
}

.stories-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(26px, 3.5vw, 46px);
  margin-top: 34px;
  opacity: 0;
  animation: riseIn 1s 0.68s var(--ease-out) forwards;
}

.stories-meta span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: rgba(232, 245, 239, 0.44);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stories-meta strong {
  color: var(--mint);
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.story-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(185px, 17vw, 235px);
  aspect-ratio: 1;
  flex: none;
  margin-bottom: 6px;
  border: 1px solid rgba(218, 241, 232, 0.25);
  border-radius: 50%;
  opacity: 0;
  animation: sealIn 1.4s 0.8s var(--ease-out) forwards;
}

.story-seal::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(210, 239, 229, 0.22);
  border-radius: 50%;
}

.story-seal-ring {
  position: absolute;
  inset: -11px;
  border: 1px solid rgba(211, 240, 231, 0.1);
  border-radius: 50%;
}

.story-seal-center {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  text-align: center;
}

.story-seal-symbol {
  color: var(--mint);
  font-size: 13px;
}

.story-seal-center strong {
  color: rgba(238, 248, 243, 0.8);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: 0.18em;
}

.story-seal-center small {
  color: rgba(231, 244, 238, 0.35);
  font-family: var(--font-serif);
  font-size: 8px;
  font-style: italic;
  letter-spacing: 0.12em;
}

.story-seal-caption {
  position: absolute;
  right: -35px;
  bottom: -21px;
  color: rgba(225, 241, 234, 0.38);
  font-family: var(--font-serif);
  font-size: 10px;
  font-style: italic;
  line-height: 1.55;
  text-align: right;
  transform: rotate(-8deg);
  white-space: nowrap;
}

.stories-hero-foot {
  display: flex;
  align-items: center;
  gap: 17px;
  width: min(calc(100% - (var(--edge) * 2)), var(--max-width));
  margin-inline: auto;
  padding: 22px 0 29px;
  color: rgba(229, 243, 236, 0.34);
  border-top: 1px solid rgba(225, 241, 234, 0.1);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stories-hero-rule {
  width: 36px;
  height: 1px;
  background: rgba(215, 241, 231, 0.18);
}

.stories-rail {
  position: relative;
  padding: clamp(42px, 5vw, 62px) 0 clamp(40px, 6vw, 70px);
  background:
    linear-gradient(180deg, rgba(3, 22, 29, 0) 0%, rgba(3, 22, 29, 0.46) 13%, rgba(3, 22, 29, 0.92) 34%, rgba(3, 22, 29, 0.97) 100%);
}

.stories-rail-inner {
  width: min(calc(100% - (var(--edge) * 2)), var(--max-width));
  margin-inline: auto;
}

.stories-rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.stories-rail-head h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.7vw, 3.4rem);
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.rail-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
}

.rail-status {
  margin-right: 10px;
  color: rgba(230, 243, 237, 0.42);
  font-family: var(--font-serif);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.rail-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: rgba(238, 248, 243, 0.72);
  border: 1px solid rgba(228, 245, 237, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  font-size: 15px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
}

.rail-arrow:hover:not(:disabled) {
  color: var(--ink);
  border-color: var(--cream);
  background: var(--cream);
}

.rail-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.story-carousel {
  margin-top: 24px;
}

.story-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
}

.story-viewport::-webkit-scrollbar {
  display: none;
}

.story-track {
  position: relative;
  display: flex;
  gap: 22px;
  width: 100%;
}

.story-card {
  display: flex;
  flex: 0 0 calc((100% - 22px) / 2);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: var(--paper);
  color: var(--card-ink);
  box-shadow:
    0 24px 60px rgba(0, 7, 10, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  scroll-snap-align: start;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 34px 78px rgba(0, 7, 10, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.story-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  color: inherit;
  border: 0;
  border-radius: 0;
  background: #0a2630;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.story-card__media:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: -5px;
}

.story-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 18, 24, 0.4) 0%, transparent 28%, transparent 62%, rgba(3, 18, 24, 0.53) 100%);
}

.story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86);
  transition: transform 1s var(--ease-out), filter 0.5s ease;
}

.story-card:nth-child(2) .story-card__media img { object-position: 50% 25%; }
.story-card:nth-child(3) .story-card__media img { object-position: 50% 51%; }
.story-card:nth-child(4) .story-card__media img { object-position: 50% 42%; }
.story-card:nth-child(5) .story-card__media img { object-position: 54% 48%; }

.story-card:hover .story-card__media img {
  filter: saturate(1);
  transform: scale(1.04);
}

.story-card__chapter,
.story-card__world {
  position: absolute;
  top: 17px;
  z-index: 2;
  color: rgba(249, 252, 249, 0.8);
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.15em;
}

.story-card__chapter {
  left: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 7px;
  background: rgba(3, 21, 27, 0.43);
  backdrop-filter: blur(10px);
}

.story-card__world {
  right: 18px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(4, 24, 30, 0.46);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
}

.story-card__view {
  position: absolute;
  right: 18px;
  bottom: 17px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  color: var(--ink);
  border-radius: 999px;
  background: rgba(245, 243, 234, 0.9);
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  backdrop-filter: blur(12px);
}

.story-card__view span {
  font-size: 12px;
}

.story-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 28px 23px;
}

.story-card__kicker {
  color: #7a8e8d;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.story-card__body h3 {
  margin-top: 8px;
  color: var(--card-ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  font-weight: 620;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.story-card__excerpt {
  margin-top: 12px;
  color: #556d6e;
  font-size: 12.5px;
  line-height: 1.9;
}

.story-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
  padding-top: 20px;
}

.story-read {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 0 4px;
  color: var(--card-ink);
  border: 0;
  border-bottom: 1px solid rgba(11, 43, 49, 0.26);
  background: none;
  font-size: 10.5px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.story-read span {
  color: #6b8283;
  font-size: 13px;
  transition: transform 0.3s var(--ease-out);
}

.story-read:hover {
  border-color: var(--card-ink);
}

.story-read:hover span {
  transform: translateX(3px);
}

.story-card__foot > span {
  color: #9aa8a5;
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.story-carousel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 25px;
}

.story-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.story-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(232, 245, 239, 0.25);
  cursor: pointer;
  transition: width 0.35s var(--ease-out), background-color 0.25s ease;
}

.story-dot:hover {
  background: rgba(232, 245, 239, 0.5);
}

.story-dot.is-active {
  width: 25px;
  background: var(--mint);
}

.story-all-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(236, 247, 241, 0.55);
  font-size: 10px;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.story-all-link span {
  color: var(--mint);
  font-size: 14px;
}

.story-all-link:hover {
  color: var(--cream);
}

/* Chapter index */

.chapters {
  position: relative;
  padding: clamp(86px, 10vw, 130px) 0;
  background: rgba(3, 22, 29, 0.97);
  border-top: 1px solid rgba(231, 245, 238, 0.07);
}

.chapters-inner {
  width: min(calc(100% - (var(--edge) * 2)), var(--max-width));
  margin-inline: auto;
}

.chapters-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
}

.chapters-head h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.chapters-head > p {
  width: min(350px, 35%);
  padding-bottom: 5px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.9;
}

.chapter-list {
  margin-top: clamp(40px, 5vw, 58px);
  border-top: 1px solid rgba(230, 244, 238, 0.12);
}

.chapter-list li {
  border-bottom: 1px solid rgba(230, 244, 238, 0.1);
}

.chapter-row {
  display: grid;
  grid-template-columns: 66px 165px minmax(0, 1fr) 36px;
  gap: clamp(14px, 2.8vw, 38px);
  align-items: center;
  width: 100%;
  padding: 23px 5px;
  color: inherit;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease, padding 0.35s var(--ease-out);
}

.chapter-row:hover {
  padding-right: 17px;
  padding-left: 17px;
  background: rgba(255, 255, 255, 0.035);
}

.chapter-number {
  color: rgba(188, 233, 221, 0.45);
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.chapter-row:hover .chapter-number {
  color: var(--mint);
}

.chapter-world {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chapter-world strong {
  color: rgba(241, 248, 244, 0.82);
  font-size: 11px;
  font-weight: 550;
}

.chapter-world small {
  color: rgba(228, 242, 235, 0.32);
  font-family: var(--font-serif);
  font-size: 9.5px;
  font-style: italic;
}

.chapter-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.chapter-copy strong {
  color: var(--cream);
  font-size: clamp(0.95rem, 1.35vw, 1.13rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.chapter-copy small {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-arrow {
  color: rgba(187, 231, 219, 0.55);
  font-size: 17px;
  transition: color 0.25s ease, transform 0.3s var(--ease-out);
}

.chapter-row:hover .chapter-arrow {
  color: var(--mint);
  transform: translate(3px, -3px);
}

.chapter-note {
  margin-top: 18px;
  color: rgba(224, 240, 233, 0.25);
  font-size: 9px;
  letter-spacing: 0.025em;
}

/* Closing */

.story-closing {
  position: relative;
  padding: clamp(90px, 11vw, 155px) 0 clamp(100px, 12vw, 170px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 75% at 15% 100%, rgba(44, 113, 115, 0.22), transparent 72%),
    rgba(4, 25, 32, 0.96);
  border-top: 1px solid rgba(231, 245, 238, 0.07);
}

.story-closing::after {
  content: "fin.";
  position: absolute;
  right: 1vw;
  bottom: -0.36em;
  color: rgba(238, 248, 242, 0.03);
  font-family: var(--font-serif);
  font-size: clamp(16rem, 32vw, 38rem);
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.story-closing-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - (var(--edge) * 2)), var(--max-width));
  margin-inline: auto;
}

.story-closing h2 {
  max-width: 950px;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.8vw, 5.7rem);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.story-closing h2 br {
  display: block;
}

.story-closing-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-top: clamp(38px, 5vw, 60px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.story-closing-bottom p {
  max-width: 460px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.95;
}

.stories-footer {
  padding-top: 45px;
  background: linear-gradient(180deg, rgba(4, 25, 32, 0.98), #031a21);
}

/* Story modal */

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 22px;
}

.story-modal[hidden] {
  display: none;
}

.story-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 11, 15, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.story-modal.is-open .story-modal-backdrop {
  opacity: 1;
}

.story-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  width: min(1080px, 100%);
  max-height: min(90svh, 900px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 26px;
  background: var(--paper);
  color: var(--card-ink);
  box-shadow: 0 50px 140px rgba(0, 5, 8, 0.5);
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
}

.story-modal.is-open .story-modal-dialog {
  opacity: 1;
  transform: none;
}

.story-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--card-ink);
  border: 1px solid rgba(8, 36, 42, 0.12);
  border-radius: 50%;
  background: rgba(248, 245, 236, 0.9);
  box-shadow: 0 8px 20px rgba(0, 8, 11, 0.13);
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background-color 0.25s ease, transform 0.3s var(--ease-out);
}

.story-modal-close:hover {
  background: #fff;
  transform: rotate(5deg);
}

.story-modal-media {
  position: sticky;
  top: 0;
  align-self: stretch;
  min-height: 100%;
  overflow: hidden;
  background: #0a2630;
}

.story-modal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(2, 18, 24, 0.72) 100%),
    linear-gradient(90deg, rgba(2, 18, 24, 0.07), transparent 60%);
}

.story-modal-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
}

.story-modal-media-overlay {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(247, 251, 248, 0.84);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.story-modal-media-overlay span:first-child {
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  background: rgba(4, 25, 31, 0.35);
  backdrop-filter: blur(10px);
}

.story-modal-media-overlay span:last-child {
  color: rgba(239, 248, 243, 0.48);
  font-family: var(--font-serif);
  font-size: 9px;
  font-style: italic;
  letter-spacing: 0.1em;
}

.story-modal-body {
  padding: clamp(34px, 4.2vw, 55px) clamp(28px, 4.4vw, 58px) 34px;
}

.story-modal-kicker {
  color: #7b8e8e;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.15em;
}

.story-modal-body h2 {
  margin-top: 11px;
  color: var(--card-ink);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  font-weight: 640;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.story-modal-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 17px;
  margin-top: 14px;
  color: #8d9c9a;
  font-size: 9px;
}

.story-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.story-modal-tags span {
  padding: 4px 8px;
  color: #687e7f;
  border: 1px solid rgba(10, 41, 48, 0.11);
  border-radius: 999px;
  font-size: 8px;
}

.story-modal-content {
  margin-top: 26px;
}

.story-modal-content p {
  margin-top: 15px;
  color: #455f61;
  font-size: 12.5px;
  line-height: 2;
}

.story-modal-content p:first-child {
  margin-top: 0;
}

.story-modal-content p:first-child::first-letter {
  float: left;
  margin: 5px 8px 0 0;
  color: #173f45;
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 0.76;
}

.story-modal-quote {
  margin-top: 26px;
  padding: 15px 0 15px 18px;
  color: #315459;
  border-left: 2px solid #91c9c2;
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.85;
}

.story-modal-note {
  margin-top: 20px;
  color: #9ba9a6;
  font-size: 8px;
  line-height: 1.7;
}

.story-modal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(10, 41, 48, 0.1);
  color: #9ba9a6;
  font-size: 8px;
  letter-spacing: 0.07em;
}

.modal-nav-btn {
  padding: 5px 0;
  color: #466266;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font-size: 10px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.modal-nav-btn:hover {
  color: #0c333a;
  border-color: rgba(12, 51, 58, 0.4);
}

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

@media (max-width: 1180px) {
  .hero-copy {
    width: min(760px, 73%);
  }

  .hero-title {
    font-size: clamp(3.2rem, 6.6vw, 5.55rem);
  }

  .hero-postcard {
    width: 216px;
  }

  .statement-inner {
    gap: 60px;
  }

  .story-card__body {
    padding: 23px 24px 21px;
  }

  .story-card__excerpt {
    font-size: 12px;
    line-height: 1.82;
  }

  .game-card--feature {
    grid-template-columns: minmax(0, 1.32fr) minmax(350px, 0.8fr);
  }

  .game-card--feature .game-card__body {
    padding: 36px;
  }
}

@media (max-width: 991px) {
  :root {
    --edge: clamp(22px, 4vw, 42px);
  }

  .site-header {
    top: 16px;
    width: calc(100% - 32px);
  }

  .nav-shell {
    min-height: 58px;
    padding-left: 15px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
  }

  .brand-word {
    font-size: 20px;
  }

  .nav-link {
    padding-inline: 17px;
  }

  .hero-inner {
    padding-top: 138px;
  }

  .hero-copy {
    width: 100%;
    max-width: 780px;
    padding-bottom: 0;
  }

  .hero-title {
    font-size: clamp(3.3rem, 7.7vw, 5.5rem);
    max-width: 800px;
  }

  .hero-postcard {
    position: absolute;
    top: 150px;
    right: 1vw;
    width: 190px;
    margin: 0;
    opacity: 0.18;
    pointer-events: none;
    animation: none;
    transform: rotate(3deg);
  }

  .hero-postcard .postcard-pin,
  .hero-postcard .postcard-scribble,
  .hero-postcard .postcard-caption {
    display: none;
  }

  .hero-lede {
    max-width: 590px;
  }

  .hero-lower {
    margin-top: 54px;
  }

  .search-panel-wrap {
    width: min(670px, 76%);
  }

  .statement-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.7fr);
    gap: 45px;
  }

  .world-grid {
    grid-template-columns: repeat(5, minmax(210px, 1fr));
    width: calc(100% + var(--edge));
    margin-right: calc(var(--edge) * -1);
    padding-right: var(--edge);
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .world-grid::-webkit-scrollbar {
    display: none;
  }

  .world-card {
    scroll-snap-align: start;
  }

  .story-cta-panel {
    grid-template-columns: 1fr;
    gap: 38px;
    align-items: start;
  }

  .story-cta-aside {
    max-width: 540px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    border-top: 1px solid rgba(231, 245, 238, 0.08);
    padding-top: 15px;
  }

  .library-hero-top {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.7fr);
    gap: 38px;
  }

  .library-title {
    font-size: clamp(3rem, 6.7vw, 5.3rem);
  }

  .library-search-card {
    padding: 16px;
  }

  .game-card--feature {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .game-card--feature .game-card__media {
    min-height: 0;
    aspect-ratio: 16 / 8.3;
  }

  .game-card--feature .game-card__body {
    padding: 32px;
  }

  .game-card--feature .game-card__foot {
    margin-top: 28px;
  }

  .game-card__body {
    padding: 24px;
  }

  .game-card__desc {
    font-size: 12.5px;
  }

  .filter-row {
    align-items: flex-start;
  }

  .filter-chips {
    max-width: 82%;
  }

  .stories-hero-inner {
    padding-top: 195px;
  }

  .story-seal {
    width: 180px;
    margin-right: 8px;
  }

  .stories-title {
    font-size: clamp(3.3rem, 7.8vw, 5.7rem);
  }

  .story-track {
    gap: 18px;
  }

  .story-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .story-card__body {
    padding: 21px 21px 20px;
  }

  .story-card__body h3 {
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  }

  .story-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .chapter-row {
    grid-template-columns: 50px 145px minmax(0, 1fr) 27px;
    gap: 16px;
  }

  .story-modal-dialog {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  }

  .story-modal-media-overlay {
    right: 17px;
    bottom: 17px;
    left: 17px;
  }

  .story-modal-body {
    padding: 38px 30px 28px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 12px;
    border: 1px solid rgba(235, 248, 243, 0.16);
    border-radius: 22px;
    background: #03171e;
    box-shadow: 0 24px 60px rgba(0, 8, 11, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.26s ease, transform 0.35s var(--ease-out), visibility 0s linear 0.3s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.26s ease, transform 0.35s var(--ease-out), visibility 0s;
  }

  .nav-link {
    justify-content: space-between;
    min-height: 50px;
    padding: 13px 16px;
    border-radius: 13px;
    font-size: 14px;
  }

  .nav-link::before {
    right: 16px;
    bottom: auto;
    left: auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    opacity: 0;
    transform: none;
  }

  .nav-link.is-active {
    background: rgba(255, 255, 255, 0.075);
  }

  .nav-link.is-active::before {
    width: 5px;
    opacity: 1;
  }

  .home-hero,
  .library-hero {
    margin: 10px 10px 0;
    border-radius: 26px;
  }

  .site-header {
    top: 18px;
    width: calc(100% - 36px);
  }

  .hero-inner,
  .library-hero-inner {
    width: calc(100% - 44px);
    min-height: calc(100svh - 12px);
    padding-top: 128px;
  }

  .hero-title,
  .library-title {
    font-size: clamp(3rem, 8.2vw, 4.9rem);
  }

  .hero-lower {
    align-items: flex-end;
    gap: 20px;
  }

  .search-panel-wrap {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .hero-postcard {
    display: none;
  }

  .statement {
    margin-top: 10px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .section-intro {
    width: min(500px, 100%);
  }

  .statement-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .statement-aside {
    max-width: 500px;
  }

  .worlds {
    padding-top: 82px;
  }

  .library-hero-inner {
    padding-bottom: 22px;
  }

  .library-hero-top {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .library-lede {
    max-width: 540px;
  }

  .library-search-card {
    width: min(410px, 100%);
    justify-self: start;
  }

  .library-hero-bottom {
    margin-top: 45px;
  }

  .library-ticker {
    max-width: 78%;
  }

  .library-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .game-grid {
    gap: 18px;
  }

  .game-card__body {
    padding: 22px;
  }

  .game-card__title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .game-card__foot {
    align-items: center;
  }

  .game-card__meta {
    font-size: 9.5px;
  }

  .filter-row {
    flex-direction: column;
    gap: 14px;
  }

  .filter-chips {
    max-width: 100%;
  }

  .stories-hero {
    min-height: auto;
  }

  .stories-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 170px;
    padding-bottom: 58px;
  }

  .story-seal {
    display: none;
  }

  .stories-title {
    font-size: clamp(3.2rem, 8.8vw, 5rem);
  }

  .stories-hero-foot {
    margin-top: 30px;
  }

  .stories-rail-head,
  .chapters-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .chapters-head > p {
    width: min(430px, 100%);
  }

  .rail-controls {
    align-self: flex-end;
  }

  .story-track {
    gap: 16px;
  }

  .story-card {
    flex-basis: 80%;
  }

  .story-card__excerpt {
    -webkit-line-clamp: 4;
  }

  .story-card__body {
    padding: 24px;
  }

  .chapter-row {
    grid-template-columns: 46px 140px minmax(0, 1fr) 28px;
  }

  .story-closing-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .story-closing-bottom p {
    max-width: 580px;
  }

  .story-modal {
    padding: 12px;
  }

  .story-modal-dialog {
    display: block;
    max-height: 92svh;
    border-radius: 22px;
  }

  .story-modal-media {
    position: relative;
    height: 220px;
    min-height: 0;
  }

  .story-modal-body {
    padding: 30px 26px 26px;
  }

  .story-modal-close {
    position: fixed;
    top: 18px;
    right: 17px;
    width: 36px;
    height: 36px;
    font-size: 21px;
  }
}

@media (max-width: 680px) {
  :root {
    --edge: 20px;
    --radius-xl: 24px;
    --radius-lg: 20px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    top: 14px;
    width: calc(100% - 28px);
  }

  .nav-shell {
    min-height: 54px;
    padding: 8px 8px 8px 13px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .brand-mark svg {
    width: 23px;
    height: 23px;
  }

  .brand-word {
    font-size: 19px;
  }

  .brand-sub {
    display: none;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .nav-toggle > span:not(.sr-only) {
    left: 11px;
    width: 15px;
  }

  .nav-toggle > span:nth-child(1) { top: 14px; }
  .nav-toggle > span:nth-child(2) { top: 19px; }
  .nav-toggle > span:nth-child(3) { top: 24px; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(1),
  .nav-toggle[aria-expanded="true"] > span:nth-child(3) { top: 19px; }

  .home-hero,
  .library-hero {
    margin: 8px 8px 0;
    border-radius: 22px;
  }

  .hero-inner,
  .library-hero-inner {
    width: calc(100% - 38px);
    min-height: calc(100svh - 10px);
    padding-top: 105px;
    padding-bottom: 20px;
  }

  .hero-eyebrow,
  .library-eyebrow,
  .stories-eyebrow {
    font-size: 8px;
    letter-spacing: 0.16em;
    gap: 8px;
  }

  .hero-title,
  .library-title {
    margin-top: 20px;
    font-size: clamp(2.7rem, 12.5vw, 4.2rem);
    line-height: 1.06;
    letter-spacing: -0.06em;
  }

  .title-em {
    font-size: 0.98em;
  }

  .hero-lede,
  .library-lede {
    margin-top: 20px;
    font-size: 12.5px;
    line-height: 1.9;
  }

  .desktop-only {
    display: none;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
  }

  .btn {
    min-height: 46px;
    padding: 12px 19px;
    font-size: 12px;
  }

  .live-status {
    font-size: 8.5px;
  }

  .hero-lower {
    margin-top: 38px;
  }

  .search-panel {
    padding: 6px;
    border-radius: 20px;
  }

  .search-bar {
    gap: 8px;
    padding-left: 7px;
  }

  .search-glyph {
    width: 32px;
    height: 32px;
  }

  .search-input {
    height: 40px;
    font-size: 12px;
  }

  .search-submit {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .search-meta {
    padding: 8px 6px 3px 10px;
  }

  .search-hints {
    gap: 3px;
    font-size: 8.5px;
  }

  .search-hints a {
    padding: 3px 5px;
  }

  .search-note {
    display: none;
  }

  .hero-corner {
    display: none;
  }

  .home-hero .hero-wash {
    background:
      linear-gradient(180deg, rgba(2, 18, 25, 0.67) 0%, rgba(2, 19, 26, 0.36) 28%, rgba(2, 16, 22, 0.76) 68%, rgba(2, 15, 21, 0.97) 100%),
      linear-gradient(90deg, rgba(2, 18, 25, 0.72), rgba(2, 18, 25, 0.15));
  }

  .bg-video {
    object-position: 50% 42%;
  }

  .statement {
    padding: 66px 0 72px;
  }

  .statement-heading h2 {
    margin-top: 18px;
    font-size: clamp(2.5rem, 10.2vw, 3.8rem);
  }

  .statement-aside p {
    margin-bottom: 22px;
    font-size: 13px;
  }

  .worlds {
    padding-top: 70px;
    padding-bottom: 66px;
  }

  .world-grid {
    grid-template-columns: repeat(5, minmax(215px, 1fr));
    gap: 11px;
    margin-top: 30px;
  }

  .world-card:nth-child(even) {
    transform: none;
  }

  .world-card {
    aspect-ratio: 0.74;
    border-radius: 18px;
  }

  .worlds-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    margin-top: 40px;
  }

  .story-cta-panel {
    padding: 30px 24px 33px;
    border-radius: 22px;
  }

  .story-cta-copy h2 {
    margin-top: 16px;
    font-size: clamp(2.1rem, 9.2vw, 3rem);
  }

  .story-cta-aside p {
    font-size: 12.5px;
  }

  .story-cta-quote-mark {
    display: none;
  }

  .story-cta-watermark {
    display: none;
  }

  .site-footer {
    padding-top: 38px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-nav {
    grid-column: auto;
    flex-wrap: wrap;
    padding-top: 13px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .footer-motto {
    order: 3;
  }

  .games-page .library-hero {
    min-height: calc(100svh - 10px);
  }

  .library-hero-inner {
    justify-content: flex-end;
  }

  .library-hero-top {
    gap: 28px;
  }

  .library-title {
    font-size: clamp(2.55rem, 11.6vw, 3.8rem);
  }

  .library-lede {
    font-size: 12.5px;
  }

  .library-search-card {
    padding: 14px;
    border-radius: 18px;
  }

  .library-search-status {
    display: none;
  }

  .library-search {
    margin-top: 10px;
  }

  .library-search-hint {
    display: none;
  }

  .library-hero-bottom {
    margin-top: 33px;
    padding-top: 13px;
  }

  .library-ticker {
    max-width: 100%;
    gap: 8px;
    font-size: 8px;
  }

  .library-ticker span:nth-of-type(n + 4),
  .library-ticker i:nth-of-type(n + 3) {
    display: none;
  }

  .library-main {
    padding-top: 65px;
    padding-bottom: 70px;
  }

  .library-heading h2 {
    font-size: clamp(2rem, 9.6vw, 3rem);
  }

  .library-heading .section-intro {
    font-size: 12px;
  }

  .filter-row {
    margin-top: 33px;
    padding: 13px 0;
  }

  .filter-chips {
    flex-wrap: nowrap;
    width: calc(100% + 20px);
    margin-right: -20px;
    padding-right: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-chips::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: none;
    padding: 8px 12px;
    font-size: 10px;
  }

  .game-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }

  .game-card {
    border-radius: 20px;
  }

  .game-card--feature {
    grid-column: auto;
  }

  .game-card--feature .game-card__media {
    aspect-ratio: 16 / 11;
  }

  .game-card__media {
    aspect-ratio: 16 / 10.5;
  }

  .game-card--feature .game-card__body,
  .game-card__body {
    padding: 23px 21px 21px;
  }

  .game-card--feature h3,
  .game-card h3 {
    font-size: clamp(1.55rem, 6.7vw, 2rem);
  }

  .game-card__desc,
  .game-card--feature .game-card__desc {
    margin-top: 13px;
    font-size: 12px;
    line-height: 1.9;
  }

  .game-card--feature .game-card__foot,
  .game-card__foot {
    align-items: flex-end;
    gap: 11px;
    margin-top: 22px;
    padding-top: 17px;
  }

  .game-card__meta {
    font-size: 9px;
  }

  .game-card__meta span {
    font-size: 7px;
  }

  .game-card__link {
    padding: 8px 11px;
    font-size: 9.5px;
  }

  .game-feature-inset {
    right: 13px;
    bottom: 13px;
    width: 185px;
    padding: 5px 7px 5px 5px;
    border-radius: 13px;
  }

  .game-feature-inset__image {
    width: 54px;
    height: 46px;
    border-radius: 9px;
  }

  .game-feature-inset__copy {
    font-size: 9px;
  }

  .game-card__tag {
    top: 13px;
    left: 13px;
    padding: 6px 8px;
    font-size: 6.8px;
  }

  .game-card__number {
    top: 4px;
    right: 14px;
    font-size: 38px;
  }

  .library-footnote {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    margin-top: 55px;
  }

  .stories-hero-inner {
    width: calc(100% - 38px);
    padding-top: 145px;
    padding-bottom: 48px;
  }

  .stories-title {
    margin-top: 20px;
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .stories-lede {
    font-size: 12.5px;
    line-height: 1.95;
  }

  .stories-meta {
    gap: 21px;
    margin-top: 27px;
  }

  .stories-meta strong {
    font-size: 18px;
  }

  .stories-hero-foot {
    width: calc(100% - 38px);
    gap: 10px;
    padding: 16px 0 20px;
    font-size: 6.5px;
    letter-spacing: 0.1em;
  }

  .stories-rail {
    padding-top: 60px;
    background: linear-gradient(180deg, rgba(3, 22, 29, 0.2), rgba(3, 22, 29, 0.95) 18%, rgba(3, 22, 29, 0.98) 100%);
  }

  .stories-rail-head h2 {
    font-size: clamp(1.9rem, 8.6vw, 2.7rem);
  }

  .rail-status {
    margin-right: 2px;
    font-size: 9px;
  }

  .rail-arrow {
    width: 35px;
    height: 35px;
    font-size: 13px;
  }

  .story-carousel {
    margin-top: 23px;
  }

  .story-track {
    gap: 13px;
  }

  .story-card {
    flex-basis: 88%;
    border-radius: 20px;
  }

  .story-card__media {
    aspect-ratio: 16 / 10;
  }

  .story-card__body {
    padding: 21px 19px 19px;
  }

  .story-card__body h3 {
    font-size: 1.32rem;
  }

  .story-card__excerpt {
    font-size: 11.5px;
    line-height: 1.85;
  }

  .story-card__chapter,
  .story-card__world {
    top: 13px;
    font-size: 7px;
  }

  .story-card__chapter { left: 13px; }
  .story-card__world { right: 13px; }

  .story-card__view {
    right: 13px;
    bottom: 13px;
    padding: 7px 10px;
    font-size: 6.5px;
  }

  .story-carousel-foot {
    margin-top: 19px;
  }

  .chapters {
    padding: 70px 0;
  }

  .chapters-head h2 {
    font-size: clamp(1.9rem, 8.8vw, 2.8rem);
  }

  .chapter-list {
    margin-top: 32px;
  }

  .chapter-row {
    grid-template-columns: 37px minmax(0, 1fr) 23px;
    gap: 11px;
    padding: 19px 2px;
  }

  .chapter-row:hover {
    padding-right: 7px;
    padding-left: 7px;
  }

  .chapter-world {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    align-items: baseline;
    gap: 7px;
  }

  .chapter-world strong {
    font-size: 10px;
  }

  .chapter-world small {
    font-size: 8px;
  }

  .chapter-copy {
    grid-column: 2;
    grid-row: 2;
    gap: 3px;
  }

  .chapter-copy strong {
    font-size: 13px;
  }

  .chapter-copy small {
    font-size: 9px;
  }

  .chapter-number {
    grid-row: 1 / 3;
    font-size: 18px;
  }

  .chapter-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
    font-size: 14px;
  }

  .chapter-note {
    line-height: 1.7;
  }

  .story-closing {
    padding: 75px 0 88px;
  }

  .story-closing h2 {
    margin-top: 18px;
    font-size: clamp(2.35rem, 11vw, 3.6rem);
  }

  .story-closing-bottom {
    margin-top: 30px;
  }

  .story-closing-bottom p {
    font-size: 12px;
  }

  .story-modal {
    padding: 8px;
  }

  .story-modal-dialog {
    max-height: 94svh;
    border-radius: 19px;
  }

  .story-modal-media {
    height: 190px;
  }

  .story-modal-close {
    position: fixed;
    top: 18px;
    right: 17px;
    width: 36px;
    height: 36px;
    font-size: 21px;
  }

  .story-modal-body {
    padding: 25px 19px 22px;
  }

  .story-modal-body h2 {
    font-size: clamp(1.65rem, 7.4vw, 2.2rem);
  }

  .story-modal-content {
    margin-top: 21px;
  }

  .story-modal-content p {
    font-size: 12px;
    line-height: 1.95;
  }

  .story-modal-quote {
    margin-top: 22px;
    padding-left: 14px;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .hero-title,
  .library-title {
    font-size: clamp(2.45rem, 12.3vw, 3rem);
  }

  .stories-title {
    font-size: clamp(2.55rem, 12.5vw, 3.2rem);
  }

  .story-card {
    flex-basis: 92%;
  }

  .game-card__foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---------- Motion and fallbacks ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .world-card:nth-child(even),
  .world-card[data-reveal].is-revealed:nth-child(even) {
    transform: none;
  }

  .hero-postcard {
    opacity: 1;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-shell,
  .search-panel,
  .library-search-card,
  .story-seal,
  .story-card__view,
  .game-feature-inset {
    background-color: rgba(4, 25, 32, 0.94);
  }

  .postcard-caption {
    background: rgba(3, 20, 27, 0.88);
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: pageOut 0.24s ease both;
}

::view-transition-new(root) {
  animation: pageIn 0.4s ease both;
}

@keyframes pageOut {
  to { opacity: 0; }
}

@keyframes pageIn {
  from { opacity: 0; }
}

@keyframes sealIn {
  from {
    opacity: 0;
    transform: scale(0.9) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@media print {
  body::before,
  .site-header,
  .story-background,
  .scroll-cue,
  .rail-controls,
  .story-modal {
    display: none !important;
  }

  body {
    color: #111;
    background: #fff;
  }
}

/* =========================================================
   About Yi_Han
   ========================================================= */

.about-page {
  background:
    radial-gradient(ellipse 58% 44% at 86% 12%, rgba(35, 93, 121, 0.16), transparent 62%),
    var(--ink);
}

.about-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 14px);
  margin: 14px 14px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  background: var(--ink-deep);
}

.about-wash {
  background:
    linear-gradient(90deg, rgba(2, 16, 23, 0.96) 0%, rgba(2, 19, 26, 0.85) 35%, rgba(3, 23, 31, 0.38) 66%, rgba(2, 15, 21, 0.7) 100%),
    linear-gradient(180deg, rgba(2, 16, 22, 0.72) 0%, rgba(2, 19, 26, 0.1) 32%, rgba(2, 18, 25, 0.3) 62%, rgba(2, 16, 22, 0.93) 100%),
    radial-gradient(ellipse 45% 58% at 82% 46%, rgba(43, 111, 146, 0.25), transparent 70%);
}

.about-corner {
  position: absolute;
  top: 37px;
  left: 32px;
  z-index: 2;
  color: rgba(236, 246, 241, 0.28);
  font-family: var(--font-serif);
  font-size: 8px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.about-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.78fr);
  align-items: center;
  gap: clamp(34px, 5vw, 80px);
  width: min(calc(100% - (var(--edge) * 2)), var(--max-width));
  min-height: calc(100svh - 16px);
  margin-inline: auto;
  padding: clamp(142px, 17vh, 188px) 0 clamp(44px, 6vh, 64px);
}

.about-copy {
  position: relative;
  z-index: 2;
  max-width: 790px;
}

.about-eyebrow {
  opacity: 0;
  animation: riseIn 0.9s 0.08s var(--ease-out) forwards;
}

.about-title {
  margin-top: clamp(22px, 3.5vh, 34px);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5.75vw, 5.8rem);
  font-weight: 630;
  line-height: 1.04;
  letter-spacing: -0.06em;
  text-wrap: balance;
  text-shadow: 0 18px 50px rgba(0, 9, 13, 0.2);
}

.about-role {
  max-width: 650px;
  margin-top: clamp(22px, 3.2vh, 30px);
  color: var(--mint-bright);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: riseIn 1s 0.48s var(--ease-out) forwards;
}

.about-bio {
  max-width: 650px;
  margin-top: 17px;
  color: rgba(233, 244, 238, 0.65);
  font-size: clamp(13px, 1.02vw, 14.5px);
  line-height: 1.98;
  opacity: 0;
  animation: riseIn 1s 0.6s var(--ease-out) forwards;
}

.about-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(26px, 3.8vh, 36px);
  opacity: 0;
  animation: riseIn 1s 0.72s var(--ease-out) forwards;
}

.about-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: clamp(28px, 4vh, 40px);
  color: rgba(231, 243, 237, 0.48);
  font-size: 8.5px;
  font-weight: 550;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: riseIn 1s 0.86s var(--ease-out) forwards;
}

.about-status i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(188, 233, 221, 0.07);
  animation: statusPulse 3s ease-in-out infinite;
}

.about-status-time {
  margin-left: 7px;
  padding-left: 16px;
  color: rgba(231, 243, 237, 0.26);
  border-left: 1px solid rgba(223, 243, 235, 0.16);
  font-size: 7.5px;
  letter-spacing: 0.14em;
}

/* Portrait */

.about-portrait {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 0 42px;
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  animation: portraitIn 1.3s 0.36s var(--ease-out) forwards;
}

.portrait-stage {
  position: relative;
  isolation: isolate;
  width: min(100%, 500px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.portrait-halo {
  position: absolute;
  inset: 3%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 33%, rgba(42, 112, 164, 0.85), rgba(12, 51, 75, 0.45) 56%, rgba(4, 26, 39, 0.1) 70%, transparent 73%);
  filter: blur(18px);
  transform: scale(1.13);
}

.portrait-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.portrait-ring--outer {
  inset: -17px;
  border: 1px solid rgba(218, 242, 234, 0.18);
}

.portrait-ring--outer::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(216, 241, 232, 0.14);
  border-radius: 50%;
}

.portrait-ring--inner {
  inset: 10px;
  border: 1px solid rgba(218, 242, 234, 0.1);
}

.portrait-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(238, 249, 244, 0.3);
  border-radius: 50%;
  background: #0a2630;
  box-shadow:
    0 36px 90px rgba(0, 7, 10, 0.42),
    0 0 80px rgba(41, 113, 154, 0.15),
    inset 0 0 85px rgba(2, 17, 25, 0.38);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, rgba(2, 19, 27, 0.32) 100%),
    radial-gradient(circle at 50% 100%, rgba(4, 23, 32, 0.48), transparent 48%);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: saturate(0.84) contrast(1.025) brightness(0.96);
}

.portrait-tag {
  position: absolute;
  top: 20px;
  left: 26px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 10px;
  color: rgba(240, 250, 245, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 7px;
  background: rgba(3, 23, 31, 0.38);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.14em;
  backdrop-filter: blur(12px);
}

.portrait-tag small {
  color: rgba(214, 240, 231, 0.45);
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.portrait-spark {
  position: absolute;
  left: 5%;
  bottom: 25%;
  z-index: 3;
  color: var(--mint-bright);
  font-size: 20px;
  text-shadow: 0 0 18px rgba(188, 233, 221, 0.55);
}

.portrait-orbit-dot {
  position: absolute;
  top: 7%;
  right: 9%;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(188, 233, 221, 0.1), 0 0 18px rgba(188, 233, 221, 0.6);
}

.about-world-card {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(326px, 77%);
  padding: 7px 11px 7px 7px;
  color: var(--cream);
  border: 1px solid rgba(239, 249, 244, 0.22);
  border-radius: 17px;
  background: rgba(5, 29, 38, 0.78);
  box-shadow:
    0 24px 60px rgba(0, 7, 10, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  transform: rotate(1.8deg);
  transition: transform 0.5s var(--ease-out), border-color 0.3s ease, background-color 0.3s ease;
}

.about-world-card:hover {
  border-color: rgba(223, 246, 237, 0.38);
  background: rgba(7, 34, 44, 0.9);
  transform: rotate(0deg) translateY(-3px);
}

.about-world-thumb {
  width: 88px;
  height: 76px;
  flex: none;
  overflow: hidden;
  border-radius: 11px;
  background: var(--ink-soft);
}

.about-world-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
  filter: saturate(0.88);
  transition: transform 0.7s var(--ease-out);
}

.about-world-card:hover .about-world-thumb img {
  transform: scale(1.04);
}

.about-world-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.about-world-kicker {
  color: var(--mint);
  font-size: 6.5px;
  font-weight: 650;
  letter-spacing: 0.15em;
}

.about-world-copy strong {
  color: var(--cream);
  font-size: 12px;
  font-weight: 580;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.about-world-copy small {
  overflow: hidden;
  color: rgba(227, 243, 236, 0.42);
  font-size: 7px;
  line-height: 1.5;
  letter-spacing: 0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-world-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--ink);
  border-radius: 50%;
  background: rgba(243, 241, 233, 0.9);
  font-size: 13px;
  transition: transform 0.3s var(--ease-out), background-color 0.25s ease;
}

.about-world-card:hover .about-world-arrow {
  background: #fff;
  transform: translate(2px, -2px);
}

/* Below the fold */

.about-values {
  padding-top: clamp(82px, 10vw, 126px);
  padding-bottom: clamp(78px, 9vw, 112px);
}

.about-values-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 55px;
}

.about-values-head h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-weight: 630;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.about-values-head .section-intro {
  width: min(360px, 35%);
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(34px, 4.6vw, 50px);
}

.about-value {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 286px;
  padding: 26px 23px 22px;
  overflow: hidden;
  border: 1px solid rgba(231, 246, 239, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.047), rgba(255, 255, 255, 0.018));
  transition:
    transform 0.5s var(--ease-out),
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.about-value::before {
  content: "";
  position: absolute;
  top: 0;
  right: 23px;
  left: 23px;
  height: 1px;
  background: linear-gradient(90deg, rgba(188, 233, 221, 0.55), transparent);
  opacity: 0.5;
}

.about-value:hover {
  border-color: rgba(213, 242, 232, 0.25);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.025));
  transform: translateY(-4px);
}

.about-value-number {
  color: rgba(188, 233, 221, 0.46);
  font-family: var(--font-serif);
  font-size: 25px;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.02em;
}

.about-value-en {
  margin-top: 21px;
  color: rgba(229, 246, 238, 0.33);
  font-size: 7px;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.about-value h3 {
  margin-top: 8px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.55vw, 1.5rem);
  font-weight: 590;
  line-height: 1.4;
  letter-spacing: -0.035em;
}

.about-value > p:not(.about-value-en) {
  margin-top: 13px;
  color: rgba(229, 242, 235, 0.57);
  font-size: 12px;
  line-height: 1.88;
}

.about-value-meta {
  margin-top: auto;
  padding-top: 22px;
  color: rgba(186, 230, 218, 0.44);
  font-family: var(--font-serif);
  font-size: 9px;
  font-style: italic;
  letter-spacing: 0.03em;
}

.about-values-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: clamp(42px, 5vw, 62px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.about-values-foot > p {
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-style: italic;
  line-height: 1.7;
}

.about-values-foot > p span {
  color: var(--mint-bright);
}

.about-values-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  flex: none;
}

@keyframes portraitIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* About responsive */

@media (max-width: 1180px) {
  .about-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.78fr);
    gap: 40px;
  }

  .about-title {
    font-size: clamp(3.05rem, 5.8vw, 5.2rem);
  }

  .portrait-stage {
    width: min(100%, 440px);
  }

  .about-value {
    padding: 23px 19px 20px;
  }
}

@media (max-width: 991px) {
  .about-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(305px, 0.8fr);
    gap: 30px;
    padding-top: 138px;
  }

  .about-title {
    font-size: clamp(2.8rem, 6.1vw, 4.4rem);
  }

  .about-role {
    font-size: 14px;
  }

  .about-bio {
    font-size: 12.5px;
    line-height: 1.9;
  }

  .about-status-time {
    margin-left: 0;
  }

  .about-portrait {
    padding-bottom: 34px;
  }

  .portrait-stage {
    width: min(100%, 360px);
  }

  .about-world-card {
    width: min(285px, 88%);
  }

  .about-world-thumb {
    width: 70px;
    height: 64px;
  }

  .about-world-copy small {
    display: none;
  }

  .about-values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-value {
    min-height: 250px;
  }
}

@media (max-width: 860px) {
  .about-hero {
    min-height: auto;
    margin: 10px 10px 0;
    border-radius: 26px;
  }

  .about-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 38px;
    width: calc(100% - 44px);
    min-height: 0;
    padding: 126px 0 42px;
  }

  .about-copy {
    max-width: none;
  }

  .about-title {
    font-size: clamp(3rem, 8.8vw, 4.7rem);
  }

  .about-role,
  .about-bio {
    max-width: 660px;
  }

  .about-role {
    font-size: 15px;
  }

  .about-bio {
    font-size: 13px;
  }

  .about-actions {
    margin-top: 25px;
  }

  .about-status {
    margin-top: 26px;
  }

  .about-portrait {
    width: min(100%, 490px);
    margin-inline: auto;
    padding: 4px 0 42px;
  }

  .portrait-stage {
    width: min(82%, 390px);
  }

  .about-world-card {
    width: min(310px, 76%);
    right: 4%;
  }

  .about-world-copy small {
    display: block;
  }

  .about-values-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .about-values-head .section-intro {
    width: min(520px, 100%);
  }

  .about-values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .about-hero {
    margin: 8px 8px 0;
    border-radius: 22px;
  }

  .about-inner {
    width: calc(100% - 38px);
    gap: 32px;
    padding: 106px 0 30px;
  }

  .about-title {
    margin-top: 20px;
    font-size: clamp(2.7rem, 12.3vw, 4rem);
    line-height: 1.06;
  }

  .about-role {
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.8;
  }

  .about-bio {
    margin-top: 13px;
    font-size: 12.5px;
    line-height: 1.9;
  }

  .about-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    margin-top: 23px;
  }

  .about-actions .btn {
    width: fit-content;
  }

  .about-status {
    gap: 7px;
    margin-top: 24px;
    font-size: 8px;
    letter-spacing: 0.07em;
  }

  .about-status-time {
    display: none;
  }

  .about-portrait {
    padding: 2px 0 34px;
  }

  .portrait-stage {
    width: min(82vw, 320px);
  }

  .portrait-ring--outer {
    inset: -12px;
  }

  .portrait-tag {
    top: 10px;
    left: 12px;
    padding: 6px 8px;
    font-size: 7px;
  }

  .portrait-tag small {
    font-size: 6px;
  }

  .portrait-spark {
    font-size: 16px;
  }

  .about-world-card {
    right: 0;
    bottom: 0;
    width: min(272px, 86%);
    gap: 8px;
    padding: 6px 8px 6px 6px;
    border-radius: 14px;
  }

  .about-world-thumb {
    width: 68px;
    height: 59px;
    border-radius: 9px;
  }

  .about-world-kicker {
    font-size: 6px;
  }

  .about-world-copy strong {
    font-size: 11px;
  }

  .about-world-copy small {
    display: none;
  }

  .about-world-arrow {
    width: 27px;
    height: 27px;
    font-size: 12px;
  }

  .about-values {
    padding-top: 66px;
    padding-bottom: 70px;
  }

  .about-values-head h2 {
    font-size: clamp(2rem, 9.2vw, 2.9rem);
  }

  .about-values-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 30px;
  }

  .about-value {
    min-height: 0;
    padding: 23px 20px 20px;
  }

  .about-value-en {
    margin-top: 16px;
  }

  .about-value > p:not(.about-value-en) {
    font-size: 12px;
  }

  .about-value-meta {
    padding-top: 19px;
  }

  .about-values-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-top: 38px;
    padding-top: 20px;
  }

  .about-values-foot > p {
    font-size: 17px;
  }

  .about-values-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 390px) {
  .about-title {
    font-size: clamp(2.45rem, 12vw, 3rem);
  }

  .portrait-stage {
    width: 80vw;
  }

  .about-world-card {
    width: 244px;
  }

  .about-world-copy strong {
    font-size: 10.5px;
  }
}


@media (max-width: 991px) {
  .about-corner {
    display: none;
  }
}
