/* =====================================================================
   WhatCanIRun.com — single stylesheet.
   Egg-yolk yellow as the signature colour (#F6C026). Dark neutral base
   so the yolk stays readable. Tokens are named to match the ported CYRI
   card/modal styles from puregamestats-ssr so nothing has to be rewired.
   ===================================================================== */

:root {
  color-scheme: dark;

  --bg-0:          #0a0d14;    /* page background */
  --bg-1:          #11151e;    /* inputs, nested panels */
  --bg-2:          #171c27;    /* cards */
  --bg-3:          #1f2534;    /* hover surfaces */

  --border:        #232a39;
  --border-strong: #333b4d;

  --text:          #eef1f6;
  --text-dim:      #9aa3b3;
  --text-muted:    #6a7384;

  --accent:        #f6c026;    /* egg-yolk yellow */
  --accent-hi:     #ffd54a;    /* brighter yolk for hover */
  --accent-soft:   rgba(246, 192, 38, 0.14);
  --accent-ring:   rgba(246, 192, 38, 0.4);

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;

  --shadow-glow: 0 0 60px rgba(246, 192, 38, 0.08), 0 10px 40px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Subtle radial yolk-glow behind the content, like the sun behind clouds. */
body {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(246, 192, 38, 0.08), transparent 60%),
    radial-gradient(ellipse at 85% 85%, rgba(246, 192, 38, 0.04), transparent 55%),
    var(--bg-0);
}

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

/* ---------- Layout ---------- */

.wcir-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.wcir-stack {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ---------- Logo ---------- */

.wcir-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 2px 20px rgba(246, 192, 38, 0.25);
  margin-top: clamp(1rem, 6vh, 4rem);
}
.wcir-logo__what { color: var(--text); }
.wcir-logo__can  { color: var(--accent); }
.wcir-logo__i    { color: var(--text); margin: 0 2px; }
.wcir-logo__run  { color: var(--accent); }
.wcir-logo__dot  {
  color: var(--accent-hi);
  margin-left: 4px;
  text-shadow: 0 0 20px rgba(246, 192, 38, 0.6);
}

.wcir-tagline {
  color: var(--text-dim);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  text-align: center;
  margin: 0 0 8px;
  max-width: 500px;
}

/* Visible H1 on the home page. Keyword-rich, matches what users search
   for ("can my pc run a game?"), reinforces the value prop under the
   wordmark. Styled large enough to feel like a real heading but soft
   enough it doesn't fight with the logo above it for attention. */
.wcir-h1 {
  color: var(--text);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}

/* Game page layout — same stack as home but with a smaller logo (we're
   not front-and-centring the brand on a game page) and a prominent H1
   with the game name. */
.wcir-main--game { padding-top: 32px; }
.wcir-logo--small { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 0; }

.wcir-game-h1 {
  color: var(--text);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  margin: 10px 0 4px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 760px;
}

/* Crawlable system-requirements table. Two columns on desktop (min
   left, rec right), stacks on mobile. Explicit dt/dd grid so the field
   labels stay aligned regardless of value length. */
.wcir-specs {
  width: 100%;
  max-width: 760px;
  margin-top: 8px;
}
.wcir-specs h2 {
  color: var(--text);
  font-size: 1.1rem;
  margin: 0 0 12px;
  text-align: left;
}
.wcir-specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.wcir-specs__col {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
}
.wcir-specs__col h3 {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
.wcir-specs__col dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0;
  font-size: 0.88rem;
}
.wcir-specs__col dt {
  color: var(--text-dim);
  font-weight: 600;
}
.wcir-specs__col dd {
  margin: 0;
  color: var(--text);
}
.wcir-specs__empty { color: var(--text-dim); font-style: italic; }

/* About-this-game block. Short description + a meta DL for the
   dev/publisher/release. Content block, not a card. */
.wcir-about {
  width: 100%;
  max-width: 760px;
  margin-top: 16px;
  color: var(--text);
}
.wcir-about h2 {
  font-size: 1.1rem;
  margin: 0 0 10px;
}
.wcir-about p {
  color: var(--text-dim);
  margin: 0 0 12px;
  line-height: 1.5;
  font-size: 0.95rem;
}
.wcir-about__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0;
  font-size: 0.85rem;
}
.wcir-about__meta dt {
  color: var(--text-dim);
  font-weight: 600;
}
.wcir-about__meta dd { margin: 0; color: var(--text); }

