/* ============================================================
   interactive.css — the dojo: ladder, trainer, run engine, arena,
   records, and the reward effects.

   Load order is tokens → base → layout → components → interactive,
   so a rule here beats an equal-specificity rule in components.css.
   ============================================================ */

/* ---------------- XP / rank strip ---------------- */

.xp {
  display: grid;
  gap: 6px;
}

.xp__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  font-size: var(--t-xs);
  font-weight: 700;
}

.xp__rank {
  color: var(--accent);
  letter-spacing: 0.03em;
}

.xp__val {
  font-family: var(--mono);
  color: var(--xp);
}

.xp__bar {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.xp__bar > span {
  display: block;
  height: 100%;
  background: var(--accent-grad);
  transition: width 600ms var(--ease);
}

.xp__next {
  font-size: var(--t-xs);
  color: var(--ink-3);
}

.xp--big .xp__row {
  font-size: var(--t-md);
}

.xp--big .xp__bar {
  height: 14px;
}

.xp--big .xp__next {
  font-size: var(--t-sm);
}

/* ---------------- Ladder ---------------- */

.ladder-top {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  margin-bottom: var(--s-6);
}

.ladder-top__bar {
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  overflow: hidden;
}

.ladder-top__bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--bronze), var(--silver), var(--gold));
  transition: width 600ms var(--ease);
}

.ladder-top__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: var(--t-sm);
  color: var(--ink-3);
}

.ladder-top__row b {
  color: var(--ink);
}

.tier {
  margin-bottom: var(--s-7);
}

.tier__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}

.tier__badge {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.tier__blurb {
  font-size: var(--t-sm);
  color: var(--ink-3);
  margin: 4px 0 0;
  max-width: 62ch;
}

.tier.is-locked .tier__head {
  opacity: 0.55;
}

@media (max-width: 640px) {
  .tier__head {
    grid-template-columns: auto 1fr;
  }
  .tier__state {
    grid-column: 1 / -1;
  }
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--s-3);
}

.skill-card {
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: left;
  padding: var(--s-4);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-top: 3px solid var(--line-strong);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.skill-card:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.skill-card:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.skill-card--new {
  border-top-color: var(--accent);
}

.skill-card--practising {
  border-top-color: var(--accent-2);
}

.skill-card--started {
  border-top-color: var(--silver);
}

.skill-card--gold {
  border-top-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 9%, var(--surface));
}

.skill-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-card__icon {
  font-size: 22px;
}

.skill-card__name {
  font-weight: 700;
  font-size: var(--t-sm);
  line-height: 1.35;
}

.skill-card__sub {
  font-size: var(--t-xs);
  color: var(--ink-3);
  line-height: 1.45;
}

.stars {
  font-size: var(--t-sm);
  letter-spacing: 1px;
  white-space: nowrap;
}

.stars__on {
  color: var(--gold);
}

/* Unearned stars must read as EMPTY at a glance. In gold they look
   filled, and an untouched skill looks mastered. */
.stars__off {
  color: var(--ink-3);
  opacity: 0.55;
}

.stars--lg {
  font-size: var(--t-xl);
}

/* ---------------- Trainer shell ---------------- */

.skill-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-4);
}

.skill-head__title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.skill-head__title h3 {
  margin: 0;
}

.skill-head__icon {
  font-size: 24px;
}

.skill-head__meta {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-top: 6px;
}

.chip--sutra {
  font-style: italic;
  color: var(--accent-2);
  border-color: color-mix(in srgb, var(--accent-2) 40%, transparent);
}

.chip--lock {
  color: var(--ink-3);
}

.chip--ok {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 45%, transparent);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
}

@media (max-width: 640px) {
  .skill-head {
    grid-template-columns: 1fr auto;
  }
  .skill-head__main {
    grid-column: 1 / -1;
  }
}

.tabs {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}

.tab {
  flex: 1 1 auto;
  padding: 10px var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 700;
  transition: all var(--dur) var(--ease);
}

.tab:hover:not(:disabled) {
  color: var(--ink);
  border-color: var(--line-strong);
}

.tab.is-on {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--ink);
}

.tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tab__lock {
  font-size: var(--t-xs);
}

/* ---------------- Learn ---------------- */

.callout--idea {
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
}

.method {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: var(--s-2);
  padding: 0;
  margin: 0;
}

.method li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: var(--t-sm);
  line-height: 1.7;
}

.method li::before {
  content: counter(step);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: var(--t-xs);
  font-weight: 800;
}

.worked {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--s-4);
  display: grid;
  gap: var(--s-3);
}

.worked__q {
  font-family: var(--mono);
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--accent);
}

.worked__steps {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
  font-size: var(--t-sm);
  color: var(--ink-2);
}

.worked__a {
  font-family: var(--mono);
  font-size: var(--t-xl);
  font-weight: 800;
  color: var(--xp);
  padding-top: var(--s-2);
  border-top: 1px dashed var(--line-strong);
}

/* ---------------- Practice ---------------- */

.practice {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-4);
}

.practice__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* ---------------- The run engine ---------------- */

