/* Kitty client theme.
 *
 * Ported 1:1 from the RuneLite client's side panels. Source of truth:
 *   kittyAPI/kittyapi/src/main/java/net/runelite/client/plugins/kittyloader/ui/KittyTheme.java
 *   kittyAPI/kittyapi/src/main/java/net/runelite/client/plugins/kittyloader/ui/KittyPanel.java
 * Change a value there first, then mirror it here. The reasoning behind each colour — in
 * particular why the accent is not the brand purple — lives in KittyTheme's comments.
 */
@font-face {
  font-family: Barlow;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/Barlow-Regular.ttf") format("truetype");
}
@font-face {
  font-family: Barlow;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/Barlow-Medium.ttf") format("truetype");
}

:root {
  /* KittyTheme.Builder defaults, in declaration order. */
  --kitty-bg: #1c1c1e;
  --kitty-card-top: #303033;
  --kitty-card-bottom: #262629;
  --kitty-card-edge: rgba(255, 255, 255, .071);
  --kitty-text: #e4e4e4;
  --kitty-label: #c0c0c0;
  --kitty-muted: #7c7c7c;
  --kitty-divider: #343434;
  --kitty-track-top: #0f0f11;
  --kitty-track-bottom: #19191c;
  --kitty-track-rim: rgba(0, 0, 0, .353);
  --kitty-chip-well-top: #18181a;
  --kitty-chip-well-bottom: #202023;
  /* Text accent: 4.61:1 on a card. Deliberately NOT the #8c52c0 logo body, which measures 2.74:1. */
  --kitty-accent: #b677ee;
  /* The same purple at fill strength, for bars and filled runs rather than glyphs. */
  --kitty-accent-deep: #a25be1;
  --kitty-field: #1e1e20;
  --kitty-toggle-off-top: #18181a;
  --kitty-toggle-off-bottom: #1e1e21;
  --kitty-toggle-on-top: #8d3ed4;
  --kitty-toggle-on-bottom: #5e209c;
  --kitty-knob-top: #fcfcfc;
  --kitty-knob-bottom: #dedee2;
  --kitty-disabled: #2d2d2d;
  --kitty-track-inner: rgba(0, 0, 0, .235);
  --kitty-text-shadow: rgba(0, 0, 0, .588);
  /* Below the panel background, not above it: a recess the title sits in. */
  --kitty-section-header: #131315;
  --kitty-knob-shadow: rgba(0, 0, 0, .275);

  /* Logo palette, quoted in KittyTheme for provenance. */
  --kitty-logo-body: #8c52c0;
  --kitty-logo-shade: #5e308c;
  --kitty-logo-rim: #c49ce8;

  /* Geometry: KittyTheme arc/shadow, KittyPanel padding and row metrics. */
  --kitty-arc: 10px;
  --kitty-panel-pad: 8px;
  --kitty-card-pad: 10px;
  --kitty-row-height: 30px;
  --kitty-title-bar-height: 34px;

  /* paintCard's shadow loop: four hard 1px steps, fainter as they fall away. No blur — the
     original fills four offset round-rects at alpha 25, 20, 15 and 10. */
  --kitty-card-shadow:
    0 1px 0 rgba(0, 0, 0, .098),
    0 2px 0 rgba(0, 0, 0, .078),
    0 3px 0 rgba(0, 0, 0, .059),
    0 4px 0 rgba(0, 0, 0, .039);
  /* The top-edge highlight paintCard clips to the first `arc` rows, so it lights the top only. */
  --kitty-card-lip: inset 0 1px 0 var(--kitty-card-edge);
  --kitty-card-surface: linear-gradient(180deg, var(--kitty-card-top), var(--kitty-card-bottom));
  /* KittyPanel.paintHatch: 1px accent lines at alpha 26, stepping 15px horizontally — which is
     15 * sin(45deg) = 10.607px measured perpendicular, the axis a CSS gradient repeats along. */
  --kitty-hatch: repeating-linear-gradient(135deg,
    rgba(182, 119, 238, .102) 0 1px, transparent 1px 10.607px);

  --font: Barlow, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root {
  --ink: var(--kitty-text);
  --text: var(--kitty-text);
  --muted: var(--kitty-label);
  --dim: var(--kitty-muted);
  --green: var(--kitty-accent);
  --green-2: var(--kitty-accent-deep);
  --gold: var(--kitty-logo-body);
  --bg: var(--kitty-bg);
  --void: var(--kitty-track-top);
  --panel: var(--kitty-card-bottom);
  --panel-2: var(--kitty-field);
  --line: var(--kitty-card-bottom);
  --line-strong: var(--kitty-divider);
  --accent: var(--green);
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, #a25be112, transparent 30%),
    radial-gradient(circle at 88% 48%, #8c52c00c, transparent 27%),
    linear-gradient(155deg, var(--bg), var(--void) 58%, #19191c);
  overflow-x: hidden;
}
.hidden { display: none !important; }
.glow { position: fixed; border-radius: 50%; filter: blur(130px); pointer-events: none; opacity: .1; }
.glow-a { width: 500px; height: 500px; background: var(--green-2); left: -270px; top: 8%; }
.glow-b { width: 420px; height: 420px; background: var(--gold); right: -270px; top: 46%; }
.skip { position: fixed; left: 18px; top: -60px; z-index: 100; color: #1c1c1e; background: var(--green); padding: 12px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid #ffffff0b;
  background: #1c1c1ee8;
  backdrop-filter: blur(20px);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 0 15px #b677ee30); }
.brand > span { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-family: var(--font); font-size: 19px; }
.brand small { margin-top: 6px; color: var(--green); font-size: 8px; font-weight: 850; letter-spacing: .2em; }
nav { display: flex; align-items: center; gap: 22px; }
nav a, .text-button { min-height: 44px; display: inline-flex; align-items: center; padding: 0 7px; border: 0; color: #c0c0c0; background: none; font: 700 11px inherit; text-decoration: none; cursor: pointer; }
nav a:hover, .text-button:hover { color: var(--ink); }
.profile { position: relative; }
.profile summary { width: 38px; height: 38px; padding: 2px; display: grid; place-items: center; overflow: hidden; border: 1px solid #343434; border-radius: 50%; background: #262629; cursor: pointer; list-style: none; }
.profile summary::-webkit-details-marker { display: none; }
.profile summary:hover, .profile[open] summary { border-color: var(--green); }
.profile summary img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-menu { position: absolute; top: 49px; right: 0; width: 240px; padding: 12px; border: 1px solid var(--line-strong); background: #1e1e20f5; box-shadow: 0 20px 60px #000c; backdrop-filter: blur(18px); }
.profile-identity { padding: 8px 7px 14px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.profile-identity img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.profile-identity span { min-width: 0; display: flex; flex-direction: column; }
.profile-identity strong { overflow: hidden; font: 15px var(--font); text-overflow: ellipsis; white-space: nowrap; }
.profile-identity small { margin-top: 4px; color: #7c7c7c; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.profile-menu .text-button { width: 100%; margin-top: 7px; justify-content: flex-start; }
main { position: relative; z-index: 1; }

.boot-state {
  min-height: calc(100vh - 68px);
  padding: 50px 24px;
  display: grid;
  place-items: center;
  text-align: center;
}
.boot-state > div { display: flex; align-items: center; flex-direction: column; }
.loader-mark { width: auto; height: 62px; animation: breathe 1.4s ease-in-out infinite alternate; }
.boot-state strong { margin-top: 20px; font: 25px var(--font); }
.boot-state p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.retry { margin-top: 20px; padding: 11px 18px; border: 1px solid var(--green); color: var(--green); background: transparent; font: 800 11px inherit; cursor: pointer; }
.retry:hover { color: #1c1c1e; background: var(--green); }
@keyframes breathe { from { opacity: .35; transform: translateY(2px); } to { opacity: 1; transform: translateY(-2px); } }

.gate {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 68px);
  margin: auto;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: 86px;
  padding: 70px 0;
}
.gate-art {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #b677ee24;
  border-radius: 50%;
  background: radial-gradient(circle, #b677ee1e, transparent 65%);
  box-shadow: inset 0 0 90px #0009, 0 0 110px #a25be113;
}
.gate-art img { width: auto; height: clamp(140px, 21vw, 300px); filter: drop-shadow(-9px 10px 0 #5e308c66) drop-shadow(0 0 46px #b677ee40); }
.kicker { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .23em; }
h1, h2, h3, p { margin-top: 0; }
.gate h1, .hero h1 { margin: 22px 0; font: 500 clamp(55px, 7vw, 94px)/.92 var(--font); letter-spacing: -.055em; }
.gate h1 em, .hero h1 em { color: var(--green); font-weight: 400; }
.gate p { max-width: 590px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.discord, .hero-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 50px; min-width: 250px; margin-top: 13px; padding: 15px 18px; border-radius: 3px; color: #1c1c1e; background: var(--green); font-size: 12px; font-weight: 900; text-decoration: none; }
.discord:hover { background: #c49ce8; }
.gate > div:last-child > small { display: block; margin-top: 16px; color: #7c7c7c; font-size: 11px; }

.hero {
  position: relative;
  width: min(1280px, calc(100% - 48px));
  min-height: 360px;
  margin: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 44px 0 48px;
}
.hero::after { content: ""; position: absolute; right: 5%; top: 50%; width: clamp(150px, 17vw, 240px); height: clamp(190px, 24vw, 310px); background: url("/assets/raisin-mark.png") no-repeat center / contain; opacity: .05; transform: translateY(-48%); pointer-events: none; }
.hero > div { position: relative; z-index: 1; max-width: 850px; }
.hero h1 { margin: 15px 0 17px; font-size: clamp(48px, 6vw, 74px); line-height: .92; }
.hero p { max-width: 620px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.hero-cta { min-width: 230px; padding: 12px 0; border-bottom: 1px solid #5e308c; color: var(--ink); background: transparent; }
.hero-cta:hover { border-color: var(--green); }

.catalog { scroll-margin-top: 86px; padding: 78px max(24px, calc((100vw - 1280px) / 2)) 105px; border-top: 1px solid var(--line); background: #19191c; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; margin-bottom: 38px; }
.section-head > div { display: flex; align-items: flex-start; }
.section-head small, .story small { color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .2em; }
.section-head h2 { margin: 8px 0 0; font: 40px/1.05 var(--font); letter-spacing: -.03em; }
.section-head > p { max-width: 390px; color: #7c7c7c; font-size: 12px; line-height: 1.65; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
/* A raised card holding a recessed square art well, which is how the client frames a thumbnail:
 * the card's own padding is the frame, so the art never runs to the arc it sits inside. */
.product-card { min-width: 0; padding: var(--kitty-card-pad); border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 46%, var(--line-strong)); box-shadow: var(--kitty-card-lip), 0 10px 26px #00000099; }
.product-card > a { display: block; color: inherit; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; border-radius: calc(var(--kitty-arc) - 3px); background: linear-gradient(180deg, var(--kitty-chip-well-top), var(--kitty-chip-well-bottom)); box-shadow: inset 0 0 0 1px var(--kitty-track-rim), inset 0 1px 0 var(--kitty-track-inner); }
/* The header's hatch, laid over the art so the well reads as client surface, not a photo slot. */
.card-media::after { content: ""; position: absolute; inset: 0; background-image: var(--kitty-hatch); pointer-events: none; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.product-card:hover img { transform: scale(1.04); }
.card-placeholder { width: calc(100% - 24px); height: calc(100% - 24px); display: grid; place-items: end start; padding: 14px; border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line)); border-radius: calc(var(--kitty-arc) - 5px); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, var(--panel)), var(--panel-2)); }
.card-placeholder strong { max-width: 92%; font: 19px/1.08 var(--font); }
.card-media b { position: absolute; right: 8px; top: 8px; z-index: 1; padding: 5px 7px; border-radius: calc(var(--kitty-arc) - 5px); color: var(--kitty-text); background: #0f0f11e0; box-shadow: inset 0 1px 0 var(--kitty-card-edge); font-size: 7px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.card-copy { padding: 13px 6px 5px; }
.card-copy > small { display: block; overflow: hidden; color: var(--dim); font-size: 8px; font-weight: 900; letter-spacing: .14em; text-overflow: ellipsis; white-space: nowrap; }
.detail-copy > small { color: var(--accent); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
/* Two lines each, clamped: a four-up row only stays a row if every card is the same height. */
.card-copy h3 { display: -webkit-box; overflow: hidden; margin: 7px 0 6px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: 18px/1.15 var(--font); }
.card-copy p { display: -webkit-box; overflow: hidden; min-height: 32px; color: var(--dim); -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 11px; line-height: 1.45; }
.card-copy > div:not(.card-tags) { margin-top: 11px; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line-strong); font-size: 10px; }
.card-copy > div:not(.card-tags) span { overflow: hidden; color: var(--ink); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.card-copy em { flex: none; color: var(--accent); font-style: normal; font-weight: 800; }
/* Filter bar. Fields are recessed wells and tag chips are the client's toggle, so choosing a
 * tag lights up exactly the way a switched-on row does in the panel language below. */
.filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.filter-search { position: relative; flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 38px; }
.filter-search span { flex: none; color: var(--accent); font-size: 15px; line-height: 1; }
.filter-search input { width: 100%; min-width: 0; padding: 0; border: 0; color: var(--ink); background: transparent; font: 12px var(--font); }
.filter-search input::placeholder { color: var(--dim); }
.filter-search input:focus { outline: 0; }
.filter-search:focus-within { box-shadow: inset 0 0 0 1px var(--accent); }
.filter-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.filter-field label { color: var(--dim); font-size: 8px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.filter-field select { height: 38px; max-width: 200px; padding: 0 10px; border: 0; color: var(--ink); font: 12px var(--font); }
.filter-clear { height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); color: var(--muted); background: transparent; font: 700 10px var(--font); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.filter-clear:hover { border-color: var(--accent); color: var(--ink); }
.filter-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-tags .tag { padding: 7px 11px; border: 1px solid transparent; color: var(--muted); font: 800 10px var(--font); letter-spacing: .04em; cursor: pointer; }
.filter-tags .tag:hover { color: var(--ink); }
.filter-tags .tag[aria-pressed="true"] { border-color: var(--kitty-accent); color: var(--ink); }
.filter-count { margin: 13px 0 16px; color: var(--dim); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; overflow: hidden; max-height: 18px; }
.card-tags .tag-chip, .card-tags .tag-more { padding: 3px 6px; border-radius: calc(var(--kitty-arc) - 6px); color: var(--muted); background: #ffffff0a; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.card-tags .tag-more { color: var(--accent); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.story aside .detail-tags span { padding: 4px 7px; border-radius: calc(var(--kitty-arc) - 6px); color: var(--muted); background: #ffffff0a; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.empty { grid-column: 1/-1; padding: 100px 30px; border: 1px dashed var(--line-strong); text-align: center; }
.empty span { color: var(--green); font-size: 9px; letter-spacing: .2em; }
.empty h3 { margin: 14px; font: 34px var(--font); }
.empty p { color: var(--muted); }

.product-view { scroll-margin-top: 81px; padding: 80px max(24px, calc((100vw - 1280px) / 2)); border-top: 1px solid var(--line); background: #19191c; }
.back { display: inline-block; margin-bottom: 25px; color: #c0c0c0; font-size: 11px; text-decoration: none; }
.detail { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); background: var(--panel); }
.detail-media { min-height: 540px; overflow: hidden; display: grid; place-items: center; background: var(--void); }
.detail-media:has(> img) { aspect-ratio: 1; min-height: 0; }
.detail-media video, .detail-media img { width: 100%; height: 100%; min-height: 540px; object-fit: cover; }
.detail-media:has(> img) img { min-height: 0; }
.detail-placeholder { width: calc(100% - 80px); height: calc(100% - 80px); min-height: 440px; padding: 44px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); background: radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 36%), linear-gradient(145deg, color-mix(in srgb, var(--accent) 10%, var(--panel)), var(--void)); }
.detail-placeholder strong { max-width: 620px; font: 52px/.95 var(--font); }
.detail-placeholder span { margin-top: 14px; color: #7c7c7c; font-size: 11px; }
.detail-copy { padding: 48px; }
.detail-copy h2 { margin: 13px 0 9px; font: 46px var(--font); letter-spacing: -.04em; }
.detail-copy h2:focus { outline: 0; }
.tagline { margin-bottom: 30px; color: #c0c0c0; font-size: 15px; line-height: 1.6; }
.plans { display: grid; gap: 8px; }
.plan { position: relative; padding: 15px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; border: 1px solid var(--line-strong); background: var(--panel-2); cursor: pointer; }
.plan input { position: absolute; opacity: 0; }
.plan > span { display: flex; justify-content: space-between; gap: 15px; }
.plan small { font-size: 11px; font-weight: 800; }
.plan strong { font: 18px var(--font); }
.plan em { grid-column: 1/-1; color: #7c7c7c; font-size: 9px; font-style: normal; }
.plan.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--panel-2)); box-shadow: inset 3px 0 0 var(--accent); }
.checkout { width: 100%; margin-top: 17px; padding: 15px; border: 0; color: #1c1c1e; background: var(--accent); font-weight: 900; cursor: pointer; }
.checkout:disabled { color: #c0c0c0; background: #343434; cursor: not-allowed; }
.checkout-note { margin: 10px 0 0; color: #7c7c7c; font-size: 10px; text-align: center; }
.plan:has(input:focus-visible),.checkout-method:has(input:focus-visible){outline:2px solid #c49ce8;outline-offset:3px}
dialog{width:min(520px,calc(100% - 28px));padding:0;border:1px solid #343434;border-radius:20px;background:#262629;color:var(--text);box-shadow:0 40px 120px #000e}dialog::backdrop{background:#0f0f11dc;backdrop-filter:blur(9px)}#checkout-dialog form,#crypto-quote{padding:27px}.checkout-head{display:flex;justify-content:space-between;align-items:flex-start}.checkout-head small,#crypto-quote>small{color:var(--accent);font-size:9px;font-weight:900;letter-spacing:.15em}.checkout-head h2,#crypto-quote h2{font:700 25px var(--font);margin:6px 0 19px}.checkout-head button{border:0;background:transparent;color:#7c7c7c;font-size:25px;cursor:pointer}.checkout-methods{display:grid;gap:9px}.checkout-method{display:flex;align-items:center;gap:12px;margin:0;padding:14px;border:1px solid #343434;border-radius:12px;background:#1e1e20;cursor:pointer}.checkout-method:has(input:checked){border-color:#b677ee;background:#b677ee0b}.checkout-method input{accent-color:#b677ee}.checkout-method span{display:flex;flex-direction:column}.checkout-method strong{font-size:12px}.checkout-method small{color:#7c7c7c;font-size:9px;margin-top:4px}.checkout-submit,#quote-close{width:100%;margin-top:18px;padding:14px;border:0;border-radius:10px;background:var(--accent);color:#1c1c1e;font-weight:900;cursor:pointer}.checkout-submit:disabled{opacity:.55}.checkout-error{margin-top:12px;padding:10px;border:1px solid #ff777737;border-radius:9px;background:#ff77770c;color:#ff9b9b;font-size:10px}.crypto-quote>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:9px 0;padding:13px;border:1px solid #343434;border-radius:10px;background:#18181a}.crypto-quote span,.crypto-quote code{font:11px ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}.crypto-quote button:not(#quote-close){border:1px solid #343434;border-radius:7px;background:#2d2d2d;color:#e4e4e4;padding:7px 10px;cursor:pointer}.crypto-quote p{color:#7c7c7c;font-size:10px;line-height:1.55}.hidden{display:none!important}
.checkout-summary{margin:0 0 16px;padding:13px 14px;border:1px solid #343434;border-radius:11px;background:#18181a;display:grid;gap:6px}.checkout-summary strong{font-size:12px}.checkout-summary span{color:#c0c0c0;font-size:10px}.crypto-quote.expired>div{opacity:.5}.crypto-quote.expired button:not(#quote-close){pointer-events:none}.crypto-quote.ready #crypto-status{color:var(--accent);font-weight:800}
.story { padding: 70px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 70px; }
.story article { min-width: 0; }
.rich { max-width: 900px; color: #c0c0c0; font-size: 14px; line-height: 1.8; }
.rich > :first-child { margin-top: 14px; }
.rich > :last-child { margin-bottom: 0; }
.rich h2, .rich h3, .rich h4 { color: var(--ink); font-family: var(--font); }
.rich h2 { margin: 48px 0 15px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.025em; }
.rich h3 { margin: 29px 0 9px; font-size: 21px; }
.rich h4 { margin: 20px 0 7px; font-size: 17px; }
.rich p { margin-bottom: 18px; }
.rich p.lead { max-width: 760px; color: #e4e4e4; font: 20px/1.6 var(--font); }
.rich ul, .rich ol { padding-left: 22px; }
.rich li { margin: 4px 0; }
.rich a { color: var(--green); }
.rich blockquote { margin: 30px 0; padding: 19px 22px; border-left: 3px solid var(--accent, var(--green)); color: #e4e4e4; background: #262629; }
.rich blockquote p:last-child { margin-bottom: 0; }
.rich hr { height: 1px; margin: 44px 0; border: 0; background: var(--line-strong); }
.rich code { padding: 2px 5px; color: #c49ce8; background: #2d2d2d; font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.rich pre { overflow-x: auto; padding: 18px; border: 1px solid var(--line); background: #18181a; }
.rich pre code { padding: 0; background: transparent; }
.rich table { width: 100%; margin: 26px 0; border-collapse: collapse; font-size: 12px; }
.rich th, .rich td { padding: 12px 14px; border: 1px solid var(--line-strong); text-align: left; }
.rich th { color: var(--ink); background: #262629; }
.rich .feature-grid, .rich .mode-grid, .rich .stat-grid { margin: 25px 0 35px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rich .feature-card, .rich .mode-card, .rich .stat { min-height: 190px; padding: 22px; border: 1px solid var(--line-strong); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 6%, var(--panel)), var(--panel-2)); }
.rich .feature-card h3, .rich .mode-card h3, .rich .stat h3 { margin-top: 13px; }
.rich .feature-card p:last-child, .rich .mode-card p:last-child, .rich .stat p:last-child { margin-bottom: 0; }
.rich .eyebrow { color: var(--accent, var(--green)); font-size: 8px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.rich .encounter-grid { margin: 25px 0 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rich .encounter-card { --encounter-accent: var(--green); min-height: 132px; padding: 17px 18px 17px 17px; border: 1px solid var(--line); border-left: 3px solid var(--encounter-accent); background: linear-gradient(145deg, #262629, var(--panel-2)); transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.rich .encounter-card:hover { transform: translateX(2px); background: linear-gradient(145deg, color-mix(in srgb, var(--encounter-accent) 7%, #262629), var(--panel-2)); box-shadow: -3px 0 0 -1px var(--encounter-accent), 0 0 22px -15px var(--encounter-accent); }
.rich .encounter-card h3 { margin: 6px 0 8px; color: var(--encounter-accent); font: 17px/1.15 var(--font); }
.rich .encounter-card p { margin: 0; color: #c0c0c0; font-size: 11px; line-height: 1.55; }
.rich .encounter-violet { --encounter-accent: #b56cff; }
.rich .encounter-green { --encounter-accent: #c49ce8; }
.rich .encounter-blue { --encounter-accent: #64a6ff; }
.rich .encounter-amber { --encounter-accent: #ffb44f; }
.rich .encounter-gold { --encounter-accent: #ffd25a; }
.rich .encounter-red { --encounter-accent: #ff4646; }
.rich .encounter-cyan { --encounter-accent: #5ee7ff; }
.rich .steps { margin: 24px 0; padding: 0; list-style: none; counter-reset: step; }
.rich .steps li { position: relative; min-height: 47px; margin: 0; padding: 12px 12px 12px 52px; border-bottom: 1px solid var(--line); counter-increment: step; }
.rich .steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 5px; color: var(--accent, var(--green)); font: 12px ui-monospace, monospace; }
.rich .callout { margin: 30px 0; padding: 22px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.rich .badge-row { display: flex; flex-wrap: wrap; gap: 7px; }
.rich .badge { padding: 6px 9px; border: 1px solid var(--line-strong); color: #e4e4e4; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.story aside { padding-left: 30px; display: flex; flex-direction: column; gap: 13px; border-left: 1px solid var(--line); }
.story aside a, .story aside span { color: #c0c0c0; font-size: 11px; text-decoration: none; }
footer { min-height: 120px; padding: 25px max(24px, calc((100vw - 1280px) / 2)); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #7c7c7c; font-size: 10px; }
.mini img { width: 27px; height: 27px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; padding: 13px 17px; color: #1c1c1e; background: #c49ce8; box-shadow: 0 18px 50px #000b; font-size: 11px; font-weight: 800; }

@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 950px) {
  .gate { grid-template-columns: 1fr; padding: 55px 0; }
  .gate-art { max-width: 460px; margin: auto; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 35px; }
  .story aside { padding: 25px 0; border-top: 1px solid var(--line); border-left: 0; }
  .rich .feature-grid, .rich .mode-grid, .rich .stat-grid, .rich .encounter-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  header { height: 64px; padding: 0 16px; }
  .brand img { width: 34px; height: 34px; }
  nav > a:first-child { display: none; }
  nav { gap: 11px; }
  .gate { width: calc(100% - 32px); min-height: calc(100vh - 72px); gap: 35px; }
  .gate-art { max-width: 290px; }
  .gate h1, .hero h1 { font-size: 53px; }
  .boot-state { min-height: calc(100vh - 64px); }
  .hero { width: calc(100% - 32px); min-height: 330px; padding: 42px 0; }
  .hero h1 { font-size: 50px; }
  .catalog, .product-view { padding-right: 16px; padding-left: 16px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-head h2 { font-size: 34px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .filters { align-items: stretch; flex-direction: column; }
  .filter-search { flex: 0 0 38px; }
  .filter-field select { max-width: none; }
  .card-tags { display: none; }
  .card-copy { padding: 11px 4px 4px; }
  .card-copy h3 { font-size: 16px; }
  .detail-media, .detail-media video, .detail-media img { min-height: 300px; }
  .detail-placeholder { width: calc(100% - 40px); height: calc(100% - 40px); min-height: 260px; padding: 25px; }
  .detail-placeholder strong { font-size: 39px; }
  .detail-copy { padding: 27px 20px; }
  .detail-copy h2 { font-size: 37px; }
  footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .discord { width: 100%; min-width: 0; }
}

@media (max-width: 430px) {
  .product-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------------------
 * Client panel language — see the note in /assets/styles.css. Same three
 * registers: raised cards, recessed wells, and one arc for every corner.
 * ------------------------------------------------------------------------- */
.product-card,
.detail,
.profile-menu,
dialog,
.empty {
  border-radius: var(--kitty-arc);
  background: var(--kitty-card-surface);
  box-shadow: var(--kitty-card-lip), var(--kitty-card-shadow);
}
.plan,
.checkout-method,
.crypto-quote > div,
.filter-search,
.filter-field select,
.filter-tags .tag {
  border-radius: var(--kitty-arc);
  background: linear-gradient(180deg, var(--kitty-chip-well-top), var(--kitty-chip-well-bottom));
  box-shadow: inset 0 1px 0 var(--kitty-track-inner);
}
.plan:has(input:checked),
.checkout-method:has(input:checked),
.filter-tags .tag[aria-pressed="true"] {
  border-color: var(--kitty-accent);
  background: linear-gradient(180deg, var(--kitty-toggle-on-top), var(--kitty-toggle-on-bottom));
}
header {
  background-image: var(--kitty-hatch);
}
/* Filled controls share accentDeep; the text accent is reserved for glyphs. */
.discord,
.checkout-submit,
#quote-close {
  border-radius: var(--kitty-arc);
  color: var(--kitty-bg);
  background: var(--kitty-accent-deep);
}
.discord:hover,
.checkout-submit:hover {
  background: var(--kitty-accent);
}

/* The mark is 657x920. Give it a height and let the width follow, or it squashes. */
.brand img { width: auto; height: 36px; }
