:root {
  --p: #d7263d; --a: #ffb703; --ink: #17181c; --muted: #6b6f7a; --line: #e6e7eb; --bg: #f5f6f8; --card: #fff;
  --r: 16px; --rs: 10px; --head: 'Oswald', 'Arial Narrow', Arial, sans-serif; --body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --good: #1a9b5b; --warn: #c77700;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45; }
body.square { --r: 4px; --rs: 3px; }
body.font-classic { --head: var(--body); }
body.font-rounded { --head: 'Nunito', system-ui, sans-serif; --body: 'Nunito', system-ui, sans-serif; }
h1, h2, h3, .head { font-family: var(--head); letter-spacing: .3px; margin: 0 0 .4em; line-height: 1.15; }
h1 { font-size: 2rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.1rem; }
a { color: var(--p); }
.loading { padding: 4rem; text-align: center; color: var(--muted); }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card + .card { margin-top: 14px; }
.stack > * + * { margin-top: 12px; }

/* Buttons and inputs */
.btn { appearance: none; border: 0; background: var(--p); color: #fff; font: 700 .95rem var(--body); padding: 11px 16px; border-radius: var(--rs); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; line-height: 1.1; }
.btn:hover { filter: brightness(1.07); }
.btn.alt { background: var(--a); color: #1b1300; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.dark { background: #1d1f25; }
.btn.sm { padding: 7px 11px; font-size: .84rem; }
.btn.big { padding: 15px 22px; font-size: 1.05rem; }
.btn.full { width: 100%; justify-content: center; }
.btn.danger { background: transparent; color: #b3261e; border: 1px solid #f1c9c6; }
.btn:disabled { opacity: .5; cursor: default; }
label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #d5d7dd; border-radius: var(--rs); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--a); border-color: transparent; }
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; padding: 9px 14px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: .95rem; }
.chip.on { border-color: var(--p); background: var(--p); color: #fff; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 9px 16px; font: 700 .9rem var(--body); cursor: pointer; color: var(--ink); }
.seg button.on { background: var(--ink); color: #fff; }

/* Top bar */
.top { background: var(--p); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.top .logo { width: 42px; height: 42px; border-radius: 10px; background: var(--a); color: #1b1300; display: grid; place-items: center; font: 800 1rem var(--head); overflow: hidden; flex: none; }
.top .logo img { width: 100%; height: 100%; object-fit: cover; }
.top .title { font-family: var(--head); font-size: 1.25rem; line-height: 1.1; }
.top .title small { display: block; font-family: var(--body); font-size: .78rem; opacity: .85; }
.top .btn { background: rgba(255,255,255,.16); }
.top .btn.sammi { background: var(--a); color: #1b1300; }
.tabs { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.tabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 14px 12px; font: 700 .92rem var(--body); color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--p); }
main { padding: 18px 0 90px; }

/* Stats and progress */
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.stat .n { font: 700 1.7rem var(--head); }
.stat .l { color: var(--muted); font-size: .82rem; font-weight: 600; }
.bar { height: 14px; background: #eceef2; border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--p), var(--a)); border-radius: 999px; transition: width .5s; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 800; background: #eef0f3; color: var(--muted); }
.pill.good { background: #e3f5ec; color: var(--good); } .pill.warn { background: #fff1db; color: var(--warn); } .pill.hot { background: var(--p); color: #fff; }
.next { border-left: 5px solid var(--a); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .93rem; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
td input { padding: 7px 9px; }
.tablewrap { overflow-x: auto; }
.num { width: 64px; }

/* Event night */
.ev { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.evp { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; align-items: center; gap: 10px; }
.evp.done { border-color: var(--good); background: #f3fbf7; }
.evp .jn { font: 700 1.3rem var(--head); width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.evp input { width: 74px; font-size: 1.2rem; font-weight: 800; text-align: center; }
.talk { position: relative; }
.talk.on { background: #b3261e !important; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(179,38,30,.18); } }
.heard { background: #1d1f25; color: #fff; border-radius: var(--rs); padding: 10px 12px; font-size: .92rem; min-height: 42px; }
.log { font-size: .86rem; max-height: 180px; overflow: auto; }
.log div { padding: 4px 0; border-bottom: 1px dashed var(--line); }

/* Drawer and modal */
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: #fff; z-index: 30; transform: translateX(105%); transition: transform .25s; box-shadow: -8px 0 30px rgba(0,0,0,.15); overflow-y: auto; }
.drawer.open { transform: none; }
.drawer .dh { background: var(--a); color: #1b1300; padding: 16px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 2; }
.drawer .db { padding: 16px; }
.qitem { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 10px; }
.qitem textarea { min-height: 96px; font-size: .9rem; }
.modal { position: fixed; inset: 0; background: rgba(15,16,20,.55); z-index: 40; display: none; align-items: flex-start; justify-content: center; padding: 30px 12px; overflow-y: auto; }
.modal.open { display: flex; }
.modal .box { background: #fff; border-radius: var(--r); width: min(620px, 100%); padding: 20px; }
.modal .box .x { float: right; }
.qr { width: 160px; height: 160px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(120px); background: #1d1f25; color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 700; z-index: 60; transition: transform .25s, opacity .25s; max-width: 92%; text-align: center; opacity: 0; pointer-events: none; }
.toast.show { transform: translateX(-50%); opacity: 1; }
.copybox { display: flex; gap: 8px; } .copybox input { font-size: .85rem; }

/* Landing */
.hero { background: linear-gradient(135deg, var(--p), #8f1426); color: #fff; padding: 46px 0 56px; }
.hero h1 { font-size: 2.6rem; }
.hero p { font-size: 1.1rem; opacity: .93; max-width: 640px; }
.steps { counter-reset: s; }
.steps li { list-style: none; margin: 0 0 12px; padding-left: 40px; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--a); color: #1b1300; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.steps { padding: 0; margin: 0; }

/* Public pages */
.pub-hero { background: var(--p); color: #fff; padding: 26px 0 70px; }
.pub-hero .logo { width: 64px; height: 64px; border-radius: 14px; background: var(--a); color: #1b1300; display: grid; place-items: center; font: 800 1.3rem var(--head); overflow: hidden; }
.pub-hero .logo img { width: 100%; height: 100%; object-fit: cover; }
.pub-main { margin-top: -50px; padding-bottom: 60px; }
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.pcard:hover { border-color: var(--p); }
.pcard .jn { font: 700 1.5rem var(--head); color: var(--p); }
.cheer { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cheer b { color: var(--p); }
.bigmoney { font: 700 2.4rem var(--head); }
.maxline { background: #fff7e3; border: 1px solid #ffe2a3; border-radius: var(--rs); padding: 10px 12px; font-weight: 700; }
.footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 24px 0 40px; }

@media (max-width: 640px) {
  h1 { font-size: 1.6rem; } .hero h1 { font-size: 2rem; }
  .top .hide-sm { display: none; }
  .card { padding: 14px; }
}
@media print {
  .top, .tabs, .drawer, .modal, .toast, .noprint { display: none !important; }
  body { background: #fff; }
}

/* Nov 25: Hey Sammi in black with white text, like Donate */
.top .btn.sammi { background: #111 !important; color: #fff !important; border-color: #111 !important; }
