:root {
  --bg: #030708;
  --panel: rgba(4, 10, 10, .92);
  --green: #78f4c1;
  --green-strong: #45e6a4;
  --line: rgba(145, 255, 210, .56);
  --white: #f5f7f6;
  --muted: #aeb8b4;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--white); }
body { font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; overflow-x: hidden; }
button, a { font: inherit; }

.desktop-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(21, 119, 84, .08), transparent 34%),
    #020607;
}

.artboard {
  position: relative;
  width: min(100vw, 1672px);
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  background: #050909;
  isolation: isolate;
}

.artwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 52%, transparent 30%, rgba(0,0,0,.13) 66%, rgba(0,0,0,.28) 100%);
  pointer-events: none;
}

.machine-screen {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  color: var(--green);
  text-align: center;
  text-shadow: 0 0 14px rgba(95, 255, 188, .6);
  background:
    linear-gradient(180deg, rgba(18, 41, 31, .82), rgba(4, 13, 10, .94)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 4px);
  border: 1px solid rgba(124,255,194,.42);
  box-shadow:
    inset 0 0 32px rgba(67, 245, 168, .13),
    0 0 18px rgba(49, 226, 148, .12);
  backdrop-filter: blur(2px);
}

.machine-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 26%, rgba(255,255,255,.07) 46%, transparent 61%);
  transform: translateX(-120%);
  pointer-events: none;
}

.machine-screen.is-spinning::after { animation: scan .55s linear infinite; }
.machine-screen.is-spinning .screen-value,
.machine-screen.is-spinning .screen-kicker,
.machine-screen.is-spinning .screen-icon { animation: reel .12s linear infinite; }

.machine-screen--water {
  left: 40.7%;
  top: 35.7%;
  width: 19.8%;
  height: 18.4%;
  border-radius: 8px;
}
.machine-screen--method {
  left: 27.0%;
  top: 63.9%;
  width: 14.7%;
  height: 13.8%;
  border-radius: 7px;
}
.machine-screen--fish {
  left: 58.2%;
  top: 63.9%;
  width: 14.4%;
  height: 13.8%;
  border-radius: 7px;
}

