/* Evani public site: "Sticker Shop". Bold, playful, chunky outlines, bento tiles, bright colours on cream.
   The dark version is the same sticker sheet at night: deep purple paper, cream outlines, the same bright colours.
   light-dark() follows the theme (prefers-color-scheme, or ?theme= / the header toggle). */

:root {
  color-scheme: light dark;
  --pink: #ff4fa3;
  --blue: #2f6bff;
  --lime: #b6f23a;
  --orange: #ff7a1a;
  --violet: #8a4dff;
  --yellow: #ffd43b;
  --sky: #9fc0ff;
  --bg: light-dark(#fff4d6, #17112a);
  --paper: light-dark(#ffffff, #2a2145);
  --paper-2: light-dark(#fff0c2, #382c5e);
  --ink: light-dark(#111111, #fbf3e0);       /* text and outlines */
  --muted: light-dark(#4a4a4a, #cfc6e6);
  --shade: light-dark(#111111, #05030c);     /* hard shadows */
  --on-color: #111111;                       /* text that sits on a bright fill */
  --dot: light-dark(rgba(17, 17, 17, 0.12), rgba(251, 243, 224, 0.10));
  --code-bg: light-dark(#111111, #0b0716);
  --foot-bg: light-dark(#111111, #05030c);
  --danger: light-dark(#b3261e, #ff8f87);
  --ok: light-dark(#13692f, #8ff0ac);
  --display: "Arial Black", "Segoe UI Black", "Helvetica Neue", Impact, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "Cascadia Code", ui-monospace, Consolas, Menlo, monospace;
  --shadow: 6px 6px 0 var(--shade);
  --shadow-s: 3px 3px 0 var(--shade);
  --line: 3px solid var(--ink);
  --wrap: 1240px;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  background: var(--bg) radial-gradient(var(--dot) 1.4px, transparent 1.6px) 0 0 / 22px 22px;
  color: var(--ink); font: 600 17px/1.5 var(--body);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: -0.03em; margin: 0 0 0.4em; }
p { margin: 0 0 0.9em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; border-radius: 6px; }
main:focus { outline: none; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--yellow); color: var(--on-color); border: var(--line); padding: 8px 16px; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--wrap), calc(100% - 24px)); margin: 0 auto; }
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 60px; }

/* header: a floating pill */
.site-header { position: sticky; top: 12px; z-index: 20; padding: 12px 12px 0; }
.bar {
  max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  padding: 8px 10px 8px 22px; background: var(--paper); border: var(--line); border-radius: 30px; box-shadow: 4px 4px 0 var(--shade);
}
.logo { font: 24px var(--display); letter-spacing: -0.04em; text-decoration: none; display: flex; align-items: center; gap: 9px; }
.logo .dot { width: 20px; height: 20px; border-radius: 50%; border: var(--line); background: conic-gradient(var(--pink), var(--yellow), var(--lime), var(--blue), var(--violet), var(--pink)); }
.site-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.site-nav a { text-decoration: none; padding: 7px 14px; border-radius: 999px; }
.site-nav a:hover { background: var(--lime); color: var(--on-color); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.header-tools { display: flex; gap: 8px; align-items: center; }

/* buttons */
.chunky {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; text-decoration: none; cursor: pointer;
  border: var(--line); background: var(--pink); color: #fff; padding: 14px 26px; min-height: 52px; border-radius: 18px;
  font: 20px/1.1 var(--display); letter-spacing: -0.01em; box-shadow: var(--shadow); will-change: transform;
}
.chunky.alt { background: var(--yellow); color: var(--on-color); }
.chunky.ghost { background: var(--paper); color: var(--ink); }
.chunky.small { padding: 8px 18px; min-height: 42px; font-size: 15px; border-radius: 999px; box-shadow: var(--shadow-s); background: var(--blue); color: #fff; }
.chunky.small.ghost { background: var(--paper); color: var(--ink); }
.chunky.big { padding: 18px 34px; font-size: 24px; border-radius: 22px; }
.chunky[disabled] { opacity: 0.6; cursor: default; }
.chunky[aria-disabled="true"] { opacity: 0.75; cursor: default; }
.chunky:focus { outline: none; }
.chunky:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; }
.linklike { background: none; border: 0; padding: 6px 0; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 3px; font-weight: 800; }

/* forms */
input[type="search"], select, textarea {
  width: 100%; background: var(--paper); border: var(--line); border-radius: 18px; padding: 11px 18px; box-shadow: var(--shadow-s);
}
input[type="search"] { border-radius: 999px; min-height: 46px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; }
.field { margin-bottom: 14px; text-align: left; }
.field label { display: block; font: 15px var(--display); letter-spacing: -0.01em; margin-bottom: 6px; }

/* ---------- Browse ---------- */
.hero { position: relative; padding: 28px 0 50px; min-height: 380px; }
.mega { font: clamp(96px, 19vw, 250px)/0.86 var(--display); margin: 0; letter-spacing: -0.06em; display: flex; flex-wrap: wrap; position: relative; z-index: 2; }
.mega .l { display: inline-block; color: var(--c); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 8px 8px 0 var(--shade); will-change: transform; }
.l.c1 { --c: var(--pink); } .l.c2 { --c: var(--blue); } .l.c3 { --c: var(--lime); } .l.c4 { --c: var(--orange); } .l.c5 { --c: var(--violet); }
.pitch { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; max-width: 30ch; margin: 28px 0 26px; position: relative; z-index: 2; font-weight: 800; letter-spacing: -0.01em; }
.pitch mark { background: var(--yellow); color: var(--on-color); padding: 0 0.2em; border: var(--line); border-radius: 10px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pitch u { text-decoration-color: var(--pink); text-decoration-thickness: 6px; text-underline-offset: 4px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; position: relative; z-index: 2; }
.sticker { position: absolute; z-index: 3; display: grid; place-items: center; text-align: center; font: 22px/1 var(--display); border: var(--line); box-shadow: var(--shadow); color: var(--on-color); will-change: transform; }
.s1 { right: 6%; top: 60px; width: 160px; height: 160px; border-radius: 50%; background: var(--lime); font-size: 25px; }
.s2 { right: 24%; top: 250px; padding: 18px 22px; border-radius: 20px; background: var(--pink); color: #fff; }
.blob { position: absolute; border-radius: 50%; border: var(--line); z-index: 0; }
.b1 { width: 240px; height: 240px; right: 22%; top: 0; background: var(--yellow); }
.b2 { width: 110px; height: 110px; right: 10%; top: 240px; background: var(--violet); }
.b3 { width: 64px; height: 64px; left: 52%; top: 300px; background: var(--orange); }

.marquee { width: 100vw; margin: 10px 0 0 calc(50% - 50vw); background: var(--ink); color: var(--bg); overflow: hidden; transform: rotate(-2deg); border-block: var(--line); position: relative; z-index: 4; }
.track { display: flex; gap: 40px; padding: 14px 0; white-space: nowrap; font: 26px var(--display); width: max-content; will-change: transform; }
.track .run { display: inline-flex; gap: 40px; align-items: center; }
.track i { font-style: normal; color: light-dark(var(--lime), var(--pink)); }

.browse { padding: 80px 0 20px; scroll-margin-top: 90px; }
.browse-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 30px; flex-wrap: wrap; margin-bottom: 32px; }
.big-h { font: clamp(46px, 6.4vw, 90px)/0.92 var(--display); letter-spacing: -0.045em; margin: 0; }
.big-h.small { font-size: clamp(34px, 4.5vw, 56px); margin-bottom: 22px; }
.toolbar { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; flex: 1 1 360px; min-width: 0; }
.search { display: flex; gap: 10px; width: min(100%, 520px); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.chip { border: var(--line); background: var(--paper); border-radius: 999px; padding: 8px 18px; min-height: 44px; font-weight: 800; box-shadow: var(--shadow-s); will-change: transform; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.kind-help { margin: 0; max-width: 520px; text-align: right; font-size: 15px; line-height: 1.45; }
.kind-help[hidden] { display: none; }

.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 340px; gap: 22px; grid-auto-flow: dense; }
.tile { position: relative; border: var(--line); border-radius: 26px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); display: flex; flex-direction: column; will-change: transform; }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile.wide { grid-column: span 2; }
.tile:focus-within { outline: 3px dashed var(--ink); outline-offset: 5px; }
.art { position: relative; background: var(--yellow); overflow: hidden; }
.tile .art { flex: 1; min-height: 0; border-bottom: var(--line); }
.art img, .art svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.tile .info { padding: 12px 16px 14px; display: flex; align-items: flex-end; gap: 10px; }
.info-text { min-width: 0; flex: 1; }
.tile-title { font-size: 19px; line-height: 1.05; margin: 0 0 4px; overflow-wrap: anywhere; }
.tile.big .tile-title { font-size: 32px; }
.tile-link { text-decoration: none; }
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.by, .lic, .fork-note { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.fork-note { font-style: italic; }
.by .creator, .dl { position: relative; z-index: 2; }
.badge { display: inline-block; border: var(--line); border-radius: 999px; padding: 2px 12px; font: 12px/1.5 var(--display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--on-color); background: var(--paper); }
.badge.kind-package { background: var(--yellow); } .badge.kind-engine { background: var(--violet); color: #fff; } .badge.kind-biome { background: var(--lime); } .badge.kind-asset { background: var(--pink); color: #fff; }
.badge.on-art { position: absolute; top: 12px; left: 12px; z-index: 2; }
.tile .count { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 800; }
.dl { flex: none; width: 46px; height: 46px; border-radius: 50%; border: var(--line); background: var(--blue); color: #fff; font: 22px/1 var(--display); box-shadow: var(--shadow-s); will-change: transform; }
.creator { text-decoration: none; font-weight: 800; }
.creator:hover { text-decoration: underline; text-decoration-color: var(--pink); }
.handle { color: var(--muted); font-weight: 600; }
.more-wrap { text-align: center; margin-top: 34px; }

/* states */
.state { margin: 8px 0; padding: 22px 24px; border: 3px dashed var(--ink); border-radius: 22px; background: var(--paper); }
.state h1 { margin-bottom: 0.4em; }
.state.error { border-color: var(--danger); color: var(--danger); }
.state-inline { min-height: 1.5em; margin: 0 0 8px; }
.state-inline.ok { color: var(--ok); }
.state-inline.bad { color: var(--danger); }
.spinner { display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px; border: 3px solid var(--ink); border-top-color: var(--pink); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- inner pages ---------- */
.back { margin-bottom: 16px; }
.page-title { font: clamp(40px, 6.4vw, 84px)/0.95 var(--display); letter-spacing: -0.045em; margin: 10px 0 12px; overflow-wrap: anywhere; }
.page-title.huge { font-size: clamp(52px, 9vw, 128px); }
.item-head { margin-bottom: 26px; }
.head-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ver-tag { font-size: 0.85rem; font-weight: 800; padding: 2px 12px; border: var(--line); border-radius: 999px; background: var(--paper); }
.byline { font-size: 1.1rem; margin-bottom: 8px; }
.fork-credit { margin-bottom: 8px; }
.tags { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 12px 0 0; }
.tags li { border: 2px solid var(--ink); border-radius: 999px; padding: 1px 12px; font-size: 0.85rem; font-weight: 800; background: var(--paper); }
.lead { font-size: 1.15rem; max-width: 70ch; }

.item-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.item-main { min-width: 0; }
.item-side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 96px; }
.hero-fig { margin: 0 0 28px; }
.hero-fig .art, .preview-large .art { border: 4px solid var(--ink); border-radius: 30px; box-shadow: 10px 10px 0 var(--shade); background: var(--yellow); }
.hero-fig .art { aspect-ratio: 16 / 9; }
.hero-fig .art img { object-fit: contain; background: var(--yellow); }
.hero-fig figcaption { margin-top: 18px; }
.preview-large { margin: 0; }
.preview-large .art { max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 9; }
.preview-large .art img { object-fit: contain; background: var(--yellow); }

.panel { background: var(--paper); border: var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 24px 26px; margin: 0 0 28px; }
.panel h2 { font-size: 30px; margin-bottom: 14px; }
.panel.gone { max-width: 640px; }
.panel.gone .page-title { margin-top: 0; }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 75ch; font-weight: 600; }

.box { border: var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 18px 20px; background: var(--paper); }
.box h2 { font-size: 22px; margin-bottom: 12px; }
.box p:last-child { margin-bottom: 0; }
.box.get { background: var(--yellow); color: var(--on-color); }
.box.get .chunky.ghost { color: var(--ink); }
.box.get a { text-decoration-color: var(--on-color); }
.actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.actions .chunky { box-shadow: var(--shadow-s); }
.lic-name { font: 20px var(--display); letter-spacing: -0.02em; }
.stats { margin: 0; display: grid; gap: 10px; }
.stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border: 3px solid var(--ink); border-radius: 16px; padding: 8px 14px; color: var(--on-color); }
.stat.n1 { background: var(--lime); } .stat.n2 { background: var(--yellow); } .stat.n3 { background: var(--sky); }
.stat dt { font-weight: 800; }
.stat dd { margin: 0; font: 22px var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat dd .note { font: 600 12px var(--body); letter-spacing: 0; }
.item-side > p { text-align: left; }

/* code preview */
.code-grid { display: grid; grid-template-columns: minmax(180px, 270px) minmax(0, 1fr); gap: 16px; align-items: start; }
.filelist { list-style: none; margin: 0; padding: 0; border: var(--line); border-radius: 18px; background: var(--paper); overflow: hidden; max-height: 440px; overflow-y: auto; }
.filelist li + li { border-top: 2px solid var(--ink); }
.file { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 12px; font-size: 0.88rem; text-align: left; background: none; border: 0; }
button.file:hover { background: var(--paper-2); }
button.file[aria-pressed="true"] { background: var(--lime); color: var(--on-color); font-weight: 800; }
.file.nofile { color: var(--muted); }
.file-path { font-family: var(--mono); font-size: 0.82rem; overflow-wrap: anywhere; }
.file-size { font-size: 0.78rem; white-space: nowrap; opacity: 0.8; }
.viewer-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 0 0 8px; font: 0.82rem var(--mono); overflow-wrap: anywhere; }
.viewer-title::after { content: "read-only"; flex: none; font: 11px var(--display); text-transform: uppercase; background: var(--lime); color: var(--on-color); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px; }
.viewer { margin: 0; padding: 16px 18px; max-height: 480px; overflow: auto; background: var(--code-bg); color: #f6f6f6; border: var(--line); border-radius: 18px; font: 500 0.85rem/1.6 var(--mono); tab-size: 2; }
.viewer code { font: inherit; white-space: pre; }

/* tables */
.table-wrap { overflow-x: auto; border: var(--line); border-radius: 18px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--yellow); color: var(--on-color); font: 13px var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
tbody th { font-weight: 800; }
tbody td:nth-child(2) { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.notes { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 160px; }
.ver-label { display: block; font-weight: 600; color: var(--muted); font-size: 0.85rem; }

/* creator */
.creator-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.av { flex: none; width: 112px; height: 112px; border: 4px solid var(--ink); border-radius: 28px; display: grid; place-items: center; font: 56px var(--display); color: var(--on-color); box-shadow: var(--shadow); will-change: transform; }
.av.c0 { background: var(--lime); } .av.c1 { background: var(--sky); } .av.c2 { background: var(--pink); } .av.c3 { background: var(--yellow); } .av.c4 { background: var(--orange); } .av.c5 { background: #c9b0ff; }
.stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 0 30px; }
.stat-tile { border: var(--line); border-radius: 26px; padding: 18px 20px; box-shadow: var(--shadow); color: var(--on-color); will-change: transform; }
.stat-tile.t1 { background: var(--lime); } .stat-tile.t2 { background: var(--sky); } .stat-tile.t3 { background: var(--pink); } .stat-tile.t4 { background: var(--yellow); }
.stat-tile dt { font: 13px var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.stat-tile dd { margin: 0; }
.stat-tile b { display: block; font: clamp(34px, 4vw, 52px)/1.05 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

/* get page */
.get-head { max-width: 760px; margin-bottom: 36px; }
.cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.note-sticker { margin: 0; background: var(--yellow); color: var(--on-color); border: var(--line); border-radius: 12px; padding: 6px 14px; font-weight: 800; transform: rotate(-2deg); }
.get-head .cta + .cta { margin-top: 14px; }
.help-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; max-width: 760px; line-height: 1.5; }
.steps { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; border: var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 70px 22px 22px; background: var(--paper); will-change: transform; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: -14px; width: 56px; height: 56px; display: grid; place-items: center; border: var(--line); border-radius: 50%; font: 28px var(--display); color: var(--on-color); background: var(--pink); box-shadow: var(--shadow-s); }
.steps li:nth-child(2)::before { background: var(--lime); }
.steps li:nth-child(3)::before { background: var(--yellow); }
.steps strong { display: block; font: 22px/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 6px; }

/* footer */
.foot { width: min(var(--wrap), calc(100% - 24px)); margin: 20px auto 30px; }
.foot-inner { padding: 24px 28px; border: var(--line); border-radius: 26px; background: var(--foot-bg); color: #fff; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; box-shadow: var(--shadow-s); }
.foot-inner p { margin: 0; }
.foot-inner .tiny { color: var(--lime); font-size: 14px; }
.foot-inner a { text-decoration-color: var(--lime); }

/* dialogs */
.pop { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; width: 100%; height: 100%; display: none; overflow: auto; }
.pop[open] { display: grid; place-items: center; align-content: safe center; padding: 84px 16px 28px; }
.pop::backdrop { background: light-dark(rgba(255, 79, 163, 0.55), rgba(10, 5, 28, 0.78)); backdrop-filter: blur(3px); }
.pop-card { position: relative; width: min(540px, 100%); background: var(--paper); border: 4px solid var(--ink); border-radius: 34px; box-shadow: 12px 12px 0 var(--shade); padding: 76px 34px 30px; text-align: center; margin: 0; }
.pop-burst { position: absolute; left: 50%; top: -58px; margin-left: -58px; width: 116px; height: 116px; display: grid; place-items: center; font: 56px var(--display); color: var(--on-color); background: var(--lime); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 6px 6px 0 var(--shade); }
.pop-burst.warn { background: var(--orange); }
.pop-card h2 { font-size: clamp(30px, 6vw, 40px); line-height: 1; margin-bottom: 14px; }
.pop-card .item-name { display: inline-block; background: var(--yellow); color: var(--on-color); border: var(--line); border-radius: 12px; padding: 3px 12px; font-weight: 800; }
.pop-actions { display: grid; gap: 12px; margin-top: 20px; }
.pop-actions .chunky { font-size: 17px; box-shadow: var(--shadow-s); }
.hint { margin: 16px 0 0; padding: 12px 14px; background: var(--paper-2); border: 2px dashed var(--ink); border-radius: 16px; font-size: 0.95rem; text-align: left; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-layout { grid-template-columns: minmax(0, 1fr); }
  .item-side { position: static; }
  .sticker, .blob { display: none; }
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .toolbar { align-items: flex-start; }
  .chips { justify-content: flex-start; }
  .kind-help { text-align: left; }
}
@media (max-width: 640px) {
  main.wrap { padding-top: 20px; }
  .site-header { top: 6px; padding: 6px 8px 0; }
  .bar { padding: 8px 8px 10px 16px; border-radius: 26px; gap: 8px 12px; }
  .site-nav { order: 3; flex-basis: 100%; }
  .site-nav a { padding: 6px 12px; }
  .header-tools { margin-left: auto; }
  .hero { padding-bottom: 36px; min-height: 0; }
  .mega .l { -webkit-text-stroke-width: 3px; text-shadow: 5px 5px 0 var(--shade); }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .tile.big, .tile.wide { grid-column: auto; grid-row: auto; }
  .tile .art { flex: none; height: 210px; }
  .tile.big .tile-title { font-size: 26px; }
  .search { flex-wrap: wrap; }
  .panel { padding: 20px 18px; }
  .code-grid { grid-template-columns: minmax(0, 1fr); }
  .filelist { max-height: 210px; }
  .pop-card { padding: 72px 20px 24px; }
  .foot-inner { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation-duration: 3s; }
}

/* ---- In Evani.App's Website tab: what the app said (harness.js) ---- */
.harness-toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 90; max-width: min(560px, calc(100vw - 32px));
  padding: 12px 18px; background: var(--yellow); color: var(--on-color); border: var(--line); border-radius: 18px;
  box-shadow: var(--shadow-s); font-weight: 800; opacity: 0; pointer-events: none;
  transform: translate(-50%, 16px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.harness-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.harness-toast.bad { background: var(--pink); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .harness-toast { transition: none; }
}
