:root {
  --bg: #090a10;
  --surface: #11131b;
  --surface-2: #171b25;
  --surface-3: #202531;
  --text: #f6f1e8;
  --muted: #b3acb7;
  --dim: #77717f;
  --gold: #d7bd7c;
  --gold-2: #f0dfb8;
  --teal: #82d8cc;
  --rose: #e7969e;
  --line: rgba(255, 255, 255, 0.1);
  --gold-line: rgba(226, 205, 160, 0.28);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 5%, rgba(130, 216, 204, 0.1), transparent 27%),
    radial-gradient(circle at 12% 18%, rgba(231, 150, 158, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(18, 21, 31, 0.72), rgba(9, 10, 16, 0) 420px),
    var(--bg);
  color: var(--text);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 58%);
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 14, 0.88);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 178px;
  height: auto;
}

.menu-toggle,
.drawer-backdrop {
  display: none;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: rgba(17, 19, 27, 0.88);
  color: var(--gold-2);
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span + span {
  margin-top: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.main-nav a {
  padding: 26px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold-2);
  border-bottom-color: var(--gold);
}

.header-cta,
.ghost-btn,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.header-cta,
.ghost-btn {
  border: 1px solid var(--gold-line);
  color: var(--gold-2);
  padding: 0 16px;
  background: rgba(215, 189, 124, 0.07);
}

.primary-btn {
  min-width: 150px;
  padding: 0 20px;
  color: #17120a;
  background: linear-gradient(180deg, #ead694, #b99a55);
  box-shadow: 0 12px 28px rgba(185, 154, 85, 0.2);
}

main {
  overflow: hidden;
}

.home-hero,
.page-main,
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 54px;
  min-height: calc(100svh - 76px);
  padding: 64px 24px 74px;
}

.hero-copy,
.page-hero {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-lede,
.page-lede,
.section-heading p,
.system-map p,
.reward-copy p {
  color: #d0c8d0;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 500;
}

.hero-lede,
.page-lede {
  max-width: 650px;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-stage {
  position: relative;
  min-height: 660px;
}

.hero-master {
  position: absolute;
  right: -42px;
  bottom: 16px;
  width: min(56vw, 430px);
  opacity: 0.45;
  filter: saturate(0.9) brightness(0.82);
}

.phone {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #08090e;
  box-shadow: var(--shadow);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-main {
  width: min(65vw, 358px);
  aspect-ratio: 390 / 844;
  margin: 0 auto;
  transform: rotate(-2deg);
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 13px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: rgba(17, 19, 27, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.floating-card img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.card-left {
  left: 10px;
  top: 118px;
}

.card-right {
  right: 0;
  bottom: 92px;
}

.card-right img {
  width: 32px;
  height: 46px;
  border-radius: 4px;
}

.portal-section,
.masters-section,
.content-band,
.screen-archive {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px 82px;
}

.section-heading {
  max-width: 760px;
}

.section-heading.compact {
  max-width: 680px;
}

.section-heading h2,
.system-map h2,
.reward-copy h2 {
  font-size: clamp(30px, 4.5vw, 50px);
  line-height: 1.14;
}

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

.value-grid,
.feature-matrix,
.sitemap-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.portal-card,
.guide-card,
.value-grid article,
.feature-matrix article,
.sitemap-grid article,
.flow-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(21, 25, 35, 0.9), rgba(13, 15, 22, 0.92));
}

.portal-card {
  display: block;
  min-height: 164px;
  padding: 22px;
}

.portal-card.wide,
.guide-card.wide {
  grid-column: span 2;
}

.portal-card span,
.guide-card span,
.flow-step span,
.sitemap-grid span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
}

.portal-card h3,
.guide-card h2,
.value-grid h3,
.feature-matrix h2,
.sitemap-grid h2 {
  margin-top: 18px;
  font-size: 21px;
}

.portal-card p,
.guide-card p,
.value-grid p,
.feature-matrix p,
.sitemap-grid p,
.flow-step p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.portal-card:hover,
.guide-card:hover,
.sitemap-grid a:hover {
  color: var(--gold-2);
}

.guide-grid {
  padding: 0 24px 78px;
}

.guide-card {
  display: block;
  min-height: 210px;
  padding: 24px;
}

.guide-card span {
  min-width: 0;
  height: 36px;
  padding: 0 14px;
}

.mood-section,
.mood-feature-band,
.deck-feature-band,
.mana-tour-band,
.mood-detail-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px 82px;
}

.mood-section,
.mood-feature-band,
.deck-feature-band,
.mana-tour-band,
.mood-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  align-items: center;
  gap: 30px;
}

.mood-copy h2,
.mood-feature-band h2,
.deck-feature-copy h2,
.mana-tour-copy h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.15;
}

