/*
 * Futakafeidian static site design system
 * Palette: vanilla foam, caramel latte, strawberry milkshake,
 * honey cream and mint soda. No external font or CSS dependency.
 */

:root {
  --vanilla: #fffbf5;
  --vanilla-deep: #fff5e8;
  --paper: #ffffff;
  --coffee: #6f4e37;
  --coffee-dark: #3f291d;
  --coffee-soft: #9b785f;
  --pink: #ff6b9e;
  --pink-dark: #c83d72;
  --pink-soft: #ffe4ed;
  --honey: #ffd166;
  --honey-soft: #fff2c7;
  --mint: #4ecdc4;
  --mint-dark: #177f79;
  --mint-soft: #dff8f5;
  --ink: #3f3029;
  --muted: #75645b;
  --line: rgba(111, 78, 55, 0.16);
  --shadow-sm: 0 10px 28px rgba(76, 48, 31, 0.08);
  --shadow-md: 0 22px 55px rgba(76, 48, 31, 0.13);
  --shadow-pink: 0 18px 38px rgba(255, 107, 158, 0.24);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --shell: min(1180px, calc(100% - 40px));
  --header-height: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
  background: var(--vanilla);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 18%, rgba(255, 209, 102, 0.12), transparent 22rem),
    radial-gradient(circle at 95% 42%, rgba(78, 205, 196, 0.09), transparent 28rem),
    var(--vanilla);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--coffee-dark);
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  line-height: 1.28;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(1.75rem, 3.1vw, 2.65rem);
  letter-spacing: -0.035em;
}

h1,
h2 {
  width: fit-content;
  max-width: 100%;
  color: var(--coffee-dark);
  background: linear-gradient(118deg, var(--coffee-dark) 0%, var(--coffee) 42%, var(--pink-dark) 78%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 {
  font-size: 1.2rem;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  color: var(--coffee-dark);
  background: var(--honey);
}

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

.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;
  z-index: 9999;
  top: 12px;
  left: 16px;
  padding: 10px 18px;
  color: #fff;
  background: var(--coffee-dark);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell,
.header-shell,
.hero-shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--pink-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.section-kicker::before {
  width: 28px;
  height: 2px;
  background: var(--pink);
  content: "";
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 52px;
}

.section-heading > div {
  flex: 1 0 auto;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 520px;
  color: var(--muted);
}

.section-heading.centered {
  display: block;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered .section-kicker {
  justify-content: center;
}

.section-heading.centered h2 {
  margin-inline: auto;
}

.section-heading.centered > p {
  max-width: none;
  margin-inline: auto;
}

.lead {
  color: var(--coffee-dark);
  font-size: 1.08rem;
  font-weight: 650;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--header-height);
  background: rgba(255, 251, 245, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 32px rgba(74, 44, 26, 0.07);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
}

.brand img {
  width: 50px;
  height: 50px;
  border: 3px solid #fff;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 6px 18px rgba(255, 107, 158, 0.22);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  color: var(--coffee-dark);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.brand-copy strong span {
  color: var(--honey);
  text-shadow: 0 1px 0 var(--coffee);
}

.brand-copy small {
  margin-top: 5px;
  color: var(--coffee-soft);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 28px);
  color: var(--coffee);
  font-size: 0.9rem;
  font-weight: 700;
}

.primary-nav > a:not(.nav-cta) {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 27px 0 24px;
  white-space: nowrap;
}

.primary-nav svg,
.button svg,
.floating-detail svg,
.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-nav > a:not(.nav-cta) svg {
  width: 15px;
  height: 15px;
  color: var(--pink-dark);
}

.primary-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 50%;
  bottom: 18px;
  left: 50%;
  height: 3px;
  background: var(--pink);
  border-radius: 999px;
  content: "";
  transition: left 0.3s ease, right 0.3s ease;
}

.primary-nav > a:hover::after,
.primary-nav > a.is-active::after {
  right: 0;
  left: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 25px;
  color: #fff;
  background: linear-gradient(120deg, #ff6b9e 0%, #db3472 55%, #a51d54 100%);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(200, 61, 114, 0.28), 0 0 16px rgba(255, 107, 158, 0.18);
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, filter 0.3s ease;
}

.nav-cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 28px rgba(200, 61, 114, 0.36), 0 0 21px rgba(255, 107, 158, 0.27);
  transform: translateY(-2px) scale(1.03);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 12px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--coffee);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(780px, calc(100svh - var(--header-height)));
  padding: 74px 0 82px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 251, 245, 0.98) 0%, rgba(255, 251, 245, 0.92) 42%, rgba(255, 228, 237, 0.68) 100%);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    radial-gradient(rgba(111, 78, 55, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, transparent 49.8%, rgba(111, 78, 55, 0.035) 50%, transparent 50.2%);
  background-size: 28px 28px, 150px 150px;
  mask-image: linear-gradient(to right, #000, transparent 75%);
  content: "";
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-glow-one {
  top: -240px;
  right: 8%;
  background: rgba(255, 209, 102, 0.45);
}

.hero-glow-two {
  right: -170px;
  bottom: -260px;
  background: rgba(78, 205, 196, 0.22);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  align-items: center;
  gap: clamp(42px, 6vw, 90px);
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--pink-dark);
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.eyebrow > span:first-child {
  padding: 5px 10px;
  color: var(--coffee-dark);
  background: var(--honey);
  border: 1px solid rgba(111, 78, 55, 0.14);
  border-radius: 7px;
  box-shadow: 3px 3px 0 var(--coffee);
  font-size: 0.68rem;
  transform: rotate(-2deg);
}

.hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2.85rem, 5.2vw, 5rem);
  letter-spacing: -0.075em;
  line-height: 1.03;
}

