:root {
  --site-ink: #123d32;
  --site-green: #165b47;
  --site-green-dark: #0e4435;
  --site-green-soft: #dfeae4;
  --site-mist: #eef4f0;
  --site-paper: #fbfcf8;
  --site-line: rgba(18, 61, 50, .14);
  --site-coral: #c65d46;
}

[hidden] { display: none !important; }

.site-header.site-header-v72 {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  width: min(1500px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 18px 0;
  border-bottom: 5px solid var(--site-green-dark);
  background: #f7faf7;
  box-shadow: 0 8px 24px rgba(18, 61, 50, .08);
}

.folder-nav {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.folder-nav::-webkit-scrollbar { display: none; }
.folder-nav a {
  flex: 0 0 auto;
  min-width: 142px;
  min-height: 50px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px 8px 0 0;
  padding: 2px 18px 0;
  color: #46655c;
  background: #e6eee9;
  box-shadow: 0 -2px 0 rgba(18, 61, 50, .05), 0 -7px 16px rgba(18, 61, 50, .06);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transform: translateY(0);
  transform-origin: center bottom;
  transition: min-height .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s cubic-bezier(.2, .75, .25, 1.25);
}
.folder-nav a:hover, .folder-nav a:focus-visible {
  color: var(--site-green-dark);
  background: #d8e6de;
  box-shadow: 0 -4px 0 rgba(18, 61, 50, .06), 0 -12px 22px rgba(18, 61, 50, .12);
  outline: none;
  transform: translateY(-3px);
}
.folder-nav a:focus-visible { box-shadow: 0 0 0 3px rgba(22, 91, 71, .18), 0 -12px 22px rgba(18, 61, 50, .12); }
.folder-nav a:active { transform: translateY(1px) scale(.985); transition-duration: .08s; }
.folder-nav a.is-active, .folder-nav a[aria-current="page"] {
  min-height: 57px;
  color: #fff;
  background: var(--site-green);
  box-shadow: 0 -5px 0 rgba(10, 57, 43, .14), 0 -13px 24px rgba(18, 61, 50, .16);
  transform: translateY(-1px);
}

.site-header-actions-v72 { flex: 0 0 auto; padding-bottom: 10px; }
.game-section-brand {
  width: min(1460px, calc(100% - 48px));
  margin: 20px auto 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--site-ink);
}
.game-section-brand img { width: 52px; height: 52px; border-radius: 8px; }
.game-section-brand strong, .game-section-brand small { display: block; letter-spacing: 0; }
.game-section-brand strong { font-size: 17px; line-height: 1.15; }
.game-section-brand small { margin-top: 4px; color: #5e776f; font-size: 12px; }

.course-link-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: auto;
  color: var(--site-green-dark);
  font-weight: 850;
  text-decoration: none;
  border-bottom: 1px solid var(--site-green-dark);
}

body.site-page {
  min-height: 100vh;
  margin: 0;
  color: var(--site-ink);
  background: #edf3ef;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.site-page *, body.site-page *::before, body.site-page *::after { box-sizing: border-box; }
body.site-page button, body.site-page input, body.site-page select, body.site-page textarea { font: inherit; letter-spacing: 0; }

.page-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 80px;
  padding: 14px max(24px, calc((100vw - 1440px) / 2)) 0;
  border-bottom: 5px solid var(--site-green-dark);
  background: #f7faf7;
  box-shadow: 0 8px 24px rgba(18, 61, 50, .08);
}
.page-actions { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; }
.page-actions button, .page-actions a {
  min-height: 40px;
  border: 0;
  padding: 10px 12px;
  color: var(--site-green-dark);
  background: var(--site-green-soft);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.page-actions .is-active { color: #fff; background: var(--site-green); }

.page-main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 90px; }
.page-kicker { margin: 0 0 10px; color: #4b7366; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.page-title { max-width: 900px; margin: 0; font-size: 46px; line-height: 1.06; letter-spacing: 0; }
.page-lead { max-width: 760px; margin: 18px 0 0; color: #577168; font-size: 17px; line-height: 1.7; }
.page-intro { margin-bottom: 44px; }

.course-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.course-choice {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  padding: 34px;
  color: var(--site-ink);
  background: #f8faf7;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(18, 61, 50, .08);
  animation: course-float 5s ease-in-out infinite;
}
.course-choice:nth-child(2) { background: #dfeae4; animation-delay: -2.4s; }
.course-choice::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: 28px;
  width: 72px;
  height: 10px;
  background: var(--site-coral);
  opacity: .8;
}
.course-choice small { color: #5b746c; font-weight: 800; text-transform: uppercase; }
.course-choice strong { display: block; max-width: 420px; margin-top: 28px; font-size: 38px; line-height: 1.1; letter-spacing: 0; }
.course-choice span { display: block; max-width: 480px; margin-top: 18px; color: #587169; line-height: 1.7; }
.course-choice:hover, .course-choice:focus-visible { border-color: #47806d; outline: 3px solid rgba(71, 128, 109, .15); }

.booking-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.booking-summary { position: sticky; top: 110px; padding: 28px; border-left: 6px solid var(--site-green); background: #dfeae4; }
.booking-summary h2 { margin: 0 0 12px; font-size: 27px; }
.booking-summary p { color: #567068; line-height: 1.65; }
.lesson-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.lesson-tags span { padding: 7px 10px; background: #fff; color: #345c50; font-size: 12px; font-weight: 750; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-top: 24px; }
.price-line s { color: #788a84; }
.price-line strong { font-size: 30px; }
.price-line em { padding: 5px 8px; color: #fff; background: var(--site-coral); font-size: 11px; font-style: normal; font-weight: 900; }

.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 28px; background: #fbfcf8; box-shadow: 0 16px 38px rgba(18, 61, 50, .08); }
.form-field { display: grid; gap: 7px; }
.form-field.is-wide { grid-column: 1 / -1; }
.form-field label { font-size: 12px; font-weight: 850; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 49px; border: 1px solid var(--site-line); border-radius: 4px; padding: 10px 12px;
  color: var(--site-ink); background: #fff; outline: 2px solid transparent;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #4c826f; outline-color: rgba(76, 130, 111, .14); }
.booking-email-note, .booking-note, .booking-status, .booking-consent { grid-column: 1 / -1; }
.booking-email-note, .booking-note { margin: 0; color: #5c746c; font-size: 12px; line-height: 1.65; }
.field-note { color: #688078; font-size: 11px; line-height: 1.4; }
.booking-contact {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin: -2px 0 2px; border-left: 4px solid var(--site-coral); padding: 12px 14px; background: #edf3ef;
}
.booking-contact span { color: #647b73; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.booking-contact strong { color: var(--site-green-dark); font-size: 12px; }
.booking-consent { display: flex; align-items: flex-start; gap: 9px; color: #516c63; font-size: 12px; line-height: 1.5; }
.booking-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--site-green); }
.payment-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.payment-button { min-height: 54px; border: 0; border-radius: 5px; color: #fff; font-weight: 900; cursor: pointer; }
.payment-button[data-payment="paypal"] { background: #003087; }
.payment-button[data-payment="alipay"] { background: #1677ff; }
.payment-button:disabled { cursor: wait; opacity: .55; }
.booking-status { min-height: 20px; margin: 0; color: #326a58; font-size: 13px; font-weight: 750; }
.booking-status.is-error { color: #a24232; }

.recorded-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.recorded-card {
  min-height: 260px;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  padding: 26px;
  background: #dfeae4;
  animation: course-float 6s ease-in-out infinite;
}
.recorded-card:nth-child(2n) { animation-delay: -2s; }
.recorded-card:nth-child(3n) { animation-delay: -4s; }
.recorded-card small { color: #4f7769; font-size: 11px; font-weight: 900; }
.recorded-card h2 { margin: 34px 0 10px; font-size: 23px; line-height: 1.2; }
.recorded-card p { margin: 0; color: #587169; line-height: 1.6; }
.coming-label { display: inline-block; margin-top: 28px; padding: 7px 10px; color: #fff; background: var(--site-green); font-size: 11px; font-weight: 900; }

.about-story { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; margin-top: 48px; }
.about-copy { border-top: 5px solid var(--site-green); padding-top: 24px; }
.about-copy h2 { margin: 0 0 18px; font-size: 30px; }
.about-copy p { color: #536f66; font-size: 16px; line-height: 1.8; }
.about-facts-v72 { display: grid; gap: 12px; }
.about-fact { padding: 24px; background: #dfeae4; }
.about-fact strong { display: block; font-size: 34px; }
.about-fact span { display: block; margin-top: 6px; color: #526e65; }
.about-support { margin-top: 42px; padding: 30px; color: #fff; background: var(--site-green-dark); }
.about-support h2 { margin: 0; font-size: 28px; }
.about-support p { max-width: 680px; color: #d7e5de; line-height: 1.7; }
.about-support a { display: inline-flex; min-height: 46px; align-items: center; padding: 10px 16px; color: var(--site-green-dark); background: #fff; font-weight: 900; text-decoration: none; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.review-item { margin: 0; padding: 22px; color: var(--site-ink); background: #f7faf7; }
.review-item blockquote { margin: 0; line-height: 1.65; }
.review-item figcaption { margin-top: 14px; color: #5d756d; font-weight: 850; }

.account-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; }
.account-panel { border-top: 5px solid var(--site-green); padding: 26px; background: #fbfcf8; box-shadow: 0 14px 35px rgba(18, 61, 50, .07); }
.account-panel.is-wide { grid-column: 1 / -1; }
.account-panel h2 { margin: 0 0 20px; font-size: 22px; }
.account-identity { display: flex; gap: 16px; align-items: center; }
.account-avatar { width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #dfeae4; }
.account-avatar .forest-avatar, .account-avatar svg { width: 100%; height: 100%; }
.account-identity-copy { min-width: 0; flex: 1; }
.account-identity strong, .account-identity span { display: block; }
.account-identity span { margin-top: 5px; color: #61786f; font-size: 13px; }
.account-membership { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.account-membership > span { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; margin: 0; border-radius: 6px; padding: 7px 10px; background: #e4eee8; }
.account-membership .account-leaf-balance i { width: 12px; height: 18px; border-radius: 100% 0 100% 0; background: #4f8b70; transform: rotate(35deg); }
.account-membership b { color: #123d32; font-size: 14px; }
.account-membership small { color: #61786f; font-size: 11px; font-weight: 750; }
.account-membership .account-pass-expiry { background: #f7edbd; }
.account-membership .account-pass-expiry b { color: #745b12; letter-spacing: 0; }
.account-membership .account-pass-expiry span { margin: 0; color: #6d5b25; font-size: 11px; font-weight: 750; }
.account-id { margin-top: 18px; color: #687e76; font-size: 12px; word-break: break-all; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.account-game-data .stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat-item { min-height: 110px; padding: 17px; background: #e6eee9; }
.stat-item strong { display: block; font-size: 27px; overflow-wrap: anywhere; }
.stat-item span { display: block; margin-top: 8px; color: #5b736b; font-size: 12px; }
.account-form { display: grid; gap: 13px; }
.account-avatar-picker { display: grid; grid-template-columns: repeat(12, minmax(42px, 1fr)); gap: 7px; }
.account-avatar-picker button {
  aspect-ratio: 1; min-width: 0; border: 2px solid transparent; border-radius: 6px; padding: 2px; background: #e6eee9; cursor: pointer;
}
.account-avatar-picker button.is-active { border-color: var(--site-coral); background: #fff; }
.account-avatar-picker .forest-avatar, .account-avatar-picker svg { display: block; width: 100%; height: 100%; }
.account-form button, .account-logout {
  min-height: 48px; border: 0; border-radius: 4px; padding: 10px 14px; color: #fff; background: var(--site-green); font-weight: 850; cursor: pointer;
}
.account-logout { color: #8c392b; background: #f4e4df; }
.form-status { min-height: 18px; margin: 0; color: #316a58; font-size: 12px; font-weight: 750; }
.form-status.is-error { color: #a24232; }

.page-footer { padding: 28px 20px; border-top: 1px solid var(--site-line); color: #627970; background: #f7faf7; font-size: 12px; text-align: center; }

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

@media (max-width: 900px) {
  .site-header.site-header-v72, .page-header { padding-right: 10px; padding-left: 10px; }
  .folder-nav a { min-width: 124px; padding-right: 12px; padding-left: 12px; }
  .booking-layout, .about-story, .account-grid { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
  .recorded-grid { grid-template-columns: repeat(2, 1fr); }
  .account-panel.is-wide { grid-column: auto; }
  .account-game-data .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header.site-header-v72, .page-header { align-items: stretch; flex-direction: column-reverse; gap: 5px; height: auto; min-height: 0; padding-top: max(7px, env(safe-area-inset-top)); }
  .site-header-actions-v72, .page-actions { align-self: auto; display: flex; justify-content: flex-end; min-height: 34px; padding: 0 2px; }
  .site-header-actions-v72 .language-toggle { grid-template-columns: repeat(2, 32px); background: #f7faf7; box-shadow: 0 4px 12px rgba(18, 61, 50, .08); }
  .site-header-actions-v72 .language-toggle button { width: 32px; height: 30px; }
  .folder-nav { width: 100%; gap: 3px; overflow-x: visible; }
  .folder-nav a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    padding: 2px 4px 0;
    font-size: 11px;
    line-height: 1.12;
  }
  .folder-nav a.is-active, .folder-nav a[aria-current="page"] { min-height: 53px; }
  .game-section-brand { width: calc(100% - 24px); margin-top: 14px; }
  .game-section-brand img { width: 44px; height: 44px; }
  .game-section-brand strong { font-size: 14px; }
  .page-main { width: min(100% - 24px, 1240px); padding: 42px 0 64px; }
  .page-title { font-size: 34px; }
  .page-lead { font-size: 15px; }
  .course-choice-grid, .recorded-grid, .review-grid, .booking-form, .stats-grid { grid-template-columns: 1fr; }
  .account-game-data .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-choice { min-height: 250px; padding: 25px; }
  .course-choice strong { font-size: 30px; }
  .form-field.is-wide, .booking-email-note, .booking-note, .booking-contact, .booking-status, .booking-consent, .payment-actions { grid-column: auto; }
  .payment-actions { grid-template-columns: 1fr; }
  .booking-form { padding: 20px 16px; }
  .account-avatar-picker { grid-template-columns: repeat(6, minmax(40px, 1fr)); }
  .recorded-card { min-height: 220px; }
  .about-support { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .course-choice, .recorded-card { animation: none; }
  .folder-nav a { transition: none; }
  .folder-nav a:hover, .folder-nav a:focus-visible, .folder-nav a:active { transform: none; }
}
