:root {
  --bg: #f4f1ea;
  --surface: #fdfcf9;
  --ink: #1b2822;
  --muted: #5d6860;
  --primary: #2d5f47;
  --primary-hover: #214a36;
  --accent: #d49b38;
  --border: #e4ded3;
  --danger: #b43b3b;
  --danger-bg: #fdf2f2;
  --radius: 14px;
  --shadow-sm: 0 2px 6px rgba(27, 40, 34, 0.05);
  --shadow-md: 0 12px 32px rgba(27, 40, 34, 0.09);
  --font-display: "DM Serif Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
}
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
}
.nav-link:hover { color: var(--primary); text-decoration: none; }

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 400;
}
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
p { margin: 0 0 16px; max-width: 70ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}
.btn-secondary[data-gf-liked] {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-link:hover { text-decoration: underline; }

/* Hero Stage Band */
.hero-stage-band {
  padding: 24px 0 32px;
  background-image: radial-gradient(rgba(47, 125, 79, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--border);
}

.hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.hero-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.altitude-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--radius);
}

.game-shell {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  background: transparent;
  border-radius: var(--radius);
  overflow: hidden;
  transition: height 0.2s ease;
}
.stage.is-seamless {
  aspect-ratio: auto;
  min-height: 480px;
  overflow: visible;
}
.stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-scrim {
  position: relative;
  z-index: 2;
  background: rgba(25, 40, 30, 0.78);
  padding: 24px 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(217, 164, 65, 0.5);
  text-align: center;
}
.btn-play {
  background: var(--primary);
  color: #ffffff;
  font-size: 18px;
  padding: 12px 32px;
  min-height: 52px;
  box-shadow: var(--shadow-md);
}
.btn-play:hover { background: var(--primary-hover); }
.cover-caption {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--bg);
}

.loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--ink);
  color: var(--bg);
}
.stage[data-gf-state="loading"] .loader { display: flex; }
.loader p { margin: 0; font-size: 16px; color: var(--bg); }

.loader-peaks {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 44px;
}
.loader-peaks span {
  width: 10px;
  background: var(--accent);
  border-radius: 4px;
  animation: peakPulse 1.1s ease-in-out infinite;
}
.loader-peaks span:nth-child(1) { height: 14px; animation-delay: 0s; }
.loader-peaks span:nth-child(2) { height: 24px; animation-delay: 0.15s; }
.loader-peaks span:nth-child(3) { height: 34px; animation-delay: 0.3s; }
.loader-peaks span:nth-child(4) { height: 44px; animation-delay: 0.45s; }
@keyframes peakPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
}
.action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.count-badge {
  background: var(--bg);
  color: var(--ink);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 12px;
}
.btn-secondary[data-gf-liked] .count-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.share-msg { font-size: 14px; color: var(--primary); font-weight: 600; }

/* Content Sections */
.content-flow { padding-top: 48px; padding-bottom: 64px; }
.section { margin-bottom: 48px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.section-lead { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.mode-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
.mode-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.mode-card:hover {
  border-color: var(--primary);
  text-decoration: none;
}
.mode-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.card-cta { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--primary); }

.split-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
.split-media {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.split-media figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.step-ladder {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step-item {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}
.step-item p { font-size: 14px; color: var(--muted); margin: 0; }

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  background: var(--bg);
  font-weight: 600;
  color: var(--ink);
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.col-highlight { color: var(--primary); font-weight: 600; }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.tip-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* FAQ */
.faq-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  padding: 16px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after { content: "+"; font-size: 18px; color: var(--primary); }
.faq-item[open] .faq-q::after { content: "−"; }
.faq-a { padding: 0 24px 16px; color: var(--muted); font-size: 14px; }
.faq-a p { margin: 0; }

/* Comments */
.meta-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--radius);
}
.comment-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.comment-form[data-gf-replying] .reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}
.form-row { margin-bottom: 12px; }
.comment-form input, .comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
}
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-msg { font-size: 14px; color: var(--primary); }

.comment-list { display: flex; flex-direction: column; gap: 12px; }
.comment-list[data-gf-empty]::before {
  content: "No climbs logged yet—share your highest altitude or favorite category above!";
  display: block;
  padding: 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}
