/* ============================================================
   Gaming brand: components
   Everything here is either a gm-* class or sits under
   :root[data-theme="gaming"], so it cannot reach the competitions
   site. Tokens are in gaming/tokens.css. Mobile first: the base rules
   are the 390px phone; min-width queries add the desktop.

   Sections
   1. Base             7. Product cards and grids
   2. Layout & type    8. Painters: cards, directory, filters
   3. Buttons, chips   9. Painter profile, gallery, lightbox
   4. Header & nav    10. Tiers, reviews, report, disclosure
   5. Footer          11. Forms, uploads, status, dashboard
   6. Home            12. Shared tokens
   ============================================================ */

/* ---- 1. Base ------------------------------------------------ */
:root[data-theme="gaming"] body {
  background: var(--gm-ground);
  color: var(--gm-text);
  font-family: var(--gm-font-body);
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="gaming"] ::selection { background: var(--gm-verdigris-fill); color: var(--gm-on-accent); }
:root[data-theme="gaming"] :focus-visible { outline: 2px solid var(--gm-focus); outline-offset: 3px; }
:where(:root[data-theme="gaming"]) a { color: inherit; } /* zero extra specificity, so .gm-btn-*, .gm-skip etc. keep their own colour */

.gm-skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.75rem 1rem; border-radius: var(--gm-r-sm);
  background: var(--gm-bone); color: var(--gm-on-accent); font-weight: 600; text-decoration: none;
}
.gm-skip:focus { top: 1rem; }

.gm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- 2. Layout & type -------------------------------------- */
.gm-wrap { width: 100%; max-width: var(--gm-max); margin-inline: auto; padding-inline: var(--gm-gutter); }
.gm-wrap-narrow { max-width: var(--gm-narrow); }
.gm-section { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.gm-section-tight { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.gm-band { background: var(--gm-ground-alt); border-block: 1px solid var(--gm-line-soft); }

.gm-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gm-brass); margin: 0 0 0.75rem;
}
.gm-eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; opacity: 0.7; }

.gm-display, .gm-h1, .gm-h2, .gm-h3 {
  font-family: var(--gm-font-display); color: var(--gm-bone);
  font-weight: 600; letter-spacing: 0.01em; margin: 0; text-wrap: balance;
}
.gm-display { font-size: clamp(2.25rem, 8vw, 4rem); line-height: 1.05; }
.gm-h1 { font-size: clamp(1.875rem, 6vw, 2.75rem); line-height: 1.1; overflow-wrap: anywhere; }
.gm-h2 { font-size: clamp(1.375rem, 4vw, 1.875rem); line-height: 1.2; }
.gm-h3 { font-size: 1.125rem; line-height: 1.3; }
.gm-lede { font-size: clamp(1rem, 2.4vw, 1.1875rem); line-height: 1.65; color: var(--gm-text); max-width: 38rem; margin: 0; }
.gm-muted { color: var(--gm-muted); }
.gm-small { font-size: 0.875rem; }
.gm-prose { line-height: 1.7; max-width: 42rem; }
.gm-prose p { margin: 0 0 1em; }
.gm-prose p:last-child { margin-bottom: 0; }

.gm-link { color: var(--gm-verdigris); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gm-link:hover { color: var(--gm-bone); }

.gm-sechead { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.gm-sechead > div { min-width: 0; }
.gm-sechead .gm-lede { margin-top: 0.5rem; }

.gm-pagehead { padding-block: clamp(1.75rem, 5vw, 3rem) clamp(1.25rem, 3vw, 2rem); border-bottom: 1px solid var(--gm-line-soft); background:
  radial-gradient(60rem 18rem at 15% -6rem, rgba(201, 171, 115, 0.07), transparent 70%), var(--gm-ground); }
.gm-pagehead-row { display: flex; gap: 1.25rem 2rem; align-items: end; justify-content: space-between; flex-wrap: wrap; }
.gm-pagehead-row > :first-child { min-width: 0; flex: 1 1 20rem; }
.gm-pagehead .gm-lede { margin-top: 0.75rem; }

.gm-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--gm-muted); }
.gm-crumbs a { display: inline-flex; align-items: center; min-height: 1.5rem; color: var(--gm-muted); text-decoration: none; }
.gm-crumbs a:hover { color: var(--gm-bone); text-decoration: underline; text-underline-offset: 3px; }
.gm-crumbs i { font-size: 0.5625rem; color: var(--gm-faint); }
.gm-crumbs [aria-current] { color: var(--gm-text); }

.gm-hairline { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--gm-brass-dim), transparent); }

/* ---- 3. Buttons, chips, pills ------------------------------ */
.gm-btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 2.75rem; padding: 0.7rem 1.25rem; border-radius: var(--gm-r-sm);
  font: 600 0.9375rem/1.1 var(--gm-font-body); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.gm-btn:active { transform: translateY(1px); }
.gm-btn-primary { background: var(--gm-verdigris-fill); color: var(--gm-on-accent); }
.gm-btn-primary:hover { background: var(--gm-verdigris-hover); }
.gm-btn-ghost { background: transparent; color: var(--gm-bone); border-color: var(--gm-line-strong); }
.gm-btn-ghost:hover { border-color: var(--gm-bone); background: rgba(255, 255, 255, 0.04); }
.gm-btn-quiet { background: transparent; color: var(--gm-verdigris); padding-inline: 0.25rem; min-height: 2.25rem; }
.gm-btn-quiet:hover { color: var(--gm-bone); }
.gm-btn-danger { background: transparent; color: var(--gm-danger); border-color: rgba(242, 149, 138, 0.45); }
.gm-btn-danger:hover { background: var(--gm-danger-tint); }
.gm-btn-sm { min-height: 2.25rem; padding: 0.45rem 0.85rem; font-size: 0.8125rem; }
.gm-btn-lg { min-height: 3.25rem; padding: 0.9rem 1.6rem; font-size: 1rem; }
.gm-btn-block { width: 100%; }
.gm-btn[disabled], .gm-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.gm-btnrow { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.gm-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }
.gm-tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid var(--gm-line);
  background: rgba(255, 255, 255, 0.03); color: var(--gm-muted);
  font-size: 0.75rem; line-height: 1.5; white-space: nowrap;
}
.gm-tag-brass { border-color: var(--gm-brass-dim); color: var(--gm-brass); }

.gm-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.65rem; border-radius: 999px; border: 1px solid;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1.4; white-space: nowrap;
}
.gm-pill-ok      { color: var(--gm-ok); border-color: rgba(134, 214, 168, 0.4); background: var(--gm-ok-tint); }
.gm-pill-wait    { color: var(--gm-warn); border-color: rgba(232, 187, 106, 0.4); background: var(--gm-warn-tint); }
.gm-pill-stop    { color: var(--gm-danger); border-color: rgba(242, 149, 138, 0.4); background: var(--gm-danger-tint); }
.gm-pill-neutral { color: var(--gm-muted); border-color: var(--gm-line-strong); background: transparent; }
.gm-pill-accent  { color: var(--gm-verdigris); border-color: var(--gm-verdigris-line); background: var(--gm-verdigris-tint); }

.gm-rating { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; color: var(--gm-text); white-space: nowrap; }
.gm-stars { position: relative; display: inline-block; font-size: 0.8125rem; letter-spacing: 0.12em; line-height: 1; color: #4a4239; }
.gm-stars::before { content: "★★★★★"; }
.gm-stars > span { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--gm-brass); }
.gm-stars > span::before { content: "★★★★★"; }

/* ---- 4. Header & nav --------------------------------------- */
.gm-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(17, 15, 13, 0.92); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--gm-line);
}
.gm-header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--gm-header-h); }
.gm-wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0;
  font-family: var(--gm-font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gm-bone); text-decoration: none; white-space: nowrap;
}
.gm-wordmark img { display: block; flex: none; width: auto; height: 2.5rem; max-width: 100%; }
@media (max-width: 479px) { .gm-wordmark img { height: 2.25rem; } }
.gm-footer-brand .gm-wordmark img { height: 2.25rem; }

.gm-nav { display: none; }
.gm-nav-list { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.gm-nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.85rem;
  color: var(--gm-text); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
}
.gm-nav-link:hover { color: var(--gm-bone); }
.gm-nav-link[aria-current]::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.35rem; height: 1px; background: var(--gm-brass); }
.gm-nav-link[aria-current] { color: var(--gm-bone); }

.gm-header-tools { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.gm-iconbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.6rem; border-radius: var(--gm-r-sm);
  background: transparent; border: 1px solid transparent; color: var(--gm-text); cursor: pointer;
  font: 500 0.9375rem/1 var(--gm-font-body); text-decoration: none;
}
.gm-iconbtn:hover { color: var(--gm-bone); background: rgba(255, 255, 255, 0.05); }
.gm-iconbtn i { font-size: 1.0625rem; }
.gm-iconbtn-label { display: none; }
.gm-cart-count {
  position: absolute; top: 0.3rem; right: 0.15rem; min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem;
  border-radius: 999px; background: var(--gm-verdigris-fill); color: var(--gm-on-accent);
  font-size: 0.6875rem; font-weight: 700; line-height: 1.15rem; text-align: center;
}
.gm-burger[aria-expanded="true"] .fa-bars, .gm-burger[aria-expanded="false"] .fa-xmark { display: none; }

.gm-drawer { border-top: 1px solid var(--gm-line); background: var(--gm-ground); }
.gm-drawer[hidden] { display: none; }
.gm-drawer-list { margin: 0; padding: 0.5rem 0 1rem; list-style: none; }
.gm-drawer-list a, .gm-drawer-list button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 3.25rem;
  padding: 0 var(--gm-gutter); border: 0; border-bottom: 1px solid var(--gm-line-soft); background: none;
  color: var(--gm-bone); text-decoration: none; text-align: left; cursor: pointer;
  font: 500 1.0625rem/1 var(--gm-font-body);
}
.gm-drawer-list a[aria-current] { color: var(--gm-verdigris); }
.gm-drawer-list i { color: var(--gm-faint); font-size: 0.8125rem; }
.gm-drawer-list form { margin: 0; }

@media (min-width: 900px) {
  .gm-nav { display: block; margin-left: 1.5rem; }
  .gm-burger, .gm-drawer { display: none !important; }
  .gm-iconbtn-label { display: inline; }
  .gm-iconbtn .gm-cart-count { position: static; margin-left: -0.15rem; }
  .gm-wordmark { font-size: 1.1875rem; }
}

.gm-flash { padding-top: 1rem; }
.gm-flash-item {
  display: flex; gap: 0.75rem; align-items: flex-start; margin: 0 0 0.5rem; padding: 0.85rem 1rem;
  border-radius: var(--gm-r-sm); border: 1px solid var(--gm-line-strong); background: var(--gm-card); color: var(--gm-bone);
  font-size: 0.9375rem; line-height: 1.5;
}
.gm-flash-item i { margin-top: 0.2rem; }
.gm-flash-success { border-color: rgba(134, 214, 168, 0.45); } .gm-flash-success i { color: var(--gm-ok); }
.gm-flash-info    { border-color: rgba(156, 195, 230, 0.45); } .gm-flash-info i { color: var(--gm-info); }
.gm-flash-warning { border-color: rgba(232, 187, 106, 0.45); } .gm-flash-warning i { color: var(--gm-warn); }
.gm-flash-error   { border-color: rgba(242, 149, 138, 0.5); }  .gm-flash-error i { color: var(--gm-danger); }

