:root {
  --paper: #fbf5ea;
  --card: #fffdf8;
  --ink: #2a2233;
  --muted: #6d6377;
  --pink: #ffb3d4;
  --yellow: #ffe27a;
  --blue: #aedbff;
  --green: #c3efb4;
  --lilac: #d8c8ff;
  --peach: #ffcba8;
  --red: #ff6b6b;
  --line: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --radius: 14px;
  --hand: "Gaegu", "Comic Sans MS", cursive;
  --body: "Nunito", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  /* extra theme settings (themes.css overrides these per theme) */
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-xs: 2px 2px 0 var(--ink);
  --field: #fff;            /* inputs, search results */
  --note: #fff7b0;          /* sticky notes */
  --letter: #fffbe8;        /* the settlement letter */
  --card-alt: #fff7fb;      /* the question box */
  --shelf: #fff;            /* video store shelf units + counter */
  --store-wall: repeating-linear-gradient(90deg, #faf7ff 0 44px, #f3eefc 44px 88px);
  --on-light: #2a2233;      /* text on things that stay light in every theme (phone, polaroids, ads) */
  --dots: rgba(42, 34, 51, 0.14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dots) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--hand); font-weight: 700; line-height: 1.1; margin: 0 0 0.4em; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 0.8em; }
.mono { font-family: var(--mono); }
.small { font-size: 0.8rem; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-head { padding: 34px 16px 6px; text-align: center; }
.logo { font-size: clamp(2.6rem, 8vw, 4.2rem); margin: 0; }
.hl { background: linear-gradient(transparent 58%, var(--pink) 58%, var(--pink) 90%, transparent 90%); padding: 0 6px; }
.logo-sub { display: block; font-size: 0.42em; color: var(--muted); font-weight: 400; margin-top: 4px; }

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 8px; }
.tabs a {
  font-family: var(--hand); font-weight: 700; font-size: 1.35rem;
  color: var(--ink); text-decoration: none;
  padding: 2px 16px 4px;
  background: var(--bg, var(--card));
  border: var(--line); border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.15s, box-shadow 0.15s;
}
.tabs a:nth-child(1) { --bg: var(--yellow); --r: -2deg; }
.tabs a:nth-child(2) { --bg: var(--blue); --r: 1.5deg; }
.tabs a:nth-child(3) { --bg: var(--pink); --r: -1deg; }
.tabs a:nth-child(4) { --bg: var(--lilac); --r: 2deg; }
.tabs a:nth-child(5) { --bg: var(--green); --r: -1.5deg; }
.tabs a:nth-child(6) { --bg: var(--peach); --r: 1deg; }
.tabs a:nth-child(7) { --bg: var(--card); --r: -2deg; }
.tabs a:hover { transform: rotate(0) translateY(-2px); }
.tabs a[aria-current="page"] { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); text-decoration: underline wavy; text-underline-offset: 4px; }

main { padding: 18px 16px 40px; }
.page { animation: pop-in 0.35s ease both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px); } }

.page-head { text-align: center; max-width: 620px; margin: 10px auto 28px; }
.page-head h2 { font-size: clamp(2.2rem, 6vw, 3rem); }
.page-head p { color: var(--muted); }
.section-title { text-align: center; margin: 34px 0 18px; font-size: 2rem; }
.section-title.left { text-align: left; margin-top: 0; }

