/* DryreL Hub — design system. Desktop layouts are measured at the 1491px reference width:
   scaled down with `zoom` on 1280–1490px screens (see head.html), locked at 1491px above that
   (margins absorb extra width, as in DESIGN.md), fluid below 1280px. */

/* ---------- Tokens ---------- */
:root {
  --bg: #04070d;
  --surface: #090c13;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --border: rgba(255, 255, 255, 0.13);
  --text: #f5f7fb;
  --text-2: #c3c9d4;
  --text-3: #8a93a6;
  --blue: #3d7bff;
  --blue-text: #7db4ff;
  --violet-text: #a996ff;
  --focus: #8ab8ff;
  --danger: #ff8a9b;
  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 70px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; zoom: var(--z, 1);
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
main { display: block; max-width: 1491px; margin-inline: auto; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(61, 123, 255, 0.35); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 16px; background: var(--text); color: var(--bg); border-radius: 6px; font-weight: 600; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.icon { width: 18px; height: 18px; flex: none; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.eyebrow { display: flex; align-items: center; gap: 1em; font-size: 10.5px; font-weight: 500; letter-spacing: 0.44em; text-transform: uppercase; color: #d4d8e0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(6, 9, 16, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background-color 0.3s;
}
.site-header.is-scrolled { background: rgba(4, 7, 13, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* backdrop-filter would become the containing block for the fixed mobile menu */
.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
.header-inner { max-width: 1491px; height: 100%; margin-inline: auto; padding: 0 77px 0 73px; display: flex; align-items: center; }
.brand { display: block; flex: none; }
.brand img { height: 36px; width: auto; }
.site-nav { flex: 1; display: flex; align-items: center; }
.nav-list { display: flex; gap: 6px; margin-left: 108px; }
.nav-list a {
  position: relative; display: flex; align-items: center;
  height: 38px; padding: 0 16px; margin-top: -4px;
  font-size: 12.5px; color: #c9cfda; text-decoration: none; transition: color 0.2s;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: #fff; }
.nav-list a[aria-current="page"] { font-weight: 500; }
.nav-list a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: #3d7bff; border-radius: 2px; box-shadow: 0 0 8px rgba(61, 123, 255, 0.8);
}
.social { display: flex; }
.social a { display: grid; place-items: center; width: 40px; height: 44px; color: #cdd3de; transition: color 0.2s; }
.social a:hover { color: #fff; }
.social .icon { width: 19px; height: 19px; }
.nav-social { margin-left: auto; }
.nav-cta {
  margin-left: 17px; min-height: 36px; width: 127px; padding: 0;
  border: 1.5px solid #3d7bff; border-radius: 6px;
  background: rgba(17, 29, 52, 0.85); color: #fff;
  font-size: 12.5px; font-weight: 500;
  box-shadow: 0 0 14px rgba(51, 120, 255, 0.45), inset 0 0 10px rgba(51, 120, 255, 0.18);
}
.nav-cta:hover { background: rgba(30, 55, 110, 0.9); }
.nav-toggle {
  display: none; margin-left: auto;
  width: 48px; height: 48px; place-items: center;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer;
}
.nav-toggle .icon { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1179px) {
  .header-inner { padding: 0 var(--gutter); }
  .brand img { height: 32px; }
  .js .nav-toggle { display: grid; }
  .js .site-nav {
    display: none;
    position: fixed; inset: var(--header-h) 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2.5rem;
    background: var(--bg);
    overflow-y: auto;
  }
  .js.nav-open .site-nav { display: flex; }
  .js .nav-list { flex-direction: column; margin: 0; gap: 0; }
  .js .nav-list a {
    height: 56px; margin: 0; padding: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; font-stretch: 90%; text-transform: uppercase;
    border-bottom: 1px solid var(--line); color: var(--text);
  }
  .js .nav-list a[aria-current="page"]::after { right: auto; width: 2rem; bottom: -1px; }
  .js .nav-social { margin-left: -10px; }
  .js .nav-cta { margin: 0; width: auto; min-height: 52px; font-size: 1rem; }
  html:not(.js) .site-header { position: absolute; height: auto; padding-block: 0.75rem; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
  html:not(.js) .nav-list { flex-wrap: wrap; margin: 0; }
  html:not(.js) .nav-cta { margin-left: 0; }
}

/* ---------- Home (reference layout, measured at 1491px) ---------- */
.hx { position: relative; isolation: isolate; height: 506px; padding: 131px 0 0 78px; }
.hx-bg { position: absolute; top: 0; bottom: 0; left: 38.36%; right: 0; z-index: -1; }
.hx-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: left top;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%), linear-gradient(180deg, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%), linear-gradient(180deg, #000 86%, transparent);
  mask-composite: intersect;
}
.hx-eyebrow { display: flex; align-items: center; gap: 1.4em; font-size: 10.5px; font-weight: 500; letter-spacing: 0.44em; text-transform: uppercase; color: #d4d8e0; }
.hx-tri { width: 7px; height: 7px; margin-right: 0.5em; }
.hx-title {
  margin-top: 13px;
  font-family: var(--font-display); font-weight: 900; font-stretch: 96%;
  font-size: 72px; line-height: 0.75; letter-spacing: -0.005em; text-transform: uppercase; color: #fff;
}
.hx-title span {
  background: linear-gradient(90deg, #cdd2ff 0%, #9caafb 22%, #6f8cff 55%, #4c65fa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(90, 120, 255, 0.35));
}
.hx-sub { margin-top: 13px; font-size: 14px; font-weight: 600; letter-spacing: 0.32em; line-height: 20px; text-transform: uppercase; color: #fff; }
.hx-text { margin-top: 20px; font-size: 14.6px; font-weight: 300; line-height: 19.5px; color: #d2d7e0; }
.hx-actions { display: flex; gap: 17px; margin-top: 20px; }
.hx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 41px; border-radius: 6px; font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hx-btn .icon { width: 16px; height: 16px; }
.hx-btn-light { width: 222px; background: #fff; color: #0b0e17; gap: 24px; }
.hx-btn-light:hover { box-shadow: 0 6px 24px rgba(160, 180, 255, 0.3); }
.hx-btn-light .icon { transition: transform 0.25s var(--ease); }
.hx-btn-light:hover .icon { transform: translateX(3px); }
.hx-btn-outline { width: 173px; border: 1px solid rgba(255, 255, 255, 0.55); color: #fff; }
.hx-btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.05); }
.hx .hx-stats { display: flex; margin-top: 22px; padding-left: 11px; }
.hx-stats li { display: grid; gap: 6px; }
.hx-stats li:nth-child(1) { width: 129px; }
.hx-stats li:nth-child(2) { width: 134px; }
.hx-stats strong { font-family: var(--font-body); font-size: 24px; font-weight: 700; line-height: 1; height: 24px; color: #f3f3f5; }
.hx-stats .hx-inf {
  font-size: 34px; line-height: 0.62; font-weight: 600;
  background: linear-gradient(90deg, #3d8bff, #8ec0ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hx-stats span { font-size: 9.5px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: #c6ccd7; }

/* Division cards */
.hx-cards { display: grid; grid-template-columns: 470px 454px 470px; justify-content: space-between; gap: 13px; padding: 0 35px; }
.hc {
  position: relative; isolation: isolate; overflow: hidden;
  height: 235px; padding: 17px 31px 0;
  display: flex; flex-direction: column;
  background: #090c13;
  border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s;
}
.hc:hover { border-color: rgba(120, 140, 255, 0.45); }
.hc-img {
  position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: none; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%);
  mask-image: linear-gradient(90deg, transparent 0, #000 32%);
  transition: transform 0.6s var(--ease);
}
.hc:hover .hc-img { transform: scale(1.04); }
.hc-num { font-size: 9px; color: #d5d9e1; letter-spacing: 0.05em; }
.hc-title { margin-top: 14px; font-family: var(--font-display); font-weight: 900; font-stretch: 85%; font-size: 27px; line-height: 1; text-transform: uppercase; color: #fff; }
.hc-title span { display: block; margin-bottom: 3px; font-family: var(--font-body); font-weight: 500; font-size: 14px; letter-spacing: 0.24em; }
.hc-sub { margin-top: 8px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.33em; line-height: 17px; text-transform: uppercase; color: #e1e4ea; }
.hc-text { margin-top: 9px; font-size: 13.5px; font-weight: 300; line-height: 19px; color: #c3c9d4; }
.is-software .hc-text, .is-design .hc-text { margin-top: 15px; }
.hc-cta { margin-top: auto; margin-bottom: 22px; display: inline-flex; align-items: center; gap: 20px; font-size: 14.5px; font-weight: 500; color: #fff; text-decoration: none; align-self: flex-start; }
.hc-cta .icon { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.hc:hover .hc-cta .icon { transform: translateX(4px); }
.hc-ext {
  position: absolute; right: 16px; bottom: 16px; width: 33px; height: 33px;
  display: grid; place-items: center; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(10, 13, 22, 0.55); color: #e6e9ef;
}
.hc-ext .icon { width: 14px; height: 14px; }

/* Latest from the Hub */
.hl { padding: 19px 68px 28px; }
.hl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.hl-head h2 { margin-top: 2px; font-size: 15px; font-weight: 600; color: #fff; line-height: 1.3; }
.hl-head p { margin-top: 3px; font-size: 11.5px; color: #b9c0cc; }
.hl-all {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  width: 107px; height: 35px; flex: none;
  border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 6px;
  font-size: 12px; font-weight: 600; color: #fff; text-decoration: none;
}
.hl-all:hover { border-color: #fff; }
.hl-all .icon { width: 13px; height: 13px; }
.hl-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; margin-top: 13px; }
.hl-card { position: relative; height: 118px; border-radius: 4px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); background: #0b0f18; }
.hl-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.hl-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(3, 5, 10, 0.78) 100%); pointer-events: none; }
.hl-card:hover img { transform: scale(1.05); }
.hl-icon { position: absolute; left: 11px; bottom: 11px; z-index: 1; width: 24px; height: 24px; color: #fff; }
.hl-meta { position: absolute; left: 48px; bottom: 10px; z-index: 1; display: grid; line-height: 1.35; }
.hl-meta span { font-size: 9.5px; color: #c0c6d1; }
.hl-meta a { font-size: 11.5px; font-weight: 500; color: #fff; text-decoration: none; }
.hl-ext { position: absolute; right: 14px; bottom: 14px; z-index: 1; width: 13px; height: 13px; color: #fff; }

/* Home: below 1280px the page is fluid instead of scaled */
@media (max-width: 1279px) {
  .hx-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 clamp(16px, 2.35vw, 35px); }
  .hl { padding-inline: clamp(16px, 4.56vw, 68px); }
  .hx { padding-left: clamp(16px, 5.23vw, 78px); }
}
@media (max-width: 1179px) {
  .hx-cards { grid-template-columns: 1fr; }
  .hl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .hx { padding-top: calc(var(--header-h) + 3rem); padding-right: 16px; padding-bottom: 2.5rem; height: auto; min-height: 0; }
  .hx-bg { left: 0; }
  .hx-bg img { object-position: 30% top; -webkit-mask-image: none; mask-image: none; }
  .hx-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 7, 13, 0.9), rgba(4, 7, 13, 0.55)), linear-gradient(0deg, var(--bg), transparent 30%); }
  .hx-title { font-size: clamp(40px, 11vw, 71px); }
  .hx-text br, .hc-text br { display: none; }
  .hx-sub { font-size: 12.5px; letter-spacing: 0.28em; }
  .hx-actions { flex-wrap: wrap; gap: 12px; }
  .hx-btn { height: 46px; }
  .hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .hc { height: auto; min-height: 250px; }
  .hc-img { opacity: 0.45; }
  .hc-text { max-width: 75%; }
  .hc-cta { margin-top: 18px; }
  .hx-stats li:nth-child(1), .hx-stats li:nth-child(2) { width: auto; margin-right: 32px; }
  .hl-head { flex-direction: column; }
  .hl-grid { grid-template-columns: 1fr; }
  .hl-card { height: 140px; }
}

/* ---------- Inner pages (same system as the homepage) ---------- */

/* Page hero: homepage hero with a per-division crop and tint of the shared scene */
.hx--page { height: auto; min-height: 470px; padding-bottom: 48px; }
.hx--page .hx-inner { max-width: 600px; }
.hx--page .hx-title { font-size: 60px; line-height: 0.92; }
.hx--page .hx-title span { display: block; }
.hx--page .hx-sub { margin-top: 20px; }
.hx--page:has(.hx-stats) { min-height: 540px; }
.hx-bg { overflow: hidden; }
.hx--page .hx-bg {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%), linear-gradient(180deg, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 12%), linear-gradient(180deg, #000 80%, transparent);
  mask-composite: intersect;
}
.hx--page .hx-bg img { -webkit-mask-image: none; mask-image: none; transform: scale(var(--sc, 1)); transform-origin: var(--origin, left top); }
.hx--page .hx-bg::after { content: ""; position: absolute; inset: 0; background: var(--tint, transparent); mix-blend-mode: color; pointer-events: none; }
.hx--page.is-artworks { --sc: 1.25; --origin: 20% 30%; --tint: rgba(118, 87, 245, 0.28); }
.hx--page.is-software { --sc: 1.4; --origin: 60% 45%; --tint: rgba(51, 120, 255, 0.3); }
.hx--page.is-design { --sc: 1.35; --origin: 95% 35%; --tint: rgba(214, 91, 214, 0.26); }
.hx--page.is-hub { --sc: 1; }

/* Sections */
.sec { padding: 56px 68px 0; }
.sec--first { padding-top: 8px; }
.sec:last-child { padding-bottom: 64px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.sec-title { margin-top: 12px; font-family: var(--font-display); font-weight: 900; font-stretch: 90%; font-size: 34px; line-height: 1; text-transform: uppercase; color: #fff; }
.sec-title span, .cta-title span {
  background: linear-gradient(90deg, #cdd2ff 0%, #9caafb 22%, #6f8cff 55%, #4c65fa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-text { margin-top: 8px; max-width: 560px; font-size: 16px; font-weight: 300; color: var(--text-2); }
.hx-tri, .eyebrow .hx-tri { width: 7px; height: 7px; }

/* Grids */
.grid { display: grid; gap: 13px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hl-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hl-grid--4 .hl-card, .hl-grid--2 .hl-card { height: 186px; }
.hl-grid--2 .hl-card { height: 240px; }
.sec .hl-grid { margin-top: 0; }

/* Boxes (text cards in the .hc style) */
.box {
  position: relative; padding: 22px 26px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.box-title { margin-top: 12px; font-family: var(--font-display); font-weight: 900; font-stretch: 88%; font-size: 21px; line-height: 1.05; text-transform: uppercase; color: #fff; }
.box-text { margin-top: 8px; font-size: 14px; font-weight: 300; line-height: 20px; color: var(--text-2); }
.box .hc-sub { margin-top: 10px; }
.steps { counter-reset: none; }

/* Logo tiles */
.hl-card--logo { display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, rgba(61, 123, 255, 0.22), transparent 62%), #0b0f18; }
.hl-card--logo .hl-logo { width: 72px; height: 72px; margin-top: -24px; border-radius: 14px; object-fit: contain; }
.hl-mark { display: grid; place-items: center; background: linear-gradient(135deg, #1d3a7a, #3d7bff); font-family: var(--font-display); font-weight: 900; font-size: 32px; color: #fff; border-radius: 14px; }
.hl-card[hidden] { display: none; }

/* Outline button variant */
.hl-all { cursor: pointer; background: transparent; }
.hl-all--wide { width: auto; padding: 0 16px; }

/* Software products */
.prod { display: flex; flex-direction: column; }
.prod-head { display: flex; justify-content: space-between; align-items: flex-start; }
.prod-logo { width: 56px; height: 56px; border-radius: 12px; }
.prod .box-title { margin-top: 16px; }
.prod .box-text { margin-top: 10px; }
.checks { display: grid; gap: 6px; margin: 14px 0; }
.checks li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 300; color: var(--text-2); }
.checks .icon { width: 14px; height: 14px; margin-top: 3px; color: var(--blue-text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 11px; color: var(--text-2); }
.chip--status { border-color: var(--blue); color: #fff; background: rgba(17, 29, 52, 0.85); box-shadow: 0 0 10px rgba(51, 120, 255, 0.35); }
.prod-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }

/* Work filter */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; }
.filter-bar[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  height: 35px; padding: 0 16px; border-radius: 6px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: var(--text-2); font-size: 12px; font-weight: 600;
}
.filter-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.filter-btn[aria-pressed="true"] { background: #fff; border-color: #fff; color: #0b0e17; }
.filter-status { margin-left: auto; font-size: 11.5px; color: var(--text-3); }

/* Closing call to action */
.sec--cta { padding-bottom: 64px; }
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 44px 48px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
}
.cta-img {
  position: absolute; top: 0; right: 0; height: 100%; width: 62%; object-fit: cover; object-position: 60% 40%; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%); mask-image: linear-gradient(90deg, transparent 0, #000 40%);
  opacity: 0.75;
}
.cta-title { margin-top: 14px; max-width: 620px; font-family: var(--font-display); font-weight: 900; font-stretch: 90%; font-size: 40px; line-height: 1; text-transform: uppercase; color: #fff; }
.cta-text { margin-top: 12px; font-size: 15px; font-weight: 300; color: var(--text-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 13px; align-items: start; }
.inquiry { display: grid; gap: 18px; padding: 28px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: #d4d8e0; }
.req { color: var(--blue-text); }
.optional { letter-spacing: 0.05em; text-transform: none; color: var(--text-3); }
.field input:not([type="checkbox"]), .field select, .field textarea, .look select, .look input, .look-input {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border-radius: 6px; border: 1px solid var(--border); background: #05080f; font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select, .look select {
  appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, #c3c9d4 50%), linear-gradient(135deg, #c3c9d4 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option, .look select option { background: var(--surface); }
.field input:focus, .field select:focus, .field textarea:focus, .look select:focus, .look input:focus, .look-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61, 123, 255, 0.3); }
.field [aria-invalid="true"] { border-color: var(--danger) !important; }
.field-hint { font-size: 12px; color: var(--text-3); }
.field-error { font-size: 12.5px; color: var(--danger); }
.field-error:empty { display: none; }
.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.field-check label { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 300; color: var(--text-2); }
.field-check .field-error { grid-column: 2; }
.inquiry > .hx-btn { justify-self: start; border: 0; cursor: pointer; }
.form-note { margin-top: -6px; font-size: 12px; color: var(--text-3); }
.form-result { display: grid; gap: 8px; padding: 18px 20px; border: 1px solid var(--blue); border-radius: 8px; background: rgba(17, 29, 52, 0.6); }
.form-result[hidden] { display: none; }
.form-result-title { font-family: var(--font-display); font-weight: 900; font-stretch: 88%; font-size: 18px; text-transform: uppercase; }
.form-result p { font-size: 13.5px; font-weight: 300; color: var(--text-2); }
.form-result strong { color: #fff; font-weight: 600; }
.form-result a { color: var(--blue-text); }
.copy-status { font-size: 12.5px; color: var(--text-2); }
.contact-aside .box-title { margin-top: 14px; }
.channel-list { margin-top: 16px; border-top: 1px solid var(--line); }
.channel-list a { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.channel-list .icon { width: 20px; height: 20px; color: #cdd3de; }
.channel-list span { display: grid; font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.channel-list strong { font-size: 14px; font-weight: 500; color: #fff; }
.channel-list a:hover strong { color: var(--blue-text); }

/* Legal */
.legal { max-width: 860px; margin: 0 auto; padding: 131px 32px 72px; }
.legal h1 { margin-top: 14px; font-family: var(--font-display); font-weight: 900; font-stretch: 90%; font-size: 48px; line-height: 1; text-transform: uppercase; }
.legal .last-updated { margin-top: 12px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.legal section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h2 { font-family: var(--font-display); font-weight: 900; font-stretch: 88%; font-size: 20px; text-transform: uppercase; }
.legal h3 { margin-top: 18px; font-size: 15px; font-weight: 600; }
.legal p, .legal ul { margin-top: 10px; font-size: 17px; font-weight: 300; color: var(--text-2); }
.legal li + li { margin-top: 4px; }
.legal strong { color: #fff; font-weight: 600; }
.legal a { color: var(--blue-text); overflow-wrap: anywhere; }
.legal-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Inner pages: tablet & mobile ---------- */
@media (max-width: 1279px) {
  .sec { padding-inline: clamp(16px, 4.56vw, 68px); }
  .grid-4, .hl-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1179px) {
  .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .grid-2, .hl-grid--2 { grid-template-columns: 1fr; }
  .hx--page { min-height: 0; }
  .hx--page .hx-bg img { transform: none; }
  .hx--page .hx-bg { -webkit-mask-image: none; mask-image: none; }
  .hx--page .hx-bg::after {
    mix-blend-mode: normal;
    background: linear-gradient(90deg, rgba(4, 7, 13, 0.92), rgba(4, 7, 13, 0.62)), linear-gradient(0deg, var(--bg), transparent 30%);
  }
  .hx--page .hx-title { font-size: clamp(30px, 8.6vw, 60px); overflow-wrap: anywhere; }
  .hx-eyebrow { flex-wrap: wrap; row-gap: 6px; }
  .hx--page .hx-inner { max-width: none; }
  .sec { padding-top: 44px; }
  .sec-title { font-size: 28px; }
  .cta { padding: 32px 24px; }
  .cta-img { width: 100%; opacity: 0.35; }
  .cta-title { font-size: 30px; }
  .hl-grid--2 .hl-card { height: 220px; }
  .legal { padding: calc(var(--header-h) + 40px) 16px 56px; }
  .legal h1 { font-size: 34px; }
}
@media (max-width: 559px) {
  .grid-4, .hl-grid--4 { grid-template-columns: 1fr; }
  .hl-grid--4 .hl-card { height: 180px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .inquiry { padding: 20px 16px; }
  .hx-text br, .cta-title br { display: none; }
  .hx-eyebrow { letter-spacing: 0.3em; gap: 0.9em; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Footer ---------- */
.site-footer { background: #090e18; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.ft {
  max-width: 1491px; margin-inline: auto; min-height: 97px;
  padding: 12px 73px 12px 72px;
  display: grid; grid-template-columns: 289px 1fr auto auto; align-items: center; column-gap: 32px;
}
.ft-logo { position: relative; display: inline-flex; align-items: center; padding-left: 36px; color: #fff; text-decoration: none; }
.ft-mark { position: absolute; left: 0; top: -2px; width: 32px; height: 32px; }
.ft-logo span { font-family: var(--font-display); font-weight: 900; font-stretch: 100%; font-size: 16px; text-transform: uppercase; letter-spacing: 0.01em; }
.ft-tag { display: flex; align-items: center; gap: 1.1em; margin: 3px 0 0 36px; font-size: 9px; letter-spacing: 0.42em; text-transform: uppercase; color: #a9b0bd; }
.ft-tag svg { width: 7px; height: 7px; }
.ft-nav { margin-left: -32px; }
.ft-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ft-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 17.5px; font-size: 11.5px; color: #c9cfda; text-decoration: none; }
.ft-nav li:first-child a { padding-left: 0; }
.ft-nav a:hover, .ft-nav a[aria-current="page"] { color: #fff; }
.ft-social .icon { width: 20px; height: 20px; }
.ft-legal { font-size: 11px; color: #c9cfda; line-height: 1.75; }
.ft-legal a { color: #c9cfda; text-decoration: none; margin-right: 16px; display: inline-block; }
.ft-legal a:last-child { margin-right: 0; }
.ft-legal a:hover { color: #fff; }

@media (max-width: 1179px) {
  .ft { grid-template-columns: 1fr auto; row-gap: 1rem; padding: 2rem var(--gutter); }
  .ft-nav { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .ft-nav ul { flex-wrap: wrap; }
  .ft-legal { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  .ft { grid-template-columns: 1fr; }
  .ft-nav { grid-row: auto; }
  .ft-nav ul { gap: 0 4px; }
  .ft-nav a { padding: 0 12px 0 0; }
  .ft-social { margin-left: -10px; }
}


/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 64px; }
.docs-nav { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; }
.docs-toc { padding: 18px 20px; }
.docs-toc summary { cursor: pointer; list-style: none; }
.docs-toc summary::-webkit-details-marker { display: none; }
.docs-toc ol { list-style: none; margin: 0; padding: 0; }
.docs-toc nav > ol { margin-top: 12px; }
.docs-toc li a { display: block; padding: 6px 0; font-size: 13px; color: var(--text-2); text-decoration: none; border-left: 2px solid transparent; padding-left: 10px; margin-left: -12px; }
.docs-toc li li a { padding-left: 22px; font-size: 12.5px; color: var(--text-3); }
.docs-toc a:hover, .docs-toc a[aria-current="true"] { color: #fff; }
.docs-toc a[aria-current="true"] { border-left-color: var(--blue); }
.docs-body { min-width: 0; font-size: 17px; font-weight: 300; line-height: 1.7; color: var(--text-2); }
.docs-body > p, .docs-body > ul, .docs-body > ol { max-width: 75ch; } /* comfortable reading measure */
.docs-body > * + * { margin-top: 14px; }
.docs-body h2 { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--font-display); font-weight: 900; font-stretch: 88%; font-size: 26px; line-height: 1.1; text-transform: uppercase; color: #fff; }
.docs-body > h2:first-of-type { margin-top: 32px; }
.docs-body h3 { margin-top: 32px; font-size: 18px; font-weight: 600; color: #fff; }
.docs-body h4 { margin-top: 20px; font-size: 15px; font-weight: 600; color: #fff; }
.docs-body strong { color: #fff; font-weight: 600; }
.docs-body a { color: var(--blue-text); overflow-wrap: anywhere; }
.docs-body ul, .docs-body ol { padding-left: 22px; }
.docs-body li + li { margin-top: 4px; }
.docs-body code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.88em; }
.docs-body :not(pre) > code { padding: 2px 6px; border-radius: 4px; background: #111827; border: 1px solid var(--line); color: #dbe4ff; overflow-wrap: anywhere; }
.docs-body pre { margin: 0; padding: 16px 18px; overflow-x: auto; border-radius: 8px; background: #070a12; border: 1px solid var(--border); font-size: 13px; line-height: 1.6; color: #d7dcea; }
.docs-body div.highlighter-rouge { margin-top: 14px; }
.docs-body table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.docs-body th, .docs-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.docs-body th { color: #fff; font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.docs-body blockquote { margin: 14px 0 0; padding: 12px 16px; border-left: 3px solid var(--blue); background: var(--surface); }
.info-box { padding: 18px 22px; border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: 8px; background: var(--surface); }
.info-box.warning { border-left-color: #f5b74a; }
.info-box.success { border-left-color: #4ad3a0; }
.info-box h4 { margin: 0 0 6px; }
/* Rouge (code highlighting) */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs, .highlight .cp { color: #6c7894; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kr, .highlight .kt, .highlight .kc { color: #9d8bff; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .si { color: #8fd3a8; }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh { color: #f5b74a; }
.highlight .nc, .highlight .nn, .highlight .nt { color: #7db4ff; }
.highlight .nf, .highlight .na { color: #f0a6f0; }
.highlight .o, .highlight .p { color: #b4bdd0; }
@media (max-width: 1179px) {
  .docs { grid-template-columns: 1fr; gap: 16px; }
  .docs-nav { position: static; max-height: none; }
}

/* ---------- Store & account (Phase 1 mockup) ---------- */
.nav-account { display: grid; place-items: center; width: 40px; height: 44px; color: #cdd3de; text-decoration: none; }
.nav-account:hover { color: #fff; }
.nav-account .icon { width: 20px; height: 20px; }
.nav-account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mock-banner { display: flex; gap: 10px; align-items: baseline; margin-bottom: 20px; padding: 10px 14px; border: 1px dashed rgba(245, 183, 74, 0.6); border-radius: 6px; background: rgba(245, 183, 74, 0.06); font-size: 13px; color: #f0d9ad; }
.mock-banner strong { font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: #f5b74a; }
.sec--top { padding-top: calc(var(--header-h) + 36px); }

.store-bar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-bottom: 10px; }
.store-search { position: relative; flex: 1 1 280px; max-width: 420px; }
.store-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); }
.store-search input, .store-sort select {
  width: 100%; height: 38px; padding: 0 14px 0 36px; border-radius: 6px;
  border: 1px solid var(--border); background: #05080f; font-size: 13px;
}
.store-sort { margin-left: auto; }
.store-sort select {
  padding-left: 12px; padding-right: 32px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #c3c9d4 50%), linear-gradient(135deg, #c3c9d4 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.store-search input:focus, .store-sort select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61, 123, 255, 0.3); }
.store-bar + .filter-status { margin: 0 0 14px; text-align: right; }
.store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.store-empty { padding: 40px 0; text-align: center; color: var(--text-3); }
.store-empty[hidden] { display: none; }
.store-more { display: flex; justify-content: center; margin-top: 20px; }
.store-more button:disabled { opacity: 0.5; cursor: default; }

.sc { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); transition: border-color 0.3s; }
.sc[hidden] { display: none; }
.sc:hover { border-color: rgba(143, 120, 255, 0.55); }
.sc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #070a12; }
.sc-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); transition: transform 0.6s var(--ease); }
.sc:hover .sc-media img { transform: scale(1.42); }
.sc-kind { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 4px; background: rgba(4, 7, 13, 0.8); border: 1px solid var(--line-strong); font-size: 9.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: #e1e4ea; }
.sc-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.sc-meta { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-3); }
.sc-title { font-family: var(--font-display); font-weight: 900; font-stretch: 88%; font-size: 18px; line-height: 1.1; text-transform: uppercase; }
.sc-title a { text-decoration: none; color: #fff; }
.sc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; }
.sc-price { font-size: 16px; font-weight: 600; color: #fff; }
.sc-buy { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 6px; background: #fff; color: #0b0e17; font-size: 13px; font-weight: 600; }
.sc-buy .icon { width: 13px; height: 13px; transition: transform 0.25s var(--ease); }
.sc:hover .sc-buy .icon { transform: translateX(3px); }

.crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.item { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.item-frame { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #070a12; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.item-frame img { width: 100%; }
.item-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; }
.item-facts li { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 300; color: var(--text-2); }
.item-facts .icon { width: 14px; height: 14px; color: var(--blue-text); }
.item-da { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--blue-text); text-decoration: none; }
.item-da .icon { width: 14px; height: 14px; }
/* Automated render: choices, and the preview on the buyer's Steam background (615×930 = Mid 506 + gap 9 + Tall 100;
   assets/js/steam-artwork.js places the layers in that coordinate space). */
.look { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.look-field { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.look input[type="color"] { padding: 4px; cursor: pointer; }
/* Live preview of the personalised render: the two Steam showcase parts on the buyer's background, in a card that
   takes on the background's colours (blurred copy, --scene-bg). Never wider than 615px: the render is 615×930. */
.look--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 84px; }
.sa-preview { margin-top: 20px; padding: 0; overflow: hidden; }
.sa-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.sa-status { font-size: 14px; color: var(--text-2); }
.sa-scene { position: relative; isolation: isolate; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(120% 80% at 50% 0%, #142038 0%, #070a12 70%); }
.sa-scene::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: var(--scene-bg, none) center / cover; filter: blur(36px) saturate(1.3) brightness(0.45); opacity: 0.9; transition: opacity 0.4s; }
.sa-stage { position: relative; width: min(100%, 615px); aspect-ratio: 615 / 930; overflow: hidden; container-type: size; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 70px rgba(0, 0, 0, 0.65); }
.sa-bg > *, .sa-layer { position: absolute; left: 0; top: 0; max-width: none; }
.sa-layer { width: 100%; height: 100%; }
.sa-look { pointer-events: none; }
/* Steam's gap between the Mid (506px) and Tall (100px) parts. */
.sa-gap { position: absolute; top: 0; bottom: 0; left: calc(506 / 615 * 100%); width: calc(9 / 615 * 100%); background: rgba(10, 13, 22, 0.92); }
.sa-note { padding: 12px 20px 16px; font-size: 12px; color: var(--text-3); }
.item-buy { display: grid; gap: 16px; padding: 26px; position: sticky; top: calc(var(--header-h) + 16px); }
.item-title { margin-top: -6px; font-family: var(--font-display); font-weight: 900; font-stretch: 90%; font-size: 40px; line-height: 0.95; text-transform: uppercase; color: #fff; }
.item-price { font-size: 28px; font-weight: 600; color: #fff; }
.item-price small { font-size: 12px; font-weight: 300; color: var(--text-3); }
.opt { margin: 0; padding: 0; border: 0; min-width: 0; }
.opt legend, .opt-label { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: #d4d8e0; padding: 0; }
.opt-hint { margin-top: 3px; font-size: 13px; font-weight: 300; color: var(--text-3); }
.opt-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.seg span { display: grid; place-items: center; gap: 1px; min-height: 44px; padding: 6px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; font-weight: 500; text-align: center; color: var(--text-2); }
.seg small { font-size: 10.5px; color: var(--text-3); }
.seg input:checked + span { border-color: #fff; background: #fff; color: #0b0e17; }
.seg input:checked + span small { color: #4b5263; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 12px; color: var(--text-3); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 42px; height: 24px; border-radius: 12px; background: #1a2030; border: 1px solid var(--line-strong); transition: background-color 0.2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #c3c9d4; transition: transform 0.2s var(--ease); }
.switch input:checked + .switch-ui { background: var(--blue); border-color: var(--blue); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Customize panel (automated artworks): extras, each a fieldset charged once when changed. */
.customize-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(61, 123, 255, 0.12), rgba(61, 123, 255, 0.04)); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s; }
.customize-btn:hover { border-color: var(--blue); }
.customize-btn strong { display: block; font-size: 17px; }
.customize-btn small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }
.customize-btn .hx-tri { flex: none; width: 10px; height: 10px; margin: 0; transform: rotate(180deg); transition: transform 0.2s var(--ease); }
.customize-btn[aria-expanded="true"] .hx-tri { transform: none; }
.customize { display: grid; gap: 14px; }
.customize-intro { font-size: 14px; color: var(--text-2); }
.extra { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: 8px; }
.extra legend { padding: 0 6px; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: #d4d8e0; }
.extra-price { margin-left: 4px; letter-spacing: 0.05em; text-transform: none; color: var(--blue-text); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.look-input[type="file"] { padding: 9px 12px; }
.look-more { display: grid; gap: 6px; }
.cart { display: grid; gap: 8px; padding: 14px 16px; border-radius: 8px; background: #05080f; border: 1px solid var(--border); }
.cart-lines { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.cart-lines li { display: flex; align-items: center; gap: 8px; }
.cart-lines li > span:first-child { flex: 1; min-width: 0; }
.cart-lines li > span:last-child { font-variant-numeric: tabular-nums; }
.cart-remove { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--text-3); font-size: 16px; line-height: 1; cursor: pointer; }
.cart-remove:hover { color: #fff; border-color: #fff; }
.cart-total { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--border); font-size: 17px; }
.once { display: grid; gap: 6px; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(245, 183, 74, 0.55); background: rgba(245, 183, 74, 0.08); font-size: 14px; color: #f3e2bf; }
.once-title { font-weight: 600; color: #f5cf86; }
.once-name strong { color: #fff; word-break: break-all; }
.nowrap { white-space: nowrap; }
.delivery { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 6px; background: rgba(17, 29, 52, 0.6); border: 1px solid rgba(61, 123, 255, 0.4); font-size: 14px; color: #dbe4ff; }
.delivery .icon { width: 15px; height: 15px; color: var(--blue-text); }
.item-cta { width: 100%; border: 0; cursor: pointer; gap: 8px; }
.item-cta .icon { margin-left: 10px; }
.pay-note { margin-top: -8px; font-size: 12px; text-align: center; color: var(--text-3); }

.auth { min-height: 60vh; }
.auth-wrap { display: grid; place-items: center; }
.auth-status { font-size: 14px; color: var(--text-2); }
.auth-status:empty { display: none; }
.auth-status.is-error { color: var(--danger); }
.auth-box { display: grid; gap: 16px; width: 100%; max-width: 440px; padding: 30px; }
.auth-title { font-family: var(--font-display); font-weight: 900; font-stretch: 90%; font-size: 40px; line-height: 0.95; text-transform: uppercase; }
.auth-title span { background: linear-gradient(90deg, #cdd2ff 0%, #9caafb 22%, #6f8cff 55%, #4c65fa 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-cta { width: 100%; border: 0; cursor: pointer; }
.auth-link, .auth-switch a, .auth .field-check label a { color: var(--blue-text); font-size: 14px; }
.auth-link--right { justify-self: end; margin-top: -8px; }
.auth-switch { font-size: 14px; text-align: center; color: var(--text-2); }

.acct { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
.acct-side { display: grid; gap: 6px; justify-items: start; }
.acct-avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #7657f5, #3d7bff); font-family: var(--font-display); font-weight: 900; font-size: 24px; }
.acct-avatar { position: relative; overflow: hidden; }
.acct-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acct-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(169, 150, 255, 0.6); background: rgba(118, 87, 245, 0.16); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet-text); }
.acct-side .box-title { margin-top: 10px; }
.acct-nav { display: grid; width: 100%; margin: 14px 0; border-top: 1px solid var(--line); }
.acct-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); text-decoration: none; }
.acct-nav a:hover, .acct-nav a[aria-current="page"] { color: #fff; }
.acct-main .sec-title { margin: 12px 0 18px; }
.lib, .adm { display: grid; gap: 10px; }
.lib-row, .adm-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 14px; }
.adm-row[hidden] { display: none; }
.lib-thumb-link { display: block; }
.lib-info .box-title a { color: inherit; text-decoration: none; }
.lib-info .box-title a:hover { text-decoration: underline; }
.lib-thumb { width: 150px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.lib-info .box-title { margin-top: 6px; }
.lib-info .box-text { margin-top: 4px; }
.lib-info .hc-sub { margin-top: 0; font-size: 9.5px; letter-spacing: 0.2em; }
.status { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; border: 1px solid var(--line-strong); color: var(--text-2); }
.status--ready { border-color: rgba(74, 211, 160, 0.6); color: #8fe3c0; }
.status--progress { border-color: rgba(245, 183, 74, 0.6); color: #f5cf86; }
.status--rendering { border-color: rgba(61, 155, 255, 0.6); color: var(--blue-text); font-variant-numeric: tabular-nums; }
.status--delivered { border-color: rgba(125, 180, 255, 0.6); color: var(--blue-text); }
.lib-dl { height: 36px; padding: 0 14px; gap: 10px; font-size: 14px; border: 0; cursor: pointer; }
.lib-row button:disabled, .adm-row button:disabled, .item-cta:disabled { opacity: 0.4; cursor: not-allowed; }
.adm-actions { display: grid; gap: 8px; }
.adm-actions input[type="file"] { max-width: 240px; font-size: 14px; color: var(--text-2); }
.adm-note { font-style: italic; }

@media (max-width: 1279px) {
  .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1179px) {
  .js .nav-account { display: inline-flex; width: auto; gap: 10px; color: var(--text); font-size: 15px; }
  .js .nav-account-label { position: static; width: auto; height: auto; clip: auto; }
  .item { grid-template-columns: 1fr; }
  .item-buy { position: static; }
  .acct { grid-template-columns: 1fr; }
  .lib-row, .adm-row { grid-template-columns: 120px minmax(0, 1fr); }
  .lib-thumb { width: 120px; height: 80px; }
  .lib-row .status, .adm-row .status { justify-self: start; }
}
@media (max-width: 899px) {
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-title, .auth-title { font-size: 32px; }
  .store-sort { margin-left: 0; }
  .sec--top { padding-top: calc(var(--header-h) + 24px); }
}
@media (max-width: 559px) {
  .store-grid { grid-template-columns: 1fr; }
  .store-search { max-width: none; }
  .item-buy, .auth-box { padding: 20px 16px; }
  .lib-row, .adm-row { grid-template-columns: 1fr; }
  .lib-thumb { width: 100%; height: 140px; }
}

/* ---------- Wide screens (>1491px): content stays at the reference width, margins absorb the rest ---------- */
@media (min-width: 1492px) {
  .hx-bg img, .hx--page .hx-bg {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 88%, transparent), linear-gradient(180deg, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 88%, transparent), linear-gradient(180deg, #000 86%, transparent);
  }
  .hx--page .hx-bg img { -webkit-mask-image: none; mask-image: none; }
}

/* Short pages keep the footer at the bottom of the screen */
body { display: flex; flex-direction: column; min-height: calc(100vh / var(--z, 1)); }
main { flex: 1 0 auto; width: 100%; }

.discord-note { margin-top: 18px; }

/* ---------- Store: Steam Artwork ---------- */
.rarity { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--text-2); background: rgba(4, 7, 13, 0.8); }
.rarity--rare { border-color: rgba(125, 180, 255, 0.7); color: #9cc7ff; }
.rarity--epic { border-color: rgba(169, 150, 255, 0.75); color: #c3b5ff; }
.rarity--legendary { border-color: rgba(245, 183, 74, 0.8); color: #f7cd7e; }
.sc-owned { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 4px; background: rgba(4, 7, 13, 0.85); border: 1px solid rgba(74, 211, 160, 0.6); font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: #8fe3c0; }
.owned-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(74, 211, 160, 0.5); background: rgba(74, 211, 160, 0.07); font-size: 14px; color: #c9f0de; }
.owned-note .icon { flex: none; margin-top: 3px; color: #8fe3c0; }
.owned-note a { color: #fff; }
.gift-page { display: grid; gap: 16px; max-width: 640px; margin-inline: auto; padding: 32px; }
.gift-img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); }
.gift-message { margin: 0; padding: 14px 16px; border-left: 3px solid var(--blue); background: #0d1320; font-size: 17px; line-height: 1.6; white-space: pre-line; }
.gift-page .hx-btn { justify-self: start; }
.gift { display: grid; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; }
.gift .field textarea { min-height: 90px; }
.sc-media .rarity { position: absolute; right: 10px; top: 10px; padding: 2px 8px; font-size: 10px; }

button.item-frame { display: block; width: 100%; padding: 0; color: inherit; font: inherit; cursor: zoom-in; }
.item-loading { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 4px; background: rgba(4, 7, 13, 0.8); font-size: 12px; color: var(--text-2); }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; font-size: 14px; }
.item-meta a { color: var(--blue-text); text-decoration: none; }
.item-meta a:hover { text-decoration: underline; }
.item-meta .item-da { margin-top: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags a { display: inline-block; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 12px; color: var(--text-2); text-decoration: none; }
.tags a:hover { border-color: var(--blue); color: #fff; }

.was { font-size: 0.6em; font-weight: 400; color: var(--text-3); }
.was:empty { display: none; }
.weekly-flag { display: inline-flex; align-self: start; justify-self: start; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(245, 183, 74, 0.7); background: rgba(245, 183, 74, 0.08); font-size: 12px; font-weight: 600; color: #f7cd7e; }

.lightbox { width: min(1400px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: #05080f; overflow: visible; }
.lightbox::backdrop { background: rgba(2, 4, 8, 0.86); }
.lightbox img { display: block; width: 100%; max-height: 92vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: -18px; right: -18px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #0b0f19; color: #fff; cursor: pointer; }
@media (max-width: 559px) { .lightbox-close { top: 6px; right: 6px; } }

.packages { align-items: stretch; }
.package { display: flex; flex-direction: column; }
.package-price { margin-top: 10px; font-size: 32px; font-weight: 600; line-height: 1; color: #fff; }
.package .checks { flex: 1; }
.package-cta { width: 100%; }
.package--standard { border-color: rgba(120, 140, 255, 0.55); }

.weekly { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: center; padding: 14px; text-decoration: none; color: inherit; }
.weekly:hover { border-color: rgba(120, 140, 255, 0.55); }
.weekly-img { width: 100%; height: auto; border-radius: 6px; }
.weekly-title { margin-top: 6px; font-family: var(--font-display); font-weight: 900; font-stretch: 90%; font-size: 34px; line-height: 1; text-transform: uppercase; color: #fff; }
.weekly-price { margin: 14px 0 18px; font-size: 28px; color: #fff; }
.weekly-price small { font-size: 12px; color: var(--text-3); }
@media (max-width: 899px) { .weekly { grid-template-columns: 1fr; } .weekly-title { font-size: 26px; } }

/* Account: invite code + coupons */
.acct-extras { margin-top: 20px; }
.invite-code { margin: 14px 0 12px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 26px; font-weight: 600; letter-spacing: 0.18em; color: #fff; }
.coupons { display: grid; gap: 8px; margin-top: 14px; }
.coupon { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 14px; color: var(--text-2); }
.coupon strong { color: #fff; font-size: 16px; }
.coupon--active { border-color: rgba(74, 211, 160, 0.6); }
.coupon--active strong { color: #8fe3c0; }
.coupon--used, .coupon--expired { opacity: 0.55; }

/* Price tag with a time-limited sale (see _includes/steam-artwork/price-tag.html) */
.pt { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.pt-was { font-size: 0.75em; font-weight: 400; color: var(--text-3); }
.pt-badge { align-self: center; padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(245, 183, 74, 0.7); background: rgba(245, 183, 74, 0.08); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: #f7cd7e; white-space: nowrap; }
.pt:not(.is-sale) .pt-sale, .pt:not(.is-sale) .pt-was, .pt:not(.is-sale) .pt-badge, .pt.is-sale .pt-regular, .pt:not(.is-sale) .pt-later { display: none; }
.pt-later { flex-basis: 100%; font-size: 13px; font-weight: 400; color: var(--text-3); }
.sale-note { margin-top: -8px; font-size: 13px; color: #f7cd7e; }
.package-price .pt-badge { font-size: 12px; }

/* Ratings and reviews */
.sc-rating { margin-left: 8px; letter-spacing: 0; color: #f7cd7e; }
.reviews { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px; align-items: start; }
.reviews-side { display: grid; gap: 12px; position: sticky; top: calc(var(--header-h) + 16px); }
.reviews-avg { display: flex; align-items: baseline; gap: 12px; }
.reviews-avg strong { font-size: 44px; font-weight: 600; line-height: 1; color: #fff; }
.stars { color: #f7cd7e; letter-spacing: 0.08em; }
.reviews-avg .stars { font-size: 22px; }
.reviews-signin { width: 100%; }
.review-form { display: grid; gap: 14px; }
.rate { margin: 0; padding: 0; border: 0; }
.rate legend { padding: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: #d4d8e0; }
.rate-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; margin-top: 6px; }
.rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-stars label { width: 40px; height: 44px; display: grid; place-items: center; cursor: pointer; font-size: 30px; color: #3a4152; }
.rate-stars label::before { content: "★"; }
.rate-stars input:checked ~ label, .rate-stars label:hover, .rate-stars label:hover ~ label { color: #f7cd7e; }
.rate-stars input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: -4px; border-radius: 6px; }
.link-btn { justify-self: start; padding: 0; border: 0; background: none; font-size: 14px; color: var(--danger); text-decoration: underline; cursor: pointer; }
.reviews-list { display: grid; gap: 12px; }
.reviews-list:empty { display: none; }
.review { display: grid; gap: 6px; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15px; color: #fff; }
.review-verified { padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(74, 211, 160, 0.6); font-size: 12px; font-weight: 600; color: #8fe3c0; }
.review-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--text-3); }
.review-body { font-size: 15px; font-weight: 300; line-height: 1.55; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 899px) { .reviews { grid-template-columns: 1fr; } .reviews-side { position: static; } }
