.shop { min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(70rem 26rem at 50% -8rem, rgb(139 92 246 / .2), transparent 70%), var(--bg); }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.main { flex: 1; padding: 1.5rem 0 3rem; }
a { color: var(--accent-bright); }
.muted { color: var(--soft); }
.small { font-size: .85rem; }
.center { text-align: center; }

.testbar { background: #3a2a07; color: #ffd27a; text-align: center; font-size: .85rem; font-weight: 600; padding: .45rem 1rem; }

.top { position: sticky; top: 0; z-index: 5; background: rgb(14 15 19 / .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; justify-content: space-between; height: 3.6rem; }
.top__home { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.top__shop { color: var(--soft); font-weight: 600; font-size: .95rem; padding-left: .7rem; border-left: 1px solid var(--line); }
.top__cart { color: var(--text); text-decoration: none; font-weight: 600; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); }
.top__cart:hover { border-color: var(--accent); }
.badge { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; margin-left: .3rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8rem; }

.hero { padding: 1.5rem 0 1rem; }
.hero h1 { font-family: "Unbounded", system-ui, sans-serif; font-size: clamp(1.6rem, 4.5vw, 2.6rem); font-weight: 800; letter-spacing: -.01em; max-width: 22ch; }
.hero > p { color: var(--soft); max-width: 52ch; margin: .7rem 0 1.2rem; }
.search { display: flex; gap: .5rem; max-width: 34rem; }
.search input { flex: 1; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.chip { padding: .38rem .85rem; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); text-decoration: none; font-size: .9rem; font-weight: 600; }
.chip:hover { color: var(--text); border-color: rgb(255 255 255 / .2); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.count { color: var(--soft); font-size: .9rem; margin: 1.2rem 0 .8rem; }

input, select { font: inherit; color: var(--text); background: #0b0c10; border: 1px solid rgb(255 255 255 / .14); border-radius: 10px; padding: .65rem .8rem; width: 100%; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
button { font: inherit; cursor: pointer; }
.btn, .search button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1rem; border-radius: 10px; border: 0; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn:hover, .search button:hover { background: #7c4dee; }
.btn--quiet { background: transparent; border: 1px solid var(--line); color: var(--soft); }
.btn--quiet:hover { background: transparent; color: var(--text); }
.btn--big { width: 100%; padding: .9rem 1rem; font-size: 1.05rem; }
.link { background: none; border: 0; padding: .3rem; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; display: block; }
.link:hover { color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 1rem; }
.tile { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tile__art { display: block; aspect-ratio: 2 / 3; background: #0b0c10; text-decoration: none; }
.tile__art img, .detail__art img, .line__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile__body { display: flex; flex-direction: column; flex: 1; padding: .8rem .9rem .9rem; }
.tile__kind { margin: 0; color: var(--soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.tile__name { font-size: 1rem; margin: .25rem 0 .15rem; line-height: 1.3; }
.tile__name a { color: var(--text); text-decoration: none; }
.tile__name a:hover { color: var(--accent-bright); }
.tile__meta { margin: 0; color: var(--soft); font-size: .85rem; }
.tile__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .8rem; }
.tile__price { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.tile__foot .btn { padding: .5rem .75rem; font-size: .9rem; }

.blank { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; width: 100%; height: 100%; background: linear-gradient(160deg, #2a1d4d, #121219 70%); }
.blank--figure { background: linear-gradient(160deg, #4d1d3c, #121219 70%); }
.blank--manga { background: linear-gradient(160deg, #1d3a4d, #121219 70%); }
.blank--tabletop { background: linear-gradient(160deg, #4d2f1d, #121219 70%); }
.blank--console, .blank--game { background: linear-gradient(160deg, #1d4d32, #121219 70%); }
.blank__letter { font-family: "Unbounded", system-ui, sans-serif; font-weight: 900; font-size: 3.4rem; color: rgb(255 255 255 / .85); line-height: 1; }
.blank__label { color: rgb(255 255 255 / .6); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }

.back { display: inline-block; margin-bottom: 1rem; color: var(--soft); text-decoration: none; }
.detail { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 2rem; align-items: start; }
.detail__art { aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0b0c10; }
.detail__info h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: .3rem 0 1rem; }
.detail__price { font-size: 2.4rem; font-weight: 800; margin: 1.2rem 0 .3rem; font-variant-numeric: tabular-nums; }
.detail__info form, .detail__info > .btn { max-width: 22rem; margin-top: 1rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .8rem; margin: 0; }
.facts dt { color: var(--soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.facts dd { margin: .15rem 0 0; }

.page-title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 1.2rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.5rem; align-items: start; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.line { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) auto auto; gap: .9rem; align-items: center; padding: .7rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.line__art { width: 3.6rem; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: #0b0c10; text-decoration: none; }
.line__art .blank__letter { font-size: 1.4rem; }
.line__art .blank__label { display: none; }
.line__info { display: flex; flex-direction: column; min-width: 0; }
.line__name { color: var(--text); font-weight: 700; text-decoration: none; }
.line__info .muted { font-size: .85rem; }
.line__price { font-weight: 800; font-variant-numeric: tabular-nums; }

.summary, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; }
.summary { position: sticky; top: 4.6rem; display: grid; gap: .7rem; }
.summary h2, .panel h2 { font-size: 1rem; margin: 0 0 .2rem; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; padding: .2rem 0; }
.summary__total { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .3rem; }
.mini { list-style: none; margin: 0 0 .5rem; padding: 0 0 .5rem; border-bottom: 1px solid var(--line); display: grid; gap: .35rem; }
.mini li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.mini li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.mini li span:last-child { font-variant-numeric: tabular-nums; }

.steps { display: grid; gap: 1.2rem; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem 1.1rem; margin: 0; background: var(--panel); display: grid; gap: .8rem; }
legend { font-weight: 800; padding: 0 .4rem; }
.choice { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: rgb(139 92 246 / .08); }
.choice input { width: auto; margin-top: .3rem; accent-color: var(--accent); }
.choice span { display: flex; flex-direction: column; }
.choice small { color: var(--soft); font-size: .88rem; }
.field { display: grid; gap: .3rem; }
.field > span { font-size: .88rem; font-weight: 600; color: var(--soft); }
.field-row { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: .7rem; }
.checkout:not(:has(#how-ship:checked)) .ship-only { display: none; }

.notice { padding: .8rem 1rem; border-radius: 10px; background: rgb(255 181 71 / .1); color: var(--bad); border: 1px solid rgb(255 181 71 / .25); }
.notice--bad { background: rgb(255 92 122 / .1); color: #ff8aa1; border-color: rgb(255 92 122 / .3); }
.notice--good { background: rgb(61 220 151 / .1); color: var(--good); border-color: rgb(61 220 151 / .25); }

.narrow { max-width: 36rem; margin-inline: auto; display: grid; gap: 1rem; }
.narrow > * { margin: 0; }
.panel--test { border-color: rgb(255 181 71 / .35); background: rgb(255 181 71 / .05); }
.panel--test p { margin: 0 0 1rem; }
.pay-actions { display: grid; gap: .4rem; justify-items: center; }
.order-number { font-family: "Unbounded", system-ui, sans-serif; letter-spacing: .04em; }
.status-pill { justify-self: start; padding: .35rem .8rem; border-radius: 999px; font-weight: 700; background: rgb(139 92 246 / .15); color: var(--accent-bright); }
.status-pill--ready, .status-pill--shipped, .status-pill--completed { background: rgb(61 220 151 / .12); color: var(--good); }
.status-pill--expired, .status-pill--canceled { background: rgb(255 255 255 / .06); color: var(--soft); }
.status-pill--pending { background: rgb(255 181 71 / .12); color: var(--bad); }

.empty { text-align: center; padding: 3rem 1rem; }
.empty h2 { margin: 0 0 .4rem; }
.empty p { color: var(--soft); margin: 0 0 1.2rem; }

.foot { border-top: 1px solid var(--line); padding: 2rem 0 1.5rem; color: var(--soft); font-size: .92rem; }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; }
.foot h3 { color: var(--text); font-size: .95rem; margin: 0 0 .4rem; }
.foot p { margin: 0; }
.foot .foot__small { font-size: .78rem; margin: 1.5rem auto 0; opacity: .8; }

@media (max-width: 760px) {
  .detail, .split { grid-template-columns: 1fr; }
  .summary { position: static; }
  .detail__art { max-width: 16rem; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .field:first-child { grid-column: 1 / -1; }
  .line { grid-template-columns: 3rem minmax(0, 1fr) auto; }
  .line form { grid-column: 2 / -1; justify-self: start; }
  .line form .link { padding: 0; }
  .top__shop { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .tile__body { padding: .7rem; }
  .tile__foot { flex-direction: column; align-items: stretch; gap: .5rem; }
  .tile__foot .btn { width: 100%; }
  .blank__letter { font-size: 2.6rem; }
}

.card-form { display: grid; gap: .9rem; }
.card-form h2 { margin: 0; }
.card-box { height: 2.9rem; padding: .7rem .8rem; background: #0b0c10; border: 1px solid rgb(255 255 255 / .14); border-radius: 10px; }
.card-box iframe { width: 100% !important; height: 1.5rem !important; border: 0; }
.field__error { color: #ff8aa1; min-height: 1em; font-size: .82rem; }
.field-row--card { grid-template-columns: 1fr 1fr 1fr; }
.pay-actions .link { margin: 0 auto; }

.top__nav { display: flex; align-items: center; gap: .5rem; }
.top__link { color: var(--soft); text-decoration: none; font-weight: 600; padding: .45rem .7rem; }
.top__link:hover { color: var(--text); }
.chips--stores { margin-top: .9rem; }
.foot__hours { margin-top: .5rem !important; font-size: .85rem; }
.stack { display: grid; gap: .9rem; }
.timeline { list-style: none; margin: .6rem 0 0; padding: 0 0 0 1rem; border-left: 2px solid rgb(139 92 246 / .35); display: grid; gap: .6rem; }
.timeline__step { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; font-size: .92rem; }
.timeline__step::before { content: ""; position: absolute; left: calc(-1rem - 6px); top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline__step:last-child .timeline__text { font-weight: 700; }
.timeline__when { color: var(--soft); font-size: .82rem; }
.account { display: grid; gap: 1.5rem; }
.account__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.account__head .page-title { margin: 0; }
.account__head p { margin: 0 0 .2rem; }
.account__section h2 { font-size: 1.2rem; margin: 0 0 .8rem; }
.account__section { display: grid; gap: .7rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .8rem; }
.stat { display: grid; gap: .2rem; padding: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.stat__label { color: var(--soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.stat__value { font-size: 1.8rem; font-weight: 800; }
.order-card summary { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; cursor: pointer; list-style: none; }
.order-card summary::-webkit-details-marker { display: none; }
.order-card[open] summary { margin-bottom: .8rem; }
.order-card__num { font-family: "Unbounded", system-ui, sans-serif; font-weight: 700; }
.order-card__total { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.row-card { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .8rem 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.row-card .bad { color: #ff8aa1; font-weight: 700; }
.muted-details summary { cursor: pointer; color: var(--soft); margin-bottom: .5rem; }

.demo { max-width: 1100px; margin: 0 auto; padding: 1.5rem 0 3rem; }
.demo h1 { margin: 0 0 .5rem; }
.demo p { color: var(--soft); margin: 0 0 1.2rem; }
.demo video { width: 100%; border-radius: 12px; background: #000; display: block; }
.demo .demo__note { margin-top: 1rem; font-size: .95rem; }
