/* Mehfil: a bright, light look for phones, the host screen and Home (Kasturi,
   2026-11-24: "too dark for a singing app"). The TV stays dark (class="dark" on tv.html):
   a white TV glares in a dim room and frames the video badly. */
:root {
  /* Party colours, matched to the logo (purple to hot pink), deepened enough to read on white. */
  --bg: #fff7fb;
  --card: #ffffff;
  --card-2: #f6effd;
  --line: #e6dbf3;
  --text: #241638;
  --muted: #6c5e86;
  --accent: #e3166f;          /* hot pink */
  --violet: #8a4dff;
  --teal: #0b8f86;
  --yellow: #a87400;          /* gold that reads on white */
  --orange: #ff8a3d;
  --accent-text: #ffffff;
  --grad: linear-gradient(135deg, #ff3d8b 0%, #a46bff 100%);
  --grad-hot: linear-gradient(135deg, #ff8a3d 0%, #ff3d8b 45%, #a46bff 100%);
  --grad-cool: linear-gradient(135deg, #22d3c5 0%, #3b9dff 100%);
  --ok: #0a7a5c;
  --ok-bg: #dcf6ec;
  --warn: #8a5a00;
  --warn-bg: #fff1c7;
  --danger: #d2264a;
  --card-edge: rgba(60, 20, 110, .08);
  --shadow: 0 4px 18px rgba(80, 30, 140, .08);
  --radius: 18px;
  color-scheme: light;
}
/* The TV: the original dark party look. */
:root.dark {
  --bg: #140a26;
  --card: #21133a;
  --card-2: #2e1b50;
  --line: #43306a;
  --text: #fbf7ff;
  --muted: #c3b6dc;
  --accent: #ff3d8b;          /* hot pink */
  --violet: #a46bff;
  --teal: #22d3c5;
  --yellow: #ffd23f;
  --orange: #ff8a3d;
  --accent-text: #ffffff;
  --grad: linear-gradient(135deg, #ff3d8b 0%, #a46bff 100%);
  --grad-hot: linear-gradient(135deg, #ff8a3d 0%, #ff3d8b 45%, #a46bff 100%);
  --grad-cool: linear-gradient(135deg, #22d3c5 0%, #3b9dff 100%);
  --ok: #3ce0b0;
  --ok-bg: #0f3a35;
  --warn: #ffd23f;
  --warn-bg: #3d2f0c;
  --danger: #ff6b81;
  --card-edge: rgba(255, 255, 255, .06);
  --shadow: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 17px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  /* Soft coloured stage lights behind everything. */
  background:
    radial-gradient(60vmax 40vmax at 0% 0%, rgba(255, 61, 139, .22), transparent 60%),
    radial-gradient(50vmax 40vmax at 100% 10%, rgba(164, 107, 255, .22), transparent 60%),
    radial-gradient(60vmax 40vmax at 50% 110%, rgba(34, 211, 197, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.num, .code, .tvcode { font-variant-numeric: tabular-nums; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
[hidden] { display: none !important; }

.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 96px; }
.wrap.wide { max-width: 980px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }

.card { background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card-2); font-weight: 600;
  text-decoration: none; color: var(--text);
}
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--grad); border-color: transparent; color: var(--accent-text); box-shadow: 0 6px 24px rgba(255, 61, 139, .35); }
.btn.primary:hover { filter: brightness(1.08); border-color: transparent; }
.btn.big { width: 100%; min-height: 58px; font-size: 19px; }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn.link { background: none; border: none; color: var(--muted); font-weight: 500; min-height: 44px; padding: 0 8px; }
.btn.link:hover { color: var(--text); }
.iconbtn {
  width: 44px; height: 44px; border-radius: 10px; border: none; background: none;
  color: var(--muted); cursor: pointer; font-size: 20px; flex: none;
}
.iconbtn:hover { background: var(--card-2); color: var(--text); }

label.field { display: block; font-size: 15px; color: var(--muted); margin-bottom: 6px; }
input.text, textarea.text {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); font-size: 18px;
}
input.text:focus, textarea.text:focus { outline: 2px solid var(--accent); border-color: transparent; }

.pill { display: inline-block; font-size: 14px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }

.status-banner { border-radius: var(--radius); padding: 16px; text-align: center; }
.status-banner.ok { background: var(--grad-cool); color: #04262a; }
.status-banner.hot { background: var(--grad-hot); color: var(--accent-text); box-shadow: 0 8px 30px rgba(255, 61, 139, .35); }
.status-banner h2 { font-size: 22px; }

/* Line-up rows */
.lineup { list-style: none; margin: 0; padding: 0; }
.lineup li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.lineup li:first-child { border-top: none; }
.lineup li.mine .who { color: var(--accent); }
.lineup li.dragging { opacity: .4; }
.lineup li.drop-above { box-shadow: inset 0 3px 0 var(--accent); }
.lineup .num { width: 18px; text-align: right; color: var(--muted); font-size: 15px; flex: none; }
.lineup .who { font-weight: 600; }
.lineup .song { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grip { cursor: grab; color: var(--muted); font-size: 18px; padding: 0 4px; user-select: none; }
.thumb { width: 64px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--card-2); flex: none; }

/* Search results */
.results { list-style: none; margin: 0; padding: 0; }
.result { border-radius: 12px; padding: 8px; margin: 0 -8px; cursor: pointer; scroll-margin-top: 12px; }
.result:hover, .result.open { background: var(--card-2); }
.result .row { align-items: flex-start; }
.result .pic { position: relative; flex: none; }
.result .pic img { width: 132px; height: 74px; border-radius: 8px; object-fit: cover; display: block; background: var(--card-2); }
.result .len { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.8); color: #fff; font-size: 13px; padding: 1px 5px; border-radius: 4px; }
.result .title { font-weight: 600; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result .meta { color: var(--muted); font-size: 15px; margin-top: 2px; }
.badge { display: inline-block; font-size: 14px; font-weight: 600; margin-top: 4px; padding: 2px 8px; border-radius: 999px; }
.badge.good { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: var(--warn-bg); color: var(--warn); }
.votebar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--card-2); border-radius: 12px; padding: 10px 12px; }
.votebar .grow { flex-basis: 200px; } /* on a phone the question goes above the buttons */
.preview { margin-top: 10px; }
.preview-actions {
  position: sticky; bottom: 0; z-index: 2; margin-top: 10px; padding: 10px 0;
  background: var(--card-2); /* matches the open result behind it */
}
.player-box { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.player-box iframe, .player-box > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.suggest { list-style: none; margin: 4px 0 0; padding: 4px 0; background: var(--card-2); border-radius: 12px; }
.suggest li { padding: 10px 14px; cursor: pointer; }
.suggest li:hover, .suggest li.active { background: var(--line); }
.suggest .why { color: var(--muted); font-size: 14px; margin-left: 6px; }

.chosen { display: flex; gap: 12px; align-items: center; background: var(--card-2); border-radius: 12px; padding: 10px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chosen img { width: 96px; height: 54px; border-radius: 6px; object-fit: cover; }

/* Toast with Undo */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--text); color: var(--bg); border-radius: 12px; padding: 10px 10px 10px 16px;
  display: flex; align-items: center; gap: 12px; font-weight: 600; z-index: 50;
  width: max-content; max-width: calc(100% - 32px); box-shadow: 0 6px 30px rgba(0,0,0,.5);
}
.toast button { background: none; border: none; color: var(--accent); font-weight: 700; cursor: pointer; padding: 6px 8px; }

.conn {
  position: fixed; top: 0; left: 0; right: 0; text-align: center; font-size: 14px; font-weight: 600;
  background: var(--warn-bg); color: var(--warn); padding: 6px; z-index: 60;
}

/* Pop-ups: centred on the screen (auto margins keep a tall one scrollable), over a dark
   page, with a bright edge so they can't be missed on a big iPad or laptop screen. */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(20, 8, 40, .6); z-index: 40; overflow-y: auto; padding: 16px; display: flex; }
.sheet { width: 100%; max-width: 560px; margin: auto; background: var(--card); border-radius: var(--radius); padding: 18px;
  border: 2px solid var(--accent); box-shadow: 0 20px 70px rgba(0,0,0,.6); }
@media (min-width: 900px) { .sheet h2 { font-size: 26px; } .sheet .btn { min-height: 52px; font-size: 18px; } }

/* Start screen choice: where do the videos play? */
.field { font-size: 15px; color: var(--muted); }
.choice {
  display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg);
}
.choice.on { border-color: var(--accent); background: var(--card-2); box-shadow: 0 0 0 4px rgba(255, 61, 139, .18); }
.choice strong { display: flex; align-items: center; gap: 8px; }

/* The video player on the host screen when videos play here */
.stage { margin-top: 14px; }
.stage-hint { text-align: center; margin: 8px 0 0; }
@media (max-width: 760px) { .stage { position: sticky; top: 0; z-index: 10; background: var(--bg); padding-bottom: 6px; } }
@media (max-width: 480px) { .lineup .thumb { display: none; } } /* the singer colour circle stands in */

/* Connect a TV: one folding section per kind of TV */
details.way { border-top: 1px solid var(--line); padding: 10px 0; }
details.way summary { cursor: pointer; font-weight: 600; }
details.way p { margin: 8px 0 0; }

/* Paste-a-link steps, shown when search can't run */
.pastecard { background: var(--card-2); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.pastecard ol { margin: 10px 0 0; padding-left: 22px; }
.pastecard li { margin: 8px 0; }
.btn.pulse { animation: pulse 1s ease-in-out 3; }
@keyframes pulse { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .btn.pulse { animation: none; } }

/* The muted copy of the TV on the host screen: smaller, it is only a glance. */
.stage.preview { max-width: 520px; }

/* ---------- Party look ---------- */
/* Brand: the logo and a gradient wordmark. */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.brand span { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand.big img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 40px rgba(255, 61, 139, .35); }
.gradtext { background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Each singer has their own bright colour circle. */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%; background: var(--c, var(--violet));
  color: #1a0b2e; font-weight: 800; font-size: 16px; line-height: 1;
}
.avatar.lg { width: 56px; height: 56px; font-size: 24px; }

/* Line-up rows with a singer colour circle. */
.lineup li .avatar { width: 32px; height: 32px; font-size: 14px; }

/* Simple line icons (no emoji). */
.ico { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -.2em; flex: none; }
.btn .ico { width: 20px; height: 20px; }
.iconbtn .ico { width: 24px; height: 24px; }

/* The big moments: now singing, the start screen hero. */
.card.hero { background: var(--grad-hot); border: none; color: #fff; box-shadow: 0 10px 40px rgba(255, 61, 139, .3); }
.card.hero .muted { color: rgba(255, 255, 255, .85); }
.card.hero .btn { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .35); color: #fff; }
.card.hero .btn.link { background: none; border: none; }
.card.hero .avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); }
.code-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--card-2); font-size: 14px; color: var(--muted);
}
.code-chip strong { color: var(--yellow); letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Home ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  min-height: 110px; padding: 16px; border-radius: var(--radius); border: none; cursor: pointer; color: #fff;
}
.tile strong { font-size: 19px; font-weight: 800; }
.tile .small { opacity: .9; }
.tile .tile-ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .22); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.tile .tile-ico .ico { width: 22px; height: 22px; }
.tile.hot { background: var(--grad-hot); box-shadow: 0 8px 28px rgba(255, 61, 139, .3); }
.tile.cool { background: var(--grad-cool); color: #04262a; }
.tile.cool .tile-ico { background: rgba(4, 38, 42, .12); }
.tile.sun { background: linear-gradient(135deg, #ffd23f 0%, #ff8a3d 100%); color: #3a1a00; }
.tile.grape { background: linear-gradient(135deg, #a46bff 0%, #6a5bff 55%, #3b9dff 100%); box-shadow: 0 8px 28px rgba(122, 91, 255, .3); }
.tile.sun .tile-ico { background: rgba(58, 26, 0, .12); }
.tile:hover { filter: brightness(1.06); }
@media (max-width: 520px) { .tile { min-height: 0; flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; } .tile .tile-ico { margin: 0; } .tile .small { flex-basis: 100%; padding-left: 52px; margin-top: -8px; } }

/* Who's singing? */
.who-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.who-pick { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: none; color: var(--text); cursor: pointer; font-weight: 700; font-size: 16px; }
.who-pick .avatar.lg { width: 84px; height: 84px; font-size: 34px; transition: transform .15s; }
.who-pick:hover .avatar.lg { transform: scale(1.06); }
.avatar.add { background: none; border: 2px dashed var(--line); color: var(--muted); }
.who-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); font-weight: 700; cursor: pointer; }
.who-chip .avatar { width: 30px; height: 30px; font-size: 14px; }

/* ---------- Open duets ---------- */
.open-duet-note { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 2px dashed var(--teal); color: var(--teal); }
.open-duet-note .small { color: var(--muted); }
.pill.duet { background: rgba(34, 211, 197, .16); color: var(--teal); }
.avatar.open { background: none; border: 2px dashed var(--teal); color: var(--teal); }
.avatars { display: inline-flex; flex: none; }
.avatars .avatar + .avatar { margin-left: -10px; box-shadow: 0 0 0 2px var(--card); }

/* ---------- Ask to go sooner ---------- */
.request-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius); background: var(--card-2); border: 2px solid var(--violet); margin-bottom: 10px; }
.request-card.ask { border-color: var(--yellow); box-shadow: 0 6px 24px rgba(255, 210, 63, .18); }
.request-card .small { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.preview-hint { font-size: 15px; font-weight: 700; color: var(--accent); margin-top: 4px; }

/* ---------- Sheets: header with Close, buttons ---------- */
.sheet-head { display: flex; align-items: center; gap: 8px; }
.sheet-head h2 { font-size: 22px; }
.sheet-close { margin-right: -8px; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #1a0b2e; }
.notice-big { font-size: 44px; font-weight: 800; letter-spacing: .25em; text-align: center; color: var(--yellow); font-variant-numeric: tabular-nums; padding: 8px 0; }
.who-chip.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 61, 139, .2); }
.party-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius); background: var(--grad-hot); color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 6px 24px rgba(255, 61, 139, .3); }

