:root{
  --panel-bg: url("assets/bg-plate.png");
  --bg-y: 20%;
  --drop: 240px;
  --iconReserve: 120px;

  --frame: rgba(120,255,210,.35);
  --frame2: rgba(120,255,210,.14);

  --orange: #ff9b3d;
  --blue: rgba(120,255,255,.95);
  --blueGlow: rgba(0,255,255,.22);
  --white: rgba(235,255,250,.92);

  --bg-brightness: 1.12;
  --bg-contrast: 1.06;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }

body{
  background:#050b09;
  font-family:"Press Start 2P", monospace;
  color: var(--white);
  display:block;
  overflow-y:auto;
  padding: 40px 0;
}

.panel{
  width: min(980px, 92vw);
  margin: 0 auto;
  position: relative;

  padding: 34px 34px calc(var(--iconReserve) + 24px) 34px;
  border-radius: 14px;
  overflow: hidden;

  background:
    linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.52)),
    var(--panel-bg);
  background-size: cover;
  background-position: center var(--bg-y);
  background-repeat: no-repeat;

  filter: brightness(var(--bg-brightness)) contrast(var(--bg-contrast));

  box-shadow:
    0 0 0 1px rgba(120,255,210,.22),
    0 0 34px rgba(0,255,170,.14),
    inset 0 0 120px rgba(0,0,0,.72);
}

/* banner */
.banner{
  border: 2px solid var(--frame);
  background: rgba(0,0,0,.10);
  box-shadow: inset 0 0 0 1px var(--frame2);
  padding: 16px 16px 14px;
  text-align:center;
  position:relative;
}

.banner::before{
  content:"";
  position:absolute;
  inset: 10px 12px;
  border: 1px solid rgba(120,255,210,.18);
  pointer-events:none;
}

.banner-title{
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--orange);
  line-height: 1.05;
}

.banner-stars{
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  opacity: .95;
  color: var(--white);
}

/* ticker */
.banner-ticker{
  margin-top: 10px;
  overflow:hidden;
  white-space: nowrap;
  color: var(--white);
  opacity: .95;
  border-top: 1px solid rgba(120,255,210,.14);
  padding-top: 10px;
}

.ticker-track{
  display:inline-flex;
  gap: 28px;
  align-items:center;
  /* slower by 25% (was 27.5s, now *1.25) and LEFT->RIGHT */
  animation: ticker 55.5s linear infinite;
}

.ticker-item{
  display:inline-block;
  font-size: 12px;
  letter-spacing: 2px;
}

/* LEFT -> RIGHT movement */
@keyframes ticker{
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

/* HUD */
.hud{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items:start;
}

.hud-block.right{
  justify-self: end;
  transform: translateY(6px);
}

.hud-label{
  color: var(--orange);
  letter-spacing: 2px;
  font-size: 16px;
}

.hud-value{
  margin-top: 6px;
  color: var(--white);
  letter-spacing: 1px;
  font-size: 16px;
}

.hud-link{
  display: block;
  text-decoration: none;
  color: inherit;
}

.hud-link:hover{
  text-shadow: 0 0 6px rgba(0,255,255,.6);
}

.hud-block.right .hud-label{ text-align:right; }
.hud-block.right .hud-value{ display:block; width:100%; text-align:center; }

.hud-center{
  text-align:center;
  padding-top: 2px;
  min-width: 220px;
}

.hud-mid{
  letter-spacing: 2px;
  font-size: 16px;
}
.hud-mid-orange{ color: var(--orange); }

.hud-mid-sub{
  margin-top: 2px;
  color: var(--white);
  letter-spacing: 2px;
  font-size: 16px;
}

/* spacing */
.drop-zone{ height: var(--drop); }
.center{ text-align:center; }

/* GAME OVER */
.gameover{
  font-size: 56px;
  letter-spacing: 2px;
  color: var(--blue);
  text-shadow: 0 0 12px var(--blueGlow), 0 0 26px rgba(0,255,255,.12);
  display:inline-block;
  position:relative;
  line-height: 1.05;
}

/* arcade glitch: occasional hits, not constant */
.glitch::before,
.glitch::after{
  content: attr(data-text);
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity: 0;
}

.glitch::before{
  color: rgba(255,70,190,.80);
  transform: translate(2px,0);
  animation: glitchHitA 5.2s infinite steps(1,end);
}

.glitch::after{
  color: rgba(0,255,255,.85);
  transform: translate(-2px,0);
  animation: glitchHitB 5.7s infinite steps(1,end);
}

@keyframes glitchHitA{
  0%, 86%, 100% { opacity: 0; clip-path: inset(0 0 0 0); transform: translate(2px,0); }
  88% { opacity: .70; clip-path: inset(10% 0 72% 0); transform: translate(5px,-1px); }
  90% { opacity: .35; clip-path: inset(44% 0 34% 0); transform: translate(1px,1px); }
  92% { opacity: .55; clip-path: inset(72% 0 10% 0); transform: translate(6px,0); }
}

@keyframes glitchHitB{
  0%, 84%, 100% { opacity: 0; clip-path: inset(0 0 0 0); transform: translate(-2px,0); }
  85% { opacity: .70; clip-path: inset(8% 0 74% 0); transform: translate(-5px,0); }
  87% { opacity: .35; clip-path: inset(52% 0 22% 0); transform: translate(-1px,1px); }
  89% { opacity: .55; clip-path: inset(76% 0 6% 0); transform: translate(-6px,-1px); }
}

/* LAUNCH ROW: coins outside button */
.launch-row{
  width: min(760px, 100%);
  margin: 18px auto 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
}


/* Launch button (centered) */
.btn-launch{
  flex: 1;
  max-width: 680px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 20px;
  margin: 0 auto;
  padding: 20px 22px;
  text-decoration:none;
  color: var(--white);
  font-size: 16px;
  letter-spacing: 1px;
  border: 2px solid var(--frame);
  box-shadow: inset 0 0 0 1px var(--frame2);
  background: rgba(0,0,0,.18);
}

.btn-launch:hover{ background: rgba(0,255,255,.06); }

.btn-coin{
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 18px;
}

.btn-coin-img{
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
  display:block;
}

.btn-label{
  white-space: nowrap;
}
.btn-text{
  white-space: nowrap;
}

/* Subcopy */
.subcopy{
  margin-top: 14px;
  margin-bottom: 36px;
}

.mmme{
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--blue);
  text-shadow: 0 0 10px rgba(0,255,255,.14);
}

