/* ============================================================
   ASHEN THRONE - SITE THEME (single source of truth)
   Loaded FIRST on EVERY page (marketing + hub + mint).
   Owns: fonts, design tokens, the shared site header, the
   shared site footer, and the shared button/eyebrow/title
   primitives. Page stylesheets (style.css, seo.css, mint.css,
   hub.css) hold page-specific layout ONLY and must not
   redeclare tokens or chrome.

   Type system (matches the GAME's declared identity in
   client/styles.css - the site is where these webfonts
   actually load):
     --font-display  Black Han Sans   hero wordmark, section titles
     --font-chrome   Rajdhani         nav, buttons, labels, headers
     --font-mono     JetBrains Mono   data: hashes, prices, terminal
     --font-body     system sans      long-form paragraphs

   Guard: scripts/verify-hub-shell.js (theme-first load order,
   header parity, token ownership).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Cinzel:wght@500;600;700;800;900&family=Rajdhani:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
  /* Backgrounds */
  --bg:        #060610;
  --bg2:       #0a0a14;
  --bg3:       #0d1520;
  --panel:     #11141c;

  /* Borders */
  --border:    #1a2030;
  --border2:   #2a3040;

  /* Text */
  --text:      #e8e8ec;
  --text-dim:  #a8acb8;
  --text-mute: #6e7280;

  /* Brand & utility */
  --accent:    #4fc3f7;
  --gold:      #d4af37;
  --gold-hot:  #ffd700;
  --kinetic:   #ef5350;
  --electric:  #ff9800;
  --psionic:   #26c6da;
  --ok:        #66bb6a;
  --danger:    #c62828;

  /* Typography */
  --font-display: 'Black Han Sans', 'Arial Black', Impact, sans-serif;
  --font-brand:   'Cinzel', 'Trajan Pro', 'Times New Roman', serif;  /* regal wordmark + section titles */
  --font-chrome:  'Rajdhani', 'Arial Narrow', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, Menlo, monospace;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --section-padding: 96px 32px;
  --header-h: 58px;

  /* ── mint.css / hub.css alias vocabulary (same values) ── */
  --bg-darker:   #060610;
  --bg-dark:     #0a0a14;
  --bg-slot:     #0d1520;
  --bg-input:    #0d0d18;
  --bg-panel:    #11141c;
  --bg-panel-hover: #1a2235;

  --border-subtle: #1a2030;
  --border-steel:  #2a3040;
  --border-glow:   #4fc3f7;
  --border-gold:   #ffd700;

  --text-primary:   #e8e8ec;
  --text-secondary: #c8c8c8;
  --text-dim2:      #b0b0b0;
  --text-bright:    #ffffff;

  --accent-cyan:   #4fc3f7;
  --accent-red:    #ef5350;
  --accent-green:  #66bb6a;
  --accent-orange: #ff9800;
  --accent-gold:   #ffd700;
  --accent-purple: #e040fb;
  --accent-blue:   #42a5f5;

  --class-kinetic:  #ef5350;
  --class-electric: #ff9800;
  --class-psionic:  #26c6da;

  --rarity-common:    #888888;
  --rarity-rare:      #42a5f5;
  --rarity-epic:      #e040fb;
  --rarity-legendary: #ffd700;

  --font-xs:  9px;
  --font-sm: 10px;
  --font-md: 11px;
  --font-lg: 12px;
  --font-xl: 14px;

  --space-xs:  2px;
  --space-sm:  4px;
  --space-md:  8px;
  --space-lg: 12px;
  --space-xl: 16px;
  --space-2xl:24px;

  --radius-sm:  3px;
  --radius-md:  4px;
  --radius-lg:  6px;
  --radius-xl:  8px;
  --radius-pill:12px;

  --shadow-btn-inset: inset 0 1px 0 rgba(255,255,255,0.06), 0 1px 3px rgba(0,0,0,0.4);
  --glow-cyan:   0 0 12px rgba(79,195,247,0.35);
  --glow-gold:   0 0 12px rgba(255,215,0,0.35);

  --col-max: 1320px;
}