.mood-copy p,
.mood-feature-band p,
.deck-feature-copy p,
.mana-tour-copy p,
.mood-side-copy p {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.72;
  font-weight: 700;
}

.mana-tour-band {
  padding-top: 4px;
  scroll-margin-top: 92px;
}

.mana-tour-copy h2 {
  max-width: 620px;
}

.mana-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.mana-steps article {
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(21, 25, 35, 0.88), rgba(13, 15, 22, 0.94));
}

.mana-steps img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.mana-steps strong {
  display: block;
  margin-top: 16px;
  color: var(--gold-2);
  font-size: 16px;
  font-weight: 900;
}

.mana-steps span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.mana-screen-pair {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.78fr);
  gap: 18px;
  align-items: end;
}

.mana-screen-pair .reward-phone {
  max-width: 260px;
  justify-self: end;
}

.mana-screen-pair .reward-phone.secondary {
  max-width: 230px;
  justify-self: start;
}

.mood-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.mood-points span,
.mood-chips span,
.mood-summary-row span,
.mood-icon-board span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 27, 0.72);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.mood-points span {
  padding: 9px 12px;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 900;
}

.mood-dashboard,
.mini-mood-panel {
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 0%, rgba(94, 217, 196, 0.16), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(215, 189, 124, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(21, 25, 35, 0.94), rgba(10, 12, 18, 0.96));
}

.mood-dashboard {
  padding: 24px;
}

.mood-dashboard.large {
  padding: 28px;
}

.mood-dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.mood-dashboard-head strong {
  display: block;
  color: var(--gold-2);
  font-size: 18px;
}

.mood-dashboard-head span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mood-dashboard-head img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.mood-chart {
  margin-top: 22px;
}

.mood-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.mood-area {
  fill: url("#homeMoodArea");
}

.mood-area.detail {
  fill: url("#detailMoodArea");
}

.mini-mood-panel .mood-area {
  fill: rgba(94, 217, 196, 0.18);
}

.mood-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 18px rgba(94, 217, 196, 0.22));
}

.mood-dots circle {
  fill: #07110f;
  stroke: var(--teal);
  stroke-width: 4;
}

.mood-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 8px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.mood-chips,
.mood-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.mood-chips span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
}

.mood-chips img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.mood-feature-band {
  padding-top: 6px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
}

.deck-feature-band {
  padding-top: 0;
  padding-bottom: 42px;
}

.deck-points.compact {
  margin-top: 20px;
}

.deck-points.compact li {
  padding: 12px 14px;
  font-size: 14px;
}

.deck-data-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.deck-data-panels article {
  overflow: hidden;
  min-height: 374px;
  padding: 16px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(130, 216, 204, 0.14), transparent 34%),
    rgba(17, 19, 27, 0.86);
}

.deck-data-panels .mini-card-fan {
  height: 214px;
}

.deck-data-panels strong {
  display: block;
  color: var(--gold-2);
  font-size: 15px;
  font-weight: 900;
}

.deck-data-panels span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.mini-mood-panel {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.mini-mood-score {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.mini-mood-score img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.mini-mood-score strong {
  color: var(--text);
  font-size: 38px;
  line-height: 1;
}

.mini-mood-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.mood-page-main {
  padding-bottom: 78px;
}

.mood-hero {
  padding-bottom: 34px;
}

.mood-icon-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mood-icon-board span {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 14px 10px;
  text-align: center;
}

.mood-icon-board img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 8px;
}

.mood-detail-grid {
  align-items: stretch;
  padding-top: 0;
}

.mood-summary-row span {
  display: grid;
  align-content: center;
  min-height: 68px;
  padding: 12px;
  color: var(--muted);
}

.mood-summary-row strong {
  color: var(--gold-2);
  font-size: 24px;
}

.mood-side-copy {
  display: grid;
  gap: 14px;
}

.mood-side-copy article {
  min-height: 156px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(21, 25, 35, 0.9), rgba(13, 15, 22, 0.92));
}

