/* ==========================================================================
   Joeco.com — arcade-retro theme
   Brand: #01410A (Joeco green) + #FFFFFF
   No build step. No framework. Edit this file directly.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Brand. Everything else is derived from these two. */
  --brand:        #01410A;
  --white:        #ffffff;

  /* Derived greens (tints/shades of --brand) */
  --green-deep:   #012906;
  --green-base:   #01410A;
  --green-raise:  #03530F;
  --green-lift:   #076A18;
  --green-glow:   #17A22F;

  /* Ink */
  --ink:          #ffffff;
  --ink-dim:      rgba(255, 255, 255, 0.76);
  --ink-faint:    rgba(255, 255, 255, 0.52);
  --line:         rgba(255, 255, 255, 0.26);
  --line-strong:  rgba(255, 255, 255, 0.85);

  /* Type */
  --font-pixel:  "Press Start 2P", "Courier New", ui-monospace, monospace;
  --font-script: "Lobster Two", "Brush Script MT", "Segoe Script", cursive;
  --font-body:   ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
  --font-mono:   ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Space + shape */
  --shell:       min(1180px, 100% - 2.5rem);
  --radius:      4px;          /* arcade cabinets are square-ish */
  --border:      3px;
  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, 0.42);
  --shadow-lift: 10px 10px 0 rgba(0, 0, 0, 0.42);
}

@media (max-width: 40rem) {
  :root { --shell: min(1180px, 100% - 1.75rem); --shadow-hard: 4px 4px 0 rgba(0,0,0,.42); }
}

/* ---------- 2. Base ------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--green-base);
  background-image:
    radial-gradient(ellipse 90% 40rem at 50% -6rem, var(--green-raise) 0%, transparent 70%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}

/* CRT scanlines — decorative, very low contrast, pointer-transparent */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.16) 0 1px,
    rgba(0, 0, 0, 0) 1px 3px
  );
  opacity: 0.5;
  mix-blend-mode: multiply;
}
body.no-crt::after { display: none; }

img, svg, iframe, canvas { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: #cdebd2; }

:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  border-radius: 2px;
}

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--white);
  color: var(--brand);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

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

/* ---------- 3. Type ------------------------------------------------------ */

h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.15; text-wrap: balance; }

.wordmark {
  font-family: var(--font-script);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.01em;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.pixel {
  font-family: var(--font-pixel);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-pixel);
  font-size: clamp(0.56rem, 0.5rem + 0.3vw, 0.7rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1rem;
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(0.95rem, 0.72rem + 1.1vw, 1.5rem);
  line-height: 1.45;
  margin: 0 0 0.35em;
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-dim);
  max-width: 62ch;
}

.muted { color: var(--ink-dim); }
.faint { color: var(--ink-faint); }

/* ---------- 4. Header + nav ---------------------------------------------- */

.masthead {
  position: relative;
  z-index: 40;
  border-bottom: var(--border) solid var(--line-strong);
  background: linear-gradient(180deg, var(--green-deep), var(--green-base));
}

.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  width: 30px;
  flex: none;
  color: var(--white);
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.5));
}
.brand__name {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--line-strong);
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav { display: block; }

.nav__list {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav__link {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-dim);
  padding: 0.7rem 0.8rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav__link:hover { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.06); }
.nav__link[aria-current="page"] {
  color: var(--brand);
  background: var(--white);
  border-color: var(--white);
}

@media (max-width: 60rem) {
  .masthead__bar { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    flex-basis: 100%;
    padding-bottom: 1rem;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0.25rem; }
  .nav__link { padding: 0.85rem 0.9rem; border-color: var(--line); }
}

/* ---------- 5. Marquee (hero) -------------------------------------------- */

.marquee {
  position: relative;
  text-align: center;
  padding-block: clamp(2.75rem, 1.5rem + 5vw, 5rem);
  border-bottom: var(--border) solid var(--line-strong);
  overflow: hidden;
}
.marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.05) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.marquee__inner { position: relative; }

.marquee__mark {
  width: clamp(58px, 8vw, 86px);
  margin: 0 auto 1.1rem;
  color: var(--white);
  filter: drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.45));
}

.marquee__title {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3rem, 1.6rem + 7vw, 6.5rem);
  line-height: 0.95;
  margin: 0 0 0.4rem;
  text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45);
}

