/* AI Ate My Mouse — theme-free game canvas. Everything is scoped to body.aamm-app. */
:root {
  --bg: #0c0e1a; --surface: #15192d; --surface-2: #1e2440; --border: #2e3866;
  --text: #eef2ff; --muted: #9aa7d6; --primary: #00e5a8; --primary-ink: #041d15;
  --accent: #ff4fd8; --warning: #ffb800; --danger: #ff4769; --paper: #f3ead3; --paper-ink: #1b1710;
  --radius: 10px;
  color-scheme: dark;
}
html { -webkit-text-size-adjust: 100%; }
body.aamm-app { margin: 0; min-height: 100vh; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.45; color: var(--text); background: radial-gradient(circle at top right, #1d1742, var(--bg) 55%) fixed; }
.aamm-app *, .aamm-app *::before, .aamm-app *::after { box-sizing: border-box; }
.aamm-app a { color: var(--primary); }
.aamm-app h1, .aamm-app h2, .aamm-app h3, .aamm-app h4 { margin: 0 0 .45rem; line-height: 1.2; font-family: inherit; color: inherit; }
.aamm-app h2 { font-size: 1.3rem; } .aamm-app h3 { font-size: 1.08rem; } .aamm-app h4 { font-size: .95rem; }
.aamm-app p { margin: .35rem 0; }
.aamm-app code, .aamm-app pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.aamm-app.busy { cursor: progress; }
.aamm-app.busy .btn { pointer-events: none; opacity: .75; }
.crt-overlay { pointer-events: none; position: fixed; inset: 0; z-index: 50; opacity: .35; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.14) 3px 4px); }
@media (prefers-reduced-motion: reduce) { .crt-overlay { display: none; } }

/* Header */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem 1.1rem; background: rgba(15,19,38,.95); border-bottom: 2px solid var(--border); }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo { font-size: 1.9rem; }
.brand h1 { font-size: 1.25rem; letter-spacing: .08em; color: var(--primary); text-shadow: 0 0 12px rgba(0,229,168,.35); margin: 0; }
.subtitle { margin: 0; font-size: .76rem; color: var(--muted); }
.status-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.pill { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .28rem .65rem; display: flex; flex-direction: column; min-width: 78px; }
.pill.bad strong { color: var(--danger); }
.pill-label { font-size: .62rem; letter-spacing: .06em; color: var(--muted); }
.pill strong { font-size: .9rem; }
.account { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.who { color: var(--muted); font-size: .85rem; margin-right: .2rem; }

/* Transport */
.transport-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; padding: .5rem 1.1rem; background: #101427; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.transport-info { display: flex; align-items: center; gap: .55rem; min-width: 260px; }
.now-playing-title { font-weight: 700; font-size: .9rem; color: var(--primary); }
.now-playing-meta { font-size: .73rem; color: var(--muted); }
.lyric-ticker { flex: 1 1 260px; background: rgba(255,79,216,.09); border: 1px solid rgba(255,79,216,.3); border-radius: 999px; padding: .3rem .9rem; font-size: .84rem; color: #ffd3f6; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-progress { flex: 0 0 140px; height: 6px; background: #1b2244; border-radius: 999px; overflow: hidden; }
.np-progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); }
#scope { background: #070913; border: 1px solid var(--border); border-radius: 6px; }

