/* $ATM — Asset That Multiplies. One page, one machine. */

@font-face {
  font-family: 'Press Start 2P';
  src: url('../assets/fonts/press-start-2p.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'VT323';
  src: url('../assets/fonts/vt323.woff2') format('woff2');
  font-display: swap;
}

:root {
  --sky:        #62b1fd;
  --sky-hi:     #98d0ff;
  --ink:        #231a3a;   /* dark navy-purple outline, from the art */
  --purple:     #a855e8;
  --purple-deep:#5e2f96;
  --money:      #53da3b;
  --money-pale: #c9fd67;
  --cream:      #f5f7dc;
  --font-pixel: 'Press Start 2P', monospace;
  --font-term:  'VT323', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;               /* one page. no scroll. */
  background: var(--sky);
}

body {
  font-family: var(--font-pixel);
  -webkit-user-select: none;
  user-select: none;
}

/* ---- the scene ---- */
#scene {
  position: fixed;
  inset: 0;
  background: linear-gradient(var(--sky-hi), var(--sky)) center / cover no-repeat;
  background-image: url('../assets/scene-front.webp?v=3');   /* front-facing purple ATM in the penthouse; ?v bump busts CDN cache on scene change */
  background-size: cover;
  background-position: center;
}
#scene.dusk { background-image: url('../assets/scene-front.webp?v=3'); }

#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---- pixel text treatment: white fill, chunky ink outline (like the 2x in the art) ---- */
#top {
  position: fixed;
  top: clamp(14px, 4vh, 44px);
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}
#top h1 {
  font-size: clamp(40px, 9vw, 92px);
  color: #fff;
  letter-spacing: .04em;
  text-shadow:
    -4px 0 var(--ink), 4px 0 var(--ink), 0 -4px var(--ink), 0 4px var(--ink),
    -4px -4px var(--ink), 4px -4px var(--ink), -4px 4px var(--ink), 4px 4px var(--ink),
    0 9px 0 rgba(35, 26, 58, .45);
}
#tagline {
  margin-top: clamp(10px, 1.8vh, 18px);
  font-size: clamp(10px, 2vw, 20px);
  color: var(--money-pale);
  letter-spacing: .18em;
  text-shadow:
    -3px 0 var(--ink), 3px 0 var(--ink), 0 -3px var(--ink), 0 3px var(--ink),
    -3px -3px var(--ink), 3px -3px var(--ink), -3px 3px var(--ink), 3px 3px var(--ink);
}

/* ---- CA bar ---- */
#bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: clamp(5px, 1.6vh, 16px);
  display: flex;
  justify-content: center;
  padding: 0 10px;
}
#ca-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(720px, 96vw);
  padding: 10px 12px;
  background: rgba(35, 26, 58, .88);
  border: 3px solid var(--ink);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, .55),
    0 8px 0 rgba(35, 26, 58, .4);
  image-rendering: pixelated;
}
#ca-label {
  font-size: clamp(10px, 1.6vw, 14px);
  color: #fff;
  background: var(--purple);
  border: 2px solid var(--ink);
  padding: 6px 8px;
  flex: none;
}
#ca-text {
  font-family: var(--font-term);
  font-size: clamp(15px, 2.6vw, 24px);
  color: var(--money-pale);
  letter-spacing: .02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-user-select: all;
  user-select: all;
}
#ca-copy {
  font-family: var(--font-pixel);
  font-size: clamp(9px, 1.5vw, 13px);
  color: var(--ink);
  background: var(--money);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  padding: 8px 12px;
  cursor: pointer;
  flex: none;
  transition: transform .05s steps(1);
}
#ca-copy:hover { background: var(--money-pale); }
#ca-copy:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
#ca-copy.done { background: var(--cream); }
#ca-copy:focus-visible { outline: 3px dashed #fff; outline-offset: 2px; }