/* ---- 5. Footer --------------------------------------------- */
.gm-footer { margin-top: clamp(3rem, 8vw, 5rem); background: var(--gm-sunken); border-top: 1px solid var(--gm-line); color: var(--gm-muted); font-size: 0.875rem; }
.gm-footer-top { display: grid; gap: 2rem; padding-block: 2.5rem 2rem; }
.gm-footer-brand p { margin: 0.75rem 0 0; max-width: 26rem; line-height: 1.6; }
.gm-footer-col h2 { margin: 0 0 0.75rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gm-brass); }
.gm-footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; }
.gm-footer-col a { display: inline-flex; min-height: 2.25rem; align-items: center; color: var(--gm-text); text-decoration: none; }
.gm-footer-col a:hover { color: var(--gm-bone); text-decoration: underline; text-underline-offset: 3px; }
.gm-footer-legal { border-top: 1px solid var(--gm-line-soft); padding-block: 1.5rem 2rem; font-size: 0.8125rem; line-height: 1.6; color: var(--gm-faint); }
.gm-footer-legal p { margin: 0 0 0.5rem; max-width: 60rem; }
@media (min-width: 720px) {
  .gm-footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ---- 6. Home ----------------------------------------------- */
/* Kicker: the small label over a story's title. */
.gm-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.6rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gm-brass); }
.gm-kicker-tab { padding: 0.2rem 0.5rem; border-radius: var(--gm-r-xs); background: var(--gm-brass); color: var(--gm-on-accent); letter-spacing: 0.14em; }
.gm-story-meta { margin: 0; font-size: 0.8125rem; color: var(--gm-muted); }

/* News: a ruled run of stories. Five fill a 2 + 3 grid; two or four go in pairs. */
.gm-rulehead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--gm-line-strong); }
.gm-rulehead-title { margin: 0; font-family: var(--gm-font-display); font-size: clamp(1.25rem, 3.5vw, 1.5rem); font-weight: 600; color: var(--gm-bone); }
.gm-stories { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.gm-stories > li { min-width: 0; display: flex; }
.gm-stories > li + li { border-top: 1px solid var(--gm-line); }
.gm-story { position: relative; display: flex; flex-direction: column; width: 100%; padding-block: 1.25rem; }
.gm-story-media { display: block; margin-bottom: 1rem; overflow: hidden; border-radius: var(--gm-r-sm); background: var(--gm-sunken); }
.gm-story-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 500ms ease; }
.gm-story:hover .gm-story-media img { transform: scale(1.03); }
.gm-story-title { margin: 0; font-family: var(--gm-font-display); font-size: 1.1875rem; line-height: 1.3; font-weight: 600; color: var(--gm-bone); text-wrap: balance; }
.gm-story-title a { text-decoration: none; }
.gm-story-title a::after { content: ""; position: absolute; inset: 0; }
.gm-story:hover .gm-story-title a { text-decoration: underline; text-decoration-color: var(--gm-brass); text-underline-offset: 4px; }
.gm-story-title a:focus-visible { outline: none; }
.gm-story-title a:focus-visible::after { outline: 2px solid var(--gm-focus); outline-offset: 4px; border-radius: var(--gm-r-sm); }
.gm-story-standfirst { margin: 0.5rem 0 0.85rem; line-height: 1.6; color: var(--gm-text); }
@media (min-width: 720px) {
  .gm-stories { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2rem 2.5rem; }
  .gm-stories > li { grid-column: span 2; }
  .gm-stories > li + li { border-top: 0; }
  .gm-stories > li:first-child:nth-last-child(2), .gm-stories > li:first-child:nth-last-child(2) ~ li,
  .gm-stories > li:first-child:nth-last-child(4), .gm-stories > li:first-child:nth-last-child(4) ~ li,
  .gm-stories > li:first-child:nth-last-child(5), .gm-stories > li:first-child:nth-last-child(5) + li { grid-column: span 3; }
  .gm-stories > li:only-child { grid-column: 1 / -1; max-width: 42rem; }
  .gm-story { padding-block: 0.25rem 1.5rem; }
}

/* News index: a ruled roll of stories; the newest leads page one across the full width. */
.gm-newsroll { display: grid; gap: 0 2.5rem; margin: 0; padding: 0; list-style: none; }
.gm-newsroll > li { min-width: 0; display: flex; border-top: 1px solid var(--gm-line); }
.gm-newsroll > li:first-child { border-top: 0; }
.gm-newsroll-lead .gm-story { padding-bottom: 2rem; }
.gm-newsroll-lead .gm-story-title { font-size: clamp(1.5rem, 4.5vw, 2.25rem); line-height: 1.15; }
.gm-newsroll-lead .gm-story-standfirst { font-size: clamp(1.0625rem, 2.4vw, 1.1875rem); max-width: 40rem; }
@media (min-width: 720px) {
  .gm-newsroll { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-newsroll > li:nth-child(2) { border-top: 0; }
  .gm-newsroll-lead { grid-column: 1 / -1; border-bottom: 1px solid var(--gm-line-strong); margin-bottom: 0.25rem; }
  .gm-newsroll-lead + li, .gm-newsroll-lead + li + li { border-top: 0; }
  .gm-newsroll-lead .gm-story-pic { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 2.5rem; align-content: center; }
  .gm-newsroll-lead .gm-story-pic .gm-story-media { grid-row: 1 / span 5; margin: 0; }
  .gm-newsroll-lead .gm-story-pic > :not(.gm-story-media) { grid-column: 2; }
  .gm-newsroll-lead .gm-story-pic .gm-kicker { align-self: end; }
}
@media (min-width: 1000px) {
  .gm-newsroll { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gm-newsroll > li:nth-child(3) { border-top: 0; }
  .gm-newsroll-lead + li + li + li { border-top: 0; }
}

/* News article: a feature opening over a single reading column. */
.gm-feature-head { padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(1.75rem, 5vw, 3rem); background:
  radial-gradient(60rem 18rem at 50% -6rem, rgba(201, 171, 115, 0.07), transparent 70%), var(--gm-ground); }
.gm-feature-head .gm-note { margin-bottom: 1.25rem; }
.gm-feature-titles { max-width: 46rem; margin-inline: auto; padding-top: clamp(0.5rem, 3vw, 1.5rem); text-align: center; }
.gm-feature-titles .gm-kicker { justify-content: center; }
.gm-feature-title { margin: 0; font-family: var(--gm-font-display); font-weight: 600; color: var(--gm-bone);
  font-size: clamp(2rem, 7vw, 3.5rem); line-height: 1.08; letter-spacing: 0.01em; text-wrap: balance; }
.gm-feature-standfirst { margin: 1.1rem auto 0; max-width: 38rem; font-size: clamp(1.125rem, 2.8vw, 1.375rem); line-height: 1.55; color: var(--gm-text); text-wrap: pretty; }
.gm-feature-byline { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0; margin: 1.5rem 0 0; padding-block: 0.7rem;
  border-block: 1px solid var(--gm-line); font-size: 0.8125rem; color: var(--gm-muted); }
.gm-feature-byline > * + *::before { content: "·"; margin-inline: 0.6rem; color: var(--gm-faint); }
.gm-feature-byline strong { color: var(--gm-bone); font-weight: 600; }
.gm-feature-hero { margin: 0 auto; max-width: 64rem; }
.gm-feature-hero img { display: block; width: 100%; height: auto; max-height: 36rem; object-fit: cover; border-radius: var(--gm-r); border: 1px solid var(--gm-line); background: var(--gm-sunken); }

.gm-article { max-width: 42rem; margin: clamp(2rem, 5vw, 3rem) auto 0; font-size: 1.0625rem; line-height: 1.75; color: var(--gm-text); overflow-wrap: break-word; }
.gm-article > :first-child { margin-top: 0; }
.gm-article p, .gm-article ul, .gm-article ol, .gm-article blockquote, .gm-article pre, .gm-article table { margin: 0 0 1.25em; }
.gm-article > p:first-of-type::first-letter { float: left; margin: 0.45rem 0.5rem 0 0; font-family: var(--gm-font-display); font-size: 3.4em; line-height: 0.75; color: var(--gm-brass); }
.gm-article h2, .gm-article h3, .gm-article h4, .gm-article h5 { font-family: var(--gm-font-display); font-weight: 600; color: var(--gm-bone); line-height: 1.25; text-wrap: balance; }
.gm-article h2 { margin: 2.25em 0 0.6em; font-size: clamp(1.375rem, 3.6vw, 1.75rem); }
.gm-article h3 { margin: 1.9em 0 0.5em; font-size: 1.25rem; }
.gm-article h4, .gm-article h5 { margin: 1.6em 0 0.4em; font-size: 1.0625rem; }
.gm-article a { color: var(--gm-verdigris); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gm-article a:hover { color: var(--gm-bone); }
.gm-article strong { color: var(--gm-bone); }
.gm-article ul, .gm-article ol { padding-left: 1.4em; }
.gm-article li + li { margin-top: 0.35em; }
.gm-article li::marker { color: var(--gm-brass); }
.gm-article blockquote { padding: 0.25rem 0 0.25rem 1.25rem; border-left: 3px solid var(--gm-brass); font-family: var(--gm-font-display); font-size: 1.25rem; line-height: 1.5; color: var(--gm-bone); }
.gm-article blockquote p:last-child { margin-bottom: 0; }
.gm-article hr { margin: 2.5em auto; width: 6rem; border: 0; border-top: 3px double var(--gm-brass-dim); }
.gm-article img { display: block; max-width: 100%; height: auto; margin: 1.75em 0; border-radius: var(--gm-r-sm); border: 1px solid var(--gm-line); }
.gm-article code { padding: 0.1em 0.35em; border-radius: var(--gm-r-xs); background: var(--gm-sunken); font-size: 0.9em; }
.gm-article pre { padding: 1rem; overflow-x: auto; border-radius: var(--gm-r-sm); background: var(--gm-sunken); border: 1px solid var(--gm-line); }
.gm-article pre code { padding: 0; background: none; }
.gm-article table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.9375rem; }
.gm-article th, .gm-article td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--gm-line); text-align: left; }
.gm-article th { color: var(--gm-bone); border-bottom-color: var(--gm-line-strong); }
.gm-article .wt-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 1.75em 0; }
.gm-article .wt-gallery figure { margin: 0; }
.gm-article .wt-gallery img { margin: 0; width: 100%; aspect-ratio: 1; object-fit: cover; }
.gm-article .wt-gallery figcaption { margin-top: 0.35rem; font-size: 0.8125rem; line-height: 1.4; color: var(--gm-muted); }
.gm-article .wt-gallery figcaption:empty { display: none; }
@media (min-width: 720px) { .gm-article .wt-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.gm-feature-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; max-width: 42rem;
  margin: 2.5rem auto clamp(2.5rem, 6vw, 4rem); padding-top: 1.25rem; border-top: 1px solid var(--gm-line); }
.gm-feature-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.85rem; }

/* Shelves: category links as a row of pills (the news article's tags). The home page's own
   sections are in gaming/home.css. */
.gm-shelves { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--gm-line); }
.gm-shelves-title { margin: 0; font-family: var(--gm-font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gm-brass); }
.gm-shelves ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.gm-shelves a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.5rem; padding: 0.35rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--gm-line-strong); color: var(--gm-bone); font-size: 0.875rem; text-decoration: none; transition: border-color 200ms ease, background 200ms ease; }
.gm-shelves a > span { font-size: 0.75rem; color: var(--gm-muted); }
.gm-shelves a:hover { border-color: var(--gm-brass); background: var(--gm-card); }

.gm-teaser { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .gm-teaser { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 3rem; } }

