/* ================= TOKENS ================= */
:root {
  --blue: #1f4fff;
  --blue-2: #3d8bff;
  --orange: #ff9a2e;
  --ink: #1c2a6b;
  --red-ink: #c0392b;

  --f-hand: "Caveat", "Comic Sans MS", cursive;
  --f-marker: "Permanent Marker", "Caveat", cursive;
  --f-brand: "Orbitron", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.2, 0.9, 0.25, 1);
  --shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.6), 0 4px 8px rgba(0, 0, 0, 0.25);
  --shadow-lift: 0 50px 80px -20px rgba(0, 0, 0, 0.75), 0 10px 20px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: var(--f-body);
  color: #222;
  /* walnut desk: lamp light, vignette, plank seams, turbulence grain */
  background:
    radial-gradient(ellipse 60% 55% at 42% 38%, rgba(255, 196, 120, 0.22), transparent 70%),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.6) 100%),
    repeating-linear-gradient(180deg, transparent 0 246px, rgba(0, 0, 0, 0.4) 247px, rgba(255, 220, 170, 0.06) 249px, transparent 250px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0022 0.085' numOctaves='4' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.06 0 0 0 0 0.02 0 0 0 1.4 -0.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E"),
    linear-gradient(170deg, #7a4a29, #5b351c 60%, #4a2a15);
  background-size: auto, auto, auto, 1600px 1000px, auto;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

p,
h1,
h2,
dl,
dd,
ol,
ul {
  margin: 0;
}

/* ================= STAGE ================= */
/* Fixed 1600×1000 desk, scaled to fit the window (see main.js). */
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1600px;
  height: 1000px;
  transform: translate(-50%, -50%) scale(var(--k, 1));
  user-select: none;
}

.stage > [style*="--cx"] {
  position: absolute;
  left: calc(var(--cx) - var(--w) / 2);
  top: calc(var(--cy) - var(--h) / 2);
  width: var(--w);
  height: var(--h);
  transform: translate(0px, 0px) rotate(var(--r, 0deg)) scale(var(--s, 1));
}

.dim {
  position: absolute;
  inset: -800px;
  z-index: 40;
  background: rgba(14, 7, 2, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.dim.on {
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-out;
}

/* ================= FOCUSABLE ITEMS ================= */
.item {
  cursor: pointer;
  transition: transform 0.65s var(--ease);
}

.item:not(.is-open):hover {
  transform: translate(0px, -6px) rotate(var(--r, 0deg)) scale(calc(var(--s, 1) * 1.03));
}

.item.is-open {
  z-index: 60 !important;
  cursor: default;
  transform:
    translate(calc(800px - var(--cx) + var(--ox, 0px)), calc(500px - var(--cy) + var(--oy, 0px)))
    rotate(0deg)
    scale(var(--os, 1));
}

.item.is-closing {
  z-index: 55 !important;
}

.item:not(.is-open) .when-open {
  visibility: hidden;
  transition: visibility 0s 0.7s;
}

.put-back {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 90;
  padding: 10px 22px;
  font-family: var(--f-hand);
  font-weight: 700;
  font-size: 1.4rem;
  color: #2a1a0e;
  background: #fff6d8;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, 160%);
  transition: transform 0.35s var(--ease);
}

.put-back small {
  font-size: 1rem;
  opacity: 0.6;
}

body.focus .put-back {
  transform: translate(-50%, 0);
}

/* ================= TITLE TAPE ================= */
.title-tape {
  position: absolute;
  left: 34px;
  top: 22px;
  z-index: 20;
  padding: 10px 30px 8px;
  font-family: var(--f-marker);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.01em;
  color: #1d1d1d;
  background: rgba(238, 226, 190, 0.94);
  box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.5);
  transform: rotate(-2deg);
  clip-path: polygon(1% 8%, 0 30%, 1.5% 52%, 0 74%, 1% 100%, 99% 94%, 100% 70%, 98.6% 48%, 100% 26%, 99% 0);
}

.title-tape span {
  color: var(--blue);
}

/* ================= DECOR ================= */
.coffee-ring {
  --w: 190px;
  --h: 190px;
  z-index: 1;
  border-radius: 50%;
  border: 7px solid rgba(50, 22, 6, 0.32);
  border-left-color: rgba(50, 22, 6, 0.12);
  filter: blur(1px);
}

.pen {
  --w: 300px;
  --h: 18px;
  z-index: 4;
  border-radius: 9px 3px 3px 9px;
  background: linear-gradient(180deg, #4b63d8, #1b2a8b 55%, #0f1858);
  box-shadow: 0 8px 10px -4px rgba(0, 0, 0, 0.6);
}

.pen::before {
  content: "";
  position: absolute;
  right: -34px;
  top: 2px;
  border-left: 36px solid #e9d8b8;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.pen::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 7px;
  width: 8px;
  height: 4px;
  border-radius: 2px;
  background: #111;
}

.pen i {
  position: absolute;
  left: 40px;
  top: -5px;
  width: 90px;
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(#e8ebf2, #9aa1b2);
}

.sticker {
  --w: var(--size, 92px);
  --h: var(--size, 92px);
  z-index: 2;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 6px 10px -2px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

.sticker-text {
  --w: auto;
  --h: auto;
  display: inline-block;
  padding: 8px 16px;
  font-family: var(--f-brand);
  font-weight: 800;
  font-size: 22px;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-radius: 14px;
  translate: -50% -50%;
  left: var(--cx) !important;
  top: var(--cy) !important;
}

.sticker-alt {
  font-size: 15px;
  color: #2a1300;
  background: linear-gradient(135deg, #ffc46b, var(--orange));
}

/* ================= POLAROIDS ================= */
.polaroid {
  --w: 220px;
  --h: 262px;
  --s: 0.78;
  --os: 2.3;
  z-index: 10;
  padding: 12px 12px 0;
  background: #fbfaf5;
  box-shadow: var(--shadow);
  cursor: grab;
  touch-action: none;
}

.polaroid img {
  width: 196px;
  height: 196px;
  object-fit: cover;
  background: #111;
  pointer-events: none;
}

/* wide-format instant print for the 3:2 scenes */
.polaroid.wide {
  --w: 288px;
  --h: 252px;
  --os: 2.2;
}

.polaroid.wide img {
  width: 264px;
  height: 176px;
}

.polaroid span {
  display: block;
  padding-top: 10px;
  font-family: var(--f-hand);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  color: #333;
  text-align: center;
}

.polaroid.dragging {
  cursor: grabbing;
  transition: none;
  transform: translate(0px, -8px) rotate(var(--r)) scale(calc(var(--s) * 1.06));
  box-shadow: var(--shadow-lift);
}

.polaroid.is-open {
  cursor: zoom-out;
  box-shadow: var(--shadow-lift);
}

/* ================= NOTEBOOK → ABOUT ================= */
.notebook {
  --w: 360px;
  --h: 470px;
  --s: 0.68;
  --os: 1.2;
  --ox: 216px;
  z-index: 4;
  perspective: 2200px;
}

.nb-page {
  position: absolute;
  inset: 0;
  padding: 38px 30px 24px 56px;
  font-family: var(--f-hand);
  font-size: 23px;
  line-height: 28px;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 42px, rgba(220, 60, 60, 0.45) 42px 44px, transparent 44px),
    repeating-linear-gradient(180deg, #fdfbf2 0 27px, #bcd3e8 27px 28px);
  background-position: 0 0, 0 10px;
  border-radius: 4px 14px 14px 4px;
  box-shadow: var(--shadow), inset 14px 0 18px -14px rgba(0, 0, 0, 0.35);
}

.nb-page h2 {
  margin-bottom: 10px;
  font-family: var(--f-marker);
  font-weight: 400;
  font-size: 28px;
  color: #b2361f;
}

.nb-page p + p {
  margin-top: 10px;
}

.nb-specs > div {
  display: flex;
  gap: 8px;
}

.nb-specs dt {
  flex: none;
  font-weight: 700;
}

.nb-specs dt::after {
  content: ":";
}

.nb-doodle {
  position: absolute;
  bottom: 26px;
  right: 30px;
  font-size: 24px;
  color: #b2361f;
  transform: rotate(-4deg);
}

.nb-cover {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease) 0.2s;
}

.nb-front,
.nb-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.nb-back {
  transform: rotateY(180deg);
  border-radius: 14px 4px 4px 14px;
  box-shadow: var(--shadow), inset -14px 0 18px -14px rgba(0, 0, 0, 0.35);
}

.nb-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #f1e9d6;
  text-align: center;
  background:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 15%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 85% 70%, #ffd29a, transparent),
    radial-gradient(1px 1px at 35% 85%, #9fc4ff, transparent),
    radial-gradient(ellipse at 30% 20%, rgba(61, 139, 255, 0.35), transparent 60%),
    linear-gradient(160deg, #1a2350, #0b1030);
  border-radius: 4px 14px 14px 4px;
  box-shadow: var(--shadow), inset 18px 0 14px -10px rgba(0, 0, 0, 0.6);
}

/* elastic band */
.nb-front::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 34px;
  width: 12px;
  background: linear-gradient(90deg, #a2391f, #e0613e, #a2391f);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.nb-front img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid #f1e9d6;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.nb-label {
  padding: 4px 14px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #0b1030;
  background: #f1e9d6;
  border-radius: 3px;
}

.nb-name {
  max-width: 240px;
  font-family: var(--f-brand);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
}

.nb-vol {
  font-family: var(--f-hand);
  font-size: 22px;
  opacity: 0.75;
}

.notebook.is-open .nb-cover {
  transform: rotateY(-180deg);
}

/* ================= CASSETTE ================= */
.cassette {
  --w: 250px;
  --h: 160px;
  --s: 0.82;
  z-index: 3;
  padding: 12px;
  background: linear-gradient(160deg, rgba(40, 40, 46, 0.96), rgba(18, 18, 22, 0.96));
  border-radius: 12px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease;
}

.cassette:hover {
  transform: translate(0, -4px) rotate(var(--r)) scale(calc(var(--s) * 1.03));
}

.cs-label {
  display: block;
  height: 100%;
  padding: 6px 12px;
  font-family: var(--f-marker);
  font-size: 18px;
  color: #1d1d1d;
  text-align: left;
  background: linear-gradient(180deg, #f3ead2 0 62%, var(--orange) 62% 72%, var(--blue-2) 72% 82%, #f3ead2 82%);
  border-radius: 6px;
}

.cs-label em {
  font-family: var(--f-hand);
  font-style: normal;
  font-size: 20px;
  color: var(--blue);
}

.cs-window {
  position: absolute;
  left: 50%;
  top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 140px;
  height: 46px;
  padding: 0 14px;
  background: rgba(20, 20, 24, 0.9);
  border-radius: 23px;
  transform: translateX(-50%);
}

.reel {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, #fff 0 10deg, transparent 10deg 120deg, #fff 120deg 130deg, transparent 130deg 240deg, #fff 240deg 250deg, transparent 250deg),
    radial-gradient(circle, #222 0 6px, #e9e4d8 7px 100%);
  border: 3px solid #e9e4d8;
}

.cs-side {
  position: absolute;
  left: 22px;
  bottom: 16px;
  font-family: var(--f-brand);
  font-weight: 800;
  font-size: 14px;
  color: #1d1d1d;
}

.cassette.playing .reel {
  animation: spin 1.4s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================= LAPTOP → DEXSCREENER ================= */
.laptop {
  --w: 680px;
  --h: 460px;
  --s: 0.72;
  --os: 1.3;
  z-index: 3;
}

.lid {
  height: 420px;
  padding: 16px;
  background: linear-gradient(180deg, #34363e, #1f2026);
  border-radius: 22px 22px 6px 6px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #07080c;
  border-radius: 8px;
}

.screen-off {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding-bottom: 26px;
  background: linear-gradient(125deg, #0b0d12 0 52%, #191c25 52% 66%, #0b0d12 66%);
}

.screen-off span {
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.22);
  text-transform: uppercase;
}

.screen-on {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  color: #e9edf5;
  background: #0b0e14;
  opacity: 0;
  transform: scaleY(0.01);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.laptop.is-open .screen-on {
  opacity: 1;
  transform: none;
  transition: opacity 0.1s ease 0.45s, transform 0.4s var(--ease) 0.45s;
}

.dx-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
}

.dx-bar img {
  border-radius: 50%;
}

.dx-tag {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9fe7c2;
  background: rgba(30, 200, 120, 0.15);
  border-radius: 6px;
}

.dx-live {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 12px;
  color: #8a93a8;
}

.dx-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d07a;
  box-shadow: 0 0 8px #22d07a;
}

.dx-chart {
  flex: 1;
  width: 100%;
  min-height: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 43px, rgba(255, 255, 255, 0.05) 43px 44px),
    #0e121b;
  border-radius: 8px;
}

.dx-actions {
  display: flex;
  gap: 10px;
}

.dx-btn {
  flex: 1;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: center;
  background: #1b2130;
  border: 1px solid #2c3448;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.dx-btn:hover {
  background: #252d40;
}

.dx-buy {
  color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--blue-2) 50%, var(--orange));
  border-color: transparent;
}

.dx-buy:hover {
  background: linear-gradient(120deg, var(--blue-2), var(--orange));
}

.base {
  position: relative;
  height: 30px;
  margin: 0 -44px;
  background: linear-gradient(180deg, #d6d8de, #9a9da6 70%, #6e7079);
  border-radius: 4px 4px 30px 30px / 4px 4px 22px 22px;
  box-shadow: var(--shadow);
}

.base i {
  position: absolute;
  left: 50%;
  top: 0;
  width: 130px;
  height: 9px;
  background: #8b8e97;
  border-radius: 0 0 10px 10px;
  transform: translateX(-50%);
}

/* ================= STICKY NOTES ================= */
.sticky {
  --w: 230px;
  --h: 230px;
  z-index: 6;
  padding: 26px 20px 20px;
  font-family: var(--f-hand);
  color: var(--ink);
  background: linear-gradient(170deg, #fff28f, #ffe25a);
  box-shadow: 0 16px 16px -12px rgba(0, 0, 0, 0.55), inset 0 -20px 30px -24px rgba(120, 90, 0, 0.5);
}

.sticky-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 96px;
  height: 28px;
  background: rgba(250, 248, 235, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%) rotate(-4deg);
}

.sticky-head {
  font-family: var(--f-marker);
  font-size: 22px;
  color: #222;
}

.sticky-ca-text {
  margin-top: 8px;
  padding-right: 60px;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.05;
  word-break: break-all;
  user-select: all;
}

/* --- CA highlight: marker sweep → circle → "copy me!" → glow --- */
.hl {
  padding: 0 2px;
  background: linear-gradient(100deg, rgba(255, 70, 170, 0) 0%, rgba(255, 70, 170, 0.55) 2%, rgba(255, 90, 180, 0.5) 98%, rgba(255, 70, 170, 0)) no-repeat 0 60% / 0% 78%;
  animation: hl-sweep 1.6s cubic-bezier(0.6, 0, 0.3, 1) 0.8s forwards;
}

@keyframes hl-sweep {
  to { background-size: 100% 78%; }
}

.ca-circle {
  position: absolute;
  left: 6px;
  top: 50px;
  width: 172px;
  height: 132px;
  overflow: visible;
  pointer-events: none;
}

.ca-circle path {
  fill: none;
  stroke: var(--red-ink);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.85;
  vector-effect: non-scaling-stroke;
  animation: draw 0.9s ease-in-out 2.5s forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.copy-me {
  position: absolute;
  right: 6px;
  top: 66px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--f-marker);
  font-size: 17px;
  line-height: 1;
  color: var(--red-ink);
  opacity: 0;
  transform: rotate(10deg);
  pointer-events: none;
  animation: fade-in 0.4s ease 3.3s forwards;
}

.copy-me svg {
  width: 34px;
  height: 34px;
  margin: 2px 14px 0 0;
}

@keyframes fade-in {
  to { opacity: 1; }
}

.sticky-ca::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  animation: ca-glow 2.6s ease-in-out 3.3s infinite;
}

@keyframes ca-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 230, 90, 0); }
  50% { box-shadow: 0 0 34px 10px rgba(255, 226, 90, 0.55), 0 0 80px 20px rgba(255, 120, 190, 0.25); }
}

.stamp {
  animation: nudge 4.5s ease-in-out 4s infinite;
}

.stamp:hover,
.stamp:active {
  animation: none;
}

@keyframes nudge {
  0%, 84%, 100% { transform: rotate(6deg) scale(1); }
  88% { transform: rotate(-8deg) scale(1.14); }
  92% { transform: rotate(10deg) scale(1.14); }
  96% { transform: rotate(-2deg) scale(1.05); }
}

.stamp {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 58px;
  height: 66px;
  padding: 6px;
  color: var(--red-ink);
  background: #fffaf0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 3px at 4px 4px, transparent 92%, #000) -4px -4px / 8px 8px;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 3px at 4px 4px, transparent 92%, #000) -4px -4px / 8px 8px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
  transform: rotate(6deg);
  transition: transform 0.15s ease;
}

.stamp::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.stamp svg {
  width: 22px;
  height: 22px;
}

.stamp small {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.stamp:hover {
  transform: rotate(-4deg) scale(1.1);
}

.stamp:active {
  transform: rotate(-4deg) scale(0.95);
}

.stamp-mark {
  position: absolute;
  left: 22px;
  bottom: 30px;
  padding: 2px 10px;
  font-family: var(--f-marker);
  font-size: 30px;
  color: var(--red-ink);
  border: 3px solid currentColor;
  border-radius: 6px;
  opacity: 0;
  transform: rotate(-14deg) scale(1.8);
  pointer-events: none;
  mix-blend-mode: multiply;
}

.stamped .stamp-mark {
  animation: stamp-in 2.4s ease forwards;
}

@keyframes stamp-in {
  0% { opacity: 0; transform: rotate(-14deg) scale(1.8); }
  10% { opacity: 0.85; transform: rotate(-14deg) scale(1); }
  80% { opacity: 0.85; transform: rotate(-14deg) scale(1); }
  100% { opacity: 0; transform: rotate(-14deg) scale(1); }
}

.sticky-todo {
  --w: 215px;
  --h: 215px;
  z-index: 5;
  background: linear-gradient(170deg, #ffb8d2, #ff9cc0);
}

.sticky-todo ul {
  margin-top: 6px;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.05;
}

.sticky-todo li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
}

.sticky-todo li::before {
  content: "☐";
  position: absolute;
  left: 0;
}

.sticky-todo s {
  opacity: 0.6;
}

/* ================= BUY STICKER ================= */
.buy-sticker {
  --w: 170px;
  --h: 170px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: conic-gradient(from 30deg, #8ec5ff, #d7a8ff, #ffd28e, #9ff3d0, #8ec5ff);
  border: 6px solid #fff;
  box-shadow: 0 10px 16px -6px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s var(--ease);
}

.buy-sticker img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 3px solid #fff;
}

.buy-sticker b {
  margin-top: -10px;
  padding: 4px 12px;
  font-family: var(--f-brand);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: #0b1640;
  border-radius: 999px;
}

.buy-sticker:hover {
  transform: translate(0, -4px) rotate(calc(var(--r) - 8deg)) scale(1.08);
}

/* ================= KEYBOARD ================= */
.keyboard {
  --w: 620px;
  --h: 220px;
  --s: 0.9;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: linear-gradient(180deg, #e3e5e9, #c6c9cf);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.kb-row {
  display: flex;
  gap: 6px;
  flex: 1;
}

.kb-key {
  flex: 1;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: #5a5d66;
  background: #f6f7f9;
  border-radius: 6px;
  box-shadow: 0 3px 0 #a5a8b0;
  transition: transform 0.06s ease, box-shadow 0.06s ease, background 0.2s ease;
}

.kb-key.wide {
  flex: 1.6;
}

.kb-key.space {
  flex: 6;
}

.kb-key.down {
  background: #ffe2b8;
  box-shadow: 0 1px 0 #a5a8b0;
  transform: translateY(2px);
}

/* ================= MAP → ROADMAP ================= */
.map {
  --w: 220px;
  --h: 170px;
  z-index: 5;
}

.map-packet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    linear-gradient(90deg, transparent 49.4%, rgba(0, 0, 0, 0.18) 50%, rgba(255, 255, 255, 0.2) 50.6%, transparent 51.2%),
    linear-gradient(180deg, transparent 49%, rgba(0, 0, 0, 0.14) 50%, transparent 51%),
    linear-gradient(135deg, #e3c995, #c9a66b);
  border-radius: 3px;
  box-shadow: var(--shadow);
  transition: opacity 0.25s ease 0.1s;
}

.map-stamp {
  padding: 2px 12px;
  font-family: var(--f-marker);
  font-size: 26px;
  color: var(--red-ink);
  border: 3px solid currentColor;
  border-radius: 4px;
  transform: rotate(-8deg);
  mix-blend-mode: multiply;
}

.map-hint {
  font-family: var(--f-hand);
  font-weight: 700;
  font-size: 18px;
  color: #5b3416;
}

.clip {
  position: absolute;
  top: -22px;
  right: 30px;
  width: 22px;
  height: 64px;
  color: #b9bdc6;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
}

.map.is-open .map-packet {
  opacity: 0;
  transition-delay: 0s;
}

.map-sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1120px;
  height: 640px;
  margin: -320px 0 0 -560px;
  font-family: var(--f-hand);
  color: #4a2a14;
  background:
    repeating-linear-gradient(90deg, transparent 0 276px, rgba(0, 0, 0, 0.13) 279px, rgba(255, 255, 255, 0.3) 280px),
    linear-gradient(180deg, transparent 49.6%, rgba(0, 0, 0, 0.12) 50%, rgba(255, 255, 255, 0.3) 50.3%, transparent 50.8%),
    radial-gradient(circle at 12% 18%, rgba(140, 90, 30, 0.22), transparent 18%),
    radial-gradient(circle at 88% 82%, rgba(140, 90, 30, 0.18), transparent 22%),
    radial-gradient(ellipse at center, #f3e6c3 40%, #dcc391);
  border-radius: 4px;
  box-shadow: var(--shadow-lift);
  clip-path: inset(36% 40% 36% 40%);
  opacity: 0;
  transition: clip-path 0.5s ease, opacity 0.2s ease 0.35s;
}

.map.is-open .map-sheet {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  transition: opacity 0.1s ease 0.15s, clip-path 0.9s var(--ease) 0.15s;
}

.map-sheet h2 {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  font-family: var(--f-marker);
  font-weight: 400;
  font-size: 42px;
  text-align: center;
  color: #5b2a12;
}

.map-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stops {
  padding: 0;
  list-style: none;
}

.stops li {
  position: absolute;
  left: var(--x);
  top: var(--y);
}

.stops li::before {
  content: "";
  position: absolute;
  left: -14px;
  top: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3e6c3;
  border: 4px solid #8a3b1c;
}

.stops li.stop-x::before {
  content: "✕";
  left: -24px;
  top: -30px;
  width: auto;
  height: auto;
  font-family: var(--f-marker);
  font-size: 48px;
  line-height: 1;
  color: var(--red-ink);
  background: none;
  border: 0;
}

.stops b,
.stops span {
  position: absolute;
  left: 0;
  width: 250px;
  text-align: center;
  transform: translateX(-50%);
}

.stops b {
  top: 26px;
  width: 320px;
  white-space: nowrap;
  font-family: var(--f-marker);
  font-weight: 400;
  font-size: 22px;
  color: #6b2410;
}

.stops span {
  top: 60px;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
}

.stops li.above b {
  top: auto;
  bottom: 84px;
}

.stops li.above span {
  top: auto;
  bottom: 26px;
}

.map-compass {
  position: absolute;
  right: 44px;
  bottom: 34px;
  font-family: var(--f-marker);
  font-size: 26px;
  line-height: 1.1;
  text-align: center;
  color: #8a3b1c;
}

/* ================= COFFEE ================= */
.mug {
  --w: 200px;
  --h: 200px;
  z-index: 6;
  border-radius: 50%;
  background: radial-gradient(circle, #f4f0e6 62%, #d8d0bf 69%, #fbf8f0 72%, #e4ddcd 100%);
  box-shadow: 0 18px 24px -10px rgba(0, 0, 0, 0.6);
}

.mug-coffee {
  position: absolute;
  inset: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 44% 40%, #93623a, #5c3418 58%, #3a1d0a);
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.6);
}

.mug-coffee .art {
  font-family: var(--f-hand);
  font-style: normal;
  font-weight: 700;
  font-size: 40px;
  color: rgba(245, 225, 190, 0.85);
  filter: blur(0.6px);
}

.mug-handle {
  position: absolute;
  right: -46px;
  top: 74px;
  z-index: -1;
  width: 70px;
  height: 52px;
  border-radius: 0 26px 26px 0;
  background: linear-gradient(180deg, #f4f0e6, #d6cebd);
  box-shadow: 0 10px 14px -6px rgba(0, 0, 0, 0.5);
}

.steam {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.steam i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.35), transparent 70%);
  filter: blur(6px);
  animation: steam 3.6s ease-in-out infinite;
}

.steam i:nth-child(2) { animation-delay: 1.2s; margin-left: -30px; }
.steam i:nth-child(3) { animation-delay: 2.4s; margin-left: 10px; }

@keyframes steam {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(0.6); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-30%, -140%) scale(1.3); }
}

.mug.stir .mug-coffee {
  animation: stir 1s var(--ease);
}

.mug.stir .art {
  animation: swirl 1s var(--ease);
}

@keyframes stir {
  30% { box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.6), 0 0 0 0 rgba(245, 225, 190, 0.5), inset 0 0 0 10px rgba(245, 225, 190, 0.2); }
}

@keyframes swirl {
  to { transform: rotate(360deg); }
}

/* ================= PHONE → SOCIALS ================= */
.phone {
  --w: 280px;
  --h: 570px;
  --s: 0.52;
  --os: 1.12;
  z-index: 7;
  padding: 10px;
  background: linear-gradient(160deg, #2a2b30, #0c0c0e);
  border-radius: 46px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.phone.is-open {
  box-shadow: var(--shadow-lift), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.ph-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 48px 16px 0;
  overflow: hidden;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  background:
    linear-gradient(180deg, rgba(5, 8, 22, 0.6), rgba(5, 8, 22, 0.35) 40%, rgba(5, 8, 22, 0.45) 60%, rgba(5, 8, 22, 0.8)),
    url("img/phone-wall.webp") center / cover,
    #050816;
  border-radius: 36px;
}

.ph-island {
  position: absolute;
  top: 12px;
  width: 92px;
  height: 26px;
  background: #000;
  border-radius: 999px;
}

.ph-time {
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ph-date {
  margin-top: 6px;
  font-weight: 600;
  font-size: 15px;
  opacity: 0.8;
}

.ph-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-height: 220px;
  margin-top: 22px;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), margin 0.5s var(--ease), opacity 0.3s ease;
}

.phone.is-open .ph-notes {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
}

.ph-note {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.ph-note b {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.ph-apps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}

.phone.is-open .ph-apps {
  opacity: 1;
  transform: none;
  transition-delay: 0.4s;
}

.ph-apps img {
  border-radius: 50%;
  border: 3px solid #fff;
}

.ph-name {
  font-family: var(--f-brand);
  font-weight: 800;
  font-size: 15px;
}

.ph-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  font-weight: 700;
  font-size: 15px;
  color: #000;
  text-shadow: none;
  background: #fff;
  border-radius: 14px;
  transition: transform 0.15s ease;
}

.ph-btn svg {
  width: 18px;
  height: 18px;
}

.ph-btn:hover {
  transform: scale(1.03);
}

.ph-tg {
  color: #fff;
  background: #2aabee;
}

.ph-bar {
  position: absolute;
  bottom: 8px;
  width: 110px;
  height: 5px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 3px;
}

/* ================= CALCULATOR → TOKENOMICS ================= */
.calc {
  --w: 300px;
  --h: 460px;
  --s: 0.6;
  --os: 1.1;
  --oy: 185px;
  z-index: 7;
}

.calc-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 20px 22px 22px;
  background: linear-gradient(170deg, #3a3d46, #24262c);
  border-radius: 26px;
  box-shadow: var(--shadow), inset 0 2px 0 rgba(255, 255, 255, 0.08);
}

.calc-brand {
  font-family: var(--f-brand);
  font-weight: 800;
  font-size: 14px;
  color: #d9dce3;
}

.calc-brand em {
  margin-left: 4px;
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.calc-solar {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 92px;
  height: 22px;
  background: repeating-linear-gradient(90deg, #3a2414 0 22px, #1d120a 22px 23px);
  border-radius: 3px;
}

.calc-lcd {
  display: block;
  height: 70px;
  padding: 10px 14px;
  overflow: hidden;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 26px;
  line-height: 50px;
  text-align: right;
  white-space: nowrap;
  color: #1f2618;
  background: linear-gradient(180deg, #a9b796, #c3cfae);
  border-radius: 8px;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.35);
}

.calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex: 1;
}

.calc-keys i {
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  color: #eceef2;
  background: linear-gradient(180deg, #555a66, #444852);
  border-radius: 10px;
  box-shadow: 0 3px 0 #1a1b1f;
}

.calc-keys i.op {
  color: #2a1300;
  background: linear-gradient(180deg, #ffb15c, var(--orange));
}

.calc-keys i.wide {
  grid-column: span 2;
}

.receipt {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: calc(100% - 26px);
  height: 0;
  overflow: hidden;
  background: #fffef7;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  -webkit-mask: radial-gradient(circle 6px at 50% 0, transparent 95%, #000) 0 0 / 14px 100%;
  mask: radial-gradient(circle 6px at 50% 0, transparent 95%, #000) 0 0 / 14px 100%;
  transition: height 0.3s ease;
}

.calc.is-open .receipt {
  height: 360px;
  transition: height 1.2s cubic-bezier(0.4, 0, 0.3, 1) 0.5s;
}

.receipt-inner {
  padding: 22px 16px 40px;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.3;
  color: #2b2b2b;
}

.receipt-inner p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.receipt-inner .rc-head,
.receipt-inner .rc-foot {
  display: block;
  text-align: center;
  font-weight: 600;
}

.receipt-inner .rc-head {
  padding-bottom: 10px;
  border-bottom: 2px dashed #bbb;
}

.receipt-inner .rc-total {
  padding-top: 8px;
  font-weight: 600;
  font-size: 15px;
  border-top: 2px dashed #bbb;
}

.receipt-inner .rc-foot {
  margin-top: 14px;
  font-size: 11px;
  color: #777;
}

/* ================= WALLET → HOW TO BUY ================= */
.wallet {
  --w: 320px;
  --h: 210px;
  --s: 0.75;
  --os: 1;
  --oy: 120px;
  z-index: 7;
}

.wallet-body {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255, 210, 160, 0.18), transparent 60%),
    linear-gradient(160deg, #73452a, #4c2a17);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.wallet-body::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(230, 180, 120, 0.55);
  border-radius: 13px;
}

/* card edges peeking out of the wallet */
.wallet-body::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 46px;
  width: 210px;
  height: 14px;
  background:
    linear-gradient(90deg, transparent 0 60px, #f7dc8a 60px 200px, transparent 200px) 0 6px / 100% 8px no-repeat,
    linear-gradient(90deg, #3d8bff, #1f2fb0);
  border-radius: 6px 6px 0 0;
}

.wallet-flap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.05));
  border-radius: 0 0 20px 20px;
  border-top: 2px solid rgba(0, 0, 0, 0.3);
}

.wallet-emboss {
  font-family: var(--f-brand);
  font-weight: 800;
  font-size: 34px;
  color: rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 0 rgba(255, 220, 180, 0.25);
  transform: translateY(-18px);
}

.cards {
  position: absolute;
  inset: 0;
}

.card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 270px;
  height: 180px;
  margin: -90px 0 0 -135px;
  padding: 16px 18px;
  color: #fff;
  text-align: left;
  border-radius: 14px;
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.6);
  transform: scale(0.85);
  transition: transform 0.35s var(--ease);
}

.wallet.is-open .card {
  transform:
    translate(calc(-435px + var(--i) * 290px), -250px)
    rotate(calc((var(--i) - 1.5) * 3deg));
  transition: transform 0.7s var(--ease) calc(0.35s + var(--i) * 0.09s);
}

.card:nth-child(1) { background: linear-gradient(135deg, #2b2d33, #0d0e11); }
.card:nth-child(2) { color: #2a1a00; background: linear-gradient(135deg, #f7dc8a, #c99a34); }
.card:nth-child(3) { background: linear-gradient(135deg, #3d8bff, #1f2fb0); }
.card:nth-child(4) { background: linear-gradient(135deg, var(--orange), #b03cff); }

.card-chip {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 30px;
  background: linear-gradient(135deg, #f1d68c, #b8913a);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.card-num {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.75;
}

.card b {
  font-weight: 800;
  font-size: 20px;
}

.card > span:not(.card-chip):not(.card-num) {
  font-size: 13.5px;
  line-height: 1.35;
  opacity: 0.9;
}

.card-ca,
.card-buy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 7px 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.card-ca code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.card-ca em {
  font-style: normal;
  font-weight: 600;
  color: #ffd29a;
}

.card-buy {
  align-self: flex-start;
  font-weight: 600;
}

.card-ca:hover,
.card-buy:hover {
  background: rgba(0, 0, 0, 0.45);
}

/* ================= TOAST ================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 100;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 0.2s ease, transform 0.25s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .item,
  .nb-cover,
  .card,
  .map-sheet {
    transition-duration: 0.01s !important;
    transition-delay: 0s !important;
  }

  .steam i,
  .stamp,
  .sticky-ca::after {
    animation: none;
  }

  .hl {
    animation: none;
    background-size: 100% 78%;
  }

  .ca-circle path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .copy-me {
    animation: none;
    opacity: 1;
  }
}