.comment-card, .reply-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.comment-card[data-gf-owner], .reply-card[data-gf-owner] {
  border-left: 4px solid var(--primary);
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.owner-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
}
.comment-time, .reply-target { font-size: 12px; color: var(--muted); }
.comment-body { margin: 0 0 8px; font-size: 14px; }
.comment-replies { margin-top: 12px; padding-left: 16px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 8px; }


/* Inner Pages & Category Directory */
.page-wrap { padding-top: 32px; padding-bottom: 64px; }
.legal-wrap { max-width: 820px; }
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.page-head { margin-bottom: 32px; }
.page-lead { font-size: 18px; color: var(--muted); margin: 0; }
.legal-meta { font-size: 14px; color: var(--muted); margin: 0; }

.prose h2 { margin-top: 32px; }
.prose h3 { margin-top: 24px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; max-width: 70ch; }
.prose li { margin-bottom: 8px; }

.cat-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-chip {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.filter-chip.is-active, .filter-chip:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.cat-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.cat-group { color: var(--primary); font-weight: 600; }
.cat-card h2 { font-size: 22px; margin-bottom: 8px; }
.cat-card p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.cat-card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.page-cta-box { margin-top: 32px; }

/* 404 */
.not-found-wrap { padding-top: 64px; padding-bottom: 64px; }
.not-found-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 22px;
  display: block;
}
.footer-brand p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.footer-copy { margin: 0; font-size: 12px; color: var(--muted); }

