:root {
  --ink: #2a2420;
  --paper: #f3ecd9;
  --paper-alt: #ebe1c7;
  --rust: #b8391f;
  --rust-dark: #8f2c17;
  --border: #d8cba3;
  --text: var(--ink);
  --bg: var(--paper);
  --bg-alt: var(--paper-alt);
  --maroon: var(--rust);
  --radius: 3px;
  --font-body: "Space Mono", "Courier New", monospace;
  --font-display: "Permanent Marker", cursive;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: normal;
  letter-spacing: 0.01em;
}

.hidden { display: none !important; }

/* EOY banner (shown on every page/state) */
.eoy-banner {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
  z-index: 20;
}

.eoy-banner-timer {
  font-weight: bold;
  color: #f0c896;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}

/* Login */
.screen#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: -1px -1px;
  padding: 20px;
}

.login-card {
  background: var(--bg);
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  width: min(320px, 100%);
  box-shadow: 6px 6px 0 var(--ink);
}

.login-card h1 {
  margin-top: 0;
  font-size: 30px;
  color: var(--rust);
  transform: rotate(-1deg);
}

.login-card label {
  display: block;
  margin: 12px 0 4px;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login-card input {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}

.login-card button {
  margin-top: 18px;
  width: 100%;
}

.error {
  color: var(--rust-dark);
  font-size: 14px;
  margin-top: 12px;
  font-weight: bold;
}

.switch-form-link {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
}

.switch-form-link a {
  color: var(--rust);
}

#welcome-card #welcome-message {
  line-height: 1.6;
}

#welcome-card button {
  width: 100%;
  margin-top: 8px;
}

/* Modals (how-it-works, raffle entry) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.modal-card {
  background: var(--bg);
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 28px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-card h1, .modal-card h2 {
  margin-top: 0;
  color: var(--rust);
}

.raffle-terms {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  max-height: 220px;
  overflow-y: auto;
  margin: 14px 0;
}

.raffle-terms p { margin: 0 0 10px; }
.raffle-terms p:last-child { margin-bottom: 0; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  margin: 10px 0;
}

.checkbox-row input { margin-top: 3px; }

/* App layout */
#app-screen, .page-with-sidebar {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border-right: 2px dashed var(--ink);
  padding: 20px 16px;
  transition: transform 0.25s ease;
}

.mobile-topbar, .mobile-backdrop { display: none; }

.view-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tab-btn {
  text-align: left;
  text-decoration: none;
  display: block;
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
}

.tab-btn:hover { background: rgba(0,0,0,0.06); }

.tab-btn.active {
  background: var(--ink);
  color: var(--paper);
}

.sidebar hr {
  border: none;
  border-top: 2px dashed var(--border);
  margin: 16px 0;
}

.sidebar button.secondary {
  width: 100%;
}

.sidebar-archive-link {
  margin-top: 16px;
  font-size: 13px;
}

.sidebar-archive-link a {
  color: var(--rust);
}

main {
  flex: 1;
  padding: 24px 40px;
  max-width: 720px;
}

main h1 {
  margin-top: 0;
  font-size: 34px;
  color: var(--rust);
  transform: rotate(-0.6deg);
  display: inline-block;
}

.export-btn {
  display: block;
  margin: 10px 0 4px;
}

.caption {
  color: #6b5f4a;
  font-size: 14px;
}

.custom-label {
  font-size: 19px;
  font-weight: bold;
  font-family: var(--font-display);
  color: var(--rust);
  margin: 16px 0 6px;
  display: inline-block;
  transform: rotate(-1deg);
}

select, input[type="text"], input[type="number"], textarea {
  padding: 7px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}

select { min-width: 260px; }

hr {
  border: none;
  border-top: 2px dashed var(--border);
  margin: 20px 0;
}

.allocation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.allocation-row label {
  flex: 1;
}

