/* ─────────────────────────────────────────────────────────────
   રમઝટ · Ramzat — chrome for a cloth.

   The canvas paints undyed cotton, so this is all dark marks on a
   light field: madder and lamp-black on ivory, gold hairlines, no
   glass and no blur. Panels are cloth patches pinned to the cloth,
   which is why they have a hairline rule and a shadow rather than a
   translucent fill.
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Kumar One';
  src: url('/assets/fonts/kumar-one-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* One family for the whole interface, both scripts. Anek Gujarati carries a
   full Latin set, so nothing here falls back to a system stack. */
@font-face {
  font-family: 'Anek';
  src: url('/assets/fonts/anek-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* Latin only. Bold Gujarati would have cost another 58 KB for one label, and
   the active genre is already carried by its ring. */
@font-face {
  font-family: 'Anek';
  src: url('/assets/fonts/anek-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F, U+2190-21FF, U+2713, U+2715;
}

:root {
  /* Six dyes. Same set the canvas uses — see themes.js. */
  --madder: #9e2b25;
  --madder-deep: #7a1d1e;
  --indigo: #1b3a5c;
  --turmeric: #e2a32d;
  --gold: #c9a227;
  --malachite: #1f6b4f;
  --ivory: #f2e8d5;
  --ivory-warm: #eaddc4;
  --lamp: #14100e;

  --ink: var(--lamp);
  --ink-dim: rgba(20, 16, 14, 0.62);
  --ink-faint: rgba(20, 16, 14, 0.42);
  --patch: #f6efdf;
  --rule: rgba(122, 29, 30, 0.28);
  --rule-soft: rgba(20, 16, 14, 0.14);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 30px -14px rgba(60, 30, 12, 0.5);

  --beat-off: rgba(20, 16, 14, 0.18);
  --gu: 'Anek', 'Noto Sans Gujarati', sans-serif;
  --sys: 'Anek', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --dock-max: 700px;
  /* Overwritten by scene.js on every resize with the painted border's
     inner edge. The fallback covers the first paint. */
  --frame: 46px;
}

/* ── Sanedo: bandhani ─────────────────────────────────────────
   The cloth goes dark, so the chrome inverts with it. Zari takes over the
   job madder does on the pichhwai — it is the ink of this cloth. Every
   component reads these tokens, so nothing below needs a second rule. */
:root[data-theme='sanedo'] {
  --madder: #d4a93c;
  --madder-deep: #e8ae33;
  --patch: #3a0d16;
  --ivory: #7a1522;
  --ivory-warm: #5e0f1a;
  --ink: #f5e7cf;
  --ink-dim: rgba(245, 231, 207, 0.68);
  --ink-faint: rgba(245, 231, 207, 0.46);
  --rule: rgba(212, 169, 60, 0.5);
  --rule-soft: rgba(245, 231, 207, 0.16);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 34px -14px rgba(0, 0, 0, 0.75);
  --beat-off: rgba(245, 231, 207, 0.24);
}

/* ── Filmi: abla and zari ─────────────────────────────────────
   A lit set rather than a cloth, so the chrome is zari on a deep jewel
   ground. Same tokens as everywhere else — the components never learn
   which theme is on. */
:root[data-theme='filmi'] {
  --madder: #e8b948;
  --madder-deep: #f2d98a;
  --patch: #1f1450;
  --ivory: #1a1040;
  --ivory-warm: #120b2e;
  --ink: #f5ecd2;
  --ink-dim: rgba(245, 236, 210, 0.7);
  --ink-faint: rgba(245, 236, 210, 0.48);
  --rule: rgba(232, 185, 72, 0.5);
  --rule-soft: rgba(245, 236, 210, 0.16);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 34px -14px rgba(0, 0, 0, 0.8);
  --beat-off: rgba(245, 236, 210, 0.24);
}

:root[data-theme='filmi'] .sheet {
  background: rgba(8, 4, 24, 0.62);
}

/* ── Indipop: screen print ────────────────────────────────────
   Light like prachin, but a cool synthetic white rather than warm undyed
   cotton, and magenta does the job madder does there. */
:root[data-theme='indipop'] {
  --madder: #e5197f;
  --madder-deep: #c2126a;
  --patch: #f7f8f4;
  --ivory: #f0f1ec;
  --ivory-warm: #e4e6df;
  --ink: #1c1c1a;
  --ink-dim: rgba(28, 28, 26, 0.66);
  --ink-faint: rgba(28, 28, 26, 0.44);
  --rule: rgba(229, 25, 127, 0.32);
  --rule-soft: rgba(28, 28, 26, 0.14);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 30px -14px rgba(28, 28, 26, 0.35);
  --beat-off: rgba(28, 28, 26, 0.18);
}

/* ── Gujarati pop: digital print ──────────────────────────────
   A saturated ground, so light chrome — but hot pink rather than the zari
   the two dark cloths use, because nothing here is metal. */
:root[data-theme='gujpop'] {
  --madder: #ff2d87;
  --madder-deep: #ffd84d;
  --patch: #2c0a52;
  --ivory: #3d0f6b;
  --ivory-warm: #1a0533;
  --ink: #fdf2ff;
  --ink-dim: rgba(253, 242, 255, 0.72);
  --ink-faint: rgba(253, 242, 255, 0.5);
  --rule: rgba(255, 45, 135, 0.55);
  --rule-soft: rgba(253, 242, 255, 0.18);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.09), 0 12px 34px -14px rgba(0, 0, 0, 0.75);
  --beat-off: rgba(253, 242, 255, 0.26);
}

:root[data-theme='gujpop'] .sheet {
  background: rgba(14, 3, 30, 0.62);
}

/* ── Fusion: aari on a grid ───────────────────────────────────
   Natural indigo ground, ecru thread, and the one modern colour carries
   the accent — the same rule the cloth follows. */
:root[data-theme='fusion'] {
  --madder: #00e5c0;
  --madder-deep: #e8dcc0;
  --patch: #12222f;
  --ivory: #16283d;
  --ivory-warm: #0f1d2e;
  --ink: #f0e8d6;
  --ink-dim: rgba(240, 232, 214, 0.7);
  --ink-faint: rgba(240, 232, 214, 0.46);
  --rule: rgba(0, 229, 192, 0.4);
  --rule-soft: rgba(240, 232, 214, 0.16);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 34px -14px rgba(0, 0, 0, 0.75);
  --beat-off: rgba(240, 232, 214, 0.24);
}

/* Teal needs dark text on it where madder wanted light. */
:root[data-theme='fusion'] .btn-play {
  color: #06121a;
}

:root[data-theme='fusion'] .toast {
  color: #06121a;
}

:root[data-theme='fusion'] .sheet {
  background: rgba(4, 12, 20, 0.62);
}

/* ── Techno: abla in the dark ─────────────────────────────────
   Near-black, chrome, one laser colour. The darkest chrome in the set. */
:root[data-theme='techno'] {
  --madder: #a93dff;
  --madder-deep: #c8ceda;
  --patch: #101018;
  --ivory: #08080c;
  --ivory-warm: #0e0e16;
  --ink: #e6e8ee;
  --ink-dim: rgba(230, 232, 238, 0.68);
  --ink-faint: rgba(230, 232, 238, 0.44);
  --rule: rgba(169, 61, 255, 0.45);
  --rule-soft: rgba(230, 232, 238, 0.14);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 34px -14px rgba(0, 0, 0, 0.9);
  --beat-off: rgba(230, 232, 238, 0.22);
}

:root[data-theme='techno'] .sheet {
  background: rgba(0, 0, 0, 0.66);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sys);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

#yt {
  position: fixed;
  width: 1px;
  height: 1px;
  left: -10px;
  top: -10px;
  opacity: 0;
  pointer-events: none;
}

#floor {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

:focus-visible {
  outline: 2px solid var(--madder);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Top ──────────────────────────────────────────────────── */

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--madder-deep);
  pointer-events: auto;
}

.mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: block;
}

/* The wordmark's viewBox is its exact ink box, so it carries no leading of
   its own and the roman line sat straight on it. */
.logo-type {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1;
}

/* ── Top, continued ───────────────────────────────────────── */

/* Logo, genres and clock share one row. They were three fixed layers before,
   all wanting the same band, and the logo widening was enough to make them
   collide. A row cannot overlap itself. */
.top {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: calc(var(--frame) + max(12px, env(safe-area-inset-top))) calc(var(--frame) + 16px) 0;
  pointer-events: none;
}

.brand,
.meta {
  flex: 0 0 auto;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Drawn, not set. The letterforms are Kumar One's Gujarati — high-contrast
   and flat-topped where Anek is neutral — converted to outlines so the mark
   never waits on a webfont, never reflows, and cannot be re-set by accident.
   It takes currentColor with the rest of the lockup. */
.wordmark {
  display: block;
  height: clamp(19px, 2.3vw, 25px);
  width: auto;
}

.rom {
  font-family: 'Kumar One', var(--sys);
  font-size: 0.625rem;
  letter-spacing: 0.09em;
  color: var(--ink-dim);
  display: block;
  line-height: 1;
}

.meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-left: auto;
}

.clock {
  margin: 0;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-dim);
}

.crowd {
  margin: 0;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── The genre switcher ───────────────────────────────────────
   Each genre wears its own two colours and nothing else — no textures, no
   panel, no shared background. Which means the active state cannot be
   carried by colour, because every chip already has its own: it is carried
   by weight, a ring in the chip's own ink, and everything else stepping
   back. */

.genres {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

.genres ol {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 4px 2px;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
}

.genres ol::-webkit-scrollbar {
  display: none;
}

.genres li {
  flex: 0 0 auto;
}

.swatch {
  appearance: none;
  border: 0;
  padding: 7px 13px;
  margin: 0;
  border-radius: 2px;
  font: inherit;
  cursor: pointer;
  display: block;
  position: relative;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 0.62;
  /* A hairline in the chip's own ink. Without it a chip whose ground matches
     the page — techno's black on near-black, filmi's violet on violet —
     loses its edge entirely and reads as floating text. */
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--chip-ink) 38%, transparent),
    0 1px 3px -1px rgba(0, 0, 0, 0.35);
  transition: opacity 0.18s ease, box-shadow 0.18s ease;
}