.gm-note {
  display: flex; gap: 0.85rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--gm-r);
  border: 1px solid var(--gm-line); background: var(--gm-card); color: var(--gm-text); font-size: 0.9375rem; line-height: 1.55;
}
.gm-note > i { margin-top: 0.2rem; color: var(--gm-brass); }
.gm-note p { margin: 0; }
.gm-note strong { color: var(--gm-bone); }
.gm-note-accent { border-color: var(--gm-verdigris-line); background: linear-gradient(var(--gm-verdigris-tint), var(--gm-verdigris-tint)), var(--gm-card); }
.gm-note-accent > i { color: var(--gm-verdigris); }
.gm-note-wait { border-color: rgba(232, 187, 106, 0.4); background: linear-gradient(var(--gm-warn-tint), var(--gm-warn-tint)), var(--gm-card); }
.gm-note-wait > i { color: var(--gm-warn); }
.gm-note-stop { border-color: rgba(242, 149, 138, 0.45); background: linear-gradient(var(--gm-danger-tint), var(--gm-danger-tint)), var(--gm-card); }
.gm-note-stop > i { color: var(--gm-danger); }
.gm-note-ok { border-color: rgba(134, 214, 168, 0.4); }
.gm-note-ok > i { color: var(--gm-ok); }

/* ---- 7. Product cards and grids ---------------------------- */
.gm-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.gm-grid-3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .gm-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .gm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } .gm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.gm-pcard { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.gm-pcard-media { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--gm-r); background: var(--gm-sunken); border: 1px solid var(--gm-line); }
.gm-pcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms ease; }
.gm-pcard:hover .gm-pcard-media img { transform: scale(1.04); }
.gm-pcard:hover .gm-pcard-title { color: var(--gm-verdigris); }
.gm-pcard-body { padding: 0.75rem 0.1rem 0; display: grid; gap: 0.25rem; }
.gm-pcard-title { margin: 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; color: var(--gm-bone); transition: color 150ms ease; }
.gm-pcard-price { font-size: 0.9375rem; color: var(--gm-text); font-variant-numeric: tabular-nums; }
.gm-pcard-price small { font-size: 0.75rem; color: var(--gm-muted); }

/* ---- 8. Painters: cards, directory, filters ---------------- */
.gm-painter-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .gm-painter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .gm-painter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }

.gm-painter {
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: var(--gm-r); border: 1px solid var(--gm-line); background: var(--gm-card); overflow: hidden;
  box-shadow: var(--gm-shadow); transition: border-color 200ms ease, transform 200ms ease;
}
.gm-painter:hover { border-color: var(--gm-brass-dim); transform: translateY(-2px); }
.gm-painter:focus-within { border-color: var(--gm-bone); }
.gm-painter-media { position: relative; aspect-ratio: 16 / 10; background: var(--gm-sunken); overflow: hidden; }
.gm-painter-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms ease; }
.gm-painter:hover .gm-painter-media img { transform: scale(1.03); }
.gm-painter-media .gm-pill { position: absolute; top: 0.75rem; left: 0.75rem; background: rgba(11, 10, 9, 0.82); }
.gm-painter-body { position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding: 0 1rem 1rem; flex: 1; }
.gm-painter-id { display: flex; align-items: flex-end; gap: 0.75rem; margin-top: -1.75rem; }
.gm-avatar {
  flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--gm-card); outline: 1px solid var(--gm-brass-dim); background: var(--gm-raised);
  display: grid; place-items: center; color: var(--gm-brass); font-family: var(--gm-font-display); font-weight: 700; font-size: 1.25rem;
}
.gm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gm-avatar-lg { width: 6rem; height: 6rem; font-size: 2.25rem; border-width: 3px; border-color: var(--gm-ground); }
.gm-painter-name { margin: 0; padding-bottom: 0.1rem; min-width: 0; font-family: var(--gm-font-display); font-size: 1.1875rem; font-weight: 600; line-height: 1.2; color: var(--gm-bone); }
.gm-painter-name a { color: inherit; text-decoration: none; }
.gm-painter-name a::after { content: ""; position: absolute; inset: 0; }   /* the whole card is the link */
.gm-painter-name a:focus-visible { outline: none; }
.gm-painter-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: center; font-size: 0.8125rem; color: var(--gm-muted); }
.gm-painter-meta i { color: var(--gm-faint); margin-right: 0.3rem; }
.gm-painter-foot { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--gm-line-soft); display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.gm-from { font-size: 0.8125rem; color: var(--gm-muted); }
.gm-from strong { font-size: 1.0625rem; color: var(--gm-bone); font-weight: 600; font-variant-numeric: tabular-nums; }
.gm-painter-cta { font-size: 0.8125rem; color: var(--gm-verdigris); white-space: nowrap; }

/* Directory filters: a disclosure on phones, an open bar on desktop. */
.gm-filters { margin-bottom: 1.5rem; border: 1px solid var(--gm-line); border-radius: var(--gm-r); background: var(--gm-card); }
.gm-filters-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 3.25rem; padding: 0 1rem;
  border: 0; background: none; cursor: pointer; color: var(--gm-bone); font: 600 0.9375rem var(--gm-font-body); text-align: left;
}
.gm-filters-toggle > span > i { color: var(--gm-brass); margin-right: 0.4rem; }
.gm-filters-toggle .fa-chevron-down { color: var(--gm-faint); transition: transform 200ms ease; }
.gm-filters-toggle[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.gm-filters-count { margin-left: 0.5rem; }
.gm-filters-body { display: grid; gap: 1rem; padding: 0 1rem 1rem; }
.gm-filters.is-collapsed .gm-filters-body { display: none; }
.gm-filters-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
@media (min-width: 900px) {
  .gm-filters-toggle { display: none; }
  .gm-filters.is-collapsed .gm-filters-body, .gm-filters-body { display: grid; grid-template-columns: repeat(2, minmax(0, 17rem)) auto; align-items: end; padding: 1rem 1.25rem; }
}
.gm-results { margin: 0 0 1rem; font-size: 0.875rem; color: var(--gm-muted); }
.gm-active-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: -0.5rem 0 1.25rem; font-size: 0.875rem; color: var(--gm-muted); }
.gm-chip-x {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2rem; padding: 0 0.75rem; border-radius: 999px;
  border: 1px solid var(--gm-verdigris-line); color: var(--gm-bone); background: var(--gm-verdigris-tint); text-decoration: none; font-size: 0.8125rem;
}
.gm-chip-x i { color: var(--gm-verdigris); font-size: 0.75rem; }
.gm-chip-x:hover { border-color: var(--gm-verdigris); }

.gm-pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; color: var(--gm-muted); font-size: 0.875rem; }

.gm-empty { padding: clamp(2rem, 6vw, 3.5rem) 1.25rem; text-align: center; border: 1px dashed var(--gm-line-strong); border-radius: var(--gm-r); }
.gm-empty > i { font-size: 1.75rem; color: var(--gm-brass); }
.gm-empty h2, .gm-empty h3 { margin: 0.85rem 0 0.4rem; font-family: var(--gm-font-display); font-size: 1.25rem; color: var(--gm-bone); }
.gm-empty p { margin: 0 auto; max-width: 30rem; color: var(--gm-muted); line-height: 1.6; }
.gm-empty .gm-btnrow { justify-content: center; margin-top: 1.25rem; }

/* ---- 9. Painter profile, gallery, lightbox ----------------- */
.gm-profile-banner { position: relative; height: clamp(9rem, 32vw, 20rem); background: var(--gm-sunken); overflow: hidden; }
.gm-profile-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gm-profile-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 15, 13, 0) 25%, rgba(17, 15, 13, 0.55) 60%, var(--gm-ground)); }
.gm-profile-banner-blank { background: radial-gradient(40rem 14rem at 30% 0%, rgba(201, 171, 115, 0.12), transparent 70%), var(--gm-ground-alt); }
.gm-profile-head { position: relative; display: grid; gap: 1rem; margin-top: -3rem; }
.gm-profile-id { display: flex; align-items: flex-end; gap: 1rem; }
.gm-profile-id .gm-h1 { padding-bottom: 0.25rem; }
.gm-profile-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; color: var(--gm-muted); font-size: 0.875rem; }
.gm-profile-facts i { color: var(--gm-faint); margin-right: 0.35rem; }
.gm-profile-layout { display: grid; gap: 2.5rem; padding-top: 2rem; }
.gm-profile-layout > * { min-width: 0; }
.gm-profile-aside { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 1000px) {
  .gm-profile-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .gm-profile-layout { grid-template-columns: minmax(0, 1fr) 21rem; gap: 3rem; }
  .gm-profile-aside { position: sticky; top: calc(var(--gm-header-h) + 1.25rem); }
}
.gm-block + .gm-block { margin-top: 3rem; }
.gm-block > .gm-h2 { margin-bottom: 1.25rem; }
.gm-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.gm-block-head .gm-h2 { margin: 0; }

.gm-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .gm-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.875rem; } }
.gm-gallery-item { position: relative; margin: 0; }
.gm-gallery-btn {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--gm-line); border-radius: var(--gm-r);
  overflow: hidden; background: var(--gm-sunken); cursor: zoom-in; aspect-ratio: 4 / 5;
}
.gm-gallery-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms ease; }
.gm-gallery-btn:hover img { transform: scale(1.04); }
.gm-gallery-btn:focus-visible { outline: 2px solid var(--gm-focus); outline-offset: 3px; }
.gm-gallery-count {
  position: absolute; top: 0.5rem; right: 0.5rem; padding: 0.15rem 0.5rem; border-radius: 999px;
  background: rgba(11, 10, 9, 0.8); color: var(--gm-bone); font-size: 0.6875rem; font-weight: 600;
}
.gm-gallery-cap { display: block; padding: 0.55rem 0.1rem 0; font-size: 0.875rem; color: var(--gm-bone); line-height: 1.35; }
.gm-gallery-cap span { display: block; color: var(--gm-muted); font-size: 0.75rem; margin-top: 0.15rem; }
@media (min-width: 720px) { .gm-gallery-feature { grid-column: span 2; grid-row: span 2; } .gm-gallery-feature .gm-gallery-btn { aspect-ratio: auto; height: calc(100% - 2.75rem); min-height: 20rem; } }

.gm-lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(6, 5, 4, 0.96); color: var(--gm-bone); overflow: hidden;
}
.gm-lightbox::backdrop { background: rgba(6, 5, 4, 0.9); }
.gm-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.gm-lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.75rem 0.5rem 1.25rem; font-size: 0.875rem; color: var(--gm-muted); }
.gm-lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 0.5rem; touch-action: pan-y pinch-zoom; }
.gm-lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--gm-r-sm); user-select: none; -webkit-user-drag: none; }
.gm-lightbox-cap { padding: 0.85rem 1.25rem 1.25rem; text-align: center; font-size: 0.9375rem; line-height: 1.5; }
.gm-lightbox-cap span { display: block; color: var(--gm-muted); font-size: 0.8125rem; }
.gm-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid var(--gm-line-strong); background: rgba(17, 15, 13, 0.8); color: var(--gm-bone); cursor: pointer; font-size: 1rem;
}
.gm-lightbox-nav:hover { border-color: var(--gm-bone); }
.gm-lightbox-prev { left: 0.75rem; } .gm-lightbox-next { right: 0.75rem; }
.gm-lightbox-close { color: var(--gm-bone); }
@media (max-width: 599px) { .gm-lightbox-nav { top: auto; bottom: 0.5rem; transform: none; } }
:root[data-theme="gaming"] body.gm-locked { overflow: hidden; }

