:root {
  --navy: #14285c;
  --navy-soft: #3a4a78;
  --sky-1: #2c78e4;
  --sky-2: #6db4fb;
  --sky-3: #c9e6ff;
  --red: #dc2f2a;
  --red-dark: #a81d19;
  --yellow: #ffcb2e;
  --yellow-dark: #e0a400;
  --cream: #fffaf0;
  --white: #fff;
  --line: #d6dfee;
  --radius: 18px;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font: 500 17px/1.55 var(--body);
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h2 { font: 400 clamp(2rem, 5vw, 3rem)/1.05 var(--display); letter-spacing: .01em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 24px;
  background: var(--navy); color: var(--white);
  border-bottom: 4px solid var(--yellow);
}
.top__brand { font: 400 1.25rem/1 var(--display); text-decoration: none; color: var(--yellow); white-space: nowrap; }
.top nav { display: flex; gap: 20px; }
.top nav a { font-weight: 800; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--yellow); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 62%, var(--sky-3) 100%);
  padding: clamp(36px, 6vw, 72px) 0 clamp(110px, 13vw, 170px);
}
.sparkles { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--white); opacity: .85; }
.clouds { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(70px, 11vw, 150px); fill: var(--cream); }
.hero__inner {
  position: relative;
  width: min(1160px, 100% - 32px); margin-inline: auto;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 64px);
}
.logo { font-family: var(--display); font-weight: 400; line-height: .92; transform: rotate(-2deg); transform-origin: left center; }
.logo span { display: block; paint-order: stroke fill; stroke-linejoin: round; -webkit-text-stroke-linejoin: round; }
.logo__top {
  font-size: clamp(2.5rem, 7vw, 4.9rem); color: var(--navy);
  -webkit-text-stroke: 10px var(--white);
}
.logo__big {
  font-size: clamp(3.5rem, 10.500vw, 7.5rem); color: var(--yellow);
  -webkit-text-stroke: 14px var(--navy);
  filter: drop-shadow(0 7px 0 var(--red));
  margin-top: 4px;
}
.ribbon {
  display: inline-block; margin-top: 26px; padding: 7px 20px;
  background: var(--red); color: var(--white);
  font: 400 clamp(1.1rem, 2.4vw, 1.5rem)/1.2 var(--display); letter-spacing: .04em;
  border: 3px solid var(--navy); border-radius: 999px;
  box-shadow: 0 4px 0 var(--navy);
}
.ribbon i { font-style: normal; color: var(--yellow); margin: 0 .25em; }
.hero__lead { margin-top: 20px; max-width: 30em; font-weight: 700; font-size: 1.15rem; }
.btn {
  display: inline-block; margin-top: 22px; padding: 13px 26px;
  font: 400 1.2rem/1.1 var(--display); letter-spacing: .02em; text-decoration: none;
  border: 3px solid var(--navy); border-radius: 14px;
  box-shadow: 0 5px 0 var(--navy);
  transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--navy); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--navy); }
.btn--red { background: var(--yellow); color: var(--navy); }

