/* ===== Nub LOL — stylesheet =====
   palette: deep space navy + acid lime + hot magenta
   edit freely; page reloads itself on save
*/

:root {
  --bg:        #07090f;
  --bg-2:      #0d1120;
  --card:      rgba(255,255,255,0.045);
  --card-line: rgba(255,255,255,0.11);
  --text:      #eef1f8;
  --muted:     #9aa3bd;
  --lime:      #b6ff2e;
  --magenta:   #ff2ea6;
  --cyan:      #36e8ff;
  --yt:        #ff2d2d;
  --dc:        #5865f2;
  --radius:    18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(182,255,46,0.055) 1px, transparent 1px) 0 0 / 100% 46px,
    linear-gradient(90deg, rgba(182,255,46,0.055) 1px, transparent 1px) 0 0 / 46px 100%,
    radial-gradient(ellipse at 50% 0%, var(--bg-2) 0%, var(--bg) 70%);
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 85%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px 320px at 12% 8%,  rgba(255,46,166,0.20), transparent 70%),
    radial-gradient(620px 380px at 88% 18%, rgba(54,232,255,0.16), transparent 70%),
    radial-gradient(700px 420px at 50% 95%, rgba(182,255,46,0.12), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); }
  to   { transform: translate3d(1.5%, 1.5%, 0) scale(1.06); }
}

/* ---------- flopping seals ---------- */

.seals {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.seal-def { position: absolute; }

/* outer layer: swims across the screen */
.seal {
  position: absolute;
  left: 0;
  will-change: transform;
  animation: swim linear infinite;
}

/* middle layer: gentle up-and-down bob */
.seal-bob { animation: bob ease-in-out infinite; }

/* inner layer: the actual flop */
.seal-flop {
  transform-origin: 62% 88%;
  animation: flop ease-in-out infinite;
}

.seal-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.55));
}

/* tail flippers wave on their own */
.seal-tail {
  transform-box: fill-box;
  transform-origin: 8% 50%;
  animation: wag 1.9s ease-in-out infinite;
}

/* front flipper paddles */
.seal-fin {
  transform-box: fill-box;
  transform-origin: 95% 40%;
  animation: paddle 1.5s ease-in-out infinite;
}

@keyframes swim {
  from { transform: translateX(-38vw); }
  to   { transform: translateX(136vw); }
}

@keyframes swim-rtl {
  from { transform: translateX(136vw); }
  to   { transform: translateX(-38vw); }
}

/* --- direction + facing ---------------------------------------
   The source artwork faces LEFT.
   .seal-rtl  : swims right -> left, artwork left as drawn
   .seal-flip : swims left -> right, artwork mirrored to face right
   Either way the seal always travels nose-first.
--------------------------------------------------------------- */

.seal-rtl { animation-name: swim-rtl; }

.seal-flip .seal-svg { transform: scaleX(-1); }

/* the flop hinges off the belly/tail; mirror the pivot to match
   the mirrored artwork, otherwise flipped seals rock around the head */
.seal-flip .seal-flop { transform-origin: 38% 88%; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-26px); }
}

@keyframes flop {
  0%   { transform: rotate(-4deg) scale(1, 1); }
  22%  { transform: rotate(5deg)  scale(1.05, 0.90); }
  44%  { transform: rotate(-2deg) scale(0.98, 1.04); }
  66%  { transform: rotate(6deg)  scale(1.04, 0.93); }
  84%  { transform: rotate(-3deg) scale(1, 1.02); }
  100% { transform: rotate(-4deg) scale(1, 1); }
}

@keyframes wag {
  0%, 100% { transform: rotate(-9deg); }
  50%      { transform: rotate(11deg); }
}

@keyframes paddle {
  0%, 100% { transform: rotate(6deg); }
  50%      { transform: rotate(-14deg); }
}

/* each seal: size, height on screen, speed, rhythm */
.seal-1 { top: 8%;  width: 230px; opacity: .26; animation-duration: 58s; animation-delay: -6s; }
.seal-1 .seal-bob  { animation-duration: 7s; }
.seal-1 .seal-flop { animation-duration: 2.6s; }

.seal-2 { top: 30%; width: 150px; opacity: .20; animation-duration: 74s; animation-delay: -34s; }
.seal-2 .seal-bob  { animation-duration: 9s; animation-delay: -2s; }
.seal-2 .seal-flop { animation-duration: 3.4s; animation-delay: -1s; }

.seal-3 { top: 54%; width: 290px; opacity: .17; animation-duration: 92s; animation-delay: -15s; }
.seal-3 .seal-bob  { animation-duration: 11s; animation-delay: -4s; }
.seal-3 .seal-flop { animation-duration: 4.2s; animation-delay: -2s; }

.seal-4 { top: 72%; width: 120px; opacity: .22; animation-duration: 64s; animation-delay: -48s; }
.seal-4 .seal-bob  { animation-duration: 6.5s; animation-delay: -1s; }
.seal-4 .seal-flop { animation-duration: 2.2s; }

.seal-5 { top: 88%; width: 200px; opacity: .19; animation-duration: 80s; animation-delay: -62s; }
.seal-5 .seal-bob  { animation-duration: 8.5s; animation-delay: -3s; }
.seal-5 .seal-flop { animation-duration: 3s; animation-delay: -1.5s; }

.seal-6 { top: 44%; width: 95px;  opacity: .24; animation-duration: 50s; animation-delay: -22s; }
.seal-6 .seal-bob  { animation-duration: 5.5s; }
.seal-6 .seal-flop { animation-duration: 1.9s; animation-delay: -0.5s; }

