/* Kombat Kollector public site. No build step, no external fonts or scripts (see the CSP in web/app.py). */
:root {
  --bg: #0d0b0c; --panel: #171415; --panel-2: #1f1b1c; --line: #2c2627; --text: #ece6e2; --muted: #9a8f94;
  --red: #d8202b; --red-dark: #a3161f; --gold: #d9a441; --green: #4caf7a; --blue: #5a9bd6;
  --radius: 10px; --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --display: "Oswald", "Bebas Neue", "Arial Narrow", Impact, "Haettenschweiler", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-bottom: 3rem; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; margin: 1.4rem 0 .6rem; }
h1 { font-size: 2.2rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.05rem; color: var(--muted); }
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted, .hint, .note { color: var(--muted); }
.hint, .note { font-size: .85rem; }
.accent { color: var(--red); }
.lede { font-size: 1.15rem; color: #cfc6c9; max-width: 60ch; }
.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* header */
.top { background: #100d0e; border-bottom: 2px solid var(--red); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; padding: .6rem 0; }
.logo { font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text); display: flex; align-items: center; gap: .5rem; }
.logo:hover { text-decoration: none; }
.logo-mark { background: var(--red); color: #fff; padding: 0 .4rem; border-radius: 4px; font-size: 1.1rem; }
.search { display: flex; flex: 1 1 240px; max-width: 420px; }
.search input, .hero-search input { flex: 1; min-width: 0; }
.nav { display: flex; gap: 1.2rem; }
.nav a { color: var(--text); padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"], .nav a:hover { border-color: var(--red); text-decoration: none; }
.acct { margin-left: auto; display: flex; align-items: center; gap: .8rem; }
.acct form { margin: 0; }
.who { color: var(--muted); }

/* controls */
input, select, textarea, button { font: inherit; color: var(--text); }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: .5rem .7rem; width: 100%; }
.search input, .hero-search input, .searchbar input { border-radius: 6px 0 0 6px; }
.search button, .hero-search button, .searchbar button { border-radius: 0 6px 6px 0; }
button { cursor: pointer; background: var(--red); border: 1px solid var(--red-dark); border-radius: 6px; padding: .5rem 1rem; font-weight: 600; }
button:hover { background: var(--red-dark); }
.btn { display: inline-block; background: var(--red); border: 1px solid var(--red-dark); color: #fff; border-radius: 6px; padding: .5rem 1.1rem; font-weight: 600; }
.btn:hover { background: var(--red-dark); text-decoration: none; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-small { padding: .2rem .7rem; font-size: .9rem; }
.linklike { background: none; border: 0; padding: 0; color: var(--gold); font-weight: 400; }
.linklike:hover { background: none; text-decoration: underline; }
.danger { color: #ff7b7b; }
.inline { display: inline-flex; gap: .5rem; align-items: center; margin: 0; }
.inline select { width: auto; }
.form { display: grid; gap: 1rem; max-width: 460px; margin: 1rem 0; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.form label input, .form label select, .form label textarea { font-weight: 400; }
.error { color: #ff8f8f; background: #2a1215; border: 1px solid #5a1f25; border-radius: 6px; padding: .5rem .8rem; margin: .3rem 0; }
.flash { background: #1c2a20; border: 1px solid #2f5a3f; color: #b7e4c7; border-radius: 6px; padding: .6rem 1rem; margin: 1rem 0 0; }
.narrow { max-width: 620px; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

/* hero */
.hero { padding: 3rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin-top: 0; max-width: 18ch; }
.hero-search { display: flex; max-width: 640px; margin: 1.4rem 0; }
.hero-search input { padding: .8rem 1rem; font-size: 1.05rem; }
.hero-search button { padding: .8rem 1.4rem; }
.stats { list-style: none; display: flex; gap: 2rem; flex-wrap: wrap; padding: 0; margin: 0; color: var(--muted); }
.stats b { color: var(--gold); font: 1.7rem var(--display); margin-right: .2rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.tile { display: grid; gap: .2rem; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); padding: .9rem 1rem; color: var(--text); }
.tile:hover { background: var(--panel-2); text-decoration: none; }
.tile span { color: var(--muted); font-size: .9rem; }
.pitch { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; padding: 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.pitch h2 { margin-top: 0; }
.teaser .val { font-size: 1.8rem; }

/* chips */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.chip { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .8rem; color: var(--text); font-size: .9rem; }
.chip span { color: var(--muted); margin-left: .2rem; }
.chip:hover { border-color: var(--red); text-decoration: none; }
.active .chip { border-color: var(--red); }

/* browse layout */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.layout-right { grid-template-columns: minmax(0, 1fr) 280px; }
.filters details > summary { cursor: pointer; font-family: var(--display); text-transform: uppercase; font-size: 1.1rem; margin-bottom: .5rem; }
.filters h3 { margin: 1rem 0 .3rem; }
.filters ul { list-style: none; margin: 0; padding: 0; }
.filters li a { display: flex; justify-content: space-between; gap: .5rem; padding: .15rem .4rem; border-radius: 4px; color: var(--text); }
.filters li a span { color: var(--muted); }
.filters li a:hover { background: var(--panel-2); text-decoration: none; }
.filters li a[aria-current="true"] { background: var(--red); color: #fff; }
.filters details ul { max-height: 260px; overflow: auto; }
.count-line { color: var(--muted); margin: .5rem 0; }
.sortbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .4rem 0 1rem; }
.sortbar select { padding: .3rem .5rem; }
.views a { padding: .2rem .7rem; border: 1px solid var(--line); color: var(--text); }
.views a:first-child { border-radius: 6px 0 0 6px; } .views a:last-child { border-radius: 0 6px 6px 0; border-left: 0; }
.views a[aria-current="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.searchbar { display: flex; margin-bottom: .6rem; max-width: 420px; }
.pager { display: flex; justify-content: center; gap: 1.5rem; margin: 2rem 0; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card:hover { border-color: #4a3c3e; box-shadow: var(--shadow); }
.cover { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; background: #f3f1ef; }
.cover img { width: 100%; height: 100%; object-fit: contain; }
.noimg { font: 3rem var(--display); color: #c9c3c0; }
.own { position: absolute; top: .5rem; left: .5rem; background: var(--green); color: #07140d; font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 4px; }
.own-wishlist { background: var(--blue); color: #06121c; }
.own.inline { position: static; margin-left: .4rem; }
.meta { padding: .7rem .8rem .9rem; display: grid; gap: .25rem; }
.name { color: var(--text); font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sub { color: var(--muted); font-size: .88rem; }
.prices { display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; color: var(--muted); }
.prices b { color: var(--text); }
.line { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; min-height: 1.4rem; }
.line .edit { margin-left: auto; font-size: .85rem; }
.badge { font-size: .75rem; font-weight: 600; padding: .05rem .5rem; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.av-in_stock { color: var(--green); border-color: #2f5a3f; background: #14231a; }
.av-pre_order { color: var(--blue); border-color: #2c4a66; background: #11202d; }
.av-vaulted { color: var(--gold); border-color: #5a4720; background: #241d0d; }

/* value: real for members, a decoy under blur for everyone else (the real number is never sent) */
.val { color: var(--gold); font-weight: 700; }
.val.none { color: var(--muted); font-weight: 400; }
.val.locked { display: inline-block; filter: blur(5px); user-select: none; cursor: pointer; }
.val.locked:hover { filter: blur(4px); text-decoration: none; }

/* list view */
.tablewrap { overflow-x: auto; }
.list, .offers { width: 100%; border-collapse: collapse; }
.list th { text-align: left; font-size: .8rem; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; padding: .5rem; border-bottom: 1px solid var(--line); }
.list td, .offers td { padding: .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list .thumb { width: 56px; }
.list .thumb img { width: 48px; height: 48px; object-fit: contain; background: #f3f1ef; border-radius: 4px; display: block; }
.list .thumb .noimg { font-size: 1.2rem; }
.num { text-align: right; white-space: nowrap; }
.clip { max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* item page */
.crumbs { color: var(--muted); margin: 1rem 0 0; font-size: .9rem; }
.detail { display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); gap: 2rem; align-items: start; }
.detail-side { position: sticky; top: 90px; }
.detail-side .detail-cover { position: static; }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; padding: 0; margin: .6rem 0 0; }
.gallery a { display: block; aspect-ratio: 1; background: #f3f1ef; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
.detail-cover { position: sticky; top: 90px; background: #f3f1ef; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; }
.detail-cover img { width: 100%; height: 100%; object-fit: contain; }
.detail-main h1 { margin-top: .2rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.values > div { display: grid; gap: .2rem; align-content: start; }
.k { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.big { font: 2rem var(--display); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 1rem 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.desc { color: #cfc6c9; }

/* collection */
.statcards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; padding: 0; margin: 1rem 0; }
.statcards li { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); padding: .8rem 1rem; display: grid; gap: .1rem; align-content: start; }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin: 1.5rem 0 1rem; }
.tabs a { padding: .5rem 1rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-selected="true"] { color: var(--text); border-color: var(--red); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.filters .bars a { display: grid; grid-template-columns: 7rem 1fr 2rem; gap: .5rem; align-items: center; color: var(--text); font-size: .9rem; }
.bars .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .meter { background: var(--panel-2); border-radius: 3px; height: .7rem; overflow: hidden; }
.bars .meter i { display: block; height: 100%; background: var(--red); }
.bars .n { text-align: right; color: var(--muted); }
.ticks { padding-left: 1.2rem; } .ticks li { margin: .4rem 0; } .planned { color: var(--muted); }
.sidebar-stats .panel h3 { margin-top: 0; }

/* footer */
.foot { border-top: 1px solid var(--line); background: #0a0809; color: var(--muted); font-size: .85rem; padding: 1.2rem 0; }
.foot p { margin: .3rem 0; max-width: 90ch; }

/* bar widths (percent, in steps of 5) */
.w0{width:0}.w5{width:5%}.w10{width:10%}.w15{width:15%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w35{width:35%}.w40{width:40%}.w45{width:45%}
.w50{width:50%}.w55{width:55%}.w60{width:60%}.w65{width:65%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w85{width:85%}.w90{width:90%}.w95{width:95%}.w100{width:100%}

@media (max-width: 860px) {
  .layout, .layout-right { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .detail-side { position: static; max-width: 380px; }
  .acct { margin-left: 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
  h1 { font-size: 1.8rem; }
}

/* Amazon price disclosure: a small marker on list/grid rows, full text under the MSRP on the item page (see AMAZON_PRICE_DISCLAIMER) */
.amz-note { cursor: help; color: var(--muted); font-size: .7em; text-decoration: underline dotted; margin-left: .15em; }