.allocation-row input[type="number"] {
  width: 90px;
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

button {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}

button:hover:not(:disabled) { background: var(--rust); border-color: var(--rust); }
button:disabled { opacity: 0.4; cursor: not-allowed; }

button.secondary {
  background: var(--bg);
  color: var(--ink);
  border: 2px solid var(--ink);
}

button.secondary:hover:not(:disabled) { background: var(--bg-alt); border-color: var(--ink); color: var(--ink); }

.custom-item-row {
  display: flex;
  gap: 10px;
}

.custom-item-row input { flex: 1; }

#view-startfamily label {
  display: block;
  margin: 14px 0 4px;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#view-startfamily input {
  display: block;
  width: 100%;
  max-width: 420px;
}

#view-startfamily textarea {
  display: block;
  width: 100%;
  max-width: 420px;
  min-height: 90px;
  resize: vertical;
}

#view-startfamily button {
  margin-top: 14px;
}

.startfamily-slug-row {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 420px;
}

.startfamily-slug-prefix {
  font-size: 13px;
  color: var(--ink);
  opacity: 0.7;
  white-space: nowrap;
}

.startfamily-slug-row input { flex: 1; }

.startfamily-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#startfamily-success .invite-row {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 420px;
  margin-bottom: 8px;
}

#startfamily-success .invite-row input {
  display: inline-block;
  width: auto;
  max-width: none;
  flex: 1;
}

#startfamily-success .invite-row button {
  flex: none;
  margin: 0;
}

#invite-status.ok { color: #3d6b2c; font-weight: bold; }
#invite-status.err { color: var(--rust-dark); font-weight: bold; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-alt);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.03em;
}

#save-status.ok { color: #3d6b2c; font-weight: bold; }
#save-status.err { color: var(--rust-dark); font-weight: bold; }

.juicing-notice {
  background: #f4dcb0;
  border: 2px dashed var(--rust-dark);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  color: #5c3a12;
  margin: 10px 0;
}

/* Comments */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.comment {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: 10px 12px;
}

.comment .comment-meta {
  font-size: 12px;
  color: #6b5f4a;
  margin-bottom: 4px;
}

.comment .comment-author {
  font-weight: bold;
  color: var(--rust);
}

.comment-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-form textarea {
  width: 100%;
  min-height: 60px;
  resize: vertical;
}

/* Friday 5 */

/* Same view-scoped label/input treatment as #view-startfamily -- plain
   <label>/<input> have no block/width styling by default in this
   stylesheet, so without this they render inline and cramped. */
#view-friday5 label {
  display: block;
  margin: 14px 0 4px;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#view-friday5 input[type="text"] {
  display: block;
  width: 100%;
  max-width: 420px;
}

.friday5-embed {
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--bg-alt);
  margin: 12px 0;
}

.friday5-embed iframe { display: block; border-radius: var(--radius); }

.friday5-songs { list-style: none; margin: 0 0 12px; padding: 0; }
.friday5-songs li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.friday5-songs li:last-child { border-bottom: none; }
.friday5-era {
  flex: 0 0 130px;
  color: var(--rust);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.friday5-song { flex: 1; min-width: 0; }

#friday5-admin-add {
  border: 2px dashed var(--rust);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 6px;
}

.friday5-archive-entry {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 10px;
  background: var(--bg-alt);
}
.friday5-archive-entry summary {
  cursor: pointer;
  font-family: var(--font-display);
  color: var(--rust);
  font-size: 16px;
}
.friday5-archive-entry[open] summary { margin-bottom: 10px; }
.friday5-archive-entry .friday5-songs { margin-top: 4px; }

#friday5-preview-panel {
  border: 2px solid var(--rust);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 10px;
  background: var(--bg);
}
#friday5-preview-panel h4 { margin: 0 0 8px; color: var(--rust); }