@media (max-width: 640px) {
  .seal-3, .seal-5 { display: none; }
  .seal { opacity: .15; }
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(14px);
  background: rgba(7,9,15,0.55);
  border-bottom: 1px solid var(--card-line);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}

.brand-dot { color: var(--lime); }

.topnav {
  display: flex;
  gap: 1.3rem;
  font-size: 0.9rem;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s;
}

.topnav a:hover { color: var(--lime); }

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

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 5rem) clamp(1.1rem, 4vw, 2rem) 4rem;
}

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

.hero { text-align: center; }

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--lime);
}

/* logo + wordmark sit on one line; the lockup owns the size, so the logo
   can be exactly as tall as the text by using 1em of the same font-size */
.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.26em;
  font-size: clamp(1.7rem, 6.4vw, 4.4rem);
}

/* phones: shrink a touch more so JIMMSTER STUDIOS still fits on one line */
@media (max-width: 430px) {
  .brand-lockup { font-size: clamp(1.25rem, 7.2vw, 1.7rem); gap: 0.2em; }
}

.lockup-logo {
  flex: none;
  display: block;
  height: 1em;
  width: auto;
  filter: drop-shadow(0 0 18px rgba(182,255,46,0.35));
}

.wordmark {
  position: relative;
  margin: 0;
  white-space: nowrap;
  font-size: 1em;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, var(--lime), var(--cyan) 45%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 32px rgba(182,255,46,0.26));
}

/* glitchy echo behind the wordmark */
.wordmark::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--magenta);
  opacity: 0.32;
  -webkit-text-fill-color: var(--magenta);
  animation: glitch 5.5s steps(1) infinite;
}

@keyframes glitch {
  0%, 92%, 100% { transform: translate(0, 0); opacity: 0.18; }
  93%  { transform: translate(-4px, 2px);  opacity: 0.5; }
  95%  { transform: translate(5px, -3px);  opacity: 0.35; }
  97%  { transform: translate(-2px, -1px); opacity: 0.5; }
}

.tagline {
  margin: 1.2rem auto 2.4rem;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  color: var(--muted);
}

.face { color: var(--lime); font-weight: 700; }

/* ---------- call-to-action buttons ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 270px;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-line);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.2s;
}

.cta strong { display: block; font-size: 1.02rem; }
.cta small  { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 2px; }

.cta .ico { width: 30px; height: 30px; flex: none; }

.cta:hover { transform: translateY(-4px); }

.cta-yt .ico { fill: var(--yt); }
.cta-yt:hover {
  border-color: var(--yt);
  box-shadow: 0 14px 40px -12px rgba(255,45,45,0.65);
}

.cta-dc .ico { fill: var(--dc); }
.cta-dc:hover {
  border-color: var(--dc);
  box-shadow: 0 14px 40px -12px rgba(88,101,242,0.7);
}

/* ---------- stats ---------- */

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.4rem, 6vw, 3.4rem);
  margin: 3.2rem 0 0;
  padding: 0;
  list-style: none;
}

.stats li { text-align: center; }

.stats b {
  display: block;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  font-weight: 800;
  color: var(--lime);
}

.stats span {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.panel {
  margin-top: clamp(3.5rem, 9vw, 6rem);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--card-line);
  border-radius: calc(var(--radius) + 8px);
  background: var(--card);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.panel.in { opacity: 1; transform: none; }

.panel h2 {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--magenta);
}

.lede {
  margin: 0 0 1.6rem;
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.6;
}

/* ---------- video player ---------- */

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-line);
  background: #000;
}

.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ghost-btn {
  display: inline-block;
  margin-top: 1.3rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ghost-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(182,255,46,0.07);
}

/* ---------- game chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chip {
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--card-line);
  background: rgba(255,255,255,0.03);
  font-size: 0.92rem;
  transition: transform 0.16s, border-color 0.2s, color 0.2s;
}

.chip:hover {
  transform: translateY(-3px) rotate(-1.5deg);
  border-color: var(--cyan);
  color: var(--cyan);
}

.chip-more {
  border-style: dashed;
  color: var(--muted);
}

/* ---------- join panel ---------- */

.panel-join {
  text-align: center;
  border-color: rgba(88,101,242,0.45);
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(88,101,242,0.22), transparent 70%),
    var(--card);
}

.panel-join h2 { justify-content: center; }
.panel-join .lede { margin-inline: auto; }

.big-join {
  display: inline-block;
  padding: 1rem 2.4rem;
  border-radius: 999px;
  background: var(--dc);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 16px 44px -14px rgba(88,101,242,0.9);
  transition: transform 0.18s, filter 0.18s;
}

.big-join:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.1); }

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

footer {
  padding: 3rem 1rem 3.5rem;
  text-align: center;
  border-top: 1px solid var(--card-line);
}

.foot-links {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.foot-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot-links a:hover { color: var(--lime); border-color: var(--lime); }

.foot-note {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- motion preferences ---------- */

/* ---------- the rare floating chonk ---------- */

.chonk {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: auto;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.6));
  animation: chonk-fade-in 3s ease forwards;
}

@keyframes chonk-fade-in {
  to { opacity: 0.9; }
}

@media (max-width: 640px) {
  .chonk { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .panel { opacity: 1; transform: none; }
  .seals { display: none; }
  .chonk { display: none; }
}
