@font-face {
  font-family: 'Sudo';
  src: url('fonts/sudo-webfont.woff2') format('woff2'),
       url('fonts/sudo-webfont.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #e4ff00;
  --dk-green: #00e37a;
  --bg-speed: 90s;
  --swap-every: 12s;
}
html, body {
  height: 100%;
  width: 100%;
  color: var(--yellow);
  overflow: hidden;
  position: relative;
  margin:0; 
  padding:0;
}


body {
    margin: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}



.mono {
  font: 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: .06em;
}

/* BACKGROUND */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;

      margin: calc(-1 * env(safe-area-inset-top)) calc(-1 * env(safe-area-inset-right)) 0 calc(-1 * env(safe-area-inset-left));
    padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
    background: #000;
    color: black;
}
.bg-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: kenburns var(--bg-speed) linear infinite;
  will-change: transform;
}
@keyframes kenburns {
  0% { transform: scale(1) }
  50% { transform: scale(1.05) translate(1%,-1%) }
  100% { transform: scale(1.1) translate(2%,-2%) }
}
.shade {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 50% 40%, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.48) 100%),
              linear-gradient(to bottom, rgba(0,0,0,.1), rgba(0,0,0,.7));
  pointer-events: none;
}

/* META */
.meta {
  position: fixed;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  border: 1px dashed rgba(228,255,0,.5);
  padding: 4px 7px;
  background: rgba(0,0,0,.4);
}

/* HERO LAYOUT */
.wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 12vh;
  text-align: center;
  z-index: 1; /* ensure above ambient bubbles */
}

/* modern browsers: prefer the “stable viewport” */
@supports (height: 100svh) {
  .wrap { min-height: 100svh; }
}

.title {
  font-family: 'Sudo', sans-serif;
  font-weight: 700;
  font-size: clamp(80px, 12vw, 130px);
  margin: 0 0 12px;
  text-shadow: 0 0 20px rgba(228,255,0,.25);
}

.tagline {
  margin: 0 0 24px;
  max-width: 520px;
  color: rgba(228,255,0,.88);
  text-transform: uppercase;
  padding: 0 34px;
}

.pill {
  background: #000;
  color: var(--yellow);
  border-radius: 999px;
  border: 2px solid var(--yellow);
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  transition: transform .1s ease;
}
.pill:hover {
  transform: translateY(-1px);
}


/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.modal.open { display: grid; }
.sheet {
  background: #000;
  border: 2px solid var(--yellow);
  border-radius: 16px;
  max-width: 380px;
  width: 100%;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 0 40px rgba(228,255,0,.15);
  position: relative;
}
@media (max-width: 480px) {
  .sheet {
    max-width: 320px;
    padding: 32px 24px;
  }
}
.sheet h3 { 
  margin: 0 0 32px;
  font-size: 22px;
  letter-spacing: .15em;
  color: var(--yellow);
}
.sheet input[type=email],
.sheet select {
  width: 100%;
  padding: 16px 20px;
  border-radius: 999px;
  border: 1px solid rgba(228,255,0,.3);
  background: #000;
  color: var(--yellow);
  margin-bottom: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  letter-spacing: .05em;
  text-align: center;
  transition: all .2s ease;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}
input[type=email]:focus,
select:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 20px rgba(228,255,0,.15);
}
input[type=email]::placeholder,
select option[value=""][disabled] {
  color: rgba(228,255,0,.35);
  text-transform: uppercase;
}
select option {
  background: #000;
  color: var(--yellow);
}
.smallnote { 
  font-size: 11px; 
  color: rgba(228,255,0,.5);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 28px;
}
.sheet form {
  margin-bottom: 0;
}
.sheet .pill {
  width: 100%;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 24px;
  background: var(--yellow);
  color: #000;
  border: none;
  box-sizing: border-box;
}
.sheet .pill:hover {
  background: #d4ef00;
}
#closeModal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid rgba(228,255,0,.3);
  border-radius: 50%;
  color: rgba(228,255,0,.6);
  padding: 0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all .2s ease;
}
#closeModal:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: rotate(90deg);
}

/* TICKER */
.ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 40px;
  background: #000;
  border-top: 1px solid rgba(228,255,0,.3);
  overflow: hidden;
  box-sizing: border-box;
}
.rail {
  display: flex;
  gap: 30px;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
}
.itm { opacity: .95; }
.dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-block;
  margin: 0 6px;
}
@keyframes marquee { to { transform: translateX(-50%) } }

/* BG Swap Glitch */
.glitch { animation: gl .28s steps(3) 1; }
@keyframes gl {
  33% { filter: contrast(1.1) saturate(1.2) }
  66% { transform: translateX(-1px) scale(1.005) }
  100% { transform: none; filter: none }
}

/* AMBIENT ATTACK BUBBLES */
.bubbles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bubble {
  position: absolute;
  background: #0d0f11;
  color: #e8ecef;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  padding: 12px 14px 18px;
  box-shadow: 0 6px 28px rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.3);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 260px;
  opacity: 0;
  transform: translateY(10px) scale(.96);
  animation: bubble-life var(--life, 6500ms) ease-in-out forwards;
}

/* Tail: subtle border + fill to match bubble */
.bubble::before,
.bubble::after { content: ""; position: absolute; width: 0; height: 0; pointer-events: none; }
.bubble::before {
  left: calc(50% - 9px);
  bottom: -12px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 12px solid rgba(255,255,255,.06); /* border color */
}
.bubble::after {
  left: calc(50% - 8px);
  bottom: -10px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #0d0f11; /* fill */
}
.bubble .att, .bubble .def, .bubble .team { color: #cfd5d9; }
.bubble .lbl { color: rgba(255,255,255,.45); margin-right: 6px; }
.bubble .pwr { color: var(--dk-green); font-weight: 700; text-shadow: 0 0 12px rgba(0,227,122,.25); }
.bubble .teams { display: block; margin: 0; }
.bubble .meta { display: block; opacity: .95; margin-top: 12px; }

@keyframes bubble-life {
  0%   { opacity: 0; transform: translateY(8px) scale(.96); }
  10%  { opacity: .95; transform: translateY(0) scale(1); }
  80%  { opacity: .95; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-6px) scale(.98); }
}

@media (max-width: 480px) {
  .bubble { max-width: 220px; font-size: 11px; padding: 14px 14px 22px; line-height: 1.5; }
  .bubble .meta { margin-top: 14px; }
}
