/* Character site. Sticker style: warm paper, ink outlines, short hard shadows.
   Brand colours come from the character config (--navy, --paper, --mint, --gold, --coral). */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --navy: #13213f;
  --paper: #fbf3e6;
  --mint: #8fd3c7;
  --gold: #ffc53d;
  --coral: #ff7a59;
  --ink: #15171f;
  --paper-2: #f3e7d4;
  --card: #fffaf3;
  --muted: #5f5a53;
  --ok: #23766b;
  --line: 2.5px;
  --r-sm: 14px;
  --r: 22px;
  --r-lg: 28px;
  --shadow: 0 4px 0 var(--ink);
  --font-display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* Nothing may widen the page: on iPhones a decoration poking past the edge (the home page's
   rain and clouds) made the whole page wider than the screen, so it sat off-centre. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem/1.55 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .32;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .25  0 0 0 0 .18  0 0 0 .2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body > * { position: relative; z-index: 1; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 .45em; letter-spacing: -.005em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 .8em; }
a { color: var(--navy); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.icon.tiny { width: .95em; height: .95em; vertical-align: -.12em; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); padding: 8px 12px; border: var(--line) solid var(--ink); border-radius: 12px; font-weight: 800; }
.skip:focus { top: 12px; }

/* ---------- Frame ---------- */

.topbar {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 1.35rem var(--font-display); }
.brand-avatar { width: 40px; height: 40px; border-radius: 50%; border: var(--line) solid var(--ink); background: var(--mint); object-fit: cover; }
.topnav { display: flex; gap: 6px; }
.topnav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink);
  font: 600 .98rem var(--font-display);
  text-decoration: none;
  transition: background .15s ease;
}
.topnav a:hover { background: var(--paper-2); }
.topnav a.on { background: var(--navy); color: var(--paper); }
@media (max-width: 520px) {
  /* Icons with small labels under them: a bare star doesn't say "quiz". */
  .topnav { gap: 2px; }
  .topnav a { flex-direction: column; justify-content: center; gap: 1px; min-height: 48px; min-width: 52px; padding: 4px 8px; border-radius: 14px; font-size: .72rem; line-height: 1.1; }
  .topnav .icon { width: 22px; height: 22px; }
}

main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px 56px; outline: none; }

.foot {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
  color: var(--muted);
  font-size: .9rem;
  border-top: 2px dashed rgba(21, 23, 31, .14);
}
.foot-credits { flex-basis: 100%; font-size: .8rem; display: grid; gap: 2px; }
.foot-credits a { color: inherit; font-weight: 600; }
.load-error { padding: 48px 0; font-weight: 700; }

/* ---------- Shared bits ---------- */

.card { background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }

.btn {
  font: 600 1.02rem var(--font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border: var(--line) solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--ink);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 0 2px 0 var(--ink); }
.btn.gold { background: var(--gold); }
.btn.mint { background: var(--mint); }
.btn.navy { background: var(--navy); color: var(--paper); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.btn.small { min-height: 40px; padding: 6px 13px; font-size: .92rem; border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }
.btn.wide { width: 100%; }

input, textarea, select {
  font: 500 16px/1.4 var(--font-body);
  width: 100%;
  padding: 12px 14px;
  border: var(--line) solid var(--ink);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  transition: box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 60%, transparent); }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #9a9387; }