/* Embedded Peakle Game App — Full-Width 1072px Widescreen Split Theater */
body.is-embed {
  background: var(--bg);
  min-height: auto;
  overflow-x: hidden;
}
.pk-app {
  max-width: 1072px;
  margin: 0 auto;
  padding: 4px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pk-theater {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(330px, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "stage hud"
    "stage play";
  gap: 12px 16px;
  align-items: start;
}
.pk-theater-stage {
  grid-area: stage;
  min-width: 0;
}
.pk-theater > .pk-hud {
  grid-area: hud;
  min-width: 0;
}
.pk-theater-play {
  grid-area: play;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.pk-ladder-wrap {
  max-height: 220px;
  overflow-y: auto;
}
.pk-topbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.pk-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.pk-modes {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.pk-tab {
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.pk-tab.is-active {
  background: var(--primary);
  color: #ffffff;
}
.pk-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pk-select, .pk-btn-sm {
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pk-select {
  max-width: 280px;
  min-width: 0;
  text-overflow: ellipsis;
}
.pk-btn-sm:hover { border-color: var(--primary); color: var(--primary); }

.pk-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}
.pk-icon-circle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface);
}
.pk-icon-circle[aria-pressed="false"] .snd-wave { opacity: 0.22; }
.pk-icon-circle[aria-pressed="false"] { color: var(--muted); }

.pk-hud {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.pk-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.pk-eyebrow-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pk-pill {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}
.pk-meta-text {
  font-size: 12px;
  color: var(--muted);
}
.pk-micro-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.pk-micro-stats strong { color: var(--ink); }
.pk-title {
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 4px;
  color: var(--ink);
}
.pk-prompt {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* Unified Composer Card */
.pk-input-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.pk-latest-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(45, 95, 71, 0.09);
  border: 1px solid rgba(45, 95, 71, 0.22);
  font-size: 14px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.pk-latest-chip.is-empty {
  background: var(--bg);
  border-color: var(--border);
  color: var(--muted);
  font-size: 13px;
}
.pk-latest-chip.is-tumbled {
  background: var(--danger-bg);
  border-color: var(--danger);
}
.pk-latest-name {
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pk-latest-chip.is-empty .pk-latest-name {
  font-weight: 500;
  color: var(--muted);
}
.pk-latest-val {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.pk-latest-chip.is-tumbled .pk-latest-val { color: var(--danger); }

.pk-floor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.pk-step-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.pk-step-tag strong { color: var(--ink); }
.pk-floor-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pk-floor-pill, .pk-history-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 12px;
  color: var(--muted);
}
.pk-floor-pill strong { color: var(--primary); font-weight: 600; }
.pk-history-btn {
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
}
.pk-history-btn:hover { border-color: var(--primary); color: var(--primary); }

.pk-form { position: relative; }
.pk-input-wrap { display: flex; gap: 8px; }
.pk-search-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.pk-search-icon {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}
.pk-input-wrap input {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--border);
  border-radius: 11px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.pk-input-wrap input:focus {
  background: var(--surface);
  border-color: var(--primary);
}
.pk-submit {
  min-height: 46px;
  padding: 8px 20px;
  border-radius: 11px;
  border: 0;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, background-color 0.16s ease;
}
.pk-submit:hover { background: var(--primary-hover); }
.pk-submit:active { transform: translateY(1px); }

.pk-btn-row {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.pk-scout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 8px 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.pk-scout-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(212, 155, 56, 0.12);
  color: var(--ink);
}
.pk-scout-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.pk-scout-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.pk-scout-btn:disabled .pk-scout-count {
  background: var(--border);
  color: var(--ink);
}
.pk-scout-msg {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.pk-scout-msg.is-safe {
  background: rgba(45, 95, 71, 0.1);
  border-color: rgba(45, 95, 71, 0.35);
  color: var(--primary-hover);
}
.pk-scout-msg.is-warn {
  background: var(--danger-bg);
  border-color: rgba(180, 59, 59, 0.35);
  color: var(--danger);
}

.pk-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 18px;
}
.pk-rem-hint {
  font-size: 12px;
  color: var(--muted);
}

.pk-suggestions {
  list-style: none;
  margin: 0 0 6px;
  padding: 4px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  z-index: 30;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  max-height: 220px;
  overflow-y: auto;
}
.pk-suggestions li {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}
.pk-suggestions li:hover, .pk-suggestions li.is-selected {
  background: var(--bg);
  color: var(--primary);
  font-weight: 600;
}
.pk-error { margin: 0; font-size: 13px; color: var(--danger); }

.pk-result-banner {
  background: var(--surface);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.pk-result-banner.is-tumbled { border-color: var(--danger); background: var(--danger-bg); }
.pk-result-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.pk-rank-badge {
  font-size: 12px;
  font-weight: 600;
  background: var(--accent);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
}
.pk-result-hint { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.pk-result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pk-btn-primary, .pk-btn-secondary {
  min-height: 40px;
  padding: 7px 15px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.pk-btn-primary { background: var(--primary); color: #ffffff; border: 0; }
.pk-btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.pk-share-toast { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--primary); font-weight: 600; }

.pk-ladder { display: flex; flex-direction: column; gap: 8px; }
.pk-empty-ladder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  color: var(--muted);
}
.pk-empty-ladder strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 14px; }
.pk-empty-ladder p { margin: 0 auto; font-size: 13px; }

.pk-rung {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 11px;
  padding: 10px 14px;
}
.pk-rung.is-latest { background: rgba(45, 95, 71, 0.08); }
.pk-rung.is-tumbled { border-left-color: var(--danger); background: var(--danger-bg); }
.pk-rung-meta { font-size: 12px; color: var(--muted); display: block; }
.pk-rung-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.pk-rung-val { font-size: 15px; font-weight: 700; color: var(--primary); text-align: right; }
.pk-rung.is-tumbled .pk-rung-val { color: var(--danger); }

.pk-dialog {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  max-width: 420px;
  width: calc(100% - 32px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.pk-dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pk-dialog-head h2 { margin: 0; font-size: 22px; }
.pk-name-form { display: flex; gap: 8px; margin-bottom: 12px; }
.pk-name-form input {
  flex: 1;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.pk-board-status { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.pk-board-list { margin: 0; padding-left: 20px; font-size: 14px; }
.pk-board-list li { padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }

/* Mobile Responsive */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 12px 0; }
  .site-nav { gap: 16px; }
  .stage { aspect-ratio: auto; min-height: 540px; }
  .action-bar, .action-group { width: 100%; }
  .action-group .btn { flex: 1; }
  .mode-split, .split-feature, .step-ladder, .tips-grid, .cat-grid {
    grid-template-columns: 1fr;
  }
  .pk-stats-strip { width: 100%; }
}



/* === Interactive Game Polish & Alpine Motion === */
.brand-mark svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover .brand-mark svg {
  transform: translateY(-2px) scale(1.06);
}

.altitude-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.altitude-tag:first-child::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: liveDot 1.8s ease-in-out infinite;
}
@keyframes liveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

/* Cover ambient motion + live climb preview */
.cover { overflow: hidden; }
.cover img {
  animation: slowDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes slowDrift {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.06) translateY(-6px); }
}

.cover-scrim {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 92%;
  padding: 28px 36px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.cover:hover .cover-scrim {
  border-color: rgba(217, 164, 65, 0.85);
}

.cover-demo-climb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.demo-rung {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(244, 241, 234, 0.12);
  border: 1px solid rgba(244, 241, 234, 0.25);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  animation: demoPop 3.6s ease-in-out infinite;
}
.demo-rung em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}
.demo-rung:nth-child(1) { animation-delay: 0s; }
.demo-rung:nth-child(3) { animation-delay: 0.45s; }
.demo-rung:nth-child(5) { animation-delay: 0.9s; }
.demo-rung:nth-child(7) { animation-delay: 1.35s; }
.demo-rung-peak {
  background: rgba(47, 125, 79, 0.42);
  border-color: rgba(217, 164, 65, 0.75);
}
.demo-arrow {
  color: rgba(243, 246, 241, 0.6);
  font-size: 12px;
}
@keyframes demoPop {
  0%, 100% { transform: translateY(0); border-color: rgba(243, 246, 241, 0.25); }
  20% { transform: translateY(-4px); border-color: rgba(217, 164, 65, 0.85); }
  40% { transform: translateY(0); }
}

.btn-play {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  animation: playGlow 2.4s ease-in-out infinite;
}
.btn-play::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3.4s ease-in-out infinite;
}
.btn-play:hover {
  transform: translateY(-2px) scale(1.05);
}
.btn-play:active {
  transform: scale(0.98);
}
@keyframes playGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 125, 79, 0.55), 0 8px 24px rgba(0, 0, 0, 0.25); }
  50% { box-shadow: 0 0 0 12px rgba(47, 125, 79, 0), 0 10px 28px rgba(0, 0, 0, 0.32); }
}
@keyframes btnShine {
  0%, 65% { left: -120%; }
  100% { left: 160%; }
}

/* Tactile card & button micro-interactions */
.mode-card, .cat-card, .tip-card, .step-item {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.mode-card:hover, .cat-card:hover, .tip-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.step-item:hover {
  transform: translateX(4px);
  border-color: var(--primary);
}
.btn {
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.btn:active { transform: scale(0.97); }

/* Scroll reveal */
.gf-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.gf-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* In-game climb & tumble juice */
.pk-rung {
  animation: rungSpring 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes rungSpring {
  0% { opacity: 0; transform: translateY(-12px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.pk-app.is-shaking {
  animation: tumbleShake 0.38s ease-in-out;
}
@keyframes tumbleShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
.pk-stat-val.is-pop {
  animation: statPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--primary);
}
@keyframes statPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
.pk-confetti-piece {
  position: fixed;
  top: -12px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9999;
  animation: confettiDrop 1.4s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
}
@keyframes confettiDrop {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(90vh) rotate(540deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cover img, .btn-play, .btn-play::after, .demo-rung, .altitude-tag::before, .pk-rung {
    animation: none !important;
  }
  .gf-reveal { opacity: 1; transform: none; transition: none; }
}



/* === 3:2 Scenic Mountain Trail Stage & Waypoint Ascent === */
.pk-stage-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--ink);
  user-select: none;
}
.pk-stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
  will-change: transform, opacity;
  z-index: 0;
}
.pk-stage-bg.is-active {
  opacity: 1;
}
.pk-scene-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 18% 16%, rgba(16, 26, 21, 0.56) 0%, rgba(16, 26, 21, 0.16) 44%, transparent 72%),
    linear-gradient(180deg, rgba(16, 26, 21, 0.14) 0%, transparent 32%, rgba(16, 26, 21, 0.24) 100%);
}

/* Summit Beacon Warm Aura */
.pk-beacon-glow {
  position: absolute;
  left: var(--bx, 81%);
  top: var(--by, 14%);
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(255, 224, 138, 0.52) 0%, rgba(212, 155, 56, 0.18) 45%, transparent 72%);
  animation: beaconPulse 3.2s ease-in-out infinite;
}
.pk-stage-wrap.is-summited .pk-beacon-glow {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 232, 156, 0.82) 0%, rgba(212, 155, 56, 0.34) 48%, transparent 76%);
}
@keyframes beaconPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.94); opacity: 0.72; }
  50% { transform: translate(-50%, -50%) scale(1.16); opacity: 1; }
}

