/* Graphite surfaces and a single accent shared with the glass portal and Pip. */
.header, .header.is-scrolled {
  color: var(--text);
  background: rgb(12 16 16 / 96%);
  border-color: var(--line);
  box-shadow: none;
}
.header .logo { letter-spacing: -.045em; }
.desktop-nav { background: transparent; border-color: transparent; box-shadow: none; }
.desktop-nav a { color: var(--text-secondary); }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] {
  color: var(--mint); background: transparent; box-shadow: none;
  text-decoration: underline; text-underline-offset: .48em;
}
.header .search-trigger, .header-actions .account-shortcut {
  background: var(--panel); border: 1px solid var(--line); box-shadow: none; color: var(--text);
}
.header .search-trigger:hover, .header-actions .account-shortcut:hover {
  background: var(--panel-hover); border-color: var(--line-strong); box-shadow: none;
}
.header .search-trigger-icon, .header .search-trigger:hover .search-trigger-icon {
  background: transparent; border-color: transparent; color: var(--muted); box-shadow: none;
}
.header .search-kbd { color: var(--muted); background: transparent; border-color: var(--line-strong); }
.header-actions .account-shortcut[aria-current="page"], .mobile-nav a[aria-current="page"] {
  background: var(--mint-soft); color: var(--mint); border-color: var(--mint-border);
}
.header .mobile-nav { background: var(--panel); border-color: var(--line); }

.gate-stage { overflow: hidden; isolation: isolate; background: var(--bg); }
.gate-layout {
  display: grid; grid-template-columns: minmax(0,.96fr) minmax(0,1.04fr);
  align-items: center; gap: clamp(16px,3vw,56px); padding-block: clamp(34px,3.8vw,68px);
}
.gate-copy h1 {
  margin: 0; font-size: clamp(3rem,5.65vw,6.25rem);
  font-weight: 600; letter-spacing: -.053em; line-height: 1.045;
}
.gate-copy h1 span { color: var(--mint); }
.gate-description {
  max-width: 36ch; margin: 22px 0 28px; font-size: clamp(1rem,1.24vw,1.2rem);
  line-height: 1.6; color: var(--text-secondary);
}
.gate-description a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .19em; }
.gate-description a:hover { color: var(--mint); text-decoration-color: currentColor; }
.gate-actions, .gate-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gate-actions .btn { min-height: 48px; padding: 12px 22px; font-weight: 700; border-radius: 12px; }
.gate-actions .secondary { color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); }
.gate-actions .secondary:hover { background: var(--panel-hover); }
.gate-facts {
  gap: 0; margin-top: 18px; color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums;
}
.gate-facts > * { display: inline-flex; min-height: 44px; align-items: center; }
.gate-facts > * + *::before {
  content: ''; width: 3px; height: 3px; background: #719085; border-radius: 50%; margin-inline: 10px;
}
.gate-facts a { color: var(--text-secondary); }
.gate-facts a:hover { color: var(--mint); }
.gate-visual { position: relative; aspect-ratio: 1.47; }
.gate-visual > img {
  position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none;
  object-fit: contain; mix-blend-mode: lighten;
  mask-image: radial-gradient(ellipse 73% 76% at 52% 50%, black 53%, transparent 94%),
    linear-gradient(180deg, transparent, black 8%, black 82%, transparent 99%);
  mask-composite: intersect;
  transition: transform 180ms ease-out;
}
.shortcut-list {
  display: grid; grid-template-columns: repeat(6,minmax(0,1fr));
  padding-block: 10px; border-block: 1px solid var(--line);
}
.shortcut-list a {
  display: grid; grid-template-columns: 36px minmax(0,1fr); grid-template-rows: auto auto;
  align-content: center; gap: 1px 12px; padding: 10px clamp(10px,1.3vw,20px);
  min-height: 58px; font-weight: 650; font-size: .93rem; line-height: 1.4;
}
.shortcut-list a + a { border-inline-start: 1px solid var(--line); }
.shortcut-list a:hover { background: var(--panel); color: var(--mint); }
.shortcut-list img {
  grid-row: span 2; align-self: center; width: 36px; height: 36px; object-fit: contain;
  padding: 7px; border-radius: 10px; background: var(--light);
}
.shortcut-price { font-size: .79rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }

.light-section, .catalog-surface, .home-discover { background: var(--bg); color: var(--text); color-scheme: dark; border-radius: 0; box-shadow: none; }
.light-section p { color: var(--muted); }
.home-discover { padding-block: clamp(40px,4.8vw,76px); }
.home-discover .section-head h2 { font-size: clamp(2.05rem,3.6vw,3.9rem); line-height: 1.1; font-weight: 560; letter-spacing: -.052em; }
.light-section .small-link { color: var(--text-secondary); text-decoration-color: var(--line-strong); }
.light-section .small-link:hover { color: var(--mint); }
.catalog-panel { padding: 16px 0; background: transparent; border: 0; border-block: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.catalog-control, .catalog-results-heading .result-count { color: var(--muted); }
.catalog-control:focus-within > span:first-child, .catalog-reset, .catalog-reset:hover { color: var(--mint); }
.catalog-panel .search-field input, .catalog-panel .custom-select.is-light, .catalog-panel .custom-select.is-light select {
  color-scheme: dark; background: var(--panel); color: var(--text); border-color: var(--line-strong);
}
.catalog-panel .search-field input:focus, .catalog-panel .custom-select.is-light:hover,
.catalog-panel .custom-select.is-light:has(select:focus-visible) { background: var(--panel-elevated); border-color: var(--mint); }
.catalog-panel .search-field > svg, .catalog-panel .search-field input::placeholder { color: var(--muted); }
.catalog-results-heading { border-color: var(--line); }
.task-tabs button, .plan-filter-chip { background: transparent; color: var(--text-secondary); border-color: var(--line-strong); }
.task-tabs button:hover:not(.active), .plan-filter-chip:hover:not(.active) { background: var(--panel-hover); color: var(--text); border-color: var(--line-strong); }
.task-tabs button.active, .plan-filter-chip.active, .active-filter-chip, .active-filter-chip:hover {
  background: #22372d; color: var(--mint); border-color: #527a63; box-shadow: none;
}
.task-tab-count { opacity: .84; }
.home-discover .catalog-note, .catalog-surface .catalog-note { color: var(--muted) !important; }

.product-grid .product-card { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 18px; }
.product-grid .product-card:hover { border-color: #546b60; box-shadow: none; transform: translateY(-2px); }
.service-cover {
  min-height: 82px; background: linear-gradient(110deg,#202d29,#1b2422 62%,#1c2924);
  border-color: var(--line);
}
.service-cover[data-field]::before {
  background: repeating-radial-gradient(ellipse at 88% 176%, transparent 0 12px, rgb(175 219 191 / 16%) 12.5px 13px, transparent 13.5px 20px);
  mask-image: linear-gradient(90deg,transparent,black 78%);
}
.service-cover .service-logo, .offer-brand, .stack-icon, .desk-brand-tile { background: var(--light); }
.cover-category { color: var(--text-secondary); font-weight: 550; }
.service-cover .heart { color: var(--muted); background: #19211f; border-color: var(--line-strong); }
.service-cover .heart:hover, .service-cover .heart[aria-pressed="true"] { color: var(--mint); background: #243b2f; border-color: #537761; }
.product-grid .card-desc, .product-grid .card-price small { color: var(--muted); }
.product-grid .product-card h3 a:hover { color: var(--mint); }
.product-grid .card-meta { gap: 8px 14px; }
.product-grid .tag { color: var(--muted); background: transparent; padding: 0; border: 0; }
.product-grid .tag-auto, .product-grid .tag-auto::before { color: var(--mint); }
.product-grid .tag-auto::before { background: var(--mint); }
.product-grid .card-bottom { border-color: var(--line); }
.product-grid .card-price { color: var(--text); }
.product-grid .choose-button { color: var(--mint); background: transparent; padding-inline: 4px; }
.product-grid .product-card:hover .choose-button, .product-grid .choose-button:hover { color: var(--mint-bright); background: transparent; }
#main[data-page="catalog"] .catalog-surface { padding-top: 0; }

.offer-details, .offer-buy, .checkout-summary, .stack-board, .desk-bag, .how-section {
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 20px;
}
.offer-brand { border-radius: 20%; }
.offer-buy { color-scheme: dark; }
.offer-buy .plan, .offer-buy .compare-trigger {
  background: var(--panel-elevated); color: var(--text-secondary); border-color: var(--line-strong);
}
.offer-buy .plan:hover, .offer-buy .compare-trigger:hover { background: var(--panel-hover); border-color: #709180; color: var(--text); }
.offer-buy .plan:has(input:checked) {
  background: #203329; border-color: #75a88a; box-shadow: none;
}
.plan input { accent-color: var(--mint); }
.plan-title, .plan strong, .purchase-line strong, .offer-buy .plan-field legend { color: var(--text); }
.plan-meta-row, .purchase-line > span, .purchase-foot { color: var(--muted); }
.purchase-foot a, .offer-buy .pip-inline, .plan-pill-auto { color: var(--mint); }
.purchase-line { border-color: var(--line); }
.checkout-layout > .empty { grid-column: 1 / -1; }
.stack-board[data-scenario] { background: var(--panel); }
.stack-service { color: var(--text); background: var(--panel-elevated); border: 1px solid var(--line); }
.stack-service:hover { background: var(--panel-hover); box-shadow: none; }
.stack-service small, .desk-bag p, .how-head p, .steps p, .step-num { color: var(--muted); }
.stack-service-price, .stack-board-foot a { color: var(--mint); }
.desk-bag .desk-symbol, .step-icon { color: var(--mint); background: var(--mint-soft); border-color: var(--mint-border); }
.steps h3, .how-head h2 { color: var(--text); }
.desk-bag .btn.dark { background: var(--panel-hover); color: var(--text); border: 1px solid var(--line-strong); }

.home-game-copy p, .game-hero p { color: var(--text-secondary); }
.home-game-platforms span { color: var(--text-secondary); background: #1a2723; border-color: var(--line-strong); }
.game-hero .eyebrow { color: var(--mint); }

.tg-btn, .tg-btn:hover { background: var(--panel-elevated); color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.tg-btn:hover { background: var(--panel-hover); border-color: #749581; }
.tg-btn .tg-badge { color: var(--mint); background: var(--mint-soft); box-shadow: none; }
.tg-btn .tg-badge svg, .tg-btn .tg-btn-arrow { color: var(--mint); }
.tg-btn-copy strong { color: var(--text); }
.tg-btn-copy small { color: var(--muted); }
.btn.primary, #add-cart-btn:not(.in-cart), .home-game-copy .btn, .game-hero .btn, .tg-btn-solid {
  color: #11241b; background: var(--mint); border-color: var(--mint); box-shadow: none;
}
.btn.primary:hover, #add-cart-btn:not(.in-cart):hover, .home-game-copy .btn:hover, .game-hero .btn:hover, .tg-btn-solid:hover {
  color: #11241b; background: var(--mint-bright); border-color: var(--mint-bright); box-shadow: none;
}
.tg-btn-solid .tg-badge { background: rgb(18 46 29 / 10%); }
.tg-btn-solid :is(.tg-badge svg,.tg-btn-arrow,.tg-btn-copy strong,.tg-btn-copy small) { color: #183325; }

@media (max-width: 950px) {
  .shortcut-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .shortcut-list a:nth-child(4) { border-inline-start: 0; }
}
@media (max-width: 720px) {
  .gate-layout { grid-template-columns: 1fr; gap: 0; padding-block: 32px 12px; }
  .gate-copy h1 { font-size: clamp(2.7rem,10.8vw,4.35rem); }
  .gate-description { margin: 16px 0 20px; }
  .gate-actions .btn { padding-inline: 16px; font-size: .94rem; }
  .gate-facts { margin-top: 6px; font-size: .8rem; }
  .gate-visual { width: min(100%,440px); aspect-ratio: 1.84; justify-self: center; }
  .home-discover .section-head { flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
  .home-discover .section-head .small-link { margin: 0; }
}
@media (max-width: 600px) {
  .shortcut-list { display: flex; overflow-x: auto; padding-block: 5px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
  .shortcut-list a { flex: 0 0 auto; min-height: 58px; padding-inline: 14px; }
  .shortcut-list a:first-child { padding-inline-start: 0; }
  .shortcut-list a:nth-child(n+2) { border-inline-start: 1px solid var(--line); }
}
@media (max-width: 350px) {
  .gate-actions { gap: 6px; }
  .gate-actions .btn { padding-inline: 10px; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gate-visual > img { transition: none; }
  .product-grid .product-card:hover { transform: none; }
}

/* The same native single-choice control serves product, platform and support choices. */
.choice-field { min-width: 0; padding: 0; margin: 0; border: 0; }
.choice-field legend {
  padding: 0; margin-bottom: .85rem; font-size: 1rem; font-weight: 650; color: var(--text);
}
.choice-grid { display: grid; gap: 8px; min-width: 0; }
.choice-card {
  position: relative; display: flex; gap: 10px; align-items: center; cursor: pointer;
  min-width: 0; min-height: 60px; padding: 12px; border: 1px solid var(--line-strong);
  border-radius: 13px; background: var(--panel-elevated); color: var(--text-secondary);
}
.choice-copy { flex: 1; min-width: 0; }
.choice-copy strong, .choice-copy small { display: block; }
.choice-copy strong { font-size: .925rem; line-height: 1.32; font-weight: 620; overflow-wrap: anywhere; }
.choice-copy small { color: var(--muted); font-size: .81rem; margin-top: 3px; }
.choice-art {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  flex: none; background: var(--light); color: var(--ink);
}
.choice-art img, .choice-art svg { width: 23px; height: 23px; object-fit: contain; }
.choice-mark {
  display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid #697c73; flex: none; color: transparent;
}
.choice-mark svg { width: 12px; height: 12px; stroke-width: 2.7; }
.choice-card:has(input:checked) { background: #20332b; border-color: #779d87; color: var(--text); }
.choice-card:has(input:checked) .choice-mark { background: var(--mint); border-color: var(--mint); color: #133222; }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--mint); outline-offset: 2px; }
@media (hover: hover) {
  .choice-card:hover { border-color: #83998e; }
}
.support-topics { margin: 24px 0; }
.topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.topic-grid .choice-art { background: transparent; color: var(--muted); width: 24px; }
.topic-grid .choice-art svg { width: 21px; height: 21px; }
.topic-grid .choice-card:has(input:checked) .choice-art { color: var(--mint); }

.modal.pip-dialog { background: var(--panel); width: min(530px,calc(100% - 24px)); border-color: var(--line-strong); }
.pip-dialog-header { background: var(--bg); border-color: var(--line); align-items: center; }
.pip-dialog-header .close { align-self: center; }
.pip-dialog-header h2 { font-size: 1.8rem; letter-spacing: -.04em; }
.pip-picker { margin: 0 0 1rem; }
.pip-choices {
  max-height: clamp(150px,30dvh,250px); overflow-y: auto; overscroll-behavior-y: contain;
  padding: 4px; margin: -4px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.pip-choices .choice-card { min-height: 60px; }
.choice-price, .pip-offer strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.choice-price { font-weight: 700; color: var(--text); font-size: .93rem; }
.pip-terms { margin: 0; font-size: 1.07rem; }
.pip-offer { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .7rem; }
.pip-offer h3 { overflow-wrap: anywhere; font-size: 1rem; }
.pip-facts { border-block: 1px solid var(--line); padding-block: .5rem; }
.pip-facts div { grid-template-columns: 4.8rem minmax(0,1fr); }
.pip-facts dd { overflow-wrap: anywhere; }
.pip-questions details { border-color: var(--line); }
.pip-questions details:first-child { border-top: 0; }
.pip-dialog-body > .btn { margin-top: 12px; }

.modal.drawer {
  overflow: visible; padding: 0; max-width: 100%; border-color: var(--line-strong);
  background: var(--panel); color: var(--text);
}
.modal.drawer[open] { display: flex; flex-direction: column; }
.drawer .modal-head { margin: 0; padding: 21px 22px 12px; flex: none; }
.cart-sheet-body {
  overflow: auto; min-height: 0; padding: 16px 22px max(24px,env(safe-area-inset-bottom));
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.cart-pip-tab {
  position: relative; display: flex; align-items: center; align-self: flex-start; flex: none;
  min-height: 44px; padding: 8px 18px 8px 22px; margin: 2px 0 4px; background: #20332a;
  color: var(--mint); border: 1px solid #41644e; border-left: 0; border-radius: 0 14px 14px 0;
  font-size: .88rem; font-weight: 650;
}
.cart-pip-tab:hover { background: #2a4034; }
.cart-pip-portrait { position: absolute; right: 100%; bottom: -8px; width: 50px; height: 66px; overflow: hidden; }
.cart-pip-portrait img { width: 64px; height: 64px; max-width: none; object-fit: contain; transform: translate(6px,1px) rotate(-20deg); }
body:has(.drawer[open],.pip-dialog[open]) .pip-pet { visibility: hidden; }
@media (max-width: 600px) {
  .drawer .modal-head { padding: 16px 16px 9px; }
  .cart-sheet-body { padding-inline: 16px; }
  .cart-pip-tab { align-self: flex-end; border: 1px solid #41644e; border-right: 0; border-radius: 14px 0 0 14px; padding: 8px 58px 8px 14px; margin: 9px 0 0; }
  .cart-pip-portrait { right: 4px; bottom: 1px; width: 51px; height: 49px; }
  .cart-pip-portrait img { width: 51px; height: 54px; transform: translateY(1px) rotate(9deg); }
}

.game-hero, .home-game-cover { background: #111c1f; border-color: var(--line-strong); }
.game-hero picture, .home-game-cover picture {
  inset: 0 0 0 auto; width: 80%; height: 100%; opacity: 1; mix-blend-mode: normal;
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.game-hero picture > img, .home-game-cover picture > img { inset: 0; width: 100%; height: 100%; opacity: 1; mask-image: none; object-position: 73% 62%; }
.game-hero { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.game-hero h1 { font-size: clamp(3.4rem,6.5vw,6rem); line-height: 1; letter-spacing: -.055em; }
.game-hero p { max-width: min(39ch,43%); color: var(--text-secondary); }
.game-hero-actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.game-hero-actions .btn { margin: 0; min-height: 46px; }
.game-hero-actions .btn.secondary { border: 1px solid #557068; background: #152321; color: var(--text); }
.game-hero-actions .btn.secondary:hover { background: var(--panel-hover); }
.game-request { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.9fr); gap: clamp(20px,3.2vw,48px); align-items: start; }
.game-library legend { margin-bottom: 18px; font-size: clamp(1.6rem,3vw,2.65rem); letter-spacing: -.04em; line-height: 1.1; }
.platform-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.platform-grid .choice-card { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 36px 1fr; align-items: start; gap: 10px; min-height: 92px; padding: 13px 15px; }
.platform-grid .choice-copy { grid-column: 1 / -1; }
.platform-grid .choice-mark { grid-column: 2; grid-row: 1; align-self: start; }
.game-brief, .steam-wallet { background: var(--panel); border-color: var(--line); }
.game-selected { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.game-selected strong { color: var(--mint); }
.game-brief button[type="submit"] { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.game-brief button[type="submit"]:hover { background: var(--mint-bright); }
.steam-wallet {
  display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(18px,4vw,60px);
  margin-block: clamp(28px,4vw,64px) clamp(40px,6vw,80px);
}
.steam-wallet p { max-width: 36ch; }
.steam-wallet .field:first-child { margin-top: 0; }
.steam-wallet .purchase-foot { max-width: none; }
#steam-login { scroll-margin-top: 110px; }
@media (max-width: 1000px) {
  .game-request { grid-template-columns: minmax(0,1.04fr) minmax(0,1fr); }
  .platform-grid .choice-card { padding: 10px; }
}
@media (max-width: 760px) {
  .game-request, .steam-wallet { grid-template-columns: minmax(0,1fr); }
  .game-hero, .home-game-cover { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: clamp(166px,44vw,250px) 20px 24px; min-height: 0; }
  .game-hero picture, .home-game-cover picture {
    inset: 0; width: 100%; height: calc(clamp(166px,44vw,250px) + 35px);
    mask-image: linear-gradient(180deg, #000 65%, transparent); opacity: 1;
  }
  .game-hero picture > img, .home-game-cover picture > img { object-position: 74% 60%; }
  .game-hero h1 { margin-bottom: 12px; }
  .game-hero p, .home-game-copy, .home-game-copy p { max-width: 100%; }
  .game-hero-actions .btn { font-size: .9rem; padding-inline: 13px; }
  .platform-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .game-hero-actions { display: grid; width: 100%; }
  .topic-grid .choice-card { align-items: flex-start; flex-wrap: wrap; gap: 6px; padding: 10px; }
  .topic-grid .choice-art { height: 22px; }
  .topic-grid .choice-copy { flex-basis: 100%; }
  .topic-grid .choice-mark { position: absolute; top: 12px; right: 11px; }
  .platform-grid { gap: 6px; }
  .platform-grid .choice-copy strong { font-size: .875rem; }
  .pip-choices .choice-card { gap: 8px; padding-inline: 9px; }
}
@media (max-width: 360px) {
  .platform-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