.sw-gu {
  font-family: var(--gu);
  font-size: 0.9375rem;
  line-height: 1.1;
  display: block;
}

.swatch:hover {
  opacity: 0.85;
}

/* Picked. Every chip is already coloured, so this has to read without using
   colour: full strength, a ring in the chip's own ink, and a shade more
   weight than the rest. */
.swatch.on {
  opacity: 1;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--chip-ink) 55%, transparent),
    0 0 0 2px var(--chip-ink),
    0 2px 7px -2px rgba(0, 0, 0, 0.5);
}

/* Present for assistive tech at every size; clipped rather than `display`,
   so the button is never announced as just "button". */
.sw-en {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Below this the row wraps: logo and clock keep the first line, the genres
   take the whole of the second. */
@media (max-width: 900px) {
  .genres {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .top {
    padding-left: calc(var(--frame) + 10px);
    padding-right: calc(var(--frame) + 10px);
  }
  .mark {
    width: 28px;
    height: 28px;
  }
}

/* ── Dock ─────────────────────────────────────────────────── */

.dock {
  position: fixed;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--frame) + max(10px, env(safe-area-inset-bottom)));
  width: min(var(--dock-max), calc(100vw - var(--frame) * 2 - 32px));
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 13px 15px;
  background: var(--patch);
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

/* A gold thread along the top edge — the join where the patch is sewn on. */
.dock::before {
  content: '';
  position: absolute;
  left: 7px;
  right: 7px;
  top: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}

.now {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cover-wrap {
  width: 44px;
  height: 44px;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--ivory-warm);
}

.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.now-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.track {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.time {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  flex: none;
  display: flex;
  gap: 4px;
}

.slash {
  opacity: 0.5;
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  appearance: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  border-radius: 2px;
  padding: 8px 14px;
  min-height: 42px;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease;
}

/* ── Stamps ───────────────────────────────────────────────────
   Block printing is patola's sibling craft, so the two controls are cut
   blocks rather than pills: notched corners where a carver would relieve
   them, a hand-cut motif, and a real ink press on :active. The frame is two
   clipped layers because clip-path eats a border. */
.btn-stamp {
  position: relative;
  border: 0;
  border-radius: 0;
  padding: 9px 15px;
  background: var(--madder);
  clip-path: polygon(
    6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px),
    calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px
  );
  color: var(--madder-deep);
  transition: transform 0.08s ease, color 0.14s ease;
}

.btn-stamp::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: var(--patch);
  clip-path: polygon(
    5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px),
    calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px
  );
  transition: background 0.14s ease;
}

.btn-stamp > * {
  position: relative;
  z-index: 1;
}

.btn-stamp .cut {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.btn-stamp .cut .solid {
  fill: currentColor;
  stroke-width: 1.2;
}

.btn-stamp:hover::before {
  background: #f0e1cf;
}

/* Pressed: the block goes down and the ink takes. */
.btn-stamp:active {
  transform: translateY(1px);
  color: var(--ivory);
}

.btn-stamp:active::before {
  background: var(--madder);
}

/* A nudge on press. The icon used to be a spiral that turned a full circuit
   for `એક ફેરો`; with a plain skip mark the rotation made no sense. */
#next:active .cut {
  transform: translateX(2px);
}

#songs[aria-expanded='true'] {
  color: var(--ivory);
}

#songs[aria-expanded='true']::before {
  background: var(--madder);
}

