/* =========================================================
   PLAYERZONE — standalone page shell (policies, payment status)
   Reuses the tokens and base styles from app.css.
   ========================================================= */

.page-head {
  position: sticky; top: 0; z-index: 60;
  height: 72px;
  background: color-mix(in srgb, var(--canvas) 84%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}
.page-head-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.page-head .brand { display: flex; align-items: center; flex: none; }
.page-head .brand-logo {
  height: 40px; width: auto;
  filter: drop-shadow(0 3px 8px rgb(15 23 42 / .16));
}
.page-head-actions { display: flex; align-items: center; gap: .5rem; }
.back-link {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 42px; padding: 0 .85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-size: .85rem; font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: color .18s, border-color .18s, background-color .18s;
}
.back-link:hover { color: var(--ink); border-color: var(--border-strong); background: var(--surface-2); }
.back-link .ico { width: 15px; height: 15px; }
@media (min-width: 900px) {
  .page-head { height: 80px; }
  .page-head .brand-logo { height: 48px; }
}

.page-main { padding-block: clamp(1.8rem, 5vw, 3rem) clamp(2.6rem, 6vw, 4.5rem); }
.page-wrap { max-width: 860px; }

.crumbs {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600; color: var(--ink-3);
  margin-bottom: 1rem;
}
.crumbs a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.crumbs a:hover { color: var(--primary); }
.crumbs span[aria-current] { color: var(--ink); }

.page-title {
  font-size: clamp(1.85rem, 4.6vw, 2.6rem);
  letter-spacing: -.025em;
  line-height: 1.08;
}
.page-lede {
  margin-top: .7rem;
  font-size: 1rem; color: var(--ink-2);
  max-width: 44rem;
}
.page-updated {
  margin-top: .9rem;
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  color: var(--ink-3);
  padding: .28rem .55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.page-updated .ico { width: 12px; height: 12px; }

.prose {
  margin-top: 1.8rem;
  color: var(--ink-2);
  font-size: .94rem;
  line-height: 1.7;
}
.prose > * + * { margin-top: .9rem; }
.prose h2 {
  margin-top: 2rem;
  font-size: 1.22rem;
  color: var(--ink);
  letter-spacing: -.015em;
  scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3rem; font-size: 1rem; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.15rem; display: grid; gap: .35rem; }
.prose li::marker { color: var(--primary); }
.prose strong { color: var(--ink); }
.prose a { color: var(--primary-ink); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--primary); }
.prose .mono { font-size: .9em; color: var(--ink); }

.callout {
  margin-top: 1.4rem;
  padding: .95rem 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--accent-ink);
  font-size: .88rem;
  line-height: 1.6;
}
.callout strong { color: inherit; }
.callout a { color: inherit; font-weight: 700; }

.biz-card {
  margin-top: 1.6rem;
  padding: 1.05rem 1.1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.biz-card h2 { margin-top: 0; font-size: 1rem; }
.biz-card dl { display: grid; gap: .45rem; margin-top: .6rem; }
.biz-card dt {
  font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}
.biz-card dd { font-size: .88rem; color: var(--ink); font-weight: 600; }
@media (min-width: 620px) {
  .biz-card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.4rem; }
}

/* ---------- Status pages ---------- */
.status-wrap { max-width: 620px; margin-inline: auto; text-align: center; }
.status-card {
  padding: clamp(1.6rem, 5vw, 2.6rem);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.status-ico {
  display: grid; place-items: center;
  width: 62px; height: 62px; border-radius: 18px;
  margin: 0 auto 1.1rem;
  color: #fff;
  background: linear-gradient(160deg, #04835E, #047857);
  box-shadow: 0 14px 30px -14px rgb(16 185 129 / .85);
}
.status-ico .ico { width: 30px; height: 30px; stroke-width: 2.4; }
.status-card.is-failed .status-ico {
  background: linear-gradient(160deg, #FB923C, #EA580C);
  box-shadow: 0 14px 30px -14px rgb(234 88 12 / .85);
  color: var(--on-accent);
}
.status-card h1 { font-size: clamp(1.6rem, 4.5vw, 2.15rem); letter-spacing: -.02em; }
.status-card p { margin-top: .6rem; color: var(--ink-2); font-size: .95rem; }
.status-ref {
  margin-top: 1.1rem;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .7rem;
  border-radius: 8px;
  background: var(--surface-3);
  border: 1px dashed var(--border-strong);
  font-family: var(--font-mono); font-size: .78rem;
  color: var(--ink-2);
}
.status-actions {
  margin-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center;
}
.status-actions .btn { min-height: 48px; }
.status-help {
  margin-top: 1.5rem; padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--ink-3);
}
.status-help a { color: var(--primary-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Page footer ---------- */
.page-foot {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 2rem 1.4rem;
  font-size: .82rem;
  color: var(--ink-3);
}
.page-foot-inner {
  display: grid; gap: 1.4rem;
}
.page-foot h2 {
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: .5rem;
}
.page-foot p { line-height: 1.6; }
.page-foot a { color: var(--ink-2); }
.page-foot a:hover { color: var(--primary); }
.page-foot-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.page-foot-brand { max-width: 26rem; }
.page-foot-brand strong { color: var(--ink); }
.page-foot-bottom {
  margin-top: 1.4rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: .5rem 1.2rem;
  justify-content: space-between;
  font-size: .74rem;
}
@media (min-width: 760px) {
  .page-foot-inner { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* ---------- 360–390px polish ---------- */
@media (max-width: 400px) {
  .page-head .brand-logo { height: 34px; }
  .back-link { padding: 0 .65rem; font-size: .8rem; }
  .status-actions .btn { width: 100%; }
  .page-foot-bottom { flex-direction: column; }
}