/* ---- 10. Tiers, reviews, report, disclosure ---------------- */
.gm-tiers { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .gm-tiers-wide { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
.gm-tier {
  position: relative; display: grid; gap: 0.5rem; padding: 1rem 1.1rem; border-radius: var(--gm-r);
  border: 1px solid var(--gm-line); background: var(--gm-card);
}
.gm-tier-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.gm-tier-name { margin: 0; font-size: 1rem; font-weight: 600; color: var(--gm-bone); }
.gm-tier-price { font-family: var(--gm-font-display); font-size: 1.375rem; font-weight: 600; color: var(--gm-bone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gm-tier-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.8125rem; color: var(--gm-muted); }
.gm-tier-meta i { color: var(--gm-faint); margin-right: 0.3rem; }
.gm-tier-desc { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--gm-text); }
.gm-tier-desc p { margin: 0; }
.gm-tier:first-child::before { content: ""; position: absolute; left: -1px; top: 1rem; bottom: 1rem; width: 2px; background: var(--gm-brass); border-radius: 2px; }

.gm-summary-card { padding: 1.25rem; border-radius: var(--gm-r); border: 1px solid var(--gm-line); background: var(--gm-card); }
.gm-summary-card > .gm-h3 { margin-bottom: 0.85rem; }

.gm-scorecard { display: flex; gap: 1.25rem; align-items: center; padding: 1rem 1.25rem; margin-bottom: 1.25rem; border-radius: var(--gm-r); border: 1px solid var(--gm-line); background: var(--gm-card); }
.gm-score { font-family: var(--gm-font-display); font-size: 2.5rem; line-height: 1; color: var(--gm-bone); }
.gm-scorecard p { margin: 0.3rem 0 0; font-size: 0.875rem; color: var(--gm-muted); }
.gm-scorecard .gm-stars { font-size: 1rem; }

.gm-reviews { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.gm-review { padding: 1.1rem 1.25rem; border-radius: var(--gm-r); border: 1px solid var(--gm-line); background: var(--gm-card); }
.gm-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.85rem; margin-bottom: 0.6rem; font-size: 0.8125rem; color: var(--gm-muted); }
.gm-review-author { color: var(--gm-bone); font-weight: 600; font-size: 0.9375rem; }
.gm-review-verified { color: var(--gm-verdigris); font-size: 0.8125rem; }
.gm-review-body { line-height: 1.65; }
.gm-review-body p { margin: 0 0 0.75em; } .gm-review-body p:last-child { margin: 0; }
.gm-reply { margin: 1rem 0 0; padding: 0.85rem 1rem; border-left: 2px solid var(--gm-brass); border-radius: 0 var(--gm-r-sm) var(--gm-r-sm) 0; background: var(--gm-ground-alt); font-size: 0.9375rem; line-height: 1.6; }
.gm-reply-label { display: block; margin-bottom: 0.3rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gm-brass); }
.gm-reply p { margin: 0 0 0.5em; } .gm-reply p:last-child { margin: 0; }
.gm-review-foot { margin-top: 0.75rem; text-align: right; }

.gm-report { font-size: 0.75rem; color: var(--gm-faint); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 1.75rem; }
.gm-report:hover { color: var(--gm-text); text-decoration: underline; text-underline-offset: 3px; }

.gm-disclosure { margin: 0; padding: 0.85rem 1rem; border-radius: var(--gm-r-sm); border: 1px solid var(--gm-line-soft); background: var(--gm-ground-alt); font-size: 0.8125rem; line-height: 1.55; color: var(--gm-muted); }
.gm-disclosure i { color: var(--gm-faint); margin-right: 0.4rem; }
.gm-profile-foot { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--gm-line-soft); }

/* Product page: "Have it painted" */
.gm-commission { border-radius: var(--gm-r-lg); border: 1px solid var(--gm-line); background:
  radial-gradient(40rem 16rem at 100% 0%, rgba(103, 198, 173, 0.07), transparent 70%), var(--gm-card); padding: clamp(1.25rem, 4vw, 2rem); }
.gm-commission-head { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 900px) { .gm-commission-head { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); align-items: start; } }
.gm-commission-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .gm-commission-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gm-cpainter { position: relative; display: flex; flex-direction: column; gap: 0.85rem; padding: 1rem; border-radius: var(--gm-r); border: 1px solid var(--gm-line); background: var(--gm-ground-alt); }
.gm-cpainter:hover { border-color: var(--gm-brass-dim); }
.gm-cpainter-id { display: flex; align-items: center; gap: 0.75rem; }
.gm-cpainter-id .gm-avatar { width: 3rem; height: 3rem; border-color: var(--gm-ground-alt); font-size: 1.05rem; }
.gm-cpainter-name { margin: 0; font-size: 1rem; font-weight: 600; color: var(--gm-bone); }
.gm-cpainter-name a { color: inherit; text-decoration: none; }
.gm-cpainter-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gm-cpainter-sub { font-size: 0.8125rem; color: var(--gm-muted); }
.gm-ctiers { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--gm-line-soft); }
.gm-ctiers li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--gm-line-soft); font-size: 0.875rem; }
.gm-ctiers li span:first-child { min-width: 0; }
.gm-ctiers small { display: block; color: var(--gm-muted); font-size: 0.75rem; }
.gm-ctiers strong { color: var(--gm-bone); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- 11. Forms, uploads, status, dashboard ----------------- */
.gm-form { display: grid; gap: 1.25rem; }
.gm-fieldset { margin: 0; padding: clamp(1.1rem, 3.5vw, 1.75rem); border: 1px solid var(--gm-line); border-radius: var(--gm-r); background: var(--gm-card); min-width: 0; }
.gm-fieldset > legend { float: left; width: 100%; padding: 0; margin: 0 0 0.35rem; font-family: var(--gm-font-display); font-size: 1.1875rem; font-weight: 600; color: var(--gm-bone); }
.gm-fieldset > legend + * { clear: both; }
.gm-fieldset-step { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; margin-right: 0.6rem; border-radius: 50%; border: 1px solid var(--gm-brass-dim); color: var(--gm-brass); font-family: var(--gm-font-body); font-size: 0.8125rem; vertical-align: 0.15em; }
.gm-fieldset-intro { margin: 0 0 1.25rem; color: var(--gm-muted); font-size: 0.9375rem; line-height: 1.6; }
.gm-fieldset-private { border-style: dashed; border-color: var(--gm-line-strong); background: var(--gm-ground-alt); }
.gm-fields { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .gm-fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gm-field-wide { grid-column: 1 / -1; } }

.gm-field { display: grid; gap: 0.4rem; min-width: 0; }
.gm-label { font-size: 0.875rem; font-weight: 600; color: var(--gm-bone); }
.gm-optional { font-weight: 400; color: var(--gm-muted); }
.gm-help { font-size: 0.8125rem; line-height: 1.5; color: var(--gm-muted); margin: 0; }
.gm-help i { margin-right: 0.3rem; color: var(--gm-faint); }
.gm-error { display: flex; gap: 0.4rem; font-size: 0.8125rem; line-height: 1.5; color: var(--gm-danger); margin: 0; }
.gm-error ul, ul.gm-error { margin: 0; padding: 0; list-style: none; }

.gm-field input[type="text"], .gm-field input[type="email"], .gm-field input[type="number"], .gm-field input[type="tel"],
.gm-field input[type="url"], .gm-field select, .gm-field textarea, .gm-input {
  width: 100%; min-height: 2.875rem; padding: 0.65rem 0.85rem; border-radius: var(--gm-r-sm);
  border: 1px solid var(--gm-line-strong); background: var(--gm-sunken); color: var(--gm-bone);
  font: 400 1rem/1.4 var(--gm-font-body);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.gm-field textarea { min-height: 7rem; resize: vertical; line-height: 1.6; }
.gm-field select, select.gm-input {
  -webkit-appearance: none; appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a99f92' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
}
.gm-field :is(input, select, textarea):hover { border-color: var(--gm-muted); }
.gm-field :is(input, select, textarea):focus, .gm-input:focus { outline: none; border-color: var(--gm-bone); box-shadow: 0 0 0 3px rgba(243, 237, 226, 0.18); }
.gm-field [aria-invalid="true"] { border-color: var(--gm-danger); }
.gm-field ::placeholder { color: var(--gm-faint); }

/* Checkbox groups (styles, tags) as toggle chips; a lone checkbox as a switch row. */
.gm-checks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; border: 0; }
.gm-checks > div, .gm-checks > li { display: contents; }
.gm-checks label {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.5rem; padding: 0 0.95rem 0 0.75rem;
  border-radius: 999px; border: 1px solid var(--gm-line-strong); background: var(--gm-sunken); color: var(--gm-text);
  font-size: 0.875rem; cursor: pointer; user-select: none;
}
.gm-checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gm-checks label::before { content: ""; width: 0.95rem; height: 0.95rem; border-radius: 3px; border: 1px solid var(--gm-line-strong); background: var(--gm-ground); flex: none; }
.gm-checks label:has(input:checked) { border-color: var(--gm-verdigris); color: var(--gm-bone); background: var(--gm-verdigris-tint); }
.gm-checks label:has(input:checked)::before { background: var(--gm-verdigris-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%230b0a09' stroke-width='1.8'/%3E%3C/svg%3E") center no-repeat; border-color: var(--gm-verdigris-fill); }
.gm-checks label:has(input:focus-visible) { outline: 2px solid var(--gm-focus); outline-offset: 2px; }

.gm-switch { display: flex; align-items: flex-start; gap: 0.85rem; cursor: pointer; }
.gm-switch input { -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 2.75rem; height: 1.5rem; margin: 0.1rem 0 0; border-radius: 999px; border: 1px solid var(--gm-line-strong); background: var(--gm-sunken); cursor: pointer; transition: background-color 150ms ease; }
.gm-switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--gm-muted); transition: transform 150ms ease, background-color 150ms ease; }
.gm-switch input:checked { background: var(--gm-verdigris-fill); border-color: var(--gm-verdigris-fill); }
.gm-switch input:checked::after { transform: translateX(1.2rem); background: var(--gm-on-accent); }
.gm-switch input:focus-visible { outline: 2px solid var(--gm-focus); outline-offset: 2px; }
.gm-switch-text { display: grid; gap: 0.2rem; }
.gm-switch-text strong { color: var(--gm-bone); font-size: 0.9375rem; font-weight: 600; }

/* Image upload with a live preview (gaming.js fills .gm-upload-preview). */
.gm-upload { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; }
.gm-upload-preview {
  position: relative; width: 6rem; height: 6rem; border-radius: var(--gm-r-sm); overflow: hidden; display: grid; place-items: center;
  border: 1px dashed var(--gm-line-strong); background: var(--gm-sunken); color: var(--gm-faint); font-size: 1.5rem;
}
.gm-upload-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gm-upload-round .gm-upload-preview { border-radius: 50%; }
.gm-upload-wide { grid-template-columns: minmax(0, 1fr); }
.gm-upload-wide .gm-upload-preview { width: 100%; height: auto; aspect-ratio: 16 / 6; }
.gm-upload-controls { display: grid; gap: 0.4rem; min-width: 0; }
.gm-upload-controls input[type="file"] { width: 100%; max-width: 100%; color: var(--gm-muted); font-size: 0.875rem; }
.gm-upload-controls input[type="file"]::file-selector-button {
  margin-right: 0.75rem; min-height: 2.5rem; padding: 0 1rem; border-radius: var(--gm-r-sm);
  border: 1px solid var(--gm-line-strong); background: var(--gm-raised); color: var(--gm-bone); font: 600 0.875rem var(--gm-font-body); cursor: pointer;
}
.gm-upload-controls input[type="file"]:hover::file-selector-button { border-color: var(--gm-bone); }
.gm-upload-current { font-size: 0.8125rem; color: var(--gm-muted); }
.gm-upload-current label { display: inline-flex; gap: 0.4rem; align-items: center; margin-left: 0.5rem; cursor: pointer; }
.gm-upload-new { position: absolute; left: 0.3rem; bottom: 0.3rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: var(--gm-verdigris-fill); color: var(--gm-on-accent); font-size: 0.625rem; font-weight: 700; }

.gm-photos { display: grid; gap: 0.85rem; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .gm-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gm-photo { display: grid; gap: 0.75rem; padding: 0.85rem; border-radius: var(--gm-r-sm); border: 1px solid var(--gm-line); background: var(--gm-ground-alt); }
.gm-photo-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; font-size: 0.8125rem; color: var(--gm-muted); }
.gm-photo-remove { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; color: var(--gm-muted); }
.gm-photo-remove input { accent-color: var(--gm-danger); width: 1rem; height: 1rem; }
.gm-photo:has(.gm-photo-remove input:checked) { opacity: 0.55; border-style: dashed; }

.gm-formbar { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; justify-content: space-between; padding: 1rem 0 0; }
.gm-formbar p { margin: 0; font-size: 0.8125rem; color: var(--gm-muted); max-width: 32rem; }

.gm-steps { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1.25rem 0 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--gm-muted); counter-reset: gm-step; }
.gm-steps li { display: inline-flex; align-items: center; gap: 0.5rem; }
.gm-steps li::before { counter-increment: gm-step; content: counter(gm-step); display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 1px solid var(--gm-brass-dim); color: var(--gm-brass); font-size: 0.6875rem; }