.btn [lang='gu'] {
  font-family: var(--gu);
  font-size: 0.9375rem;
  line-height: 1.1;
}

.btn:hover {
  background: rgba(158, 43, 37, 0.08);
  border-color: var(--madder);
}

.gloss {
  color: var(--ink-faint);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-ghost {
  border-color: transparent;
}

.btn-icon {
  padding: 0;
  width: 42px;
  justify-content: center;
  font-size: 0.9375rem;
  color: var(--ink-dim);
}

/* The same block, already inked — it is the one control that is always on. */
.btn-play {
  width: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  justify-content: center;
  background: var(--madder);
  color: var(--ivory);
  clip-path: polygon(
    6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px),
    calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px
  );
  transition: background 0.14s ease, transform 0.08s ease;
}

.btn-play:hover {
  background: var(--madder-deep);
}

.btn-play:active {
  transform: translateY(1px);
}

.btn-play svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.i-pause {
  display: none;
}

body.playing .i-play {
  display: none;
}

body.playing .i-pause {
  display: block;
}

/* Four beats to the bar — the shuttle passing, not a clap count. Past the
   old clap forms there is nothing honest to count, so this counts time. */
.beat {
  display: flex;
  gap: 5px;
  margin-left: auto;
  padding-right: 3px;
  flex: none;
}

.beat i {
  width: 8px;
  height: 8px;
  background: var(--beat-off);
  display: block;
  /* The register's stepped diamond, so the beat belongs to the cloth. */
  clip-path: polygon(50% 0, 67% 25%, 100% 50%, 67% 75%, 50% 100%, 33% 75%, 0 50%, 33% 25%);
  transition: background 0.09s linear, transform 0.09s linear;
}

.beat i.hit {
  background: var(--madder);
  transform: scale(1.55);
}

@media (max-width: 640px) {
  .gloss {
    display: none;
  }
  .dock {
    width: calc(100vw - var(--frame) * 2 - 20px);
  }
}

/* Two stamps and the play block already fill the dock at this width; the
   beat indicator was being clipped by the panel edge rather than wrapping. */
@media (max-width: 520px) {
  .beat {
    display: none;
  }
}

/* ── The song list ────────────────────────────────────────── */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(60, 34, 14, 0.34);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 16px max(24px, env(safe-area-inset-bottom));
}

.sheet[hidden] {
  display: none;
}

.sheet-inner {
  width: min(560px, 100%);
  max-height: min(72vh, 580px);
  display: flex;
  flex-direction: column;
  background: var(--patch);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 16px 16px 6px;
  box-shadow: 0 24px 60px -18px rgba(60, 30, 12, 0.6);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sheet-head h2 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.sheet-head [lang='gu'] {
  font-family: var(--gu);
  font-size: 1.25rem;
  color: var(--madder-deep);
}

:root[data-theme='sanedo'] .sheet {
  background: rgba(20, 4, 8, 0.6);
}

.sheet-note {
  margin: 8px 0 10px;
  font-size: 0.8125rem;
  color: var(--ink-dim);
  line-height: 1.5;
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 10px;
}

.sheet-note em {
  font-style: normal;
  color: var(--madder);
  font-weight: 600;
}

.sheet-list {
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sheet-list button {
  appearance: none;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  padding: 10px 10px;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
}

.sheet-list li + li button {
  border-top: 1px solid var(--rule-soft);
}

.sheet-list button:hover:not([disabled]) {
  background: rgba(158, 43, 37, 0.08);
}

.sheet-list .s-title {
  font-size: 0.875rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-list .s-artist {
  font-size: 0.75rem;
  color: var(--ink-faint);
  flex: none;
  max-width: 44%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-list button[disabled] {
  opacity: 0.45;
  cursor: default;
}

/* ── Toast ────────────────────────────────────────────────── */

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(var(--frame) + max(10px, env(safe-area-inset-bottom)) + 132px);
  transform: translate(-50%, 6px);
  margin: 0;
  padding: 9px 16px;
  background: var(--madder);
  color: var(--ivory);
  border-radius: 2px;
  font-size: 0.8125rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
  box-shadow: var(--shadow);
}

.toast [lang='gu'] {
  font-family: var(--gu);
  font-size: 0.9375rem;
}

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

.noscript {
  position: fixed;
  z-index: 40;
  inset: auto 0 0;
  margin: 0;
  padding: 16px;
  background: var(--madder);
  color: var(--ivory);
  text-align: center;
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .beat i,
  .toast,
  .swatch,
  .sw-gu {
    transition: none;
  }
}
