/* ========================================================
   FUN FOUND GAMES — 80s Neon Arcade x Short-Form Feed theme
   Shared stylesheet for all pages
   ======================================================== */

:root{
  --bg-deep: #0a0621;
  --bg-deep-2: #150a35;
  --panel: #150c33;
  --panel-line: #3a2a72;
  --pink: #fe2c55;
  --cyan: #25f4ee;
  --yellow: #f9f871;
  --purple: #9d4edd;
  --green: #39ff9d;
  --ink: #0a0621;
  --cream: #f4f1ff;
  --dim: #b6a9e8;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

html, body{
  max-width: 100%;
  overflow-x: hidden;
}

body{
  margin: 0;
  min-height: 100vh;
  font-family: 'VT323', monospace;
  font-size: 1.25rem;
  background: var(--bg-deep);
  color: var(--cream);
  position: relative;
}

h1, h2, h3, p{
  overflow-wrap: break-word;
}

h1, h2, h3, .pixel{
  font-family: 'Press Start 2P', 'VT323', monospace;
  line-height: 1.5;
}

.feed{
  font-family: 'Baloo 2', sans-serif;
}

a{ color: inherit; }

img{ max-width: 100%; }

/* ---------- background layers ---------- */

.bg-fixed{
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 60% 40% at 50% 18%, rgba(255,46,151,0.35) 0%, rgba(255,46,151,0) 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(5,228,245,0.18) 0%, rgba(5,228,245,0) 70%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-2) 55%, #1c0f45 100%);
}

.bg-stars{
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 80% 10%, #fff, transparent),
    radial-gradient(1px 1px at 60% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 30% 60%, #fff, transparent),
    radial-gradient(1px 1px at 90% 50%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 45% 80%, #fff, transparent),
    radial-gradient(1px 1px at 20% 90%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 70%, #fff, transparent);
  opacity: 0.6;
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle{
  0%{ opacity: 0.35; }
  100%{ opacity: 0.75; }
}

.bg-sun{
  position: fixed;
  left: 50%;
  bottom: 38vh;
  width: min(60vw, 520px);
  height: min(60vw, 520px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--pink) 55%, var(--purple) 100%);
  box-shadow: 0 0 120px rgba(255,46,151,0.45);
  opacity: 0.5;
  z-index: -2;
}

.bg-grid{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42vh;
  z-index: -1;
  background-image:
    linear-gradient(rgba(5,228,245,0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5,228,245,0.55) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(260px) rotateX(60deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 90%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 90%);
  animation: gridmove 3s linear infinite;
}

@keyframes gridmove{
  from{ background-position: 0 0, 0 0; }
  to{ background-position: 0 48px, 0 0; }
}

.scanlines{
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0px,
    rgba(0,0,0,0.15) 1px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0) 3px
  );
  mix-blend-mode: multiply;
}

.scanlines::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 60%, rgba(0,0,0,0.45) 100%);
}

/* ---------- neon text helpers ---------- */

.neon-pink{ color: var(--pink); text-shadow: 0 0 6px var(--pink), 0 0 18px rgba(255,46,151,0.7), 0 0 40px rgba(255,46,151,0.4); }
.neon-cyan{ color: var(--cyan); text-shadow: 0 0 6px var(--cyan), 0 0 18px rgba(5,228,245,0.7), 0 0 40px rgba(5,228,245,0.4); }
.neon-yellow{ color: var(--yellow); text-shadow: 0 0 6px var(--yellow), 0 0 18px rgba(249,248,113,0.7); }

.flicker{
  animation: flicker 4.5s linear infinite;
}
@keyframes flicker{
  0%, 3%, 6%, 100%{ opacity: 1; }
  4%{ opacity: 0.55; }
  5%{ opacity: 0.9; }
  62%{ opacity: 1; }
  63%{ opacity: 0.6; }
  64%{ opacity: 1; }
}

/* ---------- glitch duotone text (short-form-feed energy) ---------- */