.gm-layout-form { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .gm-layout-form { grid-template-columns: minmax(0, 1fr) 18rem; gap: 2.5rem; align-items: start; } .gm-layout-form > aside { position: sticky; top: calc(var(--gm-header-h) + 1.25rem); } }
.gm-aside-list { margin: 0.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; font-size: 0.875rem; line-height: 1.55; color: var(--gm-text); }
.gm-aside-list li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.5rem; }
.gm-aside-list i { color: var(--gm-brass); margin-top: 0.2rem; }

/* Status banner: where a painter's profile stands. */
.gm-status { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.1rem 1.25rem; border-radius: var(--gm-r); border: 1px solid var(--gm-line); background: var(--gm-card); }
.gm-status-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; font-size: 1rem; }
.gm-status-title { margin: 0 0 0.25rem; font-weight: 600; color: var(--gm-bone); font-size: 1rem; }
.gm-status p { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--gm-text); }
.gm-status .gm-btnrow { margin-top: 0.85rem; }
.gm-status-wait { border-color: rgba(232, 187, 106, 0.4); } .gm-status-wait .gm-status-icon { background: var(--gm-warn-tint); color: var(--gm-warn); }
.gm-status-ok   { border-color: rgba(134, 214, 168, 0.35); } .gm-status-ok .gm-status-icon { background: var(--gm-ok-tint); color: var(--gm-ok); }
.gm-status-stop { border-color: rgba(242, 149, 138, 0.45); } .gm-status-stop .gm-status-icon { background: var(--gm-danger-tint); color: var(--gm-danger); }

.gm-progress { display: flex; gap: 0.25rem; margin: 0.85rem 0 0; padding: 0; list-style: none; font-size: 0.75rem; color: var(--gm-muted); }
.gm-progress li { flex: 1; padding-top: 0.5rem; border-top: 3px solid var(--gm-line); }
.gm-progress li.is-done { border-color: var(--gm-verdigris-fill); color: var(--gm-text); }
.gm-progress li.is-now { border-color: var(--gm-warn); color: var(--gm-bone); }

/* Dashboard */
.gm-dash { display: grid; gap: 2rem; }
.gm-dash-nav { display: flex; gap: 0.25rem; overflow-x: auto; margin: 1.5rem 0 0; padding: 0; list-style: none; scrollbar-width: none; }
.gm-dash-nav a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0 0.85rem; border-radius: 999px; border: 1px solid var(--gm-line); color: var(--gm-text); text-decoration: none; font-size: 0.875rem; white-space: nowrap; }
.gm-dash-nav a:hover { border-color: var(--gm-line-strong); color: var(--gm-bone); }
.gm-dash-nav span { color: var(--gm-muted); font-variant-numeric: tabular-nums; }
.gm-panel { border-radius: var(--gm-r); border: 1px solid var(--gm-line); background: var(--gm-card); scroll-margin-top: calc(var(--gm-header-h) + 1rem); }
.gm-panel-head { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--gm-line-soft); }
.gm-panel-head .gm-h2 { font-size: 1.25rem; }
.gm-panel-head p { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--gm-muted); }
.gm-panel-body { padding: 1.25rem; }
.gm-rows { margin: 0; padding: 0; list-style: none; }
.gm-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.85rem 1rem; align-items: center; padding: 0.95rem 1.25rem; border-bottom: 1px solid var(--gm-line-soft); }
.gm-row:last-child { border-bottom: 0; }
.gm-row-thumb { width: 3.5rem; height: 3.5rem; border-radius: var(--gm-r-sm); overflow: hidden; background: var(--gm-sunken); border: 1px solid var(--gm-line); display: grid; place-items: center; color: var(--gm-faint); }
.gm-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gm-row-main { min-width: 0; display: grid; gap: 0.3rem; }
.gm-row-title { color: var(--gm-bone); font-weight: 600; overflow-wrap: anywhere; }
.gm-row-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; align-items: center; font-size: 0.8125rem; color: var(--gm-muted); }
.gm-row-note { font-size: 0.8125rem; color: var(--gm-danger); }
.gm-row-actions { grid-column: 1 / -1; display: flex; gap: 0.5rem; justify-content: flex-end; }
.gm-row-actions form { margin: 0; }
@media (min-width: 720px) {
  .gm-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .gm-row-actions { grid-column: auto; }
  .gm-row-nothumb { grid-template-columns: minmax(0, 1fr) auto; }
}
.gm-row-nothumb { grid-template-columns: minmax(0, 1fr); }
.gm-panel-empty { padding: 1.5rem 1.25rem; color: var(--gm-muted); font-size: 0.9375rem; }
.gm-panel-empty .gm-btn { margin-top: 0.75rem; }
.gm-reply-form { display: grid; gap: 0.6rem; margin-top: 0.85rem; }
.gm-reply-form summary { cursor: pointer; color: var(--gm-verdigris); font-size: 0.875rem; font-weight: 600; min-height: 2.25rem; display: inline-flex; align-items: center; }

/* ---- 12. Shared tokens: the base layer's radii, shadows and button type, in the gaming voice ---- */
:root[data-theme="gaming"] {
  --radius-card: var(--gm-r);
  --radius-btn: var(--gm-r-sm);
  --radius-input: var(--gm-r-sm);
  --radius-badge: 999px;
  --radius-chip: 999px;
  --bevel: 0 0 0 transparent;
  --shadow-btn: none;
  --shadow-btn-hover: none;
  --shadow-xs: none;
  --shadow-dark: var(--gm-shadow);
  --btn-font: var(--gm-font-body);
  --btn-case: none;
  --btn-tracking: 0.01em;
}

:root[data-theme="gaming"] .gm-shop-grid { display: grid; gap: 1.75rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { :root[data-theme="gaming"] .gm-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.5rem; } }
@media (min-width: 1200px) { :root[data-theme="gaming"] .gm-shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  :root[data-theme="gaming"] *, :root[data-theme="gaming"] *::before, :root[data-theme="gaming"] *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.gm-footer-col form { margin: 0; }
.gm-footer-col button { display: inline-flex; min-height: 2.25rem; align-items: center; padding: 0; border: 0; background: none; color: var(--gm-text); font: inherit; cursor: pointer; }
.gm-footer-col button:hover { color: var(--gm-bone); text-decoration: underline; text-underline-offset: 3px; }
.gm-dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; flex: none; }

/* ---- Profile page details ---------------------------------- */
.gm-profile-tags { margin-top: 0.85rem; }
.gm-profile-head .gm-crumbs { margin-bottom: 0.15rem; }
.gm-profile-facts { margin-top: 0.85rem; }
.gm-link-quiet { color: inherit; text-decoration: none; }
.gm-link-quiet:hover { text-decoration: underline; text-underline-offset: 3px; }
.gm-profile-jump { justify-self: start; }
@media (min-width: 1000px) {
  .gm-profile-jump { display: none; }
  .gm-profile-layout { grid-template-areas: "main aside" "reviews aside"; align-items: start; }
  .gm-profile-main { grid-area: main; }
  .gm-profile-aside { grid-area: aside; }
  .gm-profile-reviews { grid-area: reviews; }
}
.gm-profile-layout > .gm-block + .gm-block, .gm-profile-reviews { margin-top: 0; }

.gm-gallery-item { display: flex; flex-direction: column; }
.gm-gallery-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.gm-gallery-desc { margin: 0.3rem 0.1rem 0; font-size: 0.8125rem; line-height: 1.5; color: var(--gm-muted); }
.gm-gallery-none { display: grid; place-items: center; color: var(--gm-faint); font-size: 1.5rem; cursor: default; }
.gm-report-icon { justify-content: center; min-width: 1.75rem; margin-top: 0.3rem; font-size: 0.8125rem; }
@media (min-width: 720px) {
  .gm-gallery-feature .gm-gallery-btn { flex: 1; height: auto; min-height: 20rem; aspect-ratio: auto; }
}
.gm-lightbox-cap .gm-lightbox-title { display: block; color: var(--gm-bone); font-size: 0.9375rem; font-weight: 600; }
.gm-lightbox-close { margin-left: auto; }

.gm-empty-sm { padding: 1.75rem 1.25rem; }
.gm-empty-sm p { font-size: 0.9375rem; margin-top: 0.6rem; }
.gm-tiers-note { margin-top: 1rem; font-size: 0.8125rem; line-height: 1.55; }
.gm-summary-card .gm-tier { background: var(--gm-ground-alt); }
@media (min-width: 720px) { .gm-gallery-few { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gm-gallery-few .gm-gallery-btn { aspect-ratio: 4 / 3; } }
.gm-lightbox-stage { overflow: hidden; }
.gm-lightbox-stage img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: calc(100% - 1rem); max-height: 100%; }

/* Form error summary */
.gm-errorsum ul { margin: 0.5rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.25rem; font-size: 0.875rem; }
.gm-errorsum a { color: var(--gm-bone); text-decoration: underline; text-underline-offset: 3px; }
.gm-errorsum:focus { outline: 2px solid var(--gm-focus); outline-offset: 3px; }
.gm-field textarea[rows="10"] { height: 7.5rem; }
.gm-upload-wide .gm-upload-preview { aspect-ratio: 3 / 1; }
@media (max-width: 419px) {
  .gm-wordmark { letter-spacing: 0.06em; gap: 0.45rem; font-size: 1rem; }
}