/* Back-to-search CTA. Low-key link, not a bright button — we don't
   want to pull attention away from the verdict card above. */
.wcir-cta-back {
  margin-top: 12px;
  font-size: 0.9rem;
}
.wcir-cta-back a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.wcir-cta-back a:hover { color: var(--accent-hi); text-decoration: underline; }

.wcir-foot {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
  margin: 24px 0 0;
}
.wcir-foot a,
.wcir-foot a:link,
.wcir-foot a:visited {
  color: #8a93a4;
  text-decoration: underline;
  text-decoration-color: rgba(138, 147, 164, 0.4);
}
.wcir-foot a:hover,
.wcir-foot a:focus { color: #a7afbd; text-decoration-color: currentColor; }

/* ---------- Search ---------- */

.search-container {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.wcir-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 48px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.wcir-search-form:focus-within {
  border-color: var(--accent);
  background: var(--bg-2);
  box-shadow: 0 0 0 4px var(--accent-ring), 0 10px 40px rgba(0, 0, 0, 0.4);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--text-dim);
  pointer-events: none;
}
.wcir-search-form:focus-within .search-icon { color: var(--accent); }

#game-search {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 1.1rem;
  padding: 14px 8px;
  font-family: inherit;
}
#game-search::placeholder { color: var(--text-muted); }
#game-search::-webkit-search-cancel-button { -webkit-appearance: none; }

#search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  z-index: 10;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  max-height: 420px;
  overflow-y: auto;
  display: none;
}
#search-results li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text);
  font-size: 0.95rem;
}
#search-results li img {
  width: 60px; height: 28px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}
#search-results li.active,
#search-results li:hover {
  background: var(--accent-soft);
  color: var(--accent-hi);
}
#search-results .search-result-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ======================================================================
   "Can you run it?" card + verdict grid + modal.
   Ported from puregamestats-ssr with the pink `--accent` replaced by the
   egg-yolk palette. Keeping class names identical so can-i-run-it.js and
   the search glue don't need custom selectors.
   ====================================================================== */

.can-run-card {
  width: 100%;
  max-width: 720px;
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.can-run-card[hidden] { display: none; }

.can-run-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}
.can-run-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background-color: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  border-radius: 999px;
  color: var(--accent);
  flex: 0 0 auto;
}
.can-run-card__icon svg { width: 18px; height: 18px; }
.can-run-card__text { flex: 1 1 auto; min-width: 0; }
.can-run-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.can-run-card__subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.can-run__trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: var(--accent);
  color: #0a0d14;
  border: 1px solid var(--accent-hi);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
  flex: 0 0 auto;
}
.can-run__trigger:hover:not(:disabled) {
  background: var(--accent-hi);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.can-run__trigger:active:not(:disabled) { transform: translateY(1px); }
.can-run__trigger:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
}
.can-run__trigger:disabled {
  background: var(--bg-3);
  color: var(--text-muted);
  border-color: var(--border);
  cursor: not-allowed;
}
.can-run__trigger-icon { display: inline-grid; place-items: center; width: 16px; height: 16px; }
.can-run__trigger-icon svg { width: 16px; height: 16px; }
.can-run__trigger-label { line-height: 1; }

/* The .can-run__trigger pill is now the permanent "Edit my rig" button —
   egg-yolk yellow via the base rules above, no tier-based colour swap. */

@media (max-width: 560px) {
  .can-run-card__head { flex-wrap: wrap; }
  .can-run-card__text { flex: 1 1 60%; min-width: 0; }
  .can-run__trigger { padding: 7px 12px; font-size: 12px; }
}

/* ======================================================================
   Verdict notice — large tier-coloured readout under the search box.
   Not interactive; icon + label come from TIER_ICON / TIER_LABELS in
   can-i-run-it.js, hidden until a profile + a scored game exist.
   ====================================================================== */

.wcir-verdict-notice {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  border-left: 6px solid var(--border-strong);
  background: var(--bg-2);
  color: var(--text);
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.wcir-verdict-notice[hidden] { display: none; }

.wcir-verdict-notice__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--border-strong);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.wcir-verdict-notice__text { flex: 1 1 auto; min-width: 0; line-height: 1.25; }

