/* Shared 16-bit look for the inner pages (/vote and /rules).
   Same palette, fonts and window styling as the homepage. */
:root {
  --cream: #F2EDDD;
  --ink: #111111;
  --yellow: #F5D42E;
  --yellow-d: #B8860B;
  --red: #FF8A7A;
  --pink: #CC3B25;
  --pink-d: #B02A14;
  --panel: #0f2f4d;
  --panel-d: #081a2c;
  --field: #050f1a;
  --link: #F3B6D2;
  --muted: #cbd8e3;
  --px: "Press Start 2P", "Courier New", monospace;
  --vt: "VT323", "Courier New", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #050505; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--vt);
  font-size: 24px;
  line-height: 1.2;
  color: var(--cream);
  -webkit-text-size-adjust: 100%;
  background-color: #0a2238;
  background-image: conic-gradient(#0d2a45 25%, #123a5c 0 50%, #0d2a45 0 75%, #123a5c 0);
  background-size: 64px 64px;
}
/* faint CRT scanlines + vignette over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1000;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(0,0,0,.08) 3px),
    radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.4) 100%);
}

.page { max-width: 780px; margin: 0 auto; padding: 26px 24px 72px; }

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

/* "◀ BACK" button */
.back {
  display: inline-block; margin: 0 0 26px;
  font-family: var(--px); font-size: 11px; line-height: 1.4; text-transform: uppercase; letter-spacing: .04em;
  color: #fff; background: #000; text-decoration: none; padding: 11px 13px; border: 3px solid #fff;
}
.back:hover { background: var(--yellow); color: var(--ink); }

/* Window */
.win {
  margin: 0 0 40px;
  background: linear-gradient(#153a5c, var(--panel-d)); color: var(--cream);
  border: 4px solid #fff;
  box-shadow: 0 0 0 4px #000, 0 0 0 8px var(--pink), 10px 10px 0 8px rgba(0,0,0,.55);
}
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(var(--pink), var(--pink-d)); color: #fff; padding: 10px 14px;
  border-bottom: 4px solid #fff; box-shadow: inset 0 3px 0 rgba(255,255,255,.35);
  font-family: var(--px); font-size: 12px; line-height: 1.5; text-shadow: 2px 2px 0 #000;
}
.bar__title { font-size: 14px; }
.bar__sub { font-size: 9px; letter-spacing: .06em; }
.win__body { padding: 22px 22px 26px; }

h1 {
  font-family: var(--px); font-weight: 400; color: #fff; text-shadow: 3px 3px 0 #000;
  font-size: clamp(16px, 4.2vw, 26px); line-height: 1.5; margin: 0 0 14px;
}
h2 {
  font-family: var(--px); font-weight: 400; color: var(--yellow);
  font-size: 12px; line-height: 1.7; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 8px;
}
p { margin: 0 0 12px; }
strong { font-weight: 400; color: var(--yellow); }
ul { margin: 0 0 12px; padding-left: 26px; }
li { margin-bottom: 6px; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--yellow); outline-offset: 3px;
}
.back:focus-visible { outline-color: var(--cyan, #3DD6F5); }

/* Chunky yellow button */
.btn, .pao-poll__submit, .pao-follow__btn {
  display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer;
  font-family: var(--px); font-size: clamp(11px, 3.2vw, 14px); line-height: 1.5; text-transform: uppercase; letter-spacing: .06em;
  background: var(--yellow); color: var(--ink) !important; padding: 18px 14px; border: 4px solid #000; border-radius: 0;
  box-shadow: 0 6px 0 var(--yellow-d), 0 6px 0 4px #000;
}
.btn:hover, .pao-poll__submit:hover, .pao-follow__btn:hover { background: #fff; }
.btn:active, .pao-poll__submit:active, .pao-follow__btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--yellow-d), 0 2px 0 4px #000; }
.pao-poll__submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

@media (max-width: 480px) {
  .page { padding: 18px 18px 56px; }
  .win__body { padding: 18px 16px 22px; }
}

/* Top row on the inner pages: Back button on the left, SOUND toggle on the right */
.page-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.page-top .back { margin-bottom: 26px; }
.sndbtn {
  font-family: var(--vt); font-size: 22px; line-height: 1; color: #2f2c1c; cursor: pointer;
  background: linear-gradient(#f4efe0, #d3c9ac); border: 2px solid #5b523d; border-radius: 999px; padding: 8px 16px; margin: 4px 0 26px;
  box-shadow: 0 2px 0 rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.6);
}
.sndbtn:active { transform: translateY(1px); box-shadow: none; }