/* Painter dashboard */
.gm-pagehead .gm-status { margin-top: 1.5rem; }
.gm-row-price { color: var(--gm-bone); font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.gm-fields { align-items: start; }
.gm-upload-wide .gm-upload-preview { max-height: 12rem; }
.gm-reply-label .gm-pill { margin-left: 0.5rem; text-transform: none; letter-spacing: 0; vertical-align: 0.1em; }
@media (min-width: 720px) { .gm-row.gm-row-nothumb { grid-template-columns: minmax(0, 1fr) auto; } }
.gm-upload-current input { accent-color: var(--gm-danger); }
.gm-upload-controls input[type="file"] { max-width: 100%; }
.gm-upload-current label { display: flex; width: fit-content; margin: 0.35rem 0 0; min-height: 1.75rem; }
@media (max-width: 479px) { .gm-upload-round .gm-upload-preview { width: 4.5rem; height: 4.5rem; } }
.gm-upload { align-items: start; }
.gm-upload-photo { grid-template-columns: minmax(0, 1fr); }
.gm-upload-photo .gm-upload-preview { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.gm-photo-head { min-height: 1.75rem; }

/* ---- 13. Shop ---------------------------------------------- */
/* Listing: chips, grid, cards, the no-photo stand-in, cart box. */
.gm-shop-grid { display: grid; gap: 1.75rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .gm-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.5rem; } }
@media (min-width: 1200px) { .gm-shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gm-shop-grid > li { min-width: 0; }

.gm-pcard { gap: 0; }
.gm-pcard-media { display: block; }
.gm-pcard:hover .gm-pcard-media { border-color: var(--gm-brass-dim); }
.gm-pcard:focus-visible { outline: none; }
.gm-pcard:focus-visible .gm-pcard-media { outline: 2px solid var(--gm-focus); outline-offset: 3px; }
.gm-pcard-kind {
  position: absolute; left: 0.5rem; top: 0.5rem; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.15rem 0.55rem; border-radius: 999px; background: rgba(11, 10, 9, 0.82); border: 1px solid var(--gm-line);
  color: var(--gm-text); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em;
}
.gm-pcard-kind i { color: var(--gm-brass); font-size: 0.625rem; }
.gm-pcard-body { display: grid; }
.gm-pcard-title { display: block; overflow-wrap: anywhere; }
.gm-pcard-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.8125rem; line-height: 1.45; color: var(--gm-muted); }
.gm-pcard-price { margin-top: 0.15rem; font-weight: 600; color: var(--gm-bone); }
@media (max-width: 479px) { .gm-pcard-summary { display: none; } .gm-pcard-kind { font-size: 0; gap: 0; padding: 0.3rem; } .gm-pcard-kind i { font-size: 0.6875rem; } }

/* No photo yet: a drawn plinth rather than a grey box. */
.gm-noimg {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 0.85rem; container-type: size;
  background:
    radial-gradient(closest-side at 50% 42%, rgba(201, 171, 115, 0.10), transparent),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.018) 14px 15px),
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, 0.018) 14px 15px),
    var(--gm-sunken);
  color: var(--gm-faint);
}
.gm-noimg-mark {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; transform: rotate(45deg);
  border: 1px solid var(--gm-brass-dim); border-radius: 4px; background: rgba(17, 15, 13, 0.7);
}
.gm-noimg-mark i { transform: rotate(-45deg); color: var(--gm-brass); font-size: 1.1rem; }
.gm-noimg-cap { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gm-faint); }
@container (max-width: 140px) { .gm-noimg-cap { display: none; } .gm-noimg-mark { width: 1.6rem; height: 1.6rem; } .gm-noimg-mark i { font-size: 0.7rem; } }
@container (min-width: 420px) { .gm-noimg-mark { width: 5rem; height: 5rem; } .gm-noimg-mark i { font-size: 1.75rem; } .gm-noimg-cap { font-size: 0.75rem; } }

.gm-chiprail { margin: 0 calc(var(--gm-gutter) * -1) 1.5rem; padding: 0.15rem var(--gm-gutter); overflow-x: auto; scrollbar-width: none; }
.gm-chiprail::-webkit-scrollbar { display: none; }
.gm-chiprail:has(+ .gm-chiprail-sub) { margin-bottom: 0.6rem; }
.gm-chips { display: flex; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .gm-chips { flex-wrap: wrap; } }
.gm-chip {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--gm-line-strong); color: var(--gm-text); text-decoration: none; font-size: 0.875rem; font-weight: 500;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}
.gm-chip:hover { border-color: var(--gm-bone); color: var(--gm-bone); }
.gm-chip[aria-current] { background: var(--gm-bone); border-color: var(--gm-bone); color: var(--gm-on-accent); }
.gm-chip-sm { min-height: 2.25rem; padding: 0 0.85rem; font-size: 0.8125rem; border-color: var(--gm-line); }
.gm-chip-sm[aria-current] { background: var(--gm-verdigris-tint); border-color: var(--gm-verdigris); color: var(--gm-bone); }

.gm-md p { margin: 0 0 0.75em; } .gm-md p:last-child { margin-bottom: 0; }
.gm-md a { color: var(--gm-verdigris); }

.gm-cartbox {
  display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; padding: 0.7rem 0.75rem 0.7rem 0.9rem;
  border-radius: var(--gm-r); border: 1px solid var(--gm-line); background: var(--gm-card);
}
.gm-cartbox-icon { position: relative; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--gm-raised); color: var(--gm-brass); }
.gm-cartbox-icon .gm-cart-count { top: -0.2rem; right: -0.35rem; }
.gm-cartbox-text { display: grid; gap: 0.1rem; margin-right: auto; }
.gm-cartbox-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gm-brass); }
.gm-cartbox-value { font-size: 0.875rem; color: var(--gm-text); font-variant-numeric: tabular-nums; }
.gm-cartbox-value strong { color: var(--gm-bone); }
@media (max-width: 479px) { .gm-pagehead-row > .gm-cartbox { flex: 1 1 100%; } }

/* Product page */
.gm-product-top { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.gm-product-top .gm-crumbs { margin: 0; }
@media (max-width: 479px) { .gm-product-top > .gm-cartbox { flex: 1 1 100%; } }
.gm-product { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 900px) { .gm-product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } .gm-product-gallery { position: sticky; top: calc(var(--gm-header-h) + 1.5rem); } }
.gm-product-frame { position: relative; aspect-ratio: 1; border-radius: var(--gm-r-lg); overflow: hidden; border: 1px solid var(--gm-line); background: var(--gm-sunken); }
.gm-product-frame > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gm-thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; overflow-x: auto; padding: 3px; scrollbar-width: thin; }
.gm-thumb { flex: none; width: 4.5rem; height: 4.5rem; padding: 0; border-radius: var(--gm-r-sm); border: 1px solid var(--gm-line); background: var(--gm-sunken); overflow: hidden; cursor: pointer; opacity: 0.7; transition: opacity 150ms ease, border-color 150ms ease; }
.gm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gm-thumb:hover { opacity: 1; border-color: var(--gm-muted); }
.gm-thumb[aria-pressed="true"] { opacity: 1; border-color: var(--gm-bone); box-shadow: 0 0 0 1px var(--gm-bone); }
.gm-thumb:focus-visible { outline: 2px solid var(--gm-focus); outline-offset: 2px; }
.gm-product-info .gm-tags { margin-bottom: 0.85rem; }
.gm-product-title { overflow-wrap: anywhere; }
.gm-product-info .gm-lede { margin-top: 0.75rem; }
.gm-product-copy { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--gm-line-soft); }

.gm-buybox { display: grid; gap: 1rem; margin-top: 1.75rem; padding: clamp(1.1rem, 3.5vw, 1.5rem); border-radius: var(--gm-r); border: 1px solid var(--gm-line); background: var(--gm-card); }
.gm-buybox-form { display: grid; gap: 1rem; }
.gm-buybox-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.gm-buybox-add { flex: 1 1 10rem; }
.gm-price { font-weight: 600; color: var(--gm-bone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gm-price-lg { font-family: var(--gm-font-display); font-size: 1.75rem; line-height: 1; }
.gm-stock { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--gm-ok); }
.gm-stock-low { color: var(--gm-warn); }
.gm-stock-out { color: var(--gm-danger); }
.gm-buynote { display: flex; gap: 0.6rem; margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--gm-muted); }
.gm-buynote > i { margin-top: 0.2rem; color: var(--gm-brass); width: 1rem; text-align: center; flex: none; }

.gm-options { display: grid; gap: 0.5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.gm-options > legend { padding: 0; margin-bottom: 0.5rem; }
.gm-option { position: relative; display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 1rem; border-radius: var(--gm-r-sm); border: 1px solid var(--gm-line-strong); background: var(--gm-ground-alt); cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.gm-option:hover { border-color: var(--gm-muted); }
.gm-option input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--gm-verdigris-fill); }
.gm-option:has(input:checked) { border-color: var(--gm-verdigris); background: var(--gm-verdigris-tint); }
.gm-option:has(input:focus-visible) { outline: 2px solid var(--gm-focus); outline-offset: 2px; }
.gm-option:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
.gm-option-body { display: grid; gap: 0.1rem; flex: 1; min-width: 0; }
.gm-option-title { color: var(--gm-bone); font-weight: 500; overflow-wrap: anywhere; }
.gm-option-meta { font-size: 0.8125rem; color: var(--gm-muted); }

.gm-stepper { display: inline-flex; align-items: stretch; height: 3.25rem; border-radius: var(--gm-r-sm); border: 1px solid var(--gm-line-strong); background: var(--gm-ground); overflow: hidden; }
.gm-stepper-btn { width: 2.75rem; border: 0; background: transparent; color: var(--gm-text); cursor: pointer; }
.gm-stepper-btn:hover:not(:disabled) { background: var(--gm-raised); color: var(--gm-bone); }
.gm-stepper-btn:disabled { color: var(--gm-faint); cursor: not-allowed; }
.gm-stepper-btn:focus-visible { outline: 2px solid var(--gm-focus); outline-offset: -2px; }
.gm-stepper-value { width: 3rem; border: 0; border-inline: 1px solid var(--gm-line); background: transparent; color: var(--gm-bone); text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.gm-stepper-value::-webkit-outer-spin-button, .gm-stepper-value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gm-stepper-value:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gm-focus); }

.gm-commission-note { display: grid; gap: 0.6rem; justify-items: start; }
.gm-commission-note p { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--gm-muted); }
.gm-cpainter-sub i { color: var(--gm-brass); font-size: 0.6875rem; }
.gm-cpainter-more { margin-top: auto; font-size: 0.875rem; }
@media (max-width: 599px) { .gm-product-frame:has(.gm-noimg) { aspect-ratio: 4 / 3; } }

/* Cart and checkout */
.gm-checkout-steps li[aria-current] { color: var(--gm-bone); font-weight: 600; }
.gm-checkout-steps li[aria-current]::before { background: var(--gm-brass); border-color: var(--gm-brass); color: var(--gm-on-accent); }
.gm-checkout { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .gm-checkout { grid-template-columns: minmax(0, 1fr) 24rem; gap: 2.5rem; align-items: start; } .gm-checkout-aside { position: sticky; top: calc(var(--gm-header-h) + 1.25rem); } }
.gm-checkout-main { display: grid; gap: 1.25rem; align-content: start; }
.gm-checkout-aside { display: grid; gap: 1rem; }
.gm-checkout-more { margin: 0.25rem 0 0; font-size: 0.875rem; }