/* Drifting Atmospheric Fireflies / Light Motes */
.pk-atmo-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.pk-mote {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 236, 179, 0.72);
  box-shadow: 0 0 8px rgba(255, 236, 179, 0.85);
  animation: moteFloat 7s ease-in-out infinite;
}
.pk-mote-1 { left: 22%; top: 72%; animation-delay: 0s; animation-duration: 6.4s; }
.pk-mote-2 { left: 48%; top: 58%; animation-delay: 1.5s; animation-duration: 7.8s; width: 4px; height: 4px; }
.pk-mote-3 { left: 69%; top: 44%; animation-delay: 3.1s; animation-duration: 6.9s; }
.pk-mote-4 { left: 84%; top: 28%; animation-delay: 0.8s; animation-duration: 8.2s; width: 4px; height: 4px; }
@keyframes moteFloat {
  0%, 100% { transform: translate(0, 0) scale(0.75); opacity: 0.22; }
  50% { transform: translate(12px, -22px) scale(1.15); opacity: 0.88; }
}

/* Glowing SVG Ascent Route Overlay */
.pk-trail-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.pk-trail-base {
  stroke: rgba(255, 244, 214, 0.36);
  stroke-width: 0.65;
  stroke-dasharray: 1.3 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.pk-trail-lit {
  stroke: rgba(255, 214, 112, 0.96);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(255, 214, 112, 0.85));
  transition: stroke-dashoffset 0.72s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  vector-effect: non-scaling-stroke;
}
.pk-trail-dot {
  fill: rgba(255, 244, 214, 0.45);
  transition: fill 0.35s ease, r 0.35s ease;
}
.pk-trail-dot.is-reached {
  fill: #ffffff;
}

