/* ============================================================
   Huroof components — buttons, panels, score pills, fields,
   badges, tabs, toasts, dialog, avatars, tables.
   Consumes tokens.css only. RTL-safe: logical properties.

   Note: 1px translucent hairlines are drawn with
   `box-shadow: inset 0 0 0 1px <color>` instead of `border`.
   Chromium's software rasterizer paints diagonal seam artifacts
   for translucent borders on translucent rounded surfaces; the
   inset ring renders identically and is artifact-free.
   ============================================================ */

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { filter: brightness(1.1); color: var(--text); }
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}

.btn-green {
  background: var(--tile-green-fill);
  color: #fff;
  box-shadow: 0 0 18px rgba(var(--team-green-rgb), 0.55), inset 0 0 0 1px var(--tile-green-rim);
}
.btn-green:hover { color: #fff; }

.btn-red {
  background: var(--tile-red-fill);
  color: #fff;
  box-shadow: 0 0 18px rgba(var(--team-red-rgb), 0.55), inset 0 0 0 1px var(--tile-red-rim);
}
.btn-red:hover { color: #fff; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.btn-gold {
  background: var(--tile-default-fill);
  color: var(--tile-default-text);
  box-shadow: 0 0 18px rgba(247, 214, 110, 0.45), inset 0 0 0 1px var(--tile-default-rim);
}
.btn-gold:hover { color: var(--tile-default-text); }

.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-sm { padding: 5px 12px; font-size: var(--fs-tiny); }
.btn-sm svg { width: 13px; height: 13px; }

/* ---------------- Panels & cards ---------------- */
.panel {
  background: var(--panel-bg);
  box-shadow: inset 0 0 0 1px var(--panel-border);
  border-radius: var(--radius-panel);
  padding: 22px;
}

.card {
  background: var(--panel-bg);
  box-shadow: inset 0 0 0 1px var(--panel-border);
  border-radius: var(--radius-card);
  padding: 22px;
}

.card--fade {
  animation: fadeInUp 0.45s ease both;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.panel-title svg { width: 20px; height: 20px; color: var(--gold); }

/* ---------------- Score pills (team panels) ---------------- */
.score-pill {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 22px;
  border-radius: 18px;
}
.score-pill__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}
.score-pill__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-score);
  line-height: 1;
}

.score-pill--green {
  /* inner glow approximated with a radial layer (see hairline note above) */
  background:
    radial-gradient(120% 130% at 50% 50%, rgba(var(--team-green-rgb), 0) 55%, rgba(var(--team-green-rgb), 0.10) 100%),
    var(--team-green-grad);
  box-shadow: 0 0 22px rgba(var(--team-green-rgb), 0.18), inset 0 0 0 1px var(--team-green-border);
}
.score-pill--green .score-pill__label { color: var(--team-green-soft); }
.score-pill--green .score-pill__value {
  color: var(--team-green-value);
  text-shadow: 0 0 16px rgba(var(--team-green-rgb), 0.6);
}

.score-pill--red {
  background:
    radial-gradient(120% 130% at 50% 50%, rgba(var(--team-red-rgb), 0) 55%, rgba(var(--team-red-rgb), 0.10) 100%),
    var(--team-red-grad);
  box-shadow: 0 0 22px rgba(var(--team-red-rgb), 0.18), inset 0 0 0 1px var(--team-red-border);
}
.score-pill--red .score-pill__label { color: var(--team-red-soft); }
.score-pill--red .score-pill__value {
  color: var(--team-red-value);
  text-shadow: 0 0 16px rgba(var(--team-red-rgb), 0.6);
}

/* Team panels — score-pill styling on a block container */
.team-panel { border-radius: var(--radius-card); padding: 18px; }
.team-panel--green {
  background:
    radial-gradient(120% 130% at 50% 50%, rgba(var(--team-green-rgb), 0) 55%, rgba(var(--team-green-rgb), 0.10) 100%),
    var(--team-green-grad);
  box-shadow: 0 0 22px rgba(var(--team-green-rgb), 0.18), inset 0 0 0 1px var(--team-green-border);
}
.team-panel--green .team-panel__title { color: var(--team-green-soft); }
.team-panel--red {
  background:
    radial-gradient(120% 130% at 50% 50%, rgba(var(--team-red-rgb), 0) 55%, rgba(var(--team-red-rgb), 0.10) 100%),
    var(--team-red-grad);
  box-shadow: 0 0 22px rgba(var(--team-red-rgb), 0.18), inset 0 0 0 1px var(--team-red-border);
}
.team-panel--red .team-panel__title { color: var(--team-red-soft); }
.team-panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  text-align: center;
  letter-spacing: 1px;
  margin-block-end: 12px;
}