.gm-lines { margin: 0; padding: 0; list-style: none; border-radius: var(--gm-r); border: 1px solid var(--gm-line); background: var(--gm-card); }
.gm-line { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; grid-template-areas: "thumb body total" "thumb controls controls"; gap: 0.6rem 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--gm-line-soft); }
.gm-line:last-child { border-bottom: 0; }
@media (min-width: 720px) { .gm-line { grid-template-columns: 5.5rem minmax(0, 1fr) auto; padding: 1.15rem 1.35rem; } }
.gm-line-thumb { grid-area: thumb; position: relative; aspect-ratio: 1; border-radius: var(--gm-r-sm); overflow: hidden; border: 1px solid var(--gm-line); background: var(--gm-sunken); align-self: start; }
.gm-line-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gm-line-body { grid-area: body; min-width: 0; display: grid; gap: 0.3rem; align-content: start; }
.gm-line-title { color: var(--gm-bone); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; line-height: 1.35; }
.gm-line-title:hover { color: var(--gm-verdigris); text-decoration: underline; text-underline-offset: 3px; }
.gm-line-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.85rem; font-size: 0.8125rem; color: var(--gm-muted); }
.gm-line-meta i { margin-right: 0.35rem; color: var(--gm-faint); }
.gm-line-total { grid-area: total; text-align: right; }
.gm-line-controls { grid-area: controls; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.gm-line-controls form { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.gm-line-remove { color: var(--gm-muted); }
.gm-line-remove:hover { color: var(--gm-danger); }
.gm-line-note { grid-column: 1 / -1; }
.gm-line-unavailable .gm-line-thumb, .gm-line-unavailable .gm-line-body, .gm-line-unavailable .gm-line-total { opacity: 0.55; }
.gm-stepper-sm { height: 2.5rem; }
.gm-stepper-sm .gm-stepper-btn { width: 2.25rem; }
.gm-stepper-sm .gm-stepper-value { width: 2.5rem; }

.gm-fieldset-options { display: grid; gap: 0.5rem; }
.gm-address .gm-input { width: 100%; }
.gm-fixed-line { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.7rem 0.9rem; border-radius: var(--gm-r-sm); border: 1px dashed var(--gm-line-strong); font-size: 0.875rem; color: var(--gm-muted); }
.gm-fixed-line span:last-child { color: var(--gm-bone); }

.gm-paybox { display: grid; gap: 1rem; }
.gm-paybox > .gm-h3 { margin: 0; }
.gm-summary { display: grid; gap: 0.5rem; margin: 0; }
.gm-summary > div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9375rem; }
.gm-summary dt { color: var(--gm-muted); }
.gm-summary dd { margin: 0; color: var(--gm-text); font-variant-numeric: tabular-nums; }
.gm-summary-total { margin-top: 0.35rem; padding-top: 0.75rem; border-top: 1px solid var(--gm-line-soft); }
.gm-summary-total dt { color: var(--gm-bone); font-weight: 600; }
.gm-summary-total dd { font-family: var(--gm-font-display); font-size: 1.5rem; color: var(--gm-bone); line-height: 1.1; }
.gm-summary-neg dd { color: var(--gm-ok); }
.gm-pay-trust { display: flex; align-items: center; justify-content: center; gap: 0.45rem; margin: 0; font-size: 0.8125rem; color: var(--gm-muted); text-align: center; }
.gm-pay-trust i { color: var(--gm-faint); }
.gm-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; padding: 0.85rem 1rem; border-radius: var(--gm-r-sm); border: 1px solid var(--gm-line-strong); background: var(--gm-ground-alt); font-size: 0.875rem; line-height: 1.5; color: var(--gm-text); cursor: pointer; }
.gm-consent input { width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--gm-verdigris-fill); }
.gm-consent:has(input:checked) { border-color: var(--gm-verdigris); }
.gm-consent:has(input:focus-visible) { outline: 2px solid var(--gm-focus); outline-offset: 2px; }

/* Pay bar: the total and Pay, fixed to the bottom under 1024px. */
.gm-paybar { display: none; }
@media (max-width: 1023px) {
  .gm-paybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.75rem var(--gm-gutter) calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--gm-raised); border-top: 1px solid var(--gm-line); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
  }
  .gm-paybar-total { display: grid; line-height: 1.15; }
  .gm-paybar-total span { font-size: 0.75rem; color: var(--gm-muted); }
  .gm-paybar-total strong { font-family: var(--gm-font-display); font-size: 1.375rem; color: var(--gm-bone); font-variant-numeric: tabular-nums; }
  .gm-paybar .gm-btn { flex: 0 1 14rem; }
  .gm-has-paybar .gm-checkout-aside .gm-pay-btn { display: none; }
  body.gm-has-paybar .gm-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  html:has(body.gm-has-paybar) { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
body:has(.gm-drawer:not([hidden])) .gm-paybar { display: none; }
:root[data-theme="gaming"] [hidden] { display: none !important; }
/* Radios and ticks in option rows and consent boxes, drawn in gm colours (the base form reset paints them blue). */
.gm-option input[type="radio"], .gm-consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; display: inline-grid; place-items: center; flex: none;
  width: 1.15rem; height: 1.15rem; margin: 0; border: 1px solid var(--gm-line-strong); background: var(--gm-ground); color: var(--gm-on-accent); cursor: pointer;
}
.gm-option input[type="radio"] { border-radius: 50%; }
.gm-consent input[type="checkbox"] { border-radius: 3px; margin-top: 0.15rem; }
.gm-option input[type="radio"]:checked { border: 5px solid var(--gm-verdigris-fill); background: var(--gm-bone); }
.gm-consent input[type="checkbox"]:checked { border-color: var(--gm-verdigris-fill); background: var(--gm-verdigris-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%230b0a09' stroke-width='1.8'/%3E%3C/svg%3E") center no-repeat; }
.gm-option input:focus, .gm-consent input:focus { outline: none; box-shadow: none; }
.gm-consent input[aria-invalid="true"], .gm-consent:has(input:invalid:focus) { border-color: var(--gm-danger); }

/* ---- Accessibility audit, round 2 ---- */
/* A focused control must not sit under the sticky header (WCAG 2.4.11). */
html:has(body > header.gm-header) { scroll-padding-top: calc(var(--gm-header-h) + 1rem); }
/* 24px minimum targets for stand-alone text links (WCAG 2.5.8). */
.gm-line-title, .gm-rating.gm-link-quiet, .gm-pay-trust .gm-link { display: inline-flex; align-items: center; min-height: 1.5rem; }
/* At 320px the wordmark was clipped to "LEGION G…": drop the account icon (it is in the menu) and tighten the name (WCAG 1.4.10). */
@media (max-width: 399px) {
  .gm-hide-xs { display: none; }
  .gm-wordmark { font-size: 0.9375rem; letter-spacing: 0.08em; gap: 0.45rem; }
  .gm-header-inner { gap: 0.5rem; }
}
.gm-wordmark { min-height: 2.75rem; }
/* Placeholder text counts as text: the shared grey was 4.1:1 on the input fill (WCAG 1.4.3). */
:root[data-theme="gaming"] ::placeholder { color: var(--gm-faint); opacity: 1; }
/* Deleting a piece or tier asks first: a no-script disclosure (WCAG 3.3.4). */
.gm-row-actions { flex-wrap: wrap; align-items: flex-start; }
.gm-confirm { display: block; }
.gm-confirm[open] { flex: 1 1 100%; }
.gm-dash-nav { flex-wrap: wrap; overflow-x: visible; } /* wrap rather than scroll sideways at 320px (WCAG 1.4.10) */
.gm-confirm > summary { list-style: none; cursor: pointer; }
.gm-confirm > summary::-webkit-details-marker { display: none; }
.gm-confirm[open] > summary { color: var(--gm-bone); }
.gm-confirm form { display: grid; gap: 0.5rem; margin-top: 0.5rem; padding: 0.75rem; border: 1px solid var(--gm-danger); border-radius: var(--gm-r-sm); background: var(--gm-danger-tint); }
.gm-confirm p { margin: 0; font-size: 0.875rem; color: var(--gm-text); }

/* ---- 12. Legal documents and plain pages ---------------------- */
.gm-legal { display: grid; gap: 1.25rem; }
/* Long-form reading: the body stops at a comfortable line length; the contents sit beside it on wide screens and fold into one tap on phones. */
@media (min-width: 1000px) { .gm-legal { grid-template-columns: 14rem minmax(0, 46rem); gap: 3rem; align-items: start; } .gm-legal-aside { position: sticky; top: calc(var(--gm-header-h) + 1.25rem); max-height: calc(100vh - var(--gm-header-h) - 2.5rem); overflow-y: auto; } .gm-legal-toc { display: none; } }
@media (max-width: 999.98px) { .gm-legal-aside { display: none; } }
.gm-legal-toc { border: 1px solid var(--gm-line); border-radius: var(--gm-r); background: var(--gm-card); }
.gm-legal-toc summary { display: flex; align-items: center; gap: 0.6rem; min-height: 3rem; padding: 0.6rem 1.1rem; cursor: pointer; list-style: none; font-weight: 600; color: var(--gm-bone); }
.gm-legal-toc summary::-webkit-details-marker { display: none; }
.gm-legal-toc summary .gm-muted { font-weight: 400; font-size: 0.875rem; }
.gm-legal-toc summary i { margin-left: auto; font-size: 0.8rem; color: var(--gm-brass); transition: transform 0.2s ease; }
.gm-legal-toc[open] summary i { transform: rotate(180deg); }
.gm-legal-toc summary:focus-visible { outline: 2px solid var(--gm-verdigris); outline-offset: 2px; border-radius: var(--gm-r); }
.gm-legal-toc nav { padding: 0 1.1rem 0.9rem; border-top: 1px solid var(--gm-line-soft); }
.gm-legal-toc .gm-legal-contents { padding-top: 0.5rem; font-size: 0.9375rem; }
.gm-legal-card[id] { scroll-margin-top: calc(var(--gm-header-h) + 1rem); }
.gm-legal-contents { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; font-size: 0.875rem; }
.gm-legal-contents a { display: block; padding: 0.3rem 0; color: var(--gm-muted); text-decoration: none; }
.gm-legal-contents a:hover, .gm-legal-contents a:focus-visible { color: var(--gm-bone); }
.gm-legal-body { display: grid; gap: 1.25rem; min-width: 0; }
.gm-legal-card { padding: clamp(1.1rem, 3.5vw, 1.75rem); border: 1px solid var(--gm-line); border-radius: var(--gm-r); background: var(--gm-card); line-height: 1.7; overflow-wrap: anywhere; }
.gm-legal-card h2 { margin: 0 0 0.75rem; font-family: var(--gm-font-display); font-size: 1.25rem; font-weight: 600; color: var(--gm-bone); }
.gm-legal-card p { margin: 0 0 0.75rem; }
.gm-legal-card p:last-child { margin-bottom: 0; }
.gm-legal-card ul, .gm-legal-card ol { margin: 0 0 0.75rem; padding-left: 1.4rem; display: grid; gap: 0.35rem; }
.gm-legal-card strong { color: var(--gm-bone); }
.gm-legal-card a:not(.gm-btn) { color: var(--gm-verdigris); text-decoration: underline; text-underline-offset: 3px; }
.gm-legal-card table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 0.75rem 0; display: block; overflow-x: auto; }
.gm-legal-card th, .gm-legal-card td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--gm-line-soft); }
.gm-legal-card th { color: var(--gm-bone); }
.gm-legal-end { text-align: center; }
.gm-legal-end .gm-btnrow { justify-content: center; margin-top: 1rem; }
.gm-faq { border-top: 1px solid var(--gm-line-soft); padding-block: 0.15rem; }
.gm-faq > summary { cursor: pointer; padding: 0.7rem 0; min-height: 2.75rem; color: var(--gm-bone); font-weight: 600; }
.gm-faq[open] > summary { color: var(--gm-brass); }
.gm-faq > p { margin: 0 0 0.9rem; color: var(--gm-text); }