.friday5-search-row { display: flex; gap: 8px; max-width: 420px; }
.friday5-search-row input[type="text"] { flex: 1; }
.friday5-search-results {
  max-width: 420px;
  margin: 6px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.friday5-track-result {
  width: 100%;
  text-align: left;
  text-transform: none;
  font-weight: normal;
  letter-spacing: normal;
}

/* Monday Review */

#view-mondayreview label {
  display: block;
  margin: 14px 0 4px;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#view-mondayreview input[type="text"] {
  display: block;
  width: 100%;
  max-width: 420px;
}

#view-mondayreview textarea {
  display: block;
  width: 100%;
  max-width: 560px;
  min-height: 140px;
  resize: vertical;
}

#mondayreview-admin-add {
  border: 2px dashed var(--rust);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 6px;
}

.mondayreview-cover-preview {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  margin: 8px 0;
}

.mondayreview-entry {
  display: flex;
  gap: 18px;
  margin: 12px 0;
}
.mondayreview-cover {
  flex: 0 0 160px;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.mondayreview-entry-body { flex: 1; min-width: 0; }
.mondayreview-entry-body h2,
.mondayreview-entry-body h4 { margin: 0 0 8px; }
.mondayreview-text p { margin: 0 0 12px; line-height: 1.5; }
.mondayreview-text p:last-child { margin-bottom: 0; }

.mondayreview-archive-entry {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 10px;
  background: var(--bg-alt);
}
.mondayreview-archive-entry summary {
  cursor: pointer;
  font-family: var(--font-display);
  color: var(--rust);
  font-size: 16px;
}
.mondayreview-archive-entry[open] summary { margin-bottom: 10px; }

#mondayreview-preview-panel {
  border: 2px solid var(--rust);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 10px;
  background: var(--bg);
}
#mondayreview-preview-panel h4 { margin: 0 0 8px; color: var(--rust); }

@media (max-width: 760px) {
  .mondayreview-entry { flex-direction: column; }
  .mondayreview-cover { width: 100%; height: auto; aspect-ratio: 1; }
}

/* Raffle */
.raffle-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.raffle-card {
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--bg-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.raffle-card h3 { margin: 0 0 4px; color: var(--rust); font-size: 20px; }
.raffle-card p { margin: 0; font-size: 14px; color: #6b5f4a; }

#raffle-admin-add {
  border: 2px dashed var(--rust);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 6px;
}

#raffle-admin-add input {
  display: block;
  width: 100%;
  margin: 8px 0;
}

/* How it works */
#howitworks-body, #howitworks-modal-body {
  line-height: 1.6;
}

#howitworks-dismiss-btn {
  margin-bottom: 16px;
}

#howitworks-body h3, #howitworks-modal-body h3 {
  color: var(--rust);
  margin-top: 20px;
}

.howitworks-signature {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px dashed var(--border);
  font-style: italic;
}

#view-profile label {
  display: block;
  margin: 14px 0 4px;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#view-profile input {
  width: 100%;
  max-width: 420px;
}

#view-profile button {
  margin-top: 14px;
}

#profile-save-status.ok, #profile-tier-status.ok { color: #3d6b2c; font-weight: bold; }
#profile-save-status.err, #profile-tier-status.err { color: var(--rust-dark); font-weight: bold; }
#public-votes-share-status.ok { color: #3d6b2c; font-weight: bold; }
#public-votes-share-status.err { color: var(--rust-dark); font-weight: bold; }

.icon-btn {
  margin: 4px 0 16px;
  padding: 8px 12px;
  font-size: 18px;
  line-height: 1;
}

/* Public archive pages */
#public-home-screen, #public-list-screen {
  min-height: 100vh;
  position: relative;
}

.login-sticker {
  position: fixed;
  top: 18px;
  right: 18px;
  background: var(--rust);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 16px;
  text-decoration: none;
  transform: rotate(4deg);
  box-shadow: 3px 3px 0 var(--ink);
  z-index: 30;
}

.login-sticker:hover { transform: rotate(0deg) scale(1.05); }