.glitch{
  position: relative;
  display: inline-block;
  color: var(--cream);
}

.glitch::before,
.glitch::after{
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
}

.glitch::before{
  color: var(--cyan);
  animation: glitchL 3.4s ease-in-out infinite;
}

.glitch::after{
  color: var(--pink);
  animation: glitchR 3.4s ease-in-out infinite;
}

@keyframes glitchL{
  0%, 100%{ transform: translate(-4px, -3px); }
  50%{ transform: translate(-7px, 1px); }
}

@keyframes glitchR{
  0%, 100%{ transform: translate(4px, 3px); }
  50%{ transform: translate(7px, -1px); }
}

/* ---------- sticker badges ---------- */

.sticker{
  position: absolute;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--cream);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
  transform: rotate(-8deg);
  animation: stickerBob 3s ease-in-out infinite;
  white-space: nowrap;
  z-index: 2;
}

.sticker.pink{ background: var(--pink); color: #fff; }
.sticker.cyan{ background: var(--cyan); color: var(--ink); }
.sticker.yellow{ background: var(--yellow); color: var(--ink); }

@keyframes stickerBob{
  0%, 100%{ translate: 0 0; }
  50%{ translate: 0 -8px; }
}

/* ---------- layout shell ---------- */

.page{
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap{
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 48px);
}

/* ---------- nav ---------- */

.nav{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 6, 33, 0.75);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--panel-line);
}

