/* Driftworlds store, "Supply Depot" (Claude Design handoff). Tokens, header, footer and buttons come from styles.css. */
.t-rust { color: var(--rust); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green); }

/* header: manifest (cart) button */
.cart-btn { height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: transparent; border: 1px solid var(--line); color: var(--ink); font-family: var(--fm); font-weight: 700; font-size: 12px; letter-spacing: .08em; cursor: pointer; }
.cart-btn:hover { border-color: var(--green); }
.cart-btn.has-items { background: var(--green); border-color: var(--green); color: var(--on-green); }
@media (max-width: 819.98px) { .desk-label { display: none; } }

/* hero */
.sec > .wrap.depot { padding-block: clamp(40px, 6vw, 88px); }
.depot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: end; }
.depot__copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.h1--depot { font-size: clamp(68px, 10vw, 152px); letter-spacing: 0; }
.depot__sub { margin: 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; max-width: 34ch; text-wrap: pretty; }
.soon-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; border: 1px solid var(--amber); padding: 14px 18px; align-self: flex-start; }
.soon-note__state { display: flex; align-items: center; gap: 10px; font-family: var(--fm); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--amber); }
.soon-note a { font-family: var(--fm); font-size: 12px; font-weight: 700; letter-spacing: .08em; min-height: 44px; display: flex; align-items: center; }
.policy-box { border: 1px solid var(--line); background: var(--panel2); font-family: var(--fm); min-width: 0; }
.policy-box__head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: .12em; }
.policy-box__rows { padding: 16px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 2; }
.policy-box__rows > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.policy-box__rows span { color: var(--muted); }