.run {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface-solid);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-4);
  position: relative;
  overflow: hidden;
  transition: background 200ms var(--ease);
}

.run__hud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.hud {
  background: var(--surface);
  padding: var(--s-2) var(--s-3);
  text-align: center;
  transition: background 200ms var(--ease);
}

.hud__k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-weight: 700;
}

.hud__v {
  font-family: var(--mono);
  font-size: var(--t-md);
  font-weight: 800;
  color: var(--ink);
}

.hud--xp .hud__v {
  color: var(--xp);
}

.hud--lives .hud__v {
  color: var(--bad);
}

.hud--streak.is-warm .hud__v {
  color: var(--warn);
}

.hud--streak.is-hot {
  background: color-mix(in srgb, var(--streak) 18%, var(--surface));
}

.hud--streak.is-hot .hud__v {
  color: var(--streak);
}

.hud--clock.is-hot {
  background: color-mix(in srgb, var(--bad) 18%, var(--surface));
}

.hud--clock.is-hot .hud__v {
  color: var(--bad);
}

/* The countdown. It is the loudest thing on the screen on purpose. */
.run__bar {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  overflow: hidden;
}

.run__bar > span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ok);
}

.run__bar > span.is-low {
  background: var(--warn);
}

.run__bar > span.is-critical {
  background: var(--bad);
}

.run__bar--off > span {
  background: var(--line-strong);
}

.run__q {
  font-family: var(--mono);
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.01em;
  padding: var(--s-4) 0;
  color: var(--ink);
  word-break: break-word;
}

.run__in {
  display: flex;
  gap: var(--s-3);
  align-items: stretch;
}

.run__in input,
.practice .run__in input {
  flex: 1;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  border: 2px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--t-xl);
  font-weight: 700;
  text-align: center;
  min-width: 0;
}

.run__in input:focus {
  outline: none;
  border-color: var(--accent);
}

.run__feed {
  display: grid;
  gap: 4px;
  min-height: 22px;
}

.feed__line {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
  padding: 3px var(--s-2);
  border-radius: var(--r-sm);
}

.feed__line--ok b {
  color: var(--ok);
}

.feed__line--bad {
  color: var(--ink-2);
  background: color-mix(in srgb, var(--bad) 10%, transparent);
}

.feed__line--bad b {
  color: var(--bad);
}

.feed__ms {
  opacity: 0.6;
}

.run__foot {
  display: flex;
  justify-content: flex-end;
}

/* On-screen pad — on a phone the system keyboard covers the question. */
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  max-width: 320px;
  margin-inline: auto;
  width: 100%;
}

.key {
  padding: var(--s-4) 0;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--t-lg);
  font-weight: 700;
  transition: background var(--dur) var(--ease);
}

.key:active {
  background: var(--accent);
  color: #fff;
}

.key--go {
  background: color-mix(in srgb, var(--accent) 22%, var(--surface-2));
  color: var(--accent);
}

@media (min-width: 720px) {
  /* A physical keyboard is always faster; the pad is a touch fallback. */
  .keypad {
    display: none;
  }
}

/* ---------------- Drill briefing ---------------- */

.brief {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-4);
  justify-items: center;
  text-align: center;
}

.brief__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  width: 100%;
}

.brief__cell {
  background: var(--surface-2);
  padding: var(--s-3);
}

.brief__k {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-3);
  font-weight: 700;
}

.brief__v {
  font-family: var(--mono);
  font-size: var(--t-lg);
  font-weight: 800;
}

.star-rules {
  display: grid;
  gap: var(--s-2);
  width: 100%;
}

.star-rule {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: var(--t-sm);
  text-align: left;
}

/* ---------------- Results ---------------- */

.results {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: var(--s-6) var(--s-5);
  text-align: center;
  display: grid;
  gap: var(--s-3);
  justify-items: center;
}

.results--gold {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
}

.results--silver {
  border-color: var(--silver);
  background: color-mix(in srgb, var(--silver) 10%, var(--surface));
}

.results--bronze {
  border-color: var(--bronze);
  background: color-mix(in srgb, var(--bronze) 10%, var(--surface));
}

.results__stars {
  font-size: 3rem;
  letter-spacing: 6px;
  color: var(--gold);
}

.results__score {
  font-family: var(--mono);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.results__label {
  font-size: var(--t-sm);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  width: 100%;
}

.rcell {
  background: var(--surface);
  padding: var(--s-3);
}

.rcell__k {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-3);
  font-weight: 700;
}

.rcell__v {
  font-family: var(--mono);
  font-size: var(--t-md);
  font-weight: 800;
}

.rcell--ok .rcell__v {
  color: var(--ok);
}

.rcell--warn .rcell__v {
  color: var(--warn);
}

.rcell--bad .rcell__v {
  color: var(--bad);
}

.results__next {
  font-size: var(--t-sm);
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0;
}

.link {
  color: var(--accent-2);
  cursor: pointer;
  text-decoration: underline;
}

/* ---------------- Arena ---------------- */

