:root {
  --bg: #170a2b;
  --bg2: #26104a;
  --card: #2b1553;
  --card2: #3a1d6b;
  --ink: #ffffff;
  --muted: #c9b8ec;
  --line: rgba(255, 255, 255, 0.14);
  --gold: #ffd23f;
  --pink: #ff3d7f;
  --green: #2ee59d;
  --cyan: #4cc9f0;
  --red: #ff4d6d;
  --r: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 61, 127, 0.22) 0 2px, transparent 3px) 0 0 / 46px 46px,
    radial-gradient(circle at 70% 60%, rgba(255, 210, 63, 0.18) 0 2px, transparent 3px) 0 0 / 58px 58px,
    radial-gradient(ellipse at top, #3b1670 0%, var(--bg) 60%);
  background-color: var(--bg);
  color: var(--ink);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
}
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
textarea { font: 13px/1.35 ui-monospace, Consolas, monospace; width: 100%; border-radius: 12px; border: 2px solid var(--line); background: #10061f; color: #fff; padding: 10px; resize: vertical; -webkit-user-select: text; user-select: text; }
h2 { margin: 0; font-size: 22px; font-weight: 900; }
h3 { margin: 22px 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hidden { display: none !important; }

/* Any screen size or shape: menus are a readable column (up to 520 px, full width below that); the song uses the
   whole window (the lanes are sized by the canvas code). "inset" is spelled out for older browsers. */
#app { position: relative; max-width: 520px; height: 100%; height: 100dvh; margin: 0 auto; overflow: hidden; }
body[data-screen="game"] #app { max-width: none; }
@media (min-width: 560px) {
  #app { box-shadow: 0 0 0 1px var(--line), 0 20px 80px rgba(0, 0, 0, .5); background: rgba(23, 10, 43, .55); }
  body[data-screen="game"] #app { box-shadow: none; }
}
.screen {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: none; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
}
.screen.active { display: block; }

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 52px; padding: 12px 16px; margin: 10px 0;
  border-radius: var(--r); border: 2px solid var(--line); background: var(--card);
  font-weight: 800; font-size: 16px; text-align: center; overflow-wrap: anywhere; word-break: break-word; min-width: 0;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35);
  transition: transform .06s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.btn:disabled { opacity: .5; }
.btn.primary { background: linear-gradient(135deg, var(--gold), #ff9a3d); color: #2a1100; border-color: transparent; }
.btn.whats { background: #1faa59; border-color: transparent; }
.btn.danger { background: transparent; border-color: rgba(255, 77, 109, .5); color: var(--red); margin-top: 26px; }
.btn.reward { background: linear-gradient(135deg, #9b5de5, var(--pink)); border-color: transparent; }
.btn.small { min-height: 44px; font-size: 14px; padding: 8px 10px; }
.btn.big { justify-content: flex-start; text-align: left; min-height: 84px; padding: 14px 18px; border: 0; font-size: 22px; }
.btn.big b { display: block; font-size: 24px; font-weight: 900; }
.btn.big small { display: block; font-size: 14px; font-weight: 600; opacity: .92; }
.btn.big .ico { font-size: 38px; width: 52px; text-align: center; }
.btn.carnaval { background: linear-gradient(135deg, var(--pink), #ff9a3d); }
.btn.torcida { background: linear-gradient(135deg, #12a86b, #1f6fff); }
.link { background: none; border: 0; color: var(--gold); font-weight: 800; text-decoration: underline; padding: 0 4px; }
.foot .link { display: inline-block; min-height: 32px; padding: 6px 6px; line-height: 20px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.row3 .btn { flex-direction: column; gap: 2px; font-size: 12.5px; min-height: 64px; margin: 4px 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- home ---------- */
.home-hero { text-align: center; padding: 14px 0 6px; }
.logo {
  margin: 4px 0 0; font-size: 44px; font-size: clamp(26px, 12vw, 58px); font-weight: 900; letter-spacing: .03em; line-height: 1; white-space: nowrap;
  background: linear-gradient(90deg, var(--gold), var(--pink) 60%, #b388ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35));
}
.tag { margin: 8px 0 14px; color: var(--muted); font-weight: 600; }
.logo-drums { display: flex; justify-content: center; gap: 10px; height: 34px; align-items: flex-end; }
.logo-drums i { display: block; width: 26px; height: 26px; border-radius: 50%; border: 4px solid #fff; animation: bounce 0.9s infinite ease-in-out; }
.logo-drums i:nth-child(1) { background: #ff5a36; width: 34px; height: 34px; }
.logo-drums i:nth-child(2) { background: #ffd23f; animation-delay: .22s; }
.logo-drums i:nth-child(3) { background: #3ddc97; animation-delay: .45s; }
.logo-drums i:nth-child(4) { background: #4cc9f0; width: 20px; height: 20px; animation-delay: .67s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px); } }
.promise { margin-top: 14px; padding: 12px 16px; border-radius: var(--r); border: 2px dashed rgba(255, 210, 63, .55); background: rgba(255, 210, 63, .07); }
.promise h3 { margin: 0 0 6px; color: var(--gold); }
.promise ul { margin: 0; padding-left: 20px; font-size: 14px; }
.promise li { margin: 3px 0; }
.foot { color: var(--muted); font-size: 12.5px; text-align: center; margin: 14px 0 0; }
.tip { background: rgba(76, 201, 240, .12); border: 1px solid rgba(76, 201, 240, .4); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; margin: 8px 0; }
.desk-only { display: none; }
@media (hover: hover) and (pointer: fine) { .desk-only { display: block; } }

/* ---------- headers ---------- */
.top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.back { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); font-size: 28px; line-height: 1; padding: 0 0 4px; flex: none; }
.sub { color: var(--muted); font-size: 14px; margin: 6px 0 12px; }

/* ---------- teams ---------- */
.flag { display: inline-block; width: 34px; height: 24px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, .7); flex: none; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border-radius: var(--r); border: 2px solid var(--line); background: var(--card); text-align: left; min-height: 104px; }
.team-card .flag { width: 100%; height: 34px; }
.team-card b { font-size: 15px; line-height: 1.2; }
.team-card small { color: var(--muted); font-size: 12px; }
.team-card.sel { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }
.team-chip { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: rgba(0, 0, 0, .2); text-align: left; }
.team-chip b { flex: 1; }
.team-chip small { color: var(--gold); font-weight: 700; }

/* ---------- segmented ---------- */
.seg { display: flex; gap: 4px; padding: 4px; margin: 12px 0; border-radius: 14px; background: rgba(0, 0, 0, .28); }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: transparent; font-weight: 800; color: var(--muted); }
.seg button.on { background: var(--card2); color: #fff; box-shadow: 0 0 0 2px var(--gold) inset; }

/* ---------- songs ---------- */
.song-list { display: flex; flex-direction: column; gap: 10px; }
.song-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: var(--r); border: 2px solid var(--line); background: var(--card); text-align: left; box-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.song-card:active { transform: translateY(2px); }
.song-card.tut { background: linear-gradient(135deg, #2b1553, #1d3a5c); }
.sc-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sc-main b { font-size: 19px; font-weight: 900; }
.sc-main small { color: var(--muted); font-size: 13px; }
.sc-main .meta { opacity: .8; font-size: 12px; }
.sc-main .best { color: var(--gold); font-weight: 700; }
.sc-play { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #ff9a3d); color: #2a1100; font-size: 20px; padding-left: 3px; }

/* ---------- game ---------- */
#s-game { padding: 0; overflow: hidden; touch-action: none; }
#cv { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#btn-pause { position: absolute; top: 8px; right: 8px; width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--line); background: rgba(0, 0, 0, .35); z-index: 3; font-size: 0; }
#btn-pause::before, #btn-pause::after { content: ""; position: absolute; top: 13px; width: 5px; height: 16px; border-radius: 2px; background: #fff; }
#btn-pause::before { left: 14px; } #btn-pause::after { right: 14px; }
.banner {
  position: absolute; left: 0; right: 0; top: 30%; text-align: center; z-index: 2; pointer-events: none;
  font-size: 34px; font-weight: 900; letter-spacing: .02em; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .5), 0 0 22px rgba(255, 61, 127, .6);
  opacity: 0; transform: scale(.8);
}
.banner.show { animation: pop 1.7s ease-out forwards; }
.banner.gold { color: var(--gold); text-shadow: 0 3px 0 rgba(0, 0, 0, .55), 0 0 26px rgba(255, 210, 63, .7); }
@keyframes pop {
  0% { opacity: 0; transform: scale(.6); }
  12% { opacity: 1; transform: scale(1.08); }
  22% { transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.04); }
}
.hint {
  position: absolute; left: 12px; right: 12px; top: 74px; z-index: 2; pointer-events: none;
  padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .55); font-size: 14px; font-weight: 700; text-align: center;
  opacity: 0; transition: opacity .25s;
}
.hint.show { opacity: 1; }
.loading { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-content: center; text-align: center; background: rgba(23, 10, 43, .92); z-index: 4; }
.spin { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .2); border-top-color: var(--gold); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- results ---------- */
.res-head { text-align: center; padding-top: 8px; }
.res-song { color: var(--muted); font-weight: 700; margin: 0; }
.res-nota-label { margin: 8px 0 0; font-weight: 900; letter-spacing: .2em; color: var(--muted); }
.res-nota { margin: 0; font-size: 104px; line-height: 1; font-weight: 900; color: var(--gold); text-shadow: 0 5px 0 rgba(0, 0, 0, .4); }
.res-verdict { font-size: 19px; font-weight: 800; margin: 6px 0; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.badge { padding: 4px 10px; border-radius: 99px; background: var(--card2); font-size: 13px; font-weight: 800; }
.badge.gold { background: var(--gold); color: #2a1100; }
.badge.pink { background: var(--pink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; }
.stats div { background: var(--card); border-radius: 14px; padding: 10px 6px; text-align: center; }
.stats b { display: block; font-size: 21px; font-weight: 900; }
.stats span { font-size: 12px; color: var(--muted); }
.counts { text-align: center; font-size: 13px; color: var(--muted); margin: 6px 0; }
.team-gain { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; margin: 8px 0; border-radius: 14px; border: 2px solid rgba(255, 210, 63, .45); background: rgba(255, 210, 63, .1); text-align: left; font-weight: 800; }
.team-gain { flex-wrap: wrap; }
.team-gain span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.team-gain small { color: var(--gold); white-space: nowrap; margin-left: auto; }
.share-box { display: grid; grid-template-columns: 38% 1fr; gap: 12px; align-items: center; margin: 10px 0; }
.share-box img { width: 100%; aspect-ratio: 1080 / 1350; border-radius: 12px; background: var(--card); border: 2px solid var(--line); }
.share-btns .btn { margin: 6px 0; min-height: 44px; font-size: 15px; }

/* ---------- ranking ---------- */
.rank-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card); }
.rank-list li.me { box-shadow: 0 0 0 2px var(--gold) inset; background: var(--card2); }
.rank-list li.none { justify-content: center; color: var(--muted); font-size: 14px; background: transparent; border: 1px dashed var(--line); }
.rank-list .pos { width: 26px; font-weight: 900; font-size: 18px; text-align: center; color: var(--gold); }
.rank-list .nm { flex: 1; min-width: 0; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.rank-list li > b { flex: none; }
.rank-list .nm small { display: block; color: var(--gold); font-weight: 700; font-size: 12px; }
.rank-list b small { color: var(--muted); font-weight: 600; }

/* ---------- calibration ---------- */
.calib-pad { width: 210px; height: 210px; width: min(210px, 70vw, 42vh); height: min(210px, 70vw, 42vh); min-width: 120px; min-height: 120px; margin: 14px auto; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fff 0 34%, #ffd23f 35% 60%, #ff9a3d 61%); border: 6px solid #fff; color: #2a1100; font-weight: 900; font-size: 22px; touch-action: none; box-shadow: 0 8px 0 rgba(0, 0, 0, .35); }
.calib-pad.beat { animation: beat .25s ease-out; }
.calib-pad.tap { box-shadow: 0 0 0 10px rgba(76, 201, 240, .45), 0 8px 0 rgba(0, 0, 0, .35); }
@keyframes beat { 0% { transform: scale(1.09); } 100% { transform: scale(1); } }
.calib-status { text-align: center; font-weight: 800; min-height: 1.4em; }
.calib-manual { display: flex; align-items: center; gap: 12px; }
.calib-manual .btn { width: 90px; max-width: 30%; margin: 0; }
.calib-manual span { flex: 1; text-align: center; font-weight: 900; font-size: 20px; }

/* ---------- skins ---------- */
.skin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.skin { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); }
.skin.on { border-color: var(--gold); }
.skin.locked { opacity: .65; }
.skin small { color: var(--muted); font-size: 11.5px; }
.sk-prev { display: flex; gap: 6px; }
.sk-prev i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; background: #ff5a36; }
.skin.classica i:nth-child(2) { background: #ffd23f; } .skin.classica i:nth-child(3) { background: #3ddc97; }
.skin.confete i:nth-child(1) { background: #ff3d7f; } .skin.confete i:nth-child(2) { background: #4cc9f0; } .skin.confete i:nth-child(3) { background: #9b5de5; }
.skin.purpurina i { background: #ffd23f; box-shadow: 0 0 0 2px #f6c1ff; } .skin.purpurina i:nth-child(2) { background: #f6c1ff; }
.skin.neon i { background: transparent; border-color: #4cc9f0; box-shadow: 0 0 6px #4cc9f0; } .skin.neon i:nth-child(2) { border-color: #ff3d7f; box-shadow: 0 0 6px #ff3d7f; }
.skin.arcoiris i:nth-child(1) { background: #ff3d7f; } .skin.arcoiris i:nth-child(2) { background: #ffd23f; } .skin.arcoiris i:nth-child(3) { background: #3ddc97; }

/* ---------- home row, sound button, rotate hint, notch safe areas ---------- */
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; }
.row4 .btn { flex-direction: column; gap: 2px; font-size: 12px; min-height: 64px; margin: 4px 0; padding: 6px 4px; line-height: 1.15; }
.icon-btn { margin-left: auto; width: 44px; height: 44px; flex: none; border-radius: 12px; border: 2px solid var(--line); background: var(--card); font-size: 20px; display: grid; place-items: center; }
/* speaker icon drawn as SVG (emoji fonts are missing on some systems) */
.icon-btn svg { width: 24px; height: 24px; display: block; }
.icon-btn .ico-off, .icon-btn.off .ico-on { display: none; }
.icon-btn.off .ico-off { display: block; }
/* systems without a colour emoji font: the decorative emoji next to labels are hidden instead of showing boxes */
body.no-emoji .emo { display: none; }
/* keyboard hints: on devices with a mouse, and on any device once a key was pressed (tablet + keyboard, TV…) */
body.kbd .desk-only { display: block; }
.screen { padding-top: max(16px, env(safe-area-inset-top)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
#s-game { padding: 0; }
#btn-pause { top: calc(8px + env(safe-area-inset-top)); right: calc(8px + env(safe-area-inset-right)); }

/* ---------- text pages (privacy, terms, 404) ---------- */
body.doc-page { -webkit-user-select: text; user-select: text; }
.doc { max-width: 680px; margin: 0 auto; padding: 20px 16px 40px; line-height: 1.55; }
.doc h1 { font-size: 26px; margin: 8px 0 4px; }
.doc h2 { font-size: 18px; margin: 22px 0 6px; color: var(--gold); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc td, .doc th { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; vertical-align: top; }
.doc a { color: var(--cyan); }
.draft { background: rgba(255, 210, 63, .12); border: 1px dashed var(--gold); border-radius: 12px; padding: 8px 12px; font-size: 13px; }
.doc-404 { max-width: 420px; margin: 0 auto; padding: 60px 16px; text-align: center; }
.doc-404 .big-404 { font-size: 72px; margin: 0; }
.doc-404 .btn { display: inline-flex; width: auto; padding: 12px 24px; text-decoration: none; }

/* ---------- options ---------- */
.opts { display: flex; flex-direction: column; gap: 4px; background: var(--card); border-radius: var(--r); padding: 6px 14px; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font-weight: 700; font-size: 15px; }
.opt-row + .opt-row { border-top: 1px solid var(--line); }
.opt-row input[type=range] { width: 46%; accent-color: var(--gold); height: 32px; }
.opt-row select { font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 2px solid var(--line); background: #10061f; color: #fff; max-width: 52%; }
.sw { appearance: none; -webkit-appearance: none; flex: none; width: 52px; height: 30px; border-radius: 99px; background: rgba(255, 255, 255, .2); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.sw:checked { background: var(--green); }
.sw:checked::after { transform: translateX(22px); }
.start-here { display: inline-block; align-self: flex-start; font-style: normal; font-size: 11.5px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--gold); color: #2a1100; margin-bottom: 2px; }
.small-print { font-size: 12.5px; color: var(--muted); margin: 6px 0; }
.intro-steps { text-align: left; padding-left: 22px; margin: 8px 0 14px; }
.intro-steps li { margin: 8px 0; }
.small-print.health { text-align: left; border-left: 3px solid var(--gold); padding-left: 10px; margin: 0 0 12px; }

/* keyboard focus is always visible */
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* reduced motion (phone setting or the option) */
body.rm .logo-drums i, body.rm .calib-pad.beat { animation: none; }
body.rm .banner.show { animation: fade 1.7s linear forwards; }
body.rm .toast, body.rm .btn, body.rm .sw, body.rm .sw::after { transition: none; }
@keyframes fade { 0%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }

/* ---------- big screens (TVs, 4K monitors at 100 %, large tablets): everything grows with the screen ----------
   The menus, dialogs and the buttons over the song are zoomed; the song canvas scales itself (game.js). Browsers
   without CSS zoom just show the normal size. */
@media (min-height: 1100px) and (min-width: 800px) {
  #app { max-width: 700px; }
  .screen:not(#s-game), .panel, .toast, #btn-pause, .banner, .hint, .loading > * { zoom: 1.35; }
}
@media (min-height: 1500px) and (min-width: 1100px) {
  #app { max-width: 940px; }
  .screen:not(#s-game), .panel, .toast, #btn-pause, .banner, .hint, .loading > * { zoom: 1.8; }
}
@media (min-height: 1900px) and (min-width: 1400px) {
  #app { max-width: 1150px; }
  .screen:not(#s-game), .panel, .toast, #btn-pause, .banner, .hint, .loading > * { zoom: 2.2; }
}

/* ---------- overlays ---------- */
/* overlays scroll when the screen is shorter than the panel (landscape phones, tiny screens, big text) */
.overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 20; display: flex; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: rgba(10, 4, 20, .82); }
.panel { margin: auto; width: 100%; max-width: 360px; padding: 20px; border-radius: 20px; background: var(--bg2); border: 2px solid var(--line); text-align: center; }
.panel h2 { margin-bottom: 8px; }
.ad-label { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 6px; background: #fff; color: #222; font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.ad-art { font-size: 64px; padding: 18px; margin: 4px 0; border-radius: 14px; background: repeating-linear-gradient(45deg, #3a1d6b 0 14px, #2b1553 14px 28px); }
.ad-wait { color: var(--muted); font-weight: 700; min-height: 1.4em; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); z-index: 30; max-width: 90%; padding: 10px 16px; border-radius: 12px; background: #fff; color: #1b0b33; font-weight: 800; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