.nav-inner{
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px clamp(18px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo{
  font-family: 'Press Start 2P', monospace;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--cream);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-logo .hl{ color: var(--pink); text-shadow: 0 0 6px var(--pink), 0 0 16px rgba(255,46,151,0.7); }

.nav-links{
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a{
  font-family: 'Press Start 2P', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--dim);
  padding: 8px 4px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a.active{
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(5,228,245,0.8);
}

.nav-links li a.cta{
  font-family: 'Baloo 2', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--pink);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 4px 14px rgba(254,44,85,0.55);
}

.nav-links li a.cta:hover{
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(254,44,85,0.65);
  text-shadow: none;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span{
  width: 26px;
  height: 3px;
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(5,228,245,0.8);
}

@media (max-width: 760px){
  .nav-toggle{ display: flex; }

  .nav-links{
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: min(78vw, 300px);
    background: var(--bg-deep-2);
    border-left: 2px solid var(--panel-line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 45;
  }

  .nav-links.open{ transform: translateX(0); }

  .nav-links li a{ font-size: 0.75rem; }
}

/* ---------- buttons ---------- */

.btn{
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-align: center;
  padding: 14px 26px;
  border: 3px solid var(--cream);
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.55);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover{
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.55);
  filter: brightness(1.08);
}

.btn:active{
  transform: translate(0,0);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.55);
}

.btn-cyan{ background: var(--cyan); }
.btn-pink{ background: var(--pink); color: var(--cream); }

.btn-outline{
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 4px 4px 0 rgba(5,228,245,0.25);
}
.btn-outline:hover{ background: rgba(5,228,245,0.08); }

.btn[disabled],
.btn.disabled{
  background: #3a2a72;
  color: #8779c4;
  border-color: #5b4699;
  border-radius: 999px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
  cursor: not-allowed;
  filter: none;
  transform: none;
}
.btn[disabled]:hover, .btn.disabled:hover{
  transform: none;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
}

/* ---------- hero ---------- */

.hero{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 0 90px;
}

.hero-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.badge{
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--green);
  padding: 8px 16px;
  border: 2px solid #b6ffcf;
  box-shadow: 3px 3px 0 #0f7a45;
  margin-bottom: 30px;
}

.hero h1{
  font-size: clamp(2rem, 7vw, 4rem);
  margin: 0 0 18px;
  color: var(--cream);
}

.hero h1 .line2{ display: block; margin-top: 10px; }

.hero .tagline{
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.4rem;
  color: var(--dim);
}

.hero-actions{
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- sections / panels ---------- */

section{ padding: 70px 0; position: relative; z-index: 1; }

.section-title{
  font-size: clamp(1.3rem, 4vw, 2rem);
  text-align: center;
  margin: 0 0 12px;
}

.section-sub{
  text-align: center;
  color: var(--dim);
  font-size: 1.3rem;
  max-width: 560px;
  margin: 0 auto 46px;
}

.panel{
  background: var(--panel);
  border: 2px solid var(--panel-line);
  padding: 28px;
  position: relative;
}

.panel::before{
  content: "";
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  border: 1px dashed rgba(5,228,245,0.25);
  pointer-events: none;
}

/* ---------- feature grid (home) ---------- */

.feature-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-grid.single{
  grid-template-columns: minmax(220px, 320px);
  justify-content: center;
}

.feature-card{
  background: var(--panel);
  border: 2px solid var(--panel-line);
  padding: 26px 22px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover{
  border-color: var(--cyan);
  transform: translateY(-4px);
}

.feature-card .icon{ font-size: 2.2rem; margin-bottom: 14px; }

.feature-card h3{
  font-size: 0.85rem;
  color: var(--yellow);
  margin: 0 0 12px;
}

.feature-card p{ color: var(--dim); margin: 0; }

/* ---------- arcade cabinet cards (games page) ---------- */

.cab-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.cab-grid.single{
  grid-template-columns: minmax(240px, 320px);
  justify-content: center;
}

.cabinet{
  background: linear-gradient(180deg, #1c1044 0%, #150c33 100%);
  border: 3px solid var(--panel-line);
  border-radius: 22px;
  padding: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cabinet:hover{
  transform: translateY(-6px) scale(1.02);
  border-color: var(--cyan);
  box-shadow: 0 14px 30px rgba(37,244,238,0.18);
}

.cabinet .marquee{
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  text-align: center;
  padding: 10px 6px;
  background: var(--ink);
  border: 2px solid var(--pink);
  border-radius: 999px;
  color: var(--pink);
  text-shadow: 0 0 6px rgba(254,44,85,0.7);
}

.cabinet .screen{
  aspect-ratio: 9 / 16;
  background: repeating-linear-gradient(45deg, #10082b, #10082b 8px, #150c38 8px, #150c38 16px);
  border: 2px solid #000;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cabinet .screen .glyph{
  font-size: 3.2rem;
  filter: drop-shadow(0 0 10px rgba(37,244,238,0.6));
}

.cabinet .screen .ribbon{
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  transform: none;
  background: var(--pink);
  color: #fff;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-align: center;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.cabinet .screen .reel-stats{
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.cabinet .screen .reel-stats span{
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--cream);
  background: rgba(10, 6, 33, 0.65);
  border: 1px solid rgba(244,241,255,0.25);
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

.cabinet .info{ text-align: center; }

.cabinet .info h3{
  font-size: 0.78rem;
  margin: 0 0 8px;
  color: var(--cream);
}

.cabinet .info p{
  color: var(--dim);
  margin: 0 0 16px;
  font-size: 1.1rem;
}

/* ---------- coin slot decoration ---------- */

.coin-note{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
  color: var(--dim);
  font-size: 1.2rem;
}

.coin-note .coin{
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(249,248,113,0.8);
  animation: coinspin 2.2s linear infinite;
}

@keyframes coinspin{
  0%{ transform: scaleX(1); }
  50%{ transform: scaleX(0.15); }
  100%{ transform: scaleX(1); }
}

/* ---------- terminal / crt box (news, under-construction) ---------- */

.terminal{
  max-width: 720px;
  margin: 0 auto;
  background: #060316;
  border: 3px solid var(--panel-line);
  padding: 30px;
  font-family: 'VT323', monospace;
  font-size: 1.35rem;
  color: var(--green);
  box-shadow: 0 0 30px rgba(57,255,157,0.12);
}

.terminal .term-line{ margin: 0 0 10px; }

.terminal .prompt{ color: var(--cyan); }

.cursor{
  display: inline-block;
  width: 10px;
  height: 1.1em;
  background: var(--green);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink{
  50%{ opacity: 0; }
}

.news-list{
  max-width: 720px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.news-item{
  background: var(--panel);
  border: 2px solid var(--panel-line);
  border-left: 5px solid var(--cyan);
  padding: 18px 22px;
}

.news-item .date{
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--yellow);
  display: block;
  margin-bottom: 10px;
}

.news-item h3{ margin: 0 0 8px; font-size: 1rem; color: var(--cream); }
.news-item p{ margin: 0; color: var(--dim); }

/* ---------- forms (contact, login) ---------- */

.form-panel{
  max-width: 480px;
  margin: 0 auto;
}

.field{ margin-bottom: 22px; text-align: left; }

.field label{
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--cyan);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.field input,
.field textarea{
  width: 100%;
  background: #0c0726;
  border: 2px solid var(--panel-line);
  color: var(--cream);
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus{
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(5,228,245,0.4);
}

.field textarea{ min-height: 120px; resize: vertical; }

.form-msg{
  margin-top: 18px;
  padding: 14px 16px;
  border: 2px solid var(--green);
  background: rgba(57,255,157,0.08);
  color: var(--green);
  font-size: 1.1rem;
  display: none;
}

.form-msg.show{ display: block; }

.contact-info{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}

.contact-info .item{
  background: var(--panel);
  border: 2px solid var(--panel-line);
  padding: 20px;
}

.contact-info .item .icon{ font-size: 1.6rem; margin-bottom: 10px; }
.contact-info .item h3{ font-size: 0.65rem; margin: 0 0 8px; color: var(--yellow); }
.contact-info .item p{ margin: 0; color: var(--dim); font-size: 1.05rem; word-break: break-word; }

.login-tabs{
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 30px;
}

.login-tabs button{
  font-family: 'Press Start 2P', monospace;
  font-size: 0.62rem;
  padding: 12px 22px;
  background: var(--panel);
  color: var(--dim);
  border: 2px solid var(--panel-line);
  cursor: pointer;
}

.login-tabs button.active{
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

.login-tabs button:first-child{ border-right: none; }

.checkbox-row{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 1.1rem;
  margin-bottom: 22px;
}

.checkbox-row input{ width: 18px; height: 18px; accent-color: var(--pink); }

/* ---------- footer ---------- */

.site-footer{
  border-top: 2px solid var(--panel-line);
  background: rgba(6, 3, 22, 0.6);
  padding: 34px 0 26px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-logo{
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  color: var(--pink);
  text-shadow: 0 0 8px rgba(255,46,151,0.6);
  margin: 0 0 10px;
}

.footer-copy{ color: var(--dim); font-size: 1.05rem; margin: 0 0 14px; }

.blink-cursor{
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--yellow);
  animation: blink 1.1s steps(1) infinite;
}

.footer-links{
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 16px;
  list-style: none;
  padding: 0;
}

.footer-links a{
  font-size: 1.05rem;
  color: var(--dim);
  text-decoration: none;
}
.footer-links a:hover{ color: var(--cyan); }

/* ---------- page header (inner pages) ---------- */

.page-header{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 0 20px;
}

.page-header h1{
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  margin: 0 0 14px;
}

.page-header p{
  color: var(--dim);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.3rem;
}

@media (max-width: 600px){
  .login-tabs{ flex-wrap: wrap; }
  .login-tabs button{ flex: 1 1 auto; }

  .footer-links{
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .hero-actions{
    width: 100%;
  }

  .hero-actions .btn{
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 480px){
  body{ font-size: 1.1rem; }

  .nav-inner{ padding-top: 12px; padding-bottom: 12px; }

  .nav-logo{ font-size: 0.62rem; }

  .badge{ font-size: 0.5rem; padding: 7px 12px; }

  .btn{ font-size: 0.62rem; padding: 12px 18px; }

  .cabinet .marquee{ font-size: 0.6rem; }

  .panel{ padding: 20px; }

  .terminal{ padding: 20px; }
}
