/* Auto-Bounce by Muffin - sticker-cartoon theme matching the bolt logo */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/asset/SpaceGrotesk.woff2') format('woff2');
}

:root {
  --bg: #0f0f15;
  --surf: #17171f;
  --surf2: #1f1f2a;
  --ink: #0a0a0d;
  --bolt: #ffe227;
  --bolt-deep: #f5c400;
  --text: #f7f7fb;
  --dim: #a2a2b5;
  --blue: #63cbe0;
  --coral: #f58a8a;
  --green: #8fdf9a;
  --font: 'Space Grotesk', 'Bahnschrift', 'Segoe UI', system-ui, sans-serif;
  --card-border: 3px solid var(--ink);
  --pop-shadow: 0 5px 0 var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: var(--bolt); color: var(--ink); }

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  background-image:
    radial-gradient(1100px 500px at 50% -180px, rgba(255, 226, 39, .07), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg opacity='0.10'%3E%3Crect x='30' y='40' width='16' height='5' rx='2.5' fill='%2363cbe0' transform='rotate(24 38 42)'/%3E%3Crect x='150' y='24' width='16' height='5' rx='2.5' fill='%23f58a8a' transform='rotate(-18 158 26)'/%3E%3Crect x='210' y='120' width='16' height='5' rx='2.5' fill='%23ffe227' transform='rotate(40 218 122)'/%3E%3Crect x='70' y='170' width='16' height='5' rx='2.5' fill='%238fdf9a' transform='rotate(-32 78 172)'/%3E%3Crect x='180' y='215' width='16' height='5' rx='2.5' fill='%23c084fc' transform='rotate(12 188 217)'/%3E%3Crect x='110' y='95' width='16' height='5' rx='2.5' fill='%23ffe227' transform='rotate(-45 118 97)'/%3E%3C/g%3E%3C/svg%3E");
}

/* ───────── header ───────── */

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: var(--surf);
  border-bottom: var(--card-border);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-bolt { width: 44px; height: 44px; filter: drop-shadow(0 3px 0 rgba(0,0,0,.55)); }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-size: 21px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
  color: var(--bolt);
  text-shadow: 0 2px 0 var(--ink);
}
.brand-name i { font-style: normal; color: var(--text); }
.brand-by { font-size: 11.5px; color: var(--dim); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

.top-right { display: flex; align-items: center; gap: 10px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--surf2);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  box-shadow: 0 3px 0 var(--ink);
  white-space: nowrap;
}
.chip-limit .mini-bolt { width: 13px; height: 13px; fill: var(--bolt); }
.chip-limit.chip-empty { background: #2a1d1d; color: var(--coral); }
.chip-limit.chip-empty .mini-bolt { fill: var(--coral); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--surf2); color: var(--text);
  border: 2.5px solid var(--ink); border-radius: 12px;
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer; transition: transform .12s, box-shadow .12s, color .12s;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); color: var(--bolt); }
.icon-btn:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
.icon-btn-sm { width: 30px; height: 30px; border-radius: 9px; }
.icon-btn-sm svg { width: 14px; height: 14px; }

.mascot-btn {
  width: 46px; height: 46px; padding: 2px;
  background: transparent; border: none; cursor: pointer;
  transition: transform .15s cubic-bezier(.34, 1.56, .64, 1);
}
.mascot-btn img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(0,0,0,.5)); }
.mascot-btn:hover { transform: translateY(-3px) scale(1.08); }
.mascot-btn:active { transform: translateY(1px) scale(.98); }
.mascot-btn.celebrating { animation: mascot-hop .5s cubic-bezier(.34, 1.56, .64, 1) 2; }
@keyframes mascot-hop { 0%,100% { transform: translateY(0); } 45% { transform: translateY(-7px) scale(1.1); } }

/* ───────── layout ───────── */

.stage {
  max-width: 860px; margin: 0 auto;
  padding: 22px 20px 96px;
  display: flex; flex-direction: column; gap: 16px;
}

.card {
  background: var(--surf);
  border: var(--card-border);
  border-radius: 18px;
  box-shadow: var(--pop-shadow);
  padding: 18px 20px;
}

.row-gap { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.dim { color: var(--dim); }
.dim-note { color: var(--dim); font-size: 12.5px; font-weight: 500; }

/* ───────── buttons ───────── */

.btn {
  font-family: var(--font);
  font-size: 14.5px; font-weight: 700; letter-spacing: .01em;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bolt), var(--bolt-deep));
  border: var(--card-border); border-radius: 13px;
  padding: 10px 18px;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); filter: brightness(1.06); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn-secondary { background: var(--surf2); color: var(--text); }
