/* support.css — A Better Looking 2048 support/privacy pages.
   Follows the Game Pac site (game-pac.com) visual language: same palette tokens
   and system font stacks. The header panel wears the app's Circuit theme;
   the page body follows the app's Modern (system light/dark) look. */

:root {
  color-scheme: light dark;
  --page: #f7f6fb;
  --surface: #ffffff;
  --surface-soft: #eef2f8;
  --ink: #152033;
  --muted: #59677b;
  --line: rgba(21, 32, 51, 0.14);
  --brand: #0057c8;
  --brand-hover: #00439b;
  --focus: #0057c8;
  --circuit-top: #102a23;
  --circuit-bottom: #06110e;
  --circuit-panel: #12352c;
  --circuit-stroke: #4f806c;
  --circuit-gold: #e0b84f;
  --circuit-mint: #7be0b1;
  --circuit-ink: #eff4e8;
  --circuit-muted: #afcbbe;
  --radius: 22px;
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #080d18;
    --surface: #111827;
    --surface-soft: #182238;
    --ink: #f7f8fc;
    --muted: #b8c2d4;
    --line: rgba(225, 235, 247, 0.16);
    --brand: #78b7ff;
    --brand-hover: #a1ceff;
    --focus: #78b7ff;
  }
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--brand-hover);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 10px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  border-radius: 10px;
  color: #ffffff;
  background: #0057c8;
  font-weight: 800;
  transform: translateY(-170%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(calc(100% - 40px), 42rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 22%;
  box-shadow: 0 6px 16px rgba(21, 32, 51, 0.18);
}

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

.site-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.site-header nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--surface-soft);
}

main {
  padding: 28px 0 8px;
}

.hero-panel {
  margin-bottom: 34px;
  padding: clamp(26px, 6vw, 40px);
  border: 1px solid var(--circuit-stroke);
  border-radius: var(--radius);
  color: var(--circuit-ink);
  background:
    radial-gradient(circle at 88% 12%, rgba(224, 184, 79, 0.16), transparent 55%),
    linear-gradient(160deg, var(--circuit-top), var(--circuit-bottom));
  box-shadow: 0 18px 46px rgba(8, 13, 24, 0.22);
}

.hero-panel img {
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
  border-radius: 22%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--circuit-gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.hero-panel h1 {
  margin-bottom: 10px;
  color: var(--circuit-ink);
  font-size: clamp(30px, 7vw, 40px);
  text-wrap: balance;
}

.hero-panel .lede {
  margin-bottom: 0;
  color: var(--circuit-muted);
  font-size: 18px;
}

h2 {
  margin-bottom: 10px;
  font-size: 23px;
}

section {
  margin-bottom: 30px;
}

.muted {
  color: var(--muted);
}

.notice {
  padding: 14px 16px;
  border: 1px dashed var(--circuit-gold);
  border-radius: 14px;
  color: var(--ink);
  background: var(--surface-soft);
}

.notice strong {
  color: var(--brand);
}

.panel {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

ul {
  padding-left: 1.3em;
}

li {
  margin-bottom: 8px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #ffffff;
  background: var(--brand);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  color: #ffffff;
  background: var(--brand-hover);
}

@media (prefers-color-scheme: dark) {
  .button {
    color: #10182c;
  }

  .button:hover {
    color: #10182c;
  }
}

footer {
  display: grid;
  gap: 8px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer p {
  margin-bottom: 0;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

footer nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 750;
}

footer nav a:hover {
  color: var(--brand);
}
