:root {
  --paper: #f4ebdb;
  --paper-2: #ebdfc8;
  --card: #fffaf0;
  --ink: #201610;
  --ink-soft: #44352a;
  --accent: #2b3bb5;
  --clay: #c4502f;
  --glow: #ffb347;

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --ui: ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --blob: 42% 58% 63% 37% / 45% 40% 60% 55%;
  --blob-2: 61% 39% 41% 59% / 56% 62% 38% 44%;
  --squish: cubic-bezier(.3, 1.7, .5, 1);
  color-scheme: light;
}

[data-cat="Ceramics"] { --tone: #ebb9a1; --deep: #a8442a; }
[data-cat="Painting"] { --tone: #bcc7f4; --deep: #2b3bb5; }
[data-cat="Floristry"] { --tone: #f6c3d1; --deep: #b83a63; }
[data-cat="Baking"] { --tone: #f2d57e; --deep: #8a5a00; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}
html.modal-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(rgba(32, 22, 16, .09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  overflow-x: clip;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px max(16px, calc((100vw - 1280px) / 2));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.brand {
  font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; line-height: 1;
}
.brand .o {
  display: inline-block; width: .62em; height: .62em; margin: 0 .03em;
  background: var(--clay); border: 2px solid var(--ink);
  border-radius: var(--blob); animation: wobble 5s ease-in-out infinite;
}
.kiln-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--card); color: var(--ink); text-decoration: none; font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}
.kiln-link:hover { background: #ffe3b0; }
.kiln-link.bump, .toggle.bump { animation: bump .6s var(--squish); }
.kiln-count, .toggle-count {
  min-width: 1.7em; padding: 0 .45em; text-align: center; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: .85rem; font-variant-numeric: tabular-nums; line-height: 1.7;
}
.flame {
  width: 14px; height: 18px; background: linear-gradient(to top, var(--clay), var(--glow));
  border: 2px solid var(--ink); border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  transform: rotate(-8deg);
}

/* ---------- hero ---------- */
main { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

.hero {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center;
  padding: 36px 0 20px;
}
.eyebrow {
  font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-soft); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 6rem); font-weight: 800; letter-spacing: -.035em; }
.hero h1 em {
  font-style: italic; color: var(--clay); display: inline-block;
  animation: wobble-text 4s ease-in-out infinite;
}
.lede { margin-top: 18px; max-width: 34em; font-size: 1.125rem; color: var(--ink-soft); }

.lump-wrap { margin: 0; display: grid; place-items: center; gap: 10px; }
.lump {
  --w: min(100%, 360px); --h: 300px;
  width: var(--w); height: var(--h); overflow: hidden;
  border: 3px solid var(--ink); background: var(--paper-2);
  box-shadow: 8px 8px 0 var(--ink);
  border-radius: var(--blob);
  transition: border-radius .7s var(--squish), width .7s var(--squish), height .7s var(--squish), transform .7s var(--squish);
  animation: wobble 7s ease-in-out infinite;
}
.lump img { width: 100%; height: 100%; object-fit: cover; }
.lump[data-shape="Ceramics"] { --w: 300px; --h: 300px; border-radius: 50%; animation: none; }
.lump[data-shape="Baking"]   { --w: 280px; --h: 340px; border-radius: 999px 999px 22px 22px; animation: none; }
.lump[data-shape="Floristry"]{ --w: 310px; --h: 310px; border-radius: 0 100% 0 100%; animation: none; }
.lump[data-shape="Painting"] { --w: 360px; --h: 270px; border-radius: 6px; transform: rotate(-2.5deg); animation: none; }
.lump-wrap figcaption { font-family: var(--mono); font-size: .85rem; color: var(--ink-soft); min-height: 1.5em; text-align: center; }

/* ---------- tools ---------- */
.tools {
  margin-top: 8px; padding: 18px; background: var(--card);
  border: 2px solid var(--ink); border-radius: 28px; box-shadow: 6px 6px 0 var(--ink);
}
.tools-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .sorter-label {
  font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft);
}
input[type="search"], select {
  width: 100%; min-height: 48px; padding: 0 14px; background: #fff; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 16px; font-size: 1rem;
}
select { appearance: none; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat;
}
input[type="search"]:focus-visible, select:focus-visible { outline-offset: 2px; }

.toggle {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center; min-height: 48px; padding: 0 16px;
  border: 2px solid var(--ink); border-radius: 16px; background: #fff; font-weight: 700; white-space: nowrap;
  transition: background-color .2s, transform .2s;
}
.toggle:hover { background: #ffe3b0; }
.toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.toggle[aria-pressed="true"] .toggle-count { background: var(--glow); color: var(--ink); }

.sorter { margin-top: 16px; display: grid; gap: 8px; }
.sorter-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.shape-btn {
  display: grid; justify-items: center; gap: 6px; padding: 10px 6px 8px; min-height: 44px;
  background: transparent; border: 2px dashed var(--ink-soft); border-radius: 18px; font-weight: 700; font-size: .95rem;
  transition: background-color .2s, border-color .2s, transform .25s var(--squish);
}
.shape-btn:hover { transform: translateY(-2px) rotate(-1deg); background: #fff; }
.shape-btn[aria-pressed="true"] { border-style: solid; border-color: var(--ink); background: var(--tone, #ffe3b0); box-shadow: 3px 3px 0 var(--ink); }
.glyph { width: 34px; height: 34px; background: var(--deep, var(--clay)); border: 2px solid var(--ink); border-radius: var(--blob); transition: border-radius .5s var(--squish); }
.shape-btn[data-cat="Ceramics"] .glyph { border-radius: 50%; }
.shape-btn[data-cat="Baking"] .glyph { border-radius: 99px 99px 5px 5px; height: 38px; width: 30px; }
.shape-btn[data-cat="Floristry"] .glyph { border-radius: 0 100% 0 100%; }
.shape-btn[data-cat="Painting"] .glyph { border-radius: 3px; width: 38px; height: 30px; }
.shape-btn[aria-pressed="true"] .glyph { border-radius: var(--blob-2); }

/* ---------- shelf ---------- */
.shelf { padding: 44px 0 56px; }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; margin-bottom: 26px; }
.shelf-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.count { font-family: var(--mono); font-size: .9rem; color: var(--ink-soft); flex: 1; }
.luck {
  min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--glow); font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .25s var(--squish);
}
.luck:hover { transform: rotate(-3deg) scale(1.05); }
.luck:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 34px 28px; }
.grid[hidden] { display: none; }

.card {
  --tilt: 0deg;
  position: relative; display: flex; flex-direction: column; background: var(--tone);
  border: 2px solid var(--ink); border-radius: 30px; box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(var(--tilt));
  transition: transform .35s var(--squish), box-shadow .25s;
}
.card:nth-child(3n+1) { --tilt: -1deg; }
.card:nth-child(3n+2) { --tilt: .8deg; }
.card:nth-child(3n) { --tilt: -.4deg; }
.card:hover, .card:focus-within { transform: rotate(0) translateY(-6px); box-shadow: 10px 12px 0 var(--ink); }

.stage { height: 290px; display: grid; place-items: center; padding: 20px 20px 6px; }
.shape {
  width: 220px; height: 220px; overflow: hidden; border: 2px solid var(--ink); background: var(--paper-2);
  transition: border-radius .6s var(--squish), transform .6s var(--squish);
}
.shape img { width: 100%; height: 100%; object-fit: cover; }
[data-cat="Ceramics"] .shape { border-radius: 50%; }
[data-cat="Baking"] .shape { width: 200px; height: 250px; border-radius: 999px 999px 18px 18px; }
[data-cat="Floristry"] .shape { width: 230px; height: 230px; border-radius: 0 100% 0 100%; }
[data-cat="Painting"] .shape { width: 270px; height: 200px; border-radius: 4px; border: 8px solid #fffaf0; outline: 2px solid var(--ink); }
.card:hover .shape, .card:focus-within .shape { border-radius: var(--blob); transform: rotate(-3deg) scale(1.03); }
[data-cat="Painting"].card:hover .shape, [data-cat="Painting"].card:focus-within .shape { border-radius: 30px 8px 30px 8px; }

.stamp {
  position: absolute; top: 14px; right: 14px; width: 76px; height: 76px; display: grid; place-content: center; text-align: center;
  background: var(--card); border: 2px solid var(--ink); border-radius: 50%; transform: rotate(10deg);
  font-family: var(--mono); line-height: 1; text-transform: uppercase;
}
.stamp b { display: block; font-family: var(--display); font-size: 1.7rem; margin: 2px 0; }
.stamp span { font-size: .7rem; letter-spacing: .06em; }

.kept {
  position: absolute; left: 14px; top: 14px; display: none; align-items: center; gap: 6px; padding: 4px 12px 4px 8px;
  background: var(--ink); color: var(--paper); border-radius: 999px; font-size: .8rem; font-weight: 800; transform: rotate(-6deg);
}
.card[data-saved] .kept { display: inline-flex; }

.card-body {
  flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 22px 22px;
  background: var(--card); border-top: 2px dashed var(--ink); border-radius: 0 0 28px 28px;
}
.cat { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--deep, var(--ink-soft)); font-weight: 700; }
.card h3 { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; }
.blurb { color: var(--ink-soft); font-size: .97rem; }
.facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; font-family: var(--mono); font-size: .82rem; }
.facts li { padding: 3px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-variant-numeric: tabular-nums; }
.facts .price { background: var(--ink); color: var(--paper); font-weight: 700; }
.seats { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--ink-soft); }
.pips { display: flex; flex-wrap: wrap; gap: 3px; max-width: 150px; }
.pips i { width: 9px; height: 9px; border-radius: 50%; background: var(--deep); border: 1.5px solid var(--ink); }

.open {
  margin-top: auto; align-self: flex-start; min-height: 44px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--deep); color: #fff; font-weight: 800; letter-spacing: .01em;
}
[data-cat="Baking"] .open { color: #fff; background: #7a4e00; }
.open::after { content: ""; position: absolute; inset: 0; border-radius: 30px; }
.open:focus-visible { outline: none; }
.card:has(.open:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }
.card:hover .open { filter: brightness(1.1); }

/* ---------- empty ---------- */
.empty { max-width: 520px; margin: 20px auto; text-align: center; display: grid; justify-items: center; gap: 12px; padding: 36px 24px; background: var(--card); border: 2px dashed var(--ink); border-radius: 36px; }
.empty[hidden] { display: none; }
.empty h3 { font-size: 2rem; font-weight: 800; }
.empty p { color: var(--ink-soft); }
.empty-lump { width: 110px; height: 80px; background: var(--paper-2); border: 3px solid var(--ink); border-radius: 50% 50% 46% 54% / 30% 30% 70% 70%; animation: slump 3s ease-in-out infinite; }
.btn {
  min-height: 48px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 800;
  box-shadow: 3px 3px 0 var(--glow); transition: transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }

/* ---------- kiln ---------- */
.kiln {
  margin: 0 calc(50% - 50vw); padding: 56px 16px 72px; color: #fbeedd;
  background: radial-gradient(120% 90% at 50% 120%, #e2641f 0, #8c2d10 38%, #2a1810 72%);
}
.kiln:focus { outline: none; }
.kiln-inner { max-width: 1280px; margin: 0 auto; }
.kiln :focus-visible { outline-color: #ffd38a; }
.kiln-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-bottom: 26px; }
.kiln-head h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.03em; }
.kiln-head p { color: #f5d9bb; }
.kiln-empty { padding: 28px; border: 2px dashed #f5d9bb; border-radius: 24px; max-width: 520px; }
.kiln-empty[hidden] { display: none; }
.kiln-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.token {
  display: grid; grid-template-columns: 76px 1fr; gap: 6px 14px; align-items: center; padding: 14px;
  background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: 24px; box-shadow: 5px 5px 0 rgba(0, 0, 0, .55);
  animation: drop .5s var(--squish);
}
.token .mini { width: 76px; height: 76px; overflow: hidden; border: 2px solid var(--ink); background: var(--tone); grid-row: span 2; }
.token .mini img { width: 100%; height: 100%; object-fit: cover; }
.token[data-cat="Ceramics"] .mini { border-radius: 50%; }
.token[data-cat="Baking"] .mini { border-radius: 99px 99px 8px 8px; }
.token[data-cat="Floristry"] .mini { border-radius: 0 100% 0 100%; }
.token[data-cat="Painting"] .mini { border-radius: 4px; }
.token h3 { font-size: 1.3rem; font-weight: 800; }
.token p { font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.token-actions { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.mini-btn { min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 700; font-size: .9rem; }
.mini-btn:hover { background: #ffe3b0; }
.mini-btn.danger { background: transparent; border-style: dashed; }
.token :focus-visible { outline-color: var(--accent); }
.kiln-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.kiln-foot[hidden] { display: none; }
.kiln-total { font-size: 1.2rem; }
.kiln-total strong { font-family: var(--display); font-size: 2.4rem; margin-left: 8px; font-variant-numeric: tabular-nums; }

.foot { padding: 20px 16px 36px; background: #2a1810; color: #e9d3bb; font-size: .85rem; text-align: center; }
.foot p { max-width: 70ch; margin: 0 auto; }

/* ---------- detail dialog ---------- */
dialog.detail {
  width: min(1000px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto;
  overscroll-behavior: contain; color: var(--ink); background: var(--card);
  border: 3px solid var(--ink); border-radius: 36px; box-shadow: 10px 10px 0 rgba(0, 0, 0, .5);
}
dialog.detail[open] { animation: pop .5s var(--squish); }
dialog.detail::backdrop { background: rgba(32, 22, 16, .62); backdrop-filter: blur(2px); }
.detail-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100%; }
.detail-art { position: relative; display: grid; place-items: center; padding: 56px 28px 36px; background: var(--tone); border-right: 3px dashed var(--ink); }
.detail-art .shape { width: min(100%, 300px); height: 300px; }
.detail-art[data-cat="Baking"] .shape { width: min(100%, 260px); height: 340px; }
.detail-art[data-cat="Painting"] .shape { width: min(100%, 340px); height: 260px; }
.detail-art[data-cat="Floristry"] .shape, .detail-art[data-cat="Ceramics"] .shape { width: min(100%, 310px); height: 310px; }
.detail-art .shape:hover { border-radius: var(--blob); transform: rotate(-3deg) scale(1.03); }
.detail-main { padding: 56px 36px 36px; display: flex; flex-direction: column; gap: 14px; }
.detail-main h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
.detail-main .body { font-size: 1.1rem; color: var(--ink-soft); max-width: 36em; }
.close {
  position: absolute; top: 12px; right: 12px; z-index: 2; min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--card); font-weight: 800; box-shadow: 3px 3px 0 var(--ink);
}
.close:hover { background: #ffe3b0; }
.detail-inner { position: relative; }

.ticket { margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; background: #fff; }
.ticket div { padding: 10px 14px; border-bottom: 2px dotted var(--ink-soft); }
.ticket div:nth-child(odd) { border-right: 2px dotted var(--ink-soft); }
.ticket div:nth-last-child(-n+2) { border-bottom: 0; }
.ticket dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ticket dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.ticket .wide { grid-column: 1 / -1; border-right: 0 !important; }
.detail-main .pips { max-width: none; margin-top: 6px; }
.detail-main .pips i { width: 12px; height: 12px; }

.save {
  margin-top: 8px; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font-weight: 800; font-size: 1.05rem; box-shadow: 4px 4px 0 var(--ink);
  transition: background-color .25s, color .25s, transform .2s;
}
.save:hover { background: #ffe3b0; }
.save:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.save[aria-pressed="true"] { background: var(--clay); color: #fff; }
.save[aria-pressed="true"] .flame { background: linear-gradient(to top, #ffd38a, #fff3d6); }
.save.fired { animation: bump .6s var(--squish); }

/* ---------- motion ---------- */
@keyframes wobble {
  0%, 100% { border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; }
  33% { border-radius: 58% 42% 38% 62% / 55% 60% 40% 45%; }
  66% { border-radius: 38% 62% 55% 45% / 62% 38% 62% 38%; }
}
@keyframes wobble-text { 0%, 100% { transform: rotate(-1.5deg) scaleY(1); } 50% { transform: rotate(1.2deg) scaleY(1.06); } }
@keyframes slump { 0%, 100% { transform: scaleY(1) scaleX(1); } 50% { transform: scaleY(.88) scaleX(1.06); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.18) rotate(-3deg); } 100% { transform: scale(1); } }
@keyframes pop { from { transform: scale(.9) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drop { from { transform: translateY(-14px) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }

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

/* ---------- responsive ---------- */
@media (min-width: 1100px) {
  .grid .card:nth-child(3n+2) { margin-top: 28px; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 22px; padding-top: 24px; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .field-search { grid-column: 1 / -1; }
  .toggle { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .detail-inner { grid-template-columns: 1fr; }
  .detail-art { border-right: 0; border-bottom: 3px dashed var(--ink); padding: 64px 20px 26px; }
  .detail-art .shape, .detail-art[data-cat] .shape { height: 240px; }
  .detail-art[data-cat="Baking"] .shape { width: 190px; }
  .detail-art[data-cat="Floristry"] .shape, .detail-art[data-cat="Ceramics"] .shape { width: 240px; }
  .detail-art[data-cat="Painting"] .shape { width: min(100%, 300px); height: 220px; }
  .detail-main { padding: 26px 20px 32px; }
  dialog.detail { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border-width: 0; }
}

@media (max-width: 520px) {
  .top { padding: 8px 14px; }
  .brand { font-size: 1.6rem; }
  .hero h1 { font-size: 2.75rem; }
  .lede { font-size: 1rem; }
  .lump { --h: 200px; --w: min(100%, 260px); box-shadow: 5px 5px 0 var(--ink); }
  .lump[data-shape="Ceramics"] { --w: 210px; --h: 210px; }
  .lump[data-shape="Baking"] { --w: 190px; --h: 230px; }
  .lump[data-shape="Floristry"] { --w: 215px; --h: 215px; }
  .lump[data-shape="Painting"] { --w: 260px; --h: 190px; }
  .tools { padding: 14px; border-radius: 22px; box-shadow: 4px 4px 0 var(--ink); }
  .sorter-row { gap: 6px; }
  .shape-btn { font-size: .72rem; padding: 8px 2px 6px; border-radius: 14px; }
  .glyph { width: 28px; height: 28px; }
  .shape-btn[data-cat="Baking"] .glyph { width: 24px; height: 31px; }
  .shape-btn[data-cat="Painting"] .glyph { width: 31px; height: 24px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .card { box-shadow: 5px 5px 0 var(--ink); }
  .stage { height: 270px; }
  .card h3 { font-size: 1.65rem; }
  .shelf { padding-top: 34px; }
  .ticket { grid-template-columns: 1fr; }
  .ticket div:nth-child(odd) { border-right: 0; }
  .ticket div:nth-last-child(2) { border-bottom: 2px dotted var(--ink-soft); }
  .save { width: 100%; justify-content: center; }
  .kiln { padding-top: 44px; }
  .kiln-list { grid-template-columns: minmax(0, 1fr); }
}
