
/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===================== DESIGN TOKENS ===================== */
:root {
  --bg:      #0d0d1a;
  --neon:    #00ffcc;   /* 15.3:1 on --bg ✓ */
  --pink:    #ff00aa;   /* 5.5:1 on --bg  ✓ */
  --yellow:  #ffee00;   /* 16.7:1 on --bg ✓ */
  --white:   #e8e8f0;   /* 16.1:1 on --bg ✓ */
  --muted:   #a0aed0;   /* 5.4:1 on --bg  ✓ — lightened from #6677aa */
  --panel:   rgba(255,255,255,0.04);
  --border:  rgba(0,255,204,0.35);
  --focus:   #ffee00;
  --mono:    'Courier New', Courier, monospace;
}

/* ===================== SKIP LINK ===================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--neon);
  color: #000;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.1s;
}
.skip-link:focus { top: 1rem; }

/* ===================== GLOBAL ===================== */
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle, rgba(0,255,204,0.18) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,102,204,0.12) 1px, transparent 1px);
  background-size: 32px 32px, 64px 64px;
  background-position: 0 0, 16px 16px;
  color: var(--white);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.8;
  min-height: 100vh;
}

/* ===================== FOCUS STYLES ===================== */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
/* remove default for mouse users, keep for keyboard */
:focus:not(:focus-visible) { outline: none; }

/* ===================== STARS ===================== */
.stars {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  aria-hidden: true;
}
.star {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--neon);
  border-radius: 50%;
  animation: twinkle var(--d, 2s) var(--delay, 0s) infinite alternate;
  opacity: 0;
}
@keyframes twinkle {
  0%   { opacity: 0; transform: scale(0.5); }
  50%  { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.3; transform: scale(0.8); }
}

/* ===================== MARQUEE ===================== */
.marquee-bar {
  background: var(--neon);
  color: #000;
  font-weight: bold;
  font-size: 13px;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 10;
  letter-spacing: 0.05em;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee var(--mq-dur, 40s) linear infinite;
}
.marquee-seq { display: flex; flex-shrink: 0; }
.mq-sep { margin: 0 4ch; }
/* Track holds two identical halves, so -50% lands exactly where it started */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===================== ANIMATIONS ===================== */
.spin-star {
  display: inline-block;
  font-size: 24px;
  animation: spin 3s linear infinite;
  color: var(--yellow);
  line-height: 1;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.bounce {
  display: inline-block;
  animation: bounce 1.2s ease-in-out infinite alternate;
}
@keyframes bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}

/* slow blink — well below 3Hz WCAG threshold */
.blink {
  animation: blink 2s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.color-shift {
  animation: colorshift 4s ease infinite alternate;
}
@keyframes colorshift {
  from { color: var(--pink); }
  to   { color: var(--yellow); }
}

.gif-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 1.5rem 0;
  overflow: hidden;
}
.gif-divider .line {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--neon) 0px, var(--neon) 6px,
    transparent 6px, transparent 12px
  );
  animation: slide-line 1s linear infinite;
}
@keyframes slide-line {
  from { background-position: 0 0; }
  to   { background-position: 12px 0; }
}
.gif-divider .icon {
  color: var(--yellow);
  font-size: 16px;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.4); }
}

/* ===================== REDUCED MOTION ===================== */
/*
  All animations are disabled for users who prefer reduced motion.
  Decorative elements stay visible but static.
*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .stars { display: none; }
}

/* ===================== LAYOUT ===================== */
.page {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ===================== HEADER ===================== */
.site-header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.site-title {
  font-size: clamp(26px, 7vw, 54px);
  font-weight: bold;
  color: var(--neon);
  text-shadow: 0 0 16px rgba(0,255,204,0.5);
  line-height: 1.15;
  margin: 1rem 0 0.5rem;
  letter-spacing: 0.04em;
}

.site-subtitle {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===================== VISITOR COUNTER ===================== */
.counter-widget {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid var(--neon);
  padding: 12px 24px;
  margin: 1.5rem auto;
  background: rgba(0,255,204,0.05);
}
.counter-widget .c-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.counter-widget .digits {
  font-size: 32px;
  color: var(--neon);
  font-weight: bold;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.counter-widget .c-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ===================== PANELS ===================== */
.panel {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.panel-title {
  position: absolute;
  top: -11px;
  left: 12px;
  background: var(--bg);
  padding: 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--neon);
  text-transform: uppercase;
  /* not a heading — purely decorative label */
}

.panel p {
  color: var(--white);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.panel p:last-child { margin-bottom: 0; }

/* ===================== FORM ===================== */
.form-row { margin-bottom: 1.4rem; }

.form-row label,
.form-row .field-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--neon);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: bold;
}
.optional-tag {
  color: var(--muted);
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0.05em;
  text-transform: none;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,255,204,0.4);
  border-radius: 0;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--white);
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(255,238,0,0.4); /* yellow focus ring */
}
.form-row textarea { min-height: 80px; resize: vertical; }