/* Acrylic display case with a fan of cards. The plaque is the live stock count. */
.display {
  position: relative; overflow: hidden;
  display: grid; justify-items: center; gap: 0;
  padding: 26px 20px 22px;
  background: rgba(255, 255, 255, .28);
  border: 4px solid rgba(255, 255, 255, .9); border-radius: 28px;
  box-shadow: 0 12px 0 rgba(20, 40, 92, .85), 0 26px 40px rgba(20, 40, 92, .3);
}
.display::after {
  content: ""; position: absolute; inset: -20% auto -20% 10%; width: 14%;
  background: rgba(255, 255, 255, .3); transform: rotate(18deg); pointer-events: none;
}
.display__fan { position: relative; width: min(100%, 300px); aspect-ratio: 300 / 205; }
.display__fan span {
  position: absolute; left: 50%; bottom: -14%; width: 44%; aspect-ratio: 63 / 88;
  margin-left: -22%; display: grid; place-items: center;
  border: 6px solid var(--yellow); border-radius: 12px;
  box-shadow: 0 10px 18px rgba(20, 40, 92, .35); transform-origin: 50% 110%;
}
.display__fan span::before { content: "★"; color: rgba(255, 255, 255, .92); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.display__fan span:nth-child(1) { background: linear-gradient(145deg, #27c1a8, #0f6fb8); transform: rotate(-20deg); }
.display__fan span:nth-child(2) { background: linear-gradient(145deg, #ff7a59, #d11f5e); transform: rotate(20deg); }
.display__fan span:nth-child(3) { background: linear-gradient(145deg, #8a63f2, #2b3fc4); }
.plaque {
  position: relative; z-index: 1; width: min(100%, 340px); padding: 10px 16px 12px;
  background: var(--navy); color: var(--white); text-align: center;
  border: 4px solid var(--yellow); border-radius: 18px;
}
.plaque__title { font: 400 clamp(1rem, 1.800vw, 1.2rem)/1.2 var(--display); letter-spacing: .05em; color: var(--sky-3); }
.plaque__count { font: 400 clamp(3rem, 7vw, 4.600rem)/1 var(--display); color: var(--yellow); font-variant-numeric: tabular-nums; }
.plaque__sub { font-weight: 800; font-size: .9rem; color: var(--sky-3); }

/* The case */
.case { padding: 12px 0 72px; }
.case__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.case__sync { margin-top: 6px; color: var(--navy-soft); font-weight: 700; font-size: .95rem; }
.case__sync.is-stale { color: var(--red-dark); }
.case__sync::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px;
  border-radius: 50%; background: #27a84a; vertical-align: 1px;
}
.case__sync.is-stale::before { background: var(--red); }
.search input {
  width: min(340px, calc(100vw - 32px)); padding: 12px 16px;
  font: 700 1rem var(--body); color: var(--navy);
  background: var(--white); border: 3px solid var(--navy); border-radius: 12px;
}
.search input::placeholder { color: var(--navy-soft); font-weight: 500; }

.notice {
  margin-top: 18px; padding: 10px 14px;
  background: #fff3c4; border: 2px dashed var(--yellow-dark); border-radius: 10px;
  font-weight: 700; font-size: .95rem;
}
.listlink { margin-top: 18px; font-weight: 800; font-size: 1.1rem; text-align: center; }
.listlink a, .faq a { color: var(--red-dark); text-underline-offset: 3px; }
.listlink a:hover, .faq a:hover { color: var(--red); }
.filters {
  display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 12px; align-items: end;
  margin-top: 18px; padding: 14px;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
}
.filters label { display: grid; gap: 4px; font-weight: 800; font-size: .85rem; min-width: 0; }
.filters select {
  width: 100%; padding: 9px 10px; cursor: pointer;
  font: 700 .95rem var(--body); color: var(--navy);
  background: var(--white); border: 2px solid var(--navy); border-radius: 10px;
}
.filters output { color: var(--red-dark); }
.filters input[type="range"] { width: 100%; height: 40px; margin: 0; accent-color: var(--red); cursor: pointer; }
.results { margin-top: 14px; color: var(--navy-soft); font-weight: 700; font-size: .95rem; }

.grid {
  display: grid; gap: 18px; margin-top: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
}
.item {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.item:hover { transform: translateY(-3px); border-color: var(--navy); box-shadow: 0 6px 0 var(--navy); }
.item.is-changed { animation: flash 1.8s ease-out; }
@keyframes flash {
  0%, 35% { border-color: var(--red); box-shadow: 0 0 0 5px var(--yellow); }
  100% { border-color: var(--line); box-shadow: none; }
}
.item__art {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(180deg, #dcefff, #f4faff);
  border-bottom: 2px solid var(--line);
}
/* Acrylic case glare */
.item__art::after {
  content: ""; position: absolute; inset: -20% auto -20% 8%; width: 18%;
  background: rgba(255, 255, 255, .55); transform: rotate(18deg); pointer-events: none;
}
.item__art img { width: 100%; height: 100%; object-fit: contain; }
.item__flag {
  position: absolute; top: 10px; left: 10px; z-index: 2; padding: 2px 10px;
  background: var(--red); color: var(--white); border-radius: 999px; font-weight: 800; font-size: .78rem;
}
.item__body { display: flex; flex-direction: column; flex: 1; gap: 3px; padding: 13px 15px 15px; }
.item__name { font: 400 1.2rem/1.15 var(--display); letter-spacing: .01em; }
.item__meta { color: var(--navy-soft); font-size: .9rem; font-weight: 700; line-height: 1.3; }
.item__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.item__price { font: 400 1.4rem/1 var(--display); white-space: nowrap; }
.item__price.is-ask { font-size: 1rem; }
.item__stock { font-weight: 800; font-size: .85rem; white-space: nowrap; color: #17783a; }
.item[data-state="low"] .item__stock { color: var(--red-dark); }
.item[data-state="out"] .item__stock { color: var(--navy-soft); }
.item[data-state="out"] .item__art > :not(.item__soldout) { filter: grayscale(1); opacity: .5; }
.item[data-state="out"] .item__price { color: var(--navy-soft); text-decoration: line-through; }
.item__soldout {
  position: absolute; z-index: 2; padding: 4px 26px; transform: rotate(-9deg);
  background: var(--navy); color: var(--yellow); font: 400 1.25rem/1.2 var(--display); letter-spacing: .05em;
  border-radius: 6px;
}

/* Placeholder art: drawn, not copied, until the owner adds real photos. */
.art { --h: 210; position: relative; }
.art--card {
  width: 50%; aspect-ratio: 63 / 88; border-radius: 8px; border: 5px solid var(--yellow);
  background: linear-gradient(145deg, hsl(var(--h) 80% 62%), hsl(calc(var(--h) + 50) 80% 42%));
  box-shadow: 0 8px 14px rgba(20, 40, 92, .28); transform: rotate(-4deg);
}
.art--card::before, .art--slab .art__card::before {
  content: "★"; position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255, 255, 255, .9); font-size: 2.4rem;
}
.art--slab {
  width: 52%; aspect-ratio: 3 / 5; padding: 6px; display: flex; flex-direction: column; gap: 5px;
  background: rgba(255, 255, 255, .75); border: 3px solid #95a7c4; border-radius: 9px;
  box-shadow: 0 8px 14px rgba(20, 40, 92, .28);
}
.art__label {
  padding: 4px 3px; background: var(--white); border: 2px solid var(--red); border-radius: 4px;
  font: 800 .72rem/1.05 var(--body); text-align: center; color: var(--red-dark);
}
.art__card {
  position: relative; flex: 1; border-radius: 4px; border: 3px solid var(--yellow);
  background: linear-gradient(145deg, hsl(var(--h) 80% 62%), hsl(calc(var(--h) + 50) 80% 42%));
}

.empty { margin-top: 28px; padding: 28px; text-align: center; font-weight: 800; background: var(--white); border: 2px dashed var(--line); border-radius: var(--radius); }

/* Buy, sell, trade */
.deal { background: var(--navy); color: var(--white); padding: 64px 0; }
.deal h2 { color: var(--yellow); }
.deal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.deal__grid li { padding: 22px; border: 3px solid var(--sky-2); border-radius: var(--radius); background: rgba(255, 255, 255, .05); }
.deal__grid h3 { font: 400 1.7rem/1 var(--display); color: var(--white); margin-bottom: 8px; }

/* Questions */
.faq { padding: 60px 0; }
.faq h2 { margin-bottom: 18px; }
.faq details { max-width: 780px; margin-top: 10px; background: var(--white); border: 2px solid var(--line); border-radius: 14px; }
.faq details[open] { border-color: var(--navy); }
.faq summary { padding: 14px 18px; cursor: pointer; font-weight: 800; font-size: 1.05rem; }
.faq details p { padding: 0 18px 16px; }

/* Find us */
.find { padding: 60px 0; background: var(--yellow); }
.find__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.find p { margin-top: 6px; font-weight: 700; font-size: 1.15rem; }
.find__links { display: flex; flex-wrap: wrap; gap: 12px; }
.find__links .btn { margin: 0; background: var(--white); color: var(--navy); }
.find__todo { padding: 10px 14px; border: 2px dashed var(--navy); border-radius: 10px; font-weight: 700; font-size: .95rem; max-width: 22em; }

.foot { background: var(--navy); color: var(--sky-3); padding: 24px 0; font-size: .9rem; }
.foot__legal { margin-top: 4px; font-size: .8rem; opacity: .85; }

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; }
  .display { max-width: 460px; }
  .deal__grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters__price { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .top { padding: 10px 16px; }
  .top__brand { display: none; }
  .top nav { width: 100%; justify-content: space-between; gap: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .item__foot { flex-direction: column; gap: 4px; }
  .logo__top { -webkit-text-stroke-width: 8px; }
  .logo__big { -webkit-text-stroke-width: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .item, .btn { transition: none; }
  .item.is-changed { animation: none; border-color: var(--red); }
}