.marquee__tag {
  font-family: var(--font-pixel);
  font-size: clamp(0.6rem, 0.45rem + 0.8vw, 0.95rem);
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--ink-dim);
  margin: 0 auto;
  max-width: 42ch;
}

.marquee__bulbs {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 20px);
  margin-top: 1.6rem;
}
.marquee__bulbs span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.28;
  animation: bulb 1.6s steps(1, end) infinite;
}
.marquee__bulbs span:nth-child(2) { animation-delay: 0.2s; }
.marquee__bulbs span:nth-child(3) { animation-delay: 0.4s; }
.marquee__bulbs span:nth-child(4) { animation-delay: 0.6s; }
.marquee__bulbs span:nth-child(5) { animation-delay: 0.8s; }
.marquee__bulbs span:nth-child(6) { animation-delay: 1.0s; }
.marquee__bulbs span:nth-child(7) { animation-delay: 1.2s; }

@keyframes bulb {
  0%, 40%   { opacity: 1; box-shadow: 0 0 12px 2px rgba(255,255,255,.55); }
  41%, 100% { opacity: 0.24; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__bulbs span { animation: none; opacity: 0.7; }
}

/* Compact page header used on inner pages */
.pagehead {
  padding-block: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  border-bottom: var(--border) solid var(--line-strong);
}
.pagehead__title {
  font-family: var(--font-pixel);
  font-size: clamp(1.35rem, 0.9rem + 2.4vw, 2.6rem);
  line-height: 1.25;
  margin: 0 0 0.5rem;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}

/* ---------- 6. Sections + cabinets --------------------------------------- */

.section { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--line); }

.section__head { margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }

.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.cabinet {
  position: relative;
  background: var(--green-raise);
  border: var(--border) solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: clamp(1.15rem, 0.9rem + 0.9vw, 1.75rem);
}

.cabinet--link { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .12s ease, box-shadow .12s ease; }
.cabinet--link:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lift); color: inherit; }
@media (prefers-reduced-motion: reduce) { .cabinet--link:hover { transform: none; } }

.cabinet__label {
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.cabinet__body { color: var(--ink-dim); margin: 0; }

.cabinet__more {
  display: inline-block;
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.cabinet--link:hover .cabinet__more { text-decoration: underline; }

/* Coin-slot rule */
.rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: clamp(2rem, 1.4rem + 2vw, 3rem) 0;
  color: var(--ink-faint);
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 12px, transparent 12px 20px);
}
.rule span { font-family: var(--font-pixel); font-size: 0.6rem; letter-spacing: 0.14em; }

/* ---------- 7. Buttons --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  padding: 0.95rem 1.2rem;
  border: var(--border) solid var(--white);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--brand);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.42);
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { color: var(--brand); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(0,0,0,.42); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 rgba(0,0,0,.42); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: var(--ink); }

.btn--sm { padding: 0.65rem 0.85rem; font-size: 0.58rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active { transform: none; }
}

/* ---------- 8. Games ----------------------------------------------------- */

.arcade {
  display: grid;
  gap: 1.25rem;
}

.screen {
  position: relative;
  background: #000;
  border: var(--border) solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard), inset 0 0 60px rgba(23, 162, 47, 0.14);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  width: 100%;
}
.screen canvas,
.screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  image-rendering: pixelated;
}

.screen__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
  background: rgba(1, 41, 6, 0.86);
  backdrop-filter: blur(2px);
}
.screen__overlay[hidden] { display: none; }
.screen__overlay p {
  font-family: var(--font-pixel);
  font-size: clamp(0.6rem, 0.5rem + 0.5vw, 0.8rem);
  line-height: 1.7;
  margin: 0;
}

.hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  margin-top: 0.9rem;
}
.hud b { color: var(--ink); font-weight: 400; }

.controls {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 0.65rem;
}
kbd {
  font-family: var(--font-mono);
  font-size: 0.8em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 3px;
  padding: 0.1em 0.4em;
  color: var(--ink);
}

/* ---------- 9. Video facades --------------------------------------------- */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: var(--border) solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