.label { display: block; font: 600 1rem var(--font-display); margin-bottom: 6px; }
.label.small { font-size: .95rem; }
.optional { font: 600 .82rem var(--font-body); color: var(--muted); }
.eyebrow { font: 600 .85rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.sub { color: var(--muted); font-size: .95rem; }
.hint { color: var(--muted); font-size: .9rem; }
.warn { background: #ffe5db; border: 2px solid var(--coral); border-radius: 12px; padding: 10px 12px; font-weight: 700; margin: 10px 0; }
.sample-tag {
  display: inline-block;
  vertical-align: middle;
  font: 700 .68rem/1.5 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 1px 8px;
  border: 1.5px dashed #a29a8d;
  border-radius: 999px;
  color: var(--muted);
}
.row { display: flex; gap: 8px; align-items: stretch; }
.row input { flex: 1; min-width: 0; }
.row.wrap { flex-wrap: wrap; }

.bubble {
  position: relative;
  width: fit-content;
  max-width: 320px;
  margin: 0 auto 14px;
  padding: 10px 16px;
  background: var(--card);
  border: var(--line) solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 3px 0 var(--ink);
  font-weight: 700;
  text-align: center;
  transition: opacity .4s ease;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 15px;
  height: 15px;
  background: var(--card);
  border-right: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
}
.bubble:empty { visibility: hidden; }
.bubble.pop { animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.bubble.gone { opacity: 0; }

.page { max-width: 780px; margin: 0 auto; padding-top: 12px; }
.page.wide { max-width: 1000px; }
.page-head h1 { font-size: clamp(2.3rem, 7vw, 3.4rem); font-weight: 700; color: var(--navy); letter-spacing: -.015em; outline: none; }
.lede { font-size: 1.15rem; color: #34312c; max-width: 60ch; }
.block { margin-top: 44px; }
.fineprint { margin-top: 40px; color: var(--muted); font-size: .9rem; }

.ticks, .nos { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.ticks li, .nos li { position: relative; padding-left: 28px; }
.ticks li::before, .nos li::before { position: absolute; left: 0; top: 0; font-weight: 900; }
.ticks li::before { content: "✓"; color: var(--ok); }
.nos li::before { content: "✕"; color: #c4472a; }

/* ---------- Character sprite and 3D stage ---------- */

.jim { display: block; width: 100%; height: auto; overflow: visible; }
.jim .o { stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.jim .fur { fill: var(--fur); }
.jim .band { fill: var(--band); }
.jim .cream { fill: var(--cream); }
.jim .ink { fill: var(--ink); }
.jim .glint { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 3.5; stroke-linecap: round; }
.jim .mline { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.jim .m-open { fill: #7a2a36; stroke: var(--ink); stroke-width: 3; }
.jim .m-flat, .jim .m-open { display: none; }
.jim.expr-hungry .m-smile, .jim.expr-bored .m-smile, .jim.expr-eating .m-smile { display: none; }
.jim.expr-hungry .m-flat, .jim.expr-bored .m-flat { display: inline; }
.jim.expr-eating .m-open { display: inline; transform-origin: 120px 151px; animation: chomp .18s ease-in-out infinite alternate; }
.jim.expr-hungry .brows, .jim.expr-bored .brows { transform: translateY(4px); }
.jim .blush-dot { fill: #ff9fb0; opacity: 0; transition: opacity .3s; }
.jim.blush .blush-dot { opacity: .9; }
.jim .tail { transform-origin: 160px 214px; animation: wag 3.2s ease-in-out infinite; }
.jim .head { transform-origin: 120px 160px; animation: tilt 7s ease-in-out infinite; }
.jim.still .tail, .jim.still .head { animation: none; }

.jim-3d { position: relative; display: block; width: 100%; aspect-ratio: 240 / 262; }
.jim-3d .jim-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.jim-3d.loading .jim-bob { visibility: hidden; }
.jim-3d.loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: url("/img/trash-spin.webp") 0 0 / 2400% 100% no-repeat;
  animation: trash-spin 1.1s steps(24, jump-none) infinite;
}
.jim-3d.is-3d .jim-bob { display: none; }
.jim-bob { display: block; animation: bob 2.8s ease-in-out infinite; }
.jim-hop { display: block; transform-origin: 50% 100%; }
.jim-hop.hop { animation: hop .55s cubic-bezier(.3, .7, .4, 1); }
.fit-img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }

/* ---------- Home ---------- */

.home { position: relative; padding: 4px 0 20px; }
.rain {
  position: absolute;
  inset: -50px -16px 0;
  overflow: hidden;
  pointer-events: none;
  transform: skewX(-12deg);
  -webkit-mask-image: linear-gradient(#000 35%, transparent 90%);
  mask-image: linear-gradient(#000 35%, transparent 90%);
}
/* Two sheets of rain sliding down: transforms run on the graphics chip, so the
   page never repaints for the rain. Each slides exactly one tile, so it loops seamlessly. */
.rain::before, .rain::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  will-change: transform;
  animation: rain-fall 1.1s linear infinite;
}
.rain::before {
  top: -80px;
  background: radial-gradient(1.2px 9px at 50% 50%, rgba(19, 33, 63, .15) 98%, transparent) 0 0 / 34px 80px;
}
.rain::after {
  top: -130px;
  background: radial-gradient(1px 7px at 50% 50%, rgba(19, 33, 63, .1) 98%, transparent) 17px 40px / 51px 130px;
  animation-name: rain-fall-far;
}
.home-grid { position: relative; display: grid; gap: 4px; align-items: center; }
.home-stage { display: grid; justify-items: center; padding-top: 6px; }
/* The yard: a little patch of floor where the character wanders */
.yard { position: relative; display: block; width: min(100%, 520px); aspect-ratio: 4 / 3; margin: 0 auto; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--r-lg); }

.yard .jim-3d { position: absolute; inset: 0; aspect-ratio: auto; width: 100%; height: 100%; z-index: 3; }


.yard .jim-bob { position: absolute; left: 30%; width: 40%; bottom: 8%; }

.home-copy { text-align: center; }
.display {
  font: 700 clamp(3.6rem, 15vw, 6.4rem)/.92 var(--font-display);
  color: var(--navy);
  letter-spacing: -.025em;
  margin-bottom: 10px;
  text-shadow: 4px 4px 0 var(--gold);
  outline: none;
}
.tagline { font-size: 1.2rem; font-weight: 700; color: #34312c; }

.big-buttons { display: grid; gap: 14px; margin: 24px auto 20px; max-width: 470px; text-align: left; }
.big-btn {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  box-shadow: 0 5px 0 var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.big-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.big-btn:hover .arrow { transform: translateX(3px); }
.big-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.big-btn.gold { background: var(--gold); }
.big-btn.mint { background: var(--mint); }
.big-btn.navy { background: var(--navy); color: var(--paper); }
.big-btn .ico { display: grid; place-items: center; width: 52px; height: 52px; border: var(--line) solid currentColor; border-radius: 16px; background: rgba(255, 255, 255, .5); }
.big-btn.navy .ico { background: rgba(255, 255, 255, .1); }
.big-btn .ico .icon { width: 28px; height: 28px; }
.big-btn .txt { display: grid; }
.big-btn .t { font: 600 1.25rem/1.2 var(--font-display); }
.big-btn .s { font-size: .92rem; opacity: .85; }
.big-btn .arrow { width: 24px; height: 24px; transition: transform .15s ease; }

.follow { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.follow a { display: inline-block; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font: 600 .95rem var(--font-display); text-decoration: none; color: var(--ink); }
.follow a:hover { background: var(--paper-2); }

.cast-strip { margin: 36px auto 0; max-width: 760px; text-align: center; }
.cast { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.cast-card { display: grid; justify-items: center; gap: 4px; padding: 18px 12px 16px; background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); }
.cast-card.soon { background: transparent; border-style: dashed; box-shadow: none; }
.cast-face { width: 72px; height: 72px; border-radius: 50%; border: var(--line) solid var(--ink); object-fit: cover; background: var(--mint); }
.silhouette { display: grid; place-items: center; font: 700 1.9rem var(--font-display); color: #b2a996; background: var(--paper-2); border: var(--line) dashed #b2a996; border-radius: 50%; }
.cast-name { font: 600 1.05rem var(--font-display); }
.cast-role { font-size: .85rem; color: var(--muted); }

@media (min-width: 880px) {
  .home { padding-top: 28px; }
  .home-grid { grid-template-columns: 1fr 1.05fr; gap: 40px; }
  .home-copy { text-align: left; }
  .big-buttons { margin-left: 0; }
  .follow { justify-content: flex-start; }
}

/* ---------- Den (game) ---------- */

.play { max-width: 580px; margin: 0 auto; padding-top: 8px; }
.play-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.play-title { font-size: clamp(1.9rem, 6.5vw, 2.5rem); font-weight: 700; color: var(--navy); margin: 0; outline: none; }
.play-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 4px 14px; background: var(--card); border: var(--line) solid var(--ink); border-radius: 999px; font: 600 .95rem var(--font-display); white-space: nowrap; }
.chip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.chip.bump { animation: bump .35s ease; }
.cap-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff6c9 0 14%, var(--gold) 18% 58%, #d69a12 62%);
  border: 2px dashed #8a5a00;
  box-shadow: 0 0 0 1.5px var(--ink);
  flex-shrink: 0;
}
.cap-icon.big { width: 60px; height: 60px; border-width: 4px; box-shadow: 0 0 0 2.5px var(--ink); }

.den {
  position: relative;
  aspect-ratio: 1 / .84;
  border: var(--line) solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 5px 0 var(--ink);
  background: var(--paper-2);
  container-type: inline-size;
}
.den::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(ellipse 70% 55% at 50% 40%, rgba(255, 236, 190, .18), transparent 70%), radial-gradient(ellipse 120% 90% at 50% 50%, transparent 60%, rgba(40, 28, 10, .18));
}
.den-wall {
  position: absolute;
  inset: 0 0 34% 0;
  background:
    linear-gradient(transparent 78%, rgba(21, 23, 31, .08) 78% 79.5%, #b9e1d7 79.5%),
    repeating-linear-gradient(90deg, #d6efe9 0 24px, #c9e9e1 24px 48px);
}
.den-floor {
  position: absolute;
  inset: 66% 0 0 0;
  background:
    linear-gradient(rgba(0, 0, 0, .1), transparent 30%),
    repeating-linear-gradient(90deg, #d39a67 0 60px, #c28956 60px 62px);
  border-top: var(--line) solid var(--ink);
}
.den-window { position: absolute; left: 35%; width: 30%; top: 7%; height: 26%; border: var(--line) solid var(--ink); border-radius: 12px; overflow: hidden; background: linear-gradient(#6f86ad, #b2c4de); box-shadow: inset 0 -6px 0 rgba(255, 255, 255, .25); }
.den-window::before, .den-window::after { content: ""; position: absolute; background: var(--ink); z-index: 2; }
.den-window::before { left: 50%; top: 0; bottom: 0; width: var(--line); transform: translateX(-50%); }
.den-window::after { top: 50%; left: 0; right: 0; height: var(--line); transform: translateY(-50%); }
.den-rain {
  position: absolute;
  inset: -20px;
  background-image: radial-gradient(1px 6px at 50% 50%, rgba(255, 255, 255, .75) 98%, transparent);
  background-size: 14px 34px;
  transform: skewX(-12deg);
  animation: window-rain .7s linear infinite;
}
.den-items { position: absolute; inset: 0; }
.slot { position: absolute; display: grid; place-items: center; z-index: 1; }
.item-emoji { font-size: clamp(2rem, 11cqi, 3.4rem); line-height: 1; filter: drop-shadow(0 3px 0 rgba(21, 23, 31, .22)); }
.slot.empty {
  display: none;
  width: 13cqi;
  height: 13cqi;
  min-width: 40px;
  min-height: 40px;
  border: 2px dashed rgba(21, 23, 31, .35);
  border-radius: 14px;
  background: rgba(255, 255, 255, .45);
  color: rgba(21, 23, 31, .55);
  font: 600 1.5rem var(--font-display);
  cursor: pointer;
  animation: pop .3s ease;
}
.den.decorating .slot.empty { display: grid; }
.slot.empty:hover { background: rgba(255, 255, 255, .75); }
.slot-ceiling { top: 2%; left: 22%; }
.slot-poster { top: 10%; left: 6%; }
.slot-lamp { top: 42%; left: 5%; }
.slot-tank { top: 41%; right: 5%; }
.slot-couch { bottom: 5%; left: 4%; }
.slot-tv { bottom: 5%; right: 4%; }
.slot-plant { bottom: 29%; right: 22%; }
.slot-rug {
  left: 24%;
  right: 24%;
  bottom: 3%;
  height: 13%;
  border-radius: 50%;
  border: var(--line) solid var(--ink);
  background: repeating-radial-gradient(ellipse at center, #ff9a7a 0 7px, var(--gold) 7px 14px);
  z-index: 0;
}
.slot-sponsor {
  top: 8%;
  right: 5%;
  gap: 2px;
  padding: 8px 10px 6px;
  background: #fff;
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--ink);
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.slot-sponsor .item-emoji { font-size: clamp(1.4rem, 7cqi, 2.2rem); }
.sponsor-name { font: 600 .72rem/1.15 var(--font-display); max-width: 22cqi; text-align: center; }
.ad-tag { position: absolute; top: -11px; left: -11px; padding: 0 6px; background: var(--coral); color: #fff; border: 2px solid var(--ink); border-radius: 7px; font: 700 .7rem/1.5 var(--font-display); letter-spacing: .04em; }
.den-preview .slot-sponsor { outline: 3px dashed var(--coral); outline-offset: 5px; }

/* The 3D den: the canvas fills the frame and the flat layers step aside */
.den > .jim-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; opacity: 0; transition: opacity .45s ease; }
.den.is-3d > .jim-canvas { opacity: 1; }
.den.is-3d .den-wall, .den.is-3d .den-floor, .den.is-3d .den-window, .den.is-3d .den-items,
.den.is-3d .den-shadow, .den.is-3d .den-jim { display: none; }
.den.is-3d::after { background: radial-gradient(ellipse 120% 90% at 50% 50%, transparent 65%, rgba(40, 28, 10, .14)); }
.den3d-overlay { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.den3d-overlay > * { position: absolute; pointer-events: auto; }
.ad-tag.ad-3d { transform: translate(-50%, -100%); }
.slot-marker {
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(21, 23, 31, .5);
  border-radius: 50%;
  background: rgba(255, 255, 255, .78);
  color: var(--ink);
  font: 600 1.4rem/1 var(--font-display);
  cursor: pointer;
  animation: pop .3s ease;
}
.slot-marker:hover { background: #fff; border-color: var(--ink); }

/* Rendered item and snack pictures */
.item-pic { display: block; width: clamp(2.6rem, 13cqi, 3.8rem); height: auto; filter: drop-shadow(0 3px 0 rgba(21, 23, 31, .18)); }
.item-pic.small { width: clamp(1.8rem, 8cqi, 2.4rem); filter: none; }
.item-pic.big { width: 84px; }
.snack-pic { width: 60px; height: 60px; object-fit: contain; }
.deco-pic { width: 44px; height: 44px; object-fit: contain; }
.held-pic { width: clamp(2.4rem, 11cqi, 3.2rem); height: auto; }
.pic.emoji, .snack-pic.emoji, .deco-pic.emoji, .item-pic.emoji, .held-pic.emoji { width: auto; height: auto; font-size: 2.2rem; line-height: 1.1; }

.den-shadow { position: absolute; left: 33%; right: 33%; bottom: 4%; height: 5%; border-radius: 50%; background: rgba(40, 25, 10, .22); filter: blur(3px); z-index: 1; }
.den-jim { position: absolute; left: 30%; width: 40%; bottom: 4%; z-index: 2; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 24px; }
.den-bubble { position: absolute; left: 0; right: 0; bottom: 53%; z-index: 6; max-width: 64%; padding: 8px 12px; font-size: clamp(.8rem, 3.8cqi, .95rem); line-height: 1.3; margin: 0 auto; }
/* In the 3D den the bubble rides above Jimothy's head (den3d.js sets translate and --tail). */
.den.is-3d .den-bubble.follows { left: 0; top: 0; right: auto; bottom: auto; margin: 0; transform-origin: 50% 100%; will-change: translate; }
.den.is-3d .den-bubble.follows::after { left: calc(50% + var(--tail, 0px)); }
.den.is-3d .den-bubble.follows.away { opacity: 0; }
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 7; }
.heart { position: absolute; bottom: 45%; font-size: 1.6rem; animation: float-up 1.2s ease-out forwards; }
.held { position: absolute; left: 50%; bottom: 20%; font-size: clamp(1.6rem, 8cqi, 2.4rem); transform: translateX(-50%); animation: munch 1.3s ease-in forwards; }
.float-num {
  position: absolute;
  bottom: 52%;
  font: 700 clamp(1.3rem, 6cqi, 1.8rem) var(--font-display);
  color: var(--ok);
  -webkit-text-stroke: 1.5px #fff;
  paint-order: stroke;
  animation: float-up 1.3s ease-out forwards;
}

.hud { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 14px; }
.meter { display: grid; gap: 6px; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.meter-label { font: 600 1rem var(--font-display); }
.meter-val { font-weight: 800; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.meter.low .meter-val { color: #b8401f; }
.meter-bar { height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; }
.meter-bar > span { display: block; height: 100%; background: var(--mint); border-radius: 999px; transition: width .5s ease; }
.meter.mid .meter-bar > span { background: var(--gold); }
.meter.low .meter-bar > span { background: var(--coral); }

.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 5px; background: var(--paper-2); border: var(--line) solid var(--ink); border-radius: 18px; }
.tab { font: 600 1rem var(--font-display); min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; transition: background .15s ease; }
.tab:hover { background: rgba(255, 255, 255, .65); }
.tab.on { background: var(--navy); color: var(--paper); }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 3px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: #fff; font: 700 .8rem var(--font-display); vertical-align: 1px; }

.panel { margin-top: 16px; min-height: 160px; }
.panel h2 { font-size: 1.35rem; margin-bottom: 2px; }
.panel-head p, .panel-note { color: var(--muted); }

.snacks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 520px) { .snacks { grid-template-columns: repeat(4, 1fr); } }
.snack {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 14px 8px 12px;
  border: var(--line) solid var(--ink);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 4px 0 var(--ink);
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.snack:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.snack:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.snack-emoji { font-size: 2.3rem; line-height: 1.15; }
.snack-name { font: 600 .98rem var(--font-display); text-align: center; }
.snack-fx { font-size: .82rem; color: var(--ok); font-weight: 800; }

.cans { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 14px 0; }
.can {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 96px;
  padding: 10px 8px 8px;
  border: var(--line) solid var(--ink);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 4px 0 var(--ink);
  font: 600 .95rem var(--font-display);
  color: var(--ink);
  cursor: pointer;
  transition: transform .12s ease;
}
button.can:hover { transform: translateY(-2px); }
.can-art { width: 56px; height: 66px; overflow: visible; }
.can-art rect, .can-body { fill: var(--mint); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.can-lid rect { fill: color-mix(in srgb, var(--mint) 70%, var(--navy)); }
.can-ribs { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; opacity: .3; fill: none; }
.can-lid { transform-box: view-box; transform-origin: 6px 18px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.can.opening .can-lid, .can.used .can-lid { transform: translate(-3px, -6px) rotate(-30deg); }
.can.opening { animation: shake .6s ease-in-out; }
.can.used { background: transparent; box-shadow: none; border-style: dashed; color: var(--muted); cursor: default; }
.can.used .can-art { opacity: .45; filter: grayscale(1); }

.reveal-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  margin: 6px 0 4px;
  padding: 14px 16px;
  border: var(--line) solid var(--ink);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 4px 0 var(--ink);
  animation: pop .45s cubic-bezier(.3, 1.6, .5, 1);
}
.reveal-card.shine { background: radial-gradient(circle at 15% 30%, color-mix(in srgb, var(--r) 40%, white), var(--card) 72%); }
.reveal-art { display: grid; place-items: center; }
.reveal-art.emoji { font-size: 3.4rem; }
.reveal-art .jim, .reveal-art .fit-img { width: 96px; }
.reveal-title { font: 600 1.25rem/1.2 var(--font-display); margin: 4px 0; }
.reveal-card p { margin-bottom: 6px; }
.perk { color: var(--ok); font-weight: 800; font-size: .9rem; }
.rarity-badge {
  display: inline-block;
  padding: 0 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: color-mix(in srgb, var(--r) 35%, white);
  font: 700 .7rem/1.6 var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pity { color: var(--muted); font-weight: 700; font-size: .95rem; text-align: center; margin-top: 10px; }
.odds { margin-top: 8px; padding: 10px 14px; border: 2px dashed rgba(21, 23, 31, .25); border-radius: 14px; }
.odds summary { font: 600 1rem var(--font-display); cursor: pointer; }
.odds table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.odds td { padding: 4px 0; border-bottom: 1px solid rgba(21, 23, 31, .1); }
.odds td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; }
.odds p { font-size: .9rem; color: var(--muted); margin: 0; }
.dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--r); border: 2px solid var(--ink); vertical-align: -1px; }

.closet { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 10px; margin-top: 12px; }
.fit-card {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  padding: 10px 8px 12px;
  border: var(--line) solid var(--ink);
  border-radius: 18px;
  background: var(--card);
  font: inherit;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}
button.fit-card { box-shadow: 0 4px 0 var(--ink); transition: transform .12s ease; }
button.fit-card:hover { transform: translateY(-2px); }
.fit-card.on { background: color-mix(in srgb, var(--gold) 32%, white); }
.fit-card.locked { cursor: default; background: transparent; border-style: dashed; }
.fit-art .jim, .fit-art .fit-img { width: 96px; }
.fit-card.locked .jim, .fit-card.locked .fit-img { filter: brightness(0); opacity: .14; }
.fit-name { font: 600 .92rem/1.2 var(--font-display); }
.wearing { position: absolute; top: 6px; right: 6px; padding: 0 7px; border-radius: 8px; background: var(--navy); color: var(--paper); font: 600 .7rem/1.6 var(--font-display); }

.decos { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.deco { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border: var(--line) solid var(--ink); border-radius: 16px; background: var(--card); }
.deco.owned { background: color-mix(in srgb, var(--mint) 18%, var(--card)); }
.deco-emoji { font-size: 1.8rem; text-align: center; }
.deco-name { font: 600 1rem var(--font-display); }
.deco-name small { margin-left: 4px; padding: 0 7px; border-radius: 8px; background: var(--mint); font: 700 .72rem/1.6 var(--font-body); }
.deco { border-left-width: 6px; border-left-color: var(--r, var(--ink)); }
.deco.group-start:not(:first-child) { margin-top: 6px; }
.deco.out { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--mint) 70%, transparent); }
.rarity-dot { display: block; font: 700 .72rem/1.3 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: color-mix(in srgb, var(--r) 70%, var(--ink)); }
.deco-pic.mystery { display: grid; place-items: center; border-radius: 12px; border: 2px dashed rgba(21, 23, 31, .25); font: 700 1.3rem var(--font-display); color: var(--muted); }
.dig-only { font: 700 .8rem var(--font-body); color: var(--muted); padding: 0 6px; }
.deco .btn .cap-icon { width: 14px; height: 14px; }

.teaser { display: flex; gap: 14px; align-items: center; margin-top: 26px; background: color-mix(in srgb, var(--navy) 6%, var(--card)); }
.teaser .silhouette { width: 58px; height: 58px; flex-shrink: 0; animation: wiggle 4s ease-in-out infinite; }
.teaser-title { font: 600 1.1rem var(--font-display); margin: 0 0 2px; }
.teaser .sub { margin: 0; }
.secret { margin-top: 16px; }
.secret .sub { margin: 8px 0 0; }
.wire-tools { margin-top: 20px; padding: 10px 14px; border: 2px dashed var(--muted); border-radius: 16px; color: var(--muted); }
.wire-tools summary { font: 600 .95rem var(--font-display); cursor: pointer; }
.wire-tools p { margin: 8px 0; }

/* ---------- Request a video ---------- */

.request-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 820px) {
  .request { max-width: 1000px; }
  .request-grid { grid-template-columns: 1.4fr 1fr; }
}
.ask textarea { margin-bottom: 6px; }
.ask-meta { display: flex; justify-content: space-between; gap: 12px; }
.count { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.chips { border: 0; padding: 0; margin: 14px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 8px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips .chip { min-height: 0; padding: 0; border: 0; background: none; }
.chips .chip span { display: inline-block; padding: 7px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: 600 .95rem var(--font-display); cursor: pointer; }
.chips .chip input:checked + span { background: var(--gold); box-shadow: 0 3px 0 var(--ink); }
.chips .chip input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }

.tickets h2 { font-size: 1.3rem; }
.my-tickets { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.my-tickets li { display: grid; gap: 2px; padding: 10px 12px; border: 2px solid rgba(21, 23, 31, .14); border-radius: 14px; background: #fff; }
.my-tickets li.fresh { border-color: var(--ink); animation: pop .4s ease; }
.my-tickets li.empty { color: var(--muted); border-style: dashed; background: transparent; }
.my-tickets .code { font: 700 .85rem var(--font-display); letter-spacing: .08em; color: var(--muted); }
.my-tickets .q-text { font-weight: 700; }
.my-tickets .line { font-size: .92rem; }
.status { display: inline-block; padding: 0 8px; border-radius: 999px; font: 700 .75rem/1.7 var(--font-display); letter-spacing: .04em; text-transform: uppercase; border: 1.5px solid var(--ink); }
.status.pile { background: color-mix(in srgb, var(--gold) 45%, white); }
.status.done { background: var(--mint); }
.status.no { background: #eee6da; }
.check-result { margin: 10px 0 0; font-weight: 600; }

.qlist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: var(--line) solid var(--ink); border-radius: 16px; background: var(--card); font-weight: 700; }
.q.done { background: color-mix(in srgb, var(--mint) 25%, white); }
.q.empty { color: var(--muted); border-style: dashed; background: transparent; font-weight: 600; }
.q.skeleton { height: 54px; border-color: transparent; background: linear-gradient(90deg, #f1e6d4 25%, #faf3e7 50%, #f1e6d4 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.soon { flex-shrink: 0; font-size: .8rem; color: var(--muted); border: 1.5px dashed var(--muted); border-radius: 10px; padding: 3px 8px; }
.metoo { flex-shrink: 0; min-height: 40px; padding: 6px 13px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: 600 .9rem var(--font-display); color: var(--ink); cursor: pointer; }
.metoo.on { background: var(--gold); box-shadow: 0 3px 0 var(--ink); }
.metoo b { font-variant-numeric: tabular-nums; }

/* ---------- Work with (brands) ---------- */

.work-hero {
  display: grid;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  padding: 28px 24px;
  overflow: hidden;
  color: var(--paper);
  background: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.6px) 0 0 / 18px 18px, var(--navy);
}
.work-hero h1 { font-size: clamp(2.4rem, 8vw, 3.8rem); font-weight: 700; letter-spacing: -.02em; color: var(--paper); text-shadow: 3px 3px 0 var(--ink); outline: none; }
.work-hero .eyebrow { color: var(--gold); }
.work-hero .lede { color: #dfe5f3; }
.hero-jim { width: min(54vw, 250px); justify-self: center; }
@media (min-width: 720px) { .work-hero { grid-template-columns: 1.5fr 1fr; padding: 36px; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 10px; }
.stat { display: grid; gap: 2px; padding: 14px 16px; border: var(--line) solid var(--ink); border-radius: 18px; background: var(--card); }
.stat-val { font: 700 2rem/1.1 var(--font-display); color: var(--navy); }
.stat-label { font-weight: 700; color: var(--muted); font-size: .9rem; }
.media-kit { box-shadow: none; border-style: dashed; background: transparent; font-weight: 600; }

.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 12px; }
.packages + .sub, .stats + .sub { margin-top: 16px; }
.pkg { display: flex; flex-direction: column; gap: 6px; }
.pkg h3 { margin: 0; }
.price { font: 700 2.1rem/1 var(--font-display); color: var(--navy); margin: 4px 0 0; }
.price span { font: 700 .95rem var(--font-body); color: var(--muted); }
.pkg .sample-tag { align-self: flex-start; }
.pkg-sum { margin: 4px 0; }
.pkg .ticks { flex: 1; font-size: .94rem; }
.pkg .btn { margin-top: 6px; }

.split { display: grid; gap: 22px; align-items: start; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1.1fr; } }
.preview-col { display: grid; gap: 14px; }
.report dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 8px; }
.report dt { font-size: .8rem; color: var(--muted); font-weight: 700; }
.report dd { margin: 0; font: 700 1.5rem var(--font-display); color: #a29a8d; }
.report .sub { margin: 0; }

.steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; counter-reset: step; }
.steps li { position: relative; padding: 12px 14px 12px 62px; border: var(--line) solid var(--ink); border-radius: 16px; background: var(--card); counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  font: 700 1rem var(--font-display);
}

.rules { display: grid; gap: 14px; }
@media (min-width: 720px) { .rules { grid-template-columns: 1fr 1fr; } }
.grid2 { display: grid; gap: 0 14px; }
@media (min-width: 620px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { display: block; margin-bottom: 14px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 14px; font-weight: 700; }
.check-row input { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; accent-color: var(--navy); }
.book .sub { margin: 12px 0 0; }
.thanks { text-align: center; outline: none; animation: pop .4s ease; }
.big-check { width: 54px; height: 54px; padding: 10px; border-radius: 50%; background: var(--mint); border: var(--line) solid var(--ink); color: var(--ink); margin-bottom: 8px; }

/* ---------- Privacy ---------- */

.table-wrap { overflow-x: auto; border: var(--line) solid var(--ink); border-radius: 16px; background: var(--card); }
.keep { width: 100%; border-collapse: collapse; min-width: 560px; }
.keep th, .keep td { text-align: left; padding: 11px 13px; border-bottom: 1.5px solid rgba(21, 23, 31, .1); vertical-align: top; }
.keep th { background: var(--paper-2); font: 600 1rem var(--font-display); }
.keep tr:last-child td { border-bottom: 0; }

/* ---------- Toasts and modal ---------- */

/* Above open sheets (60), so a note about something tapped in a sheet is seen. */
.toasts { position: fixed; left: 0; right: 0; bottom: 16px; z-index: 70; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { max-width: 440px; padding: 10px 18px; background: var(--navy); color: var(--paper); border: var(--line) solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); font-weight: 700; text-align: center; animation: toast-in .25s ease-out; transition: opacity .3s, transform .3s; }
.toast.out { opacity: 0; transform: translateY(8px); }
/* One column the width of the screen: without it the column grows to fit wide content
   (like the Room sheet's swatch rows) and the panel runs off the side of a phone. */
.modal-root { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(19, 33, 63, .55); }
.modal { position: relative; max-width: 430px; animation: pop .3s cubic-bezier(.3, 1.6, .5, 1); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 10px; }

/* ---------- Admin ---------- */

.admin { max-width: 1000px; margin: 0 auto; padding-top: 12px; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 18px; }
.admin-tabs button { font: 600 1rem var(--font-display); padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); cursor: pointer; }
.admin-tabs button.on { background: var(--navy); color: var(--paper); }
.admin-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.admin-item { display: grid; gap: 8px; padding: 14px 16px; border: var(--line) solid var(--ink); border-radius: 16px; background: var(--card); }
.admin-item .meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .88rem; color: var(--muted); }
.admin-item .question { font: 600 1.1rem var(--font-display); }
.admin-item .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-item .actions input { flex: 1; min-width: 200px; padding: 9px 12px; }
.admin-empty { color: var(--muted); padding: 16px; border: 2px dashed rgba(21, 23, 31, .2); border-radius: 16px; }
.bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 48px; gap: 10px; align-items: center; font-size: .92rem; }
.bar { height: 12px; border-radius: 999px; background: var(--mint); border: 1.5px solid var(--ink); }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.admin-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .admin-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Motion ---------- */

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes wag { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(7deg); } }
@keyframes tilt { 0%, 72%, 100% { transform: rotate(0); } 78%, 90% { transform: rotate(-7deg); } }
@keyframes hop {
  0% { transform: translateY(0) scale(1, 1); }
  15% { transform: translateY(3px) scale(1.06, .92); }
  50% { transform: translateY(-24px) scale(.96, 1.05); }
  80% { transform: translateY(0) scale(1.04, .96); }
  100% { transform: none; }
}
@keyframes chomp { from { transform: scaleY(1); } to { transform: scaleY(.25); } }
@keyframes pop { 0% { transform: scale(.88); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes bump { 50% { transform: scale(1.12); } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
@keyframes shake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-7deg); }
  40% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(2deg); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes rain-fall { to { transform: translateY(80px); } }
@keyframes rain-fall-far { to { transform: translateY(130px); } }
@keyframes window-rain { to { background-position: 0 34px; } }
@keyframes float-up { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; transform: translateY(-10px) scale(1); } 100% { transform: translateY(-90px) scale(1.1); opacity: 0; } }
@keyframes munch { 0% { transform: translate(-50%, 0) scale(1); opacity: 1; } 70% { transform: translate(-50%, -30px) scale(.8); opacity: 1; } 100% { transform: translate(-50%, -40px) scale(.2); opacity: 0; } }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Save words */
.keep { margin-top: 16px; }
.keep-title { font-size: 1.25rem; }
.save-words { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.save-words span { padding: 6px 12px; border: var(--line) solid var(--ink); border-radius: 12px; background: color-mix(in srgb, var(--gold) 35%, white); font: 700 1.05rem var(--font-display); letter-spacing: .06em; box-shadow: 0 3px 0 var(--ink); }
.restore { margin-top: 14px; border-top: 2px dashed rgba(21, 23, 31, .15); padding-top: 12px; }
.restore summary { font: 600 1rem var(--font-display); cursor: pointer; }
.restore-form { margin-top: 10px; }
.restore-form input { text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Play, simplified: den, three steps, one big action, four small buttons ---------- */

.play-head { align-items: center; }
.den-hud { position: absolute; left: 12px; top: 12px; z-index: 6; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.hud-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 6px; background: rgba(255, 250, 243, .92); border: 2px solid var(--ink); border-radius: 999px; font-size: .95rem; }
.hud-bar { width: 64px; height: 8px; border-radius: 999px; background: rgba(21, 23, 31, .12); overflow: hidden; }
.hud-bar i { display: block; height: 100%; border-radius: 999px; background: var(--mint); transition: width .5s ease; }
.hud-pill.mid .hud-bar i { background: var(--gold); }
.hud-pill.low .hud-bar i { background: var(--coral); }

.loop { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px 0 12px; padding: 0; }
.loop li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 2px solid rgba(21, 23, 31, .14); border-radius: 14px; font: 600 .95rem/1.15 var(--font-display); color: var(--muted); }
.loop li small { font: 700 .78rem var(--font-body); }
.loop .n { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; font: 700 .85rem var(--font-display); }
.loop li.now { border-color: var(--ink); background: var(--card); color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.loop li.now .n { background: var(--gold); border-color: var(--ink); }
.loop li.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.loop li.done .n { background: var(--ok); color: #fff; border-color: var(--ok); }

.action { min-height: 120px; }
.action-title { font: 600 1.25rem var(--font-display); margin: 4px 0 10px; }
.big-action {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 20px;
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  background: var(--gold);
  box-shadow: 0 5px 0 var(--ink);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.big-action:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.big-action:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.big-action .can-art { width: 52px; height: 62px; flex-shrink: 0; }
.big-action.opening .can-lid { transform: translate(-3px, -6px) rotate(-30deg); }
.big-action.opening .can-art { animation: shake .6s ease-in-out; }
.big-action-text { display: grid; }
.big-action .t { font: 700 1.4rem/1.15 var(--font-display); }
.big-action .s { font-size: .92rem; font-weight: 700; opacity: .8; }
.action-done { padding: 16px 18px; border: 2px dashed rgba(21, 23, 31, .25); border-radius: var(--r); text-align: center; }
.action-done .action-title { margin-bottom: 4px; }
.action-done .sub { margin: 0; }
.action .snacks { grid-template-columns: repeat(4, 1fr); }
.snack { padding: 10px 6px; }
.snack-pic { width: 52px; height: 52px; }
.snack-name { font-size: .9rem; }

.more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.more-btn {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 4px 8px;
  border: 2px solid rgba(21, 23, 31, .18);
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font: 600 .9rem var(--font-display);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.more-btn:hover { background: var(--card); border-color: var(--ink); }
.more-btn .icon { width: 24px; height: 24px; }

/* Sheets (pop-up panels) */
.modal-root.as-sheet { place-items: end center; padding: 0; }
.sheet {
  position: relative;
  width: min(100%, 560px);
  max-height: 86svh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: var(--line) solid var(--ink);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 0 rgba(21, 23, 31, .08);
  animation: sheet-up .28s cubic-bezier(.2, .9, .3, 1);
}
@media (min-width: 640px) {
  .modal-root.as-sheet { place-items: center; padding: 16px; }
  .sheet { border-bottom: var(--line) solid var(--ink); border-radius: 24px; box-shadow: var(--shadow); }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 8px; }
.sheet-head h2 { margin: 0; font-size: 1.35rem; }
.sheet-x { width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; font: 600 1.4rem/1 var(--font-display); cursor: pointer; }
.sheet-body { overflow-y: auto; overflow-x: hidden; min-width: 0; padding: 4px 18px 22px; }
.sheet-actions { display: grid; gap: 8px; margin: 14px 0 6px; }
.sheet .snacks { grid-template-columns: repeat(4, 1fr); }
.sheet .closet { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.sheet .fit-art .fit-img { width: 84px; }
.sheet .secret { margin-top: 16px; padding-top: 14px; border-top: 2px dashed rgba(21, 23, 31, .15); }
.reveal-body { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 10px 6px; border-radius: 20px; }
.reveal-body.shine { background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--r) 38%, white), transparent 70%); }
.reveal-body .reveal-art { width: 140px; min-height: 100px; display: grid; place-items: center; }
.reveal-body .fit-img, .reveal-body .item-pic.big { width: 140px; }
.reveal-body .cap-icon.big { width: 80px; height: 80px; }
.reveal-body .reveal-title { font: 700 1.5rem/1.2 var(--font-display); margin: 6px 0 2px; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }

@media (max-width: 420px) {
  .loop li { flex-direction: column; text-align: center; gap: 4px; padding: 8px 4px; font-size: .85rem; }
  .big-action .t { font-size: 1.2rem; }
  .den-hud { left: 8px; top: 8px; }
  .hud-bar { width: 44px; }
}


/* ---------- Home backdrop: a light 2.5D Seattle street in the rain ---------- */

.rain { z-index: 1; }
.home-copy, .home-stage .bubble { position: relative; z-index: 2; }
.scene {
  --px: 0;
  position: absolute;
  inset: 0 -10%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.scene-sky { position: absolute; inset: 0 0 40% 0; }
.cloud {
  position: absolute;
  left: 0;
  width: 34%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--navy) 9%, transparent) 0 40%, transparent 70%);
  animation: drift 80s linear infinite;
  will-change: transform;
}
.cloud.c1 { top: 4%; animation-delay: -12s; }
.cloud.c2 { top: 17%; width: 26%; animation-duration: 64s; animation-delay: -40s; }
.cloud.c3 { top: 0; width: 42%; animation-duration: 100s; animation-delay: -70s; }
.scene-layer { position: absolute; left: -2%; width: 104%; bottom: 40%; height: 56%; transition: transform .8s cubic-bezier(.2, .8, .3, 1); }
.scene-layer.far { transform: translateX(calc(var(--px) * -5px)); }
.scene-layer.mid { transform: translateX(calc(var(--px) * -14px)); }
.sky-mountain { fill: var(--navy); opacity: .065; }
.sky-snow { fill: #fff; opacity: .75; }
.sky-far { fill: var(--navy); opacity: .1; }
.sky-mid { fill: var(--navy); opacity: .19; }
.scene-ground {
  position: absolute;
  left: 0;
  right: 0;
  top: 60%;
  bottom: 0;
  overflow: hidden;
  border-top: 1.5px solid color-mix(in srgb, var(--navy) 16%, transparent);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--navy) 9%, transparent), color-mix(in srgb, var(--navy) 3%, transparent) 60%, transparent);
}
/* The city mirrored in the wet pavement, fading fast. */
.scene-layer.reflect {
  top: 0;
  bottom: auto;
  height: 140%;
  opacity: .32;
  transform: translateX(calc(var(--px) * -14px)) scaleY(-1);
  transform-origin: 50% 50%; /* flip in place so the city's base meets the horizon */
  -webkit-mask-image: linear-gradient(to top, #000, transparent 75%);
  mask-image: linear-gradient(to top, #000, transparent 75%);
}
.ripple {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 30px;
  height: 8px;
  margin: -4px 0 0 -15px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--navy) 32%, transparent);
  opacity: 0;
  animation: ripple 2.6s ease-out infinite;
  animation-delay: var(--d);
  will-change: transform, opacity;
}
@keyframes drift { from { transform: translateX(-110%); } to { transform: translateX(330%); } }
@keyframes ripple { 0% { transform: scale(.15); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Request a video: ask, quiz, done ---------- */

.request { max-width: 640px; }
.flow { padding: 20px 22px 22px; }
.flow-steps { list-style: none; display: flex; gap: 6px; margin: 0 0 18px; padding: 0; }
.flow-steps li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; font: 600 .92rem var(--font-display); color: var(--muted); border: 2px solid rgba(21, 23, 31, .12); }
.flow-steps .n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid currentColor; font-size: .8rem; }
.flow-steps li.now { color: var(--ink); border-color: var(--ink); background: var(--card); }
.flow-steps li.now .n { background: var(--gold); border-color: var(--ink); }
.flow-steps li.done { color: var(--ok); }
.flow-steps li.done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.flow textarea { margin-bottom: 6px; }
.flow .btn.wide { margin-top: 12px; }

.quiz-kicker { font: 600 .85rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.quiz-q { font: 700 1.5rem/1.2 var(--font-display); margin-bottom: 14px; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-opt {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 14px 10px;
  border: var(--line) solid var(--ink);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 0 var(--ink);
  font: 600 1rem/1.2 var(--font-display);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.quiz-opt:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); background: color-mix(in srgb, var(--gold) 25%, white); }
.quiz-opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.quiz-emoji { font-size: 2.2rem; line-height: 1.1; }
.link-btn { display: block; margin: 14px auto 0; padding: 6px 10px; border: 0; background: none; color: var(--muted); font: 600 .9rem var(--font-body); text-decoration: underline; cursor: pointer; }
.sending { font: 600 1.1rem var(--font-display); text-align: center; padding: 30px 0; }

.quiz-result { text-align: center; padding: 4px 0 10px; animation: pop .4s ease; }
.quiz-badge { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: var(--line) solid var(--ink); background: color-mix(in srgb, var(--gold) 45%, white); box-shadow: 0 4px 0 var(--ink); font-size: 2.6rem; margin-bottom: 8px; }
.quiz-type { font: 700 1.9rem/1.1 var(--font-display); color: var(--navy); margin-bottom: 6px; text-align: center; }
.quiz-result .sub { max-width: 42ch; margin: 0 auto; }
.q.idea { background: color-mix(in srgb, var(--gold) 10%, var(--card)); }
.idea-tag { display: block; margin-top: 2px; font: 700 .72rem var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.popular-note { margin: -4px 0 10px; }
.quiz-gift { max-width: 40ch; margin: 10px auto 0; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 28%, var(--card)); font-weight: 600; }

/* Quiz page */
.quiz-page .flow { max-width: 560px; }
.quiz-page .sheet-actions { margin-top: 18px; }
.quiz-page .sheet-actions .btn { margin-top: 0; }
.quiz-bars { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; max-width: 560px; }
.quiz-bars li { display: grid; grid-template-columns: minmax(9.5em, auto) 1fr 3.2em; align-items: center; gap: 10px; font-weight: 700; }
.quiz-bars .qb-name { white-space: nowrap; }
.quiz-bars .qb-bar { height: 14px; border-radius: 999px; background: rgba(21, 23, 31, .08); overflow: hidden; }
.quiz-bars .qb-bar i { display: block; height: 100%; border-radius: inherit; background: var(--gold); box-shadow: inset 0 -3px 0 rgba(21, 23, 31, .15); transform-origin: left; animation: bar-grow .7s cubic-bezier(.2, .8, .2, 1); }
.quiz-bars b { text-align: right; font-variant-numeric: tabular-nums; }
@keyframes bar-grow { from { transform: scaleX(0); } }
@media (max-width: 420px) { .quiz-bars li { grid-template-columns: 1fr 3em; } .quiz-bars .qb-bar { grid-column: 1 / -1; grid-row: 2; } }
@media (prefers-reduced-motion: reduce) { .quiz-bars .qb-bar i { animation: none; } }
.ticket-line { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; padding: 10px 12px; border: 2px dashed rgba(21, 23, 31, .25); border-radius: 14px; font-weight: 700; }
.ticket-line .ticket-code { font: 700 1.3rem var(--font-display); letter-spacing: .08em; margin: 0; }
.center { text-align: center; }
.mine .my-tickets { margin-top: 10px; }
.ticket-check { margin-top: 26px; color: var(--muted); }
.ticket-check summary { font: 600 .95rem var(--font-display); cursor: pointer; }
.ticket-check .row { margin-top: 10px; }


/* ---------- Loading: a tumbling trash can (one 34 KB strip, animated by CSS, no script) ---------- */

.trash-spin {
  display: inline-block;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: url("/img/trash-spin.webp") 0 0 / 2400% 100% no-repeat;
  animation: trash-spin 1.1s steps(24, jump-none) infinite;
}
.trash-spin.small { width: 30px; height: 30px; }
@keyframes trash-spin { to { background-position: 100% 0; } }
.boot { display: grid; justify-items: center; gap: 12px; padding: 22vh 0; color: var(--muted); font: 600 1rem var(--font-display); }
.boot .trash-spin { width: 84px; height: 84px; }
.den-loader { position: absolute; inset: 0; z-index: 9; display: none; place-items: center; background: var(--paper-2); }
.den.loading-3d .den-loader { display: grid; }
.sending { display: flex; align-items: center; justify-content: center; gap: 10px; }

/* ---------- Den: share, decor swatches, keepsake shelf, question of the week ---------- */
.den-share { position: absolute; right: 12px; top: 12px; z-index: 6; display: none; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); box-shadow: 0 3px 0 var(--ink); color: var(--ink); font: 600 .9rem var(--font-display); cursor: pointer; }
.den-share .icon { width: 20px; height: 20px; }
.den.is-3d .den-share { display: inline-flex; }
.den-share:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.share-preview { display: block; width: 100%; max-width: 360px; margin: 4px auto 0; border-radius: 16px; border: 2px solid var(--ink); }

.swatch-label { margin: 14px 0 6px; font: 600 1rem var(--font-display); }
.swatch-row { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.swatch { flex: none; width: 86px; display: grid; justify-items: center; gap: 3px; padding: 6px 4px 7px; border: 2px solid rgba(21, 23, 31, .18); border-radius: 14px; background: var(--card); color: var(--ink); cursor: pointer; scroll-snap-align: start; }
.swatch.on { border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.swatch-chip { width: 60px; height: 40px; border-radius: 10px; border: 2px solid var(--ink); }
.swatch.wall .swatch-chip { background: linear-gradient(transparent 70%, var(--low) 70%), repeating-linear-gradient(90deg, var(--a) 0 7px, var(--b) 7px 14px); }
.swatch.floor .swatch-chip { background: repeating-linear-gradient(90deg, var(--a) 0 12px, var(--b) 12px 24px, var(--low) 24px 36px); }
.swatch.window .swatch-chip { background: linear-gradient(var(--a), var(--b)); }
.swatch-name { font: 600 .78rem/1.15 var(--font-display); text-align: center; }
.swatch-cost { display: inline-flex; align-items: center; gap: 3px; font: 700 .74rem var(--font-body); color: var(--muted); }
.swatch.on .swatch-cost { color: var(--ok); }
.swatch-cost .cap-icon { width: 14px; height: 14px; }
/* Can't afford yet: the price is dimmed but still tappable, and a tap says how many more. */
.swatch.short .swatch-cost { opacity: .55; }
.btn.small.short { opacity: .6; box-shadow: 0 2px 0 var(--ink); }
.swatch.nope, .btn.small.nope { animation: nope .4s ease-in-out; }
.swatch.nope .swatch-cost, .btn.small.nope { opacity: 1; color: #a8381b; font-weight: 800; white-space: nowrap; }
.btn.small.nope { background: #ffe1d6; }
@keyframes nope { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.keeps { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.keep { display: grid; justify-items: center; gap: 2px; padding: 8px; border: 2px dashed rgba(21, 23, 31, .22); border-radius: 14px; text-align: center; }
.keep.got { border-style: solid; border-color: var(--ink); background: var(--card); }
.keep-pic { width: 72px; height: 72px; object-fit: contain; }
.keep:not(.got) .keep-pic { filter: grayscale(1) brightness(0); opacity: .18; }
.keep-name { font: 600 .95rem var(--font-display); }
.keep-how { font-size: .8rem; color: var(--muted); line-height: 1.3; }

.weekly { margin-top: 12px; padding: 14px 16px; border: var(--line) solid var(--ink); border-radius: 18px; background: var(--card); box-shadow: 0 4px 0 var(--ink); text-align: left; }
.weekly-kicker { margin: 0 0 4px; font: 700 .78rem var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.weekly-q { margin: 0 0 10px; font: 700 1.15rem/1.25 var(--font-display); }
.weekly-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.weekly-opt { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); font: 600 .9rem/1.2 var(--font-display); text-align: left; cursor: pointer; }
.weekly-opt span { font-size: 1.3rem; }
.weekly-opt:active { transform: translateY(2px); }
.weekly-bars { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.weekly-bars li { display: grid; grid-template-columns: 1fr 3em; gap: 4px 8px; align-items: center; font-weight: 700; font-size: .9rem; }
.weekly-bars .wb-bar { grid-column: 1 / -1; grid-row: 2; height: 10px; border-radius: 999px; background: rgba(21, 23, 31, .08); overflow: hidden; }
.weekly-bars .wb-bar i { display: block; height: 100%; background: var(--mint); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.weekly-bars li.mine .wb-bar i { background: var(--gold); }
.weekly-bars li.mine .wb-name::after { content: " · your pick"; color: var(--muted); font-weight: 600; }
.weekly-bars b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 380px) { .weekly-opts { grid-template-columns: 1fr; } }

/* ---------- Dig: the supply drop ---------- */
.incoming-tag {
  transform: translate(-50%, -50%);
  padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px;
  background: #ff5a4a; color: #fff; box-shadow: 0 3px 0 var(--ink);
  font: 700 .82rem/1.3 var(--font-display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  pointer-events: none !important;
  animation: incoming-blink .5s steps(2, jump-none) infinite;
}
@keyframes incoming-blink { 50% { background: #ffc53d; color: var(--ink); } }

/* The new raccoon's picture, leaping from the den to the Outfits button. */
.fly-fit { position: fixed; z-index: 55; width: 96px; height: 96px; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(21, 23, 31, .3)); }
.fly-fit img, .fly-fit svg { width: 100%; height: 100%; object-fit: contain; display: block; }

.more-btn { position: relative; }
.more-btn.bump { animation: bump .4s ease; }
.more-btn.has-new::after {
  content: "New"; position: absolute; top: -8px; right: -6px;
  padding: 1px 7px; border: 2px solid var(--ink); border-radius: 999px;
  background: #ff5a4a; color: #fff; font: 700 .7rem/1.4 var(--font-body);
}

/* A short note over the den for room things and caps, so the room stays in view. */
.den-banner {
  position: absolute; left: 50%; bottom: 14px; z-index: 7; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px);
  padding: 8px 14px 8px 10px; border: var(--line) solid var(--ink); border-radius: 16px;
  background: var(--card); box-shadow: 0 4px 0 var(--ink); color: var(--ink); text-align: left; cursor: pointer;
  animation: banner-in .35s cubic-bezier(.2, .9, .3, 1.3);
}
.den-banner.leaving { opacity: 0; transform: translate(-50%, 8px); transition: opacity .35s ease, transform .35s ease; }
.den-banner b { display: block; font: 700 1.05rem/1.2 var(--font-display); }
.den-banner small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.3; }
.den-banner .rarity-badge { margin-bottom: 2px; }
.den-banner .banner-pic { width: 46px; height: 46px; object-fit: contain; flex: none; }
.den-banner { width: min(360px, calc(100% - 24px)); }
.den-banner > span:last-child { flex: 1; min-width: 0; }
.den-banner .cap-icon.big { width: 40px; height: 40px; flex: none; }
@keyframes banner-in { from { opacity: 0; transform: translate(-50%, 16px) scale(.9); } }
.action .link-btn { margin-top: 6px; }
.big-action.opening { filter: saturate(.75); cursor: default; }
.big-action.opening .big-action-text .t::after { content: ""; }
.done-next { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.done-next .btn { min-height: 46px; }
.action-done .streak-note { margin-top: 6px; font-size: .9rem; color: var(--muted); }
.odds.open { border-style: solid; }
@media (prefers-reduced-motion: reduce) {
  .incoming-tag, .den-banner { animation: none; }
}