/* ── zh-Hant (Traditional Chinese) font fallbacks ──────────────────────────
   The Latin display faces (Black Han Sans / Cinzel / Rajdhani) carry no CJK
   glyphs; give every stack a Noto TC fallback so translated text renders in a
   matching weight instead of the system default. The Noto stylesheet is
   loaded only when the locale is active: landing/i18n.js injects it at
   runtime (hub pages) and scripts/l10n-landing-bake.js bakes the <link> into
   landing/zh/index.html (data-i18n-fonts="zh-Hant" both ways). */
html[lang="zh-Hant"] {
  --font-display: 'Black Han Sans', 'Noto Sans TC', 'Arial Black', Impact, sans-serif;
  --font-brand:   'Cinzel', 'Noto Serif TC', 'Times New Roman', serif;
  --font-chrome:  'Rajdhani', 'Noto Sans TC', 'Arial Narrow', sans-serif;
  --font-body:    'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

::selection { background: rgba(79, 195, 247, 0.28); color: #fff; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   PLATE GEOMETRY - the house chamfer, ported from the game
   (client/styles/ashen.css .btn contract, owner 2026-08-26).
   An angular plate, zero border-radius, two opposite corners cut
   (top-left + bottom-right):

   - The SHAPE is clip-path (--plate-cut, cut size --bc).
   - The FILL is the element's own background and the EDGE is a
     ::after RING (outer polygon minus the 1px-inset one, evenodd)
     painted above the content, because a real border is amputated
     at a clipped corner. Same box, same polygon family, so the
     diagonal band stays a uniform hairline (intercepts at
     bc + 0.41px = 1px x (sqrt(2) - 1) past the cut). The ring sits
     on top so translucent fills and full-bleed images keep it.
   - GLOWS are drop-shadow FILTERS, never box-shadow: an outer
     box-shadow paints the rectangle the clip just removed.
   - The focus ring is an INSET box-shadow for the same reason.

   The polygons are declared on the universal selector so every
   element resolves them from its OWN --bc (var() inside a custom
   property substitutes at the element that carries it; a :root
   declaration would freeze --bc at the root value). Families set
   --bc; converted components set --plate-edge / --plate-fill.
   ============================================================ */
:root { --bc: 7px; }
* {
  --plate-cut: polygon(var(--bc) 0, 100% 0, 100% calc(100% - var(--bc)),
    calc(100% - var(--bc)) 100%, 0 100%, 0 var(--bc));
  --plate-cut-in: polygon(
    calc(var(--bc) + 0.41px) 1px,
    calc(100% - 1px) 1px,
    calc(100% - 1px) calc(100% - var(--bc) - 0.41px),
    calc(100% - var(--bc) - 0.41px) calc(100% - 1px),
    1px calc(100% - 1px),
    1px calc(var(--bc) + 0.41px));
  --plate-cut-in2: polygon(
    calc(var(--bc) + 0.83px) 2px,
    calc(100% - 2px) 2px,
    calc(100% - 2px) calc(100% - var(--bc) - 0.83px),
    calc(100% - var(--bc) - 0.83px) calc(100% - 2px),
    2px calc(100% - 2px),
    2px calc(var(--bc) + 0.83px));
  /* The EDGE as a ring: outer plate polygon minus the inset one, evenodd.
     Painted by ::after ABOVE the content, so a translucent fill, an outline
     chip or a full-bleed image never hides the hairline. */
  --plate-ring: polygon(evenodd,
    var(--bc) 0, 100% 0, 100% calc(100% - var(--bc)),
    calc(100% - var(--bc)) 100%, 0 100%, 0 var(--bc), var(--bc) 0,
    calc(var(--bc) + 0.41px) 1px,
    1px calc(var(--bc) + 0.41px),
    1px calc(100% - 1px),
    calc(100% - var(--bc) - 0.41px) calc(100% - 1px),
    calc(100% - 1px) calc(100% - var(--bc) - 0.41px),
    calc(100% - 1px) 1px,
    calc(var(--bc) + 0.41px) 1px);
  --plate-ring2: polygon(evenodd,
    var(--bc) 0, 100% 0, 100% calc(100% - var(--bc)),
    calc(100% - var(--bc)) 100%, 0 100%, 0 var(--bc), var(--bc) 0,
    calc(var(--bc) + 0.83px) 2px,
    2px calc(var(--bc) + 0.83px),
    2px calc(100% - 2px),
    calc(100% - var(--bc) - 0.83px) calc(100% - 2px),
    calc(100% - 2px) calc(100% - var(--bc) - 0.83px),
    calc(100% - 2px) 2px,
    calc(var(--bc) + 0.83px) 2px);
}

/* The plate anatomy. Add a component here (or give it class
   "plate") and set its --plate-edge / --plate-fill; never set a
   background, border or border-radius on the host, and never use
   ::after on it (the ring owns it). Page sheets
   list their own converted components in the same shape. */
.plate,
.btn, .site-cta, .site-tab, .site-menu-toggle, .site-brand-badge,
.seo-cta-btn, .cup-btn, .vet-btn, .mcp-btn {
  --plate-edge: linear-gradient(180deg, #6f8fa3, #3a5468 45%, #10161f);
  --plate-fill: linear-gradient(180deg, #262b33, #1a1f27 55%, #12161d);
  position: relative;
  z-index: 0;
  border: none;
  border-radius: 0;
  clip-path: var(--plate-cut);
  background: var(--plate-fill);
}
.plate::after,
.btn::after, .site-cta::after, .site-tab::after, .site-menu-toggle::after,
.site-brand-badge::after,
.seo-cta-btn::after, .cup-btn::after, .vet-btn::after, .mcp-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 9;
  clip-path: var(--plate-ring);
  background: var(--plate-edge);
  pointer-events: none;
}
/* 2px-edge sibling for cards that carry a heavier outline. */
.plate--2::after { clip-path: var(--plate-ring2); }

/* ============================================================
   SITE HEADER - the ONE header, identical on every page.
   Marketing pages embed the markup statically (index.html and
   _partials.py); hub pages render it with hub-nav.js (adds live
   session state). Structure:

   <header class="site-header" [data-current="events"]>
     <input type="checkbox" id="site-menu-cb" class="site-menu-cb">
     <a class="site-brand" href="/">
       <span class="site-brand-badge">AT</span>
       <span class="site-brand-name">ASHEN THRONE</span>
     </a>
     <nav class="site-tabs" id="site-tabs">
       <a class="site-tab" href="/events">EVENTS</a> ...
       <a class="site-tab site-tab-account site-tab-menu-only" href="/account">ACCOUNT</a>
     </nav>
     <div class="site-header-side">
       <a class="site-tab site-tab-account" href="/account">ACCOUNT</a>
       <a class="site-cta" href="https://play.ashenthr.one">PLAY FREE</a>
       <label class="site-menu-toggle" for="site-menu-cb"><span></span></label>
     </div>
   </header>

   MOBILE (<= 860px): the tab row collapses behind the toggle. It
   is a CSS-only disclosure - the checkbox is the FIRST child so
   `.site-menu-cb:checked ~ .site-tabs` reaches the nav with no
   JavaScript and no :has() - and the nav becomes a full-width
   panel under the bar. The ACCOUNT tab exists twice on purpose:
   the bar copy (desktop) and the menu copy (mobile) so the phone
   bar holds only brand + PLAY + toggle. A page with in-page
   anchors (the homepage) unchecks the box on tab click.
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--header-h);
  padding: 0 22px;
  background: rgba(6, 6, 16, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

/* The disclosure checkbox: visually hidden, still focusable so a
   keyboard reaches the menu (Space toggles it). */
.site-menu-cb {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-header .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  min-width: 0;
}

.site-brand-badge {
  --bc: 5px;
  --plate-edge: var(--accent);
  --plate-fill: linear-gradient(180deg, #0f1a26, #070b12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(79, 195, 247, 0.35));
}

.site-brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: #fff;
  white-space: nowrap;
}

.site-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  min-width: 0;
}

.site-header .site-tab {
  --bc: 4px;
  --plate-edge: transparent;
  --plate-fill: transparent;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-chrome);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 7px 10px;
  white-space: nowrap;
  transition: color 0.15s;
}
.site-header .site-tab::after { transition: background 0.15s; }
.site-header .site-tab:hover { color: #fff; --plate-fill: rgba(255, 255, 255, 0.04); }
.site-header .site-tab.gold { color: var(--gold-hot); }
.site-header .site-tab.gold:hover { filter: brightness(1.18); }
.site-header .site-tab.is-current {
  color: var(--accent);
  --plate-edge: var(--border2);
  --plate-fill: rgba(79, 195, 247, 0.07);
}
.site-header .site-tab.hubnav-user { color: var(--gold-hot); }
.site-header .site-tab.site-tab-menu-only { display: none; }

.site-header-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-header .site-cta {
  --bc: 5px;
  --plate-edge: linear-gradient(180deg, #b9ecff, #4fc3f7 50%, #1f7fb0);
  --plate-fill: linear-gradient(180deg, #7fdaff, #4fc3f7 58%, #2a9ad2);
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  font-family: var(--font-chrome);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #06101a;
  text-decoration: none;
  white-space: nowrap;
  filter: drop-shadow(0 0 8px rgba(79, 195, 247, 0.35));
  transition: filter 0.15s;
}
.site-header .site-cta:hover { filter: brightness(1.12) drop-shadow(0 0 12px rgba(79, 195, 247, 0.55)); }
.site-header .site-cta:active { transform: translateY(1px); }

/* The menu toggle: hidden on desktop, a 44px chamfered plate on
   mobile. Three bars drawn from one span + its pseudo-elements,
   folding into an X while the box is checked. */
.site-menu-toggle {
  --bc: 5px;
  --plate-edge: var(--border2);
  --plate-fill: rgba(13, 21, 32, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.15s;
}
.site-menu-toggle:hover { --plate-edge: var(--accent); }
.site-menu-toggle span,
.site-menu-toggle span::before,
.site-menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s, background 0.15s;
}
.site-menu-toggle span { position: relative; }
.site-menu-toggle span::before,
.site-menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}
.site-menu-toggle span::before { top: -6px; }
.site-menu-toggle span::after  { top: 6px; }
.site-menu-cb:checked ~ .site-header-side .site-menu-toggle { --plate-edge: var(--accent); }
.site-menu-cb:checked ~ .site-header-side .site-menu-toggle span { background: transparent; }
.site-menu-cb:checked ~ .site-header-side .site-menu-toggle span::before { top: 0; transform: rotate(45deg); background: var(--accent); }
.site-menu-cb:checked ~ .site-header-side .site-menu-toggle span::after  { top: 0; transform: rotate(-45deg); background: var(--accent); }
.site-menu-cb:focus-visible ~ .site-header-side .site-menu-toggle { box-shadow: inset 0 0 0 2px var(--accent); }

/* The English tab row needs 465px of header (measured 2026-09-22) and only
   gets it at 1024px and up; between 860 and 1023 it overflowed under the
   account button. Collapse to the menu below that width. */
@media (max-width: 1023px) {
  .site-header { gap: 12px; padding: 0 14px; }
  .site-brand-name { font-size: 12px; letter-spacing: 0.1em; }
  .site-header .site-cta { height: 32px; padding: 0 12px; font-size: 13px; }
  .site-header-side { gap: 8px; margin-left: auto; }
  .site-header-side .site-tab-account { display: none; }
  .site-menu-toggle { display: inline-flex; }

  /* The collapsed tab row becomes a panel under the bar. */
  .site-tabs {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 10px 12px;
    background: #070a14;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border2);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.55);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .site-tabs::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent 60%);
    pointer-events: none;
  }
  .site-menu-cb:checked ~ .site-tabs { display: flex; }

  .site-header .site-tab {
    --bc: 6px;
    min-height: 48px;
    padding: 0 16px;
    font-size: 15px;
    letter-spacing: 0.18em;
    border-top: 1px solid var(--border);
  }
  .site-header .site-tab:first-child { border-top: 0; }
  .site-header .site-tab.is-current { border-top-color: transparent; }
  .site-header .site-tab.is-current + .site-tab { border-top-color: transparent; }
  .site-header .site-tab.site-tab-menu-only { display: inline-flex; }
}
@media (max-width: 340px) {
  .site-brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu-toggle span,
  .site-menu-toggle span::before,
  .site-menu-toggle span::after { transition: none; }
}

/* ============================================================
   SITE FOOTER - shared across marketing + hub pages.
   (Class names kept from the V2 partials so existing markup
   keeps working; styles live HERE now.)
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 56px 32px 28px;
  font-family: var(--font-body);
}

.site-footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 900px) {
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer-grid { grid-template-columns: 1fr; }
}

.site-footer-brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.16em;
  color: #fff;
  margin-bottom: 10px;
}

.site-footer-brand-tagline {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 320px;
}

.site-footer-press a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
}
.site-footer-press a:hover { text-decoration: underline; }

.site-footer-coltitle {
  font-family: var(--font-chrome);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
}

.site-footer .footer-link {
  display: block;
  font-family: var(--font-chrome);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-decoration: none;
  padding: 3.5px 0;
  transition: color 0.15s;
}
.site-footer .footer-link:hover { color: #fff; }
.site-footer .footer-link.gold { color: var(--gold-hot); }

.site-footer-legal {
  max-width: 1080px;
  margin: 44px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-mute);
}
.site-footer-legal .sep { color: var(--border2); }
.site-footer-legal .footer-link { display: inline; padding: 0; font-family: var(--font-mono); font-size: 10px; }
.site-footer-legal-spacer { flex: 1; }
.site-footer-legal .online { color: var(--ok); }

/* ============================================================
   SHARED PRIMITIVES
   ============================================================ */

.eyebrow {
  font-family: var(--font-chrome);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow.gold  { color: var(--gold-hot); }
.eyebrow.kinetic { color: var(--kinetic); }

.section-title {
  font-family: var(--font-brand);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.08;
  text-align: center;
}

.section-lead {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  text-align: center;
  font-family: var(--font-body);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ============================================================
   BUTTONS - the chamfered house plate (see PLATE GEOMETRY above).
   Marketing API: .btn + .btn-primary-solid / .btn-ghost / .btn-gold
   / .btn-primary-tinted / .btn-gold-tinted, sizes .btn-lg / .btn-sm.
   Hub pages layer the .btn--* variants from mint.css on the SAME
   anatomy (they only retoken --plate-edge / --plate-fill).

   Canon from the game: lit plates (solid cyan / gold fill, dark
   label) are the page's PRIMARY action; everything else is the
   steel plate, recoloured through its edge and label only.
   ============================================================ */
.btn {
  --bc: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 22px;
  font-family: var(--font-chrome);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, filter 0.15s, transform 0.08s;
}
.btn::after { transition: filter 0.15s; }
.btn:hover:not(:disabled) { filter: brightness(1.12); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.btn:disabled,
.btn[aria-disabled="true"],
.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  filter: grayscale(0.5);
}

/* Lit cyan plate - the primary action. */
.btn-primary-solid {
  --plate-edge: linear-gradient(180deg, #b9ecff, #4fc3f7 50%, #1f7fb0);
  --plate-fill: linear-gradient(180deg, #7fdaff, #4fc3f7 58%, #2a9ad2);
  color: #06101a;
  filter: drop-shadow(0 0 10px rgba(79, 195, 247, 0.35));
}
.btn-primary-solid:hover:not(:disabled) {
  filter: brightness(1.1) drop-shadow(0 0 14px rgba(79, 195, 247, 0.55));
}

/* Steel plate, quiet. */
.btn-ghost {
  --plate-edge: linear-gradient(180deg, #4a5f72, #2a3040 55%, #171c26);
  --plate-fill: linear-gradient(180deg, rgba(20, 26, 36, 0.92), rgba(10, 12, 20, 0.92));
  color: var(--text);
}
.btn-ghost:hover:not(:disabled) { --plate-edge: var(--accent); color: #fff; }

/* Lit gold plate - the premium action. */
.btn-gold {
  --plate-edge: linear-gradient(180deg, #fff2b0, #ffd700 50%, #9a7208);
  --plate-fill: linear-gradient(180deg, #ffe97a, #ffd700 55%, #c9960d);
  color: #1a1206;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.35));
}
.btn-gold:hover:not(:disabled) {
  filter: brightness(1.08) drop-shadow(0 0 14px rgba(255, 215, 0, 0.5));
}

/* Outline canon - the accent paints the EDGE and the LABEL, the
   fill stays steel. */
.btn-primary-tinted {
  --plate-edge: var(--accent);
  color: var(--accent);
}
.btn-primary-tinted:hover:not(:disabled) {
  filter: brightness(1.15) drop-shadow(0 0 8px rgba(79, 195, 247, 0.45));
}
.btn-gold-tinted {
  --plate-edge: var(--gold);
  color: var(--gold-hot);
}
.btn-gold-tinted:hover:not(:disabled) {
  filter: brightness(1.15) drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.btn-lg { --bc: 10px; min-height: 48px; padding: 0 28px; font-size: 15px; }
.btn-sm { --bc: 6px;  min-height: 32px; padding: 0 14px; font-size: 12px; }
.btn-block { width: 100%; }
