@import url("/assets/unicode-fallback.css?v=202611170330");
/* Sentient Vending Machine Lament · Living ASCII house */
:root {
  --bass: 0;
  --neon-pink: #ff4fd8;
  --neon-cyan: #4ff5ff;
  --neon-amber: #ffc46b;
  --lobby: #060608;
  --power: 1;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  min-height: 100%;
  background: var(--lobby);
  font-family: "Courier New", ui-monospace, Menlo, monospace;
  color: #cfc8d8;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}
body.copy-select, body.copy-select .copy { user-select: text; -webkit-user-select: text; }

.ascii-back {
  position: fixed; top: 12px; right: 14px; z-index: 20;
  font: 11px/1.4 Menlo, ui-monospace, monospace;
  letter-spacing: .08em; text-transform: uppercase;
  color: #8aa0b8; text-decoration: none;
  border: 1px solid rgba(255, 79, 216, .35);
  background: rgba(6, 2, 20, .84);
  padding: 6px 10px; border-radius: 14px;
}
.ascii-back:hover { color: var(--neon-amber); border-color: var(--neon-amber); }

#scene {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2.2vmin;
  overflow: hidden;
}
.floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30vh;
  background: linear-gradient(to bottom, rgba(20,16,28,0) 0%, rgba(24,18,32,.55) 60%, rgba(10,8,14,.9) 100%);
  pointer-events: none;
}
.cone {
  position: absolute; top: 0; left: 50%;
  width: 46vmin; height: 34vh;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(255,236,200,.16), rgba(255,236,200,0));
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  filter: blur(2px);
  opacity: calc(var(--power) * .9);
  transition: opacity 1.6s;
}
.cone.flicker { animation: flicker 4.2s infinite; }
@keyframes flicker {
  0%, 100% { opacity: calc(var(--power) * .9); }
  92% { opacity: calc(var(--power) * .9); }
  93% { opacity: calc(var(--power) * .25); }
  94% { opacity: calc(var(--power) * .8); }
  96% { opacity: calc(var(--power) * .4); }
}

.marquee {
  font-size: clamp(12px, 2.2vmin, 18px);
  letter-spacing: .4em;
  text-indent: .4em;
  color: #8f86a0;
  text-transform: uppercase;
  opacity: .75;
  transition: opacity 1.6s, color 1.6s;
  text-align: center;
  max-width: 92vw;
  padding: 0 4vw;
}
.marquee b { color: var(--neon-amber); font-weight: normal; }
.lit .marquee { color: #e8ddc8; }

.machine-wrap { position: relative; }
.machine {
  position: relative;
  width: min(46vmin, 46vw, 340px);
  aspect-ratio: 10 / 16;
  background: linear-gradient(160deg, #16121d 0%, #0d0a12 55%, #09070c 100%);
  border: 1px solid #2a2436;
  border-radius: 10px 10px 6px 6px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.6),
    0 24px 60px rgba(0,0,0,.75),
    0 0 60px calc(var(--bass) * 22px) rgba(255,79,216, calc(.05 + var(--bass) * .10));
  padding: 4.5% 5%;
  display: flex; flex-direction: column; gap: 4%;
  filter: brightness(calc(.55 + var(--power) * .45));
  transition: filter 1.4s;
}
.machine::before {
  content: ""; position: absolute; inset: -2px;
  border: 2px solid rgba(255,79,216,0);
  border-radius: 12px 12px 8px 8px;
  box-shadow: 0 0 18px rgba(255,79,216,0), inset 0 0 18px rgba(79,245,255,0);
  transition: border-color 1.2s, box-shadow 1.2s;
  pointer-events: none;
}
.lit .machine::before {
  border-color: rgba(255,79,216,.85);
  box-shadow:
    0 0 22px rgba(255,79,216, calc(.35 + var(--bass) * .45)),
    inset 0 0 22px rgba(79,245,255, calc(.12 + var(--bass) * .2));
}

.plate {
  text-align: center;
  font-size: clamp(9px, 1.7vmin, 13px);
  letter-spacing: .34em; text-indent: .34em;
  text-transform: uppercase;
  color: #6a6278;
  transition: color .9s;
  white-space: nowrap; overflow: hidden;
}
.lit .plate { color: var(--neon-pink); text-shadow: 0 0 10px rgba(255,79,216,.8); }

.window {
  flex: 1.35;
  border: 1px solid #2e2840;
  border-radius: 4px;
  background:
    linear-gradient(105deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,0) 30%),
    linear-gradient(to bottom, #0a0910, #100c18);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 24px rgba(0,0,0,.8);
}
.rack {
  position: absolute; inset: 7% 9%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 7%;
  align-content: space-evenly;
}
.can {
  border-radius: 3px 3px 2px 2px;
  background: #191422;
  border: 1px solid #241d30;
  position: relative;
  transition: border-color 1s, box-shadow 1s;
}
.can::after {
  content: ""; position: absolute; left: 18%; right: 18%; top: 22%; bottom: 22%;
  border-radius: 2px; background: transparent; transition: opacity 1s, box-shadow 1s;
  opacity: 0;
}
.lit .can { border-color: #3a3050; box-shadow: 0 0 6px rgba(0,0,0,.4); }
.lit .can::after { opacity: calc(.35 + var(--bass) * .65); }
.lit .can:nth-child(4n+1)::after { box-shadow: 0 0 9px rgba(255,79,216,.7); }
.lit .can:nth-child(4n+2)::after { box-shadow: 0 0 9px rgba(79,245,255,.7); }
.lit .can:nth-child(4n+3)::after { box-shadow: 0 0 9px rgba(255,196,107,.7); }
.lit .can:nth-child(4n+4)::after { box-shadow: 0 0 9px rgba(157,255,107,.7); }
.can:nth-child(4n+1)::after { background: var(--neon-pink); }
.can:nth-child(4n+2)::after { background: var(--neon-cyan); }
.can:nth-child(4n+3)::after { background: var(--neon-amber); }
.can:nth-child(4n+4)::after { background: #9dff6b; }
.can.empty { background: transparent; border-style: dashed; }
.can.empty::after { display: none; }
.window::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.07) 12%, rgba(255,255,255,0) 26%, rgba(255,255,255,0) 68%, rgba(255,255,255,.04) 82%);
  pointer-events: none;
}

