/* Phone, kiosk, card and DJ pages. Colors come from the event theme (Indian Peaks Alers by default). */
@font-face { font-family: 'Baloo 2'; src: url(/static/fonts/baloo2-latin.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  --ink: #4a0d0d;
  --accent: #7a1414;
  --gold: #c9972b;
  --paper: #e8dcc8;
  --card: #fffaf2;
  --soft: color-mix(in srgb, var(--ink) 62%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 14%, var(--paper));
  --tint: color-mix(in srgb, var(--paper) 55%, white);
  --radius: 14px;
  --font: 'Baloo 2', ui-rounded, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.35; font-variant-numeric: tabular-nums;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--soft); }
h1, h2, h3 { line-height: 1.1; margin: 0; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }

/* The ridge: the rig's mountain line, used once per page as the header's bottom edge. */
.ridge { display: block; width: 100%; height: 26px; }
.ridge path { fill: var(--ink); }

/* buttons */
.btn {
  appearance: none; border: 0; border-radius: 999px; padding: 10px 18px 7px; min-height: 44px;
  background: var(--accent); color: var(--card); font-weight: 700; font-size: 17px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn:disabled { opacity: .45; cursor: default; }
.btn.quiet { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.small { min-height: 36px; padding: 6px 14px 3px; font-size: 15px; }

input[type=text], input[type=search], textarea {
  width: 100%; border: 2px solid var(--line); border-radius: 12px; background: var(--card);
  padding: 11px 14px 8px; font-size: 18px; outline: none;
}
input:focus, textarea:focus { border-color: var(--gold); }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
label.field { display: block; font-weight: 600; margin: 14px 0 6px; }

/* song rows */
.art { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; background: var(--line); }
.art-blank { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px;
  color: var(--paper); background: color-mix(in srgb, var(--ink) 80%, var(--gold)); }
.song { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.song:last-child { border-bottom: 0; }
.song .meta { flex: 1; min-width: 0; }
.song .title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song .sub { color: var(--soft); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song .by { color: var(--accent); font-weight: 600; }
.song.mine .by::after { content: ' (you)'; color: var(--soft); font-weight: 400; }

.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%);
  background: var(--ink); color: var(--card); padding: 12px 20px 9px; border-radius: 999px; font-weight: 600;
  max-width: calc(100vw - 32px); transition: transform .25s ease; z-index: 50; text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast.bad { background: var(--accent); }

.empty { color: var(--soft); padding: 14px 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