.btn-sm { font-size: 12.5px; padding: 6px 12px; border-width: 2.5px; border-radius: 10px; box-shadow: 0 3px 0 var(--ink); }

/* ───────── drop zone ───────── */

.dropzone {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  min-height: 240px;
  border: 3px dashed #3a3a4c;
  border-radius: 22px;
  background: rgba(255, 255, 255, .015);
  cursor: pointer;
  outline: none;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}
.dropzone:hover, .dropzone:focus-visible {
  border-color: var(--bolt);
  background: rgba(255, 226, 39, .04);
}
.dropzone.dragging {
  border: 3px solid transparent;
  background: rgba(255, 226, 39, .06);
  box-shadow: var(--pop-shadow);
  transform: scale(1.012);
}

/* glyph: idle floating A + charging A share one slot so they stay aligned */
.drop-glyph { position: relative; width: 76px; height: 76px; z-index: 3; }
.drop-a {
  width: 76px; height: 76px; object-fit: contain;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55));
  animation: drop-float 2.8s ease-in-out infinite;
}
@keyframes drop-float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(3deg); } }
.drop-fill { position: absolute; inset: 0; opacity: 0; transition: opacity .18s; }
.drop-fill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55)); }
.drop-fill-base { filter: grayscale(1) brightness(.32) drop-shadow(0 4px 0 rgba(0, 0, 0, .55)); }
.drop-fill-lvl { clip-path: inset(100% 0 0 0); }
.drop-charge-pct {
  position: absolute; left: 50%; bottom: calc(100% + 16px); transform: translateX(-50%);
  white-space: nowrap; opacity: 0; transition: opacity .18s;
}
.drop-charge-pct b {
  display: inline-block; font-weight: 700; font-size: 12.5px; color: var(--bolt);
  background: rgba(255, 226, 39, .10); border: 1.5px solid rgba(255, 226, 39, .35);
  border-radius: 999px; padding: 2px 10px; box-shadow: 0 0 10px rgba(255, 226, 39, .25);
}
.dropzone.dragging .drop-a { opacity: 0; }
.dropzone.dragging .drop-fill { opacity: 1; }
.dropzone.dragging .drop-charge-pct { opacity: 1; }

/* charging ring border */
.drop-ring { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.drop-ring-rect {
  fill: none; stroke: var(--bolt); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 1960; stroke-dashoffset: 1960;
  filter: drop-shadow(0 0 6px rgba(255, 226, 39, .7));
  opacity: 0; transition: opacity .18s;
}
.dropzone.dragging .drop-ring-rect { opacity: 1; }

/* spark crawling along the border while charging */
.drop-spark {
  position: absolute; top: 0; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--bolt); box-shadow: 0 0 8px 2px var(--bolt);
  opacity: 0; z-index: 2; pointer-events: none;
}
.dropzone.dragging .drop-spark { animation: drop-crawl 1.1s linear infinite; }
@keyframes drop-crawl {
  0% { opacity: 0; offset-distance: 0%; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; offset-distance: 100%; }
}

.drop-title { font-size: 19px; font-weight: 700; margin-top: 8px; z-index: 3; }
.drop-title b { color: var(--bolt); }
.drop-sub { font-size: 13.5px; color: var(--dim); font-weight: 500; z-index: 3; }
.drop-hint { font-size: 12px; color: var(--dim); min-height: 16px; margin-top: 4px; z-index: 3; }
.dropzone.zone-disabled { opacity: .45; pointer-events: none; filter: saturate(.4); }

/* ───────── warn / limit panels ───────── */

