:root {
  color-scheme: light;
  --navy: #132b32;
  --navy-soft: #20444b;
  --ink: #20343b;
  --muted: #586c74;
  --line: #d9e3e5;
  --paper: #fff;
  --canvas: #f1f5f5;
  --gold: #ffd083;
  --green: #087b68;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; line-height: 1.5; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.page-width { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: relative; z-index: 2; color: #fff; background: var(--navy); border-top: 3px solid #21b59a; box-shadow: 0 2px 8px #132b3212; }
.header-inner { width: min(1360px, calc(100% - 48px)); min-height: 70px; margin: auto; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 17px; letter-spacing: -.35px; white-space: nowrap; }
.brand strong { color: var(--gold); font-weight: 650; }
.brand-mark { display: block; flex-shrink: 0; width: 46px; height: 50px; object-fit: contain; }
.main-nav { display: flex; align-self: stretch; gap: 28px; }
.main-nav a { display: grid; align-items: center; color: #c1cad6; font-size: 14px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: white; border-bottom-color: var(--gold); }
.notification-menu { position: relative; display: flex; align-items: center; }
.notification-bell { position: relative; display: grid; width: 38px; height: 38px; place-items: center; padding: 7px; border: 1px solid #6d9299; border-radius: 5px; color: white; background: transparent; cursor: pointer; }
.notification-bell:hover, .notification-bell[aria-expanded="true"] { background: #ffffff18; }
.notification-bell svg { width: 21px; height: 21px; }
.notification-count { position: absolute; top: -6px; right: -7px; min-width: 18px; padding: 1px 5px; border: 2px solid var(--navy); border-radius: 12px; color: white; background: #c63845; font-size: 10px; font-weight: 750; line-height: 14px; text-align: center; }
.marketplace-notification-count { display: inline-block; min-width: 20px; margin-left: 6px; padding: 2px 6px; border-radius: 12px; color: white; background: #c63845; font-size: 11px; font-weight: 750; line-height: 16px; text-align: center; }
.marketplace-alerts { margin-bottom: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; }
.marketplace-alerts > div:last-child { max-height: 240px; overflow-y: auto; }
.marketplace-alerts h3 { margin: 0; }
.auction-card:focus, .wishlist-entry:focus { outline: 3px solid var(--green); outline-offset: 3px; }
.notification-panel { position: absolute; top: calc(100% + 5px); right: 0; z-index: 5; width: min(360px, calc(100vw - 24px)); overflow: hidden; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: white; box-shadow: 0 12px 32px #132b3233; }
.notification-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.notification-panel-heading h2 { margin: 0; font-size: 16px; }
.notification-mark-all { padding: 4px 0; border: 0; color: var(--green); background: none; cursor: pointer; font-size: 11px; font-weight: 650; }
.notification-list { max-height: min(430px, 70vh); overflow-y: auto; }
.notification-item { display: grid; gap: 4px; padding: 12px 15px; border-bottom: 1px solid #e8eeee; color: var(--ink); font-size: 12px; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: #f4f8f7; }
.notification-item.unread { background: #e2f2ed; box-shadow: inset 3px 0 #087b68; }
.notification-item strong { font-size: 13px; }
.notification-item time { color: var(--muted); font-size: 10px; }
.notification-empty { margin: 0; padding: 24px 15px; color: var(--muted); text-align: center; }
.header-actions { display: flex; align-items: center; gap: 13px; margin-left: auto; }
.language-switch { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid #6d9299; border-radius: 6px; }
.language-button { display: grid; width: 30px; height: 27px; place-items: center; padding: 0; border: 0; border-radius: 3px; color: white; background: transparent; cursor: pointer; font-size: 18px; line-height: 1; }
.language-button:hover, .language-button[aria-pressed="true"] { background: #ffffff24; }
.language-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.session-status { color: #c1cad6; font-size: 12px; }
.cart-count { display: inline-block; margin-left: 4px; padding: 2px 6px; background: #f44336; color: white; border-radius: 12px; font-size: 11px; font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 7px 16px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 650; transition: background .15s ease, border-color .15s ease; text-align: center; }
.button:hover { filter: brightness(.96); }
.button:disabled, button:disabled { cursor: not-allowed; opacity: .55; }
.button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, .icon-button:focus-visible { outline: 3px solid #78aee3; outline-offset: 2px; }
.button-light, .button-secondary { color: var(--navy); background: #fff; border-color: var(--line); }
.button-outline { color: var(--ink); background: white; border: 1px solid #b9cbcf; }
.site-header .button-outline { color: #fff; border-color: #6d9299; background: transparent; }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: #066353; }
.button-gold { color: #332913; background: var(--gold); }
.button-wide { width: 100%; margin-top: 4px; }

.hero { min-height: 340px; padding: 42px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 78% 20%, #316f66, transparent 55%), linear-gradient(120deg, #132b32, #173d40); }
.hero-copy { position: relative; z-index: 1; max-width: 570px; }
.eyebrow { margin: 0 0 12px; color: #a77a29; font-size: 10px; font-weight: 800; letter-spacing: 1.75px; }
.hero .eyebrow { color: #e9c87f; }
.hero h1 { margin: 0; font-size: clamp(38px, 5vw, 64px); font-weight: 800; letter-spacing: -2.2px; line-height: 1.02; }
.hero-description { margin: 17px 0 24px; color: #d2d9e2; font-size: 15px; line-height: 1.65; }
.hero-shipping-note { display: inline-flex; margin: 0 0 22px; padding: 8px 13px; border: 1px solid #f3d596; border-radius: 999px; background: #f3d59622; color: #f7ddac; font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.hero-art { position: relative; flex-shrink: 0; width: 300px; height: 320px; margin-right: 5%; }
.hero-genie { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 22px #080f1c44); }
.home-hero { min-height: 350px; }
.hero-actions { display: flex; align-items: center; gap: 22px; }
.hero-secondary-link { color: #e0e5eb; font-size: 13px; font-weight: 600; }
.hero-secondary-link:hover { color: var(--gold); }
.home-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.home-point { padding-right: 20px; }
.home-point-icon { display: block; width: 80px; height: 92px; margin-bottom: 12px; object-fit: contain; }
.home-point h2 { margin: 6px 0; font-size: 18px; font-weight: 700; }
.home-point p { max-width: 290px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.home-shop-cta { padding: 28px 0; background: #e3eeeb; border-top: 1px solid #cfdfdb; }
.home-shop-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.home-shop-inner .eyebrow { margin-bottom: 8px; }
.home-shop-inner h2 { margin: 0; font-size: 24px; font-weight: 750; }

.buy-hero { padding: 24px 0; color: #fff; background: linear-gradient(105deg, #193c43, #132b32 75%); }
.buy-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.buy-hero .eyebrow, .sell-page-hero .eyebrow { color: #e9c87f; }
.buy-hero h1, .sell-page-hero h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 750; letter-spacing: -.9px; }
.buy-hero p:not(.eyebrow), .sell-page-hero p:not(.eyebrow) { max-width: 570px; margin: 10px 0 0; color: #d2d9e2; font-size: 14px; line-height: 1.65; }
.sell-page-hero { padding: 24px 0; color: white; background: linear-gradient(105deg, #193c43, #132b32 75%); }

.market-section { padding-top: 24px; padding-bottom: 40px; }
.section-heading, .results-heading, .card-heading, .account-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.section-heading h2, .sell-intro h2, .account-heading h2 { margin: 0; font-size: 25px; font-weight: 750; letter-spacing: -.6px; }
.market-note { padding-bottom: 5px; color: var(--muted); font-size: 13px; }
.inventory-note { margin: 18px 0 -6px; padding: 10px 13px; border-left: 3px solid #d5ae5e; color: #665533; background: #fff9eb; font-size: 12px; line-height: 1.5; }
.search-panel { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(260px, 1.4fr) auto; align-items: end; gap: 14px; margin-top: 25px; padding: 19px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.field { display: grid; min-width: 0; gap: 7px; color: #344153; font-size: 12px; font-weight: 700; }
.field input, .field select { width: 100%; min-height: 38px; padding: 6px 10px; border: 1px solid #bccdd1; border-radius: 4px; color: var(--ink); background: #fff; font-size: 13px; font-weight: 400; }
.field input[type="checkbox"] { width: 16px; min-height: 16px; height: 16px; padding: 0; vertical-align: middle; accent-color: var(--green); }
.field input::placeholder { color: #9ba5b1; }
.field small { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
#sell-take-home { display: block; margin-top: 6px; padding: 8px 10px; border-left: 3px solid var(--green); border-radius: 4px; color: var(--green); background: #e6f4f1; font-size: 14px; font-weight: 750; }
.field small.password-match { color: #a53d3d; }
.field small.password-match.is-match { color: #27664f; }
.search-button { min-width: 138px; }
.results-heading { margin: 31px 0 15px; align-items: center; }
.results-heading h3 { margin: 0; font-size: 17px; font-weight: 700; }
.text-button { padding: 6px 0; border: 0; color: #27664f; background: transparent; cursor: pointer; font-size: 13px; font-weight: 650; }
.text-button:hover { text-decoration: underline; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.availability-filter { display: flex; align-items: center; gap: 8px; color: #344153; font-size: 13px; font-weight: 650; }
.listing-pagination { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding-top: 24px; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 5; box-shadow: 0 4px 14px #132b3240; }
.auction-policy-warning { margin: 18px 0; padding: 14px 16px; border: 1px solid #e8c478; border-left: 4px solid #c58b22; border-radius: 6px; color: #594518; background: #fff8e8; line-height: 1.6; }
.auction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.auction-card { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.auction-card-image { width: 90px; height: 126px; object-fit: contain; border-radius: 5px; background: #eef1f4; }
.auction-card h3 { margin: 0 0 4px; font-size: 16px; overflow-wrap: anywhere; }
.auction-card p { margin: 4px 0; color: var(--muted); font-size: 12px; }
.auction-price { color: #1c634b !important; font-size: 17px !important; font-weight: 750; }
.auction-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 12px; }
.auction-actions input { width: 130px; min-height: 38px; padding: 6px 10px; border: 1px solid #bccdd1; border-radius: 4px; }
.auction-status { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 20px; color: #315b4b; background: #e7f2ec; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.auction-create-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.auction-create-form > .card-preview { grid-column: 1 / -1; }
.auction-create-form > .legal-acceptance, .auction-create-form > .notice, .auction-create-form > button { grid-column: 1 / -1; }
.auction-create-form > .field input[type="checkbox"] { width: 16px; min-height: 16px; }
.auction-checkout-form { display: grid; gap: 8px; margin-top: 12px; }
.action-message { margin: 8px 0; overflow-wrap: anywhere; }
.contact-verification-form { display: grid; gap: 12px; max-width: 560px; margin: 20px 0; }
.sort-field { display: flex; align-items: center; gap: 8px; }
.sort-field select { width: auto; }
.sales-filters { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.sales-filters .field { flex: 1 1 200px; }
.sales-colors { flex: 1 1 100%; min-width: 0; margin: 0; border: 1px solid #bccdd1; border-radius: 4px; }
.sales-colors .color-filter { flex-wrap: wrap; }
.sales-colors p { margin: 8px 0 0; font-size: 12px; }

@media (max-width: 650px) {
  .auction-grid, .auction-create-form { grid-template-columns: 1fr; }
  .auction-create-form > .field, .auction-create-form > .legal-acceptance,
  .auction-create-form > .notice, .auction-create-form > button { grid-column: 1; }
  .auction-card { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .auction-card-image { width: 68px; height: 100px; }
}
.listing-card { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; min-height: 190px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 3px 12px #15223808; }
.listing-card:hover { border-color: #bac6d2; box-shadow: 0 8px 24px #15223810; }
.listing-image-wrap { display: grid; width: 100px; min-height: 140px; place-items: center; overflow: hidden; border-radius: 5px; background: #eef1f4; }
.listing-image { display: block; width: 100%; height: 100%; max-height: 158px; object-fit: contain; }
.listing-image-fallback { color: #8592a0; font-size: 11px; text-align: center; }
.card-image-container { position: relative; }
.card-flip-button { position: absolute; right: 4px; bottom: 4px; z-index: 1; padding: 5px 7px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font-size: 11px; cursor: pointer; box-shadow: 0 2px 6px #15223830; }
.card-flip-button:focus-visible { outline: 2px solid #27664f; outline-offset: 2px; }
.feedback-entry { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.feedback-content { white-space: pre-wrap; overflow-wrap: anywhere; }
.listing-info { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.listings-loading { display: flex; min-height: 150px; grid-column: 1 / -1; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 14px; }
.loading-spinner { width: 34px; height: 34px; border: 4px solid #dce3e9; border-top-color: #27664f; border-radius: 50%; animation: listings-spin .8s linear infinite; }
@keyframes listings-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading-spinner { animation-duration: 2s; } }
.game-label { margin: 1px 0 6px; color: #748091; font-size: 10px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.listing-info h4 { overflow-wrap: anywhere; margin: 0; font-size: 15px; }
.listing-finish { margin-top: 6px; padding: 3px 8px; border: 1px solid #c9c4e5; border-radius: 4px; background: #f0edfa; color: #514178; font-size: 11px; font-weight: 750; }
.yugioh-artworks { display: flex; flex-wrap: wrap; gap: 12px; }
.yugioh-artwork-choice { display: grid; width: 120px; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.yugioh-artwork-choice:has(input:checked) { border-color: var(--green); outline: 2px solid var(--green); }
.yugioh-artwork-choice img { width: 100%; height: auto; }
.card-image-note { display: block; grid-column: 1 / -1; padding: 5px; color: var(--muted); font-size: 11px; text-align: center; }
.condition { margin: 5px 0 11px; color: var(--muted); font-size: 12px; }
.listing-stock { display: flex; flex-direction: column; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.listing-stock p { margin: 0; }
.listing-price { margin: auto 0 2px; color: #1c634b; font-size: 20px; font-weight: 750; }
.seller-line { margin: 0 0 11px; color: var(--muted); font-size: 11px; }
.buy-row { display: flex; width: 100%; gap: 7px; }
.buy-quantity { width: 57px; min-width: 0; padding: 0 7px; border: 1px solid #cfd6de; border-radius: 5px; }
.buy-button { min-height: 35px; flex: 1; padding-inline: 9px; font-size: 12px; }
.notice { margin: 13px 0; padding: 10px 12px; border: 1px solid #a9c8e8; border-left: 4px solid #245f9e; border-radius: 5px; color: #173c63; background: #eaf3fc; font-size: 13px; line-height: 1.5; }
.notice.error { border-color: #e0a6a6; border-left-color: #a52834; color: #681923; background: #fdebed; }
.notice.success { border-color: #8bc7ad; border-left-color: #087b52; color: #124a35; background: #e4f5ec; }
.empty-state { grid-column: 1 / -1; padding: 32px 20px; border: 1px dashed #cbd3dc; border-radius: 8px; color: var(--muted); background: #fafbfc; text-align: center; }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 15px; }

.sell-section { padding: 28px 0; background: var(--canvas); }
.sell-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(340px, 1.2fr); gap: 32px; align-items: start; }
.sell-intro h2 { font-size: 28px; line-height: 1.18; }
.sell-intro > p:not(.eyebrow) { max-width: 470px; margin: 18px 0; color: #566273; font-size: 14px; line-height: 1.7; }
.seller-callout { display: flex; gap: 11px; max-width: 500px; margin-top: 22px; padding: 13px; border: 1px solid #e7d8b6; border-radius: 6px; background: #fffaf0; }
.callout-icon { display: grid; width: 21px; height: 21px; flex: 0 0 21px; place-items: center; border: 1px solid #a77a29; border-radius: 50%; color: #8d6928; font-size: 12px; font-weight: 800; }
.seller-callout p { margin: 0; color: #64563c; font-size: 12px; line-height: 1.55; }
.sell-card, .account-card { padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 5px; background: #fff; box-shadow: 0 3px 12px #132b3208; }
.card-heading { align-items: center; margin-bottom: 18px; }
.card-heading .eyebrow { margin-bottom: 5px; }
.card-heading h3 { margin: 0; font-size: 23px; font-weight: 750; }
.step-badge { padding: 6px 9px; border-radius: 4px; color: #28604e; background: #e9f3ef; font-size: 9px; font-weight: 800; letter-spacing: 1px; }
#sell-form { display: grid; gap: 14px; }
.form-hint { margin: 0 0 13px; color: var(--muted); font-size: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.account-section { padding-top: 42px; padding-bottom: 52px; }
.account-page { min-height: calc(100vh - 180px); display: grid; align-items: center; }
.account-page .account-section { width: 100%; padding-top: 32px; padding-bottom: 32px; }
.google-signin-wrapper { display: none; margin-bottom: 20px; }
.google-signin-wrapper > .legal-acceptance { margin-bottom: 12px; }
.google-signin-note { margin: 0 0 14px; color: var(--muted); font-size: 12px; text-align: center; }
.google-signin-container { display: flex; justify-content: center; margin-bottom: 24px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: #666; font-size: 14px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: #ccc; content: ""; }
.account-page .account-heading h1 { margin: 0; font-size: 28px; font-weight: 750; }
.account-card { max-width: 530px; margin-inline: auto; }
.account-heading { align-items: start; }
.account-heading h2 { font-size: 28px; }
.icon-button { width: 32px; height: 32px; border: 0; border-radius: 50%; color: #526072; background: #f0f2f5; cursor: pointer; font-size: 22px; line-height: 1; }
.auth-tabs { display: flex; gap: 18px; margin: 23px 0 18px; border-bottom: 1px solid var(--line); }
.auth-tab { padding: 0 0 10px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; cursor: pointer; font-size: 13px; font-weight: 650; }
.auth-tab.active { border-bottom-color: #27664f; color: #1c634b; }
.marketplace-tabs { gap: 0; margin: 0 0 24px; background: white; border: 1px solid var(--line); border-radius: 4px; }
.marketplace-tabs .auth-tab { padding: 12px 22px; font-size: 14px; }
.marketplace-tabs .auth-tab.active { color: #075f50; background: #edf7f3; border-bottom-color: var(--green); }
.tab-panel > .section-heading { margin-bottom: 18px; }
.wishlist-form { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 20px; }
.wishlist-entry { display: flex; min-height: 150px; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 3px 12px #15223808; }
.wishlist-image { width: 100%; height: 170px; object-fit: contain; border-radius: 5px; background: #f5f7f9; }
.wishlist-entry h3 { margin: 0; font-size: 17px; font-weight: 700; }
.wishlist-entry .game-label, .wishlist-entry .condition { margin: 0; }
.wishlist-entry .button { margin-top: auto; }
.wishlist-entry .text-button { margin-top: auto; }
#account-form { display: grid; gap: 14px; }
.site-footer { padding: 24px 0; color: #c5ccd5; background: var(--navy); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { font-size: 14px; }
.footer-brand .brand-mark { width: 40px; height: 44px; }
.footer-inner > p { margin: 0; font-size: 12px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 14px; color: #c5ccd5; font-size: 12px; }
.legal-links a, .legal-acceptance a { color: #27664f; text-decoration: underline; text-underline-offset: 2px; }
.legal-links a { color: inherit; }
.legal-links .footer-faq-link { color: #332913; text-decoration: none; }
.contact-page { max-width: 720px; min-height: 55vh; margin: 40px auto; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.contact-page h1 { margin: 0 0 12px; font-size: 30px; }
.contact-page address { margin: 24px 0; font-style: normal; line-height: 1.8; }
.contact-methods { display: grid; gap: 8px; }
.contact-methods p { margin: 0; }
.contact-methods a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.faq-page { max-width: 860px; }
.faq-list { display: grid; gap: 14px; margin: 24px 0 36px; }
.faq-item { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.faq-item h2 { margin: 0 0 8px; font-size: 18px; }
.faq-item p { margin: 0; line-height: 1.6; }
.faq-question-form { display: grid; gap: 14px; }
.faq-question-form textarea { width: 100%; }
.faq-email-note { margin: -4px 0 0; color: var(--muted); font-size: 12px; }
.home-faq-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.home-faq-cta h2 { margin: 0; font-size: 20px; }
.home-faq-cta p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.legal-acceptance { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.legal-acceptance input { flex: 0 0 auto; margin: 2px 0 0; }
.seller-details-panel { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.seller-details-panel h3 { margin: 0 0 8px; font-size: 16px; }
.seller-details-panel > p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.seller-details-panel form { display: grid; gap: 12px; }

.store-search { padding-block: 20px; }
.store-search-form { display: grid; grid-template-columns: minmax(0, 1fr) 210px auto; align-items: end; gap: 12px; }
.store-search-form .field > span { font-size: 11px; }
.game-section { padding-block: 30px; }
.game-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.game-tile { position: relative; display: flex; gap: 18px; align-items: center; min-height: 154px; padding: 22px; overflow: hidden; color: white; border-radius: 5px; border: 1px solid #ffffff22; transition: box-shadow .15s; }
.game-tile:hover { box-shadow: 0 4px 18px #132b322a; }
.game-magic { background: radial-gradient(ellipse at top right, #a76742, transparent 80%), #3c2930; }
.game-pokemon { background: radial-gradient(ellipse at top right, #418da1, transparent 80%), #1d3b55; }
.game-yugioh { background: radial-gradient(ellipse at top right, #8a6998, transparent 80%), #382b47; }
.game-riftbound { background: radial-gradient(ellipse at top right, #769a61, transparent 80%), #263f36; }
.game-emblem { display: grid; place-items: center; flex: 0 0 60px; height: 82px; border: 1px solid #ffffff66; border-radius: 4px 14px 4px 14px; background: #ffffff0a; font-family: Georgia, serif; font-size: 40px; }
.game-tile-copy { display: grid; gap: 8px; }
.game-tile-copy small { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: #ffffffce; }
.game-tile-copy strong { font-size: 19px; line-height: 1.2; }
.game-tile-copy > span { font-size: 12px; color: #ffffffdf; }
.section-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.market-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.market-results { min-width: 0; }
.market-layout .search-panel { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 16px; background: white; border-radius: 4px; }
.filter-heading { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.filter-heading h3 { margin: 0; font-size: 16px; }
.filter-heading span { color: var(--muted); font-size: 12px; }
.market-layout .filter-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.market-layout .filter-group legend { padding: 0 6px 0 0; font-size: 12px; }
.market-layout .filter-group > .field:nth-of-type(-n+2), .market-layout .availability-filter { grid-column: 1 / -1; }
.market-layout .filter-group > .form-row { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; min-width: 0; }
.market-layout .filter-group .field > span { overflow-wrap: anywhere; }
.market-layout .filter-group .field input, .market-layout .filter-group .field select { min-width: 0; }
.market-layout .color-filter { grid-column: 1 / -1; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.market-layout .color-filter select { flex-basis: 100%; width: 100%; min-width: 0; padding: 6px; border: 1px solid #bccdd1; border-radius: 4px; background: white; font-size: 12px; }
.market-results .results-heading { margin: 0 0 12px; min-height: 30px; }
.offer-columns { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; padding: 10px 16px; color: var(--muted); background: #e6edef; border: 1px solid var(--line); border-radius: 4px 4px 0 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.offer-columns span:last-child { text-align: right; }
.market-results .listing-grid { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 4px 4px; background: white; }
.market-results .listing-card { grid-template-columns: 100px minmax(0, 1fr); min-height: 228px; gap: 18px; padding: 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: white; }
.market-results .listing-card:last-child { border-bottom: 0; }
.market-results .listing-card:hover { background: #f6faf9; box-shadow: inset 3px 0 var(--green); }
.market-results .listing-image-wrap { width: 100px; min-height: 150px; align-self: center; }
.market-results .listing-image { max-height: 158px; }
.market-results .listing-info { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(100px, 1fr) 175px; column-gap: 14px; row-gap: 3px; align-content: center; align-items: center; }
.market-results .game-label { grid-column: 1; grid-row: 1; margin: 0; font-size: 9px; }
.market-results .listing-info h4 { grid-column: 1; grid-row: 2; font-size: 14px; line-height: 1.35; }
.market-results .seller-line { grid-column: 1; grid-row: 3; margin: 0; }
.market-results .condition { grid-column: 2; grid-row: 1 / 4; margin: 0; }
.market-results .listing-price { grid-column: 3; grid-row: 1 / 3; margin: 0; text-align: right; font-size: 18px; color: #075f50; font-variant-numeric: tabular-nums; }
.market-results .buy-row { grid-column: 3; grid-row: 3; }
.buy-quantity { min-height: 34px; background: white; }
body .cart-container, body .checkout-container { grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; }
body .cart-item, body .cart-summary, body .checkout-form, body .order-summary,
body .profile-details-form,
body .sale-card, body .order-card, body .profile-wishlist-card { background: white; border: 1px solid var(--line); border-radius: 5px; }
body .cart-summary, body .order-summary { border-top: 3px solid var(--green); }
body .cart-item { grid-template-columns: 70px minmax(0, 1fr); gap: 16px; }
body .cart-item-image { width: 70px; height: 100px; object-fit: contain; }
body .cart-item-title { font-size: 15px; }
body .cart-item-seller, body .cart-item-condition { margin: 3px 0; font-size: 12px; color: var(--muted); }
body .cart-item-footer { grid-template-columns: auto 70px 1fr auto; gap: 12px; }
body .cart-item-price, body .cart-item-total { font-size: 14px; color: #075f50; }
body .cart-remove { color: #9b3442; background: #fff0f1; border: 1px solid #eacbd0; font-size: 12px; }
body .checkout-button { background: var(--green); font-size: 14px; min-height: 42px; }
body .checkout-button:hover { background: #066353; }
body .submit-button { background: var(--green); font-size: 14px; border-radius: 4px; }
body .submit-button:hover { background: #066353; }
body .back-button { border-color: #b7cec8; color: var(--green); font-size: 13px; }
body .continue-shopping { color: var(--green); border-color: #b7cec8; font-size: 13px; }
body .checkout-form { padding: 24px; }
body .checkout-form .field input, body .checkout-form .field select { min-height: 38px; padding: 8px 10px; font-size: 14px; border-color: #bccdd1; }
body .checkout-form .field input:focus, body .checkout-form .field select:focus { outline: 2px solid #65bea9; outline-offset: 2px; box-shadow: none; }
body .form-section h3 { border-bottom: 1px solid var(--line); color: var(--ink); }
body .profile-container { max-width: none; margin: 28px 0; }
body .profile-header { gap: 24px; margin-bottom: 32px; }
body .profile-section { margin-bottom: 32px; }
body .profile-section h2 { font-size: 22px; margin-bottom: 16px; }
body .profile-details-form { max-width: none; }
body .profile-info h1 { font-size: 30px; }
body .sales-grid, body .orders-grid, body .profile-wishlist-grid { gap: 12px; }
body .card-detail { padding-block: 28px; }
body .card-header-inner { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 5px; }
body .card-header { margin-bottom: 28px; }
body .seller-card { border-radius: 4px; box-shadow: none; }
body .seller-price { color: #075f50; }
body #sell-preview { width: 100%; height: auto; padding: 16px; }
body #sell-preview-image { width: auto; max-width: 200px; max-height: 280px; object-fit: contain; }
body main > .page-width > h1 { margin-block: 26px 20px; font-size: 28px; letter-spacing: -.6px; }
body:has(.cart-container) main, body:has(.checkout-container) main { padding-bottom: 36px; min-height: 65vh; }

@media (min-width: 651px) and (max-width: 1050px) {
  .header-inner { gap: 20px; flex-wrap: wrap; padding-block: 12px; }
  .main-nav { min-height: 36px; gap: 22px; }
  .session-status { display: none; }
  .market-layout { grid-template-columns: 225px minmax(0, 1fr); gap: 16px; }
  .market-results .listing-info { grid-template-columns: minmax(0, 1fr) 150px; }
  .market-results .condition { grid-column: 1; grid-row: 3; font-size: 11px; }
  .market-results .seller-line { grid-row: 4; }
  .market-results .listing-price { grid-column: 2; }
  .market-results .buy-row { grid-column: 2; grid-row: 3 / 5; }
  .offer-columns { grid-template-columns: 1fr auto; }
  .offer-columns span:nth-child(2) { display: none; }
  .game-tile { padding: 18px; gap: 12px; }
  .game-emblem { display: none; }
}

@media (max-width: 900px) {
  .hero-art { width: 300px; margin-right: 0; transform: scale(.85); transform-origin: center right; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sell-layout { gap: 36px; }
  .home-points { gap: 24px; }
}

@media (max-width: 650px) {
  .page-width, .header-inner { width: min(100% - 32px, 540px); }
  .header-inner { min-height: 66px; flex-wrap: wrap; gap: 0 12px; padding-top: 11px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 36px; height: 40px; }
  .main-nav { display: flex; order: 3; flex-basis: 100%; min-height: 39px; justify-content: space-between; gap: 12px; }
  .main-nav a { font-size: 13px; }
  .session-status { display: none; }
  .header-actions { gap: 8px; margin-left: auto; }
  .header-actions .button { min-height: 37px; padding-inline: 11px; font-size: 12px; }
  .hero { min-height: 320px; padding: 46px 24px; }
  .home-hero { min-height: 370px; }
  .hero h1 { font-size: clamp(39px, 10vw, 52px); }
  .hero-description { max-width: 340px; font-size: 14px; }
  .hero-art { position: absolute; right: -91px; opacity: .24; transform: scale(.8); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .home-points { grid-template-columns: 1fr; gap: 24px; padding-top: 34px; padding-bottom: 38px; }
  .home-point { padding-right: 0; }
  .home-faq-cta { align-items: flex-start; flex-direction: column; }
  .home-shop-inner, .buy-hero-inner { align-items: flex-start; flex-direction: column; }
  .home-shop-inner h2 { font-size: 22px; }
  .buy-hero { padding: 36px 0; }
  .sell-page-hero { padding: 36px 0; }
  .market-section { padding-top: 42px; padding-bottom: 47px; }
  .section-heading h2, .sell-intro h2 { font-size: 30px; }
  .market-note { font-size: 11px; text-align: right; }
  .search-panel { grid-template-columns: 1fr; gap: 12px; padding: 15px; }
  .wishlist-form { grid-template-columns: 1fr; }
  .search-button { width: 100%; }
  .listing-grid { grid-template-columns: 1fr; gap: 11px; }
  .listing-card { grid-template-columns: 88px minmax(0, 1fr); min-height: 164px; gap: 13px; padding: 12px; }
  .listing-image-wrap { width: 88px; min-height: 132px; }
  .listing-image { max-height: 142px; }
  .listing-price { font-size: 18px; }
  .sell-section { padding: 48px 0; }
  .sell-layout { grid-template-columns: 1fr; gap: 25px; }
  .sell-card { padding: 20px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

.card-preview { text-align: center; margin: 12px 0; }
.card-preview img { max-width: 100%; height: auto; border-radius: 10px; }
.card-preview p { font-weight: 600; margin-top: 8px; }

.filter-group { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; border: 1px solid #d8dde6; border-radius: 8px; padding: 10px 14px; }
.filter-group legend { font-weight: 600; padding: 0 6px; }
.color-filter { display: flex; gap: 10px; align-items: center; }

.listing-card-link { display: contents; }
.listing-card-link:hover { cursor: pointer; }

.card-detail { padding: 48px 0; }
.card-header { display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px; }
.card-header-inner { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
.card-preview { position: relative; width: 200px; height: 280px; border-radius: 8px; overflow: hidden; background: #f5f7f9; }
.card-image { width: 100%; height: 100%; object-fit: cover; }
.card-image-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #f5f7f9; color: #697586; font-size: 12px; }
.card-info h1 { margin: 12px 0 0; font-size: 32px; }
.card-type { color: #697586; font-size: 14px; margin: 8px 0; }
.card-meta { display: flex; flex-direction: column; gap: 4px; color: #697586; font-size: 13px; }
.card-meta p { margin: 0; }

.card-sellers h2 { font-size: 24px; margin-bottom: 24px; }
.sellers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.seller-card { border: 1px solid #e0e5eb; border-radius: 8px; padding: 16px; background: #fff; box-shadow: 0 3px 12px #15223808; }
.seller-card:hover { border-color: #bac6d2; box-shadow: 0 8px 24px #15223810; }
.seller-info { display: flex; flex-direction: column; gap: 8px; }
.condition-finish { font-size: 12px; color: #697586; margin: 0; }
.seller-price { font-size: 20px; font-weight: 700; color: var(--ink); margin: 4px 0 0; }
.seller-quantity { font-size: 13px; color: #697586; margin: 0; }
.seller-name { font-size: 13px; font-weight: 600; color: var(--ink); margin: 8px 0 0; }

.loading-state, .error-state { padding: 24px; text-align: center; }
.error-state { color: #c5192d; background: #f5e5e5; border-radius: 8px; }

@media (max-width: 800px) {
  .card-header-inner { grid-template-columns: 1fr; }
  .card-preview { width: 100%; max-width: 240px; }
  .sellers-grid { grid-template-columns: 1fr; }
  body .cart-container, body .checkout-container { grid-template-columns: minmax(0, 1fr); }
  body .cart-summary, body .order-summary { position: static; }
  body .sales-grid, body .orders-grid, body .profile-wishlist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .header-inner { flex-wrap: wrap; gap: 8px; padding-block: 8px; }
  .card-detail .card-preview { height: 364px; }
  .main-nav { gap: 24px; flex-wrap: wrap; }
  .main-nav a { min-height: 40px; }
  .header-actions { flex: 1 0 100%; justify-content: flex-end; gap: 10px; }
  .store-search { padding-block: 16px; }
  .store-search-form { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .store-search-form > .field:first-child { grid-column: 1 / -1; }
  .store-search-form > .button { min-height: 38px; }
  .home-hero { position: relative; min-height: 330px; padding: 32px 24px; }
  .home-hero .hero-art { pointer-events: none; right: -125px; opacity: .2; }
  .hero h1 { font-size: 46px; }
  .hero-description { max-width: 300px; }
  .game-section { padding-block: 24px; }
  .game-section .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .game-tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
  .game-tile { min-height: 112px; padding: 16px 20px; }
  .game-emblem { flex-basis: 45px; height: 64px; font-size: 30px; }
  .game-tile-copy { gap: 5px; }
  .section-heading h2, .sell-intro h2 { font-size: 24px; }
  .buy-hero, .sell-page-hero { padding-block: 22px; }
  .buy-hero-inner { gap: 16px; }
  .market-section { padding-top: 18px; }
  .marketplace-tabs .auth-tab { padding: 12px 16px; font-size: 13px; }
  .market-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .market-layout .search-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-layout .filter-heading, .market-layout .search-button { grid-column: 1 / -1; }
  .market-layout .filter-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-columns { display: none; }
  .market-results .listing-grid { border-top: 1px solid var(--line); border-radius: 4px; }
  .market-results .listing-card { grid-template-columns: 90px minmax(0, 1fr); min-height: 228px; padding: 14px; gap: 14px; }
  .market-results .listing-image-wrap { width: 90px; min-height: 135px; }
  .market-results .listing-image { max-height: 145px; }
  .market-results .listing-info { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .market-results .game-label, .market-results .listing-info h4, .market-results .condition,
  .market-results .seller-line, .market-results .listing-price, .market-results .buy-row { grid-column: 1; grid-row: auto; }
  .market-results .listing-price { text-align: left; }
  .market-results .buy-row { margin-top: 3px; }
  .section-actions { justify-content: flex-start; }
  body .cart-item { grid-template-columns: 50px minmax(0, 1fr); padding: 12px; gap: 12px; }
  body .cart-item-image { width: 50px; height: 72px; }
  body .cart-item-footer { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; }
  body .checkout-form { padding: 16px; }
  body .checkout-form .field-row { grid-template-columns: minmax(0, 1fr); }
  body .profile-header, body .profile-details-form { grid-template-columns: minmax(0, 1fr); }
  body .card-header-inner { padding: 16px; }
  body .card-info h1 { font-size: 26px; overflow-wrap: anywhere; }
}

@media (max-width: 480px) {
  body .sales-grid, body .orders-grid, body .profile-wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .game-tile { transition: none; }
}
