/* ==========================================================================
   Y1 Game — in-y1.games
   assets/css/pages.css — page-specific blocks that build on main.css.

   ┌────────────────────────────────────────────────────────────────────────┐
   │  01 HOME HERO                 07 CATALOGUE (games.html)                │
   │  02 OG SHOWCASE               08 COMPARE TITLES                        │
   │  03 GAME CARDS                09 GAME DETAIL (games-details.html)      │
   │  04 STEPS / HOW-TO            10 DOWNLOAD PAGE                         │
   │  05 SCREENSHOTS               11 CONTACT PAGE                          │
   │  06 REVIEWS & COMMUNITY       12 LEGAL PAGES + TOC                     │
   │                               13 ABOUT PAGE (timeline, values)         │
   │                               14 PAGE HERO & BREADCRUMB                │
   └────────────────────────────────────────────────────────────────────────┘
   ========================================================================== */


/* ==========================================================================
   01 · HOME HERO
   ========================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(38px, 6vw, 84px));
  padding-bottom: clamp(56px, 7vw, 108px);
  background: var(--gradient-hero);
  overflow: hidden;
  isolation: isolate;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { order: -1; }
}

.hero__title {
  font-size: var(--fs-hero);
  line-height: 0.98;
  margin-top: var(--sp-4);
}

.hero__title em {
  display: block;
  font-style: normal;
  font-size: 0.44em;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--color-text-muted);
  margin-top: var(--sp-4);
  max-width: 22ch;
}

.hero__lede {
  margin-top: var(--sp-5);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
  max-width: 58ch;
}

.hero__bonus {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding: 9px 9px 9px 17px;
  border-radius: var(--r-pill);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.028);
}

.hero__bonus-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.hero__bonus-value {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--color-brass-foil);
  background-size: 200% 100%;
  color: var(--color-text-on-brass);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  animation: foilShift 6s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bonus-value { animation: none; }
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.hero__risk {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: var(--sp-6);
  font-size: var(--fs-xs);
  line-height: var(--lh-relaxed);
  color: var(--color-text-dim);
  max-width: 56ch;
}

.hero__risk svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: #F79891;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: var(--sp-5);
}

.hero__orb-1 { top: -14%; right: -8%; width: 460px; height: 460px; }
.hero__orb-2 { bottom: -20%; left: -12%; width: 400px; height: 400px; }

@media (max-width: 620px) {
  .hero__orb-1, .hero__orb-2 { width: 260px; height: 260px; }
}


/* ==========================================================================
   02 · OG SHOWCASE
   ========================================================================== */

.showcase {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(30px, 4.4vw, 62px);
  align-items: center;
}

@media (max-width: 900px) {
  .showcase { grid-template-columns: minmax(0, 1fr); }
}

.showcase__frame {
  position: relative;
  border-radius: var(--r-xl);
  padding: 10px;
  border: 1px solid var(--color-border);
  background: linear-gradient(150deg, rgba(185, 138, 68, 0.16), rgba(31, 217, 142, 0.09));
  box-shadow: var(--shadow-lg);
}

.showcase__frame img {
  width: 100%;
  border-radius: var(--r-lg);
  display: block;
}

.showcase__tag {
  position: absolute;
  top: -13px;
  left: 24px;
  z-index: 2;
}

.showcase__headline {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-tight);
  background: var(--color-brass-foil);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: foilShift 8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .showcase__headline { animation: none; }
}

.showcase__list {
  margin-top: var(--sp-5);
  display: grid;
  gap: var(--sp-3);
}

.showcase__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.showcase__list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--color-emerald-bright);
}


/* ==========================================================================
   03 · GAME CARDS
   ========================================================================== */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 196px), 1fr));
  gap: clamp(14px, 2vw, 22px);
}

@media (max-width: 420px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  border: 1px solid var(--color-border-soft);
  background: var(--gradient-panel);
  overflow: hidden;
  transition:
    transform var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out);
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-strong);
  box-shadow: 0 26px 52px -24px rgba(0, 0, 0, 0.86);
}