/* Party messages */
.messages { list-style: none; margin: 0; padding: 0; }
.messages li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.messages li:first-child { border-top: none; }
.msg-from { font-weight: 700; font-size: 15px; }
#msg-pop { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 24px)); z-index: 35; /* under pop-ups being answered */ display: flex; flex-direction: column; gap: 8px; }
.msg-pop { display: flex; gap: 8px; align-items: flex-start; background: var(--card); color: var(--text); border: 2px solid var(--violet); border-radius: 14px; padding: 10px 6px 10px 14px; box-shadow: 0 10px 40px rgba(60, 20, 110, .25); }

/* Small phones: room for the singer and song. Remove is also in the row's ⋯ menu. */
@media (max-width: 420px) {
  .lineup .thumb { display: none; }
  .lineup .row-remove { display: none; }
}
h1, h2 { overflow-wrap: anywhere; }

/* Kid mode: picture tiles and bigger everything (little hands, fewer words). */
.kid-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.kid-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; min-height: 110px;
  border-radius: 18px; border: 2px solid var(--line); background: var(--card-2); color: var(--text); font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; text-align: center; }
.kid-tile:hover, .kid-tile:focus-visible { border-color: var(--accent); }
.kid-pic { font-size: 44px; line-height: 1; }
body.kids .btn { min-height: 56px; font-size: 19px; }
body.kids .btn.small { min-height: 48px; font-size: 17px; }
body.kids .status-banner h2 { font-size: 28px; }