.decentralized{
  margin-top: 10px;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--white);
}

/* Automation */
.automation{ margin-top: 6px; }

.auto-header{
  width: min(560px, 100%);
  margin: 0 auto 12px;
  padding: 12px 14px;
  text-align:center;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--blue);
  border: 2px solid var(--frame);
  box-shadow: inset 0 0 0 1px var(--frame2);
  background: rgba(0,0,0,.16);
}

.auto-box{
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 18px 20px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 30px;
  border: 2px solid var(--frame);
  box-shadow: inset 0 0 0 1px var(--frame2);
  background: rgba(0,0,0,.18);
}

.col{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.col li{
  position:relative;
  padding-left: 18px;
  letter-spacing: 1px;
  font-size: 14px;
  color: var(--white);
}

/* asterisk bullets */
.col li::before{
  content:"*";
  position:absolute;
  left:0;
  top: 0px;
  color: var(--white);
  opacity: .95;
}

/* footer buttons */
.footer-row{
  position:absolute;
  left:0; right:0;
  bottom: 18px;
  display:flex;
  justify-content:center;
  gap: 12px;
}

.footbtn{
  border: 2px solid var(--frame);
  box-shadow:
    inset 0 0 0 1px var(--frame2),
    0 0 18px rgba(0,255,255,.06);
  background: rgba(0,0,0,.16);
  text-decoration:none;
  color: var(--white);
  padding: 10px 12px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  transition: transform .12s ease, background .12s ease;
}

.footbtn:hover{
  transform: translateY(-1px);
  background: rgba(0,255,255,.06);
}

.footicon{
  font-size: 10px;
  letter-spacing: 1px;
}

/* Mobile */
@media (max-width: 680px){
  body{ padding: 18px 0; }

  .panel{
    padding: 20px 14px calc(var(--iconReserve) + 18px) 14px;
  }

  .banner-title{ font-size: 14px; }
  .banner-stars, .ticker-item{ font-size: 10px; }

  .ticker-track{ animation-duration: 44s; } /* slower on mobile */

  .hud{
    grid-template-columns: 1fr;
    text-align:center;
  }
  .hud-block.right{ justify-self:center; transform:none; }
  .hud-center{ min-width: unset; }

  :root{ --drop: 140px; }
  .gameover{ font-size: 34px; }

  .launch-row{
    width: 100%;
    gap: 10px;
  }

  .side-coin{ flex: 0 0 64px; }
  .side-coin-img{ width: 58px; }

  .btn-launch{
    font-size: 12px;
    padding: 14px 12px;
    gap: 12px;
  }

  .btn-coin-img{ width: 22px; height: 22px; }

