/* HydeCo Games — open layout, no boxes. Palette:
   midnight #0D2F8B · electric #1C6CFF · sunset #FF7A00 · flame #E3341A · charcoal #111111 */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --midnight: #0D2F8B;
  --electric: #1C6CFF;
  --sunset:   #FF7A00;
  --flame:    #E3341A;
  --charcoal: #111111;
  --text:     #e8eaf2;
  --text-dim: #9aa1b5;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 600px at 12% -8%,  rgba(13,47,139,0.35), transparent 60%),
    radial-gradient(900px 540px  at 88% 4%,   rgba(227,52,26,0.14), transparent 60%),
    radial-gradient(700px 700px  at 50% 115%, rgba(13,47,139,0.22), transparent 65%),
    var(--charcoal);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero, main, footer { position: relative; z-index: 1; }

/* ---- top bar ---- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(18px, 3vw, 34px);
  background: rgba(17,17,17,0.72);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(28,108,255,0.5), rgba(255,122,0,0.5), transparent);
}

.brand img {
  display: block;
  width: clamp(104px, 12vw, 138px);
  height: auto;
  filter: drop-shadow(0 0 14px rgba(28,108,255,0.3));
}

.topnav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
}
.topnav a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
.topnav a:hover { color: #ffffff; }

section[id] { scroll-margin-top: 96px; }

/* ---- hero: EVERYBIT in the instrument bit-font ---- */

.hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22vh 24px 8vh;
}

.title-img {
  width: min(700px, 92vw);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 28px rgba(28,108,255,0.45))
          drop-shadow(0 0 90px rgba(13,47,139,0.5));
}

.coming-soon {
  margin-top: 2.6rem;
  font-size: clamp(1.05rem, 2.6vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.32em;
  color: #ffb066;
  text-shadow:
    0 0 16px rgba(255,122,0,0.55),
    0 0 50px rgba(255,122,0,0.28);
  animation: soonpulse 2.8s ease-in-out infinite;
}

@keyframes soonpulse {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.99); }
}

.hero-lead {
  margin-top: 1.3rem;
  max-width: 56ch;
  color: var(--text-dim);
  font-size: 0.98rem;
}

/* ---- screenshot carousel: idle drift until real captures land ---- */

.carousel {
  overflow: hidden;
  margin-top: 0.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.carousel-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: drift 60s linear infinite;
}
.carousel:hover .carousel-track { animation-play-state: paused; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.shot-frame {
  width: clamp(220px, 26vw, 320px);
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(154,161,181,0.28);
  border-radius: 12px;
  color: rgba(154,161,181,0.5);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}
img.shot-frame { border: none; object-fit: cover; }

/* ---- sections, open ---- */

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px 60px;
}

section { padding: 48px 0; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(28,108,255,0.45), rgba(255,122,0,0.45), transparent);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0.045em;
  color: #ffffff;
  text-shadow: 0 0 26px rgba(28,108,255,0.4);
  margin-bottom: 1rem;
}

.lead {
  max-width: 62ch;
  color: var(--text);
  font-size: 1.08rem;
}

.feed-line {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sunset);
  box-shadow: 0 0 10px var(--sunset);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

/* ---- mods, open rows ---- */

.mods {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}

.mod {
  display: flex;
  gap: 18px;
  align-items: center;
  text-decoration: none;
}

.mod img {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.mod:hover img {
  box-shadow: 0 0 22px rgba(28,108,255,0.45);
  transform: translateY(-2px);
}

.mod h3 {
  color: #cfe0ff;
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
  transition: color 0.15s ease;
}
.mod:hover h3 { color: #ffffff; }
.mod p  { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 0.3rem; }

.mod-subs {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffb066;
}

/* tutorial slot under each mod — placeholder until a thumbnail lands */

.mod-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mod-video {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed rgba(154,161,181,0.28);
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  opacity: 0.75;
}

.mod-video.has-thumb {
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
  overflow: hidden;
  opacity: 1;
}
.mod-video.has-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.2s ease;
}
.mod-video.has-thumb:hover img { transform: scale(1.03); }

.play-glyph {
  width: 0;
  height: 0;
  border-left: 14px solid rgba(154,161,181,0.55);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

/* ---- twitch embed slot ---- */

.stream-slot {
  margin-top: 1.4rem;
  height: 54px;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(154,161,181,0.28);
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

/* add class "has-embed" alongside the iframe swap to restore full player size */
.stream-slot.has-embed {
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
  opacity: 1;
}

.twitch-link {
  color: #cfe0ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(28,108,255,0.45);
}
.twitch-link:hover { color: #ffffff; }
.stream-slot iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 14px;
}

/* ---- community links ---- */

.social-row {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
}

.social {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #cfe0ff;
  text-decoration: none;
  border-bottom: 2px solid rgba(28,108,255,0.45);
  padding-bottom: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.social:hover { color: #ffffff; border-color: var(--electric); }

.social.soon {
  color: var(--text-dim);
  border-bottom-style: dashed;
  border-color: rgba(154,161,181,0.35);
  pointer-events: none;
}
.social.soon::after {
  content: " · soon";
  font-size: 0.75em;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ---- chat bubble ---- */

.chat-bubble {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 3;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(127,167,255,0.55);
  background: linear-gradient(135deg, var(--electric), var(--midnight));
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 26px rgba(28,108,255,0.4);
  transition: transform 0.15s ease;
}
.chat-bubble:hover { transform: translateY(-2px); }

.chat-popout {
  position: fixed;
  right: 90px;
  bottom: 36px;
  z-index: 3;
  padding: 12px 18px;
  border-radius: 12px 12px 2px 12px;
  background: rgba(17,17,17,0.92);
  border: 1px solid rgba(28,108,255,0.4);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.chat-popout a {
  color: #ffb066;
  font-weight: 700;
  text-decoration: none;
}
.chat-popout a:hover { color: #ffd0a3; }

.discord-widget {
  margin-top: 1.8rem;
  border: none;
  border-radius: 12px;
  max-width: 100%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
}

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

footer {
  text-align: center;
  padding: 34px 24px 46px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
footer a { color: var(--text-dim); }
.fine { margin-top: 0.4rem; font-size: 0.78rem; opacity: 0.75; }

/* ---- small screens ---- */

@media (max-width: 760px) {
  .mods { grid-template-columns: 1fr; }
  .hero { min-height: 60vh; padding-top: 24vh; }
}

@media (prefers-reduced-motion: reduce) {
  .coming-soon, .feed-dot, .carousel-track { animation: none; }
  .mod img, .chat-bubble { transition: none; }
}