/* Host: "Needs you" strip */
.needs-you { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn); border: 2px solid var(--yellow); }
.needs-you ul { list-style: none; margin: 6px 0 0; padding: 0; }
.needs-you li { display: flex; align-items: center; gap: 10px; padding: 4px 0; color: var(--text); }

/* The recap card */
.recap { text-align: left; }
.recap h2 { font-size: 22px; margin-bottom: 6px; }
.recap ul { margin: 0; padding-left: 22px; font-size: 18px; line-height: 1.6; }

/* ---------- Party look (Kasturi, 2026-11-24: "more colorful… light… fancy/party") ----------
   A festive rounded font (Baloo 2, also good for Hindi letters), colour washes and
   confetti behind everything, a coloured accent on each card, rainbow chips. */
:root { --font-fun: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif; }
:root:not(.dark) body {
  background:
    radial-gradient(circle at 8% 6%, rgba(255, 61, 139, .26), transparent 30%),
    radial-gradient(circle at 94% 10%, rgba(164, 107, 255, .26), transparent 30%),
    radial-gradient(circle at 85% 95%, rgba(34, 211, 197, .22), transparent 32%),
    radial-gradient(circle at 4% 88%, rgba(255, 210, 63, .30), transparent 30%),
    radial-gradient(circle at 50% 45%, rgba(255, 138, 61, .10), transparent 45%),
    var(--bg);
  background-attachment: fixed;
}
/* Confetti, very light, fixed behind the page. */
:root:not(.dark) body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg opacity='.5'%3E%3Crect x='20' y='30' width='10' height='4' rx='2' fill='%23ff3d8b' transform='rotate(30 25 32)'/%3E%3Crect x='150' y='20' width='10' height='4' rx='2' fill='%23a46bff' transform='rotate(-20 155 22)'/%3E%3Crect x='90' y='110' width='10' height='4' rx='2' fill='%2322d3c5' transform='rotate(60 95 112)'/%3E%3Crect x='180' y='160' width='10' height='4' rx='2' fill='%23ffd23f' transform='rotate(15 185 162)'/%3E%3Crect x='40' y='180' width='10' height='4' rx='2' fill='%23ff8a3d' transform='rotate(-40 45 182)'/%3E%3Ccircle cx='120' cy='40' r='3' fill='%23ffd23f'/%3E%3Ccircle cx='200' cy='90' r='2.5' fill='%23ff3d8b'/%3E%3Ccircle cx='60' cy='120' r='2.5' fill='%23a46bff'/%3E%3Ccircle cx='140' cy='190' r='3' fill='%2322d3c5'/%3E%3Cpath d='M100 70 l3 6 l6 1 l-5 4 l1 6 l-5 -3 l-5 3 l1 -6 l-5 -4 l6 -1z' fill='%23ffd23f'/%3E%3C/g%3E%3C/svg%3E");
}
h1, h2, h3, .brand span, .tile strong, .btn.big, .btn.primary, .status-banner h2, .eyebrow, .label, .notice-big, .kid-tile, .singer, .celebrate-text {
  font-family: var(--font-fun);
}
h1 { font-weight: 800; letter-spacing: 0; }
h2 { font-weight: 700; letter-spacing: 0; }
.brand span { font-weight: 800; font-size: 22px; background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root:not(.dark) .eyebrow { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root:not(.dark) .card.hero .eyebrow, :root:not(.dark) .card.hero .eyebrow * { color: #fff; background: none; -webkit-background-clip: border-box; background-clip: border-box; }
/* Cards: glassy white with a coloured accent bar that changes colour card to card. */
:root:not(.dark) .card { position: relative; background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 10px 34px rgba(164, 107, 255, .13), 0 2px 6px rgba(255, 61, 139, .06); }
:root:not(.dark) .card:not(.hero):not(.recap)::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: var(--grad-hot); }
:root:not(.dark) .card:nth-of-type(3n+2):not(.hero)::before { background: var(--grad-cool); }
:root:not(.dark) .card:nth-of-type(3n):not(.hero)::before { background: linear-gradient(90deg, #ffd23f, #ff8a3d); }
:root:not(.dark) .recap { background: linear-gradient(135deg, #fff7d6 0%, #ffe3f1 50%, #e9e0ff 100%); }
/* Buttons: white and friendly; primary stays the party gradient, a little glossy. */
:root:not(.dark) .btn { background: #fff; border: 1.5px solid var(--line); box-shadow: 0 2px 8px rgba(80, 30, 140, .06); }
:root:not(.dark) .btn:hover { border-color: var(--accent); }
:root:not(.dark) .btn.primary { background: var(--grad); border-color: transparent; box-shadow: 0 8px 24px rgba(255, 61, 139, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
:root:not(.dark) .btn.link { background: none; border: none; box-shadow: none; }
:root:not(.dark) .card.hero .btn:not(.primary) { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .45); color: #fff; box-shadow: none; }
/* Rainbow chips (picked ones stay solid pink). */
:root:not(.dark) .chip { border: 1.5px solid transparent; }
:root:not(.dark) .chip:nth-child(5n+1):not(.on) { background: #ffe3f0; color: #9c0c4c; }
:root:not(.dark) .chip:nth-child(5n+2):not(.on) { background: #ece3ff; color: #4b1fa6; }
:root:not(.dark) .chip:nth-child(5n+3):not(.on) { background: #d9f7f3; color: #075e57; }
:root:not(.dark) .chip:nth-child(5n+4):not(.on) { background: #fff1c2; color: #6e4a00; }
:root:not(.dark) .chip:nth-child(5n+5):not(.on) { background: #ffe5d3; color: #8a3a00; }
:root:not(.dark) .chip:hover { border-color: var(--accent); }
/* Line-up rows light up when tapped or hovered. */
:root:not(.dark) .lineup li { border-radius: 12px; }
:root:not(.dark) .lineup li.mine { background: linear-gradient(90deg, rgba(255, 61, 139, .08), transparent); }
/* Tiles: bigger, bolder. */
.tile strong { font-size: 21px; }
.tile { min-height: 120px; }

/* ---------- Easier to read and move around (Kasturi, 2026-11-24: "font sizes are too small") ---------- */
body { font-size: 19px; }
.small { font-size: 16.5px; }
.btn { min-height: 54px; font-size: 18.5px; padding: 0 20px; border-radius: 14px; }
.btn.small { min-height: 48px; font-size: 17px; }
.btn.big { min-height: 60px; font-size: 21px; }
.btn.link { min-height: 48px; font-size: 17px; }
input.text, textarea.text { font-size: 19px; min-height: 54px; }
label.field, .field { font-size: 16.5px; }
.lineup .who { font-size: 19px; }
.lineup .song { font-size: 16.5px; }
.chip { font-size: 17px; padding: 11px 16px; }
.pill { font-size: 15px; }
.result .meta, .preview-hint { font-size: 16px; }
.result .title { font-size: 18px; }
.eyebrow { font-size: 15px; }
.menu-btn { font-weight: 700; }
.menu-group { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.menu-item { justify-content: flex-start !important; text-align: left; font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important; font-size: 19px !important; font-weight: 600; }

/* The bottom bar */
body.has-tabbar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(164, 107, 255, .14); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; border-radius: 14px;
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14.5px; font-family: var(--font-fun); }
.tab-ico { font-size: 24px; line-height: 1; }
.tab.on { color: var(--accent); background: linear-gradient(135deg, rgba(255, 61, 139, .12), rgba(164, 107, 255, .12)); }
@media (min-width: 900px) { .tabbar { left: 50%; right: auto; transform: translateX(-50%); width: 560px; bottom: 12px; border-radius: 22px; border: 1px solid var(--line); } }
/* Message pop-ups and toasts sit above the bar. */
.toast { bottom: calc(96px + env(safe-area-inset-bottom)) !important; }

/* "Mehfil has a new address" (shown only on the old sing-next.workers.dev address) */
.card.move-card { border: 2px solid #ffc93c; background: linear-gradient(135deg, #fff8e1, #ffe9f3); margin-bottom: 18px; }