@media (prefers-reduced-motion: reduce) {
  .game-card:hover { transform: none; }
}

.game-card__art {
  position: relative;
  /* Artwork ships at 211x260 — matching the box to the real ratio means the
     browser reserves the correct space and nothing is cropped. */
  aspect-ratio: 211 / 260;
  overflow: hidden;
  background: var(--color-bg-deep);
}

.game-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.game-card:hover .game-card__art img { transform: scale(1.07); }

@media (prefers-reduced-motion: reduce) {
  .game-card:hover .game-card__art img { transform: none; }
}

.game-card__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(4, 6, 7, 0.86) 100%);
  pointer-events: none;
}

.game-card__flags {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  display: flex;
  gap: 5px;
}

.game-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  font-family: var(--font-display);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.game-flag--hot {
  background: rgba(240, 101, 92, 0.82);
  color: #170706;
}

.game-flag--new {
  background: rgba(31, 217, 142, 0.86);
  color: var(--color-text-on-emerald);
}

.game-card__rating {
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  background: rgba(4, 6, 7, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-brass-bright);
  font-variant-numeric: tabular-nums;
}

.game-card__rating svg { width: 11px; height: 11px; }

.game-card__body {
  padding: 12px 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 auto;
}

.game-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  font-size: 0.68rem;
  color: var(--color-text-dim);
}

.game-card__cat {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  border: 1px solid var(--color-border-soft);
  background: var(--color-brass-wash);
  color: var(--color-brass-bright);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

.game-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.game-card__link:focus-visible {
  outline: 2px solid var(--color-emerald-bright);
  outline-offset: -2px;
  border-radius: var(--r-md);
}


/* ==========================================================================
   04 · STEPS / HOW-TO
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
  counter-reset: step;
}

@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .steps { grid-template-columns: minmax(0, 1fr); } }

.step {
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.022);
  counter-increment: step;
  transition: border-color var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out);
}

.step:hover {
  border-color: var(--color-border);
  background: rgba(185, 138, 68, 0.055);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--color-border);
  background: var(--color-brass-wash);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-brass-bright);
  margin-bottom: var(--sp-4);
  font-variant-numeric: tabular-nums;
}

.step__num::before { content: '0' counter(step); }

.step__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.step__text {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.step__hint {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--color-border-soft);
}

/* Vertical numbered install guide (download.html) ------------------------- */

.guide {
  display: grid;
  gap: var(--sp-4);
  counter-reset: guide;
}

.guide__row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: start;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.02);
  counter-increment: guide;
}

.guide__badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: var(--r-md);
  border: 1px solid var(--color-border);
  background: var(--color-brass-wash);
  color: var(--color-brass-bright);
}

.guide__badge svg { width: 25px; height: 25px; }

.guide__badge::after {
  content: counter(guide);
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-emerald);
  color: var(--color-text-on-emerald);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
}

.guide__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.guide__text {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.guide__text + .guide__text { margin-top: var(--sp-2); }

@media (max-width: 560px) {
  .guide__row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
}


/* ==========================================================================
   05 · SCREENSHOTS
   ========================================================================== */

.shots__slide {
  padding-inline: 8px;
}

.shot {
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border-soft);
  background: var(--color-bg-deep);
  overflow: hidden;
}

.shot img {
  width: 100%;
  /* Screenshots ship at 1280x2800 — showing the whole frame rather than
     cropping to 9:16, which cut the bottom third off every capture. */
  aspect-ratio: 32 / 70;
  object-fit: contain;
  background: var(--color-bg-deep);
}

.shot__caption {
  padding: 13px 15px;
  border-top: 1px solid var(--color-border-soft);
  font-size: var(--fs-xs);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.shot__caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--color-text-primary);
  margin-bottom: 3px;
}


/* ==========================================================================
   06 · REVIEWS & COMMUNITY
   ========================================================================== */

.review {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border-soft);
  background: var(--gradient-panel);
  margin-inline: 8px;
}