/* ---------------- Form fields ---------------- */
.field { margin-block-end: 18px; }

.field label,
.form-panel label {
  display: block;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--text);
  margin-block-end: 6px;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea,
.form-panel input[type="text"],
.form-panel input[type="email"],
.form-panel input[type="password"],
.form-panel input[type="number"],
.form-panel input[type="search"],
.form-panel input[type="file"],
.form-panel select,
.form-panel textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-input);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  padding: 9px 14px;
  transition: var(--transition-fast);
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--gold-ring), 0 0 0 3px rgba(247, 214, 110, 0.18);
}
.field input::placeholder,
.form-panel input::placeholder,
.form-panel textarea::placeholder { color: var(--text-faint); }

.form-panel select option { background: #121822; color: var(--text); }

.field-hint {
  display: block;
  font-size: var(--fs-tiny);
  color: var(--text-muted);
  margin-block-start: 5px;
}
.field-error {
  display: block;
  font-size: var(--fs-tiny);
  font-weight: 700;
  color: var(--danger);
  margin-block-start: 5px;
}

.field-check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.field-check label { margin: 0; font-weight: 600; }
.field-check input[type="checkbox"],
.field-check input[type="radio"] { accent-color: var(--tile-green-b); width: 16px; height: 16px; }

/* Radio cards (create game) */
.radio-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.radio-card {
  position: relative;
  display: block;
  cursor: pointer;
}
.radio-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: var(--radius-panel);
  background: var(--panel-bg);
  box-shadow: inset 0 0 0 1px var(--panel-border);
  color: var(--text-soft);
  font-weight: 700;
  font-size: var(--fs-small);
  text-align: center;
  transition: var(--transition-fast);
}
.radio-card__body svg { width: 22px; height: 22px; color: var(--gold); }
.radio-card:hover .radio-card__body { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.radio-card input[type="radio"]:checked + .radio-card__body {
  background: linear-gradient(155deg, rgba(251, 244, 206, 0.14), rgba(234, 217, 143, 0.06));
  color: var(--gold);
  box-shadow: 0 0 18px rgba(247, 214, 110, 0.28), inset 0 0 0 1px var(--tile-default-rim);
}
.radio-card input[type="radio"]:focus-visible + .radio-card__body {
  box-shadow: 0 0 0 3px rgba(247, 214, 110, 0.3), inset 0 0 0 1px var(--tile-default-rim);
}
.radio-card input[type="radio"]:disabled + .radio-card__body {
  opacity: 0.4;
  cursor: not-allowed;
}
.radio-card--green input[type="radio"]:checked + .radio-card__body {
  background: var(--team-green-grad);
  color: var(--team-green-soft);
  box-shadow: 0 0 18px rgba(var(--team-green-rgb), 0.35), inset 0 0 0 1px var(--team-green-border);
}
.radio-card--red input[type="radio"]:checked + .radio-card__body {
  background: var(--team-red-grad);
  color: var(--team-red-soft);
  box-shadow: 0 0 18px rgba(var(--team-red-rgb), 0.35), inset 0 0 0 1px var(--team-red-border);
}

/* ---------------- Badges & chips ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-tiny);
  font-weight: 700;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--panel-border);
  color: var(--text-soft);
  white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge--green {
  background: var(--team-green-grad);
  box-shadow: inset 0 0 0 1px var(--team-green-border);
  color: var(--team-green-soft);
}
.badge--red {
  background: var(--team-red-grad);
  box-shadow: inset 0 0 0 1px var(--team-red-border);
  color: var(--team-red-soft);
}
.badge--gold {
  background: linear-gradient(155deg, rgba(251, 244, 206, 0.18), rgba(234, 217, 143, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 247, 214, 0.4);
  color: var(--gold);
}
.badge--warning {
  background: rgba(230, 198, 90, 0.14);
  box-shadow: inset 0 0 0 1px rgba(230, 198, 90, 0.4);
  color: var(--warning);
}
.badge--danger {
  background: var(--team-red-grad);
  box-shadow: inset 0 0 0 1px var(--team-red-border);
  color: var(--team-red-soft);
}
.badge--counter {
  position: absolute;
  inset-block-start: -7px;
  inset-inline-end: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  justify-content: center;
  background: var(--tile-red-fill);
  color: #fff;
  box-shadow: 0 0 10px rgba(var(--team-red-rgb), 0.55), inset 0 0 0 1px var(--tile-red-rim);
  line-height: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--panel-bg);
  box-shadow: inset 0 0 0 1px var(--panel-border);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
}

/* ---------------- Tabs ---------------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  border-block-end: 1px solid var(--panel-border);
  padding-block-end: 10px;
  margin-block-end: 18px;
}
.tabs__tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-small);
  cursor: pointer;
  transition: var(--transition-fast);
}
.tabs__tab svg { width: 15px; height: 15px; }
.tabs__tab:hover { color: var(--text); }
.tabs__tab.is-active {
  background: var(--tile-default-fill);
  color: var(--tile-default-text);
  box-shadow: 0 0 16px rgba(247, 214, 110, 0.4), inset 0 0 0 1px var(--tile-default-rim);
}
.tab-panel[hidden] { display: none; }

/* ---------------- Alerts & toasts ---------------- */
.alert {
  border-radius: var(--radius-panel);
  box-shadow: inset 0 0 0 1px var(--panel-border);
  background: var(--panel-bg);
  padding: 12px 16px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-soft);
  margin-block-end: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert svg { width: 17px; height: 17px; flex: none; }
.alert--success { box-shadow: inset 0 0 0 1px var(--team-green-border); color: var(--team-green-soft); background: var(--team-green-grad); }
.alert--danger, .alert--error { box-shadow: inset 0 0 0 1px var(--team-red-border); color: var(--team-red-soft); background: var(--team-red-grad); }
.alert--warning { box-shadow: inset 0 0 0 1px rgba(230, 198, 90, 0.4); color: var(--warning); background: rgba(230, 198, 90, 0.08); }
.alert--info { box-shadow: inset 0 0 0 1px rgba(143, 184, 214, 0.35); color: var(--info); background: rgba(143, 184, 214, 0.08); }

.toast-stack {
  position: fixed;
  inset-block-end: 18px;
  inset-inline-start: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 36px));
}
.toast {
  border-radius: var(--radius-panel);
  background: #121822;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--panel-border);
  padding: 12px 16px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInUp 0.3s ease both;
}
.toast--success { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--team-green-border); }
.toast--success::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tile-green-glow); box-shadow: 0 0 8px var(--tile-green-glow); flex: none; }
.toast--danger, .toast--error { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--team-red-border); }
.toast--danger::before, .toast--error::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tile-red-glow); box-shadow: 0 0 8px var(--tile-red-glow); flex: none; }
.toast--warning { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(230, 198, 90, 0.4); }
.toast--warning::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 8px var(--warning); flex: none; }
.toast--info::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--info); flex: none; }
.toast__close {
  appearance: none;
  background: none;
  border: 0;
  color: var(--text-faint);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  margin-inline-start: auto;
  padding: 2px;
}
.toast__close:hover { color: var(--text); }

