:root {
  --sky: oklch(80% 0.2 158);           /* ground behind the video while it loads: the mint of the backdrop */
  --sky-top: oklch(97% 0.02 160);
  --ink: oklch(22% 0.05 262);
  --white: oklch(98% 0.005 95);
  --pf-hi: oklch(89% 0.13 156);   /* pump.fun light green #86efac */
  --glass-bg: linear-gradient(150deg, oklch(1 0 0 / 0.26), oklch(1 0 0 / 0.08));
  --glass-brd: oklch(1 0 0 / 0.38);
  --glass-hi: inset 0 1px oklch(1 0 0 / 0.6), inset 0 -2px 4px oklch(20% 0.05 262 / 0.22);
  --glass-drop: 0 18px 45px oklch(20% 0.06 262 / 0.35);
  --ui: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--ui);
  color: var(--white);
  background: linear-gradient(180deg, var(--sky-top), var(--sky));
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button:focus-visible { outline: 3px solid var(--pf-hi); outline-offset: 3px; }

/* the cat is the site */
.wall { position: fixed; inset: 0; z-index: 0; background: url("/pumpcat-poster.jpg?v=4") center / cover no-repeat, linear-gradient(180deg, var(--sky-top), var(--sky)); }
.wall video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .wall video { display: none; } }

/* one screen: the name on top, the CA at the bottom, the cat between them */
.screen {
  position: relative; z-index: 1;
  height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: clamp(20px, 4vh, 44px) clamp(16px, 2.5vw, 40px) calc(clamp(18px, 3vh, 40px) + env(safe-area-inset-bottom));
  text-align: center;
}
.top { animation: rise 420ms var(--ease) both; }
.wordmark {
  font-weight: 800; font-size: clamp(60px, 9.5vw, 132px); line-height: 0.9; letter-spacing: -0.04em;
  font-variation-settings: "opsz" 96; text-transform: lowercase;
  color: var(--white);
  text-shadow: 0 3px 0 var(--ink), 0 12px 30px oklch(20% 0.06 262 / 0.45);
}

.dock {
  width: min(100%, 640px);
  padding: 12px; border-radius: 26px;
  background: var(--glass-bg); border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-hi), var(--glass-drop);
  backdrop-filter: blur(24px) saturate(125%); -webkit-backdrop-filter: blur(24px) saturate(125%);
  animation: rise 420ms var(--ease) 80ms both;
}
.ca {
  width: 100%;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  min-height: 64px; padding: 0 8px 0 20px; border-radius: 18px;
  background: oklch(20% 0.05 262 / 0.55); border: 1px solid var(--glass-brd);
  color: var(--white); font-family: var(--mono); cursor: pointer; text-align: left;
  transition: background 160ms var(--ease);
}
.ca:hover:not(:disabled) { background: oklch(20% 0.05 262 / 0.7); }
.ca:disabled { cursor: default; }
.ca-lab { font: 700 13px var(--mono); letter-spacing: 0.14em; color: var(--pf-hi); }
.ca-val { font: 500 16px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-val.is-empty { letter-spacing: 0.12em; opacity: 0.7; }
.ca-act { font: 800 14px var(--ui); letter-spacing: 0.08em; text-transform: uppercase; padding: 11px 16px; border-radius: 12px; background: var(--glass-bg); border: 1px solid var(--glass-brd); }
.ca:disabled .ca-act { opacity: 0.4; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .top, .dock { animation: none; } }

@media (max-width: 720px) {
  .dock { padding: 10px; border-radius: 22px; }
  .ca { min-height: 56px; padding: 0 6px 0 14px; gap: 10px; }
  .ca-val { font-size: 13px; }
  .ca-act { padding: 9px 12px; font-size: 13px; }
}