.screen-kicker {
  font-size: clamp(11px, 1.2vw, 20px);
  font-weight: 800;
  letter-spacing: .05em;
  margin-bottom: .2em;
}
.screen-icon { font-size: clamp(14px, 1.5vw, 26px); margin-bottom: .25em; opacity: .88; }
.screen-value {
  font-size: clamp(16px, 1.8vw, 31px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: .025em;
}
.screen-value--water { font-size: clamp(24px, 3.4vw, 58px); color: #f0f4f2; text-shadow: 0 2px 0 #000, 0 0 20px rgba(99,255,190,.25); }

.draw-hotspot {
  position: absolute;
  z-index: 8;
  left: 44.0%;
  top: 63.2%;
  width: 10.7%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(127,255,201,.62);
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(17,34,28,.94) 0 45%, rgba(4,10,8,.91) 63%, rgba(63,234,165,.15) 100%);
  box-shadow:
    0 0 0 5px rgba(82, 247, 176, .08),
    0 0 24px rgba(82, 247, 176, .28),
    inset 0 0 22px rgba(82, 247, 176, .17);
  transition: transform .18s ease, box-shadow .18s ease;
}
.draw-hotspot span {
  font-size: clamp(14px, 1.55vw, 27px);
  font-weight: 900;
  letter-spacing: .02em;
  text-shadow: 0 2px 3px #000;
}
.draw-hotspot:hover { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(82,247,176,.12), 0 0 38px rgba(82,247,176,.47), inset 0 0 26px rgba(82,247,176,.22); }
.draw-hotspot:active { transform: scale(.98); }
.draw-hotspot.is-spinning { animation: pulse 1s ease-in-out infinite; cursor: wait; }

.link-hotspot { position: absolute; z-index: 7; display: block; border-radius: 8px; }
.link-hotspot:hover { outline: 1px solid rgba(121,255,203,.65); box-shadow: 0 0 22px rgba(69,230,164,.22); }
.link-hotspot--top { right: 3.6%; top: 2.5%; width: 9.6%; height: 5.4%; }
.link-hotspot--cta { right: 6.5%; top: 65.1%; width: 17.6%; height: 6.2%; }

.draw-status {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 82.6%;
  transform: translateX(-50%);
  min-width: 250px;
  max-width: 40%;
  padding: 7px 14px;
  border: 1px solid rgba(115,246,191,.22);
  border-radius: 999px;
  color: rgba(200,255,231,.88);
  background: rgba(0,8,6,.62);
  backdrop-filter: blur(4px);
  text-align: center;
  font-size: clamp(9px, .92vw, 15px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.draw-status.show { opacity: 1; transform: translate(-50%, -4px); }

.mobile-stage { display: none; }

@keyframes reel {
  0% { transform: translateY(-5%); filter: blur(0); opacity: 1; }
  50% { transform: translateY(6%); filter: blur(2px); opacity: .72; }
  100% { transform: translateY(-5%); filter: blur(0); opacity: 1; }
}
@keyframes scan { to { transform: translateX(120%); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(82,247,176,.08), 0 0 24px rgba(82,247,176,.3), inset 0 0 22px rgba(82,247,176,.18); }
  50% { box-shadow: 0 0 0 8px rgba(82,247,176,.05), 0 0 48px rgba(82,247,176,.55), inset 0 0 30px rgba(82,247,176,.27); }
}

@media (max-width: 860px) {
  .desktop-stage { display: none; }
  .mobile-stage {
    position: relative;
    display: block;
    min-height: 100svh;
    padding: env(safe-area-inset-top) 18px calc(28px + env(safe-area-inset-bottom));
    overflow: hidden;
    background: #020607;
  }
  .mobile-bg {
    position: fixed;
    z-index: 0;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(1,6,7,.44), rgba(1,6,7,.87) 48%, #020607 85%),
      url("assets/hero-bg.png") 63% 50% / auto 100% no-repeat;
    filter: saturate(.85) brightness(.7);
    transform: scale(1.03);
  }
  .mobile-header, .mobile-hero, .mobile-machine, .mobile-cta { position: relative; z-index: 2; }
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 10px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .mobile-brand { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
  .mobile-brand-sub { color: var(--green); font-size: 11px; letter-spacing: .18em; margin-top: 2px; }
  .mobile-tiktok {
    color: #fff; text-decoration: none; font-weight: 800; font-size: 13px;
    padding: 9px 13px; border-radius: 8px; border: 1px solid rgba(117,255,201,.55);
    background: rgba(0,0,0,.45); box-shadow: 0 0 18px rgba(79,237,169,.15);
  }
  .mobile-hero { text-align: center; padding: 28px 8px 18px; }
  .build-pill { color: var(--green); font-size: 12px; letter-spacing: .18em; font-weight: 900; }
  .mobile-hero h1 { margin: 7px 0 7px; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(48px, 14vw, 74px); line-height: .9; letter-spacing: .01em; text-transform: none; text-shadow: 0 4px 0 rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.8); }
  .mobile-hero p { max-width: 480px; margin: 0 auto; color: #cbd2cf; line-height: 1.45; font-size: 14px; }

  .mobile-machine {
    margin: 8px auto 0;
    max-width: 520px;
    padding: 18px 14px 20px;
    border: 1px solid rgba(208, 219, 215, .28);
    border-radius: 22px;
    background:
      radial-gradient(circle at 50% 32%, rgba(48,215,150,.11), transparent 34%),
      linear-gradient(180deg, rgba(13,18,17,.97), rgba(3,8,7,.97));
    box-shadow: 0 18px 60px rgba(0,0,0,.58), inset 0 0 45px rgba(255,255,255,.02);
  }
  .metal-label {
    width: max-content; margin: -31px auto 9px; padding: 7px 28px;
    background: linear-gradient(#343b39, #151a19 55%, #080a0a);
    border: 1px solid #59605e; border-radius: 7px;
    box-shadow: 0 3px 0 #030404, inset 0 1px rgba(255,255,255,.12);
    font-weight: 900; letter-spacing: .05em; color: #f1f3f2;
  }
  .metal-label--small { margin: -25px auto 8px; padding: 5px 14px; font-size: 12px; }
  .mobile-screen {
    min-height: 92px; border-radius: 13px; border: 1px solid rgba(111,255,196,.55);
    display: grid; place-items: center; align-content: center;
    background: linear-gradient(180deg, rgba(20,51,38,.93), rgba(3,13,9,.97));
    box-shadow: inset 0 0 30px rgba(65,239,161,.16), 0 0 16px rgba(65,239,161,.11);
    color: var(--green); text-align: center; overflow: hidden;
  }
  .mobile-screen--main { min-height: 132px; }
  .mobile-screen span { font-size: 13px; letter-spacing: .12em; font-weight: 900; }
  .mobile-screen strong { margin-top: 4px; font-size: 28px; line-height: 1; text-shadow: 0 0 18px rgba(95,255,188,.38); }
  .mobile-screen--main strong { color: #f3f6f4; font-size: 52px; text-shadow: 0 3px 0 #000, 0 0 20px rgba(83,255,180,.25); }
  .mobile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
  .mobile-module { min-width: 0; }
  .mobile-module .mobile-screen strong { font-size: clamp(18px, 6.3vw, 27px); }
  .mobile-machine.is-spinning .mobile-screen strong,
  .mobile-machine.is-spinning .mobile-screen span { animation: reel .12s linear infinite; }
  .mobile-draw {
    width: 116px; aspect-ratio: 1; border-radius: 50%; margin: 18px auto 0; display: grid; place-items: center; align-content: center;
    border: 1px solid rgba(126,255,202,.65); color: #fff; cursor: pointer;
    background: radial-gradient(circle, #17211d 0 47%, #07100d 56%, #0b1712 68%, rgba(78,234,166,.27) 100%);
    box-shadow: 0 0 0 6px rgba(69,230,164,.08), 0 0 30px rgba(69,230,164,.32), inset 0 0 26px rgba(69,230,164,.18);
  }
  .mobile-draw span { font-size: 25px; font-weight: 900; line-height: .95; }
  .mobile-draw small { margin-top: 5px; font-size: 9px; letter-spacing: .16em; color: #c4d2cc; }
  .mobile-status { text-align: center; margin-top: 12px; font-size: 12px; color: var(--green); min-height: 16px; }
  .mobile-cta {
    max-width: 520px; margin: 18px auto 0; padding: 18px; text-align: center;
    background: rgba(3,8,7,.78); border: 1px solid rgba(255,255,255,.13); border-radius: 14px; backdrop-filter: blur(8px);
  }
  .mobile-cta h2 { margin: 0 0 8px; font-size: 20px; color: var(--green); }
  .mobile-cta p { margin: 0 0 15px; color: #c3cac7; line-height: 1.45; font-size: 14px; }
  .mobile-cta a {
    display: block; padding: 13px 14px; border-radius: 9px; color: var(--green); text-decoration: none; font-weight: 900; letter-spacing: .03em;
    border: 1px solid rgba(117,255,202,.62); background: rgba(13,42,31,.75); box-shadow: 0 0 20px rgba(70,233,165,.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
