/* Makeup Mania Guide — Fashion magazine × modern gaming guide */

:root {
  --bg: #faf8f6;
  --bg-soft: #f3eee9;
  --surface: #ffffff;
  --text: #2a2428;
  --text-muted: #6b6168;
  --text-soft: #8a8086;
  --pink: #e8a4b8;
  --pink-deep: #d4789a;
  --lavender: #c4b0d8;
  --lavender-soft: #ebe3f3;
  --rose: #f5e6eb;
  --cream: #f8f1ea;
  --border: rgba(42, 36, 40, 0.08);
  --border-strong: rgba(42, 36, 40, 0.14);
  --shadow: 0 8px 28px rgba(42, 36, 40, 0.06);
  --shadow-soft: 0 2px 10px rgba(42, 36, 40, 0.04);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-btn: 11px;
  --max: 1200px;
  --prose: 760px;
  --header-h: 60px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 164, 184, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 5%, rgba(196, 176, 216, 0.16), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--pink-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #b85f82;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); margin: 0 0 0.65rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.45rem; }

p { margin: 0 0 1rem; color: var(--text); }
p.lead, .lead { font-size: 1.08rem; color: var(--text-muted); }

ul, ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  max-width: 100%;
}

.look-formula {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.formula-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  align-items: center;
  font-weight: 650;
  margin-bottom: 1rem;
}

.formula-flow span {
  color: var(--pink-deep);
  font-weight: 600;
}

.look-table-wrap,
.codes-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.look-table-wrap {
  margin: 1.25rem 0 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.look-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

.look-table th,
.look-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.look-table th {
  background: var(--bg-soft);
  font-weight: 650;
}

.hub-note {
  color: var(--text-muted);
  margin: -0.35rem 0 1.25rem;
}

.tips-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 1.25rem;
}

.prose {
  width: min(100%, var(--prose));
}

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

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 248, 246, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand:hover { color: var(--text); }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0c4d0 0%, #d8c4e8 55%, #e8d4f0 100%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #5a3d52;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav .mobile-play {
  display: none;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(42, 36, 40, 0.04);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}

.btn:hover { color: inherit; text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, #d4789a 0%, #c48ab8 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212, 120, 154, 0.28);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 6px 20px rgba(212, 120, 154, 0.36);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(42, 36, 40, 0.22);
}

.btn-ghost {
  background: transparent;
  color: var(--pink-deep);
  padding-inline: 0.5rem;
  min-height: auto;
  font-weight: 600;
}

.btn-ghost:hover { color: #b85f82; }

.btn-sm {
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
}

.btn-play {
  background: var(--text);
  color: #fff;
  font-size: 0.88rem;
  min-height: 40px;
  padding: 0.5rem 1rem;
}

.btn-play:hover { color: #fff; background: #3d3539; }

/* —— Hero —— */
.hero {
  padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.25rem);
  letter-spacing: -0.035em;
  margin-bottom: 0.45rem;
}

.hero-tagline {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 560;
  color: var(--text);
  margin-bottom: 0.85rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.hero-copy {
  max-width: 32rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 380px;
  border-radius: 22px;
  overflow: hidden;
  background: #f3e4ec;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

/* —— Home trust strip —— */
.home-trust {
  padding: 0.5rem 0 0.25rem;
}

.trust-panel {
  display: grid;
  grid-template-columns: minmax(160px, 0.75fr) 1.6fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.1rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.trust-kicker {
  margin: 0 0 0.15rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.trust-line {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.trust-item {
  padding-left: 0.9rem;
  border-left: 1px solid var(--border);
}

.trust-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 0.2rem;
}

.trust-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* —— Sections —— */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(243, 238, 233, 0.65) 20%, rgba(243, 238, 233, 0.65) 80%, transparent);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head p {
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 0;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* —— Cards —— */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.35rem 1.4rem;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s;
}

.card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(212, 120, 154, 0.22);
}

.card a.stretched {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card a.stretched:hover { color: inherit; }

.card-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 0.55rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.12rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pink-deep);
  text-decoration: none;
}

.card-link:hover { color: #b85f82; }

/* Popular Guides — featured + grid */
.guides-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.popular-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.15rem;
  align-items: stretch;
}

.popular-featured {
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.popular-featured:hover { color: inherit; text-decoration: none; }

.popular-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

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

.reading-order {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.reading-order li a {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
}

.reading-order li a:hover {
  color: inherit;
  border-color: rgba(212, 120, 154, 0.22);
  box-shadow: var(--shadow);
}

.reading-order .step-num {
  font-weight: 700;
  color: var(--pink-deep);
  min-width: 1.5rem;
}

.reading-order .step-title {
  font-weight: 650;
}

.reading-order .step-note {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.guide-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.2rem 1.2rem 1.15rem;
  position: relative;
}

.guide-card:hover { color: inherit; text-decoration: none; }

.guide-card .card-link { margin-top: auto; }

.guide-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  margin-bottom: 0.75rem;
  display: block;
}

.guide-card-makeup .guide-mark {
  background: linear-gradient(135deg, #f0c4d0, #e8a4b8);
}

.guide-card-runway .guide-mark {
  background: linear-gradient(135deg, #d8c4e8, #c4b0d8);
}

.guide-card-style .guide-mark {
  background: linear-gradient(135deg, #f0e0c8, #e0c8b0);
}

.guide-card-vote .guide-mark {
  background: linear-gradient(135deg, #e0d4e8, #d0c0d8);
}

.featured-card {
  padding: 2rem 1.75rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(245, 230, 235, 0.88)),
    var(--surface);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(232, 164, 184, 0.35), transparent 70%);
  pointer-events: none;
}

.featured-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(212, 120, 154, 0.7), rgba(196, 176, 216, 0.55));
}

.featured-card h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  position: relative;
  max-width: 16ch;
}

.featured-card p {
  position: relative;
  max-width: 30ch;
}

.featured-card .card-link { position: relative; }

.featured-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

/* Themes strip — visual variety */
.themes-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.theme-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 178px;
  padding: 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.theme-tile::before {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.theme-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.theme-tile h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
  position: relative;
}

.theme-tile p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
  position: relative;
}

.theme-tile span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pink-deep);
  margin-top: 0.7rem;
  position: relative;
}

