:root {
    color-scheme: dark;
    --ground: #10131a;
    --surface: #191e28;
    --line: #2d3543;
    --text: #f6f7ed;
    --quiet: #b9c1ce;
    --gold: #d8f259;
    --ink: #1b240d;
    --display: "Avenir Next", "PingFang TC", "Hiragino Sans", "Noto Sans", sans-serif;
    --sans: "Avenir Next", "PingFang TC", "Hiragino Kaku Gothic ProN", "Noto Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--text); font: 15px/1.65 var(--sans); overflow-wrap: anywhere; }
a { color: var(--gold); text-underline-offset: .27em; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(100% - 64px, 1240px); margin-inline: auto; }
.site-head, .site-foot { border-block-end: 1px solid var(--line); }
.site-foot { border-block-start: 1px solid var(--line); border-block-end: 0; margin-top: 72px; color: var(--quiet); }
.bar, .actions, nav, .tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.bar { justify-content: space-between; min-height: 70px; padding: 12px 0; }
.site-head a, nav a, .listing-card { text-decoration: none; }
.site-head nav a, .site-head nav .link { color: var(--quiet); }
.site-head nav [aria-current], .site-head nav a:hover, .site-head nav .link:hover { color: var(--gold); }
.brand { white-space: nowrap; letter-spacing: .14em; color: var(--text); }
.brand strong { margin-left: .25em; color: var(--gold); font: 700 1.6rem/1 var(--display); letter-spacing: -.08em; }
.languages { position: relative; }
summary { cursor: pointer; }
.languages summary { padding: 8px 13px; border: 1px solid var(--line); border-radius: 4px; }
.languages ul { position: absolute; z-index: 4; top: 100%; right: 0; width: max-content; padding: 8px; background: var(--surface); box-shadow: 0 8px 35px #0007; border: 1px solid var(--line); list-style: none; }
.languages a { display: block; padding: 8px 14px; }
.languages [aria-current] { background: var(--line); }
.skip { position: absolute; left: 1rem; top: -5rem; background: var(--surface); padding: 10px; z-index: 10; }
.skip:focus { top: 1rem; }
main { min-height: 63vh; }
h1, h2, h3, p, dl { margin: 0 0 14px; }
h1, h2 { font-family: var(--display); line-height: 1.11; }
h1 { font-size: clamp(2.45rem, 6vw, 5rem); font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(1.45rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.1rem; }
.page-head { padding: 54px 0 29px; }
.page-head p { max-width: 63ch; color: var(--quiet); }
.page-head a { display: inline-block; margin-bottom: 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.listing-card, .surface { padding: clamp(17px,3.2vw,34px); border: 1px solid var(--line); background: var(--surface); border-radius: 6px; }
.listing-card { color: inherit; display: flex; flex-direction: column; min-height: 170px; }
.listing-card:hover { border-color: var(--gold); }
.card-top, .card-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 15px; color: var(--quiet); font-size: .88rem; }
.card-top { margin-bottom: 19px; }
.card-bottom { margin-top: auto; }
.card-bottom strong, .price { color: var(--gold); font-variant-numeric: tabular-nums; }
.price { font-family: var(--display); font-weight: 700; font-size: 1.9rem; }
.muted, .empty { color: var(--quiet); }
.empty { min-height: 120px; grid-column: 1/-1; border: 1px dashed var(--line); padding: 25px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 18px; align-items: start; }
.discussion { margin-top: 24px; }
dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 5px 20px; margin-top: 12px; }
dt { color: var(--quiet); }
dd { margin: 0; }
.preserve { white-space: pre-wrap; }
.message, .rows > * { margin-block: 12px 0; padding-block: 12px; border-block-start: 1px solid var(--line); }
.message time { color: var(--quiet); font-size: .84em; margin-left: .6em; }
.notice { margin: 18px 0; padding: 14px 18px; border: 1px solid #856f43; background: #2a261d; border-radius: 4px; }
.notice.error { border-color: #c88371; background: #331f1b; }
.nav, .pager { justify-content: center; padding: 14px 0 0; }
.auth { width: min(100%,550px); margin-block: 40px; }
.auth .actions { margin-top: 17px; }
.tabs { margin-bottom: 20px; }
.tabs [aria-current] { border-color: var(--gold); color: var(--gold); }
form { display: grid; gap: 13px; }
form.actions { display: flex; }
.form-grid, .filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; align-items: end; }
.filters { grid-template-columns: repeat(4,minmax(0,1fr)) auto; margin-bottom: 20px; }
.form-grid .wide { grid-column: 1/-1; }
label { display: grid; gap: .4rem; color: var(--quiet); font-weight: 600; min-width: 0; }
label.checkbox { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; }
input, textarea, select { font: inherit; color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 9px 10px; width: 100%; background: #111620; min-height: 44px; }
input[type=checkbox] { width: 20px; min-height: 20px; accent-color: var(--gold); flex-shrink: 0; }
textarea { resize: vertical; min-height: 95px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; justify-self: start; font: 700 .94em/1.35 var(--sans); min-height: 44px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); background: transparent; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { border-color: var(--gold); }
.primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.primary:hover { background: #e5ff77; }
.link { border: 0; padding: 0; font: inherit; min-height: auto; }
details + details { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
details > form { margin-top: 9px; }
pre { white-space: pre-wrap; }
@media (max-width: 820px) {
    .wrap { width: calc(100% - 38px); }
    .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .site-head nav { order: 3; width: 100%; gap: 8px 19px; }
    .card-grid { grid-template-columns: 1fr; }
    .page-head { padding-top: 37px; }
}

/* Storefront */
.site-head { background: #131720; }
.site-head .brand { font-size: .91rem; font-weight: 800; }
.brand strong { display: inline-block; padding: .18em .35em; border-radius: 4px; color: var(--ink); background: var(--gold); font-size: 1rem; line-height: 1.14; letter-spacing: -.04em; }
.site-foot a { text-decoration: none; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 28px; padding: 32px 0; }
.footer-content p { margin: 11px 0 0; font-size: .86rem; }
.footer-content nav { gap: 12px 22px; }

.storefront { padding-top: 22px; }
.store-hero { isolation: isolate; position: relative; display: flex; align-items: center; min-height: 460px; overflow: hidden; border: 1px solid #3b4450; border-radius: 14px; background: #141b27; }
.store-hero-image, .store-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.store-hero-image { z-index: -2; object-fit: cover; object-position: 63% 49%; }
.store-hero::after { content: ""; z-index: -1; background: linear-gradient(90deg,#101520 1%,#101520eb 22%,#10152089 51%,#10152011 80%); }
.store-hero-content { width: min(100%,675px); padding: 52px clamp(22px,5vw,72px); }
.store-hero h1 { margin: 0; font-size: clamp(2.65rem,5.2vw,4.6rem); font-weight: 800; line-height: 1.13; }
.store-hero p { max-width: 38ch; margin: 21px 0 26px; color: #d3d9e3; font-size: 1.06rem; }
.store-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; max-width: 440px; padding: 5px; border: 1px solid #566176; border-radius: 8px; background: #10151e; }
.store-search input { padding-inline: 12px; border: 0; background: transparent; }
.store-search input::placeholder { color: #b9c1ce; opacity: 1; }
.store-search button { justify-self: stretch; padding-inline: 16px; }

.store-section { margin-top: 42px; scroll-margin-top: 20px; }
.store-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 9px 18px; margin-bottom: 13px; }
.store-heading h2 { margin: 0; font-weight: 750; font-size: clamp(1.45rem,2.6vw,2.13rem); letter-spacing: -.025em; }
.store-heading p { margin: 6px 0 0; color: var(--quiet); }
.store-heading a { white-space: nowrap; text-decoration: none; }
.store-categories, .store-examples { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.store-tone-items { --tone: #9fe1fd; --x: 0%; --y: 0%; }
.store-tone-currency { --tone: #ffc38c; --x: 100%; --y: 0%; }
.store-tone-accounts { --tone: #dfbaed; --x: 0%; --y: 100%; }
.store-tone-services { --tone: #d8f259; --x: 100%; --y: 100%; }
.store-category, .store-example, .store-guide article { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.store-category { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 6px; align-content: start; min-height: 85px; padding: 13px 15px; text-decoration: none; color: var(--text); }
.store-category:hover { border-color: var(--tone); }
.store-category strong { font-size: 1rem; font-weight: 800; }
.store-category span { color: var(--tone); }
.store-category small { grid-column: 1/-1; font-size: .81rem; color: var(--quiet); }
.store-example { min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.store-art { overflow: hidden; position: relative; height: clamp(105px,12vw,165px); background: #242a35; }
.store-art::before { content: ""; position: absolute; top: 50%; transform: translateY(-50%); width: 100%; aspect-ratio: 1; background: url('/media/gg-inventory.webp') var(--x) var(--y)/200% 200% no-repeat; }
.store-example-content { flex: 1; display: grid; grid-template-rows: auto 1fr auto; gap: 9px; padding: 13px 15px; }
.store-example h3 { margin: 0; font-weight: 750; font-size: 1.02rem; }
.store-example-meta, .store-example-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; font-size: .81rem; color: var(--quiet); }
.store-example-meta span:last-child { border: 1px solid #4c576a; border-radius: 4px; padding: 0 5px; }
.store-example-foot { padding-top: 9px; border-top: 1px solid var(--line); }
.store-example-foot strong { color: var(--text); font-variant-numeric: tabular-nums; }
.store-guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.store-guide article { display: flex; flex-direction: column; padding: 21px; }
.store-guide h3 { margin: 0 0 7px; font-weight: 750; }
.store-guide p { color: var(--quiet); }
.store-guide a { margin-top: auto; text-decoration: none; justify-self: start; }
.store-market-empty h2 { font-size: 1.3rem; }

@media (max-width: 850px) {
    .store-hero { min-height: 365px; }
    .store-categories, .store-examples { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .store-art { height: clamp(118px,20vw,180px); }
}
@media (max-width: 560px) {
    .storefront { padding-top: 14px; }
    .store-hero { align-items: end; min-height: 450px; }
    .store-hero-image { object-position: 70% 36%; }
    .store-hero::after { background: linear-gradient(0deg,#101520 9%,#101520e8 33%,#10152045 66%,#10152008 92%); }
    .store-hero-content { padding: 27px 17px 22px; }
    .store-hero h1 { font-size: clamp(2.2rem,9vw,2.8rem); }
    .store-hero p { margin-block: 13px 17px; font-size: .92rem; }
    .store-search button { padding-inline: 9px; }
    .store-search input { padding-inline: 5px; }
    .store-section { margin-top: 31px; }
    .store-guide-grid { grid-template-columns: 1fr; }
    .store-category, .store-example-content { padding-inline: 10px; }
    .store-art { height: 105px; }
}

.store-hero-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 15px; }
.store-hero-links a { padding: 5px 0; color: #e1e8f0; text-decoration: none; }
.store-hero-links a:hover, .store-hero-links a:focus-visible { color: var(--gold); }

.market-page { padding-top: 24px; }
.market-banner {
    padding: clamp(21px,4vw,48px);
    border: 1px solid #343f4e;
    border-radius: 13px;
    background: radial-gradient(ellipse at 90% 0%,#273952 0%,transparent 60%), #181e29;
}
.market-back { display: inline-block; margin-bottom: 16px; text-decoration: none; font: 750 .78rem/1.4 var(--sans); letter-spacing: .11em; }
.market-banner h1 { margin: 0 0 8px; font-weight: 800; font-size: clamp(2.1rem,4.8vw,3.5rem); }
.market-banner p { margin: 0; color: #d3dbe6; }
.market-tabs { gap: 8px; margin: 18px 0 12px; }
.market-tabs a { display: inline-flex; min-height: 42px; align-items: center; padding-inline: 13px; color: var(--text); border: 1px solid var(--line); border-radius: 6px; }
.market-tabs a[aria-current], .market-tabs a:hover { background: #242e24; color: var(--gold); border-color: #526037; }
.market-filters { display: grid; grid-template-columns: minmax(0,1.35fr) repeat(3,minmax(0,1fr)) auto; align-items: end; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.market-filters input::placeholder { color: #a6b0c0; opacity: 1; }
.market-filters button { justify-self: stretch; }
.market-results { margin-top: 28px; }
.store-market-empty { padding: clamp(22px,4vw,39px); border-style: dashed; }
.store-market-empty h3 { margin-bottom: 16px; color: #e1e8f0; }
.listing-card { padding: 18px; border-block-start-color: var(--tone,var(--line)); transition: background-color 150ms, border-color 150ms; }
.listing-card:hover { background: #1e2634; border-color: var(--tone,var(--gold)); }
.listing-card .card-top { align-items: flex-start; margin-bottom: 13px; }
.listing-category { color: var(--tone,var(--quiet)); }
.listing-card .card-bottom { padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 850px) {
    .market-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .market-filters button { grid-column: 1/-1; }
}
@media (max-width: 560px) {
    .store-hero { min-height: 400px; }
    .store-hero-image { object-position: 77% 42%; }
    .store-hero-links { gap: 3px 15px; margin-top: 8px; font-size: .88rem; }
    .market-page { padding-top: 15px; }
    .market-filters { gap: 8px 9px; padding: 10px; }
    .market-tabs a { padding-inline: 9px; min-height: 38px; }
}