/* product grid */
.sec--items > .wrap { padding-block: clamp(32px, 4vw, 56px) clamp(56px, 8vw, 112px); }
.items-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.h2--items { font-size: clamp(36px, 4vw, 56px); line-height: .9; }
.lbl-count { font-family: var(--fm); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card { display: flex; flex-direction: column; }
.well { position: relative; aspect-ratio: 4 / 3; border: 0; border-bottom: 1px solid var(--line); background: var(--panel2); padding: 0; cursor: pointer; overflow: hidden; color: var(--ink); transition: background .25s; }
.well:hover { background: var(--panel); }
.loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--fm); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.viewer { position: absolute; inset: 0; }
.well .viewer { pointer-events: none; }
.viewer canvas { display: block; width: 100% !important; height: 100% !important; }
.viewer img.fallback { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; padding: 12%; }
.well__sku { position: absolute; top: 10px; left: 10px; font-family: var(--fm); font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.well__new { position: absolute; top: 10px; right: 10px; background: var(--green); color: var(--on-green); font-family: var(--fm); font-size: 10px; font-weight: 700; letter-spacing: .12em; padding: 4px 7px; }
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__cat { font-family: var(--fm); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.card__name { margin: 0; font-family: var(--fh); font-weight: 900; font-size: 32px; line-height: .92; text-transform: uppercase; }
.card__short { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.buy-row { margin-top: auto; padding-top: 8px; display: flex; align-items: stretch; gap: 8px; }
.price { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); font-family: var(--fm); font-size: 15px; font-weight: 700; min-height: 48px; font-variant-numeric: tabular-nums; }
.add-btn { flex: 1; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border: 1px solid var(--green); background: var(--green); color: var(--on-green); font-family: var(--fm); font-size: 12px; font-weight: 700; letter-spacing: .08em; cursor: pointer; text-align: left; }
.add-btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.add-btn.in-cart { background: color-mix(in oklab, var(--green) 14%, var(--bg)); color: var(--green); }
.add-btn.in-cart:hover { background: color-mix(in oklab, var(--green) 24%, var(--bg)); border-color: var(--green); color: var(--green); }
.add-btn:disabled { background: transparent; border-color: var(--line); color: var(--muted); opacity: .55; cursor: not-allowed; }
.buy-row--lg { padding-top: 6px; }
.buy-row--lg .price { min-height: 56px; padding: 0 14px; font-size: 17px; }
.buy-row--lg .add-btn { min-height: 56px; padding: 0 18px; font-size: 13px; }

/* fair play */
.fair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.fair__col { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.fair__head { font-family: var(--fm); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.fair__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fair__list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 17px; }
.fair__list i { font-family: var(--fm); font-style: normal; }
.fair__list--yes i { color: var(--green); }
.fair__list--no i { color: var(--rust); }

/* faq */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.faq__intro { display: flex; flex-direction: column; gap: 16px; }
.faq__intro p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 40ch; }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 19px; font-weight: 600; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary span { font-family: var(--fm); color: var(--green); font-size: 18px; transition: transform .2s; }
.faq__list details[open] summary span { transform: rotate(45deg); }
.faq__list details p { margin: 0 0 20px; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 60ch; }

/* overlays */
body.scroll-lock { overflow: hidden; }
.overlay { position: fixed; inset: 0; }
.overlay--dialog { z-index: 80; background: rgba(11, 10, 16, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.overlay--drawer { z-index: 90; background: rgba(11, 10, 16, .6); }
.overlay[hidden] { display: none; }
.dialog { width: 100%; max-width: 880px; max-height: calc(100vh - 32px); overflow: auto; background: var(--bg); border: 2px solid var(--green); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.dialog__stage { position: relative; min-height: clamp(300px, 52vh, 480px); background: var(--panel2); border-right: 1px solid var(--line); overflow: hidden; }
.dialog__stage .viewer { cursor: grab; touch-action: none; }
.dialog__stage .viewer:active { cursor: grabbing; }
.dialog__hint { position: absolute; left: 12px; bottom: 10px; font-family: var(--fm); font-size: 10px; letter-spacing: .12em; color: var(--muted); pointer-events: none; }
.dialog__body { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dialog__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog__title { margin: 0; font-family: var(--fh); font-weight: 900; font-size: clamp(40px, 5vw, 56px); line-height: .88; text-transform: uppercase; }
.dialog__long { margin: 0; font-size: 17px; line-height: 1.5; }
.gets { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.gets li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.gets i { font-family: var(--fm); font-style: normal; color: var(--green); }
.cosmetic-line { font-family: var(--fm); font-size: 11px; letter-spacing: .1em; color: var(--green); }
@media (max-width: 700px) { .dialog__stage { border-right: 0; border-bottom: 1px solid var(--line); } }

.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 460px); background: var(--bg); border-left: 2px solid var(--green); display: flex; flex-direction: column; }
.drawer__head { height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); font-family: var(--fm); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.drawer__empty { flex: 1; padding: 32px 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.drawer__empty-title { font-family: var(--fh); font-weight: 900; font-size: 48px; line-height: .9; text-transform: uppercase; }
.drawer__empty .btn-outline { font-size: 12px; padding: 0 16px; gap: 20px; }
.drawer__items { list-style: none; margin: 0; padding: 0 20px; flex: 1; overflow: auto; }
.drawer__items li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.thumb { width: 44px; height: 44px; flex: none; background: var(--panel2) center / contain no-repeat; border: 1px solid var(--line); image-rendering: pixelated; }
.line-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.line-main b { font-size: 17px; font-weight: 600; line-height: 1.2; }
.line-main span { font-family: var(--fm); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.line-price { font-family: var(--fm); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.remove-btn { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer; padding: 0; }
.remove-btn:hover { border-color: var(--rust); color: var(--ink); }
.drawer__foot { flex: none; border-top: 1px solid var(--line); padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--fm); }
.subtotal span { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.subtotal b { font-size: 22px; font-variant-numeric: tabular-nums; }
.name-field { display: flex; flex-direction: column; gap: 8px; }
.name-field label { font-family: var(--fm); font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.name-field input { min-height: 48px; padding: 0 14px; background: var(--panel2); border: 1px solid var(--line); color: var(--ink); font-family: var(--fm); font-size: 15px; outline: none; border-radius: 0; }
.name-field input:focus { border-color: var(--green); }
.name-field input[aria-invalid="true"] { border-color: var(--rust); }
.name-field > span { font-family: var(--fm); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.name-field > span.is-error { color: var(--ochre); }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-btn { flex: none; min-height: 48px; padding: 0 16px; background: transparent; border: 1px solid var(--line); color: var(--ink); font-family: var(--fm); font-size: 12px; font-weight: 700; letter-spacing: .1em; cursor: pointer; }
.coupon-btn:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.coupon-btn:disabled { color: var(--muted); cursor: wait; }
.name-field > span.is-ok { color: var(--green); }
.subtotal--off b { font-size: 16px; color: var(--green); }
.checkout-btn { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px; border: 0; background: var(--green); color: var(--on-green); font-family: var(--fm); font-size: 14px; font-weight: 700; letter-spacing: .08em; cursor: pointer; text-align: left; }
.checkout-btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.checkout-btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.locked { border: 1px solid var(--green); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.locked span:first-child { font-family: var(--fm); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--green); }
.locked span:last-child { font-size: 15px; line-height: 1.45; color: var(--muted); }
.fine { font-family: var(--fm); font-size: 10px; letter-spacing: .08em; color: var(--muted); line-height: 1.6; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--green); color: var(--on-green); font-family: var(--fm); font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 14px 18px; display: flex; gap: 16px; align-items: center; max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }
.toast button { min-height: 36px; padding: 0 10px; background: transparent; border: 1px solid var(--on-green); color: var(--on-green); font-family: var(--fm); font-size: 12px; font-weight: 700; cursor: pointer; }
/* 5 cards in a 3-column grid leave an empty slot: draw rules per card instead of gap-on-background */
.products { gap: 0; background: var(--bg); border: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.products > .card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* supporter passes and ship paint (D156, D158) */
.pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.pic--pixel { image-rendering: pixelated; padding: 16%; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0; background: var(--bg); border: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tiers > .card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tier .well { aspect-ratio: 16 / 9; }
.tier--sup-3 { box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--green) 55%, transparent); }
.perks { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.perks li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.perks li i { font-family: var(--fm); font-style: normal; color: var(--green); flex: none; }
.perks .perks__lead { font-family: var(--fm); font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.card--bundle .card__name { color: var(--green); }
.thumb--photo { background-size: cover; image-rendering: auto; }
#dlg-viewer .pic { padding: 8%; }
/* hoverbikes (D163): rent for 30 days or own it */
.term { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.term[hidden] { display: none; }
.term__btn { min-height: 44px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 6px 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
.term__btn b { font-family: var(--fm); font-size: 12px; letter-spacing: .08em; }
.term__btn span { font-family: var(--fm); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.term__btn:hover { border-color: var(--green); }
.term__btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.term__btn[aria-pressed="true"] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: color-mix(in oklab, var(--green) 10%, transparent); }
.bike-rules { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 6px 24px; }
.bike-rules li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.bike-rules li i { font-family: var(--fm); font-style: normal; color: var(--green); flex: none; }
/* Crew Manifest (VCL#124) */
.crew { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.crew__row { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 18px; background: var(--bg); }
@media (max-width: 560px) { .crew__row { grid-template-columns: 1fr; gap: 8px; } }
.crew__tier { font-family: var(--fm); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.crew__row--ultra .crew__tier { color: #d9a83a; }
.crew__row--plus .crew__tier { color: var(--green); }
.crew__row--supporter .crew__tier { color: #ff5fa2; }
.crew__names { display: flex; flex-wrap: wrap; gap: 8px 18px; min-width: 0; }
.crew__name { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.crew__row--ultra .crew__name { font-size: 20px; }
.crew__empty { margin: 0; padding: 18px; background: var(--bg); color: var(--muted); }
.crew__note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
/* the supporter wall: a big thank you (Stephen 2026-10-06) */
.thanks .wrap { display: flex; flex-direction: column; gap: 14px; }
.thanks__title { margin: 0; font-family: var(--fh, inherit); font-weight: 900; font-size: clamp(56px, 11vw, 140px); line-height: .85; text-transform: uppercase; color: #ff5fa2; text-wrap: balance; }
.thanks__lede { margin: 0 0 10px; max-width: 60ch; font-size: 18px; line-height: 1.5; color: var(--muted); }
/* package deals: four across on desktop, so none sits alone (VCL#185) */
.tiers.packs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
/* currency switch (PHP for the Philippines, USD otherwise) */
.cur-btn { height: 44px; flex: none; padding: 0 12px; background: transparent; border: 1px solid var(--line); color: var(--ink); font-family: var(--fm); font-size: 12px; font-weight: 700; letter-spacing: .08em; cursor: pointer; white-space: nowrap; }
.cur-btn:hover { border-color: var(--green); }
.cur-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
/* back from checkout (VCL#187) */
.checkout-note { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 52px 14px 18px; border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--green) 14%, var(--bg)); color: var(--ink); font-size: 15px; line-height: 1.4; }
.checkout-note b { font-family: var(--fm); font-size: 12px; letter-spacing: .1em; color: var(--green); }
.checkout-note--cancelled { background: var(--panel); }
.checkout-note--cancelled b { color: var(--muted); }
.checkout-note--error { background: color-mix(in oklab, #ff5a3a 14%, var(--bg)); }
.checkout-note--error b { color: #ff7a5a; }
.checkout-note__x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background: transparent; border: 0; color: var(--ink); cursor: pointer; font-size: 16px; }