/* Frameless Top-Left Editorial Altitude Readout */
.pk-altitude-readout {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 4;
  pointer-events: none;
  color: #ffffff;
}
.pk-altitude-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.pk-altitude-num {
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
  margin: 2px 0 4px;
}
.pk-altitude-num strong {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
}
.pk-altitude-unit {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 214, 112, 0.96);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
.pk-altitude-sub {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.58);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Perspective-Scaled HD Cute Red Panda Climber along Waypoints */
.pk-panda-wrap {
  position: absolute;
  left: var(--px, 28%);
  top: var(--py, 91%);
  transform: translate(-50%, -86%) scale(var(--ps, 1));
  width: 74px;
  height: 74px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition:
    left 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: left, top, transform;
}
.pk-climber-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 150, 0.42) 0%, transparent 68%);
  z-index: 0;
  pointer-events: none;
}
.pk-panda-shadow {
  position: absolute;
  bottom: 4px;
  width: 38px;
  height: 10px;
  border-radius: 50%;
  background: rgba(16, 26, 21, 0.48);
  filter: blur(3px);
  z-index: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.pk-panda-sprite {
  width: 72px;
  height: 72px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 7px rgba(16, 26, 21, 0.48));
  transform-origin: center bottom;
  animation: pandaIdle 2.3s ease-in-out infinite;
  will-change: transform;
}
@keyframes pandaIdle {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  50% { transform: translateY(-2.5px) scale(0.98, 1.03); }
}

.pk-stage-wrap.is-climbing .pk-panda-sprite {
  animation: pandaClimb 0.68s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pk-stage-wrap.is-climbing .pk-panda-shadow {
  transform: scale(0.72);
  opacity: 0.2;
}
@keyframes pandaClimb {
  0% { transform: translateY(3px) scale(1.09, 0.9); }
  38% { transform: translateY(-18px) rotate(-6deg) scale(0.95, 1.07); }
  74% { transform: translateY(2px) rotate(3deg) scale(1.04, 0.96); }
  100% { transform: translateY(0) rotate(0deg) scale(1, 1); }
}

/* Soft Sparkle / Chalk Puff Particles */
.pk-chalk-puff {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 248, 224, 0.92);
  opacity: 0;
  z-index: 1;
}
.pk-chalk-1 { width: 12px; height: 12px; left: 8px; bottom: 8px; }
.pk-chalk-2 { width: 9px; height: 9px; right: 8px; bottom: 12px; }
.pk-stage-wrap.is-climbing .pk-chalk-puff {
  animation: chalkPuff 0.62s ease-out forwards;
}
@keyframes chalkPuff {
  0% { opacity: 0.95; transform: scale(0.4) translateY(0); }
  65% { opacity: 0.6; transform: scale(1.5) translateY(-8px); }
  100% { opacity: 0; transform: scale(2.0) translateY(-14px); }
}

