/* V5 shared brand. Load after the existing page styles and before home-v5.css.
   Presentation only: keep native hidden/details/dialog states and JS hooks intact. */
:root {
  --pw-ink: #172a35;
  --pw-muted: #657178;
  --pw-blue: #146b64;
  --pw-brand: #146b64;
  --pw-brand-hover: #0e514c;
  --pw-paper: #f6f5f1;
  --pw-surface: #fff;
  --pw-soft: #eeefe9;
  --pw-line: #d9ded8;
  --pw-gold: #ddba75;
  --pw-footer: #112e32;
  --pw-radius: 12px;
  color-scheme: light;
}

.pw-site { color: var(--pw-ink); background: var(--pw-paper); }
.pw-site ::selection { background: #cce2d9; color: var(--pw-ink); }
.pw-site :is(h1, h2, h3, h4) { letter-spacing: -.035em; }
.pw-site .pw-kicker { color: var(--pw-brand); font-size: 12px; letter-spacing: .11em; }
.pw-site :is(a, button, input, select, textarea, summary):focus-visible,
.pw-site :is(.sc-page, .bp-page) :focus-visible {
  outline: 3px solid var(--pw-brand);
  outline-offset: 4px;
}
.pw-site .pw-skip { color: var(--pw-ink); background: var(--pw-surface); }

/* Shared controls retain their existing link/button behavior. */
.pw-site .pw-button,
.pw-site .pw-editorial .pw-editorial-actions .pw-button {
  min-height: 48px;
  padding: 12px 23px;
  border: 1px solid #b7cbc1;
  border-radius: 11px;
  background: transparent;
  color: var(--pw-brand);
  font-size: 15px;
  font-weight: 550;
  line-height: 1.45;
  gap: 12px;
}
.pw-site .pw-button:hover { background: #e6eee7; border-color: var(--pw-brand); }
.pw-site .pw-button--primary,
.pw-site .pw-editorial .pw-editorial-actions .pw-button--primary {
  background: var(--pw-brand);
  border-color: var(--pw-brand);
  color: #fff;
}
.pw-site .pw-button--primary:hover,
.pw-site .pw-editorial .pw-editorial-actions .pw-button--primary:hover {
  background: var(--pw-brand-hover);
  border-color: var(--pw-brand-hover);
  color: #fff;
}
.pw-site .pw-button--dark { background: var(--pw-ink); border-color: var(--pw-ink); color: #fff; }
.pw-site .pw-button--dark:hover { background: #243e49; border-color: #243e49; color: #fff; }
.pw-site .pw-button--white { background: #fff; border-color: #fff; color: var(--pw-ink); }
.pw-site .pw-button--white:hover { background: var(--pw-paper); border-color: var(--pw-paper); color: var(--pw-ink); }
.pw-site :is(.pw-link, .sc-link, .bp-link, .sc-contact-value a) { color: var(--pw-brand); }
.pw-site :is(.pw-link, .sc-link, .bp-link, .sc-contact-value a):hover { color: var(--pw-brand-hover); }

/* The same light navigation appears on the homepage and all inner pages. */
.pw-site .pw-header {
  position: sticky;
  inset: 0 0 auto;
  color: var(--pw-ink);
  background: rgba(246, 245, 241, .94);
  border-bottom: 1px solid #172a3512;
  -webkit-backdrop-filter: saturate(125%) blur(20px);
  backdrop-filter: saturate(125%) blur(20px);
}
.pw-site .pw-header-inner { height: 72px; gap: 28px; }
.pw-site .pw-brand { gap: 11px; color: var(--pw-ink); }
.pw-site .pw-brand img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
}
.pw-site .pw-brand > span { font-size: 17px; letter-spacing: -.025em; font-weight: 650; }
.pw-site .pw-brand small { color: var(--pw-muted); font-size: 11px; letter-spacing: .06em; }
.pw-site .pw-desktop-nav { gap: 23px; }
.pw-site .pw-desktop-nav a { font-size: 13px; color: #42565e; }
.pw-site .pw-desktop-nav a:hover,
.pw-site .pw-desktop-nav a[aria-current] { color: var(--pw-brand); }
.pw-site .pw-header-actions { gap: 20px; }
.pw-site .pw-account-link { font-size: 13px; color: #42565e; }
.pw-site .pw-account-link span { color: var(--pw-brand); }
.pw-site .pw-nav-download {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--pw-brand);
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  transition: background .2s;
}
.pw-site .pw-nav-download:hover { background: var(--pw-brand-hover); }
.pw-site .pw-menu-toggle { width: 42px; height: 42px; }
.pw-site .pw-menu-toggle span { left: 10px; right: 10px; top: 17px; background: var(--pw-ink); }
.pw-site .pw-menu-toggle span + span { top: 25px; }
.pw-site .pw-mobile-nav { background: var(--pw-paper); border-color: var(--pw-line); }
.pw-site .pw-mobile-nav a { color: var(--pw-ink); font-size: 19px; border-color: var(--pw-line); }
.pw-site .pw-mobile-nav a span { color: var(--pw-brand); }

.pw-site .pw-footer { padding-top: 66px; color: #c1d0cc; background: var(--pw-footer); }
.pw-site .pw-footer .pw-brand { color: #f4f6ee; }
.pw-site .pw-footer .pw-brand img { width: 38px; height: 38px; border-radius: 10px; }
.pw-site .pw-footer .pw-brand small { color: #b5c9c2; }
.pw-site .pw-footer-top { border-color: #ffffff24; }
.pw-site .pw-footer-top p { color: #c1d0cc; font-size: 14px; }
.pw-site .pw-footer-links h2 { color: #f1f4ee; font-size: 14px; }
.pw-site .pw-footer-links > div > a:not(.pw-button) { color: #c1d0cc; font-size: 14px; line-height: 2.6; }
.pw-site .pw-footer-links > div > a:not(.pw-button):hover { color: #fff; }
.pw-site .pw-footer-links .pw-footer-download h2 { font-size: 23px; color: #f1f4ee; }
.pw-site .pw-footer .pw-button {
  min-height: 46px;
  border-color: #d5e4dc;
  background: #d5e4dc;
  color: #133c37;
  font-size: 14px;
}
.pw-site .pw-footer .pw-button:hover { border-color: #e9f1e9; background: #e9f1e9; color: #133c37; }
.pw-site .pw-footer-bottom { border-color: #ffffff24; color: #b5c9c2; font-size: 12px; }
.pw-site .pw-footer a:focus-visible { outline-color: var(--pw-gold); }

/* Four existing inner-page families share the same surfaces and heading scale. */
.pw-site :is(.sc-page, .bp-page, .pw-editorial, .pw-game-introduction) {
  background: var(--pw-paper);
  color: var(--pw-ink);
}
.pw-site :is(.sc-page, .bp-page, .pw-editorial, .pw-game-introduction) h1 {
  color: var(--pw-ink);
  font-size: clamp(46px, 5.4vw, 72px);
  letter-spacing: -.04em;
  line-height: 1.18;
}
.pw-site :is(.sc-page, .bp-page, .pw-editorial, .pw-game-introduction) :is(h2, h3, h4) { color: var(--pw-ink); }
.pw-site .pw-intro,
.pw-site .sc-page .pw-intro.sc-intro,
.pw-site .bp-hero,
.pw-site .pw-game-introduction .pw-game-hero {
  background: var(--pw-paper);
}
.pw-site .pw-editorial .pw-intro { border-bottom: 1px solid var(--pw-line); }
.pw-site :is(.bp-calculator-section, .bp-rewards-section, .bp-closing) { background: var(--pw-soft); }
.pw-site .pw-game-introduction .pw-game-gallery { background: var(--pw-soft); }
.pw-site .sc-primary-download {
  background: var(--pw-surface);
  border: 1px solid var(--pw-line);
  border-radius: 16px;
}
.pw-site .sc-app-icon { border-radius: 28px; box-shadow: 0 12px 30px #172a3510; }
.pw-site .bp-calculator { background: var(--pw-surface); border-color: var(--pw-line); border-radius: 16px; }
.pw-site .pw-editorial img { background: var(--pw-soft); }
.pw-site .pw-game-introduction .pw-game-portrait > a { border-radius: 12px; background: #17343b; }
.pw-site .pw-game-introduction .pw-game-image-expand { color: var(--pw-ink); background: var(--pw-paper); }

/* Replace hard-coded gray/blue values in the established templates. */
.pw-site .sc-page :is(
  .sc-intro-copy, .sc-label, .sc-primary-note, .sc-platforms, .sc-row-number,
  .sc-download-row > p, .sc-registration-copy > p, .sc-invitation-note p,
  .sc-contact-label, .sc-contact-note, .sc-contact-row p, .sc-contact-prefix,
  .sc-help-intro, .sc-help-content > p, .sc-feedback-format dd, .sc-expand
) { color: var(--pw-muted); }
.pw-site .sc-page :is(.sc-contact-value, .sc-feedback-format dt) { color: var(--pw-ink); }
.pw-site .bp-page :is(
  .bp-hero-lead, .bp-hero-figure > p:last-child, .bp-section-head > p:not(.pw-kicker),
  .bp-index, .bp-plan > p, .bp-rule-list, .bp-calc-inputs label,
  .bp-amount-field > span, .bp-calc-results span, .bp-calc-note,
  .bp-process-list li > span, .bp-process-list li > p,
  .bp-closing-inner p:not(.pw-kicker), .bp-flow-number, .bp-flow-list p,
  .bp-rewards-table thead th, .bp-rewards-table tbody th, .bp-rewards-table tbody td,
  .bp-policy-copy > p, .bp-promotion-copy > p, .bp-unpublished > span, .bp-unpublished > p
) { color: var(--pw-muted); }
.pw-site .bp-page :is(
  .bp-hero-figure > p:first-child, .bp-plan > p strong, .bp-plan .bp-example,
  .bp-reward-condition strong, .bp-rewards-table strong, .bp-promotion-copy .bp-rule-emphasis
) { color: var(--pw-ink); }
.pw-site .bp-page .bp-rule-list li::marker { color: var(--pw-brand); }
.pw-site .bp-page :is(.bp-calc-results strong, .bp-rewards-table .bp-reward-final td strong) { color: var(--pw-brand); }
.pw-site .pw-editorial :is(
  .pw-editorial-note, .pw-editorial-lead, .pw-guide-nav > p, .pw-guide-nav a span,
  .pw-chapter-heading > span, .pw-unlock-entry p, .pw-lineup-entry p,
  .pw-editorial-disclosure > p, .pw-editorial-definitions dd, .pw-code-list dd,
  .pw-growth-list p, .pw-buying-grid p, .pw-release-intro .pw-release-date,
  .pw-release-meta span, .pw-release-meta p, .pw-editorial-gallery figcaption, .pw-history-note p
) { color: var(--pw-muted); }
.pw-site .pw-editorial :is(.pw-guide-nav a, .pw-editorial-disclosure summary) { color: #42565e; }
.pw-site .pw-editorial .pw-guide-nav a:hover { color: var(--pw-brand); }
.pw-site .pw-editorial .pw-editorial-disclosure summary::after { color: var(--pw-brand); }
.pw-site .pw-editorial .pw-growth-list li::before { background: var(--pw-paper); color: var(--pw-brand); }
.pw-site .pw-editorial .pw-history-note { border-color: #99b9ac; }
.pw-site .pw-editorial :is(
  .pw-unlock-entry p, .pw-lineup-entry p, .pw-editorial-disclosure > p,
  .pw-code-list dd, .pw-buying-grid p
) { font-size: 15px; }
.pw-site .pw-editorial :is(.pw-guide-nav > p, .pw-guide-nav a span, .pw-release-meta span) { font-size: 12px; }
.pw-site .pw-editorial .pw-release-section-title .pw-kicker { font-size: 12px; }
.pw-site .pw-game-introduction :is(
  .pw-game-hero-description, .pw-game-section-lead > p:not(.pw-kicker), .pw-game-gift-list p,
  .pw-game-portrait figcaption > span:first-child, .pw-game-portrait .pw-game-portrait-note,
  .pw-game-archive-note, .pw-game-schedule-columns li
) { color: var(--pw-muted); }
.pw-site .pw-game-introduction .pw-game-archive-toggle::before,
.pw-site .pw-game-introduction .pw-game-archive-toggle::after { background: var(--pw-brand); }
.pw-site .pw-game-introduction .pw-game-portrait figcaption > span:first-child { font-size: 12px; }

.pw-site :is(
  .sc-download-row, .sc-invitation-note, .sc-support-main, .sc-contact-row,
  .sc-help-item, .sc-app-identity, .bp-hero-figure, .bp-plans-section, .bp-referral-how,
  .bp-plan + .bp-plan, .bp-plan .bp-example, .bp-calc-results,
  .bp-process-list li, .bp-activity-rules, .bp-flow-list, .bp-flow-list li,
  .bp-section-head .bp-reward-condition, .bp-rewards-table thead th,
  .bp-rewards-table tbody th, .bp-rewards-table tbody td, .bp-promotion-row, .bp-unpublished,
  .pw-guide-nav, .pw-guide-chapter, .pw-unlock-entry, .pw-editorial-disclosure,
  .pw-editorial-definitions > div, .pw-code-list, .pw-code-list > div, .pw-growth-list li,
  .pw-release-meta, .pw-release-section, .pw-game-gift-list, .pw-game-gift-list li,
  .pw-game-archive, .pw-game-schedule-columns ul, .pw-game-schedule-columns li
) { border-color: var(--pw-line); }

/* Calculator inputs remain large enough to use without mobile browser zoom. */
.pw-site .bp-amount-field input {
  background: #fff;
  color: var(--pw-ink);
  border-color: #aabbb3;
  border-radius: 10px;
  font-size: 20px;
}
.pw-site .bp-amount-field input:focus { border-color: var(--pw-brand); }
.pw-site .bp-calc-inputs label { font-size: 14px; }
.pw-site .bp-calc-note { font-size: 14px; line-height: 1.8; }
.pw-site .bp-calc-results span { font-size: 14px; }

/* Shared media chrome. Image sizing and dialog state remain owned by their components. */
.pw-site :is(.pw-modal, .pw-image-dialog) { background: #11292e; border-color: #496360; border-radius: 14px; }
.pw-site :is(.pw-modal, .pw-image-dialog)::backdrop { background: #081e24df; }
.pw-site .pw-modal-close { width: 42px; height: 42px; background: #ffffff1f; color: #fff; }
.pw-site .pw-image-dialog h2 { color: #e4eee6; font-size: 15px; line-height: 1.5; }
.pw-site .pw-video-switches button { min-height: 42px; border-radius: 9px; font-size: 14px; }
.pw-site .myth-dialog { background: var(--pw-paper); color: var(--pw-ink); border-color: var(--pw-line); border-radius: 16px; }
.pw-site .myth-dialog::backdrop { background: #081e24bd; }
.pw-site .myth-dialog-top { background: #f6f5f1f2; border-color: var(--pw-line); }
.pw-site .myth-dialog-top > span { color: var(--pw-muted); font-size: 11px; letter-spacing: .07em; }
.pw-site .myth-dialog-top [data-myth-order] { color: #42565e; }
.pw-site .myth-dialog-top > button { width: 42px; height: 42px; background: #e2e8df; color: var(--pw-ink); }
.pw-site .myth-dialog-art { background: #e8ede4; }
.pw-site .myth-dialog-halo { background: radial-gradient(circle, #f8faf3 0%, #eef3e8 45%, transparent 72%); }
.pw-site .myth-dialog-controls button { width: 42px; height: 42px; color: var(--pw-brand); border-color: #b8cbbf; background: #f8faf3; }
.pw-site .myth-dialog-controls button:hover { background: #fff; color: var(--pw-brand-hover); }
.pw-site .myth-dialog-controls span { color: var(--pw-muted); font-size: 12px; }
.pw-site .myth-detail-kicker { color: #826a36; font-size: 12px; letter-spacing: .08em; }
.pw-site .myth-dialog-copy h2 { color: var(--pw-ink); }
.pw-site .myth-dialog-copy .myth-detail-role { color: var(--pw-brand); }
.pw-site :is(.myth-detail-types, .myth-detail-description, .myth-skill p, .myth-detail-note, .myth-skills-heading > span) { color: var(--pw-muted); }
.pw-site .myth-detail-types { font-size: 14px; border-color: var(--pw-line); }
.pw-site .myth-detail-description { font-size: 15px; }
.pw-site .myth-skill p { font-size: 15px; }
.pw-site .myth-skill h3 { color: var(--pw-ink); font-size: 16px; }
.pw-site .myth-skills-heading { border-color: var(--pw-line); }
.pw-site .myth-skills-heading > span { font-size: 11px; letter-spacing: .06em; }
.pw-site .myth-skill { border-color: var(--pw-line); }
.pw-site .myth-detail-note { font-size: 12px; }
.pw-site .myth-search-field:focus-within { outline-color: var(--pw-brand); }
.pw-site .myth-search-field input { font-size: 16px; color: var(--pw-ink); }
.pw-site .myth-type-field select { min-height: 44px; font-size: 16px; color: var(--pw-ink); }

@media (max-width: 1180px) {
  .pw-site .pw-header-inner { gap: 22px; }
  .pw-site .pw-desktop-nav { gap: 17px; }
}
@media (max-width: 1000px) {
  .pw-site .pw-header-inner { height: 66px; }
}
@media (max-width: 650px) {
  .pw-site .pw-container,
  .pw-site :is(.sc-page, .bp-page) .pw-container { width: calc(100% - 40px); }
  .pw-site .pw-header-inner { width: calc(100% - 28px); height: 64px; gap: 10px; }
  .pw-site .pw-header .pw-brand { gap: 9px; }
  .pw-site .pw-brand img { width: 31px; height: 31px; border-radius: 8px; }
  .pw-site .pw-brand > span { font-size: 16px; }
  .pw-site .pw-brand small { font-size: 11px; letter-spacing: .035em; }
  .pw-site .pw-header-actions { gap: 8px; }
  .pw-site .pw-nav-download { min-height: 38px; font-size: 12px; padding: 9px 12px; }
  .pw-site .pw-mobile-nav { max-height: calc(100dvh - 64px); padding-inline: 24px; }
  .pw-site .pw-kicker { font-size: 12px; line-height: 1.6; }
  .pw-site .pw-button,
  .pw-site .pw-editorial .pw-editorial-actions .pw-button { min-height: 46px; padding: 12px 19px; font-size: 14px; gap: 9px; }
  .pw-site .pw-editorial .pw-editorial-actions { gap: 12px; }
  .pw-site .pw-footer { padding-top: 44px; }
  .pw-site .pw-footer-top p { font-size: 14px; }
  .pw-site .pw-footer-links { gap: 28px 24px; }
  .pw-site .pw-footer-links > div > a:not(.pw-button) { font-size: 14px; }
  .pw-site .pw-footer-links .pw-footer-download h2 { font-size: 22px; }
  .pw-site .pw-footer-bottom { font-size: 12px; }

  .pw-site :is(.sc-page, .bp-page, .pw-editorial, .pw-game-introduction) h1 {
    font-size: clamp(38px, 9.7vw, 48px);
    letter-spacing: -.035em;
    line-height: 1.2;
  }
  .pw-site .sc-page .pw-intro.sc-intro,
  .pw-site .bp-hero,
  .pw-site .pw-editorial .pw-intro { padding-top: 58px; padding-bottom: 46px; }
  .pw-site .pw-game-introduction .pw-game-hero-copy { padding-top: 58px; }
  .pw-site .sc-page :is(.sc-intro-copy, .sc-contact-intro),
  .pw-site .bp-hero-lead { font-size: 16px; line-height: 1.85; }
  .pw-site .sc-page :is(
    .sc-primary-note, .sc-download-row > p, .sc-invitation-note p, .sc-contact-note,
    .sc-contact-row p, .sc-help-content > p, .sc-feedback-format > div
  ) { font-size: 15px; line-height: 1.85; }
  .pw-site .sc-page :is(.sc-platforms, .sc-contact-prefix, .sc-row-number) { font-size: 12px; }
  .pw-site .sc-primary-download { padding: 30px 24px; }
  .pw-site .sc-app-icon { border-radius: 15px; }
  .pw-site .sc-page .sc-contact-row .sc-contact-value { font-size: 21px; }
  .pw-site .bp-page :is(
    .bp-plan > p:not(.bp-index), .bp-rule-list, .bp-plan .bp-example,
    .bp-process-list li > p, .bp-closing-inner p:not(.pw-kicker), .bp-flow-list p,
    .bp-policy-copy > p, .bp-promotion-copy > p, .bp-unpublished > p
  ) { font-size: 15px; line-height: 1.85; }
  .pw-site .bp-page :is(.bp-hero-figure > p:first-child, .bp-hero-figure > p:last-child) { font-size: 14px; }
  .pw-site .bp-page .bp-rewards-table :is(thead th, tbody th, tbody td) { font-size: 14px; }
  .pw-site .bp-calculator { padding: 28px 22px; border-radius: 14px; }
  .pw-site .bp-calc-results span { font-size: 13px; }
  .pw-site .bp-calc-note { font-size: 14px; }
  .pw-site .pw-editorial :is(
    .pw-editorial-note, .pw-unlock-entry p, .pw-lineup-entry p,
    .pw-editorial-disclosure > p, .pw-editorial-definitions dd, .pw-code-list dd,
    .pw-growth-list p, .pw-buying-grid p, .pw-release-meta p, .pw-history-note p
  ) { font-size: 15px; line-height: 1.85; }
  .pw-site .pw-editorial .pw-editorial-disclosure summary { font-size: 15px; }
  .pw-site .pw-editorial .pw-guide-nav a { min-height: 44px; font-size: 14px; gap: 9px; }
  .pw-site .pw-editorial :is(.pw-guide-nav > p, .pw-guide-nav a span, .pw-release-meta span, .pw-editorial-gallery figcaption) { font-size: 12px; }
  .pw-site .pw-editorial .pw-release-section-title .pw-kicker { font-size: 12px; }
  .pw-site .pw-game-introduction :is(.pw-game-gift-list p, .pw-game-schedule-columns li) { font-size: 15px; line-height: 1.85; }
  .pw-site .pw-game-introduction .pw-game-archive-note { font-size: 14px; }
  .pw-site .pw-game-introduction .pw-game-portrait figcaption > span:first-child { font-size: 12px; }
  .pw-site .pw-game-introduction .pw-game-image-expand { width: 38px; height: 38px; }
  .pw-site .myth-dialog { border-radius: 14px; }
  .pw-site .myth-dialog-top { gap: 12px; padding: 12px 14px 12px 18px; }
  .pw-site .myth-dialog-top > span { font-size: 11px; }
  .pw-site .myth-dialog-copy { padding: 26px 23px 32px; }
  .pw-site .myth-dialog-controls span { font-size: 12px; }
}
@media (max-width: 360px) {
  .pw-site .pw-header-inner { width: calc(100% - 20px); }
  .pw-site .pw-header .pw-brand { gap: 7px; }
  .pw-site .pw-header-actions { gap: 3px; }
  .pw-site .pw-nav-download { padding-inline: 10px; }
  .pw-site .pw-container,
  .pw-site :is(.sc-page, .bp-page) .pw-container { width: calc(100% - 36px); }
  .pw-site .sc-primary-download { padding: 28px 20px; }
}

.pw-header::after{background:#146b64}