.mood-side-copy span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.mood-side-copy h2 {
  margin-top: 12px;
  font-size: 21px;
}

.masters-section {
  padding-top: 18px;
}

.masters-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  margin-top: 34px;
}

.master-feature {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(240px, 0.68fr);
  align-items: end;
  gap: 12px;
  padding: 30px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 14%, rgba(215, 189, 124, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(21, 25, 35, 0.96), rgba(9, 10, 16, 0.96));
}

.master-feature::after {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.master-feature div,
.master-feature img {
  position: relative;
  z-index: 1;
}

.master-feature div {
  align-self: center;
}

.master-feature span,
.master-roster strong,
.character-card strong {
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
}

.master-feature h3 {
  max-width: 420px;
  margin-top: 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.master-feature p {
  max-width: 390px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.master-feature img {
  align-self: end;
  width: min(100%, 310px);
  justify-self: end;
  filter: saturate(0.95) contrast(0.96);
}

.master-roster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.master-roster article {
  overflow: hidden;
  min-height: 200px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(21, 25, 35, 0.88), rgba(13, 15, 22, 0.92));
}

.master-roster img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  object-position: center bottom;
  margin-bottom: 10px;
}

.master-roster span,
.character-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.page-main {
  padding: 0 0 78px;
}

.page-hero {
  padding: 74px 24px 54px;
}

.page-hero.split,
.system-map,
.reward-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  align-items: center;
  gap: 54px;
}

.page-phone {
  width: min(100%, 318px);
  aspect-ratio: 390 / 844;
  justify-self: end;
}

.value-grid article,
.feature-matrix article,
.sitemap-grid article {
  min-height: 218px;
  padding: 24px;
}

.value-grid strong {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.system-map {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.loop-list,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.loop-list li,
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.6;
  font-weight: 700;
}

.loop-list li:last-child,
.check-list li:last-child {
  border-bottom: 0;
}

.loop-list span {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
}

.flow-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0 24px 78px;
}

.flow-step {
  overflow: hidden;
  padding: 22px;
}

.flow-step h2 {
  margin-top: 22px;
  font-size: 22px;
}

.flow-step img {
  margin-top: 22px;
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.character-stack {
  display: grid;
  gap: 14px;
  justify-self: end;
  width: min(100%, 360px);
}

.character-card {
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 12%, rgba(215, 189, 124, 0.14), transparent 32%),
    rgba(17, 19, 27, 0.82);
}

.character-card.large {
  overflow: hidden;
  min-height: 368px;
  padding: 18px;
}

.character-card.large img {
  width: 100%;
  height: 284px;
  object-fit: contain;
  object-position: center bottom;
}

.avatar-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.avatar-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 27, 0.78);
}

.tour-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 24px 34px;
}

.tour-summary article {
  min-height: 176px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 10%, rgba(130, 216, 204, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(21, 25, 35, 0.88), rgba(13, 15, 22, 0.94));
}

.tour-summary strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
}

.tour-summary h2 {
  margin-top: 18px;
  font-size: 22px;
}

.tour-summary p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.unified-flow {
  padding-bottom: 64px;
}

.compact-archive {
  padding-top: 74px;
}

.feature-matrix {
  padding: 0 24px 78px;
}

.feature-matrix article {
  position: relative;
  overflow: hidden;
  padding-top: 112px;
}

.feature-accent {
  position: absolute;
  right: 16px;
  top: 12px;
  width: 98px;
  height: 98px;
  object-fit: contain;
  opacity: 0.9;
  filter: saturate(0.95);
}

.feature-matrix article:nth-child(1) .feature-accent,
.feature-matrix article:nth-child(3) .feature-accent,
.feature-matrix article:nth-child(4) .feature-accent {
  width: 126px;
  height: 126px;
  right: 0;
  top: -6px;
}

.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.screen-tabs button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 27, 0.72);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.screen-tabs button.active {
  border-color: var(--gold-line);
  color: var(--gold-2);
  background: rgba(215, 189, 124, 0.09);
}

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

figure {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 27, 0.78);
}

figure.is-hidden {
  display: none;
}

figure img {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  border-radius: 8px;
  background: #05060a;
}

figcaption {
  padding: 12px 2px 2px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.master-deck-hero {
  border-bottom: 1px solid var(--line);
}

.deck-fan {
  position: relative;
  min-height: 360px;
  justify-self: end;
  width: min(100%, 440px);
}

.deck-fan img {
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: 168px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.44);
}