/* Floating +250m Gain Label */
.pk-gain-float {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(27, 40, 34, 0.88);
  color: rgba(255, 214, 112, 0.98);
  border: 1px solid rgba(255, 214, 112, 0.55);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  z-index: 4;
  white-space: nowrap;
}
.pk-stage-wrap.is-climbing .pk-gain-float {
  animation: gainRise 0.92s ease-out forwards;
}
@keyframes gainRise {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(0.85); }
  22% { opacity: 1; transform: translate(-50%, 0) scale(1.06); }
  100% { opacity: 0; transform: translate(-50%, -26px) scale(0.95); }
}

/* Tumble Animation */
.pk-stage-wrap.is-tumbled .pk-panda-wrap {
  transition:
    left 0.85s cubic-bezier(0.55, 0.05, 0.68, 0.53),
    top 0.85s cubic-bezier(0.55, 0.05, 0.68, 0.53),
    transform 0.85s ease;
}
.pk-stage-wrap.is-tumbled .pk-panda-sprite {
  animation: pandaFall 0.92s cubic-bezier(0.55, 0.05, 0.68, 0.53) forwards;
}
@keyframes pandaFall {
  0% { transform: rotate(0deg); }
  30% { transform: rotate(-22deg); }
  65% { transform: rotate(18deg); }
  85% { transform: rotate(-10deg); }
  100% { transform: rotate(8deg); }
}
.pk-fall-flash {
  position: absolute;
  inset: 0;
  background: var(--danger);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}
.pk-stage-wrap.is-tumbled .pk-fall-flash {
  animation: fallFlash 0.72s ease-out forwards;
}
@keyframes fallFlash {
  0% { opacity: 0.34; }
  100% { opacity: 0; }
}

/* Summit Celebration Bounce */
.pk-stage-wrap.is-summited .pk-panda-sprite {
  animation: pandaCelebrate 0.9s ease-in-out infinite;
}
@keyframes pandaCelebrate {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  45% { transform: translateY(-12px) rotate(-5deg) scale(1.06); }
  75% { transform: translateY(-3px) rotate(5deg) scale(1.02); }
}

/* Result Banner Halo & Full Ranked List */
.pk-result-banner {
  position: relative;
  overflow: hidden;
}
.pk-result-halo {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: conic-gradient(from 0deg, rgba(217, 164, 65, 0.16) 0deg 30deg, transparent 30deg 60deg, rgba(217, 164, 65, 0.16) 60deg 90deg, transparent 90deg 120deg, rgba(217, 164, 65, 0.16) 120deg 150deg, transparent 150deg 180deg, rgba(217, 164, 65, 0.16) 180deg 210deg, transparent 210deg 240deg, rgba(217, 164, 65, 0.16) 240deg 270deg, transparent 270deg 300deg, rgba(217, 164, 65, 0.16) 300deg 330deg, transparent 330deg 360deg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: haloSpin 18s linear infinite;
}
.pk-result-banner > *:not(.pk-result-halo) {
  position: relative;
  z-index: 1;
}
@keyframes haloSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pk-full-list-wrap {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 13px;
}
.pk-full-list-wrap summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
}
.pk-full-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pk-full-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--bg);
  font-size: 12px;
}
.pk-full-list li.is-climbed {
  background: rgba(45, 95, 71, 0.16);
  border: 1px solid var(--primary);
  font-weight: 600;
}
.pk-full-list li.is-tumbled {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  font-weight: 600;
}

@media (max-width: 820px) {
  .pk-app { max-width: 568px; padding: 6px 4px 16px; }
  .pk-theater {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "hud"
      "stage"
      "play";
  }
  .pk-ladder-wrap { max-height: none; overflow: visible; }
}