.slot-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6%;
}
.price {
  font-size: clamp(8px, 1.6vmin, 12px);
  letter-spacing: .2em;
  color: #554d63;
  transition: color .9s;
}
.lit .price { color: var(--neon-amber); text-shadow: 0 0 8px rgba(255,196,107,.6); }

.coin-btn {
  font-family: inherit;
  font-size: clamp(9px, 1.8vmin, 14px);
  letter-spacing: .22em; text-indent: .22em;
  text-transform: uppercase;
  color: #9a90aa;
  background: linear-gradient(to bottom, #17131f, #0e0b14);
  border: 1px solid #37304a;
  border-radius: 4px;
  padding: 1.6% 4%;
  cursor: pointer;
  transition: border-color .3s, color .3s;
  animation: idle-blink 2.4s infinite;
}
@keyframes idle-blink { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.lit .coin-btn { animation: none; }
.coin-btn:hover { border-color: var(--neon-amber); color: var(--neon-amber); }
.coin-btn:active { transform: translateY(1px); }
.dead .coin-btn { animation: none; opacity: .55; border-color: #241f30; color: #4a4356; }

.slot {
  width: 12%; aspect-ratio: 1 / 2.2;
  border: 1px solid #2e2840; border-radius: 3px;
  background: #08060c;
  box-shadow: inset 0 0 6px rgba(0,0,0,.9);
  position: relative;
}
.slot::after {
  content: ""; position: absolute; left: 50%; top: 15%; bottom: 15%;
  width: 2px; transform: translateX(-50%);
  background: #1c1826;
}

.coin-return {
  margin-top: auto;
  align-self: center;
  width: 26%; height: 4.5%;
  border: 1px solid #241f30; border-radius: 3px;
  background: #0a0810;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.9);
}

.machine-wrap::after {
  content: ""; position: absolute; left: 8%; right: 8%; top: 100%; height: 22%;
  background: linear-gradient(to bottom, rgba(255,79,216, calc(.04 + var(--bass) * .07)), rgba(0,0,0,0));
  filter: blur(6px);
  pointer-events: none;
}

.now {
  min-height: 3.2vmin;
  font-size: clamp(10px, 1.9vmin, 14px);
  letter-spacing: .28em; text-indent: .28em;
  color: #3f3950;
  text-transform: lowercase;
  transition: color 1.2s;
  text-align: center;
  max-width: 92vw;
  padding: 0 4vw;
}
.lit .now { color: #7f7492; }
.now .title { color: var(--neon-cyan); text-shadow: 0 0 8px rgba(79,245,255,.5); }

.dying .cone, .dead .cone { animation: none; opacity: 0; }
.dying .marquee, .dead .marquee { opacity: .12; }
.dying .machine, .dead .machine { filter: brightness(.18); }
.dying .machine::before, .dead .machine::before { border-color: rgba(255,79,216,.06); box-shadow: none; }
.dying .plate, .dying .price, .dead .plate, .dead .price { color: #35303f; text-shadow: none; }
.dying .can::after, .dead .can::after { opacity: 0; }
.dying .now, .dead .now { color: #2e2a3a; }
.dying .machine { animation: power-cut 1.8s steps(1) 1; }
@keyframes power-cut {
  0% { filter: brightness(.7); }
  6% { filter: brightness(.12); }
  9% { filter: brightness(.5); }
  13% { filter: brightness(.08); }
  17% { filter: brightness(.3); }
  26% { filter: brightness(.18); }
  100% { filter: brightness(.16); }
}

.ember {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1.6vmin;
  opacity: 0; pointer-events: none;
  transition: opacity 2.4s 1.2s;
}
.dead .ember { opacity: 1; pointer-events: auto; }
.ember .sigil { font-size: clamp(18px, 3.6vmin, 30px); color: #6b6280; }
.ember .again {
  font-family: inherit;
  background: none; border: none; cursor: pointer;
  font-size: clamp(10px, 2vmin, 14px);
  letter-spacing: .3em; text-indent: .3em;
  text-transform: lowercase;
  color: #56506a;
  transition: color .6s;
}
.ember .again:hover { color: var(--neon-amber); }
.ember .hint { font-size: clamp(8px, 1.5vmin, 11px); letter-spacing: .2em; color: #34303f; }

.hint-line {
  position: absolute; bottom: 2.4vmin; left: 0; right: 0;
  text-align: center;
  font-size: clamp(8px, 1.5vmin, 11px);
  letter-spacing: .3em; text-indent: .3em;
  color: #2c2838;
  transition: opacity 1.5s;
  padding: 0 4vw;
}
.lit .hint-line, .dead .hint-line { opacity: 0; }

.copy {
  position: relative;
  z-index: 2;
  max-width: 44rem;
  margin: 0 auto;
  padding: 5.5rem 5vw 12vmin;
  color: #cfc8d8;
  overflow-x: hidden;
}
.copy h1 {
  font: 400 clamp(28px, 7vw, 44px)/1.15 "Courier New", ui-monospace, monospace;
  color: #e8ddc8;
  letter-spacing: .04em;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}
.copy .bg { font-size: 1.05rem; line-height: 1.65; color: #b9b0c6; margin: 0 0 1rem; }
.copy .bg + .bg { margin-top: 0; }
.copy h2 {
  font: 400 0.95rem/1.4 inherit;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--neon-amber);
  margin: 2.4rem 0 0.8rem;
}
.copy a { color: var(--neon-cyan); text-decoration: none; }
.copy a:hover { color: var(--neon-amber); }
.lyrics {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font: 0.92rem/1.65 inherit;
  color: #d4ccdc;
  margin: 0 0 1.2rem;
}
.lyrics .label { color: var(--neon-pink); letter-spacing: .08em; }
.more { margin: 0 0 2rem; color: #8f86a0; font-size: 0.95rem; line-height: 1.6; }

.yt-poster {
  display: block;
  position: relative;
  margin: 2rem 0 0;
  max-width: 100%;
  border: 1px solid #2a2436;
  border-radius: 8px;
  overflow: hidden;
  color: inherit;
  background: #0a0810;
}
.yt-poster img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.yt-poster .play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.6rem;
  background: rgba(6, 6, 8, .28);
  color: #e8ddc8;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: clamp(11px, 2.2vw, 14px);
  text-align: center;
  padding: 1rem;
}
.yt-poster .play b {
  display: inline-block;
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  border: 2px solid #e8ddc8;
  background: rgba(6, 6, 8, .55);
  color: #e8ddc8;
  font-size: 1.15rem;
  line-height: 3rem;
  text-indent: 0.15em;
  font-weight: 400;
}
.yt-poster:hover .play { background: rgba(6, 6, 8, .42); color: var(--neon-amber); }
.yt-poster:hover .play b { border-color: var(--neon-amber); color: var(--neon-amber); }

@media (max-width: 430px) {
  .marquee { letter-spacing: .16em; text-indent: 0; font-size: 11px; }
  .machine { width: min(70vw, 280px); }
  .now { letter-spacing: .12em; text-indent: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cone.flicker, .coin-btn, .dying .machine { animation: none; }
  .cone, .machine, .plate, .price, .can, .can::after, .now, .marquee, .ember, .hint-line, .machine::before {
    transition: none;
  }
}
/* Unicode fallback (fonts branch): keep Courier New, add the shared fallback chain after it. */
html, body{font-family:"Courier New",ui-monospace,Menlo,var(--fx-fallback),monospace}