.deck-fan img:nth-child(1) {
  transform: translateX(-120%) rotate(-12deg);
}

.deck-fan img:nth-child(2) {
  z-index: 2;
  width: 188px;
  transform: translateX(-50%) translateY(-22px);
}

.deck-fan img:nth-child(3) {
  transform: translateX(18%) rotate(12deg);
}

.master-profile-band,
.deck-story-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 34px;
  padding: 70px 24px 0;
}

.master-profile-copy h2,
.deck-copy h2 {
  max-width: 620px;
  font-size: clamp(30px, 4.5vw, 50px);
  line-height: 1.14;
}

.master-profile-copy p,
.deck-copy p,
.deck-showcase p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

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

.master-profile-grid article {
  overflow: hidden;
  min-height: 300px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(21, 25, 35, 0.88), rgba(13, 15, 22, 0.94));
}

.master-profile-grid img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  object-position: center bottom;
  margin-bottom: 12px;
}

.master-profile-grid strong,
.deck-showcase strong {
  display: block;
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 900;
}

.master-profile-grid span,
.deck-showcase span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.deck-story-band {
  align-items: center;
  padding-bottom: 78px;
}

.deck-points {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.deck-points li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(17, 19, 27, 0.62);
  font-weight: 800;
}

.deck-showcases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.deck-showcase {
  display: block;
  overflow: hidden;
  min-height: 420px;
  padding: 18px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(130, 216, 204, 0.14), transparent 34%),
    rgba(17, 19, 27, 0.86);
}

.deck-showcase:hover {
  border-color: rgba(239, 216, 157, 0.62);
  transform: translateY(-2px);
}

.deck-showcase em {
  display: inline-flex;
  margin-top: 18px;
  color: var(--gold-2);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.mini-card-fan {
  position: relative;
  height: 250px;
  margin-bottom: 18px;
}

.mini-card-fan img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 118px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.mini-card-fan img:nth-child(1) {
  transform: translateX(-112%) rotate(-9deg);
}

.mini-card-fan img:nth-child(2) {
  z-index: 2;
  width: 132px;
  transform: translateX(-50%) translateY(-18px);
}

.mini-card-fan img:nth-child(3) {
  transform: translateX(12%) rotate(9deg);
}

.deck-detail-main {
  padding-bottom: 84px;
}

.deck-detail-hero {
  align-items: center;
}

.deck-meta-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
}

.deck-meta-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 27, 0.62);
}

.deck-meta-list dt {
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
}

.deck-meta-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
  font-weight: 800;
}

.deck-detail-fan {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 18%, rgba(215, 189, 124, 0.16), transparent 34%),
    radial-gradient(circle at 18% 80%, rgba(94, 217, 196, 0.12), transparent 32%),
    rgba(17, 19, 27, 0.86);
}

.deck-detail-fan img {
  position: absolute;
  bottom: 42px;
  left: 50%;
  width: min(34%, 178px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
}

.deck-detail-fan img:nth-child(1) {
  transform: translateX(-118%) rotate(-10deg);
}

.deck-detail-fan img:nth-child(2) {
  z-index: 2;
  width: min(39%, 204px);
  transform: translateX(-50%) translateY(-26px);
}

.deck-detail-fan img:nth-child(3) {
  transform: translateX(18%) rotate(10deg);
}

.deck-overview-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 0;
  padding-bottom: 34px;
}

.deck-overview-strip article {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(21, 25, 35, 0.9), rgba(13, 15, 22, 0.92));
}

.deck-overview-strip strong {
  display: block;
  color: var(--gold-2);
  font-size: 32px;
  line-height: 1;
}

.deck-overview-strip span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.deck-card-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 24px 20px;
}

.deck-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.deck-section-head h2 {
  margin-top: 6px;
  font-size: clamp(28px, 4vw, 42px);
}

.deck-section-head span {
  color: var(--dim);
  font-size: 13px;
  font-weight: 900;
}

.deck-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.tarot-card-detail {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(21, 25, 35, 0.9), rgba(13, 15, 22, 0.94));
}

.tarot-card-detail img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #06070b;
}

.tarot-card-detail div {
  padding: 14px;
}

.tarot-card-detail strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.tarot-card-detail span {
  display: block;
  margin-top: 4px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
}