/* ---------- shared bits ---------- */
.card {
  position: relative;
  background: var(--card);
  border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.tilt-l { transform: rotate(-0.6deg); }
.tilt-r { transform: rotate(0.6deg); }
.tape {
  position: absolute; top: -13px; left: 50%;
  width: 110px; height: 26px; margin-left: -55px;
  background: repeating-linear-gradient(45deg, rgba(255, 179, 212, 0.85) 0 8px, rgba(255, 226, 122, 0.85) 8px 16px);
  transform: rotate(-3deg);
  border-left: 1px dashed rgba(0, 0, 0, 0.15);
  border-right: 1px dashed rgba(0, 0, 0, 0.15);
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 26px; margin-top: 10px; }

.btn {
  font: 700 1rem var(--body);
  color: var(--ink);
  background: var(--yellow);
  border: var(--line); border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 8px 16px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.big { font-size: 1.1rem; padding: 11px 22px; background: var(--pink); }
.btn.ghost { background: var(--card); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

input, textarea {
  font: 1rem var(--body); color: var(--ink);
  background: var(--field);
  border: var(--line); border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
}
input:focus, textarea:focus, .btn:focus-visible, .tabs a:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }

/* ---------- home ---------- */
.status-line { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 3em; transition: opacity 0.3s; }
.status-line.fade { opacity: 0; }
.dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #ffb020; border: 2px solid var(--ink); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 0; }
.mini-stats div { background: var(--paper); border: var(--line); border-radius: 10px; padding: 8px; text-align: center; }
.mini-stats dt { font-size: 0.72rem; color: var(--muted); line-height: 1.2; }
.mini-stats dd { margin: 2px 0 0; font: 700 1.5rem var(--hand); }

.marquee { margin: 34px -16px 0; border-block: var(--line); background: var(--ink); color: var(--paper); overflow: hidden; transform: rotate(-1deg); }
.marquee-track { display: flex; width: max-content; animation: scroll 28s linear infinite; font: 700 1.3rem var(--hand); padding: 6px 0; }
.marquee-track span { padding: 0 22px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; margin-left: 44px; color: var(--pink); }
@keyframes scroll { to { transform: translateX(-50%); } }

.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.door {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px; color: var(--ink); text-decoration: none;
  background: var(--bg); border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.door:nth-child(odd) { transform: rotate(-1deg); }
.door:nth-child(even) { transform: rotate(1deg); }
.door:hover { transform: translate(-2px, -3px) rotate(0); box-shadow: 6px 7px 0 var(--ink); }
.door-emoji { font-size: 2.2rem; }
.door b { font: 700 1.6rem var(--hand); }
.door small { font-size: 0.85rem; }

/* ---------- lost texts ---------- */
.texts-layout { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 34px; align-items: start; }
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone {
  width: 100%;
  background: #fff;
  border: 3px solid var(--ink); border-radius: 38px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 14px 12px 12px;
  overflow: hidden;
}
.phone-notch { width: 90px; height: 20px; background: var(--ink); border-radius: 0 0 14px 14px; margin: -14px auto 8px; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; border-bottom: 1px solid #e6e0ea; }
.phone-head b { display: block; font-size: 0.95rem; }
.phone-head small { color: var(--muted); font-size: 0.75rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--lilac); border: var(--line); display: grid; place-items: center; font: 700 1.3rem var(--hand); flex: none; }
.thread { height: 480px; overflow-y: auto; padding: 12px 4px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.bubble { max-width: 78%; padding: 8px 12px; border-radius: 18px; font-size: 0.92rem; line-height: 1.35; overflow-wrap: anywhere; }
.bubble small { display: block; font-size: 0.68rem; opacity: 0.7; margin-top: 3px; }
.bubble.them { align-self: flex-start; background: #ece8ef; border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: #4e8cff; color: #fff; border-bottom-right-radius: 5px; }
.bubble.lost { align-self: center; background: transparent; border: 2px dashed #c8bfd0; color: var(--muted); text-align: center; max-width: 90%; }
.redact { display: block; height: 12px; width: 140px; margin: 2px auto 4px; background: var(--ink); border-radius: 3px; opacity: 0.8; }
.bubble.typing { display: flex; gap: 4px; padding: 12px 14px; background: #ece8ef; }
.bubble.typing span, .typing-dots span { width: 7px; height: 7px; border-radius: 50%; background: #9a90a3; animation: bob 1.2s infinite; }
.bubble.typing span:nth-child(2), .typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing span:nth-child(3), .typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bob { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-5px); } }
.glitch { animation: glitch 0.6s steps(2) both; }
@keyframes glitch {
  0% { opacity: 0; transform: translateX(-6px) skewX(12deg); filter: hue-rotate(90deg); }
  30% { opacity: 1; transform: translateX(5px) skewX(-8deg); }
  60% { transform: translateX(-2px); filter: none; }
  100% { transform: none; }
}
.phone-input { display: flex; justify-content: space-between; align-items: center; border: 1px solid #ddd5e2; border-radius: 20px; padding: 7px 7px 7px 14px; color: #a69bb0; font-size: 0.85rem; }
.send { width: 26px; height: 26px; border-radius: 50%; background: #c9d9f7; color: #fff; display: grid; place-items: center; font-weight: 800; }

.texts-side { display: flex; flex-direction: column; gap: 30px; }
.stat-list { list-style: none; margin: 0; padding: 0; }
.stat-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 2px dotted #d8cfdf; font-size: 0.9rem; }
.stat-list li:last-child { border-bottom: 0; }
.stat-list b { text-align: right; }
#stat-lost { color: var(--red); font-size: 1.15rem; }

/* ---- the pop-up lawyer ad (sits over the phone screen) ---- */
.phone { position: relative; color: var(--on-light); }  /* the phone stays white in every theme */
.ad {
  position: absolute; left: 10px; right: 10px; top: 70px; bottom: 54px; z-index: 4;
  display: flex; flex-direction: column; overflow: hidden;
  background: #1031a8; color: #fff;
  border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 0 0 0 4px #ffd400, 5px 7px 0 4px var(--ink);
}
.ad.ad-in { animation: ad-pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
@keyframes ad-pop { from { transform: scale(0.4) rotate(-6deg); opacity: 0; } }
.ad-top { display: flex; justify-content: space-between; align-items: center; padding: 5px 7px; background: #0a2070; }
.ad-tag { font: 700 0.65rem var(--mono); background: #ffd400; color: var(--on-light); padding: 0 5px; border-radius: 3px; }
.ad-skip { font: 700 0.72rem var(--mono); color: #fff; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 4px; padding: 3px 8px; cursor: pointer; }
.ad-skip:disabled { cursor: wait; opacity: 0.75; }
.ad-skip:not(:disabled):hover { background: #fff; color: #1031a8; }
.ad-ticker { overflow: hidden; background: #e3121b; border-block: 2px solid #ffd400; }
.ad-ticker-track { display: flex; width: max-content; animation: scroll 9s linear infinite; font: 400 0.85rem/1.6 "Anton", "Impact", sans-serif; text-transform: uppercase; letter-spacing: 0.06em; }
.ad-ticker-track span { white-space: nowrap; }
.ad-body { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; text-align: center; overflow-y: auto;
  background: radial-gradient(circle at 50% 120%, #2f5cff 0, transparent 70%); }
.ad-q { margin: 0; font: 400 0.95rem/1.45 "Anton", "Impact", sans-serif; text-transform: uppercase; letter-spacing: 0.04em; word-spacing: 0.08em; }
.ad-q u { text-decoration-color: #ffd400; text-decoration-thickness: 3px; }
.ad-name { color: #ffd400; }
.ad-red { color: #fff; background: #e3121b; padding: 1px 6px; margin: 0 3px; border-radius: 3px; white-space: nowrap; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ad-big { margin: 2px 0 0; font: 400 0.84rem/1.5 "Anton", "Impact", sans-serif; text-transform: uppercase; letter-spacing: 0.04em; word-spacing: 0.08em; }
.ad-money { display: block; margin-top: 6px; font-size: 1.55rem; line-height: 1.1; letter-spacing: 0.02em; color: #ffd400; text-shadow: 3px 3px 0 #e3121b; animation: ad-throb 1.2s ease-in-out infinite; }
.ad-money sup { font-size: 0.5em; }
@keyframes ad-throb { 50% { transform: scale(1.06); } }
.ad-btn {
  margin-top: 0; padding: 5px 14px;
  font: 400 0.95rem "Anton", "Impact", sans-serif; text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none;
  color: var(--on-light); background: #ffd400; border: 3px solid var(--on-light); border-radius: 999px; box-shadow: var(--shadow-sm);
  animation: ad-throb 1.2s ease-in-out infinite;
}
.ad-btn:hover { background: #fff; }
.ad-phone { display: flex; flex-direction: column; line-height: 1.1; }
.ad-phone small { font: 0.62rem var(--mono); text-transform: uppercase; opacity: 0.85; }
.ad-phone b { font: 400 1.05rem "Anton", "Impact", sans-serif; letter-spacing: 0.04em; }
.ad-small { margin: 0; max-width: 70%; font-size: 0.62rem; line-height: 1.25; opacity: 0.85; }
.ad-badge {
  position: absolute; bottom: 8px; right: 6px; width: 54px; height: 54px;
  display: grid; place-items: center; text-align: center;
  font: 400 0.62rem/1.05 "Anton", "Impact", sans-serif; text-transform: uppercase; color: var(--on-light);
  background: #ffd400; border: 2px solid var(--on-light); border-radius: 50%; transform: rotate(14deg);
}
.fine-print { margin: 0; padding: 6px 8px; font-size: 0.5rem; line-height: 1.3; color: rgba(255, 255, 255, 0.7); background: #0a2070; }

/* ---- claim form + settlement letter ---- */
.claim h3 small { font-size: 0.8rem; color: var(--muted); }
#claim-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.injuries { margin: 0; padding: 10px 12px; border: 2px dashed #cfc4d9; border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.injuries legend { font-weight: 700; font-size: 0.9rem; padding: 0 4px; }
.injuries label { display: flex; gap: 8px; align-items: flex-start; font-size: 0.92rem; cursor: pointer; }
.injuries input { width: auto; margin-top: 4px; accent-color: #e3121b; }
.settlement {
  position: relative; margin-top: 18px; padding: 18px;
  background: var(--letter); border: 2px double var(--ink); outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px;
  animation: pop-in 0.4s ease both;
}
.settlement h4 { font-size: 1.7rem; margin-bottom: 8px; }
.settlement > p.mono { padding-right: 100px; }
.settlement ul { margin: 0 0 10px; padding-left: 20px; }
.settlement p { overflow-wrap: anywhere; }
.settlement .sig { font: 700 1.4rem var(--hand); text-align: right; margin: 0; }
.stamp {
  position: absolute; top: 14px; right: 12px;
  display: flex; flex-direction: column; align-items: center;
  font: 400 1.3rem/1 "Anton", "Impact", sans-serif; text-transform: uppercase; color: #d11a2a;
  border: 3px solid #d11a2a; border-radius: 6px; padding: 4px 8px; transform: rotate(12deg); opacity: 0.85;
}
.stamp small { font: 0.55rem var(--mono); text-transform: none; }

/* ---------- ask ---------- */
.ask-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.ask-box { display: flex; flex-direction: column; gap: 12px; background: var(--card-alt); }
.ask-label { font: 700 1.8rem var(--hand); }
.ask-box textarea { resize: vertical; min-height: 130px; }
.ask-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ask-msg { min-height: 1.4em; font-weight: 700; margin: 0; }
.dev-note { font-size: 0.8rem; color: var(--muted); border-top: 2px dotted #e3d6df; padding-top: 10px; }
.dev-note summary { cursor: pointer; }
.dev-note ol { margin: 8px 0 0; padding-left: 20px; }

.answers { display: flex; flex-direction: column; gap: 18px; }
.qa { background: var(--card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.qa-q { background: var(--lilac); padding: 12px 16px; border-bottom: var(--line); font-weight: 700; }
.qa-q::before { content: "anon asked: "; font: 400 0.75rem var(--mono); display: block; opacity: 0.7; }
.qa-a { padding: 12px 16px; margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.qa-q { overflow-wrap: anywhere; }
.empty { color: var(--muted); font-style: italic; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.qa-date { display: block; padding: 0 16px 10px; color: var(--muted); }

/* ---------- showcase ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.chip { font: 700 0.9rem var(--body); color: var(--ink); background: var(--card); border: var(--line); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.polaroids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 30px 26px; }
.polaroid {
  display: flex; flex-direction: column; gap: 2px;
  background: #fff; color: var(--on-light); text-decoration: none;
  border: var(--line); border-radius: 4px;
  padding: 12px 12px 16px;
  box-shadow: var(--shadow);
  transform: rotate(var(--r));
  transition: transform 0.2s;
  animation: pop-in 0.35s ease both;
}
a.polaroid:hover, .polaroid:hover { transform: rotate(0) scale(1.03); z-index: 1; }
.polaroid-img { aspect-ratio: 1; background: var(--bg); border: var(--line); display: grid; place-items: center; font-size: 4rem; margin-bottom: 10px; overflow: hidden; }
.polaroid-img img { width: 100%; height: 100%; object-fit: cover; }
.polaroid b { font: 700 1.5rem var(--hand); }
.polaroid small { color: var(--muted); }
.tag { align-self: flex-start; margin-top: 8px; font: 0.7rem var(--mono); border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 8px; }

/* ---------- games ---------- */
.game { margin-bottom: 30px; }
.game-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.game-head p { max-width: 460px; color: var(--muted); }
.hud { display: flex; gap: 16px; align-items: center; font-size: 0.9rem; }
.hud b { font-size: 1.2rem; }
.strikes span { font-size: 1.1rem; margin-left: 2px; }
.strikes .x { color: var(--red); }

.arena {
  color: var(--on-light);
  position: relative; height: 400px;
  border: var(--line); border-radius: var(--radius);
  background-color: #f2f7ff;
  background-image: linear-gradient(rgba(42, 34, 51, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(42, 34, 51, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
}
.arena-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(251, 245, 234, 0.85); z-index: 5; text-align: center; padding: 16px; }
.arena-overlay p { font: 700 2.2rem var(--hand); margin: 0; }
.arena-overlay small { font-size: 1.2rem; font-weight: 400; color: var(--muted); }
.ping {
  position: absolute;
  display: flex; flex-direction: column; align-items: flex-start;
  width: 170px; padding: 8px 12px 12px;
  font: 0.85rem var(--body); text-align: left; color: var(--on-light);
  background: #fff; border: var(--line); border-radius: 14px 14px 14px 4px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  animation: ping-in 0.2s ease-out both;
  overflow: hidden;
}
.ping b { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.ping span { overflow-wrap: anywhere; }
.fuse { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: var(--red); transform-origin: left; animation: fuse var(--life) linear forwards; }
.ping.replied { background: var(--green); animation: ping-out 0.35s ease-in forwards; pointer-events: none; }
.ping.expired { background: #e9e4ec; color: var(--muted); border-style: dashed; animation: sink 0.7s ease-in forwards; pointer-events: none; }
.ping.replied .fuse, .ping.expired .fuse { display: none; }
@keyframes ping-in { from { transform: scale(0.5); opacity: 0; } }
@keyframes ping-out { to { transform: scale(1.2) rotate(6deg); opacity: 0; } }
@keyframes sink { to { transform: translateY(30px); opacity: 0; } }
@keyframes fuse { to { transform: scaleX(0); } }

.speed-box {
  width: 100%; min-height: 150px; margin: 6px 0 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--body); color: var(--ink);
  background: var(--lilac); border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer; user-select: none; touch-action: manipulation;
}
.speed-box b { font: 700 2rem var(--hand); }
.speed-box.wait { background: #ece8ef; }
.speed-box.go { background: var(--green); animation: shake 0.3s; }
.speed-box.early { background: var(--peach); }
.typing-dots { display: flex; gap: 5px; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.excuse { margin: 10px 0 16px; padding: 14px 16px; background: var(--paper); border-left: 5px solid var(--pink); border-radius: 6px; font: 700 1.35rem/1.25 var(--hand); min-height: 4.2em; }

/* ---------- shared small bits ---------- */
.hint { color: var(--muted); font-size: 0.9rem; margin: 0; }
.x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--ink); padding: 4px; line-height: 1; }
.small-btn { font-size: 0.85rem; padding: 5px 10px; box-shadow: var(--shadow-xs); }
.lbl, .two-inputs label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 0.9rem; }
select { font: 1rem var(--body); color: var(--ink); background: var(--field); border: var(--line); border-radius: 10px; padding: 9px 10px; }

/* ---------- aquarium ---------- */
.tank-wrap { position: relative; border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); background: #3a9bd0; }
.tank { display: block; width: 100%; height: clamp(320px, 52vw, 480px); cursor: pointer; touch-action: manipulation; }
.tank-label { position: absolute; left: 12px; top: 10px; color: var(--on-light); background: rgba(255, 255, 255, 0.88); border: 2px solid var(--on-light); border-radius: 999px; padding: 1px 10px; pointer-events: none; }
.tank-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 16px; text-align: center; font: 700 1.9rem var(--hand); color: #fff; text-shadow: 2px 2px 0 var(--ink); pointer-events: none; }
.fish-pop { position: absolute; z-index: 3; width: 220px; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; font-size: 0.9rem; color: var(--on-light); background: #fff; border: var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.fish-pop b { font: 700 1.45rem/1.1 var(--hand); padding-right: 22px; overflow-wrap: anywhere; }
.fish-pop span { overflow-wrap: anywhere; }
.fish-pop .btn { margin-top: 6px; align-self: flex-start; }

.aq-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 30px; margin-top: 34px; align-items: start; }
.draw-card { display: flex; flex-direction: column; gap: 10px; }
.draw-card h3, .catch-card h3 { margin-bottom: 0; }
.pad-wrap {
  border: var(--line); border-radius: 12px; overflow: hidden;
  background-color: #eaf7ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 300'%3E%3Cg fill='none' stroke='%23b4d3e4' stroke-width='3' stroke-dasharray='10 9'%3E%3Cpath d='M390 150 Q270 40 150 150 Q270 260 390 150 Z'/%3E%3Cpath d='M150 150 L70 90 L82 150 L70 210 Z'/%3E%3Ccircle cx='345' cy='135' r='9'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%;
}
#fish-pad { display: block; width: 100%; height: auto; aspect-ratio: 480 / 300; touch-action: none; cursor: crosshair; }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.tool-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sizes { display: flex; gap: 6px; margin-right: 6px; }
.size, .tool { height: 34px; min-width: 34px; padding: 0 10px; display: grid; place-items: center; font: 700 0.85rem var(--body); color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 8px; cursor: pointer; }
.size { padding: 0; }
.size i { display: block; width: var(--s); height: var(--s); border-radius: 50%; background: var(--ink); }
.size[aria-pressed="true"], .tool[aria-pressed="true"] { background: var(--yellow); }
.two-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; margin: 16px 0 4px; min-height: 120px; }
.podium .empty { grid-column: 1 / -1; align-self: center; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.step img { max-width: 90%; max-height: 64px; object-fit: contain; margin-bottom: 4px; }
.step b { font: 700 1.15rem/1.05 var(--hand); overflow-wrap: anywhere; }
.step > small { color: var(--muted); font-size: 0.75rem; overflow-wrap: anywhere; }
.step .block { width: 100%; margin-top: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 1.4rem var(--hand); border: var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; }
.step .block small { font: 0.7rem var(--mono); }
.step-1 .block { height: 92px; background: var(--yellow); }
.step-0 .block { height: 66px; background: #e6e4ee; }
.step-2 .block { height: 48px; background: var(--peach); }
.last-champ { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 2px dotted #d8cfdf; font-size: 0.9rem; }
.last-champ img { width: 56px; height: 40px; object-fit: contain; }

.registry-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.registry-bar input { flex: 1 1 220px; width: auto; }
.registry-bar .chips { margin: 0; }
.registry { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.fish-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--card); border: var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.fish-thumb { height: 110px; padding: 8px; display: grid; place-items: center; background: #dff2fc; border: 2px solid var(--ink); border-radius: 8px; }
.fish-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fish-card dl { margin: 0; display: grid; gap: 2px; }
.fish-card dl div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; font-size: 0.88rem; border-bottom: 1px dashed #e0d8e6; }
.fish-card dt { align-self: center; color: var(--muted); font: 0.7rem var(--mono); white-space: nowrap; }
.fish-card dd { margin: 0; min-width: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.fish-card .btn { align-self: flex-start; }

/* ---------- video store ---------- */
.store {
  position: relative; overflow: hidden;
  padding: 28px 20px 0;
  background: var(--store-wall);
  border: 3px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink);
}
.store-title { margin: 0; text-align: center; text-transform: uppercase; font: 400 clamp(1.7rem, 6.4vw, 3.7rem)/1.05 "Bungee Shade", var(--hand); letter-spacing: 0.01em; overflow-wrap: anywhere; }
.store-tagline { text-align: center; color: var(--muted); margin: 8px 0 18px; }
.store-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-bottom: 30px; }
.store-bar input { flex: 0 1 260px; width: auto; }
.store-count { color: var(--muted); }
.store-empty { text-align: center; grid-column: 1 / -1; }

.aisles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; align-items: start; }
.unit { display: flex; flex-direction: column; padding: 0 10px; background: var(--shelf); border: 3px solid var(--ink); border-radius: 4px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(var(--tilt)); }
.unit-sign { margin: 0 -10px; padding: 5px 10px; text-align: center; font: 700 1.35rem var(--hand); background: var(--yellow); border-bottom: 3px solid var(--ink); }
.unit:nth-child(4n + 2) .unit-sign { background: var(--pink); }
.unit:nth-child(4n + 3) .unit-sign { background: var(--blue); }
.unit:nth-child(4n + 4) .unit-sign { background: var(--green); }
.unit-new .unit-sign { background: var(--ink) !important; color: var(--yellow); }
.boards {
  --row: 120px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); grid-auto-rows: var(--row);
  column-gap: 6px; min-height: calc(var(--row) * 3); padding-top: 4px;
  /* the shelf boards: a black line + a wooden lip every row */
  background: repeating-linear-gradient(to bottom,
    transparent 0 calc(var(--row) - 11px),
    var(--ink) calc(var(--row) - 11px) calc(var(--row) - 8px),
    #d4a670 calc(var(--row) - 8px) calc(var(--row) - 1px),
    var(--ink) calc(var(--row) - 1px) var(--row));
}
.slot { align-self: end; justify-self: center; margin-bottom: 7px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform 0.15s; }
.slot:hover, .slot:focus-visible { transform: translateY(-7px) rotate(-2deg); outline: none; }
.slot:focus-visible .dvd { outline: 3px solid var(--lilac); outline-offset: 2px; }
.slot.fresh { animation: drop-in 0.8s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
@keyframes drop-in { from { transform: translateY(-140px) rotate(-14deg); opacity: 0; } }
.slot.ghost { width: 58px; height: 82px; display: grid; place-items: center; color: #b3a8c1; font: 700 1.6rem var(--body); border: 2px dashed #c4bad0; border-radius: 4px; }
.slot.ghost:hover, .slot.ghost:focus-visible { color: var(--ink); border-color: var(--ink); background: rgba(255, 226, 122, 0.45); }

/* the DVD case */
.dvd {
  --w: 58px;
  position: relative; display: block; width: var(--w); aspect-ratio: 135 / 190;
  padding: 3px 3px 3px 8px;
  background: #16141d; border-radius: 3px 5px 5px 3px;
  box-shadow: 2px 3px 0 rgba(42, 34, 51, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.dvd::before { /* hinge ridges on the spine */
  content: ""; position: absolute; left: 2px; top: 4px; bottom: 4px; width: 4px; border-radius: 2px;
  background: repeating-linear-gradient(to bottom, #34303f 0 3px, #0c0b10 3px 5px);
}
.dvd-cover { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 1px; background: #2d2a36; }
.dvd-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dvd-shine { /* the clear plastic sleeve */
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.1) 20%, transparent 38%, transparent 72%, rgba(255, 255, 255, 0.16) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.dvd-fallback {
  width: 100%; height: 100%; padding: 4px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; overflow: hidden;
  text-align: center; color: #fff; line-height: 1.1;
  background: linear-gradient(160deg, hsl(var(--h) 75% 62%), hsl(calc(var(--h) + 50) 60% 28%));
}
.dvd-fallback b { font: 800 8px var(--body); overflow-wrap: anywhere; text-transform: uppercase; }
.dvd-fallback small { font: 7px var(--mono); opacity: 0.85; }
.dvd.big { --w: 200px; padding: 8px 8px 8px 18px; border-radius: 6px 10px 10px 6px; box-shadow: 5px 6px 0 rgba(42, 34, 51, 0.5); }
.dvd.big::before { left: 4px; top: 10px; bottom: 10px; width: 9px; }
.dvd.big .dvd-fallback b { font-size: 1.3rem; }
.dvd.big .dvd-fallback small { font-size: 0.9rem; }

/* the front counter + clerk */
.desk-area { position: relative; height: 300px; margin: 18px -20px 0; }
.desk-area::after { /* checkered floor */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  border-top: 3px solid var(--ink);
  background: repeating-conic-gradient(#2a2233 0 25%, #fdfbff 0 50%) 0 0 / 26px 26px;
  opacity: 0.9;
}
.clerk { position: absolute; left: 80px; bottom: 116px; z-index: 1; width: 230px; height: 210px; padding: 0; border: 0; background: none; cursor: pointer; }
.clerk-art { position: absolute; left: 0; bottom: 0; width: 220px; height: 200px; display: block; }
.clerk-art svg, .clerk-art img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: bottom center; }
.clerk:hover .clerk-art, .clerk:focus-visible .clerk-art { transform: translateY(-4px); transition: transform 0.15s; }
.speech {
  position: absolute; left: 196px; top: -6px; z-index: 3;
  width: max-content; max-width: 200px; padding: 6px 11px;
  font: 700 1.1rem/1.15 var(--hand); text-align: left; color: var(--on-light);
  background: #fff; border: var(--line); border-radius: 14px; box-shadow: var(--shadow-xs);
}
.speech::before { content: ""; position: absolute; left: -9px; bottom: 10px; width: 14px; height: 14px; background: #fff; border-left: var(--line); border-bottom: var(--line); transform: rotate(45deg); }
.speech.pop-in { animation: pop-in 0.3s ease both; }
.desk { position: absolute; left: 20px; bottom: 22px; z-index: 2; width: min(430px, calc(100% - 40px)); height: 132px; }
.desk-top { height: 20px; background: #d4a670; border: 3px solid var(--ink); border-radius: 6px 6px 0 0; }
.desk-front {
  height: calc(100% - 20px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--shelf);
  border: 3px solid var(--ink); border-top: 0;
}
.desk-sign { font: 700 1.7rem var(--hand); padding: 0 16px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 6px; transform: rotate(-2deg); }
.desk-note { font-size: 0.72rem; color: var(--muted); text-align: center; padding: 0 8px; }

/* placeholder clerk drawing (swap with config.store.clerkImage) */
.c-hair { fill: #3d2b2e; stroke: var(--ink); stroke-width: 2.5; }
.c-skin { fill: #f7d5bb; stroke: var(--ink); stroke-width: 2.5; }
.c-shirt { fill: #ff7aa2; stroke: var(--ink); stroke-width: 2.5; }
.c-collar, .c-line, .c-lid { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.c-tag { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.c-tag-text { font: 700 9px var(--mono); fill: var(--ink); }
.c-blush { fill: #ff9fb5; opacity: 0.6; }
.c-mouth { fill: var(--ink); }
.c-file { fill: #c9c6d6; stroke: var(--ink); stroke-width: 2; }
.c-bubble { fill: #ff94cc; stroke: var(--ink); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: gum 6s ease-in-out infinite; }
@keyframes gum {
  0%, 15% { transform: scale(0); opacity: 1; }
  55% { transform: scale(1); opacity: 1; }
  60% { transform: scale(1.12); opacity: 1; }
  63% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(0); opacity: 0; }
}
.c-hand-file { animation: nail-file 2.8s ease-in-out infinite; }
@keyframes nail-file {
  0%, 60%, 100% { transform: translate(0, 0); }
  8%, 24%, 40% { transform: translate(-9px, 3px); }
  16%, 32%, 48% { transform: translate(4px, -1px); }
}

/* store pop-ups */
.store-dialog {
  width: min(780px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto;
  padding: 24px; color: var(--ink); background: var(--card);
  border: 3px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink);
}
.store-dialog::backdrop { background: rgba(42, 34, 51, 0.55); }
.store-dialog h3 { font-size: 2rem; }
.rec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 14px; }
.results { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 380px; overflow: auto; padding: 2px; }
.result { display: flex; gap: 10px; align-items: center; padding: 6px; text-align: left; font: inherit; color: var(--ink); background: var(--field); border: 2px solid var(--ink); border-radius: 10px; cursor: pointer; }
.result:hover, .result.picked { background: var(--yellow); }
.result-thumb { flex: none; width: 38px; height: 54px; display: grid; place-items: center; overflow: hidden; background: #eee; border-radius: 3px; }
.result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.result b { display: block; font-size: 0.95rem; }
.result small { color: var(--muted); font-size: 0.78rem; }
.result.manual { justify-content: center; font-size: 0.85rem; border-style: dashed; }
.rec-form { display: flex; flex-direction: column; gap: 12px; }
.rec-form textarea { resize: vertical; }
.lbl-head { display: flex; align-items: center; gap: 6px; }
.req { color: #c2185b; }
.tip {
  position: relative; flex: none;
  width: 20px; height: 20px; display: inline-grid; place-items: center;
  font: 800 0.75rem var(--body); color: var(--ink); background: var(--lilac);
  border: 2px solid var(--ink); border-radius: 50%; cursor: help;
}
.tip::after {
  content: attr(data-tip);
  position: absolute; right: -8px; bottom: calc(100% + 8px); z-index: 5;
  width: max-content; max-width: 230px; padding: 7px 10px;
  font: 600 0.8rem/1.35 var(--body); text-align: left; color: var(--paper);
  background: var(--ink); border-radius: 8px;
  transform: translateY(4px); opacity: 0; pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
/* hovering the label text works too, not just the little ? */
.lbl-head:hover .tip::after, .tip:focus-visible::after, .tip:focus::after { opacity: 1; transform: none; }
.rec-form .btn:disabled { box-shadow: var(--shadow-sm); }
.rec-preview { display: flex; gap: 14px; align-items: center; }
.rec-preview .dvd { --w: 92px; }
.rec-preview b { display: block; font: 700 1.5rem/1.1 var(--hand); }
.rec-preview small { color: var(--muted); }
.movie-detail { display: flex; gap: 26px; align-items: flex-start; }
.movie-info { flex: 1; min-width: 0; }
.movie-info h3 { padding-right: 24px; overflow-wrap: anywhere; }
.movie-info h3 small { font-size: 1.1rem; color: var(--muted); }
.rec-note { margin: 14px 0; padding: 12px 14px; background: var(--note); border: 2px solid var(--ink); box-shadow: var(--shadow-sm); transform: rotate(-1deg); }
.rec-note p { margin: 0 0 6px; white-space: pre-line; overflow-wrap: anywhere; }
.rec-note .sig { margin: 0; text-align: right; font: 700 1.35rem var(--hand); }

@media (max-width: 820px) {
  .aisles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aq-grid, .rec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .aisles { grid-template-columns: 1fr; }
  .two-inputs { grid-template-columns: 1fr; }
  .movie-detail { flex-direction: column; align-items: center; }
  .dvd.big { --w: 160px; }
  .clerk { left: 4px; }
  .speech { left: 160px; max-width: 150px; font-size: 1rem; }
  .store { padding-left: 14px; padding-right: 14px; }
  .desk-area { margin-left: -14px; margin-right: -14px; }
}

/* ---------- modules (the rearrangeable blocks) ---------- */
.mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 26px; align-items: start; grid-auto-flow: row dense; }
.mods > .full { grid-column: 1 / -1; }
.mods > .tall { grid-row: span 2; }
.mods .game { margin-bottom: 0; }
.phone-col > .phone { max-width: 380px; }
body:not(.editing) .mod-hidden { display: none !important; }
html.layout-pending main, html.layout-pending .tabs { visibility: hidden; }
@media (max-width: 820px) {
  .mods { grid-template-columns: 1fr; }
  .mods > .tall { grid-row: auto; }
}

/* the honest note on the lost texts page */
.honest-note { background: var(--note); transform: rotate(-0.4deg); }
.honest-note p { margin: 0 0 10px; max-width: 760px; }
.honest-note p:last-child { margin-bottom: 0; }
.note-lead { font: 700 1.6rem/1.2 var(--hand); }

/* ---------- accounts ---------- */
.site-head { position: relative; }
.head-tools { position: absolute; top: 14px; right: 16px; display: flex; gap: 8px; align-items: center; z-index: 5; }
.account-pill {
  font: 700 0.85rem var(--body); color: var(--ink); text-decoration: none;
  background: var(--card); border: var(--line); border-radius: 999px; padding: 4px 12px;
  box-shadow: var(--shadow-xs);
}
.account-pill.signed-in { background: var(--green); }
.theme-pick { display: flex; align-items: center; gap: 6px; font: 700 0.75rem var(--mono); color: var(--muted); }
.theme-pick select { font: 700 0.8rem var(--body); padding: 3px 8px; border-radius: 999px; box-shadow: var(--shadow-xs); cursor: pointer; }
.account-pill:hover { transform: translateY(-1px); }
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: start; }
.auth-grid form { display: flex; flex-direction: column; gap: 12px; }
.auth-grid .forgot { align-self: center; font-size: 0.85rem; color: var(--muted); }
.me-off { text-align: center; }
.me-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.me-hello { font: 700 1.8rem var(--hand); margin: 0 0 8px; }
.me-bar .inline-form { max-width: 380px; }
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; min-width: 0; }
#page-me .section-title.left { margin: 30px 0 6px; }
#page-me .hint { margin-bottom: 12px; }
.me-list { display: flex; flex-direction: column; gap: 14px; }
.me-item { background: var(--card); border: var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 12px 16px; }
.me-q { margin: 0 0 6px; font-weight: 700; overflow-wrap: anywhere; }
.me-a { margin: 0 0 6px; overflow-wrap: anywhere; white-space: pre-line; }
.me-movie { display: flex; gap: 14px; align-items: flex-start; }
.me-poster { flex: none; width: 54px; height: 76px; display: grid; place-items: center; overflow: hidden; background: #eee; border: 2px solid var(--ink); border-radius: 4px; font-size: 1.6rem; }
.me-poster img { width: 100%; height: 100%; object-fit: cover; }
.me-movie .btn, .me-movie .badge { margin-top: 8px; }
.me-fish { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.me-fish .fish-card b { font: 700 1.3rem var(--hand); overflow-wrap: anywhere; }
.badge { display: inline-block; font: 700 0.72rem var(--mono); padding: 2px 8px; border: 1.5px solid var(--ink); border-radius: 999px; }
.badge.yes { background: var(--green); }
.badge.wait { background: var(--yellow); }
input.locked { background: var(--paper); color: var(--muted); }
@media (max-width: 820px) { .auth-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .head-tools { position: static; justify-content: flex-end; margin-bottom: 6px; } }

/* ---------- edit mode (owners only) ---------- */
.edit-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  font: 700 0.95rem var(--body); color: var(--paper); background: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px; padding: 10px 16px; cursor: pointer;
  box-shadow: 3px 3px 0 var(--pink);
}
.edit-fab:hover { transform: translateY(-2px); }
.editing [data-mod] { position: relative; outline: 2px dashed rgba(42, 34, 51, 0.4); outline-offset: 5px; }
.editing .mod-hidden { opacity: 0.35; outline-color: #d11a2a; }
.mod-tools {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 2px; max-width: calc(100% - 12px);
  padding: 3px 5px; background: var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
.mod-tools button { font: 700 0.72rem var(--body); color: var(--paper); background: none; border: 0; border-radius: 999px; padding: 3px 8px; cursor: pointer; }
.mod-tools button:hover { background: rgba(255, 255, 255, 0.18); }
.mod-tools .mod-handle { cursor: grab; background: var(--pink); color: var(--ink); }
.mod-tools .mod-handle:active { cursor: grabbing; }
.mod-label { font: 0.68rem var(--mono); color: var(--yellow); padding: 0 6px; overflow: hidden; text-overflow: ellipsis; }
.mod-ghost { opacity: 0.4; }
.unit .mod-tools { top: 40px; }
.polaroid .mod-tools .mod-label { display: none; }
.editing .tabs a { cursor: grab; position: relative; }
.editing .tabs a.mod-hidden { display: inline-block !important; opacity: 0.4; text-decoration: line-through; }
.tab-eye {
  position: absolute; top: -10px; right: -10px; width: 22px; height: 22px;
  display: grid; place-items: center; padding: 0;
  font: 700 0.7rem var(--body); color: var(--paper); background: var(--ink);
  border: 2px solid var(--paper); border-radius: 50%; cursor: pointer;
}
.editing .doors .mod-hidden { display: flex !important; opacity: 0.35; }
.edit-bar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 80;
  width: min(760px, calc(100vw - 24px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 12px 16px; color: var(--paper); background: var(--ink);
  border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--pink);
}
.edit-bar-text { flex: 1 1 280px; font-size: 0.82rem; line-height: 1.35; }
.edit-bar-text b { display: block; font: 700 1.3rem var(--hand); color: var(--yellow); }
.edit-bar-text i { font-style: normal; background: rgba(255, 255, 255, 0.14); padding: 0 4px; border-radius: 4px; }
.edit-bar-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.edit-bar .btn { font-size: 0.85rem; padding: 6px 12px; box-shadow: 2px 2px 0 var(--pink); }
.edit-bar-msg { flex-basis: 100%; margin: 0; font: 0.75rem var(--mono); color: var(--yellow); min-height: 1em; }
.editing .site-foot { padding-bottom: 180px; }
.edit-toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90;
  padding: 10px 16px; font-weight: 700; color: var(--ink); background: var(--green);
  border: 2px solid var(--ink); border-radius: 999px; box-shadow: var(--shadow-sm);
  animation: pop-in 0.3s ease both;
}

/* ---------- admin inbox ---------- */
.admin { max-width: 760px; }
.logo-sub a { color: inherit; }
.mode-banner { background: var(--yellow); border: var(--line); border-radius: 10px; padding: 10px 14px; margin: 6px 0 26px; }
.login { max-width: 380px; margin: 20px auto; display: flex; flex-direction: column; gap: 12px; }
.login label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.login .forgot { align-self: center; font-size: 0.85rem; color: var(--muted); }
.inbox-actions a.btn { text-decoration: none; }
.inbox-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.inbox-bar .chips { margin: 0; justify-content: flex-start; }
.inbox-actions { display: flex; gap: 8px; }
.inbox-list { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.inbox-item { padding: 18px; }
.inbox-item.is-hidden { opacity: 0.65; border-style: dashed; }
.inbox-meta { color: var(--muted); margin-bottom: 6px; }
.inbox-q { font-size: 1.1rem; font-weight: 700; overflow-wrap: anywhere; white-space: pre-line; }
.inbox-answer { resize: vertical; min-height: 80px; margin-bottom: 12px; }
.inbox-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.danger { color: #b3261e; }
.kind-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tab-btn { font: 700 1.3rem var(--hand); color: var(--ink); background: var(--card); border: var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); padding: 2px 14px 4px; cursor: pointer; }
.tab-btn[aria-pressed="true"] { background: var(--yellow); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.mod-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.mod-thumb { flex: none; width: 90px; height: 90px; display: grid; place-items: center; overflow: hidden; font-size: 2rem; background: #eee; border: 2px solid var(--ink); border-radius: 8px; }
.mod-thumb.fish-bg { background: #dff2fc; padding: 6px; }
.mod-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mod-info { min-width: 0; flex: 1; }
.mod-info p { margin: 0 0 4px; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-foot { text-align: center; padding: 30px 16px 50px; color: var(--muted); }
.site-foot p { margin: 4px 0; }

/* ---------- stickers ---------- */
.stickers { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.sticker {
  position: absolute;
  font-size: 46px; line-height: 1;
  cursor: grab; pointer-events: auto;
  user-select: none; touch-action: none;
  transform: rotate(var(--r));
  filter: drop-shadow(2px 3px 0 rgba(42, 34, 51, 0.35));
  transition: transform 0.15s;
}
.sticker:hover { transform: rotate(0) scale(1.1); }
.sticker.dragging { cursor: grabbing; transform: rotate(0) scale(1.25); transition: none; }

/* ---------- responsive ---------- */
/* stickers live in the side margins, so only show them when there are margins */
@media (max-width: 1100px) {
  .stickers { display: none; }
}
@media (max-width: 820px) {
  .texts-layout, .ask-layout { grid-template-columns: 1fr; }
  .phone-col { max-width: 360px; margin: 0 auto; width: 100%; }
}
@media (max-width: 480px) {
  .tabs a { font-size: 1.15rem; padding: 1px 11px 3px; }
  .card { padding: 18px; }
  .arena { height: 360px; }
  .ping { width: 140px; }
  .mini-stats dd { font-size: 1.25rem; }
  .ask-row { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .fuse { animation-duration: var(--life) !important; }
  .marquee-track { animation: none; }
}
