/* notelkz.net */
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff') format('woff'); font-weight: 400 900; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #0b0c0b; --ink: #ecefea; --muted: #9aa39b; --faint: #5d655e; --track: #1c221d;
  --green: #00ff64; --green-ink: #03140a; --twitch: #9146ff; --discord: #5865f2;
  --line: rgba(236, 239, 234, 0.1);
  --glow-a: rgba(0, 255, 100, 0.2); --glow-b: rgba(145, 70, 255, 0.2);
}
/* holiday swaps the mood, nothing else */
body[data-state='holiday'] { --glow-a: rgba(255, 176, 64, 0.2); --glow-b: rgba(0, 200, 180, 0.14); }
body[data-state='live'] { --glow-a: rgba(0, 255, 100, 0.3); --glow-b: rgba(145, 70, 255, 0.28); }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100dvh; display: grid; place-items: center; padding: 24px;
  background: var(--bg);
  background-image: radial-gradient(circle at 85% 10%, var(--glow-a), transparent 55%), radial-gradient(circle at 5% 100%, var(--glow-b), transparent 50%);
  background-attachment: fixed;
  color: var(--ink); font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.6;
  transition: background-color .6s;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

main { width: 100%; max-width: 600px; display: flex; flex-direction: column; }
/* one column, four-up grid shared by the countdown and the tab buttons, grouped spacing */
.g-head { display: flex; align-items: center; margin-bottom: clamp(32px, 6vh, 48px); }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.04em; text-decoration: none; line-height: 1; }
.avatar { width: 36px; height: 36px; border-radius: 2px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.np { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; color: var(--faint); font-size: .85rem; text-decoration: none; line-height: 1.3; transition: color .2s; }
.np:hover { color: var(--muted); }
.np > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np b { color: var(--muted); font-weight: 600; }
.np:hover b { color: var(--ink); }
.eq { display: flex; align-items: flex-end; gap: 2px; width: 12px; height: 12px; flex: none; }
.eq i { width: 3px; height: 100%; background: var(--green); border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(1) { animation-delay: -.4s; } .eq i:nth-child(2) { animation-delay: -.2s; }
.np[data-playing='false'] .eq i { animation: none; background: var(--faint); height: 40%; }
.np[data-playing='false'] .eq i:nth-child(2) { height: 70%; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.g-state { display: grid; gap: 14px; justify-items: start; }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
body[data-state='live'] .dot { background: var(--green); animation: ping 1.8s infinite; }
body[data-state='live'] .status { color: var(--green); }
body[data-state='holiday'] .dot { background: #ffb040; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(0,255,100,.6); } 100% { box-shadow: 0 0 0 10px rgba(0,255,100,0); } }

h1 { margin: 4px 0 0 -0.05em; font-size: clamp(2.6rem, 9vw, 4rem); line-height: 1; letter-spacing: -0.045em; font-weight: 850; }
p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
p strong { color: var(--ink); font-weight: 600; }

.g-time { margin-top: 36px; display: grid; gap: 20px; }
.count, .tabs4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.count div { display: grid; gap: 8px; }
.count b { font-size: clamp(2.2rem, 7.5vw, 3.1rem); font-weight: 800; letter-spacing: -0.045em; line-height: .9; font-variant-numeric: tabular-nums; margin-left: -0.04em; }
.count span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; line-height: 1; }

.bar { height: 3px; width: 100%; background: var(--track); overflow: hidden; border-radius: 2px; }
.bar span { display: block; height: 100%; width: 25%; background: var(--green); animation: slide 1.8s ease-in-out infinite; border-radius: 2px; }
.bar[data-mode='progress'] span { animation: none; transition: width .6s; }
body[data-state='holiday'] .bar span { background: #ffb040; }
body[data-state='live'] .bar span { width: 100%; animation: breathe 2.4s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }
@keyframes breathe { 50% { opacity: .45; } }

.g-actions { margin-top: 36px; display: grid; gap: 12px; }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 16px; border-radius: 2px; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; transition: filter .2s, background .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { filter: brightness(1.1); }
.btn-twitch { background: var(--twitch); color: #fff; }
.btn-discord { background: var(--discord); color: #fff; }
.btn-ghost { height: 44px; padding: 0 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--ink); font-size: .9rem; }
.btn-ghost:hover { filter: none; border-color: rgba(236,239,234,.28); background: rgba(255,255,255,.06); }

.g-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.socials a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1; transition: color .2s; }
.socials a:hover { color: var(--ink); }
.socials svg { width: 15px; height: 15px; flex: none; }
.note { font-size: .85rem; color: var(--faint); }

@media (max-width: 520px) {
  .tabs4 { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; }
}
[hidden] { display: none !important; }

/* drawer for schedule, setup, game tracker, wall of fame */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(30rem, 100vw); background: #101310; border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(101%); transition: transform .45s cubic-bezier(.19,1,.22,1); }
body.open .scrim { opacity: 1; pointer-events: auto; } body.open .drawer { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer h2 { margin: 0; font-size: 1.3rem; letter-spacing: -0.02em; }
.x { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 2px; font-size: 1.2rem; line-height: 1; }
.drawer .body { overflow-y: auto; padding: 8px 24px 32px; }
.item { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.item span:first-child { color: var(--muted); } .item span:last-child { text-align: right; font-weight: 600; } .item span:only-child { text-align: left; }
.item b { display: block; font-weight: 600; color: var(--ink); } .item small { display: block; color: var(--faint); font-size: .85rem; }
.h3 { margin: 22px 0 4px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.tag { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 2px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; align-self: center; }
.tag.on { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.empty { color: var(--muted); padding: 16px 0; }
/* Game Tracker (from Logged & Loaded) */
.gt-list { list-style: none; margin: 0; padding: 0; }
.gt-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.gt-item--ordered { grid-template-columns: 20px 44px minmax(0, 1fr); }
.gt-pos { color: var(--faint); font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.gt-cover { display: block; width: 44px; height: 59px; object-fit: cover; border-radius: 2px; background: var(--track); }
.gt-text { display: grid; gap: 2px; min-width: 0; }
.gt-title { color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.gt-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.gt-text small { color: var(--faint); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-note { margin: 10px 0 0; font-size: .85rem; color: var(--faint); }
.gt-source { display: inline-block; margin-top: 22px; font-size: .82rem; color: var(--muted); text-underline-offset: 3px; }
.gt-source:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .eq i { animation: none !important; } .bar span { animation: none !important; width: 100%; opacity: .4; } .dot { animation: none !important; } .drawer, .scrim { transition: none; } }