.hero h1 span {
  display: inline-block;
  margin-inline: 0.04em;
  color: var(--honey);
  -webkit-text-fill-color: var(--honey);
  font-size: 0.78em;
  text-shadow: 2px 2px 0 var(--pink-dark);
  transform: rotate(8deg);
}

.hero-subtitle {
  margin-bottom: 18px;
  color: var(--pink-dark);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-summary {
  max-width: 610px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 31px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease, filter 0.3s ease;
}

.button svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(120deg, #ff83ad 0%, #e33d7a 48%, #ad1f58 100%);
  box-shadow: 0 13px 30px rgba(200, 61, 114, 0.3), 0 0 17px rgba(255, 107, 158, 0.2);
}

.button-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 18px 40px rgba(200, 61, 114, 0.38), 0 0 23px rgba(255, 107, 158, 0.3);
}

.button-primary:active,
.nav-cta:active,
.floating-detail:active {
  transform: scale(0.97);
}

.button-secondary {
  color: var(--coffee);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  background: #fff;
  border-color: rgba(111, 78, 55, 0.3);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 610px;
  padding: 0;
  margin-bottom: 0;
  list-style: none;
}

.hero-meta li {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  border-left: 1px solid var(--line);
}

.hero-meta li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-meta span {
  color: var(--coffee-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-meta strong {
  color: var(--coffee-dark);
  font-size: 0.93rem;
}

.hero-visual {
  position: relative;
  z-index: 2;
  margin: 0;
}

.visual-frame {
  position: relative;
  padding: 11px;
  background: #fff;
  border: 1px solid rgba(111, 78, 55, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 24px 30px 0 rgba(255, 209, 102, 0.42), var(--shadow-md);
  transform: rotate(1.15deg);
}

.visual-frame::before,
.visual-frame::after {
  position: absolute;
  z-index: 2;
  color: var(--pink);
  font-size: 2rem;
  content: "★";
}

.visual-frame::before {
  top: -34px;
  right: 17%;
  transform: rotate(12deg);
}

.visual-frame::after {
  bottom: 32px;
  left: -36px;
  color: var(--mint);
  font-size: 1.6rem;
  transform: rotate(-16deg);
}

.visual-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 10px);
  object-fit: contain;
}

.visual-frame figcaption {
  position: absolute;
  right: 34px;
  bottom: 28px;
  left: 34px;
  padding: 12px 17px;
  color: #fff;
  background: rgba(63, 41, 29, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  text-align: center;
}

.open-badge {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: -18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  color: var(--coffee-dark);
  background: var(--honey);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 9px 25px rgba(63, 41, 29, 0.16);
  font-size: 0.77rem;
  font-weight: 900;
  transform: rotate(-4deg);
}

.open-badge i {
  width: 8px;
  height: 8px;
  background: #32a86c;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(50, 168, 108, 0.16);
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--coffee);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  transform: translateX(-50%);
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* Fact strip */
.fact-strip {
  position: relative;
  z-index: 4;
  background: var(--coffee);
  color: #fff;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact-grid article {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 100px;
  padding: 18px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.fact-grid article:first-child {
  border-left: 0;
}

.fact-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--coffee-dark);
  background: var(--honey);
  border-radius: 13px;
  font-weight: 900;
  place-items: center;
}

.fact-grid article > div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.fact-grid strong {
  font-size: 0.95rem;
}

.fact-grid small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
}

/* Intro */
.section-intro {
  background:
    radial-gradient(circle at 8% 80%, rgba(255, 107, 158, 0.08), transparent 22rem),
    var(--vanilla);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(54px, 8vw, 105px);
}