.review__stars {
  display: flex;
  gap: 3px;
  color: var(--color-brass-bright);
  margin-bottom: var(--sp-4);
}

.review__stars svg { width: 15px; height: 15px; }

.review__stars .is-off { color: rgba(255, 255, 255, 0.14); }

.review__text {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
  flex: 1 1 auto;
}

.review__foot {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border-soft);
}

.review__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-brass-wash);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--color-brass-bright);
}

.review__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.review__date {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  margin-top: 1px;
}

.channel {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border-soft);
  background: var(--gradient-panel);
  transition: border-color var(--t-base) var(--ease-out);
}

.channel:hover { border-color: rgba(38, 160, 218, 0.42); }

.channel__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  border: 1px solid rgba(38, 160, 218, 0.30);
  background: rgba(38, 160, 218, 0.10);
  color: #7CD3F7;
  margin-bottom: var(--sp-4);
}

.channel__icon svg { width: 24px; height: 24px; }

.channel__handle {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  margin-top: var(--sp-2);
}


/* ==========================================================================
   07 · CATALOGUE (games.html — the flagship page)
   ========================================================================== */

.catalogue { position: relative; }

.catalogue__toolbar {
  position: sticky;
  top: var(--header-h-condensed);
  z-index: var(--z-sticky);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface-glass-strong);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-md);
}

.catalogue__row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.catalogue__sort {
  flex: 0 0 auto;
  min-width: 176px;
}

.catalogue__filters {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-block: var(--sp-4) 2px;
  margin-top: var(--sp-3);
  border-top: 1px solid var(--color-border-soft);
  scrollbar-width: none;
}

.catalogue__filters::-webkit-scrollbar { display: none; }

.catalogue__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--color-text-dim);
}

.catalogue__count strong {
  font-family: var(--font-display);
  color: var(--color-brass-bright);
  font-variant-numeric: tabular-nums;
}

.catalogue__empty {
  display: none;
  padding: clamp(38px, 6vw, 72px) var(--sp-5);
  text-align: center;
  border-radius: var(--r-lg);
  border: 1px dashed var(--color-border);
  background: rgba(255, 255, 255, 0.016);
}

.catalogue__empty.is-visible { display: block; }

.catalogue__empty svg {
  width: 46px;
  height: 46px;
  margin: 0 auto var(--sp-4);
  color: var(--color-text-dim);
}

.catalogue__empty h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }

.catalogue__empty p {
  font-size: var(--fs-sm);
  max-width: 44ch;
  margin: 0 auto var(--sp-5);
}

.catalogue__more {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-7);
}

@media (max-width: 700px) {
  .catalogue__toolbar { position: static; }
  .catalogue__sort { flex: 1 1 100%; }
}


/* ==========================================================================
   08 · COMPARE TITLES
   ========================================================================== */

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}

@media (max-width: 760px) { .compare { grid-template-columns: minmax(0, 1fr); } }

.compare__slot {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.02);
}

.compare__head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 96px;
}

.compare__art {
  width: 78px;
  height: 96px;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--color-border-soft);
  object-fit: cover;
  background: var(--color-bg-deep);
}

.compare__name {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.25;
}

.compare__sub {
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  margin-top: 4px;
}

.compare__specs { display: grid; gap: 1px; background: var(--color-border-soft); border-radius: var(--r-sm); overflow: hidden; }

.compare__spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 11px 14px;
  background: var(--color-bg-raise);
  font-size: var(--fs-sm);
}

.compare__spec dt {
  color: var(--color-text-dim);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.compare__spec dd {
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: right;
}

.compare__placeholder {
  display: grid;
  place-items: center;
  min-height: 96px;
  color: var(--color-text-dim);
  font-size: var(--fs-sm);
  border: 1px dashed var(--color-border-soft);
  border-radius: var(--r-sm);
  padding: var(--sp-4);
  text-align: center;
}

.compare__verdict {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid rgba(31, 217, 142, 0.26);
  background: rgba(31, 217, 142, 0.05);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}


/* ==========================================================================
   09 · GAME DETAIL (games-details.html)
   ========================================================================== */

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}

