/* Kalimbanumero — the look of the Reels: a dark plum stage, a warm wooden glow, ivory tab cards, stickers of colour. */
@font-face {
  font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/poppins-bold.woff2") format("woff2");
}
:root {
  --stage-top: #22192e;
  --stage-bottom: #110b13;
  --ink: #201612;
  --ink-soft: #6b5d55;
  --ivory: #f6f0e6;
  --paper: #fffaf2;
  --accent: #ffd45a;
  --red: #e85c40;
  --red-dark: #b8432c;
  --wood: #6a4229;
  --text: #f3eef6;
  --text-soft: #c9bfd4;
  --line: rgba(255, 255, 255, .09);
  /* The seven degrees: as bright stickers on the stage, and darker on ivory (to be read). */
  --d1: #ff8076; --d2: #ffb052; --d3: #ffdc5c; --d4: #78de9e; --d5: #5cd2e8; --d6: #7ca6ff; --d7: #b894ff;
  --k1: #d4473b; --k2: #c86d12; --k3: #9a7b00; --k4: #23894c; --k5: #127f99; --k6: #3a64cc; --k7: #7b4fd6;
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text); line-height: 1.55; font-size: 17px;
  background: radial-gradient(900px 520px at 50% 110%, rgba(255, 170, 90, .10), transparent 70%),
              linear-gradient(180deg, var(--stage-top), var(--stage-bottom) 80%) fixed;
  background-color: var(--stage-bottom);
}
h1, h2, h3, .brand, .btn, .num, .chip, .label, .totals b { font-family: "Poppins", system-ui, sans-serif; font-weight: 700; }
h1 { font-size: clamp(30px, 5.4vw, 48px); line-height: 1.12; margin: .2em 0 .35em; letter-spacing: -.01em; }
h2 { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.2; margin: 1.6em 0 .6em; }
h3 { font-size: 19px; margin: 1.2em 0 .4em; }
a { color: var(--accent); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.card :focus-visible, .form :focus-visible { outline-color: var(--ink); }
.soft { color: var(--text-soft); }
.small { font-size: 14px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.todo { background: #ffe9a8; color: var(--ink); font-weight: 700; padding: 0 4px; border-radius: 4px; }
.watch-hint { margin: 0 0 10px; font-weight: 700; color: var(--red-dark); font-size: 15px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header and footer */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 21px; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; display: block; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover, .top nav a[aria-current] { background: rgba(255, 255, 255, .1); }
@media (max-width: 560px) {
  .brand span { display: none; }
  .top nav a { padding: 8px 9px; font-size: 14px; }
}
footer { margin-top: 56px; padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 14px; display: grid; gap: 8px; }
footer a { color: var(--text); }
main { outline: none; }

/* Buttons, chips, labels */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 0;
  text-decoration: none; color: #fff; background: var(--red); border-radius: 999px; padding: 12px 22px; font-size: 16px;
  box-shadow: 0 4px 0 var(--red-dark); transition: transform .08s ease, box-shadow .08s ease;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red-dark); }
.btn.ghost { background: rgba(255, 255, 255, .1); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.btn.light { background: var(--accent); color: var(--ink); box-shadow: 0 4px 0 #b8952a; }
.btn:disabled { opacity: .6; cursor: default; }
.label { display: inline-block; color: var(--accent); font-size: 14px; letter-spacing: .02em; }
.chip {
  display: inline-grid; place-items: center; position: relative; width: 1.9em; height: 1.9em; padding: 0; border-radius: 50%;
  color: var(--ink); font-size: 15px; border: 2px solid var(--ivory); line-height: 1;
}
.chip[data-d]::before, .num[data-d]::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: .3em; height: .3em; border-radius: 50%;
  background: currentColor;
}
.chip[data-d] { padding-top: .58em; align-items: start; }
.chip[data-d]::before { top: .07em; width: .22em; height: .22em; background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.chip[data-d="2"]::before { box-shadow: -.17em 0 0 0 #fff, .17em 0 0 0 #fff, -.17em 0 0 1.5px var(--ink), .17em 0 0 1.5px var(--ink); background: transparent; }
.c1 { background: var(--d1); } .c2 { background: var(--d2); } .c3 { background: var(--d3); } .c4 { background: var(--d4); }
.c5 { background: var(--d5); } .c6 { background: var(--d6); } .c7 { background: var(--d7); }

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: center; padding: 18px 0 8px; }
.hero .lede { font-size: 19px; color: var(--text-soft); max-width: 34em; }
.hero .chips { display: flex; gap: 8px; margin: 18px 0 22px; flex-wrap: wrap; }
.hero .chips .chip { font-size: 22px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.video {
  position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45); border: 1px solid var(--line);
}
.video video { width: 100%; height: 100%; display: block; object-fit: cover; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero .video { max-width: 300px; margin: 0 auto; }
}
.songs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.song {
  display: grid; gap: 6px; height: 100%; padding: 16px 18px; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: rgba(255, 255, 255, .055); border: 1px solid var(--line); transition: background .15s, transform .15s;
}
.song:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.song .n { color: var(--accent); font-family: "Poppins", sans-serif; font-weight: 700; font-size: 13px; }
.song .t { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 19px; line-height: 1.2; }
.song .o { color: var(--text-soft); font-size: 14px; line-height: 1.35; }
.song .first { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.song .first .chip { font-size: 12px; }
.song .meta { font-size: 13px; color: var(--text-soft); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { background: rgba(255, 255, 255, .055); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps h3 { margin-top: 10px; }
.steps p { margin: 0; color: var(--text-soft); }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.gift {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 28px;
  background: linear-gradient(135deg, rgba(255, 212, 90, .14), rgba(232, 92, 64, .12)); border: 1px solid rgba(255, 212, 90, .3);
  border-radius: 22px; padding: 22px;
}
.gift h2 { margin: 0 0 6px; }
.gift p { margin: 0 0 14px; color: var(--text-soft); }
.gift .stickers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.gift .stickers span { height: 34px; border-radius: 6px; }
@media (max-width: 560px) { .gift { grid-template-columns: 1fr; } .gift .stickers { max-width: 160px; } }

/* A song */
.crumb { font-size: 14px; color: var(--text-soft); margin-top: 6px; }
.crumb a { color: var(--text-soft); }
.song-head .by { color: var(--text-soft); margin: 0; }
.song-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 22px; }
.song-grid .side { position: sticky; top: 16px; display: grid; gap: 14px; }
@media (max-width: 860px) {
  .song-grid { grid-template-columns: 1fr; }
  /* On a phone: a small video first, then the tab, then the facts and the rest. */
  .song-grid { gap: 18px; }
  .song-grid > .side, .song-grid > .main-col { display: contents; }
  .song-grid > .side > .video { order: 1; max-width: 230px; width: 100%; margin: 0 auto; }
  .song-grid > .side > .news-after { order: 2; }
  .song-grid > .main-col > * { order: 4; min-width: 0; }
  .song-grid > .main-col > .card { order: 3; }
  .song-grid > .side > .facts-panel { order: 4; }
  .song-grid > .main-col > h2 { margin: 6px 0 -8px; }
}
.card { background: var(--ivory); color: var(--ink); border-radius: 22px; padding: 22px 22px 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.card a { color: var(--red-dark); }
.card h2 { margin: 0 0 4px; font-size: 22px; }
.card .soft { color: var(--ink-soft); }
.tab { display: grid; gap: 14px; margin: 18px 0 8px; }
.line { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2px 4px; padding-bottom: 10px; border-bottom: 1px dashed rgba(32, 22, 18, .14); }
.line:last-child { border-bottom: 0; }
.g { display: inline-flex; align-items: flex-start; gap: 4px; }
.note { display: inline-grid; justify-items: center; min-width: 30px; }
@media (max-width: 480px) { .num { font-size: 25px; } .note { min-width: 27px; } .hold { font-size: 19px; } .card { padding: 18px 14px 14px; } }
.num { position: relative; font-size: 28px; line-height: 1; padding-top: 10px; }
.num[data-d]::before { top: 0; width: 7px; height: 7px; }
.num[data-d="2"]::before { box-shadow: -5px 0 0 currentColor, 5px 0 0 currentColor; background: transparent; }
.k1 { color: var(--k1); } .k2 { color: var(--k2); } .k3 { color: var(--k3); } .k4 { color: var(--k4); }
.k5 { color: var(--k5); } .k6 { color: var(--k6); } .k7 { color: var(--k7); }
.note .w { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; min-height: 1.3em; margin-top: 3px; }
.note .h { font-family: "Poppins", sans-serif; font-size: 12px; font-weight: 700; color: #6b5d55; }
.note .h.R { color: #9a4f2c; } .note .h.L { color: #3456a8; }
.hold { font-family: "Poppins", sans-serif; font-weight: 700; color: #7a6a60; font-size: 22px; padding-top: 12px; letter-spacing: 1px; }
.no-words .note .w { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.legend b { color: var(--ink); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 15px; }
.facts dt { color: var(--text-soft); }
.facts dd { margin: 0; }
.panel { background: rgba(255, 255, 255, .055); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.panel h2, .panel h3 { margin-top: 0; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tools .btn { font-size: 15px; padding: 10px 18px; }
details.plain { margin-top: 14px; }
details.plain summary { cursor: pointer; font-weight: 600; }
pre.plain { white-space: pre-wrap; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; line-height: 1.6; background: var(--paper); border-radius: 12px; padding: 12px 14px; margin: 8px 0 0; color: var(--ink); }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.pager a { text-decoration: none; }

/* The 17 tines, left to right */
.tines { display: flex; justify-content: center; align-items: flex-start; gap: 3px; padding: 14px 12px 12px; border-radius: 18px;
  background: linear-gradient(180deg, #8a5a38, #6a4229 55%, #4a2d1b); box-shadow: inset 0 2px 0 rgba(255, 220, 180, .25); position: relative; }
.tines::before { content: ""; position: absolute; left: 8px; right: 8px; top: 22px; height: 10px; border-radius: 6px; background: linear-gradient(#f4f5f8, #9a9ea8); z-index: 1; }
.tine { flex: 1 1 0; max-width: 34px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  border-radius: 0 0 10px 10px; background: linear-gradient(90deg, #a6aab3, #e6e8ec 45%, #b8bcc4); color: var(--ink);
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: 13px; padding-bottom: 4px; position: relative; }
.tine b { display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1.2; border-radius: 6px; position: relative; padding-top: 4px; }
.tine b[data-d]::before { content: ""; position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.tine b[data-d="2"]::before { box-shadow: -3px 0 0 var(--ink), 3px 0 0 var(--ink); background: transparent; }
.tine.off { opacity: .35; }
.tine.s0 { height: 150px; }
.tine.s1 { height: 142px; }
.tine.s2 { height: 134px; }
.tine.s3 { height: 127px; }
.tine.s4 { height: 119px; }
.tine.s5 { height: 111px; }
.tine.s6 { height: 103px; }
.tine.s7 { height: 95px; }
.tine.s8 { height: 88px; }
.tines-caption { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-soft); margin-top: 6px; }
.card .tines-caption { color: var(--ink-soft); }

/* E-mail sign-up */
.news { margin-top: 18px; }
.news form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.news input[type=email] { flex: 1 1 220px; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .25); color: var(--text); }
.news .small { margin: 8px 0 0; }
.news-done { font-weight: 600; color: var(--accent); }

/* Lists and text pages */
.easy { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: easy; }
.easy li a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .055); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.easy li a:hover { background: rgba(255, 255, 255, .1); }
.easy .rank { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 22px; color: var(--accent); text-align: center; }
.easy .t { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 18px; }
.easy .o { display: block; color: var(--text-soft); font-size: 14px; }
.easy .lvl { font-size: 13px; color: var(--text-soft); text-align: right; white-space: nowrap; }
.prose { max-width: 760px; }
.prose p, .prose li { color: #e6dfee; }
.example { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 16px; }
.example .chip { font-size: 22px; }
.legal { max-width: 780px; }
.legal p, .legal li { color: #e6dfee; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
code { font-size: .92em; }

/* Account and admin (account.js) */
.auth { max-width: 460px; margin: 20px auto; }
.auth.wide { max-width: 900px; }
.tabs { display: flex; gap: 6px; margin: 16px 0; }
.tabs button { flex: 1; border: 0; cursor: pointer; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--text); font-weight: 600; }
.tabs button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.form input:not([type=checkbox]) { padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .25); color: var(--text); }
.form label.check, label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.error { color: #ff9d8a; min-height: 1em; margin: 0; }
.setting { margin: 10px 0; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.setting summary { cursor: pointer; font-weight: 600; }
.setting.danger summary { color: #ff9d8a; }
.btn.red { background: #b8432c; }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0; }
.totals div { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 12px 14px; display: grid; }
.totals b { font-size: 26px; }
.totals span { color: var(--text-soft); font-size: 13px; }
.chart { width: 100%; height: 120px; display: block; }
.chart rect { fill: var(--accent); }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-soft); }
.top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tops { padding-left: 1.2em; margin: 0; font-size: 14px; }
.tops li span { display: inline-block; max-width: 75%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; }
.tops li b { float: right; }
.small-btn { padding: 6px 12px; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; background: var(--ivory); color: var(--ink);
  padding: 12px 18px; border-radius: 14px; font-weight: 600; transition: .25s; pointer-events: none; z-index: 10; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.next-steps { display: grid; gap: 10px; margin-top: 16px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  body { background: #fff; color: #000; }
  .top, footer, .side, .tools, .news, .pager, details.plain, .crumb { display: none !important; }
  .card { box-shadow: none; }
}
.news-after { margin-top: 0; }
.news-after p { margin: 0 0 10px; }
.news.lit { border-color: rgba(255, 212, 90, .5); box-shadow: 0 0 0 3px rgba(255, 212, 90, .15); }
.card .btn { color: #fff; }
.card .btn.ghost { background: rgba(32, 22, 18, .08); color: var(--ink); box-shadow: 0 4px 0 rgba(32, 22, 18, .18); }