.split-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
}

.media-card {
  position: relative;
  margin: 0;
}

.media-card::before {
  position: absolute;
  inset: -20px 22px 20px -20px;
  background: var(--pink-soft);
  border: 1px solid rgba(255, 107, 158, 0.16);
  border-radius: var(--radius-lg);
  content: "";
  transform: rotate(-2deg);
}

.media-card img {
  position: relative;
  width: 100%;
  border: 9px solid #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.media-note {
  position: absolute;
  right: -14px;
  bottom: -18px;
  padding: 11px 18px;
  color: var(--coffee-dark);
  background: var(--honey);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 900;
}

.media-note span {
  color: var(--pink-dark);
}

.content-column p {
  color: var(--muted);
}

.content-column .lead {
  color: var(--coffee-dark);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.tag-list span {
  padding: 6px 13px;
  color: var(--coffee);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(63, 41, 29, 0.04);
  font-size: 0.75rem;
  font-weight: 800;
}

/* Gameplay */
.section-gameplay {
  background: var(--paper);
}

.gameplay-stories {
  display: grid;
  gap: clamp(38px, 6vw, 78px);
  margin-top: 12px;
}

.gameplay-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
}

.gameplay-row.is-reversed {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
}

.gameplay-row.is-reversed .gameplay-image {
  grid-column: 2;
  grid-row: 1;
}

.gameplay-row.is-reversed .gameplay-copy {
  grid-column: 1;
  grid-row: 1;
}

.gameplay-image {
  margin: 0;
  overflow: hidden;
  background: var(--vanilla-deep);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.gameplay-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

.gameplay-copy {
  max-width: 560px;
}

.gameplay-copy .story-index {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--pink-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.gameplay-copy h3 {
  margin-bottom: 14px;
  color: var(--coffee-dark);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.4;
}

.gameplay-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.95;
}

.gameplay-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  align-items: stretch;
  gap: 22px;
  margin-bottom: 28px;
}

.gameplay-showcase > figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--coffee-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.gameplay-showcase > figure img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.gameplay-showcase > figure::after {
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(38, 24, 17, 0.82));
  content: "";
}

.gameplay-showcase figcaption {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 24px;
  left: 28px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
}

.gameplay-showcase figcaption span {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.loop-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 20px;
  background: var(--vanilla-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.loop-card::before {
  position: absolute;
  inset: 23% 23%;
  border: 1px dashed rgba(111, 78, 55, 0.3);
  border-radius: 50%;
  content: "";
}

.loop-center {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 76px;
  height: 76px;
  color: #fff;
  background: var(--pink-dark);
  border: 6px solid var(--vanilla-deep);
  border-radius: 50%;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 0.85rem;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
  place-items: center;
  transform: translate(-50%, -50%);
}

.loop-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 190px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(111, 78, 55, 0.1);
  border-radius: 18px;
}

.loop-item b {
  color: var(--pink);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.loop-item strong {
  color: var(--coffee-dark);
  font-size: 0.95rem;
}

.loop-item small {
  color: var(--muted);
  font-size: 0.7rem;
}

.loop-one,
.loop-three {
  padding-right: 48px;
}

.loop-two,
.loop-four {
  padding-left: 48px;
  text-align: right;
}

.content-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  position: relative;
  min-height: 260px;
  padding: 32px 29px;
  background: var(--vanilla);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.info-card:hover {
  border-color: rgba(255, 107, 158, 0.42);
  box-shadow: var(--shadow-sm);
  transform: translateY(-5px);
}

.card-number {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(111, 78, 55, 0.09);
  font-family: Georgia, serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--coffee-dark);
  background: var(--honey-soft);
  border-radius: 13px;
  font-weight: 900;
  place-items: center;
}

.info-card:nth-child(3n + 2) .card-icon {
  color: var(--pink-dark);
  background: var(--pink-soft);
}

.info-card:nth-child(3n + 3) .card-icon {
  color: var(--mint-dark);
  background: var(--mint-soft);
}

.info-card h3 {
  margin-bottom: 10px;
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Characters */
.section-characters {
  background:
    linear-gradient(130deg, rgba(255, 228, 237, 0.72), rgba(255, 251, 245, 0.85) 58%),
    var(--vanilla);
}

.route-list {
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.route-list li {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding-bottom: 18px;
}

.route-list li:not(:last-child)::before {
  position: absolute;
  top: 42px;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(var(--pink), rgba(255, 107, 158, 0.1));
  content: "";
}

.route-list li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--pink-dark);
  border: 5px solid var(--pink-soft);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
  place-items: center;
}

.route-list strong {
  color: var(--coffee-dark);
}

.route-list p {
  margin: 2px 0 0;
  font-size: 0.83rem;
}

.portrait-card::before {
  inset: -22px -18px 18px 30px;
  background: var(--honey-soft);
  transform: rotate(2deg);
}

.portrait-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.portrait-card figcaption {
  position: absolute;
  right: 25px;
  bottom: 25px;
  left: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  color: #fff;
  background: rgba(63, 41, 29, 0.82);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.portrait-card figcaption strong {
  white-space: nowrap;
}

.portrait-card figcaption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  text-align: right;
}

/* Guide */
.section-guide {
  background: #fff;
}

.guide-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 34px;
}