/* Order page: the return from payment, the order and its downloads */
.gm-order-status { padding: clamp(1.1rem, 3.5vw, 1.75rem); }
.gm-order-status .gm-status-icon { width: 3rem; height: 3rem; font-size: 1.2rem; }
.gm-order-status .gm-eyebrow { margin-bottom: 0.35rem; }
.gm-order-title { margin: 0 0 0.5rem; font-size: clamp(1.75rem, 5vw, 2.5rem); }
.gm-order-status .gm-steps { margin-top: 1rem; }
.gm-order-slow { margin-top: 1rem; }
.gm-order-status .gm-btnrow { margin-top: 1.25rem; }
.gm-order-dates { margin: 0; font-size: 0.8125rem; line-height: 1.55; color: var(--gm-muted); }
.gm-address-block { font-style: normal; font-size: 0.9375rem; line-height: 1.6; color: var(--gm-text); }
.gm-download { padding: 0.6rem 0.75rem; border-radius: var(--gm-r-sm); background: var(--gm-ground-alt); border: 1px solid var(--gm-line-soft); }
.gm-pay-trust .gm-link { overflow-wrap: anywhere; }
aside .gm-pay-trust:has(.fa-envelope) { flex-wrap: wrap; }

/* Orders list */
.gm-orders { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.gm-order-row { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto auto; align-items: center; gap: 0.5rem 1rem; padding: 0.9rem 1rem; border-radius: var(--gm-r); border: 1px solid var(--gm-line); background: var(--gm-card); color: inherit; text-decoration: none; transition: border-color 150ms ease, background-color 150ms ease; }
.gm-order-row:hover { border-color: var(--gm-brass-dim); background: var(--gm-raised); }
.gm-order-row:hover .gm-line-title { color: var(--gm-verdigris); }
.gm-order-row:focus-visible { outline: 2px solid var(--gm-focus); outline-offset: 3px; }
.gm-order-row .gm-line-thumb { grid-area: auto; }
.gm-order-row .gm-line-body { grid-area: auto; }
.gm-order-row-items { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.8125rem; color: var(--gm-muted); }
.gm-order-row-side { display: grid; justify-items: end; gap: 0.35rem; }
.gm-order-row-go { color: var(--gm-faint); font-size: 0.75rem; }
@media (max-width: 559px) {
  .gm-order-row { grid-template-columns: 3.5rem minmax(0, 1fr) auto; }
  .gm-order-row-side { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; gap: 0.75rem; justify-content: start; }
  .gm-order-row-go { grid-column: 3; grid-row: 1; }
}
@media (max-width: 559px) { .gm-order-status { grid-template-columns: minmax(0, 1fr); } .gm-order-status .gm-btnrow .gm-btn { flex: 1 1 auto; } }
.gm-trust { display: grid; gap: 0.6rem; margin: 0; padding: 0.9rem 0 0; list-style: none; border-top: 1px solid var(--gm-line-soft); font-size: 0.8125rem; line-height: 1.5; color: var(--gm-muted); }
.gm-trust li { display: grid; grid-template-columns: 1rem minmax(0, 1fr); gap: 0.6rem; }
.gm-trust i { margin-top: 0.2rem; color: var(--gm-brass); text-align: center; }
.gm-trust .gm-link { overflow-wrap: anywhere; }

/* ---- 14. Account pages: sign-in, register, password reset, verify, unsubscribe ---- */
:root[data-theme="gaming"] [x-cloak] { display: none !important; }
.gm-auth-page { background: radial-gradient(48rem 20rem at 50% -8rem, rgba(201, 171, 115, 0.07), transparent 70%); }
.gm-auth { max-width: 30rem; }
.gm-auth-card { display: grid; gap: 1.5rem; padding: clamp(1.35rem, 5vw, 2.25rem); border: 1px solid var(--gm-line); border-radius: var(--gm-r-lg); background: var(--gm-card); }
.gm-auth-head { display: grid; gap: 0.5rem; }
.gm-auth-head .gm-h1 { font-size: clamp(1.75rem, 5.5vw, 2.25rem); }
.gm-auth-sub { margin: 0; color: var(--gm-text); line-height: 1.6; }
.gm-auth-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--gm-brass-dim); color: var(--gm-brass); font-size: 1.15rem; }
.gm-auth-icon-ok { border-color: rgba(134, 214, 168, 0.45); color: var(--gm-ok); }
.gm-auth-icon-stop { border-color: rgba(242, 149, 138, 0.45); color: var(--gm-danger); }
.gm-auth-alt { display: grid; gap: 0.75rem; padding-top: 1.35rem; border-top: 1px solid var(--gm-line-soft); text-align: center; }
.gm-auth-alt p { margin: 0; font-size: 0.875rem; color: var(--gm-muted); }
.gm-auth-foot { margin: 1.25rem 0 0; text-align: center; font-size: 0.875rem; color: var(--gm-muted); }
.gm-auth-foot a { display: inline-flex; align-items: center; min-height: 1.5rem; }
.gm-auth-steps { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.4rem; color: var(--gm-text); line-height: 1.6; }
.gm-auth-actions { display: grid; gap: 0.75rem; }
.gm-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.gm-auth-aside-link { font-size: 0.8125rem; display: inline-flex; align-items: center; min-height: 1.5rem; }
.gm-pw { position: relative; }
.gm-pw .gm-input { padding-right: 3rem; }
.gm-pw-toggle { position: absolute; top: 50%; right: 0.2rem; transform: translateY(-50%); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: var(--gm-r-sm); background: none; color: var(--gm-muted); cursor: pointer; }
.gm-pw-toggle:hover { color: var(--gm-bone); }
.gm-pw-toggle:focus-visible { outline: 2px solid var(--gm-focus); outline-offset: -2px; }
.gm-input[aria-invalid="true"] { border-color: var(--gm-danger); }
.gm-input::placeholder { color: var(--gm-faint); }
/* A plain tick box with its label: remember me, terms. */
.gm-tick { display: flex; align-items: flex-start; gap: 0.7rem; min-height: 1.5rem; font-size: 0.9375rem; line-height: 1.5; color: var(--gm-text); cursor: pointer; }
.gm-tick input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; width: 1.15rem; height: 1.15rem; margin: 0.15rem 0 0;
  border: 1px solid var(--gm-line-strong); border-radius: 3px; background: var(--gm-ground); cursor: pointer;
}
.gm-tick input[type="checkbox"]:checked { border-color: var(--gm-verdigris-fill); background: var(--gm-verdigris-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%230b0a09' stroke-width='1.8'/%3E%3C/svg%3E") center no-repeat; }
.gm-tick input:focus { outline: none; box-shadow: none; }
.gm-tick input:focus-visible { outline: 2px solid var(--gm-focus); outline-offset: 2px; }
.gm-tick input[aria-invalid="true"] { border-color: var(--gm-danger); }
.gm-tick a { color: var(--gm-verdigris); text-decoration: underline; text-underline-offset: 3px; }
.gm-auth-wide { max-width: 36rem; }
.gm-agree { display: grid; gap: 0.9rem; margin: 0; padding: 1.1rem; border: 1px solid var(--gm-line-soft); border-radius: var(--gm-r); background: var(--gm-ground-alt); min-width: 0; }
.gm-agree > legend { float: left; width: 100%; margin: 0 0 0.1rem; padding: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gm-brass); }
.gm-agree > legend + * { clear: both; }
.gm-tick strong { color: var(--gm-bone); }
.gm-tick-quiet { color: var(--gm-muted); font-size: 0.875rem; }
.gm-auth-foot i { margin-right: 0.3rem; color: var(--gm-faint); }
.gm-input, .gm-field :is(input, select, textarea) { color-scheme: dark; }
.gm-auth-email { color: var(--gm-bone); font-weight: 600; overflow-wrap: anywhere; }

/* ---- 15. Error pages: 403, 404, 500, expired form ---- */
.gm-errpage { background: radial-gradient(40rem 22rem at 50% 0, rgba(201, 171, 115, 0.06), transparent 70%); }
.gm-err { max-width: 36rem; display: grid; gap: 0.85rem; justify-items: center; text-align: center; }
.gm-err .gm-lede { margin-inline: auto; }
.gm-err-code { margin: 0 0 -0.5rem; font-family: var(--gm-font-display); font-size: clamp(5rem, 22vw, 8.5rem); font-weight: 600; line-height: 1; letter-spacing: 0.04em; color: transparent; -webkit-text-stroke: 1px var(--gm-brass-dim); }
.gm-err .gm-note { width: 100%; margin-top: 0.75rem; text-align: left; }
.gm-err-actions { justify-content: center; margin-top: 0.75rem; }
.gm-err-links { width: 100%; margin-top: 0.75rem; text-align: left; border: 1px solid var(--gm-line); border-radius: var(--gm-r); background: var(--gm-card); overflow: hidden; }
.gm-err-links-head { margin: 0; padding: 0.85rem 1.1rem 0.4rem; font-size: 0.8125rem; color: var(--gm-muted); }
.gm-err-links ul { margin: 0; padding: 0; list-style: none; }
.gm-err-links a { display: grid; grid-template-columns: 1.25rem 1fr auto; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.4rem 1.1rem; color: var(--gm-bone); text-decoration: none; border-top: 1px solid var(--gm-line-soft); }
.gm-err-links li:first-child a { border-top: 0; }
.gm-err-links a:hover { background: var(--gm-raised); }
.gm-err-links a > i:first-child { color: var(--gm-brass); text-align: center; }
.gm-err-links a > i:last-child { color: var(--gm-faint); font-size: 0.75rem; }
.gm-fields + .gm-help { margin-top: 0.85rem; }
/* Tick boxes and radios at least 24px square (2.5.8). */
.gm-tick input[type="checkbox"], .gm-consent input[type="checkbox"], .gm-option input[type="radio"] { width: 1.5rem; height: 1.5rem; margin-top: 0; }
.gm-line-controls form { flex-wrap: wrap; min-width: 0; }
/* "Remove it" tick on an uploaded picture: drawn like the other tick boxes, 24px (2.5.8). */
.gm-upload-current label, .gm-photo-remove { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 1.75rem; margin-left: 0.5rem; cursor: pointer; }
.gm-upload-current input[type="checkbox"], .gm-photo-remove input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; width: 1.5rem; height: 1.5rem; margin: 0;
  border: 1px solid var(--gm-line-strong); border-radius: 3px; background: var(--gm-ground); cursor: pointer;
}
.gm-upload-current input[type="checkbox"]:checked, .gm-photo-remove input[type="checkbox"]:checked { border-color: var(--gm-verdigris-fill); background: var(--gm-verdigris-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%230b0a09' stroke-width='1.8'/%3E%3C/svg%3E") center no-repeat; }

/* Messages: the on-site inbox between customers and painters. */
.gm-thread { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.85rem; }
.gm-msg { max-width: 38rem; padding: 0.85rem 1.1rem; border-radius: var(--gm-r); border: 1px solid var(--gm-line); background: var(--gm-card); }
.gm-msg-mine { justify-self: end; border-color: var(--gm-line-strong); }
.gm-msg p { margin: 0; overflow-wrap: anywhere; }
.gm-msg-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; font-size: 0.8125rem; color: var(--gm-muted); margin-bottom: 0.35rem !important; }
.gm-msg-meta strong { color: var(--gm-bone); overflow-wrap: anywhere; min-width: 0; }
.gm-msg-link, .gm-msg-actions { margin-top: 0.5rem !important; font-size: 0.8125rem; }