.wcir-verdict-notice[data-tier="pass"] {
  border-color: #22c55e;
  border-left-color: #22c55e;
  background: linear-gradient(90deg, rgba(34,197,94,0.18), rgba(34,197,94,0.04));
}
.wcir-verdict-notice[data-tier="pass"] .wcir-verdict-notice__icon { background: #22c55e; }

.wcir-verdict-notice[data-tier="warn"] {
  border-color: #eab308;
  border-left-color: #eab308;
  background: linear-gradient(90deg, rgba(234,179,8,0.18), rgba(234,179,8,0.04));
}
.wcir-verdict-notice[data-tier="warn"] .wcir-verdict-notice__icon { background: #eab308; color: #0a0d14; }

.wcir-verdict-notice[data-tier="fail"] {
  border-color: #ef4444;
  border-left-color: #ef4444;
  background: linear-gradient(90deg, rgba(239,68,68,0.18), rgba(239,68,68,0.04));
}
.wcir-verdict-notice[data-tier="fail"] .wcir-verdict-notice__icon { background: #ef4444; }

.wcir-verdict-notice[data-tier="unknown"] .wcir-verdict-notice__icon {
  background: var(--border-strong);
}

.can-run__verdict {
  margin: 0 20px 20px;
  padding: 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.can-run__verdict[hidden] { display: none; }
.can-run__verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.can-run__row {
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: 6px;
}
.can-run__row[data-verdict="pass-rec"] { border-left-color: #22c55e; }
.can-run__row[data-verdict="pass-min"] { border-left-color: #eab308; }
.can-run__row[data-verdict="fail"]     { border-left-color: #ef4444; }
.can-run__row[data-verdict="unknown"]  { border-left-color: var(--border-strong); }

.can-run__row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}
.can-run__row-icon {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--border-strong);
}
.can-run__row[data-verdict="pass-rec"] .can-run__row-icon { background: #22c55e; }
.can-run__row[data-verdict="pass-min"] .can-run__row-icon { background: #eab308; color: #0a0d14; }
.can-run__row[data-verdict="fail"]     .can-run__row-icon { background: #ef4444; }

.can-run__row-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  font-size: 12px;
  margin: 0;
}
.can-run__row-body dt { color: var(--text-dim); font-weight: 500; }
.can-run__row-body dd {
  margin: 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.can-run__row-nodata {
  color: var(--text-dim);
  font-style: italic;
  font-size: 11px;
}
.can-run__verdict-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.can-run__verdict-footer small { color: var(--text-dim); font-size: 11px; }
.can-run__edit {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-ring);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
.can-run__edit:hover { background: var(--accent-soft); }

.can-run__nodata {
  margin: 0 20px 20px;
  padding: 12px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-dim);
  font-size: 0.85rem;
}
.can-run__nodata[hidden] { display: none; }

/* ======================================================================
   Game context strip — header image + review score + price + release
   line + outbound link to PureGameStats. Sits inside the card between
   the head and the verdict grid, so it's always paired with the game
   name in the title above.
   ====================================================================== */

.wcir-game-strip {
  display: flex;
  gap: 16px;
  margin: 0 20px 20px;
  padding: 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  align-items: flex-start;
}
.wcir-game-strip[hidden] { display: none; }

.wcir-game-strip__image-link {
  flex: 0 0 auto;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wcir-game-strip__image-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.wcir-game-strip__image {
  display: block;
  width: 184px;
  height: 69px;
  object-fit: cover;
  background: var(--bg-1);
}

.wcir-game-strip__meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

.wcir-game-strip__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.wcir-review-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}
.wcir-review-pill[hidden] { display: none; }
.wcir-review-pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  display: inline-block;
}
.wcir-review-pill__pct { color: var(--text-dim); font-weight: 500; }

.wcir-review-pill[data-tone="pos-strong"] .wcir-review-pill__dot { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.5); }
.wcir-review-pill[data-tone="pos"]        .wcir-review-pill__dot { background: #86efac; }
.wcir-review-pill[data-tone="mixed"]      .wcir-review-pill__dot { background: #eab308; }
.wcir-review-pill[data-tone="neg"]        .wcir-review-pill__dot { background: #ef4444; }

.wcir-ea-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-hi);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.wcir-ea-badge[hidden] { display: none; }

.wcir-release {
  color: var(--text-dim);
  font-size: 0.8rem;
}
.wcir-release:empty { display: none; }

.wcir-pgs-link {
  display: inline-block;
  margin-top: 2px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}
.wcir-pgs-link:hover { color: var(--accent-hi); text-decoration: underline; }

@media (max-width: 560px) {
  .wcir-game-strip { flex-direction: column; gap: 10px; }
  .wcir-game-strip__image { width: 100%; height: auto; aspect-ratio: 184 / 69; }
}

/* ---- Modal ---- */

.can-run-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.can-run-modal.hidden { display: none; }
.can-run-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}
.can-run-modal__panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px 20px;
  box-shadow: var(--shadow-glow);
}

.can-run-modal__drop-overlay {
  position: absolute;
  inset: 6px;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 10px;
  border: 3px dashed #10b981;
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  padding: 20px;
}
.can-run-modal--dropping .can-run-modal__drop-overlay { display: flex; }
.can-run-modal--dropping .can-run-modal__panel { pointer-events: none; }

.can-run-modal__intro code {
  background: var(--bg-3);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}
.can-run-modal__dxdiag-hint { color: var(--accent); }
.can-run-modal__intro--tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: -6px;
}
.can-run-modal__info-icon {
  flex: 0 0 auto;
  width: 14px; height: 14px;
  margin-top: 2px;
  color: var(--accent);
}

.can-run-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.can-run-modal__head h2 { font-size: 17px; margin: 0; color: var(--text); }
.can-run-modal__close {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.can-run-modal__close:hover { background: var(--bg-3); color: var(--text); }

.can-run-modal__intro { color: var(--text-dim); font-size: 12px; margin: 0 0 14px; }

/* Windows-only quick-open buttons for Settings → About (CPU/RAM) and
   Advanced display settings (GPU). Hidden on non-Windows by the script
   because the ms-settings: scheme is a no-op elsewhere. */
.can-run-modal__win-helpers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.can-run-modal__win-helpers[hidden] { display: none; }
.can-run-modal__win-helpers-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-right: 2px;
}
.can-run-modal__win-helpers-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  color: var(--accent-hi);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.can-run-modal__win-helpers-btn:hover {
  background: var(--accent);
  border-color: var(--accent-hi);
  color: #0a0d14;
}

.can-run-modal__banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}
.can-run-modal__banner[hidden] { display: none; }
.can-run-modal__banner-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0d14;
  font-weight: 700;
  font-size: 12px;
}
.can-run-modal__banner-body { flex: 1 1 auto; min-width: 0; }
.can-run-modal__banner-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.can-run-modal__banner-list {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}
.can-run-modal__banner-list li { font-size: 13px; color: var(--text); }
.can-run-modal__banner-list strong { color: var(--text); }
.can-run-modal__banner-note,
.can-run-modal__banner-cta {
  margin: 0;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
}
.can-run-modal__banner-note + .can-run-modal__banner-cta { margin-top: 3px; }

.can-run-modal__form { display: flex; flex-direction: column; gap: 14px; }
.can-run-modal__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.can-run-modal__field-label { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.can-run-modal__field input {
  background: var(--bg-1);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  width: 100%;
}
.can-run-modal__field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.can-run-modal__hint { color: var(--text-dim); font-size: 11px; }

.can-run-modal__suggest {
  position: absolute;
  top: calc(100% + 2px);
  left: 0; right: 0;
  z-index: 2;
  margin: 0; padding: 4px;
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.can-run-modal__suggest li {
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  border-radius: 4px;
}
.can-run-modal__suggest li.active,
.can-run-modal__suggest li:hover { background: var(--accent-soft); color: var(--accent-hi); }

.can-run-modal__actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.can-run-modal__primary {
  background: var(--accent);
  color: #0a0d14;
  border: 0;
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}
.can-run-modal__primary:hover { background: var(--accent-hi); }
.can-run-modal__secondary {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.can-run-modal__secondary:hover { background: var(--bg-3); color: var(--text); }
