/* Friday storefront, adapted from Coco9's MIT-licensed arcade design.
   Attribution and asset provenance: docs/third-party/. */
:root {
  color-scheme:light;
  --bg:#f0f6ff;--card:#e5efff;--text:#172d51;--muted:#455d7e;
  --line:#adc5e8;--edge:#8dacd7;--accent:#ffcf42;--on-accent:#172943;
  --shadow:#c4d6ed;--header:#086ce7;--focus:#0960c7;
}
html[data-theme=dark] {
  color-scheme:dark;
  --bg:#0c1b30;--card:#142a46;--text:#edf6ff;--muted:#aec5e2;
  --line:#3b577b;--edge:#6382aa;--shadow:#050e1e;--focus:#ffcf42;
}
* {box-sizing:border-box}
[hidden] {display:none!important}
html {scroll-behavior:smooth;scroll-padding-top:108px}
body {margin:0;background:var(--bg);color:var(--text);font:15px/1.75 system-ui,-apple-system,"PingFang SC",sans-serif;overflow-wrap:anywhere}
a {color:inherit;text-decoration:none}
button,input,select,textarea {font:inherit}
button,a {touch-action:manipulation}
button {cursor:pointer}
:is(a,button,input,select,textarea,summary):focus-visible {outline:3px solid var(--focus);outline-offset:4px}
.wrap {width:calc(100% - 64px);max-width:1280px;margin:0 auto;padding:0}
.arcade-store header {background:var(--header);color:#fff;border-bottom:2px solid #3689ec;position:sticky;top:0;z-index:10}
.arcade-store nav {min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand {display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:20px;font-weight:750;letter-spacing:-.5px}
.brandmark {display:inline-grid;place-items:center;width:32px;height:32px;flex-shrink:0;background:var(--accent);color:var(--on-accent);font:900 21px/1 ui-monospace,monospace;box-shadow:3px 3px #17416c;border:2px solid #ffeb97}
.brand-name small {display:block;font-size:10px;font-weight:500;letter-spacing:1px;line-height:1.4;color:#e2edff}
.navlinks,.nav-actions {display:flex;align-items:center;gap:20px}
.navlinks {font-size:12px;gap:24px}
.navlinks a {padding:12px 0;white-space:nowrap}
.navlinks a:hover {text-decoration:underline;text-underline-offset:5px}
.nav-actions {gap:10px;font-size:12px}
.button {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;background:var(--accent);color:var(--on-accent);border:2px solid #283651;border-radius:0;font-weight:650;cursor:pointer;box-shadow:3px 3px var(--shadow);transition:transform .15s,box-shadow .15s}
.button.secondary {background:var(--card);color:var(--text);border-color:var(--edge)}
.button:hover {transform:translateY(-2px);box-shadow:3px 5px var(--shadow)}
.button:active {transform:translate(2px,2px);box-shadow:1px 1px var(--shadow)}
.button:disabled {opacity:.5;cursor:not-allowed;transform:none}
.nav-actions .button {min-height:36px;padding:7px 12px;box-shadow:2px 2px #17416c;font-size:12px}
#theme-toggle {min-width:36px;font-size:17px;padding:3px 8px}
#cart-count {font:700 12px ui-monospace,monospace}
.arcade-hero {position:relative;isolation:isolate;height:620px;margin:0 calc((min(1280px, 100vw - 64px) - 100vw)/2);overflow:hidden;background:#35aaff;padding:0}
.scene-image {position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:cover;object-position:center;image-rendering:pixelated;display:block}
.arcade-sign {position:absolute;top:18%;left:22%;width:56%;height:28%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:10px;color:#fff8da;text-shadow:3px 3px #4c231d}
.arcade-sign p {font:700 24px/1.3 ui-monospace,"PingFang SC",monospace;margin:0 0 12px}
.arcade-sign h1 {font-size:clamp(28px,3vw,43px);line-height:1.4;letter-spacing:0;margin:0;color:inherit}
.arcade-sign>span {font:600 12px/1.4 ui-monospace,monospace;letter-spacing:2px;margin-top:10px;color:#ffdf8f}
.arcade-action {position:absolute;top:65%;left:50%;transform:translateX(-50%)}
.catalog-browse {font-size:17px;min-width:184px;gap:30px;padding:11px 24px;border:3px solid #283651;box-shadow:4px 4px #21324a;white-space:nowrap}
.catalog-browse:hover {box-shadow:4px 6px #21324a}
.ribbon {display:flex;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
.ribbon b {font:700 12px ui-monospace,monospace;color:var(--text);margin-right:8px}
section {padding:48px 0;scroll-margin-top:100px}
#products {padding:30px 0 42px}
.sectionhead {display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}
.eyebrow {font:600 10px/1.5 ui-monospace,monospace;letter-spacing:2px;color:var(--muted)}
h1,h2,h3 {line-height:1.4;color:var(--text)}
h2 {font-size:26px;letter-spacing:-.5px;margin:8px 0 14px}
h3 {font-size:19px;margin:14px 0 8px}
p {margin:12px 0}
.sectionhead h2 {font-size:23px;margin:6px 0}
.sectionhead p,#count {font-size:12px;color:var(--muted);margin:4px 0 0}
.small {font-size:12px;color:var(--muted)}
.muted {color:var(--muted)}
.toolbar {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:22px}
#filters {display:flex;gap:10px;flex-wrap:wrap}
.toolbar button {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border:2px solid var(--edge);background:var(--card);color:var(--text);border-radius:0;box-shadow:2px 2px var(--shadow);font-size:12px}
.toolbar button[aria-pressed=true] {background:var(--accent);color:var(--on-accent);border-color:#c99627}
input,select,textarea {width:100%;min-width:0;min-height:44px;padding:11px 14px;color:var(--text);background:var(--card);border:1px solid var(--edge);border-radius:0;margin:6px 0 16px}
input::placeholder,textarea::placeholder {color:var(--muted);opacity:1}
.toolbar input {width:230px;margin:0 0 0 auto;font-size:13px}
.toolbar select {width:160px;margin:0;font-size:12px}
.grid-plans {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.plan-card {min-width:0;display:flex;flex-direction:column;padding:22px;background:var(--card);border:2px solid var(--edge);box-shadow:3px 3px var(--shadow);transition:transform .18s,box-shadow .18s}
.plan-card:hover {transform:translateY(-3px);box-shadow:4px 5px var(--shadow)}
.cover {display:flex;flex-direction:column;gap:12px}
.catalog-monogram {width:48px;height:48px;display:grid;place-items:center;font:700 19px/1 ui-monospace,monospace;border:2px solid var(--edge);background:var(--bg);color:var(--text);box-shadow:2px 2px var(--shadow)}
.catalog-category {font-size:10px;color:var(--muted)}
.plan-content {display:flex;flex-direction:column;flex:1;min-width:0}
.plan-content h3 {font-size:18px;margin:6px 0 10px;overflow-wrap:anywhere}
.plan-content p {font-size:12px;margin:4px 0;color:var(--muted)}
.plan-price {font-size:24px;font-weight:750;font-variant-numeric:tabular-nums;letter-spacing:-.5px;color:var(--text);margin:18px 0}
.plan-actions {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:auto}
.plan-actions .button {min-height:36px;padding:7px 6px;font-size:12px;box-shadow:2px 2px var(--shadow)}
.plan-actions [data-cart] {background:var(--bg);color:var(--text);border-color:var(--edge)}
.plan-actions [data-buy] {grid-column:1/-1}
.empty-search {grid-column:1/-1;padding:48px 20px;text-align:center;border:2px dashed var(--edge);color:var(--muted)}
.guide,.terms-box,.contact {padding:30px;border:2px solid var(--edge);box-shadow:4px 4px var(--shadow);background:var(--card)}
.guide {display:grid;grid-template-columns:1fr 1fr;gap:48px}
.guide h2 {font-size:27px}
.guide p {max-width:32em}
.guide .button {width:100%}
.field {display:block;font-size:13px;font-weight:600;margin-bottom:6px}
.result {min-height:24px;font-size:13px;white-space:pre-line;color:var(--text)}
.steps {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.step {border-top:3px solid var(--edge);padding:20px 0 0}
.number {font:700 12px ui-monospace,monospace;color:var(--muted)}
.step h3 {font-size:18px}
.step p,.terms-box p,.faq p {font-size:13px;color:var(--muted)}
.terms-box strong {color:var(--text)}
.faq {max-width:900px}
details {padding:18px 0;border-bottom:1px solid var(--line)}
summary {cursor:pointer;font-weight:650}
.contact {display:flex;align-items:center;justify-content:space-between;gap:24px}
.contact h2 {margin-top:0}
.contact p {color:var(--muted);font-size:14px}
footer {border-top:1px solid var(--line);padding:32px 0;font-size:12px;color:var(--muted)}
.foot {display:flex;justify-content:space-between;gap:30px}
.notice {max-width:690px}
.status {font-size:11px}
.status:before {content:'■';color:#278249;margin-right:8px}
dialog {width:min(580px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;background:var(--bg);color:var(--text);border:3px solid var(--edge);border-radius:0;padding:26px;box-shadow:6px 6px #16294455}
dialog::backdrop {background:#061c3fb3}
.dialog-head {display:flex;justify-content:space-between;align-items:center;gap:16px}
.dialog-head h2 {font-size:23px;margin:0 0 12px}
.close-modal {min-width:36px;min-height:36px;flex-shrink:0;padding:3px 10px;color:var(--text);background:var(--card);border:2px solid var(--edge);border-radius:0;font-size:21px;align-self:flex-start}
.cart-row {display:flex;justify-content:space-between;align-items:center;padding:16px 0;border-bottom:1px solid var(--line);gap:12px;font-size:14px}
.cart-row>div:last-child {display:flex;gap:6px;flex-shrink:0}
.cart-row button {min-width:32px;min-height:34px;padding:3px 7px;border:1px solid var(--edge);background:var(--card);color:var(--text);border-radius:0}
.cart-total {font-size:20px;font-weight:650;margin:20px 0}
.cart-message {height:155px;resize:vertical;font-size:12px;line-height:1.8}
.modal-actions {display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.pay-tabs {display:flex;gap:10px;margin:20px 0}
.pay-tabs button {flex:1}
.pay-tabs button[aria-pressed=true] {background:var(--accent);border-color:#c99627;color:var(--on-accent)}
.pay-image {display:block;width:290px;max-width:100%;height:auto;margin:20px auto}
.pay-note {border:1px solid var(--edge);padding:14px;font-size:13px;color:var(--muted);background:var(--card)}
#store-announcement {margin-top:18px;white-space:pre-wrap}
#store-announcement:empty {display:none}
.pay-confirm {display:flex;gap:10px;align-items:start;margin:18px 0;font-size:13px}
.pay-confirm input {width:18px;min-height:18px;height:18px;margin:4px 0;flex-shrink:0;accent-color:#0960c7}
.pay-summary {white-space:pre-line;font-size:13px;color:var(--muted)}
.risk-note {border:1px solid #c08756;background:#fff0d5;color:#683c19;padding:14px;font-size:13px}
.toast {position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);background:var(--accent);color:var(--on-accent);padding:12px 22px;border:2px solid #283651;box-shadow:4px 4px #172943;z-index:100;font-size:13px;text-align:center}
.sr-only {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Customer order and payment pages share the arcade palette. */
.arcade-utility {background:var(--bg);color:var(--text)}
.arcade-utility header {background:var(--header);color:#fff;padding:22px max(24px,calc((100% - 1160px)/2));align-items:center;flex-wrap:wrap;border-bottom:2px solid #3689ec}
.arcade-utility header h1 {color:#fff;font-size:23px}
.arcade-utility header a {color:#fff;font-size:13px}
.arcade-utility main {max-width:1200px;padding:28px}
.utility-brand {display:flex;gap:12px;align-items:center;font-size:13px;font-weight:600;margin:0 0 24px}
.arcade-utility .panel {padding:26px;border:2px solid var(--edge);border-radius:0;background:var(--card);box-shadow:4px 4px var(--shadow)}
.arcade-utility .narrow {max-width:540px;margin:30px auto}
.arcade-utility section {scroll-margin-top:20px}
.arcade-utility button {background:var(--accent);color:var(--on-accent);border:2px solid #283651;border-radius:0;min-height:44px;padding:9px 15px;box-shadow:3px 3px var(--shadow)}
.arcade-utility .code {background:var(--bg);border:1px solid var(--edge);border-radius:0}
.arcade-utility #total {font-size:20px;font-weight:700}
.arcade-utility #status {font-weight:650}
.arcade-utility #order,.arcade-utility #payment-loading {max-width:800px;margin:0 auto 24px}
.arcade-utility #usdt-panel {border:1px solid var(--edge);padding:18px;margin-bottom:18px;background:var(--bg)}
.arcade-utility #usdt-panel button {margin:4px 6px 10px 0}
.arcade-utility #usdt-panel a {display:inline-block}
.arcade-utility #result {white-space:pre-line}
@media(max-width:1100px) {
  .grid-plans {grid-template-columns:repeat(3,minmax(0,1fr))}
  .navlinks {gap:14px}.brand {font-size:18px}.nav-contact {display:none}
  .toolbar input {margin-left:0;flex:1;min-width:180px}
}
@media(max-width:767px) {
  html {scroll-padding-top:136px}
  .wrap {width:calc(100% - 36px)}
  .arcade-store nav {min-height:100px;flex-wrap:wrap;gap:12px;padding:14px 0 12px}
  .brand {font-size:17px}.brandmark {width:28px;height:28px;font-size:18px}
  .brand-name small {font-size:9px}
  .nav-actions {margin-left:auto;gap:8px}
  .nav-actions .button {font-size:11px;padding:6px 8px;min-height:34px}
  .navlinks {width:100%;justify-content:space-between;order:3;font-size:11px;gap:8px}
  .navlinks a {padding:2px 0}
  .arcade-hero {height:370px;margin-left:-18px;margin-right:-18px}
  .arcade-sign {left:9%;width:82%;top:26%;height:28%;padding:8px}
  .arcade-sign p {font-size:19px;margin-bottom:10px}
  .arcade-sign h1 {font-size:26px}
  .arcade-sign>span {font-size:10px;letter-spacing:1px;margin-top:8px}
  .arcade-action {top:66%}
  .catalog-browse {min-width:156px;font-size:15px;padding:9px 18px}
  .ribbon {font-size:10px;gap:8px;padding:14px 0;flex-wrap:wrap}
  .ribbon b {font-size:10px;margin-right:4px}
  .ribbon span {white-space:nowrap}
  .sectionhead {align-items:start;flex-direction:column;gap:6px;margin-bottom:18px}
  .sectionhead h2 {font-size:22px}.sectionhead .catalog-note {font-size:10px}
  #products {padding-top:24px}.toolbar {gap:12px;margin-bottom:18px}
  #filters {width:100%;gap:8px}.toolbar button {flex:1;padding:8px 12px;min-height:40px;font-size:11px}
  .toolbar input {width:100%;flex:1;min-width:0;font-size:12px}.toolbar select {width:140px;font-size:11px}
  .grid-plans {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .plan-card {padding:14px 12px}.catalog-monogram {width:40px;height:40px;font-size:17px}
  .plan-content h3 {font-size:15px;margin-top:8px}.plan-content p {font-size:11px}
  .plan-price {font-size:22px;margin:16px 0}
  .plan-actions {gap:8px}.plan-actions .button {padding:8px 2px;font-size:11px;min-height:44px}
  .catalog-category {font-size:9px}.cover {gap:10px}
  section {padding:32px 0}.guide {grid-template-columns:1fr;gap:24px}
  .guide,.terms-box,.contact {padding:22px}.guide h2 {font-size:24px}
  .steps {grid-template-columns:1fr;gap:20px}
  h2 {font-size:24px}.contact,.foot {flex-direction:column;align-items:start}
  .foot {gap:16px}.contact {gap:16px}footer {padding:26px 0}
  dialog {padding:20px}.dialog-head h2 {font-size:20px}
  .cart-row {font-size:12px;align-items:start;flex-direction:column;gap:8px}
  .arcade-utility header {padding:18px}.arcade-utility header h1 {font-size:20px}
  .arcade-utility main {padding:20px 18px}.arcade-utility .panel {padding:20px}
}
@media(max-width:359px) {
  .grid-plans {grid-template-columns:1fr}.arcade-sign h1 {font-size:23px}
  .nav-actions {gap:6px}.brand {font-size:15px}.brandmark {width:24px;height:24px}
  .toolbar select {width:126px}
}
@media(prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto}*,*::before,*::after {transition:none!important}
}
