/* EARLING HALJAK v2 — original styles */
:root {
  --red: #EF2B2D; --navy: #002868; --gold: #FFD34D;
  --bg: #06080d; --panel: #0d1118; --line: #1d2430;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: #fff; font-family: Inter, system-ui, sans-serif; overflow-x: hidden; }
.display { font-family: 'Luckiest Guy', 'Arial Black', Impact, sans-serif; font-weight: 400; letter-spacing: .02em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.red { color: var(--red); }

/* nav */
#nav { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 26px; background: rgba(6,8,13,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; cursor: pointer; }
.navlinks { display: flex; gap: 24px; font-weight: 700; font-size: 14px; }
.navlinks a:hover { color: var(--gold); }
.navlinks .hot { color: var(--red); }
.pill { background: #fff; color: #000; border-radius: 999px; padding: 10px 20px; font-weight: 800; font-size: 14px;
  transition: .15s; }
.pill:hover { background: var(--red); color: #fff; transform: translateY(-2px); }

/* hero */
.hero { min-height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 70px 20px; position: relative;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(239,43,45,.16), transparent 60%),
    radial-gradient(900px 420px at 85% 110%, rgba(0,40,104,.35), transparent 60%),
    var(--bg); }
.floaters img { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  border-radius: 50%; border: 2px solid rgba(255,255,255,.5); opacity: .5; filter: saturate(.9);
  animation: bob 5.5s ease-in-out infinite; animation-delay: var(--d); will-change: transform; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-26px) rotate(5deg); } }
.eyebrow { font-size: clamp(18px, 2.4vw, 26px); color: var(--gold); text-shadow: 2px 2px 0 #000; }
.hero h1 { font-size: clamp(64px, 13vw, 172px); line-height: .92; margin: 6px 0 4px;
  text-shadow: 5px 5px 0 var(--red), 10px 10px 0 rgba(0,40,104,.55); }
.sub { margin-top: 18px; letter-spacing: .22em; font-weight: 700; font-size: clamp(11px, 1.5vw, 15px); color: #cfd6e4; }
.cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.btn { border-radius: 999px; padding: 14px 28px; font-weight: 900; font-size: 15px; border: 2px solid #fff;
  transition: .15s; display: inline-block; cursor: pointer; }
.btn.solid { background: #fff; color: #000; }
.btn.ghost { color: #fff; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }
.contract { margin-top: 28px; display: flex; }
.contract code { background: #0c1017; border: 1px solid var(--line); border-right: 0; padding: 12px 18px;
  border-radius: 12px 0 0 12px; font-size: 13px; color: #b9c2d4; }
.contract button { background: #161c27; border: 1px solid var(--line); color: #fff; padding: 12px 16px;
  border-radius: 0 12px 12px 0; cursor: pointer; font-weight: 800; font-size: 13px; }
.contract button:hover { background: var(--red); }
.scrolldown { position: absolute; bottom: 22px; color: rgba(255,255,255,.5); animation: bob 2.2s infinite; }

/* marquee */
.marquee { overflow: hidden; background: #04060a; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.mtrack { display: flex; align-items: center; gap: 34px; padding: 11px 0; white-space: nowrap; width: max-content;
  animation: scroll 26s linear infinite; }
.mtrack span { font-family: 'Luckiest Guy', Impact, sans-serif; font-size: 21px; letter-spacing: .05em; }
.mtrack img { width: 28px; height: 28px; border-radius: 50%; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* sections */
section { padding: 96px 20px; max-width: 1150px; margin: 0 auto; }
section.wide { max-width: 1350px; }
h2 { font-size: clamp(38px, 6vw, 62px); text-align: center; margin-bottom: 18px; text-shadow: 4px 4px 0 rgba(0,40,104,.8); }
.lede { text-align: center; color: #aab3c5; max-width: 640px; margin: 0 auto 34px; line-height: 1.6; font-size: 15.5px; }

/* game */
.gamewrap { max-width: 980px; margin: 0 auto; }
#pitch { width: 100%; height: auto; border-radius: 18px; border: 3px solid #fff;
  box-shadow: 0 0 0 3px #000, 12px 14px 0 rgba(239,43,45,.85); cursor: crosshair; touch-action: none;
  background: #0d1420; }
.gamebar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.hint { color: #8f99ad; font-size: 13px; font-weight: 600; text-align: center; flex: 1; min-width: 220px; }
.chip { background: #10151f; border: 1px solid var(--line); color: #fff; border-radius: 999px; padding: 9px 16px;
  font-weight: 800; font-size: 13px; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--red); }
.chip.on { background: var(--red); border-color: var(--red); }

/* strips */
.strip img { width: 100%; }

/* vault */
.chips { display: flex; gap: 10px; justify-content: center; margin-bottom: 26px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.grid figure { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  cursor: zoom-in; transition: transform .18s, border-color .18s, box-shadow .18s; }
.grid figure:hover { transform: translateY(-6px) rotate(-.6deg); border-color: var(--red);
  box-shadow: 0 14px 30px rgba(0,0,0,.5); }
.grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.grid figcaption { padding: 11px 14px; font-weight: 800; font-size: 13.5px; color: #dfe5f0; }
.grid figure.hide { display: none; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: #04060a; border: 1px solid var(--line); border-radius: 20px; text-align: center;
  padding: 46px 16px; box-shadow: 8px 8px 0 rgba(13,17,24,.9); }
.stat .num { font-size: 54px; color: var(--red); text-shadow: 3px 3px 0 rgba(0,40,104,.7); }
.stat .lbl { letter-spacing: .22em; font-weight: 800; font-size: 12px; color: #9aa4b8; margin-top: 10px; }

/* buy */
.buywrap { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: center; }
.buywrap > img { border-radius: 18px; border: 3px solid #fff; box-shadow: 10px 10px 0 var(--red); }
.buy { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.step { background: #fff; color: #000; border-radius: 16px; padding: 22px; box-shadow: 7px 7px 0 var(--navy);
  transition: transform .15s; }
.step:hover { transform: translateY(-4px); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 14px; line-height: 1.55; color: #333; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 20px 46px; text-align: center; color: #8791a5;
  font-size: 12.5px; line-height: 1.7; }
footer .fine { max-width: 860px; margin: 0 auto 12px; }
footer .tiny { color: #5d6778; }

/* lightbox */
#lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(2,4,8,.93); display: none;
  align-items: center; justify-content: center; padding: 28px; }
#lightbox.open { display: flex; }
#lightbox img { max-width: min(92vw, 860px); max-height: 86vh; border-radius: 14px; border: 3px solid #fff; }
#lbClose { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 44px;
  cursor: pointer; line-height: 1; }

/* head rain easter egg */
.rainhead { position: fixed; top: -80px; z-index: 80; width: 54px; height: 54px; border-radius: 50%;
  pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(115vh) rotate(720deg); } }

@media (max-width: 920px) {
  .navlinks { display: none; }
  .buywrap { grid-template-columns: 1fr; }
  .buywrap > img { max-width: 320px; margin: 0 auto; }
  .buy { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .floaters img { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mtrack, .floaters img, .scrolldown { animation: none; }
}