.tarot-card-detail p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.tarot-card-detail b {
  display: block;
  margin-bottom: 2px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
}

.tarot-card-detail .card-keywords {
  color: var(--text);
}

.inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 24px;
  padding: 0 16px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  color: var(--gold-2);
  background: rgba(215, 189, 124, 0.07);
  font-size: 14px;
  font-weight: 900;
}

.all-master-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px 78px;
}

.all-master-grid article {
  overflow: hidden;
  min-height: 230px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(21, 25, 35, 0.88), rgba(13, 15, 22, 0.94));
}

.all-master-grid img {
  width: 100%;
  height: 146px;
  object-fit: contain;
  object-position: center bottom;
  margin-bottom: 10px;
}

.all-master-grid strong {
  display: block;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
}

.all-master-grid span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.dense-hero {
  padding-bottom: 34px;
}

body[data-page="sitemap"] .page-hero {
  padding-top: 42px;
  padding-bottom: 24px;
}

body[data-page="sitemap"] .page-hero h1 {
  font-size: clamp(34px, 4vw, 56px);
}

body[data-page="sitemap"] .page-lede {
  margin-top: 14px;
}

body[data-page="sitemap"] .guide-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

body[data-page="sitemap"] .guide-card {
  min-height: 190px;
  padding: 20px;
}

body[data-page="sitemap"] .guide-card h2 {
  margin-top: 16px;
  font-size: 20px;
}

body[data-page="sitemap"] .guide-card p {
  font-size: 14px;
  line-height: 1.55;
}

.reward-orbit {
  display: grid;
  grid-template-columns: repeat(3, 92px);
  gap: 14px;
  justify-content: end;
}

.reward-orbit img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  padding: 16px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: rgba(17, 19, 27, 0.78);
}

.reward-layout {
  padding: 0 24px 78px;
  grid-template-columns: minmax(0, 0.85fr) minmax(230px, 0.42fr) minmax(230px, 0.42fr);
}

.reward-copy h2 {
  max-width: 520px;
}

.check-list {
  margin-top: 26px;
}

.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.reward-phone {
  width: 100%;
  aspect-ratio: 390 / 844;
}

.reward-phone.secondary {
  transform: translateY(34px);
}

.sitemap-grid {
  padding: 0 24px 78px;
}

.sitemap-grid span {
  width: auto;
  color: var(--teal);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  padding: 26px 24px 36px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--gold-2);
}