.video__facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-color: #000;
  display: grid;
  place-items: center;
}
.video__facade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(1, 41, 10, 0.35);
}
.video__play {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: var(--border) solid var(--white);
  background: rgba(1, 65, 10, 0.85);
  display: grid;
  place-items: center;
  box-shadow: 4px 4px 0 rgba(0,0,0,.45);
}
.video__play::after {
  content: "";
  width: 0; height: 0;
  border-left: 20px solid var(--white);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 6px;
}
.video__facade:hover .video__play { background: var(--white); }
.video__facade:hover .video__play::after { border-left-color: var(--brand); }

/* --------- 10. Comments wall --------------------------------------------- */

.comments {
  columns: 3 20rem;
  column-gap: clamp(1rem, 0.6rem + 1.2vw, 1.6rem);
}
.comment {
  break-inside: avoid;
  margin: 0 0 clamp(1rem, 0.6rem + 1.2vw, 1.6rem);
  background: var(--green-raise);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,.35);
}
.comment blockquote { margin: 0 0 0.85rem; color: var(--ink); }
.comment footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-pixel);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.comment cite { font-style: normal; color: var(--ink); }

/* --------- 11. Polls ------------------------------------------------------ */

.poll { display: grid; gap: 0.6rem; }

.poll__option {
  display: block;
  position: relative;
  cursor: pointer;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}
.poll__option:hover { background: rgba(255,255,255,.1); }
.poll__option input { position: absolute; opacity: 0; pointer-events: none; }
.poll__option:has(input:checked) { border-color: var(--white); background: rgba(255,255,255,.16); }
.poll__option:has(input:focus-visible) { outline: 3px solid var(--white); outline-offset: 2px; }

.poll__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(255,255,255,.18);
  transition: width .5s ease;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) { .poll__bar { transition: none; } }

.poll__row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.poll__pct { font-family: var(--font-pixel); font-size: 0.6rem; color: var(--ink-dim); }
.poll[data-state="voted"] .poll__option { cursor: default; }

.rounds { display: grid; gap: 1rem; }

.round {
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--green-raise);
  box-shadow: 4px 4px 0 rgba(0,0,0,.35);
}
.round > summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-pixel);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}
.round > summary::-webkit-details-marker { display: none; }
.round > summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.round[open] > summary::after { content: "\2013"; }
.round > summary:hover { background: rgba(255,255,255,.07); }
.round__body { padding: 0 1.15rem 1.15rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.round__body dl { margin: 0; display: grid; gap: 0.9rem; }
.round__body dt { font-weight: 600; }
.round__body dd { margin: 0.15rem 0 0; color: var(--ink-dim); }
.round__body dd::before { content: "\25B8  "; color: var(--ink-faint); }

/* --------- 12. Music ------------------------------------------------------ */

.playlist { display: grid; gap: 0.9rem; }
.playlist__link {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  line-height: 1.5;
  text-decoration: none;
}
.playlist__link:hover { text-decoration: underline; }
.copyfield {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.75rem;
}
.copyfield input {
  flex: 1 1 18rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  background: rgba(0,0,0,.28);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 0.7rem;
}

/* --------- 13. Staff ------------------------------------------------------ */

.staff__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: var(--border) solid var(--white);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: var(--green-deep);
}
.staff__photo--placeholder {
  display: grid;
  place-items: center;
  color: var(--ink-faint);
}
.staff__photo--placeholder svg { width: 44%; color: rgba(255,255,255,.22); }
.staff__name { font-family: var(--font-pixel); font-size: 0.8rem; margin: 0 0 0.5rem; }
.staff__role {
  font-family: var(--font-pixel);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin: 0 0 0.75rem;
}

/* --------- 14. Footer ----------------------------------------------------- */

.footer {
  border-top: var(--border) solid var(--line-strong);
  background: var(--green-deep);
  padding-block: clamp(2rem, 1.4rem + 2vw, 3rem);
  margin-top: clamp(2rem, 1rem + 4vw, 4rem);
}
.footer__grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  align-items: start;
}
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer__nav a {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink-dim);
}
.footer__nav a:hover { color: var(--ink); text-decoration: underline; }
.footer__heading {
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin: 0 0 0.9rem;
}
.footer__legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* --------- 15. Utilities -------------------------------------------------- */

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.note {
  border-left: 4px solid var(--line-strong);
  padding: 0.35rem 0 0.35rem 1rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

@media print {
  body::after, .marquee__bulbs, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}