/* ---------------- Modal (native <dialog>) ---------------- */
.modal {
  background: #121822;
  color: var(--text);
  border: 0;
  border-radius: var(--radius-card);
  padding: 24px;
  max-width: min(560px, calc(100vw - 32px));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--panel-border);
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* ---------------- Avatars ---------------- */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px var(--panel-border);
  background: var(--panel-bg);
  flex: none;
}
.avatar--lg { width: 120px; height: 120px; }
.avatar--sm { width: 28px; height: 28px; }
.avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--fs-small);
  color: var(--tile-default-text);
  background: var(--tile-default-fill);
  box-shadow: inset 0 0 0 1px var(--tile-default-rim);
}
.avatar--initial.avatar--green { background: var(--tile-green-fill); box-shadow: inset 0 0 0 1px var(--tile-green-rim); color: #fff; }
.avatar--initial.avatar--red { background: var(--tile-red-fill); box-shadow: inset 0 0 0 1px var(--tile-red-rim); color: #fff; }
.avatar--initial.avatar--lg { font-size: 42px; }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; }
.table-dark {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.table-dark th {
  text-align: start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-tiny);
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 10px 12px;
  border-block-end: 1px solid var(--panel-border);
  white-space: nowrap;
}
.table-dark td {
  padding: 10px 12px;
  border-block-end: 1px solid var(--panel-border-soft);
  vertical-align: middle;
}
.table-dark tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

/* ---------------- Player list (team selection) ---------------- */
.player-list { list-style: none; padding: 0; margin: 0; }
.player-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 10px;
  border-block-end: 1px solid var(--panel-border-soft);
}
.player-list__item:last-child { border-block-end: 0; }
.player-list__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-list__name { font-weight: 700; font-size: var(--fs-small); }
.player-list__meta { font-size: var(--fs-tiny); color: var(--text-muted); }
.player-list__item.is-inactive { opacity: 0.5; }