@media (max-width: 1080px) {
  .main-nav {
    gap: 16px;
    font-size: 13px;
  }

  .home-hero,
  .page-hero.split,
  .system-map,
  .master-profile-band,
  .deck-story-band,
  .mood-section,
  .mood-feature-band,
  .deck-feature-band,
  .mana-tour-band,
  .mood-detail-grid,
  .reward-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 610px;
  }

  .page-phone,
  .reward-phone {
    justify-self: center;
    max-width: 330px;
  }

  .flow-page-grid,
  .screens-grid,
  .deck-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .portal-grid,
  .value-grid,
  .feature-matrix,
  .all-master-grid,
  .tour-summary,
  .sitemap-grid,
  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body[data-page="sitemap"] .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-card.wide {
    grid-column: span 1;
  }

  .character-stack,
  .reward-orbit {
    justify-content: start;
  }

  .masters-showcase,
  .master-feature {
    grid-template-columns: 1fr;
  }

  .master-feature {
    min-height: auto;
  }

  .master-feature img {
    justify-self: center;
  }

  .deck-fan {
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    min-height: 70px;
  }

  .brand img {
    width: 148px;
  }

  .menu-toggle {
    position: relative;
    z-index: 42;
    display: block;
    flex: 0 0 auto;
  }

  body.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 40;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(82vw, 330px);
    height: 100svh;
    padding: 92px 18px 24px;
    gap: 8px;
    border-left: 1px solid var(--gold-line);
    background:
      radial-gradient(circle at 72% 8%, rgba(215, 189, 124, 0.14), transparent 34%),
      rgba(8, 9, 14, 0.98);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.42);
  }

  .main-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text);
    background: rgba(17, 19, 27, 0.62);
  }

  .main-nav a:hover,
  .main-nav a[aria-current="page"] {
    border-color: var(--gold-line);
    color: var(--gold-2);
    background: rgba(215, 189, 124, 0.08);
  }

  body.nav-open .main-nav {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }

  .drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    border: 0;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  body.nav-open .drawer-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .header-cta {
    display: none;
  }

  .home-hero,
  .page-hero,
  .portal-section,
  .mood-section,
  .mood-feature-band,
  .deck-feature-band,
  .mana-tour-band,
  .mood-detail-grid,
  .masters-section,
  .master-profile-band,
  .deck-story-band,
  .content-band,
  .screen-archive,
  .feature-matrix,
  .flow-page-grid,
  .sitemap-grid,
  .guide-grid,
  .reward-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .home-hero {
    min-height: 0;
    padding-top: 42px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-lede,
  .page-lede {
    font-size: 16px;
  }

  .hero-stage {
    min-height: 538px;
  }

  .hero-master {
    right: -110px;
    width: 360px;
  }

  .phone-main {
    width: min(86vw, 326px);
  }

  .card-left {
    left: -4px;
    top: 70px;
  }

  .card-right {
    right: -4px;
    bottom: 54px;
  }

  .portal-grid,
  .value-grid,
  .feature-matrix,
  .tour-summary,
  .sitemap-grid,
  .guide-grid,
  .mood-chips,
  .mood-summary-row,
  .master-profile-grid,
  .deck-showcases,
  .deck-data-panels,
  .flow-page-grid,
  .screens-grid,
  .deck-card-grid,
  .deck-overview-strip {
    grid-template-columns: 1fr;
  }

  .all-master-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 18px;
    padding-right: 18px;
  }

  body[data-page="sitemap"] .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid,
  body[data-page="sitemap"] .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-card.wide {
    grid-column: auto;
  }

  .reward-orbit {
    grid-template-columns: repeat(2, 92px);
  }

  .master-roster {
    grid-template-columns: 1fr;
  }

  .master-feature {
    padding: 22px;
  }

  .character-stack {
    justify-self: stretch;
    gap: 10px;
  }

  .tour-summary article {
    min-height: 150px;
    padding: 16px;
  }

  .tour-summary h2 {
    margin-top: 14px;
    font-size: 20px;
  }

  .character-card.large {
    display: grid;
    grid-template-columns: 0.92fr 1fr;
    align-items: center;
    min-height: 168px;
    padding: 12px;
    column-gap: 10px;
  }

  .character-card.large img {
    height: 144px;
    object-position: center bottom;
  }

  .character-card.large strong {
    align-self: end;
    font-size: 13px;
  }

  .character-card.large span {
    align-self: start;
    margin-top: 4px;
    font-size: 12px;
  }

  .avatar-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .avatar-row img {
    aspect-ratio: 4 / 3;
    object-position: center top;
  }

  .master-profile-band {
    gap: 24px;
  }

  .master-profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .master-profile-grid article {
    min-height: 176px;
    padding: 10px;
  }

  .master-profile-grid img {
    height: 112px;
    margin-bottom: 8px;
  }

  .master-profile-grid strong {
    font-size: 12px;
  }

  .master-profile-grid span {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.32;
  }

  .deck-fan {
    min-height: 300px;
  }

  .deck-detail-fan {
    min-height: 330px;
  }

  .deck-detail-fan img {
    bottom: 32px;
    width: min(35%, 126px);
  }

  .deck-detail-fan img:nth-child(2) {
    width: min(42%, 148px);
  }

  .deck-meta-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .deck-section-head {
    display: block;
  }

  .deck-section-head span {
    display: block;
    margin-top: 8px;
  }

  .deck-card-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .mood-section,
  .mood-feature-band,
  .deck-feature-band,
  .mana-tour-band,
  .mood-detail-grid {
    gap: 22px;
    padding-top: 22px;
    padding-bottom: 54px;
  }

  .mana-steps,
  .mana-screen-pair {
    grid-template-columns: 1fr;
  }

  .mana-screen-pair .reward-phone,
  .mana-screen-pair .reward-phone.secondary {
    max-width: 300px;
    justify-self: center;
  }

  .mood-dashboard,
  .mood-dashboard.large {
    padding: 18px;
  }

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

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

  .deck-fan img {
    width: 132px;
  }

  .deck-fan img:nth-child(2) {
    width: 150px;
  }

  .deck-showcase {
    min-height: auto;
  }

  .mini-card-fan {
    height: 230px;
  }

  .reward-phone.secondary {
    transform: none;
  }
}