/* fieldset for radio group */
.form-row fieldset {
  border: none;
  padding: 0;
}
.form-row fieldset legend {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--neon);
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 8px;
  float: left;
  width: 100%;
}

.radio-set { display: flex; flex-direction: column; gap: 10px; clear: both; }
.radio-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--white);
  cursor: pointer;
  line-height: 1.5;
}
.radio-opt input[type="radio"] {
  accent-color: var(--neon);
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--neon);
  color: #000;
  border: none;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s;
  margin-top: 1rem;
}
.submit-btn:hover { background: var(--yellow); }
.submit-btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

/* success */
.success-msg {
  display: none;
  text-align: center;
  padding: 2.5rem 0;
}
.success-msg .ok { font-size: 36px; color: var(--neon); margin-bottom: 0.5rem; }
.success-msg h3 { font-size: 18px; color: var(--neon); margin-bottom: 0.5rem; }
.success-msg p  { color: var(--muted); font-size: 13px; }

/* ===================== FB BUTTON ===================== */
.fb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--border);
  padding: 14px;
  color: var(--neon);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 1rem;
}
.fb-link:hover  { background: var(--panel); border-color: var(--neon); }

/* ===================== GUESTBOOK WINDOW (Win95-ish) ===================== */
.win {
  border: 2px solid;
  border-color: #c8d0e8 #3a3f5c #3a3f5c #c8d0e8;
  background: #14142a;
  margin-bottom: 1.5rem;
  box-shadow: 4px 4px 0 #000;
}
.win-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 4px 10px;
  background: linear-gradient(90deg, #000080 0%, var(--pink) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.05em;
}
.win-ctrls { display: flex; gap: 3px; }
.win-ctrls span {
  width: 18px; height: 16px;
  display: grid; place-items: center;
  background: #c0c0c0; color: #000;
  font-size: 11px; line-height: 1;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
}
.win-body { padding: 1.5rem 1.5rem 1.25rem; text-align: center; }
.win-body p { color: var(--white); font-size: 14px; line-height: 1.7; margin-bottom: 0.5rem; }
.gb-heading {
  font-size: 22px;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  text-shadow: 2px 2px 0 var(--pink);
}
.gb-hint { font-size: 12px !important; color: var(--muted) !important; }

.gb-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 1.5rem 0 1rem;
  flex-wrap: wrap;
}
.gb-arrow { color: var(--pink); font-weight: bold; font-size: 16px; }
.gb-arrow-l { animation: nudge-r 0.8s ease-in-out infinite; }
.gb-arrow-r { animation: nudge-l 0.8s ease-in-out infinite; }
@keyframes nudge-r { 50% { transform: translateX(6px); } }
@keyframes nudge-l { 50% { transform: translateX(-6px); } }

.bevel-btn {
  display: inline-block;
  padding: 14px 26px;
  background: var(--neon);
  color: #000;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 4px solid;
  border-color: #b3fff0 #007a62 #007a62 #b3fff0;
}
.bevel-btn:hover { background: var(--yellow); border-color: #fff9b0 #8a8000 #8a8000 #fff9b0; }
.bevel-btn:active {
  border-color: #007a62 #b3fff0 #b3fff0 #007a62;
  transform: translate(2px, 2px);
}
.bevel-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }


.gb-badges { display: flex; justify-content: center; gap: 8px; margin-top: 1.25rem; flex-wrap: wrap; }
.badge88 {
  width: 88px; height: 31px;
  display: flex; flex-direction: column; justify-content: center;
  font-size: 8px; line-height: 1.15; letter-spacing: 0.06em;
  color: var(--neon);
  background: #000;
  border: 1px solid var(--neon);
}
.badge88 b { font-size: 11px; }
.badge-pink   { color: var(--pink);   border-color: var(--pink); }
.badge-yellow { color: var(--yellow); border-color: var(--yellow); }

.res-total { font-size: 15px !important; margin-bottom: 1rem !important; }
.res-total span { color: var(--neon); font-size: 32px; font-weight: bold; display: block; line-height: 1.1; }
.res-wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; margin-bottom: 1rem; }
.res-legend { text-align: left; min-width: 180px; }
.res-item { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; margin-bottom: 10px; color: var(--white); }

/* ===================== FOOTER ===================== */
.site-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.site-footer a {
  color: var(--muted);
  text-decoration: underline;
}
.site-footer a:hover { color: var(--neon); }

.webring {
  margin-top: 1rem;
  font-size: 12px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 480px) {
  .page { padding: 1.5rem 1rem 3rem; }
  .site-title { font-size: clamp(22px, 9vw, 40px); }
}

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