/* ---------------- Layout helpers ---------------- */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row--center { justify-content: center; }
.row--between { justify-content: space-between; }

.narrow { max-width: 460px; margin-inline: auto; }
.medium { max-width: 760px; margin-inline: auto; }

/* Stat tile (profile) */
.stat-tile {
  text-align: center;
  padding: 16px 10px;
  border-radius: var(--radius-panel);
  background: var(--panel-bg);
  box-shadow: inset 0 0 0 1px var(--panel-border);
}
.stat-tile__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.2;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(247, 214, 110, 0.35);
}
.stat-tile__label { font-size: var(--fs-tiny); font-weight: 700; color: var(--text-muted); }
.stat-tile--green .stat-tile__value { color: var(--team-green-value); text-shadow: 0 0 14px rgba(var(--team-green-rgb), 0.45); }
.stat-tile--red .stat-tile__value { color: var(--team-red-value); text-shadow: 0 0 14px rgba(var(--team-red-rgb), 0.45); }

/* Stars */
.stars { color: var(--warning); letter-spacing: 3px; font-size: 17px; }
.stars .star--off { color: var(--text-faint); }

/* Hero (home) */
.hero { text-align: center; padding-block: 30px 10px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-display);
  line-height: 1.15;
  color: var(--gold);
  animation: titleGlow 3.4s ease-in-out infinite;
  margin-block-end: 10px;
}
.hero__sub {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* Decorative mini hexagons */
.hex-mini {
  position: relative;
  width: 56px;
  height: 49px;
  flex: none;
}
.hex-mini__rim,
.hex-mini__fill,
.hex-mini__gloss {
  position: absolute;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}
.hex-mini__rim { inset: 0; background: var(--tile-default-rim); }
.hex-mini__fill { inset: 2px; background: var(--tile-default-fill); }
.hex-mini__gloss { inset: 2px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 46%); pointer-events: none; }
.hex-mini__letter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 22px;
  color: var(--tile-default-text);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}
.hex-mini { filter: drop-shadow(0 0 6px var(--tile-default-glow-soft)) drop-shadow(0 0 14px var(--tile-default-glow-soft)); }
.hex-mini--green { filter: drop-shadow(0 0 6px var(--tile-green-glow-soft)) drop-shadow(0 0 14px var(--tile-green-glow-soft)); }
.hex-mini--green .hex-mini__rim { background: var(--tile-green-rim); }
.hex-mini--green .hex-mini__fill { background: var(--tile-green-fill); }
.hex-mini--green .hex-mini__letter { color: #fff; text-shadow: 0 1px 3px rgba(0, 50, 20, 0.55); }
.hex-mini--red { filter: drop-shadow(0 0 6px var(--tile-red-glow-soft)) drop-shadow(0 0 14px var(--tile-red-glow-soft)); }
.hex-mini--red .hex-mini__rim { background: var(--tile-red-rim); }
.hex-mini--red .hex-mini__fill { background: var(--tile-red-fill); }
.hex-mini--red .hex-mini__letter { color: #fff; text-shadow: 0 1px 3px rgba(70, 0, 0, 0.55); }

/* Search result rows (injected by invitation.js) */
.result-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  text-align: start;
  transition: var(--transition-fast);
}
.result-item:hover { background: rgba(255, 255, 255, 0.06); }

.text-green { color: var(--team-green-soft); }
.text-red { color: var(--team-red-soft); }

/* Spinner */
.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--panel-border);
  border-block-start-color: var(--gold);
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Keyframes ---------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  .card--fade, .toast { animation: none; }
  .hero__title { animation: none; }
  .hex-mini, .hex-mini--green, .hex-mini--red { filter: none; }
}