.guide-filter {
  min-height: 42px;
  padding: 9px 19px;
  color: var(--coffee);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.guide-filter:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
}

.guide-filter.is-active {
  color: #fff;
  background: var(--coffee);
  border-color: var(--coffee);
  box-shadow: 0 7px 18px rgba(63, 41, 29, 0.16);
}

.guide-filter:focus-visible {
  outline: 3px solid rgba(255, 107, 158, 0.45);
  outline-offset: 3px;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.guide-card {
  min-height: 228px;
  padding: 26px;
  background: var(--vanilla);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(63, 41, 29, 0.045);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.guide-card:hover {
  border-color: rgba(255, 107, 158, 0.58);
  box-shadow: 0 16px 34px rgba(255, 107, 158, 0.16), 0 5px 16px rgba(63, 41, 29, 0.08);
  transform: translateY(-6px);
}

.guide-card[hidden] {
  display: none;
}

.guide-category {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-bottom: 17px;
  padding: 4px 10px;
  color: var(--pink-dark);
  background: var(--pink-soft);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

.guide-card h3 {
  margin: 0 0 10px;
  color: var(--coffee-dark);
  font-size: 1.04rem;
  line-height: 1.5;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.8;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: start;
  gap: 42px;
  margin-top: 52px;
}

.guide-image {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  margin: 0;
  overflow: hidden;
  background: var(--coffee-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.guide-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.guide-image::after {
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, rgba(63, 41, 29, 0.88));
  content: "";
}

.guide-image figcaption {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 24px;
  left: 28px;
  color: #fff;
}

.guide-image figcaption strong,
.guide-image figcaption span {
  display: block;
}

.guide-image figcaption strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.2rem;
}

.guide-image figcaption span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.guide-steps {
  counter-reset: guide;
}

.guide-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.guide-step:first-child {
  padding-top: 0;
}

.guide-step > span {
  color: var(--pink);
  font-family: Georgia, serif;
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1;
}

.guide-step h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.guide-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.tips-panel {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 38px;
  margin-top: 62px;
  padding: 38px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0, rgba(255, 209, 102, 0.2), transparent 20rem),
    var(--coffee);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.tips-title {
  display: flex;
  gap: 16px;
}

.tips-title > span {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  color: var(--coffee-dark);
  background: var(--honey);
  border-radius: 15px;
  font-size: 1.15rem;
  place-items: center;
}

.tips-title h3 {
  margin-bottom: 5px;
  color: #fff;
  font-size: 1.3rem;
}

.tips-title p {
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.82rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 30px;
}

.tips-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--honey);
  font-size: 0.9rem;
}

.tips-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.79rem;
}

/* Features */
.section-features {
  background:
    radial-gradient(circle at 0 100%, rgba(78, 205, 196, 0.11), transparent 28rem),
    var(--vanilla);
}

.features-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: 30px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.feature-card {
  display: flex;
  gap: 15px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.25s var(--ease), background 0.25s ease;
}

.feature-card:hover {
  background: #fff;
  transform: translateY(-4px);
}

.feature-card > span {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: var(--mint-dark);
  background: var(--mint-soft);
  border-radius: 12px;
  font-weight: 900;
  place-items: center;
}

.feature-card:nth-child(3n + 2) > span {
  color: var(--pink-dark);
  background: var(--pink-soft);
}

.feature-card:nth-child(3n + 3) > span {
  color: var(--coffee-dark);
  background: var(--honey-soft);
}

.feature-card h3 {
  margin-bottom: 5px;
  font-size: 0.98rem;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.feature-visual {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.feature-visual img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.feature-visual::after {
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(transparent, rgba(45, 29, 20, 0.9));
  content: "";
}

.feature-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 28px;
  left: 30px;
  color: #fff;
}

.caption-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 10px;
  color: var(--coffee-dark);
  background: var(--honey);
  border-radius: 6px;
  font-size: 0.67rem;
  font-weight: 900;
}

.feature-visual figcaption strong {
  display: block;
  max-width: 520px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1.35;
}