@media (max-width: 560px) {
  .pk-topbar { flex-wrap: wrap; }
  .pk-select { max-width: 150px; }
  .pk-input-wrap { flex-direction: column; }
  .pk-btn-row { width: 100%; }
  .pk-scout-btn, .pk-submit { flex: 1; }
  .pk-altitude-readout { top: 12px; left: 14px; }
  .pk-altitude-num strong { font-size: 34px; }
  .pk-panda-wrap { width: 54px; height: 54px; }
  .pk-panda-sprite { width: 52px; height: 52px; }
}



/* ——— 2026-11-22 design review fixes ——— */
.cover-scrim {
  border: 0;
  box-shadow: none;
  background: rgba(20, 34, 24, 0.58);
}
.cover-caption { color: var(--bg); }

/* 首屏只留一个主按钮：全屏改成次要按钮 */
.action-bar .btn-primary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
}
.action-bar .btn-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* 长文区增加阅读停顿 */
.split-text p { margin: 0 0 20px; }
.split-text p:last-child { margin-bottom: 0; }
.split-feature { align-items: start; }
.split-media img { border-radius: var(--radius); }

/* 卡片：拉开层次、标题不再满屏绿色 */
.cat-card { padding: 24px; }
.cat-group { display: inline-block; margin-bottom: 8px; }
.cat-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.cat-card h3 a { color: var(--ink); }
.cat-card h3 a:hover { color: var(--primary); text-decoration: none; }
.cat-card p { margin: 0 0 16px; color: var(--muted); }
.cat-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