@media (max-width: 820px) {
  .detail-hero { grid-template-columns: minmax(0, 1fr); }
}

.detail-hero__art {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-deep);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 300px;
}

.detail-hero__art img {
  width: 100%;
  aspect-ratio: 211 / 260;
  object-fit: cover;
}

.detail-hero__title {
  font-size: var(--fs-3xl);
  margin-top: var(--sp-3);
}

.detail-hero__flags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.detail-hero__lede {
  margin-top: var(--sp-4);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: var(--sp-6);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--r-md);
  background: var(--color-border-soft);
  overflow: hidden;
}

@media (max-width: 620px) { .detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.detail-stat {
  padding: var(--sp-4);
  background: var(--color-bg-raise);
}

.detail-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-brass-bright);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.detail-stat__label {
  display: block;
  margin-top: 5px;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}

@media (max-width: 940px) {
  .detail-body { grid-template-columns: minmax(0, 1fr); }
}

.detail-aside {
  position: sticky;
  top: calc(var(--header-h-condensed) + 22px);
  display: grid;
  gap: var(--sp-4);
}

@media (max-width: 940px) { .detail-aside { position: static; } }

.detail-missing {
  display: none;
  text-align: center;
  padding: clamp(48px, 8vw, 110px) var(--sp-5);
}

.detail-missing.is-visible { display: block; }

.detail-missing svg {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--sp-5);
  color: var(--color-text-dim);
}


/* ==========================================================================
   10 · DOWNLOAD PAGE
   ========================================================================== */

.filecard {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border);
  background: var(--gradient-panel);
  box-shadow: var(--shadow-card);
}

.filecard__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: var(--r-md);
  border: 1px solid var(--color-border);
  background: var(--color-brass-wash);
  color: var(--color-brass-bright);
  overflow: hidden;
}

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

.filecard__name {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-sm);
  color: var(--color-text-primary);
  word-break: break-all;
}

.filecard__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

@media (max-width: 520px) {
  .filecard { grid-template-columns: minmax(0, 1fr); }
}

.copybar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 7px 7px 7px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.025);
}

.copybar__url {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.qr img {
  width: 168px;
  height: 168px;
  border-radius: var(--r-sm);
  background: #fff;
  padding: 8px;
}

.qr__label {
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  max-width: 26ch;
}


/* ==========================================================================
   11 · CONTACT PAGE
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(30px, 4.4vw, 64px);
  align-items: start;
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.channel-card {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--t-base) var(--ease-out);
}

.channel-card + .channel-card { margin-top: var(--sp-4); }

.channel-card:hover { border-color: var(--color-border); }

.channel-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--color-border);
  background: var(--color-brass-wash);
  color: var(--color-brass-bright);
}

.channel-card__icon svg { width: 21px; height: 21px; }

.channel-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 5px;
}

.channel-card__text {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.channel-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-emerald-bright);
}

.channel-card__link svg { width: 15px; height: 15px; }

.channel-card__link:hover { text-decoration: underline; text-underline-offset: 3px; }


/* ==========================================================================
   12 · LEGAL PAGES + TOC
   ========================================================================== */

.legal {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(30px, 4.4vw, 70px);
  align-items: start;
}

@media (max-width: 940px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
}

.toc {
  position: sticky;
  top: calc(var(--header-h-condensed) + 22px);
  max-height: calc(100vh - var(--header-h-condensed) - 48px);
  overflow-y: auto;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 940px) {
  .toc { position: static; max-height: none; }
}

.toc__title {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-brass-bright);
  margin-bottom: var(--sp-4);
}

.toc__link {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--color-text-dim);
  transition: all var(--t-fast) var(--ease-out);
}

.toc__link:hover {
  color: var(--color-text-primary);
  border-left-color: var(--color-border-strong);
}