/* Screenshot gallery */
.section-screenshots {
  color: #fff;
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 107, 158, 0.18), transparent 28rem),
    radial-gradient(circle at 95% 90%, rgba(255, 209, 102, 0.1), transparent 24rem),
    #251911;
}

.section-screenshots .section-kicker {
  color: var(--honey);
}

.section-screenshots .section-kicker::before {
  background: var(--honey);
}

.section-screenshots h2 {
  background: linear-gradient(110deg, #fff 0%, var(--honey) 54%, #ff9fbd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-screenshots .section-heading > p {
  color: rgba(255, 255, 255, 0.68);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}

.screenshot-tile {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: #120d09;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  cursor: zoom-in;
}

.screenshot-tile:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 4px;
}

.screenshot-tile img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.3s ease;
}

.screenshot-tile:hover img {
  filter: brightness(1.08);
  transform: scale(1.05);
}

.screenshot-lightbox {
  width: min(1160px, calc(100% - 32px));
  max-width: 1160px;
  max-height: calc(100% - 32px);
  padding: 0;
  overflow: visible;
  color: #fff;
  background: transparent;
  border: 0;
}

.screenshot-lightbox::backdrop {
  background: rgba(15, 10, 7, 0.9);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.lightbox-frame {
  position: relative;
  display: grid;
  min-height: 220px;
  place-items: center;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: min(78svh, 820px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  background: rgba(35, 24, 17, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: var(--pink-dark);
  transform: scale(1.06);
}

.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
}

.lightbox-close svg,
.lightbox-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.lightbox-close {
  top: 14px;
  right: 14px;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-previous {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-caption {
  margin: 14px 56px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  text-align: center;
}

/* Specs */
.section-specs {
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 107, 158, 0.2), transparent 28rem),
    var(--coffee-dark);
}

.specs-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.specs-header h2 {
  color: #fff;
}

.specs-header p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.65);
}

.section-specs .section-kicker {
  color: var(--honey);
}

.section-specs .section-kicker::before {
  background: var(--honey);
}