.theme-goth { background: linear-gradient(160deg, #ebe6ec, #d8d0dc 45%, #c9bbc9); }
.theme-y2k { background: linear-gradient(160deg, #f7eaf8, #ead6f4 50%, #dce8f7); }
.theme-fairy { background: linear-gradient(160deg, #eef6ea, #eaf2f6 45%, #f4eef8); }
.theme-princess { background: linear-gradient(160deg, #f9eaf2, #f1d8ea 50%, #f8eaf5); }
.theme-cute { background: linear-gradient(160deg, #f9ece8, #f6e1ea 50%, #f8eaf1); }
.theme-elegant { background: linear-gradient(160deg, #f2ede9, #ebe6f1 50%, #f5f1ea); }
.theme-school { background: linear-gradient(160deg, #eaf1f6, #f1eaf1 50%, #f5f1e9); }
.theme-wedding { background: linear-gradient(160deg, #fbf9f6, #f6f1f6 50%, #f1eaf1); }
.theme-beach { background: linear-gradient(160deg, #e8f5f5, #f5f0e8 50%, #e8f0f8); }

/* Home: What is Makeup Mania */
.about-game-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.about-game-copy p {
  color: var(--text-muted);
  max-width: 40rem;
}

.about-game-copy .btn { margin-top: 0.35rem; margin-right: 0.5rem; }

.about-game-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.35rem;
  box-shadow: var(--shadow-soft);
}

.about-panel-label {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-deep);
}

.about-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.15rem;
  counter-reset: about-step;
}

.about-steps li {
  counter-increment: about-step;
  position: relative;
  padding: 0.65rem 0 0.65rem 2.2rem;
  border-bottom: 1px solid var(--border);
  margin: 0;
  color: var(--text);
  font-weight: 550;
  font-size: 0.95rem;
}

.about-steps li:last-child { border-bottom: none; }

.about-steps li::before {
  content: counter(about-step);
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--lavender-soft);
  color: #6a5478;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Home tips */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.tip-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--lavender);
  margin-bottom: 0.55rem;
}

.tip-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.tip-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}


/* Codes CTA */
.home-codes { padding-top: 0.5rem; }

.codes-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.codes-cta h2 { margin-bottom: 0.4rem; }

.codes-cta p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

/* Latest list */
.latest-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.latest-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.latest-item:hover {
  border-color: rgba(212, 120, 154, 0.25);
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
}

.latest-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lavender);
  width: 1.5rem;
}

.latest-item h3 {
  font-size: 1rem;
  margin: 0 0 0.2rem;
}

.latest-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.latest-meta {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 0.2rem;
}

.latest-arrow {
  color: var(--pink-deep);
  font-weight: 600;
  font-size: 0.9rem;
}

/* CTA band */
.cta-band {
  margin: clamp(2rem, 5vw, 3.5rem) 0;
  padding: clamp(2.25rem, 5vw, 3.25rem);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(232, 164, 184, 0.22), rgba(196, 176, 216, 0.2)),
    var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.cta-band h2 { margin-bottom: 0.65rem; }
.cta-band p {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* —— Page hero (inner) —— */
.page-hero {
  padding: clamp(2rem, 4vw, 3rem) 0 1.5rem;
}

.page-hero .lead {
  max-width: 40rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--pink-deep); }

.breadcrumb span[aria-hidden] { opacity: 0.45; }

/* Article */
.article {
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.article-body {
  width: min(100%, var(--prose));
}

.article-body h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  padding-top: 0.25rem;
}

.article-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-body > *:first-child { margin-top: 0; }

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  margin: 0 0 1.5rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  margin-bottom: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.callout,
.tip {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  border: 1px solid var(--border);
}

.callout {
  background: var(--lavender-soft);
  border-color: rgba(196, 176, 216, 0.35);
}

.tip {
  background: var(--rose);
  border-color: rgba(232, 164, 184, 0.35);
}

.callout strong,
.tip strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.color-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.color-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem 0.45rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  margin: 0;
}

.chip {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  padding: 0.85rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq summary::after {
  content: "+";
  font-weight: 400;
  color: var(--text-soft);
  font-size: 1.2rem;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 0.75rem 0 0.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

.related-grid a {
  display: block;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.related-grid a:hover {
  border-color: rgba(212, 120, 154, 0.3);
  color: var(--text);
}

.related-grid a span {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Catalog grids */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  padding-bottom: 3rem;
}

.theme-catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  padding-bottom: 3rem;
}

/* Codes table */
.codes-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.codes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.codes-table th,
.codes-table td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.codes-table th {
  background: var(--bg-soft);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 650;
}

.codes-table tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 650;
}

.badge-none {
  background: var(--bg-soft);
  color: var(--text-muted);
}

.empty-notice {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 0 0 3rem;
  max-width: var(--prose);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.4rem;
  bottom: 2rem;
  width: 2px;
  background: linear-gradient(180deg, var(--pink), var(--lavender), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--pink-deep);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
}

.timeline-card time {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--pink-deep);
  letter-spacing: 0.03em;
}

.timeline-card h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.05rem;
}

.timeline-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 2.75rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.footer-brand a {
  text-decoration: none;
  color: var(--text);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 22rem;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-content: flex-start;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-soft);
}

.footer-bottom p { margin: 0 0 0.5rem; color: var(--text-soft); }

.disclaimer {
  max-width: 40rem;
  line-height: 1.5;
}

/* Utility */
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-visual {
    max-height: 260px;
    aspect-ratio: 16 / 9;
  }

  .trust-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .guides-featured,
  .popular-layout,
  .about-game-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .latest-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root { --header-h: 56px; }

  .nav-toggle { display: inline-flex; }

  .btn-play.header-play { display: none; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(250, 248, 246, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
    box-shadow: var(--shadow);
  }

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

  .nav a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .nav .mobile-play {
    display: flex;
    margin-top: 0.5rem;
  }

  .trust-items {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .trust-item {
    padding: 0.55rem 0 0.55rem 0.85rem;
  }

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

  .path-grid,
  .path-grid-2 {
    grid-template-columns: 1fr;
  }

  .guides-grid,
  .catalog-grid,
  .theme-catalog,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .latest-item {
    grid-template-columns: auto 1fr;
  }

  .latest-arrow { display: none; }

  .hero {
    padding-top: 1.35rem;
  }

  .hero-chip { font-size: 0.65rem; padding: 0.28rem 0.55rem; }

  .codes-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band { padding: 1.75rem 1.25rem; }
}

@media (max-width: 380px) {
  .container { width: min(100% - 1.25rem, var(--max)); }

  .brand-text { font-size: 0.88rem; }

  .btn { width: 100%; }

  .hero-actions { flex-direction: column; }

  .hero-actions .btn { width: 100%; }

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

  .codes-cta .btn { width: 100%; }

  .reading-order .step-note { display: none; }
}

/* —— Guides hub —— */
.guides-hub-hero {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 0.5rem;
}

.guides-hub-tagline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 40rem;
  margin: 0 0 0.85rem;
  line-height: 1.35;
}

.guides-hub-intro {
  max-width: 42rem;
  color: var(--text-muted);
  margin: 0;
}

.cat-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-deep);
}

.guides-start-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 1.1rem;
  align-items: stretch;
}

.guides-featured-card,
.winning-featured,
.guide-hub-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.guides-featured-card:hover,
.winning-featured:hover,
.guide-hub-card:hover {
  color: inherit;
  text-decoration: none;
}

.guide-hub-card .card-link,
.guides-featured-card .card-link,
.winning-featured .card-link {
  margin-top: auto;
}

.guides-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.winning-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.1rem;
  align-items: stretch;
}

.winning-featured {
  min-height: 280px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(235, 227, 243, 0.9)),
    var(--surface);
}

.winning-featured h3 {
  max-width: 14ch;
}

.winning-side {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.guides-seo-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.guides-seo-copy p {
  color: var(--text-muted);
  max-width: 40rem;
}

.guides-seo-copy h3 {
  margin-top: 1.35rem;
}

.guides-seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.guides-seo-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.guides-seo-panel a {
  color: inherit;
  text-decoration: none;
  font-weight: 550;
}

.guides-seo-panel a:hover {
  color: var(--pink-deep);
}

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

@media (max-width: 960px) {
  .guides-start-layout,
  .winning-layout,
  .guides-seo-grid,
  .guides-card-grid-3 {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .guides-card-grid,
  .guides-related {
    grid-template-columns: 1fr;
  }

  .guides-seo-actions {
    flex-direction: column;
  }

  .guides-seo-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