.warn-card { border-color: var(--coral); box-shadow: 0 5px 0 #4b2626; }
.warn-title { font-size: 16px; font-weight: 700; color: var(--coral); margin-bottom: 6px; }
.warn-card p { font-size: 13.5px; color: var(--dim); line-height: 1.5; }

.limit-panel { display: flex; gap: 18px; align-items: center; border-color: var(--bolt); }
.limit-mascot { width: 108px; height: 108px; object-fit: contain; flex: none; animation: mascot-sway 3s ease-in-out infinite; }
@keyframes mascot-sway { 0%,100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.limit-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.limit-title span { color: var(--bolt); }
.limit-copy p { font-size: 13.5px; line-height: 1.55; color: var(--dim); }
.limit-copy b { color: var(--text); }

/* ───────── current render ───────── */

.now-card { border-color: var(--bolt); }
.now-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.now-name { font-size: 16.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-right { display: flex; align-items: center; gap: 8px; flex: none; }
.chip-fmt { font-size: 11px; padding: 3px 9px; background: var(--bolt); color: var(--ink); letter-spacing: .08em; }

.bar-wrap { display: flex; align-items: center; gap: 14px; }
.bar-track {
  flex: 1; height: 26px;
  background: var(--surf2);
  border: var(--card-border); border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 0 rgba(0,0,0,.4);
}
.bar-fill {
  height: 100%; width: 0%;
  border-radius: 999px;
  background:
    repeating-linear-gradient(-55deg, rgba(255,255,255,.22) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, var(--bolt), var(--bolt-deep));
  background-size: 56px 100%, 100% 100%;
  box-shadow: 0 0 14px rgba(255, 226, 39, .45);
  transition: width .45s cubic-bezier(.22, 1, .36, 1);
  animation: bar-march 1s linear infinite;
}
@keyframes bar-march { to { background-position: 56px 0, 0 0; } }
.bar-pct { font-size: 20px; font-weight: 700; color: var(--bolt); min-width: 62px; text-align: right; font-variant-numeric: tabular-nums; }

.now-stage { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--dim); font-weight: 500; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bolt); animation: pulse 1.1s ease-in-out infinite; flex: none; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.now-elapsed { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ───────── lists ───────── */

.list-block { display: flex; flex-direction: column; gap: 8px; }
.list-title { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--bolt); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
}
.count-badge-green { background: var(--green); }

.job-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surf);
  border: 2.5px solid var(--ink); border-radius: 14px;
  box-shadow: 0 3px 0 var(--ink);
  padding: 10px 14px;
  animation: row-in .28s cubic-bezier(.22, 1, .36, 1);
}
@keyframes row-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.job-badge {
  width: 26px; height: 26px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--ink); border-radius: 50%;
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.job-badge.b-wait { background: var(--surf2); color: var(--dim); }
.job-badge.b-done { background: var(--green); animation: badge-pop .4s cubic-bezier(.34, 1.56, .64, 1); }
.job-badge.b-fail { background: var(--coral); }
.job-badge.b-cancel { background: var(--surf2); color: var(--dim); }
@keyframes badge-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.job-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-meta { font-size: 11.5px; color: var(--dim); font-weight: 500; white-space: nowrap; }
.job-err { color: var(--coral); }
.job-actions { display: flex; gap: 8px; flex: none; }

/* ───────── footer ───────── */

.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px;
  background: var(--surf);
  border-top: var(--card-border);
}

.seg { display: inline-flex; border: 2.5px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 3px 0 var(--ink); }
.seg-btn {
  font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  padding: 8px 16px; border: none; cursor: pointer;
  background: var(--surf2); color: var(--dim);
  transition: background .12s, color .12s;
}
.seg-btn + .seg-btn { border-left: 2.5px solid var(--ink); }
.seg-btn.active { background: linear-gradient(180deg, var(--bolt), var(--bolt-deep)); color: var(--ink); }
.seg-btn:not(.active):hover { color: var(--text); }

.out-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 12.5px; font-weight: 600;
  color: var(--text); background: var(--surf2);
  border: 2.5px solid var(--ink); border-radius: 12px;
  padding: 8px 14px;
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer; max-width: 340px;
  transition: transform .12s, box-shadow .12s;
}
.out-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.out-ico { width: 16px; height: 16px; flex: none; }
#outLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.out-reset { font-style: normal; color: var(--dim); padding: 0 2px; }
.out-reset:hover { color: var(--coral); }

.foot-spacer { flex: 1; }

.start-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 9px 20px; }
.start-btn .start-ico { width: 15px; height: 15px; fill: var(--ink); }
.start-btn.btn-stop { background: linear-gradient(180deg, var(--coral), #e26f6f); }

.job-row-drag { cursor: grab; }
.job-row-drag:active { cursor: grabbing; }
.drag-grip {
  flex: none; color: var(--dim); font-size: 15px; font-weight: 700;
  letter-spacing: -2.5px; user-select: none; line-height: 1; padding-right: 2px;
}
.job-row.drag-src { opacity: .45; border-style: dashed; }

.btn-folder { display: inline-flex; align-items: center; gap: 6px; }
.btn-folder svg { width: 13px; height: 13px; }

.seg-mini { flex: none; border-width: 2px; box-shadow: 0 2px 0 var(--ink); }
.seg-mini .seg-btn { padding: 4px 11px; font-size: 11px; letter-spacing: .05em; }
.seg-mini .seg-btn + .seg-btn { border-left-width: 2px; }

.muffin-banner {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 12.5px; font-weight: 500;
  color: var(--dim); background: transparent;
  border: 2.5px dashed #3a3a4c; border-radius: 12px;
  padding: 6px 12px; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, transform .15s;
}
.muffin-banner img { width: 26px; height: 26px; object-fit: contain; }
.muffin-banner b { color: var(--bolt); }
.muffin-banner:hover { border-color: var(--bolt); color: var(--text); background: rgba(255, 226, 39, .05); transform: translateY(-2px); }

/* ───────── modals ───────── */

.modal-veil {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 6, 10, .72);
  backdrop-filter: blur(3px);
  animation: veil-in .18s ease;
}
@keyframes veil-in { from { opacity: 0; } }
.modal {
  position: relative;
  width: min(560px, calc(100vw - 48px));
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 24px 26px;
  animation: modal-in .24s cubic-bezier(.34, 1.4, .64, 1);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.modal-sm { width: min(440px, calc(100vw - 48px)); }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.modal-bolt { width: 52px; height: 52px; }
.modal-title { font-size: 21px; font-weight: 700; letter-spacing: .02em; }
.modal-ver { font-size: 12px; color: var(--dim); }
.modal p { font-size: 13.5px; line-height: 1.6; margin-bottom: 12px; }
.modal p.dim { font-size: 12.5px; }

.upgrade-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surf2);
  border: 2.5px solid var(--ink); border-radius: 14px;
  box-shadow: 0 3px 0 var(--ink);
  padding: 16px;
  margin: 6px 0 14px;
}
.mascot-btn-lg { width: 84px; height: 84px; flex: none; }
.upgrade-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--bolt); }
.upgrade-box p { font-size: 12.5px; color: var(--dim); }
.upgrade-box .btn { font-size: 13px; }
.modal-foot { font-size: 11.5px; color: var(--dim); text-align: center; }