.toc__link.is-active {
  color: var(--color-emerald-bright);
  border-left-color: var(--color-emerald-bright);
  background: rgba(31, 217, 142, 0.05);
}

.legal-section {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.legal-section + .legal-section {
  margin-top: var(--sp-9);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--color-border-soft);
}

.legal-section__num {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  color: var(--color-brass);
  display: block;
  margin-bottom: var(--sp-2);
}

.legal-section h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-4);
}


/* ==========================================================================
   13 · ABOUT PAGE
   ========================================================================== */

.timeline {
  position: relative;
  padding-left: var(--sp-7);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--color-brass-bright), rgba(185, 138, 68, 0.10));
}

.timeline__item + .timeline__item { margin-top: var(--sp-7); }

.timeline__item {
  position: relative;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(var(--sp-7) * -1 + 6px);
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  transform: rotate(45deg);
  background: var(--color-bg);
  border: 1.5px solid var(--color-brass-bright);
}

.timeline__item:first-child::before {
  background: var(--color-emerald-bright);
  border-color: var(--color-emerald-bright);
  box-shadow: 0 0 0 4px rgba(31, 217, 142, 0.16);
}

.timeline__when {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-brass-bright);
}

.timeline__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  margin: 6px 0 var(--sp-2);
}

.timeline__text {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
  max-width: 62ch;
}

.value-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
}

.value-row + .value-row { margin-top: var(--sp-6); }

.value-row__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--color-border);
  background: var(--color-emerald-wash);
  color: var(--color-emerald-bright);
}

.value-row__icon svg { width: 20px; height: 20px; }

.value-row h3 { font-size: var(--fs-md); margin-bottom: 6px; }

.value-row p { font-size: var(--fs-sm); line-height: var(--lh-relaxed); }

.helpline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
}

.helpline + .helpline { margin-top: var(--sp-3); }

.helpline__name {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.helpline__meta { font-size: var(--fs-xs); color: var(--color-text-dim); margin-top: 2px; }

.helpline__value {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-sm);
  color: var(--color-brass-bright);
}


/* ==========================================================================
   14 · PAGE HERO & BREADCRUMB
   ========================================================================== */

.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(34px, 5vw, 62px));
  padding-bottom: clamp(34px, 5vw, 66px);
  background: var(--gradient-hero);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--color-border-soft);
}

.page-hero__inner { position: relative; z-index: 2; max-width: 780px; }

.page-hero--center .page-hero__inner { margin-inline: auto; text-align: center; }

.page-hero--center .eyebrow { justify-content: center; }

.page-hero__title { font-size: var(--fs-4xl); margin-top: var(--sp-4); }

.page-hero__lede {
  margin-top: var(--sp-4);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.page-hero--center .page-hero__meta { justify-content: center; }

.page-hero__orb { top: -30%; right: -10%; width: 420px; height: 420px; }

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
}

.crumbs li { display: flex; align-items: center; gap: 8px; }

.crumbs li + li::before {
  content: '/';
  color: rgba(185, 138, 68, 0.5);
}

.crumbs a { transition: color var(--t-fast) var(--ease-out); }
.crumbs a:hover { color: var(--color-brass-bright); }

.crumbs [aria-current='page'] { color: var(--color-text-muted); }

/* Final CTA band ---------------------------------------------------------- */

.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(30px, 4.4vw, 60px);
  border-radius: var(--r-2xl);
  border: 1px solid var(--color-border);
  background:
    radial-gradient(80% 130% at 12% 0%, rgba(31, 217, 142, 0.11), transparent 62%),
    var(--gradient-panel);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

@media (max-width: 820px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .cta-band .row { justify-content: center; }
  .cta-band .eyebrow { justify-content: center; }
  .cta-band .qr { margin-inline: auto; }
}

.cta-band__title {
  font-size: var(--fs-2xl);
  margin-top: var(--sp-3);
}

.cta-band__text {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  max-width: 56ch;
}

@media (max-width: 820px) { .cta-band__text { margin-inline: auto; } }