.login-sticker-inline-link { color: var(--rust); font-weight: bold; }

.public-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.public-page h1 {
  font-size: 34px;
  color: var(--rust);
}

/* My Votes / public votes page */
.myvotes-card {
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  padding: 16px 20px;
  background: var(--bg-alt);
  margin-bottom: 14px;
}

.myvotes-card h3 {
  margin: 0 0 8px;
  color: var(--rust);
}

.myvotes-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.myvotes-entry {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.myvotes-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.myvotes-entry-name {
  font-weight: bold;
  overflow-wrap: break-word;
}

.myvotes-entry-points {
  font-size: 13px;
  color: var(--rust);
}

.myvotes-entry-date {
  font-size: 12px;
  color: #6b5f4a;
}

.myvotes-viz-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.myvotes-viz-label {
  width: 160px;
  flex-shrink: 0;
  font-size: 13px;
  overflow-wrap: break-word;
}

.myvotes-viz-track {
  flex: 1;
  display: flex;
  gap: 2px;
  height: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.myvotes-viz-seg {
  background: var(--rust);
  flex-shrink: 0;
}

.myvotes-viz-total {
  width: 56px;
  flex-shrink: 0;
  text-align: right;
  font-size: 12px;
  color: var(--rust);
}

.myvotes-viz-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin: 4px 0 16px;
  font-size: 12px;
}

.myvotes-viz-row:last-of-type,
.myvotes-viz-legend:last-child {
  margin-bottom: 0;
}

.myvotes-viz-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.myvotes-viz-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--rust);
  flex-shrink: 0;
  display: inline-block;
}

.public-list-card {
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  padding: 16px 20px;
  background: var(--bg-alt);
  margin-bottom: 14px;
}

.public-list-card a { color: var(--rust); font-weight: bold; text-decoration: none; }
.public-list-card a:hover { text-decoration: underline; }

/* Sidebar points indicator */
.points-indicator {
  font-size: 14px;
  margin: 4px 0 14px;
}

/* Lists directory */
.lists-directory {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.list-directory-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  padding: 12px 16px;
  background: var(--bg-alt);
  text-decoration: none;
  color: var(--text);
}

.list-directory-row:hover { background: var(--paper); }

.list-directory-row.featured {
  border: 3px solid var(--rust);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--bg);
}

.list-directory-row .list-name::before {
  content: "☐ ";
}

.list-directory-row.featured .list-name::before {
  content: "🏆 ☐ ";
}

.list-directory-row.voted .list-name::before {
  content: "✅ ";
}

.list-directory-row.featured.voted .list-name::before {
  content: "🏆✅ ";
}

.list-directory-row .list-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--rust);
}

.list-directory-row .list-deadline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 12px;
  color: #6b5f4a;
  text-align: right;
  white-space: nowrap;
}

.list-directory-row .list-deadline-timer {
  font-variant-numeric: tabular-nums;
  font-weight: bold;
}

.list-directory-row .list-deadline.closed { color: var(--rust-dark); }
.list-directory-row .list-deadline.closed .list-deadline-timer { color: var(--rust); }

/* Per-list detail page */
.list-standings {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 14px 0;
}

.standing-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.standing-row .standing-rank {
  width: 28px;
  font-weight: bold;
  color: var(--rust);
}

.standing-row .standing-name { flex: 1; }
.standing-row .standing-points { font-variant-numeric: tabular-nums; color: #6b5f4a; }

.standing-row-with-stats { border-bottom: none; padding-bottom: 0; }

.standing-stats {
  padding: 0 0 6px 40px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--rust);
  font-variant-numeric: tabular-nums;
}

.voter-pie {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  flex-shrink: 0;
  cursor: default;
}

.lineup-entry .voter-pie {
  width: 0.7em;
  height: 0.7em;
  border-color: var(--paper);
}
.standing-row input[type="number"] { width: 80px; }