@media (max-width: 720px) {
  .site-header { position: static; }
  .header-inner { flex-wrap: wrap; min-height: 0; padding: 10px 0; gap: 6px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand .brand-mark svg, .brand .brand-mark img { width: 26px; height: 26px; }
  .site-nav {
    width: 100%;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 0 6px;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-link { white-space: nowrap; font-size: 13px; }

  .hero-stage-band { padding-top: 14px; }
  .hero-title-group h1 { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .hero-badges { display: none; }

  .cover img { filter: blur(3px) brightness(0.82); transform: scale(1.05); }
  .cover-scrim {
    background: rgba(20, 34, 24, 0.8);
    padding: 18px 16px;
    max-width: 92%;
  }
  .cover-demo-climb { font-size: 12px; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .btn-play { width: 100%; font-size: 16px; min-height: 48px; }
  .cover-caption { font-size: 12px; }

  .cat-card { padding: 20px; }
  .section { padding: 40px 0; }
  .section h2 { font-size: 24px; }
}



/* ——— 2026-11-22 design review round 3 ——— */

/* 首屏：演示阶梯降低重量，主按钮成为唯一焦点 */
.demo-rung { font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.demo-rung em { font-weight: 500; }
.demo-arrow { color: rgba(255, 255, 255, 0.4); }
.btn-play {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  margin-top: 24px;
}

/* 操作条：Like / Share / 全屏都退成轻量按钮 */
.action-bar { margin-top: 16px; gap: 12px; flex-wrap: wrap; }
.action-group .btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: none;
}

/* 卡片网格：统一间距，避免右侧被切 */
.cat-grid {
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* What Is 长文：两栏等宽，行距放松 */
.split-feature {
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.split-text p { line-height: 1.8; }
.split-media img { width: 100%; }

@media (max-width: 720px) {
  /* 导航：去掉两个次要入口，剩下的能一行放下，仍可横向滑动 */
  .site-nav a:nth-of-type(2),
  .site-nav a:nth-of-type(4) { display: none; }
  .site-nav { gap: 18px; }

  .stage { min-height: 480px; }
  .cover img { filter: blur(3px) brightness(0.78); }
  .cover-scrim {
    background: rgba(10, 20, 15, 0.86);
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 18px;
  }
  .btn-play { width: auto; min-width: 240px; margin-top: 4px; }
  .cover-demo-climb { justify-content: center; }

  .cat-grid { grid-template-columns: 1fr; gap: 16px; }
  .split-feature { grid-template-columns: 1fr; gap: 20px; }
  .split-media { order: -1; }
}



/* ——— 2026-11-22 inner page review ——— */
.page-head { padding: 32px 0 20px; }
.page-head h1 { margin: 0 0 12px; }
.page-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 68ch;
  margin: 0;
}

/* 正文用无衬线，标题留衬线 */
.prose { font-family: var(--font-sans); padding-top: 12px; }
.prose p, .prose li { font-size: 17px; line-height: 1.8; }
.prose p { margin: 0 0 18px; }
.prose h2 {
  font-family: var(--font-display);
  margin: 2em 0 0.8em;
  line-height: 1.25;
}
.prose h2:first-child { margin-top: 0.4em; }
.prose h3 { margin: 1.6em 0 0.6em; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 600; }

.page-wrap > .prose.section { padding-bottom: 24px; }
.page-cta-box { margin: 28px 0 56px; }

/* FAQ 折叠面板：展开后有独立模块感 */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px 16px 2px;
  margin: 0 0 10px;
}
details[open] { background: var(--bg); box-shadow: var(--shadow-sm); }
summary {
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
  list-style-position: inside;
}

@media (max-width: 720px) {
  .page-head { padding: 18px 0 12px; }
  .page-head h1 { font-size: 28px; }
  .page-lead { font-size: 16px; line-height: 1.5; }
  .prose p, .prose li { font-size: 16px; }
  .prose h2 { margin-top: 1.6em; }
  .page-cta-box .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
  }
}



/* ——— 2026-11-22 inner page round 3 ——— */

/* 正文、FAQ 答案统一无衬线（提高特异性，盖过原有规则） */
.page-wrap .prose,
.page-wrap .prose p,
.page-wrap .prose li,
.page-wrap .prose td,
.faq-a { font-family: var(--font-sans); }
.page-wrap .prose h2,
.page-wrap .prose h3 { font-family: var(--font-display); }
.faq-a { font-size: 16px; line-height: 1.7; color: var(--muted); }
.faq-item { min-height: 56px; }
.faq-item + .faq-item { margin-top: 8px; }

/* 首屏标题与副标题层级 */
.page-head h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.25;
  text-wrap: balance;
}
.page-lead { margin-top: 16px; }

/* 页头下方立刻给一个可点的玩入口 */
.page-cta-top { margin: 8px 0 28px; }
.page-cta-top .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .container { padding-inline: 16px; }
  .site-nav { gap: 10px; overflow-x: auto; flex-wrap: nowrap; }
  .nav-link { font-size: 12.5px; padding: 8px 2px; }

  .page-head { padding-top: 16px; }
  .page-head h1 { font-size: 26px; }
  .page-lead { margin-top: 12px; }

  .page-cta-top { margin: 4px 0 22px; }
  .page-cta-top .btn-primary { width: 100%; }
}



/* ——— 2026-11-22 homepage polish ——— */
.nav-link { font-weight: 600; }
.nav-link:hover { text-decoration: none; box-shadow: inset 0 -2px 0 var(--primary); }

/* 首屏遮罩里的次级按钮：白描边，不抢主按钮 */
.cover .btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  box-shadow: none;
}
.cover .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
}
.cover-caption { font-size: 15px; }

/* 右侧配图加浅色框，压住深色重量 */
.split-media img {
  border: 4px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
}
.split-text p { font-size: 16px; line-height: 1.75; }

/* 卡片网格：三列起步，信息密度更均匀 */
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

@media (max-width: 720px) {
  .stage { min-height: 440px; }
  .cover-scrim { gap: 8px; padding: 20px 16px; }
  .cover-caption { font-size: 14px; margin-bottom: 0; }
  .btn-play { margin-top: 0; }
  .site-nav { padding: 2px 0 8px; }
  .cat-grid { grid-template-columns: 1fr; }
}

/* ——— Live Daily Hints Widget (/peakle-today-hints) ——— */
.hints-widget { margin: 8px 0 36px; }
.hints-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.hints-head h2 { margin: 4px 0 8px; }
.hints-head .section-lead { margin-bottom: 18px; }
.hints-spoilers { display: flex; flex-direction: column; gap: 10px; }
.hints-list {
  margin: 4px 0 14px;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}
.hints-list li { margin-bottom: 4px; }
.hints-summit {
  margin: 4px 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}
.hints-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
@media (max-width: 720px) {
  .hints-card { padding: 20px; }
  .hints-actions { flex-direction: column; align-items: stretch; }
  .hints-actions .btn { width: 100%; }
}