/* Tabs */
.tabs-shell { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 1.1rem; }
.tablist { display: flex; overflow-x: auto; gap: .2rem; scrollbar-width: thin; }
.tablist [role="tab"] { position: relative; flex: none; background: transparent; color: var(--muted); border: 0; padding: .75rem .9rem; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.tablist [role="tab"]:hover { color: var(--text); }
.tablist [role="tab"][aria-selected="true"] { color: var(--primary); }
.tablist [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; inset: auto 0 0; border-block-end: 3px solid var(--primary); }

/* Layout */
.main-container { max-width: 1480px; margin: 0 auto; padding: 1.1rem; }
.grid-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 1rem; align-items: start; }
.grid-hq { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 1rem; align-items: start; }
.grid-studio { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .grid-hq, .grid-studio { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.banner { margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.event-banner { border-color: var(--warning); background: rgba(255,184,0,.08); }
.hero { border-width: 2px; }
.hero.won { border-color: var(--primary); } .hero.bankrupt { border-color: var(--danger); }
.muted { color: var(--muted); font-size: .84rem; }
.loading { padding: 3rem; text-align: center; color: var(--muted); }
.notice { background: rgba(0,229,168,.08); border: 1px solid rgba(0,229,168,.35); border-radius: 8px; padding: .6rem .8rem; }

/* Buttons & inputs */
.aamm-app .btn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; border: 1px solid transparent; border-radius: 7px; padding: .48rem .9rem; font: inherit; font-weight: 700; font-size: .84rem; cursor: pointer; text-decoration: none; line-height: 1.2; }
.aamm-app .btn:hover { filter: brightness(1.1); }
.aamm-app .btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.aamm-app .btn-sm { padding: .32rem .6rem; font-size: .78rem; }
.aamm-app .btn-xs { padding: .2rem .45rem; font-size: .74rem; }
/* Prefixed with .aamm-app so they beat `.aamm-app a { color }` on link-buttons
   (Sign in / Create account were green-on-pink and green-on-green). */
.aamm-app .btn-primary, .aamm-app a.btn-primary { background: var(--primary); color: var(--primary-ink); }
.aamm-app .btn-secondary, .aamm-app a.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.aamm-app .btn-accent, .aamm-app a.btn-accent { background: var(--accent); color: #1c0318; }
.aamm-app .btn-warning, .aamm-app a.btn-warning { background: var(--warning); color: #1f1400; }
.aamm-app .btn-danger, .aamm-app a.btn-danger { background: #d42a4c; color: #fff; }
.aamm-app .btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.aamm-app input, .aamm-app select, .aamm-app textarea { width: 100%; background: #0b0e1c; color: var(--text); border: 1px solid var(--border); border-radius: 7px; padding: .45rem .6rem; font: inherit; font-size: .84rem; }
.aamm-app input[type="checkbox"] { width: auto; }
.field { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; color: var(--muted); }
.inline-form, .inline-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.inline-form input, .inline-form select { flex: 1 1 140px; width: auto; }
.inline-form.big input { font-size: 1rem; padding: .6rem .8rem; }
.inline-form.big .btn { font-size: .95rem; padding: .6rem 1rem; }
.nowrap { white-space: nowrap; }

/* HQ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; margin: .5rem 0; }
.stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .5rem .6rem; }
.stat span { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat strong { font-size: 1.05rem; color: var(--primary); }
.stat.bad strong { color: var(--danger); }
.xp-row { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; color: var(--muted); }
.meter { height: 7px; background: #0b0e1c; border-radius: 999px; overflow: hidden; border: 1px solid #222a52; }
.meter > div { height: 100%; background: var(--primary); transition: width .4s; }
.meter.xp > div { background: linear-gradient(90deg, var(--warning), var(--accent)); }
.meter.bad > div { background: var(--danger); } .meter.warn > div { background: var(--warning); } .meter.good > div { background: var(--primary); }
.meter-label { display: block; font-size: .72rem; color: var(--muted); margin-top: .25rem; }
.flags { margin: .6rem 0 0; padding-left: 1.1rem; font-size: .82rem; color: #ffe394; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.member, .pool-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .6rem; display: flex; flex-direction: column; gap: .25rem; }
.member-top { display: flex; align-items: center; gap: .5rem; justify-content: space-between; }
.member-top > div { flex: 1; }
.avatar { font-size: 1.6rem; width: 2.2rem; text-align: center; }
.mini-stats { font-size: .72rem; color: #c5d0f5; }
.persona { font-size: .76rem; color: var(--muted); margin: .2rem 0; }
.pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.pool-card.hired { opacity: .6; }
.pool-foot { display: flex; align-items: center; gap: .4rem; justify-content: space-between; margin-top: auto; }
.badge { background: rgba(0,229,168,.14); color: var(--primary); border: 1px solid rgba(0,229,168,.4); padding: .12rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.badge-lock { background: rgba(255,184,0,.16); color: var(--warning); border: 1px solid rgba(255,184,0,.4); padding: .12rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .6rem; }
.action-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .65rem; display: flex; flex-direction: column; gap: .4rem; }
.action-card h4 { margin: 0; }
.action-card p { margin: 0; font-size: .76rem; color: var(--muted); }
.action-card .btn { margin-top: auto; }
.diary { margin: 0; padding-left: 1.2rem; font-size: .8rem; max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: .3rem; }
.tips { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; }

/* Newspaper */
.tabloid-paper, .news-modal-paper { background: var(--paper); color: var(--paper-ink); border: 3px solid #2b2419; border-radius: 6px; padding: .9rem 1.1rem; box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.tabloid-masthead { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 900; text-align: center; letter-spacing: .06em; border-top: 3px solid #1b1710; border-bottom: 3px solid #1b1710; padding: .15rem 0; flex: 1; }
.tabloid-subbar { display: flex; justify-content: space-between; font-size: .68rem; font-weight: 700; border-bottom: 1px solid #3a3122; padding: .2rem 0; margin-bottom: .5rem; }
.tabloid-headline { font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; line-height: 1.15; margin: .4rem 0; }
.tabloid-subhead { font-weight: 700; font-size: .88rem; }
.tabloid-story { font-size: .85rem; }
.news-scene-svg { width: 100%; height: auto; display: block; border-radius: 4px; }
.news-caption { font-size: .75rem; font-style: italic; color: #3a3122; margin-top: .25rem; }
.news-notes { margin: .5rem 0; padding-left: 1.1rem; font-size: .84rem; }
.delta-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.delta-pill { padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; border: 1px solid #1b1710; }
.delta-pill.pos { background: #b8f5dc; color: #053823; } .delta-pill.neg { background: #ffd0d9; color: #540615; }
@keyframes actorBounce { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes pulseSvg { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes vuDance { 0%, 100% { transform: scaleY(.6); } 50% { transform: scaleY(1.15); } }
.svg-pulse { animation: pulseSvg 1.1s ease-in-out infinite; } .svg-float { animation: actorBounce 1.2s ease-in-out infinite alternate; }
.svg-vu { transform-origin: bottom; animation: vuDance .55s ease-in-out infinite alternate; } .svg-flash { animation: pulseSvg .75s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .svg-pulse, .svg-float, .svg-vu, .svg-flash, .svg-actor { animation: none !important; } }

/* Dialogs */
.aamm-app dialog { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; width: min(94vw, 640px); padding: 0; box-shadow: 0 24px 64px rgba(0,0,0,.75); }
.aamm-app dialog:modal { overscroll-behavior: contain; max-height: 92vh; overflow-y: auto; }
.aamm-app dialog::backdrop { background: rgba(5,7,15,.75); backdrop-filter: blur(3px); overflow: hidden; overscroll-behavior: contain; }
.dialog-inner { padding: 1.1rem 1.25rem; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.dialog-actions { display: flex; justify-content: flex-end; margin-top: .8rem; }
.event-card { text-align: center; background: linear-gradient(160deg, #1e2440, #241436); }
.event-icon { font-size: 3rem; }
.event-choices { display: flex; flex-direction: column; gap: .5rem; margin-top: .8rem; }
.aamm-app .btn.choice { flex-direction: column; align-items: flex-start; text-align: left; padding: .7rem .9rem; }
.choice span { font-weight: 400; font-size: .78rem; opacity: .85; }

/* Studio */
.dna-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.dna-pill { background: rgba(0,229,168,.1); border: 1px solid rgba(0,229,168,.32); color: #c8fff0; border-radius: 999px; padding: .18rem .6rem; font-size: .74rem; font-weight: 600; }
.dna-pill.tier { background: rgba(255,184,0,.14); border-color: rgba(255,184,0,.45); color: #ffe394; }
.dna-pill.rig { background: rgba(255,79,216,.12); border-color: rgba(255,79,216,.35); color: #ffd3f6; }
.timeline { display: flex; gap: 2px; margin: .7rem 0 .5rem; min-height: 28px; }
.timeline .seg { border: 0; border-radius: 4px; font: inherit; font-size: .68rem; font-weight: 700; color: #0c0e1a; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: .3rem .2rem; opacity: .7; }
.timeline .seg.on { opacity: 1; outline: 2px solid #fff; }
.seg-intro, .seg-outro { background: #9aa7d6; } .seg-verse { background: #38bdf8; } .seg-prechorus { background: #a78bfa; } .seg-chorus { background: var(--primary); } .seg-bridge { background: var(--warning); } .seg-solo { background: var(--accent); } .seg-breakdown { background: #ff8a65; }
.roll { width: 100%; height: 220px; background: #090c18; border: 1px solid var(--border); border-radius: 8px; display: block; }
.mute.off { opacity: .4; text-decoration: line-through; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .3rem; max-height: 320px; overflow-y: auto; padding: .4rem; background: #0b0e1c; border: 1px solid var(--border); border-radius: 7px; }
.checkbox-item { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--text); }

/* Tables */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.data-table th, .data-table td { padding: .5rem .45rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.data-table .pos { font-weight: 800; color: var(--warning); }
.leaderboard { padding-left: 1.3rem; display: flex; flex-direction: column; gap: .3rem; font-size: .84rem; }
.rival { border-bottom: 1px solid var(--border); padding: .5rem 0; }

/* Forum / DMs */
.threads { display: flex; flex-direction: column; gap: .6rem; max-height: 900px; overflow-y: auto; }
.thread, .room { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .65rem; display: flex; flex-direction: column; gap: .35rem; }
.room { margin-bottom: .7rem; }
.replies { border-left: 2px solid var(--border); padding-left: .7rem; display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; }
.chat { max-height: 240px; overflow-y: auto; background: #0b0e1c; border: 1px solid var(--border); border-radius: 6px; padding: .5rem; display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; }
.msg.human { color: #bfe3ff; } .msg.ai { color: #bdfce8; } .msg.system { color: var(--warning); font-style: italic; }

/* Store */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.store-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .7rem; display: flex; flex-direction: column; gap: .4rem; }
.split-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: #0b0e1c; }
.seg-ai { background: var(--primary); } .seg-owner { background: #38bdf8; } .seg-prod { background: var(--accent); } .seg-mgr { background: var(--warning); }
.code-box { background: #080a14; border: 1px solid var(--border); border-radius: 8px; padding: .7rem; overflow-x: auto; font-size: .74rem; color: #bdfce8; white-space: pre-wrap; }
.key { word-break: break-all; color: var(--warning); }

/* Toast */
.toast { position: fixed; bottom: 1.1rem; right: 1.1rem; z-index: 100; background: #141a33; border: 1px solid var(--primary); padding: .65rem 1rem; border-radius: 8px; max-width: 420px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.toast.error { border-color: var(--danger); background: #2c101b; }
.aamm-app [hidden] { display: none !important; }

/* ---------- v2.1: portraits, pool filters, calendar, celebrations, accounts ---------- */
.portrait { flex: none; display: inline-block; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 2px var(--border); background: var(--surface-2); line-height: 0; }
.portrait svg { display: block; width: 100%; height: 100%; }
.member-top .portrait + div { min-width: 0; }
.pool-shell { margin-top: 1rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .55rem; align-items: flex-end; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: .6rem .7rem; margin-bottom: .7rem; }
.filter-bar .field { flex: 1 1 130px; min-width: 120px; }
.filter-bar .field.grow { flex: 2 1 200px; }
.filter-bar.compact .field { flex: 1 1 110px; }
.filter-bar .checkbox-item { white-space: nowrap; font-size: .82rem; padding-bottom: .45rem; }
.aamm-app .pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .65rem; }
.pool-more { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-top: .7rem; }
.pool-card.hired { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.extend-banner { border-color: var(--warning); background: rgba(255,184,0,.1); }
.offer-actions { margin: .7rem 0 .4rem; }
.calendar-card h4 { margin-top: .6rem; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.upcoming { list-style: none; margin: .3rem 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.upcoming li { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: .4rem; align-items: center; font-size: .86rem; background: var(--surface-2); border-radius: 7px; padding: .3rem .5rem; }
.upcoming li.done { opacity: .5; text-decoration: line-through; }
.up-icon { font-size: 1.1rem; text-align: center; }
/* Jam Lab picker */
.jam-picked { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--surface-2); color: var(--text); border: 1px solid var(--primary); border-radius: 999px; padding: .15rem .55rem .15rem .2rem; font: inherit; font-size: .78rem; cursor: pointer; }
.chip .portrait { border-radius: 999px; box-shadow: none; }
.jam-list { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: .3rem; padding-right: .2rem; }
.jam-item { display: flex; align-items: center; gap: .5rem; padding: .3rem .45rem; border-radius: 8px; background: var(--surface-2); border: 1px solid transparent; cursor: pointer; }
.jam-item.on { border-color: var(--primary); }
.jam-item > span { display: flex; flex-direction: column; min-width: 0; }
.jam-item .muted { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jam-item input:disabled + .portrait { opacity: .5; }
/* Celebration */
#celebrate-dialog { border: 0; padding: 0; background: transparent; max-width: min(560px, 94vw); overflow: visible; }
#celebrate-dialog::backdrop { background: radial-gradient(circle, rgba(40,20,80,.75), rgba(5,6,14,.92)); }
#confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }
.celebrate-card { position: relative; z-index: 1; text-align: center; background: linear-gradient(160deg, #1f1747, #0f1330 60%); border: 2px solid var(--primary); border-radius: 18px; padding: 1.4rem 1.4rem 1.1rem; color: var(--text); box-shadow: 0 0 60px rgba(0,229,168,.35); }
#celebrate-dialog.big .celebrate-card { border-color: var(--warning); box-shadow: 0 0 80px rgba(255,184,0,.45); }
.celebrate-disc { display: flex; justify-content: center; margin-bottom: .5rem; }
.celebrate-disc svg { animation: aamm-spin 2.4s linear infinite; filter: drop-shadow(0 0 18px rgba(255,255,255,.35)); }
@keyframes aamm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .celebrate-disc svg { animation: none; } }
.celebrate-kicker { font-size: .78rem; letter-spacing: .12em; color: var(--warning); font-weight: 800; margin: 0; }
#celebrate-title { font-size: 1.55rem; margin: .3rem 0 .5rem; color: #fff; text-shadow: 0 0 18px rgba(255,79,216,.5); }
.celebrate-list { list-style: none; padding: 0; margin: .5rem 0; font-size: .9rem; color: #ffe394; }
.celebrate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .9rem; }
/* Account pages */
.aamm-account .brand { text-decoration: none; color: inherit; }
.brand-title { margin: 0; font-size: 1.25rem; letter-spacing: .08em; font-weight: 800; color: var(--primary); text-shadow: 0 0 12px rgba(0,229,168,.35); }
.account-shell { max-width: 520px; margin: 2.2rem auto; padding: 0 1rem; }
.account-card h1 { font-size: 1.45rem; margin-bottom: .4rem; }
.account-form { margin-top: .8rem; gap: .75rem; }
.account-form .field span { color: var(--text); font-size: .84rem; }
.account-form .field input { font-size: .95rem; padding: .55rem .7rem; }
.account-form .btn { font-size: .95rem; padding: .6rem 1rem; }
.account-fieldset { border: 1px solid var(--border); border-radius: 8px; padding: .6rem .8rem .8rem; display: flex; flex-direction: column; gap: .6rem; }
.account-fieldset legend { color: var(--muted); font-size: .82rem; padding: 0 .3rem; }
.account-links { margin-top: 1rem; font-size: .88rem; }
.account-notice { border-radius: 8px; padding: .6rem .8rem; margin: .5rem 0; font-size: .9rem; }
.account-notice.error { background: rgba(255,71,105,.12); border: 1px solid rgba(255,71,105,.5); color: #ffd2db; }
.account-notice.success { background: rgba(0,229,168,.1); border: 1px solid rgba(0,229,168,.45); color: #c9fff0; }
.aamm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Dialogs must stay clickable even while a turn is processing. */
.aamm-app.busy dialog[open] .btn { pointer-events: auto; opacity: 1; }
.celebrate-close { position: absolute; top: .6rem; right: .6rem; }
/* Download menus */
.dl-menu { display: inline-block; vertical-align: middle; }
.dl-menu > summary { list-style: none; }
.dl-menu > summary::-webkit-details-marker { display: none; }
.dl-pop { display: none; gap: .25rem; margin-left: .25rem; }
.dl-menu[open] { display: inline-flex; align-items: center; }
.dl-menu[open] .dl-pop { display: inline-flex; }
.jam-dl { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.dl-all select { width: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Jam Lab modes & queue */
.jam-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .5rem; margin-bottom: 1rem; padding: .6rem; }
.jam-mode { display: flex; flex-direction: column; gap: .2rem; text-align: left; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 9px; padding: .6rem .75rem; font: inherit; cursor: pointer; }
.jam-mode strong { font-size: .95rem; }
.jam-mode span { font-size: .74rem; color: var(--muted); }
.jam-mode.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: rgba(0,229,168,.08); }
.jam-mode:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.now-card { border-color: var(--accent); }
.now-title { font-size: 1.05rem; margin: .2rem 0; }
.now-band { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0; }
.chip.static { cursor: default; border-color: var(--border); }
.up-next { margin-top: .4rem; }
.shelf-title { margin-top: 1.2rem; }