.album-art-thumb {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border: 1px solid var(--ink);
  border-radius: 2px;
  flex-shrink: 0;
}

.artist-collage {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: 180px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.artist-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.autocomplete-wrap {
  position: relative;
}

.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-top: none;
  max-height: 220px;
  overflow-y: auto;
  z-index: 10;
}

.autocomplete-suggestions div {
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
}

.autocomplete-suggestions div:hover { background: var(--bg-alt); }

/* Festival-poster lineup (locked/final list results) */
.lineup {
  text-align: center;
  padding: 30px 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  margin: 18px 0;
}

.lineup .lineup-heading {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0c896;
  margin-bottom: 14px;
}

.lineup-entry {
  font-family: "Bebas Neue", var(--font-display), sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin: 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lineup-art {
  width: 1.1em;
  height: 1.1em;
  border-radius: 2px;
}

.lineup-entry.rank-1 { font-size: 52px; }
.lineup-entry.rank-2, .lineup-entry.rank-3 { font-size: 34px; opacity: 0.92; }
.lineup-entry.rank-rest { font-size: 20px; opacity: 0.8; }

/* Merch (fake shop) */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.merch-item {
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: 18px 14px;
  text-align: center;
}

.merch-item .merch-emoji { font-size: 44px; }
.merch-item .merch-name { font-family: var(--font-display); color: var(--rust); margin: 8px 0 2px; }
.merch-item .merch-price { font-size: 13px; color: #6b5f4a; margin-bottom: 10px; }
.merch-item button { width: 100%; }

/* Suggestions */
#view-suggest textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  margin-top: 4px;
}

.suggestion-row {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.suggestion-row .suggestion-meta {
  font-size: 12px;
  color: #6b5f4a;
}

.suggestion-row .suggestion-title {
  font-weight: bold;
  color: var(--rust);
}

/* ---------------- Phone / narrow-screen layout ---------------- */

@media (max-width: 760px) {
  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 25;
    background: var(--bg-alt);
    border-bottom: 2px dashed var(--ink);
    padding: 10px 16px;
  }

  .mobile-menu-btn {
    background: transparent;
    border: none;
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    padding: 4px 6px;
    margin: 0;
  }

  .mobile-menu-btn:hover { background: rgba(0,0,0,0.06); }

  .mobile-topbar-title {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--rust);
  }

  .mobile-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 10, 0.5);
    z-index: 35;
  }

  #app-screen, .page-with-sidebar { display: block; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    max-width: 82vw;
    overflow-y: auto;
    transform: translateX(-100%);
    z-index: 40;
    box-shadow: 4px 0 12px rgba(0,0,0,0.25);
  }

  .sidebar.open { transform: translateX(0); }

  main {
    max-width: 100%;
    padding: 20px 16px 48px;
  }

  main > h1 { display: none; } /* mobile topbar already shows the title */

  /* Comfortable tap targets */
  button { padding: 11px 16px; }
  .tab-btn { padding: 11px 10px; font-size: 15px; }

  .login-card { padding: 24px; }
  .modal-card { padding: 20px; }
  .public-page { padding: 20px 16px 48px; }

  .myvotes-viz-row { flex-wrap: wrap; }
  .myvotes-viz-label { width: 100%; }
  .myvotes-viz-total { width: auto; margin-left: auto; }

  .login-sticker {
    top: 12px;
    right: 12px;
    padding: 8px 16px;
    font-size: 14px;
  }

  select { min-width: 0; width: 100%; }

  .raffle-card {
    flex-direction: column;
    align-items: stretch;
  }

  .standing-row input[type="number"] { width: 64px; }

  .artist-collage { height: 130px; }

  .lineup-entry.rank-1 { font-size: 36px; }
  .lineup-entry.rank-2, .lineup-entry.rank-3 { font-size: 25px; }
  .lineup-entry.rank-rest { font-size: 16px; }

  .eoy-banner { font-size: 12px; padding: 8px 10px; }
}