.section-specs h2 {
  background: linear-gradient(110deg, #ffffff 0%, var(--honey) 52%, #ff9fbd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.platform-pill {
  flex: 0 0 auto;
  padding: 9px 16px;
  color: var(--coffee-dark);
  background: var(--honey);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.specs-table {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.specs-row {
  display: grid;
  grid-template-columns: 0.65fr 1fr 1fr;
  min-width: 680px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.specs-row:first-child {
  border-top: 0;
}

.specs-row > div {
  padding: 16px 24px;
  color: rgba(255, 255, 255, 0.78);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

.specs-row > div:first-child {
  color: var(--honey);
  border-left: 0;
  font-weight: 800;
}

.specs-head {
  background: rgba(255, 255, 255, 0.08);
}

.specs-head > div {
  color: #fff !important;
  font-weight: 850;
}

.specs-note {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.83rem;
}

.specs-note strong {
  color: var(--mint);
}

/* Updates */
.section-updates {
  background: #fff;
}

.update-list {
  display: grid;
  width: 100%;
  gap: 18px;
}

.update-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
}

.update-marker {
  position: absolute;
  z-index: 2;
  top: 25px;
  right: 28px;
  display: inline-grid;
  width: 58px;
  height: 34px;
  color: var(--pink-dark);
  background: var(--pink-soft);
  border: 1px solid rgba(255, 107, 158, 0.28);
  border-radius: 999px;
  box-shadow: none;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  place-items: center;
}

.update-item.featured .update-marker {
  color: var(--coffee-dark);
  background: var(--honey);
  border-color: rgba(111, 78, 55, 0.15);
  box-shadow: none;
}

.update-content {
  position: relative;
  width: 100%;
  min-height: 166px;
  padding: 26px 108px 27px 30px;
  background: var(--vanilla);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(63, 41, 29, 0.045);
  transition: transform 0.22s var(--ease), border-color 0.22s ease, box-shadow 0.22s ease;
}

.update-item:hover .update-content {
  border-color: rgba(255, 107, 158, 0.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.update-item.featured .update-content {
  background: linear-gradient(135deg, var(--honey-soft), var(--vanilla));
  border-color: rgba(255, 209, 102, 0.7);
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.update-meta span {
  padding: 4px 9px;
  color: var(--pink-dark);
  background: var(--pink-soft);
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 900;
}

.update-meta b {
  color: var(--coffee-soft);
  font-size: 0.7rem;
}

.update-content h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.update-content p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.more-updates {
  width: 100%;
  margin-top: 18px;
  background: transparent;
}

.compact-updates {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 0;
}

.compact-updates article {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  width: 100%;
  min-height: 136px;
  padding: 26px 30px;
  background: var(--vanilla);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(63, 41, 29, 0.04);
  transition: transform 0.22s var(--ease), border-color 0.22s ease, box-shadow 0.22s ease;
}

.compact-updates article:hover {
  border-color: rgba(78, 205, 196, 0.45);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.compact-updates article > span {
  display: grid;
  width: 58px;
  height: 34px;
  color: var(--mint-dark);
  background: var(--mint-soft);
  border: 1px solid rgba(78, 205, 196, 0.25);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  place-items: center;
}

.compact-updates h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.compact-updates p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* FAQ */
.section-faq {
  background:
    radial-gradient(circle at 8% 15%, rgba(255, 209, 102, 0.28), transparent 17rem),
    linear-gradient(160deg, var(--vanilla-deep), var(--vanilla));
}

.faq-layout {
  display: block;
}

.faq-heading {
  position: relative;
  top: auto;
  max-width: 760px;
  margin-bottom: 46px;
}

.faq-heading p {
  color: var(--muted);
}

.faq-list {
  display: grid;
  width: 100%;
  gap: 14px;
}

.faq-item {
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: 0 8px 26px rgba(63, 41, 29, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.faq-item + .faq-item {
  margin-top: 0;
}

.faq-item[open] {
  background: #fff;
  border-color: rgba(255, 107, 158, 0.42);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 22px 26px;
  color: var(--coffee-dark);
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--pink-dark);
  background: var(--pink-soft);
  border-radius: 50%;
  place-items: center;
  transition: transform 0.2s ease;
}

.faq-item[open] summary span {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 1020px;
  padding: 0 26px 24px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Footer */
.closing-cta {
  position: relative;
  padding: 74px 0;
  color: #fff;
  background: linear-gradient(120deg, var(--pink-dark), #eb5d91 55%, var(--pink));
  overflow: hidden;
}

.closing-cta::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 20px 20px;
  content: "";
  mask-image: linear-gradient(to right, #000, transparent 70%);
}

.closing-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.closing-shell .eyebrow {
  margin-bottom: 10px;
  color: var(--honey);
}

.closing-shell h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.closing-shell p {
  color: rgba(255, 255, 255, 0.78);
}

.button-light {
  flex: 0 0 auto;
  color: var(--pink-dark);
  background: #fff;
  box-shadow: 0 16px 38px rgba(93, 28, 53, 0.25);
}

.closing-decor {
  position: absolute;
  color: rgba(255, 255, 255, 0.12);
  font-size: 8rem;
  line-height: 1;
}

.closing-one {
  top: -20px;
  right: 9%;
  transform: rotate(12deg);
}

.closing-two {
  bottom: -30px;
  left: 5%;
  transform: rotate(-8deg);
}

.site-footer {
  padding: 54px 0 34px;
  color: rgba(255, 255, 255, 0.68);
  background: #2b1c14;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1.1fr;
  align-items: start;
  gap: 50px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
}

.footer-brand strong {
  color: #fff;
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.footer-brand strong span {
  color: var(--honey);
}

.footer-brand p {
  margin-bottom: 0;
  font-size: 0.72rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 20px;
  font-size: 0.8rem;
}

.footer-nav a:hover {
  color: var(--honey);
}

.friendly-links {
  width: 100%;
  padding: 27px 22px 30px;
  color: #fff;
  background: linear-gradient(112deg, #f47f98 0%, #f98ca4 52%, #ff98ad 100%);
}

.friendly-links h2 {
  width: fit-content;
  margin: 0 auto 21px;
  color: #fff;
  background: none;
  text-shadow: 0 3px 8px rgba(117, 34, 57, 0.16);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  text-align: center;
  -webkit-text-fill-color: #fff;
}

.friendly-link-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.friendly-link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 25px;
  color: var(--coffee-dark);
  background: #fffaf7;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(153, 44, 72, 0.16);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease;
}

.friendly-link-list a:hover {
  background: #fff;
  box-shadow: 0 8px 18px rgba(63, 41, 29, 0.16);
  transform: translateY(-3px) scale(1.02);
}

.footer-meta {
  font-size: 0.7rem;
  text-align: right;
}

.footer-meta p {
  margin-bottom: 6px;
}

.floating-detail {
  position: fixed;
  z-index: 110;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  padding: 0 28px;
  color: #fff;
  background: linear-gradient(120deg, #ff83ad 0%, #e33d7a 48%, #ad1f58 100%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 17px 40px rgba(200, 61, 114, 0.38), 0 0 19px rgba(255, 107, 158, 0.22);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease, filter 0.3s ease;
}

.floating-detail:hover {
  filter: brightness(1.08);
  box-shadow: 0 20px 46px rgba(200, 61, 114, 0.44), 0 0 25px rgba(255, 107, 158, 0.3);
  transform: translateY(-4px) scale(1.04);
}

.floating-detail svg {
  flex: 0 0 auto;
}

.back-to-top {
  position: fixed;
  z-index: 100;
  right: max(26px, env(safe-area-inset-right));
  bottom: max(88px, calc(env(safe-area-inset-bottom) + 66px));
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  background: var(--coffee);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(63, 41, 29, 0.25);
  cursor: pointer;
  opacity: 0;
  place-items: center;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--pink-dark);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Enhancement animation: content remains visible without JavaScript. */
.reveal.is-visible {
  animation: reveal-up 0.75s var(--ease) both;
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-side.is-visible.reveal-from-left {
  animation: reveal-from-left 0.8s var(--ease) both;
}

.reveal-side.is-visible.reveal-from-right {
  animation: reveal-from-right 0.8s var(--ease) both;
}

@keyframes reveal-from-left {
  from { opacity: 0; transform: translateX(-34px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes reveal-from-right {
  from { opacity: 0; transform: translateX(34px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Consistent 300ms hover feedback for interactive site elements. */
@media (hover: hover) and (pointer: fine) {
  .info-card,
  .feature-card,
  .guide-card,
  .update-item,
  .faq-item,
  .media-card,
  .content-column .tag-list span,
  .friendly-link-list a {
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  }

  .info-card:hover,
  .feature-card:hover,
  .guide-card:hover,
  .update-item:hover,
  .faq-item:hover {
    border-color: rgba(255, 107, 158, 0.48);
    box-shadow: 0 13px 30px rgba(255, 107, 158, 0.13), 0 5px 15px rgba(63, 41, 29, 0.08);
    transform: translateY(-4px);
  }

  .button:hover {
    transform: translateY(-3px) scale(1.03);
  }

  .primary-nav > a:not(.nav-cta)::after {
    transition-duration: 0.3s;
  }

  .site-header .brand img,
  .media-card img,
  .gameplay-image img,
  .feature-visual img,
  .footer-brand img {
    transition: transform 0.3s ease;
  }

  .site-header .brand:hover img,
  .media-card:hover img,
  .gameplay-image:hover img,
  .feature-visual:hover img,
  .footer-brand:hover img {
    transform: scale(1.05);
  }
}

/* Tablet */
@media (max-width: 1080px) {
  :root {
    --header-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .js .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-height: calc(100svh - var(--header-height) - 20px);
    padding: 16px;
    overflow-y: auto;
    background: rgba(255, 251, 245, 0.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .js .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .js .primary-nav > a:not(.nav-cta) {
    padding: 11px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .js .primary-nav > a:not(.nav-cta)::after {
    display: none;
  }

  .js .nav-cta {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

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

  .menu-toggle[aria-expanded="true"] > span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    max-width: 790px;
    margin-inline: auto;
  }

  .gameplay-showcase {
    grid-template-columns: 1fr;
  }

  .gameplay-row,
  .gameplay-row.is-reversed {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 32px;
  }

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

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

  .loop-card {
    grid-template-columns: repeat(4, 1fr);
  }

  .loop-card::before,
  .loop-center {
    display: none;
  }

  .loop-item,
  .loop-one,
  .loop-two,
  .loop-three,
  .loop-four {
    min-height: 150px;
    padding: 20px;
    text-align: left;
  }

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

  .features-layout {
    grid-template-columns: 1fr;
  }

  .feature-visual {
    min-height: 0;
  }

  .feature-visual img {
    min-height: 0;
  }

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

  .footer-meta {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
  }

  .friendly-links {
    grid-column: 1 / -1;
  }
}

/* Small tablet and large mobile */
@media (max-width: 820px) {
  :root {
    --shell: min(100% - 30px, 680px);
  }

  .section {
    padding: 86px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 38px;
  }

  .section-heading > p {
    margin-top: 13px;
  }

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

  .fact-grid article:nth-child(3) {
    border-left: 0;
  }

  .fact-grid article:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .split-layout,
  .split-reverse {
    grid-template-columns: 1fr;
  }

  .gameplay-row,
  .gameplay-row.is-reversed {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gameplay-row.is-reversed .gameplay-image,
  .gameplay-row.is-reversed .gameplay-copy {
    grid-column: 1;
    grid-row: auto;
  }

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

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

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

  .section-characters .content-column {
    order: 2;
  }

  .section-characters .portrait-card {
    order: 1;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-image,
  .faq-heading {
    position: relative;
    top: auto;
  }

  .guide-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .guide-step,
  .guide-step:first-child {
    display: block;
    padding: 22px;
    background: var(--vanilla);
    border: 1px solid var(--line);
    border-radius: 16px;
  }

  .guide-step > span {
    display: block;
    margin-bottom: 12px;
  }

  .guide-step:last-child {
    grid-column: 1 / -1;
  }

  .tips-panel {
    grid-template-columns: 1fr;
  }

  .faq-heading {
    margin-bottom: 34px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --shell: calc(100% - 26px);
    --radius-md: 19px;
    --radius-lg: 24px;
  }

  body {
    font-size: 15px;
  }

  .section {
    padding: 70px 0;
  }

  h2 {
    font-size: clamp(1.65rem, 7.5vw, 2.15rem);
  }

  .brand-copy small {
    display: none;
  }

  .brand img {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .hero {
    padding: 46px 0 70px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 3.75rem);
  }

  .hero-summary {
    font-size: 0.94rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 0;
  }

  .hero-meta li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .visual-frame {
    padding: 7px;
    box-shadow: 12px 15px 0 rgba(255, 209, 102, 0.42), var(--shadow-md);
  }

  .visual-frame figcaption {
    right: 16px;
    bottom: 15px;
    left: 16px;
    padding: 9px 12px;
    font-size: 0.68rem;
  }

  .open-badge {
    top: 14px;
    right: -6px;
  }

  .scroll-cue {
    display: none;
  }

  .fact-grid article {
    justify-content: flex-start;
    min-height: 86px;
    padding: 14px 10px;
  }

  .fact-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .media-card::before {
    inset: -12px 12px 12px -12px;
  }

  .media-note {
    right: 5px;
    bottom: -14px;
  }

  .gameplay-showcase > figure img {
    min-height: 0;
  }

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

  .loop-item {
    min-height: 130px;
    padding: 16px;
  }

  .content-card-grid,
  .feature-list,
  .guide-steps,
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .guide-card-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 0;
    padding: 22px;
  }

  .guide-filters {
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 24px;
  }

  .guide-filter {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.76rem;
  }

  .screenshot-grid {
    gap: 10px;
  }

  .lightbox-image {
    max-height: 70svh;
    border-radius: 8px;
  }

  .lightbox-close,
  .lightbox-arrow {
    width: 42px;
    height: 42px;
  }

  .lightbox-close {
    top: -10px;
    right: -4px;
  }

  .lightbox-previous {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-caption {
    margin-inline: 42px;
    font-size: 0.76rem;
  }

  .info-card {
    min-height: 0;
  }

  .portrait-card figcaption {
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: block;
  }

  .portrait-card figcaption span {
    display: block;
    margin-top: 2px;
    text-align: left;
  }

  .guide-step:last-child {
    grid-column: auto;
  }

  .tips-panel {
    padding: 26px 22px;
  }

  .feature-visual,
  .feature-visual img {
    min-height: 0;
  }

  .specs-header {
    display: block;
  }

  .platform-pill {
    display: inline-block;
    margin-top: 20px;
  }

  .update-item {
    display: block;
  }

  .update-marker {
    top: 18px;
    right: 18px;
    width: 52px;
    height: 30px;
    border-width: 1px;
    font-size: 0.68rem;
  }

  .update-content {
    min-height: 0;
    padding: 20px 78px 22px 19px;
  }

  .update-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .more-updates {
    width: 100%;
  }

  .compact-updates {
    grid-template-columns: 1fr;
  }

  .compact-updates article {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 21px 19px;
  }

  .compact-updates article > span {
    width: 52px;
    height: 30px;
  }

  .faq-item summary {
    padding: 17px;
    font-size: 0.9rem;
  }

  .faq-item p {
    padding: 0 17px 17px;
  }

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

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .friendly-links {
    grid-column: auto;
    padding: 20px 16px;
  }

  .friendly-link-list {
    gap: 9px;
  }

  .friendly-link-list a {
    flex: 1 1 145px;
    min-height: 42px;
    padding: 9px 12px;
    font-size: 0.75rem;
  }

  .footer-meta {
    grid-column: auto;
    padding-top: 0;
    border-top: 0;
  }

  .floating-detail {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 58px;
    padding: 0 23px;
    font-size: 0.9rem;
  }

  .back-to-top {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 62px));
    width: 44px;
    height: 44px;
  }
}

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

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

@media print {
  .site-header,
  .hero-actions,
  .scroll-cue,
  .floating-detail,
  .back-to-top {
    display: none !important;
  }

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

  .section {
    padding: 36px 0;
    break-inside: avoid;
  }

  .section-shell {
    width: 100%;
  }
}