/* ───────── settings modal ───────── */

.modal-sub { font-size: 12px; color: var(--dim); margin: 2px 0 16px; }
.set-section { margin-bottom: 18px; }
.set-section-last { margin-bottom: 4px; }
.set-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 9px; }
.set-copy { font-size: 12.5px; color: var(--dim); line-height: 1.55; margin-top: 9px; }
.set-copy b { color: var(--text); }
.seg-wide .seg-btn { padding: 9px 18px; font-size: 13px; }
.path-row { display: flex; align-items: center; gap: 10px; }
.path-box {
  flex: 1; font-size: 12px; color: var(--dim);
  background: var(--surf2); border: 2.5px solid var(--ink); border-radius: 10px;
  padding: 9px 12px;
  box-shadow: inset 0 2px 0 rgba(0,0,0,.35);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mp3-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(99, 203, 224, .07);
  border: 2.5px solid var(--ink); border-radius: 12px;
  box-shadow: 0 3px 0 var(--ink);
  padding: 12px 14px;
}
.mp3-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.mp3-note p { font-size: 12.5px; color: var(--dim); line-height: 1.5; margin: 0; }
.mp3-note b { color: var(--blue); }

/* ───────── render spinner ───────── */

.render-spin {
  position: fixed; right: 18px; bottom: 76px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surf2);
  border: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink), 0 0 18px rgba(99, 203, 224, .35);
  display: flex; align-items: center; justify-content: center;
  animation: spin-pop .3s cubic-bezier(.34, 1.56, .64, 1);
}
.render-spin svg { width: 32px; height: 32px; animation: spin-turn 1.1s linear infinite; }
.render-spin .ring-track { fill: none; stroke: rgba(99, 203, 224, .18); stroke-width: 3.4; }
.render-spin .ring-arc {
  fill: none; stroke: var(--blue); stroke-width: 3.4; stroke-linecap: round;
  stroke-dasharray: 42 58;
  filter: drop-shadow(0 0 4px rgba(99, 203, 224, .8));
}
.render-spin::after {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid rgba(99, 203, 224, .28);
  animation: spin-halo 1.6s ease-out infinite;
}
@keyframes spin-pop { from { transform: scale(0); } }
@keyframes spin-turn { to { transform: rotate(360deg); } }
@keyframes spin-halo {
  0% { transform: scale(.82); opacity: 0; }
  45% { opacity: 1; }
  100% { transform: scale(1.12); opacity: 0; }
}

/* ───────── extras ───────── */

.fl-note { font-size: 11.5px; color: var(--dim); text-align: center; }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; }

.toast {
  position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%);
  z-index: 70;
  background: var(--surf2); color: var(--text);
  border: 2.5px solid var(--ink); border-radius: 12px;
  box-shadow: 0 4px 0 var(--ink);
  padding: 10px 18px;
  font-size: 13px; font-weight: 600;
  animation: toast-in .25s cubic-bezier(.34, 1.56, .64, 1);
  max-width: min(520px, calc(100vw - 40px));
  text-align: center;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.toast.toast-err { border-color: var(--coral); color: var(--coral); }

@media (max-width: 700px) {
  .limit-panel { flex-direction: column; text-align: center; }
  .muffin-banner span { display: none; }
  .brand-by { display: none; }
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surf2); border: 3px solid var(--bg); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #2a2a38; }