.arena-note {
  font-size: var(--t-sm);
  color: var(--ink-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--surface-2);
  margin-bottom: var(--s-5);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--s-4);
}

/* A column, not a grid, so the score row and the Start button can be
   pushed to the bottom — three cards with different amounts of rules
   text should still line their buttons up. */
.mode {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.mode__icon {
  font-size: 30px;
}

.mode h3 {
  margin: 0;
}

.mode__tag {
  font-size: var(--t-sm);
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}

.mode__rules {
  font-size: var(--t-sm);
  color: var(--ink-3);
  margin: 0;
  line-height: 1.65;
}

.mode__best {
  font-size: var(--t-sm);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  margin: var(--s-2) 0;
  margin-top: auto; /* pins the score row + button to the bottom of the card */
}

.mode__best b {
  color: var(--gold);
  font-family: var(--mono);
}

/* ---------------- Records ---------------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-3);
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--s-4);
  text-align: center;
}

.stat__icon {
  font-size: 22px;
}

.stat__v {
  font-family: var(--mono);
  font-size: var(--t-xl);
  font-weight: 800;
  margin: 2px 0;
}

.stat__k {
  font-size: var(--t-xs);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.badge-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s-3);
}

.badge {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--s-4);
  text-align: center;
  opacity: 0.4;
  filter: grayscale(1);
  transition: all var(--dur) var(--ease);
}

.badge.is-earned {
  opacity: 1;
  filter: none;
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
}

.badge__icon {
  font-size: 30px;
}

.badge__name {
  font-weight: 800;
  font-size: var(--t-sm);
  margin: 4px 0 2px;
}

.badge__how {
  font-size: var(--t-xs);
  color: var(--ink-3);
  line-height: 1.4;
}

.arena-best {
  font-family: var(--mono);
  font-size: var(--t-2xl);
  font-weight: 800;
  color: var(--gold);
}

.is-dim td {
  opacity: 0.45;
}

.danger-zone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding: var(--s-4) var(--s-5);
  border: 1px dashed var(--bad);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--bad) 6%, transparent);
}

.btn--danger {
  border-color: var(--bad);
  color: var(--bad);
  background: color-mix(in srgb, var(--bad) 14%, transparent);
}

.sanskrit {
  font-style: italic;
  color: var(--accent-2);
}

/* ---------------- Empty states ---------------- */

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-xl);
  padding: var(--s-7) var(--s-5);
  text-align: center;
  display: grid;
  gap: var(--s-3);
  justify-items: center;
}

.empty__icon {
  font-size: 42px;
}

.empty p {
  max-width: 48ch;
  color: var(--ink-3);
}

/* ---------------- Reward effects ---------------- */

.fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
}

.fx-float {
  position: fixed;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: var(--t-lg);
  font-weight: 800;
  color: var(--xp);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  animation: fxRise 1100ms var(--ease) forwards;
  white-space: nowrap;
}

.fx-float--xp {
  color: var(--xp);
}

.fx-float.is-still {
  animation: fxFade 700ms var(--ease) forwards;
}

@keyframes fxRise {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  18% { opacity: 1; transform: translate(-50%, -70%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -190%) scale(1); }
}

@keyframes fxFade {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}

.fx-banner {
  position: fixed;
  left: 50%;
  top: 22%;
  transform: translate(-50%, -50%) scale(0.85);
  padding: var(--s-4) var(--s-6);
  border-radius: var(--r-xl);
  background: var(--surface-solid);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow);
  text-align: center;
  opacity: 0;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.fx-banner.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.fx-banner--streak {
  border-color: var(--streak);
}

.fx-banner--badge {
  border-color: var(--accent-2);
}

.fx-banner__text {
  font-size: var(--t-xl);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.fx-banner__sub {
  font-size: var(--t-sm);
  color: var(--ink-3);
  margin-top: 4px;
}

/* Panel feedback on an answer. */
.is-flash-ok {
  background: color-mix(in srgb, var(--ok) 16%, var(--surface-solid)) !important;
}

.is-flash-bad {
  background: color-mix(in srgb, var(--bad) 16%, var(--surface-solid)) !important;
}

.is-shake {
  animation: fxShake 400ms var(--ease);
}

@keyframes fxShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

.is-pop {
  animation: fxPop 380ms var(--ease);
}

@keyframes fxPop {
  0% { transform: scale(0.9); opacity: 0.5; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}

/* ---------------- Verdicts (practice feedback) ---------------- */

.verdict {
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink-3);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--s-3) var(--s-4);
  font-size: var(--t-sm);
}

.verdict--ok {
  border-left-color: var(--ok);
  background: color-mix(in srgb, var(--ok) 8%, var(--surface));
}

.verdict--bad {
  border-left-color: var(--bad);
  background: color-mix(in srgb, var(--bad) 8%, var(--surface));
}

.verdict--warn {
  border-left-color: var(--warn);
  background: color-mix(in srgb, var(--warn) 9%, var(--surface));
}

.drill__foot {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* ---------------- Toast (nav.js) ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: var(--t-sm);
  font-weight: 640;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 95;
  max-width: 90vw;
  text-align: center;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
