/* VibeClock: dark instrument panel with two accents (coding = teal, vibecoding = orange) */
:root {
  --bg: #080a0d;
  --bg-2: #0d1115;
  --card: #11161c;
  --card-2: #171d25;
  --line: #1f2731;
  --line-2: #2a3542;
  --text: #e8edf2;
  --muted: #7f8c9b;
  --code: #45d9c4;
  --code-2: #7af0dd;
  --code-dim: rgba(69, 217, 196, .12);
  --vibe: #ff8a4c;
  --vibe-2: #ffb07f;
  --vibe-dim: rgba(255, 138, 76, .12);
  --gold: #ffd166;
  --danger: #ff5d6c;
  --ok: #5ee08a;
  --radius: 18px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 20px 40px -24px rgba(0, 0, 0, .7);
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(1000px 520px at 88% -12%, rgba(255, 138, 76, .10), transparent 60%),
    radial-gradient(900px 520px at -5% -5%, rgba(69, 217, 196, .09), transparent 60%),
    var(--bg);
  color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask: linear-gradient(180deg, #000, transparent 70%); mask: linear-gradient(180deg, #000, transparent 70%);
}
::selection { background: rgba(69, 217, 196, .3); }
a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { color: var(--code); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.02rem; font-weight: 600; }
p { margin: 0 0 1em; }
code, kbd, pre, .mono { font-family: var(--mono); }
code { font-size: .86em; background: var(--card-2); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; }
kbd { font-size: .78em; background: var(--card-2); border: 1px solid var(--line-2); border-bottom-width: 2px; padding: .05em .4em; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }
small, .small { font-size: .86rem; }
.muted { color: var(--muted); }
.text { color: var(--text); }
.center { text-align: center; }
.right { text-align: right; }
.strong { font-weight: 600; }
.code-text { color: var(--code); }
.vibe-text { color: var(--vibe); }
.danger-text { color: var(--danger); }
.grad-text { background: linear-gradient(90deg, var(--code) 0%, var(--vibe) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wrap { width: min(1140px, 100% - 2.5rem); margin: 0 auto; padding: 2.2rem 0 4rem; flex: 1; }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem max(1.25rem, calc((100% - 1140px) / 2));
  background: rgba(8, 10, 13, .72); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; text-decoration: none; letter-spacing: -.02em; }
.logo {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--code) 0 62%, var(--vibe) 62% 100%);
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); mask: radial-gradient(circle, transparent 5px, #000 6px);
}
.logo.big { width: 44px; height: 44px; -webkit-mask: radial-gradient(circle, transparent 11px, #000 12px); mask: radial-gradient(circle, transparent 11px, #000 12px); margin-bottom: 1rem; }
.nav nav { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.nav nav > a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .94rem; padding: .4rem .7rem; border-radius: 9px; transition: color .15s, background .15s; }
.nav nav > a:hover { color: var(--text); background: var(--card); }
.nav nav > a.active { color: var(--text); background: var(--card-2); }
.nav nav a.btn { color: #06110f; margin-left: .3rem; padding: .42rem .85rem; }

.live-pill { display: inline-flex !important; align-items: center; gap: .45rem; border: 1px solid var(--line-2); font-size: .82rem !important; font-family: var(--mono); margin-left: .3rem; }
.live-pill.code { color: var(--code) !important; border-color: rgba(69, 217, 196, .35); background: var(--code-dim) !important; }
.live-pill.vibe { color: var(--vibe) !important; border-color: rgba(255, 138, 76, .4); background: var(--vibe-dim) !important; }
.pulse, .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; position: relative; flex: none; }
.live-pill.code .pulse, .live-tag.code .pulse { background: var(--code); }
.live-pill.vibe .pulse, .live-tag.vibe .pulse { background: var(--vibe); }
.pulse-dot { background: var(--ok); margin-right: .5rem; vertical-align: middle; }
.live-pill.code .pulse::after, .live-pill.vibe .pulse::after, .pulse-dot::after, .live-tag .pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ping 1.8s ease-out infinite;
}
.pulse-dot::after { border-color: var(--ok); }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.menu { position: relative; margin-left: .4rem; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.avatar-sm, .avatar-xs, .avatar-md, .avatar {
  display: inline-grid; place-items: center; border-radius: 10px; font-family: var(--mono); font-weight: 700; color: #071014;
  background: linear-gradient(135deg, var(--code), var(--vibe)); flex: none;
}
.avatar-sm { width: 34px; height: 34px; font-size: .9rem; }
.avatar-xs { width: 24px; height: 24px; font-size: .72rem; border-radius: 7px; margin-right: .6rem; vertical-align: middle; }
.avatar-md { width: 52px; height: 52px; font-size: 1.3rem; border-radius: 14px; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: .5rem;
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 48px -12px rgba(0,0,0,.7);
  display: flex; flex-direction: column;
}
.menu-name { padding: .5rem .7rem .6rem; font-weight: 600; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.menu-list a, .menu-list button { text-align: left; padding: .55rem .7rem; border-radius: 9px; color: var(--muted); text-decoration: none; background: none; border: 0; font: 500 .93rem var(--sans); cursor: pointer; width: 100%; }
.menu-list a:hover, .menu-list button:hover { background: var(--card); color: var(--text); }
.menu-list form { margin: 0; }

/* ---------- buttons and forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .72rem 1.25rem; border-radius: 12px; border: 1px solid transparent;
  background: linear-gradient(180deg, var(--code-2), var(--code)); color: #06110f; font: 600 .95rem var(--sans);
  text-decoration: none; cursor: pointer; transition: transform .12s ease, filter .12s ease, box-shadow .2s;
  box-shadow: 0 8px 24px -10px rgba(69, 217, 196, .6);
}
.btn:hover { filter: brightness(1.06); color: #06110f; transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(69, 217, 196, .7); }
.btn.small { padding: .44rem .85rem; font-size: .85rem; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn.ghost { background: rgba(255,255,255,.02); color: var(--text); border-color: var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--code); color: var(--code); }
.btn.danger { background: var(--danger); color: #1a0306; box-shadow: none; }
.btn.copied { background: var(--ok); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.linkbtn:hover { color: var(--text); }
.linkbtn.danger:hover { color: var(--danger); }
form.inline { display: inline; margin: 0; }

label { display: block; margin-bottom: 1rem; font-weight: 500; font-size: .92rem; }
label small { color: var(--muted); font-weight: 400; }
input:not([type=checkbox]), select, textarea {
  display: block; width: 100%; margin-top: .4rem; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 11px; padding: .72rem .9rem; font: 400 .95rem var(--sans);
  outline: none; transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus { border-color: var(--code); box-shadow: 0 0 0 3px var(--code-dim); }
label.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: .3rem; accent-color: var(--code); width: 1.05rem; height: 1.05rem; flex: none; }

.flash { padding: .85rem 1.1rem; border-radius: 12px; margin-bottom: 1.25rem; background: var(--card-2); border: 1px solid var(--line-2); }
.flash.ok { border-color: rgba(94, 224, 138, .4); background: rgba(94, 224, 138, .08); }
.flash.error { border-color: rgba(255, 93, 108, .45); background: rgba(255, 93, 108, .08); }

/* ---------- layout ---------- */
.card { background: linear-gradient(180deg, rgba(255,255,255,.012), transparent 40%), var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.45rem 1.55rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; flex-wrap: wrap; }
.card-head h2 { margin: 0; display: flex; align-items: center; gap: .55rem; }
.card-head a.muted { text-decoration: none; font-size: .88rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.grid-2 > .card { margin-bottom: 0; }
.span-2 { grid-column: span 2; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.page-head h1 { margin-bottom: .25rem; }
.page-head p { margin: 0; }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.eyebrow { display: flex; align-items: center; font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: .7rem !important; }
.label { font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--muted); }
.dot.code { background: var(--code); box-shadow: 0 0 10px var(--code); }
.dot.vibe { background: var(--vibe); box-shadow: 0 0 10px var(--vibe); }
.legend { display: flex; gap: 1rem; color: var(--muted); font-size: .85rem; }
.legend > span { display: inline-flex; align-items: center; gap: .4rem; }
.tag { display: inline-block; font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: .3rem .55rem; border-radius: 6px; background: var(--card-2); color: var(--muted); border: 1px solid var(--line-2); margin-bottom: .8rem; }
.card-head .tag { margin: 0 0 0 .4rem; }
.tag.code { color: var(--code); background: var(--code-dim); border-color: transparent; }
.tag.vibe { color: var(--vibe); background: var(--vibe-dim); border-color: transparent; }
.chip { display: inline-block; font: 600 .7rem var(--mono); padding: .22rem .5rem; border-radius: 6px; white-space: nowrap; }
.chip.code { color: var(--code); background: var(--code-dim); }
.chip.vibe { color: var(--vibe); background: var(--vibe-dim); }

.seg-toggle { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg-toggle a { padding: .45rem .95rem; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .9rem; transition: color .15s, background .15s; }
.seg-toggle a:hover { color: var(--text); }
.seg-toggle a.on { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg-toggle a.on.code { color: var(--code); }
.seg-toggle a.on.vibe { color: var(--vibe); }
.seg-toggle a.on.grad { color: var(--gold); }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; padding: 2.5rem 0 3.5rem; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
.lead { font-size: 1.12rem; color: #c3ccd6; max-width: 38rem; }
.lead.small { font-size: 1rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.7rem; }
.hero-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-points li::before { content: "✓"; color: var(--code); margin-right: .45rem; font-weight: 700; }
.hero-clock { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.dial { position: relative; width: min(350px, 80vw); aspect-ratio: 1; }
.ring { position: absolute; inset: 0; border-radius: 50%; }
.code-ring {
  background: conic-gradient(var(--code) 0 64%, transparent 64%);
  -webkit-mask: radial-gradient(circle, transparent 61%, #000 62%, #000 70%, transparent 71%); mask: radial-gradient(circle, transparent 61%, #000 62%, #000 70%, transparent 71%);
  filter: drop-shadow(0 0 18px rgba(69, 217, 196, .45)); animation: spin 40s linear infinite;
}
.vibe-ring {
  inset: 13%; background: conic-gradient(from 120deg, var(--vibe) 0 48%, transparent 48%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%, #000 69%, transparent 70%); mask: radial-gradient(circle, transparent 58%, #000 59%, #000 69%, transparent 70%);
  filter: drop-shadow(0 0 18px rgba(255, 138, 76, .45)); animation: spin 28s linear infinite reverse;
}
.dial::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-2); }
.dial-center { position: absolute; inset: 29%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dial-label { font: 600 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dial-value { font: 700 1.5rem var(--mono); margin: .2rem 0; white-space: nowrap; }
.dial-sub { font-size: .76rem; color: var(--muted); }
.dial-legend { display: flex; gap: 1.2rem; font: 500 .85rem var(--mono); color: var(--muted); }
.dial-legend span { display: inline-flex; align-items: center; gap: .45rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }
.mini-board { list-style: none; margin: 0; padding: 0; }
.mini-board li { display: flex; align-items: center; gap: .9rem; padding: .62rem 0; border-top: 1px solid var(--line); }
.mini-board li:first-child { border-top: 0; }
.mini-board .rank { font: 700 .85rem var(--mono); color: var(--muted); width: 1.4rem; }
.rank.r1 { color: var(--gold) !important; }
.rank.r2 { color: #d2dae4 !important; }
.rank.r3 { color: #e3a26f !important; }
.mini-board a { flex: 1; text-decoration: none; font-weight: 500; display: flex; align-items: center; }
.mini-board .time { font: 600 .9rem var(--mono); }

.transparency { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; margin: 3.5rem 0; }
.check-list, .cross-list { list-style: none; padding: 0; margin: 1rem 0; }
.check-list li, .cross-list li { padding: .4rem 0 .4rem 1.7rem; position: relative; color: #c3ccd6; font-size: .95rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--code); font-weight: 700; }
.cross-list li::before { content: "✕"; position: absolute; left: 0; color: var(--danger); font-weight: 700; }
.event-sample { background: #07090b; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1rem; box-shadow: 0 30px 60px -30px rgba(69, 217, 196, .25); }
.event-sample-head { font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: .2rem .4rem .8rem; display: flex; align-items: center; }
.ev { display: grid; grid-template-columns: auto auto 1fr auto; gap: .8rem; align-items: center; padding: .7rem .5rem; border-top: 1px solid var(--line); font-size: .86rem; color: #c3ccd6; }
.ev-time { font: 500 .8rem var(--mono); color: var(--muted); white-space: nowrap; }
.ev-plus { font: 600 .8rem var(--mono); color: var(--ok); white-space: nowrap; }
.ev-plus.zero { color: var(--muted); font-weight: 500; }

.steps { margin-top: 2.5rem; }
.steps ol { list-style: none; counter-reset: s; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; }
.steps li::before { content: "0" counter(s); font: 700 .8rem var(--mono); color: var(--vibe); }
.steps li span { color: var(--muted); font-size: .93rem; }

/* ---------- auth ---------- */
.auth { max-width: 440px; margin: 2rem auto; padding: 2.2rem; text-align: left; }
.auth h1 { font-size: 1.8rem; margin-bottom: 1.3rem; }

/* ---------- dashboard ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.stat::after { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 0 3px 3px 0; background: var(--line-2); }
.stat.code::after { background: var(--code); box-shadow: 0 0 12px var(--code); }
.stat.vibe::after { background: var(--vibe); box-shadow: 0 0 12px var(--vibe); }
.stat .value { font: 700 1.5rem var(--mono); letter-spacing: -.02em; }
.stat.code .value { color: var(--code); }
.stat.vibe .value { color: var(--vibe); }
.totals-row { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-bottom: 1.3rem; }
.totals-row > div { display: flex; flex-direction: column; gap: .2rem; }
.totals-row strong { font: 600 1rem var(--mono); }
.onboarding { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; border-color: rgba(255, 138, 76, .35); background: linear-gradient(120deg, var(--vibe-dim), transparent 60%), var(--card); }
.onboarding p { margin: 0; }
.onboarding .btn { margin-right: .4rem; }

.timeline { display: flex; flex-direction: column; gap: .55rem; }
.tl-lane { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: .8rem; }
.tl-name { font: 500 .8rem var(--mono); color: var(--muted); }
.tl-track { position: relative; height: 22px; border-radius: 7px; background: repeating-linear-gradient(90deg, var(--bg-2) 0 calc(100% / 24 - 1px), #141a21 calc(100% / 24 - 1px) calc(100% / 24)); overflow: hidden; }
.tl-seg { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; min-width: 3px; }
.tl-lane.code .tl-seg { background: linear-gradient(180deg, var(--code-2), var(--code)); box-shadow: 0 0 12px rgba(69, 217, 196, .5); }
.tl-lane.vibe .tl-seg { background: linear-gradient(180deg, var(--vibe-2), var(--vibe)); box-shadow: 0 0 12px rgba(255, 138, 76, .5); }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); opacity: .55; }
.timeline-hours { display: flex; justify-content: space-between; margin: .5rem 0 0 7.3rem; font: 500 .72rem var(--mono); color: var(--muted); }

.bars { display: flex; align-items: stretch; gap: 6px; height: 230px; padding-top: .5rem; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 0; position: relative; }
.bar-stack { flex: 1; width: 100%; max-width: 48px; display: flex; flex-direction: column-reverse; border-radius: 9px; background: var(--bg-2); overflow: hidden; transition: box-shadow .15s; }
.seg { width: 100%; transition: height .6s cubic-bezier(.2, .8, .2, 1); }
.seg.code { background: linear-gradient(180deg, var(--code-2), var(--code)); }
.seg.vibe { background: linear-gradient(180deg, var(--vibe-2), var(--vibe)); }
.bar-col:hover .bar-stack { box-shadow: 0 0 0 1px var(--line-2), 0 0 24px -6px rgba(255,255,255,.15); }
.bar-label { font: 500 .72rem var(--mono); color: var(--muted); height: 1em; white-space: nowrap; }
.bar-col.today .bar-label { color: var(--text); }
.bar-tip {
  position: absolute; bottom: calc(100% - 1.5rem); left: 50%; transform: translate(-50%, 6px); opacity: 0; pointer-events: none; z-index: 5;
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; padding: .55rem .7rem; white-space: nowrap;
  display: flex; flex-direction: column; gap: .1rem; font: 500 .76rem var(--mono); transition: opacity .15s, transform .15s; box-shadow: 0 12px 30px -10px rgba(0,0,0,.8);
}
.bar-tip b { font-family: var(--sans); font-size: .82rem; margin-bottom: .15rem; }
.bar-col:hover .bar-tip { opacity: 1; transform: translate(-50%, 0); }

.claude-card { border-color: rgba(255, 138, 76, .22); background: radial-gradient(600px 200px at 100% 0%, var(--vibe-dim), transparent 70%), var(--card); }
.claude-mark { width: 18px; height: 18px; display: inline-block; background: var(--vibe); -webkit-mask: radial-gradient(circle, #000 30%, transparent 32%) 0 0 / 6px 6px; mask: radial-gradient(circle, #000 30%, transparent 32%) 0 0 / 6px 6px; border-radius: 4px; }
.claude-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.mini-stat { background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 14px; padding: .95rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.mini-stat strong { font: 700 1.35rem var(--mono); }
.mini-stat small { color: var(--muted); font-size: .78rem; }
.plus { color: var(--ok); }
.minus { color: var(--danger); font-size: .9em; }
.models { margin-top: 1.2rem; }
.models .hlist { margin-top: .4rem; }
.claude-empty { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.claude-empty p { margin: 0; max-width: 40rem; }

.hlist .row { display: grid; grid-template-columns: minmax(0, 9.5rem) 1fr auto; align-items: center; gap: .8rem; padding: .42rem 0; }
.hlist .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; font-size: .93rem; }
.hlist .track { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.hlist .fill { height: 100%; border-radius: 99px; background: var(--code); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.hlist.vibe .fill { background: var(--vibe); }
.hlist.mixed .fill { background: linear-gradient(90deg, var(--code), var(--vibe)); }
.hlist .time { font: 500 .8rem var(--mono); color: var(--muted); white-space: nowrap; }

.ratio, .mini-ratio { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--bg-2); margin-bottom: .8rem; gap: 2px; }
.ratio.big { height: 16px; }
.mini-ratio { height: 7px; width: 110px; margin: 0; }
.ratio-code { background: var(--code); border-radius: 99px; }
.ratio-vibe { background: var(--vibe); border-radius: 99px; }

.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.badge { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .7rem .38rem .5rem; border-radius: 99px; font: 600 .8rem var(--sans); background: var(--card-2); border: 1px solid var(--line-2); cursor: default; }
.badge i { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: .7rem; background: var(--line-2); }
.badge.fire i::before { content: "🔥"; } .badge.streak i::before { content: "📅"; } .badge.vibe i::before { content: "✨"; }
.badge.code i::before { content: "⌨"; } .badge.poly i::before { content: "🌐"; } .badge.marathon i::before { content: "🏃"; }
.badge.tokens i::before { content: "⚡"; } .badge.ship i::before { content: "🚀"; }
.badge.fire, .badge.tokens { border-color: rgba(255, 138, 76, .45); color: var(--vibe-2); }
.badge.vibe { border-color: rgba(255, 138, 76, .45); color: var(--vibe-2); }
.badge.code, .badge.poly { border-color: rgba(69, 217, 196, .4); color: var(--code-2); }
.badge.marathon, .badge.ship, .badge.streak { border-color: rgba(255, 209, 102, .4); color: var(--gold); }

.heatmap { display: grid; grid-template-rows: repeat(7, 13px); grid-auto-flow: column; grid-auto-columns: 13px; gap: 3px; overflow-x: auto; padding-bottom: .4rem; }
.heatmap i, .heat-legend i { display: block; width: 13px; height: 13px; border-radius: 3px; background: var(--bg-2); }
.l1 { background: rgba(69, 217, 196, .25) !important; }
.l2 { background: rgba(69, 217, 196, .5) !important; }
.l3 { background: rgba(69, 217, 196, .85) !important; }
.l4 { background: var(--vibe) !important; box-shadow: 0 0 6px rgba(255, 138, 76, .6); }
.heat-legend { display: flex; align-items: center; gap: 4px; margin-top: .6rem; font-size: .78rem; color: var(--muted); }
.heat-legend span { margin: 0 .3rem; }

/* ---------- tables, leaderboard ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: .65rem .75rem; border-bottom: 1px solid var(--line); }
.table td { padding: .78rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td a { text-decoration: none; font-weight: 500; }
.table th.right, .table td.right { text-align: right; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover td { background: rgba(255,255,255,.015); }
.board-card { padding: .6rem .8rem; }
.board .rank { font: 700 .95rem var(--mono); color: var(--muted); width: 3rem; }
.board .who { display: inline-flex; align-items: center; }
.board tr.p1 .rank { color: var(--gold); }
.board tr.p2 .rank { color: #d2dae4; }
.board tr.p3 .rank { color: #e3a26f; }
.board tr.me td { background: var(--code-dim) !important; }
.board tr.me td:first-child { border-radius: 10px 0 0 10px; }
.board tr.me td:last-child { border-radius: 0 10px 10px 0; }
.filters { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.me-rank { padding: 1rem 1.3rem; }
.empty { text-align: center; padding: 2.5rem; }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: end; margin-bottom: 1.4rem; }
.podium-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .45rem; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1rem 0; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.podium-card:hover { transform: translateY(-3px); color: var(--text); }
.podium-card b { font-size: 1.05rem; }
.podium-rank { position: absolute; top: .8rem; left: 1rem; font: 700 1.4rem var(--mono); }
.podium-value { font: 600 1rem var(--mono); color: var(--muted); }
.podium-base { width: 100%; margin-top: .8rem; height: 14px; border-radius: 10px 10px 0 0; }
.podium-card.p1 { border-color: rgba(255, 209, 102, .45); background: radial-gradient(300px 160px at 50% 0%, rgba(255, 209, 102, .14), transparent 70%), var(--card); padding-top: 2rem; }
.podium-card.p1 .podium-rank, .podium-card.p1 .podium-value { color: var(--gold); }
.podium-card.p1 .podium-base { height: 34px; background: linear-gradient(180deg, rgba(255, 209, 102, .5), rgba(255, 209, 102, .1)); }
.podium-card.p1 .avatar-md { width: 64px; height: 64px; font-size: 1.6rem; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--gold); }
.podium-card.p2 .podium-rank { color: #d2dae4; }
.podium-card.p2 .podium-base { height: 22px; background: linear-gradient(180deg, rgba(210, 218, 228, .4), rgba(210, 218, 228, .06)); }
.podium-card.p3 .podium-rank { color: #e3a26f; }
.podium-card.p3 .podium-base { height: 14px; background: linear-gradient(180deg, rgba(227, 162, 111, .45), rgba(227, 162, 111, .06)); }

/* ---------- connect ---------- */
.status-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.status-card { display: flex; gap: .9rem; align-items: center; background: var(--card); border: 1px dashed var(--line-2); border-radius: 14px; padding: 1rem 1.2rem; }
.status-card div { display: flex; flex-direction: column; }
.status-card small { color: var(--muted); }
.status-card.ok { border-style: solid; border-color: rgba(94, 224, 138, .4); background: linear-gradient(120deg, rgba(94, 224, 138, .07), transparent 60%), var(--card); }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); flex: none; position: relative; }
.status-card .status-dot { animation: wait 1.6s ease-in-out infinite; }
.status-card.ok .status-dot { background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: none; }
@keyframes wait { 50% { opacity: .35; } }
.step-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font: 700 .85rem var(--mono); background: var(--card-2); border: 1px solid var(--line-2); }
.step-num.vibe { background: var(--vibe-dim); color: var(--vibe); border-color: transparent; }
.step-num.code { background: var(--code-dim); color: var(--code); border-color: transparent; }
.keybox { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.keybox code { font-size: .9rem; padding: .6rem .85rem; flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; }
.secret[data-hidden="1"] { color: transparent; text-shadow: 0 0 9px rgba(232, 237, 242, .55); user-select: none; }
.secret-block { position: relative; cursor: pointer; transition: filter .2s; }
.secret-block[data-hidden="1"] { filter: blur(5px); }
.tabs .tab-bar { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; flex-wrap: wrap; }
.tabs .tab-bar button { background: none; border: 0; border-bottom: 2px solid transparent; padding: .7rem 1rem; color: var(--muted); font: 600 .93rem var(--sans); cursor: pointer; margin-bottom: -1px; display: inline-flex; gap: .5rem; align-items: center; }
.tabs .tab-bar button:hover { color: var(--text); }
.tabs .tab-bar button.on { color: var(--vibe); border-bottom-color: var(--vibe); }
.rec { font: 600 .62rem var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: .18rem .4rem; border-radius: 5px; background: var(--vibe-dim); color: var(--vibe); }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.pros { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pros span { font-size: .8rem; padding: .3rem .65rem; border-radius: 99px; background: rgba(94, 224, 138, .08); color: #9ff0bb; border: 1px solid rgba(94, 224, 138, .25); }
.pros span::before { content: "✓ "; }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin: 1rem 0; }
.option { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; min-width: 0; }
.option p { margin-bottom: .8rem; }
.cmd { position: relative; background: #06080a; border: 1px solid var(--line-2); border-radius: 12px; padding: .9rem; margin-bottom: .8rem; }
.cmd pre { margin: 0 0 .75rem; white-space: pre-wrap; word-break: break-word; font-size: .78rem; line-height: 1.55; color: #cfe; max-height: 300px; overflow: auto; }
.note { font-size: .86rem; color: #f3cfa9; background: var(--vibe-dim); border: 1px solid rgba(255, 138, 76, .3); border-radius: 12px; padding: .8rem 1rem; }
.steps-list { padding-left: 1.2rem; margin: .4rem 0 1rem; }
.steps-list li { margin-bottom: .45rem; }
.copyable { cursor: pointer; }
.copyable:hover { border-color: var(--code); }

/* ---------- live log ---------- */
.live-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.live-grid > .card { margin-bottom: 0; }
.live-state { display: flex; align-items: center; gap: .7rem; font-size: 1.5rem; margin: .5rem 0 1rem; }
.live-state .status-dot { width: 14px; height: 14px; }
.live-state.code { color: var(--code); } .live-state.code .status-dot { background: var(--code); box-shadow: 0 0 14px var(--code); }
.live-state.vibe { color: var(--vibe); } .live-state.vibe .status-dot { background: var(--vibe); box-shadow: 0 0 14px var(--vibe); }
.live-today { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.live-today div { display: flex; flex-direction: column; gap: .15rem; }
.live-today strong { font: 600 1.05rem var(--mono); }
.sources { display: flex; flex-direction: column; gap: .5rem; margin-top: .7rem; }
.source-item { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.source-item div { display: flex; flex-direction: column; }
.source-item small { color: var(--muted); font-size: .8rem; }
.source-item.live .status-dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.source-item.recent .status-dot { background: var(--gold); }
.log-head { display: grid; grid-template-columns: 7.5rem 7rem 1fr 5rem; gap: .8rem; padding: 0 .7rem .5rem; font: 600 .66rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-bottom: 1px solid var(--line); }
.log { max-height: 640px; overflow-y: auto; }
.ev-row { border-bottom: 1px solid var(--line); }
.ev-row summary { display: grid; grid-template-columns: 7.5rem 7rem 1fr 5rem; gap: .8rem; align-items: center; padding: .7rem; cursor: pointer; list-style: none; font-size: .88rem; border-radius: 10px; }
.ev-row summary::-webkit-details-marker { display: none; }
.ev-row summary:hover { background: rgba(255,255,255,.02); }
.ev-row .chip { justify-self: start; }
.ev-row .ev-plus { text-align: right; }
.ev-info { display: flex; flex-wrap: wrap; gap: .35rem; color: #c3ccd6; min-width: 0; }
.ev-info .sep { color: var(--line-2); }
.ev-row.fresh { animation: flashrow 2.4s ease; }
@keyframes flashrow { 0% { background: rgba(94, 224, 138, .14); } 100% { background: transparent; } }
.ev-body { padding: 0 .7rem 1rem 8.3rem; }
.ev-json { background: #06080a; border: 1px solid var(--line); border-radius: 10px; padding: .8rem; margin: .4rem 0 0; font-size: .78rem; color: #cfe; overflow-x: auto; }
.empty-log { padding: 2rem .7rem; text-align: center; }

/* ---------- paste bin ---------- */
.paste-options { display: flex; gap: 1rem; flex-wrap: wrap; }
.paste-options label { flex: 0 0 auto; min-width: 160px; }
.paste-options label.grow { flex: 1 1 260px; }
.editor-frame { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #0b0f14; box-shadow: var(--shadow); }
.editor-frame.view { margin-bottom: 1.25rem; }
.editor-bar { display: flex; align-items: center; gap: 6px; padding: .6rem .9rem; background: #10151b; border-bottom: 1px solid var(--line); font: 500 .78rem var(--mono); color: var(--muted); }
.editor-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.editor-bar i:nth-child(2) { background: #febc2e; }
.editor-bar i:nth-child(3) { background: #28c840; }
.editor-bar span { margin-left: .8rem; }
.code-input { min-height: 440px; font: 400 .88rem/1.65 var(--mono) !important; tab-size: 4; resize: vertical; background: transparent !important; border: 0 !important; border-radius: 0 !important; margin: 0 !important; box-shadow: none !important; }
.paste-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; gap: 1rem; flex-wrap: wrap; }
.paste-head h1 { word-break: break-word; }
.paste-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.code-view { display: flex; overflow: hidden; }
.code-view pre { margin: 0; padding: 1.1rem 0; font: 400 .86rem/1.65 var(--mono); }
.gutter { padding: 1.1rem .9rem !important; text-align: right; color: #3f4a57; user-select: none; border-right: 1px solid var(--line); background: #090c10; }
.code-pre { flex: 1; overflow-x: auto; padding: 1.1rem 1.2rem !important; }
.code-pre code { background: none; border: 0; padding: 0 !important; font-size: inherit; display: block; white-space: pre; tab-size: 4; }
.code-pre code.hljs { background: none; }
.paste-list { list-style: none; margin: 0; padding: 0; }
.paste-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .78rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.paste-list li:first-child { border-top: 0; }
.paste-list a { text-decoration: none; font-weight: 500; }
.paste-list .muted { font-size: .85rem; }

/* ---------- profile ---------- */
.profile-hero { background: var(--card); }
.profile-hero h1 { margin-bottom: .25rem; }
.profile-hero p { margin: 0 0 .3rem; }
.avatar { width: 96px; height: 96px; border-radius: 26px; font-size: 2.5rem; box-shadow: 0 16px 40px -14px rgba(255, 138, 76, .6); }
.live-tag { display: inline-flex; align-items: center; gap: .5rem; text-transform: none; letter-spacing: 0; font-size: .82rem; padding: .25rem .6rem; border-radius: 99px; }
.live-tag.code { color: var(--code); background: var(--code-dim); }
.live-tag.vibe { color: var(--vibe); background: var(--vibe-dim); }

/* ---------- pictures and banners ---------- */
img.img { object-fit: cover; background: var(--card-2); display: inline-block; }
img.avatar-xs.img { border-radius: 7px; }
.menu summary img.avatar-sm, .menu summary span.avatar-sm { display: inline-grid; }
.menu summary img.avatar-sm { border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); }
a.author { display: inline-flex; align-items: center; text-decoration: none; }
a.author .avatar-xs { margin-right: .4rem; width: 20px; height: 20px; }
.profile-banner {
  height: 210px; border-radius: 14px; background-size: cover; background-position: center;
  background-color: var(--bg-2);
  background-image:
    radial-gradient(500px 200px at 15% 120%, rgba(69, 217, 196, .35), transparent 70%),
    radial-gradient(500px 220px at 90% -20%, rgba(255, 138, 76, .35), transparent 70%),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
}
.profile-banner.has-image { background-size: cover; }
.profile-hero { display: block !important; padding: .6rem !important; }
.profile-body { display: flex; gap: 1.5rem; align-items: flex-start; padding: 0 1.2rem 1.2rem; position: relative; flex-wrap: wrap; }
.profile-body .avatar { margin-top: -54px; position: relative; border: 5px solid var(--card); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .8); }
.profile-body .profile-info { flex: 1; min-width: 240px; padding-top: 1.1rem; }
.edit-profile { align-self: flex-start; margin-top: 1rem; }
.look-preview { position: relative; margin-bottom: 1.4rem; }
.look-preview .profile-banner { height: 170px; }
.look-avatar { position: absolute; left: 1.4rem; bottom: -32px; }
.look-avatar .avatar { width: 92px; height: 92px; border: 5px solid var(--card); font-size: 2.2rem; }
.look-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.6rem; }
.upload-form { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; margin: 0; }
.file-pick { display: flex; align-items: center; gap: .7rem; margin: 0; flex: 1 1 100%; cursor: pointer; }
.file-pick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-pick .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- errors, footer ---------- */
.error-page { text-align: center; padding: 5rem 0; }
.error-code { font: 700 clamp(4rem, 14vw, 8rem) var(--mono); background: linear-gradient(90deg, var(--code), var(--vibe)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; line-height: 1; margin-bottom: 1rem; }
.foot { display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 1.6rem max(1.25rem, calc((100% - 1140px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.foot-brand { display: flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 600; }
.foot-brand .logo { width: 16px; height: 16px; -webkit-mask: radial-gradient(circle, transparent 3.5px, #000 4.5px); mask: radial-gradient(circle, transparent 3.5px, #000 4.5px); }
.foot-legend { display: flex; gap: 1rem; }
.foot-legend span { display: inline-flex; align-items: center; gap: .45rem; }

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

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero, .transparency { grid-template-columns: 1fr; gap: 2rem; }
  .features { grid-template-columns: 1fr 1fr; }
  .stats, .claude-grid { grid-template-columns: 1fr 1fr; }
  .option-grid, .live-grid { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .grid-2, .features, .steps ol, .status-row { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .hide-sm { display: none; }
  .nav nav { justify-content: flex-start; }
  .bars { gap: 3px; height: 180px; }
  .hlist .row { grid-template-columns: minmax(0, 6rem) 1fr auto; }
  .podium { gap: .5rem; }
  .podium-card { padding: 1rem .5rem 0; }
  .podium-card b { font-size: .85rem; }
  .log-head { display: none; }
  .ev-row summary { grid-template-columns: auto 1fr auto; }
  .ev-row .chip { display: none; }
  .ev-body { padding-left: .7rem; }
  .tl-lane { grid-template-columns: 1fr; gap: .2rem; }
  .timeline-hours { margin-left: 0; }
  .look-forms { grid-template-columns: 1fr; }
  .profile-banner { height: 140px; }
}

.js .js-hide { display: none; }

/* =====================================================================
   Home page: one bold moment (the day ribbon), everything else quiet
   ===================================================================== */
.home .wrap { padding-top: 0; }
.home .h-h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -.03em; margin-bottom: 1.4rem; }
.home section { margin: 0 0 6.5rem; }

.h-hero { padding-top: clamp(2.5rem, 7vw, 5.5rem); }
.h-title { font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; max-width: 17ch; margin: 0 0 2rem; }
.h-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3.2rem; }
.h-lead { font-size: 1.15rem; line-height: 1.6; color: #b9c3ce; max-width: 46ch; margin: 0; }
.h-cta { display: flex; gap: .7rem; flex-wrap: wrap; }

/* the day ribbon */
.day { margin: 0; position: relative; }
.day-caption { font-size: .88rem; color: var(--muted); margin-bottom: .9rem; }
.day-lanes { position: relative; display: flex; flex-direction: column; gap: 10px; }
.day-lane { display: grid; grid-template-columns: 4.2rem 1fr; align-items: center; gap: 1rem; }
.day-name { font: 500 .9rem var(--sans); color: var(--muted); }
.day-lane.you .day-name { color: var(--code); }
.day-lane.claude .day-name { color: var(--vibe); }
.day-track {
  position: relative; height: 58px; border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 8 - 1px), rgba(255,255,255,.07) calc(100% / 8 - 1px) calc(100% / 8)),
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 24 - 1px), rgba(255,255,255,.025) calc(100% / 24 - 1px) calc(100% / 24)),
    #0c1015;
  border: 1px solid var(--line);
}
.day-seg { position: absolute; top: 9px; bottom: 9px; border-radius: 8px; width: 0; }
.day-lane.you .day-seg { background: linear-gradient(180deg, var(--code-2), var(--code)); box-shadow: 0 0 22px -2px rgba(69, 217, 196, .55); }
.day-lane.claude .day-seg { background: linear-gradient(180deg, var(--vibe-2), var(--vibe)); box-shadow: 0 0 22px -2px rgba(255, 138, 76, .55); }
.day-note { position: absolute; white-space: nowrap; font-size: .84rem; color: #c9d2dc; opacity: 0; transition: opacity .4s ease, transform .4s ease; pointer-events: none; }
.day-note::before { content: ""; position: absolute; left: 0; width: 1px; height: 14px; background: var(--line-2); }
.day-lane.you .day-note { bottom: calc(100% + 10px); transform: translateY(4px); padding-left: .6rem; }
.day-lane.you .day-note::before { top: 100%; }
.day-lane.claude .day-note { top: calc(100% + 10px); transform: translateY(-4px); padding-left: .6rem; }
.day-lane.claude .day-note::before { bottom: 100%; }
.day-note.on { opacity: 1; transform: none; }
.day-head { position: absolute; top: -6px; bottom: -6px; left: calc(4.2rem + 1rem); width: 2px; background: var(--text); border-radius: 2px; opacity: 0; box-shadow: 0 0 14px rgba(255,255,255,.5); }
.day-head::after { content: attr(data-time); position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font: 600 .78rem var(--mono); color: var(--text); background: var(--card-2); border: 1px solid var(--line-2); padding: .1rem .4rem; border-radius: 6px; }
.day-hours { display: flex; justify-content: space-between; margin: .7rem 0 0 calc(4.2rem + 1rem); font: 500 .75rem var(--mono); color: #4f5b69; }
.day-lanes { margin-top: 2.6rem; }
.day-lanes .day-lane.claude { margin-bottom: 2.4rem; }
.day-totals { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(1.5rem, 6vw, 5rem); margin-top: 2.2rem; padding-left: calc(4.2rem + 1rem); }
.tot { display: flex; flex-direction: column; gap: .3rem; }
.tot b { font: 600 clamp(2rem, 4.6vw, 3.4rem) var(--mono); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tot span { color: var(--muted); font-size: .92rem; }
.tot.you b { color: var(--code); }
.tot.claude b { color: var(--vibe); }
.tot.all b { color: var(--text); }
.h-pulse { display: flex; align-items: center; gap: .2rem; margin: 3rem 0 0; color: var(--muted); font-size: .95rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

/* sources */
.src-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.src h3 { font-size: 1.25rem; margin: 1.4rem 0 .5rem; }
.src p { color: #aab5c1; max-width: 48ch; margin: 0; }
.mock-editor, .mock-term { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #0b0f14; font: 400 .86rem/1.75 var(--mono); }
.mock-code { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; color: #d5dde6; min-height: 150px; }
.mock-code span { white-space: pre; }
.mock-code .k { font-style: normal; color: #c792ea; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--code); vertical-align: -2px; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mock-status { display: flex; gap: 1.2rem; justify-content: flex-end; padding: .35rem .9rem; background: #121821; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.mock-status span:first-child { margin-right: auto; }
.mock-clock { color: var(--code); font-weight: 600; }
.mock-term { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; min-height: 183px; }
.mock-term span { white-space: pre-wrap; color: #d5dde6; }
.t-dim { color: #6c7886 !important; }
.t-acc { color: var(--vibe); }
.t-ok { color: var(--vibe-2) !important; }

/* scoreboard */
.h-board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.h-link { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.h-link:hover { color: var(--text); border-color: var(--text); }
.board-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.scoreboard { border-top: 2px solid var(--line-2); padding-top: 1rem; }
.scoreboard.claude { border-color: var(--vibe); }
.scoreboard.you { border-color: var(--code); }
.scoreboard h3 { font-size: 1rem; font-weight: 500; color: var(--muted); margin-bottom: .6rem; }
.scoreboard ol { list-style: none; margin: 0; padding: 0; }
.scoreboard li { display: grid; grid-template-columns: 1.8rem 1fr auto; align-items: center; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.scoreboard li:last-child { border-bottom: 0; }
.scoreboard a { display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-rank { font: 600 .9rem var(--mono); color: #4f5b69; }
.scoreboard li:first-child .sb-rank { color: var(--gold); }
.sb-time { font: 600 1.25rem var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.scoreboard.claude .sb-time { color: var(--vibe); }
.scoreboard.you .sb-time { color: var(--code); }

/* transparency */
.h-open { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.h-open-text p { color: #aab5c1; max-width: 46ch; }
.h-facts { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.2rem; margin: 1.6rem 0 0; }
.h-facts dt { font-weight: 600; }
.h-facts dd { margin: 0; color: #aab5c1; }
.h-facts dt:last-of-type { color: var(--danger); }

/* steps (a real sequence, so numbers make sense) */
.h-steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.h-steps ol::before { content: ""; position: absolute; top: 17px; left: 18px; right: 18px; height: 1px; background: var(--line-2); }
.h-steps li { counter-increment: step; position: relative; padding-top: 3.2rem; color: #aab5c1; }
.h-steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); font: 600 .9rem var(--mono); color: var(--text); }
.h-steps li b { display: block; color: var(--text); font-weight: 600; margin-bottom: .2rem; }

/* faq */
.h-faq details { border-bottom: 1px solid var(--line); }
.h-faq details:first-of-type { border-top: 1px solid var(--line); }
.h-faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; font-size: 1.08rem; font-weight: 500; position: relative; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font: 400 1.5rem var(--mono); color: var(--muted); transition: transform .2s ease; }
.h-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.h-faq details p { color: #aab5c1; max-width: 62ch; margin: 0 0 1.3rem; }

/* final */
.h-final { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 2.4rem 0 0; border-top: 1px solid var(--line); margin-bottom: 2rem !important; }
.h-final-line { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 500; letter-spacing: -.02em; margin: 0; max-width: 30ch; }

:focus-visible { outline: 2px solid var(--code); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 900px) {
  .src-grid, .board-pair, .h-open { grid-template-columns: 1fr; }
  .h-steps ol { grid-template-columns: 1fr; gap: 1.6rem; }
  .h-steps ol::before { display: none; }
}
@media (max-width: 720px) {
  .day-note { display: none; }
  .day-lane { grid-template-columns: 3.2rem 1fr; gap: .6rem; }
  .day-track { height: 44px; }
  .day-seg { top: 7px; bottom: 7px; border-radius: 6px; }
  .day-hours { margin-left: calc(3.2rem + .6rem); }
  .day-hours span:nth-child(even) { visibility: hidden; }
  .day-head { left: calc(3.2rem + .6rem); }
  .day-lanes { margin-top: 2rem; }
  .day-lanes .day-lane.claude { margin-bottom: 0; }
  .day-totals { grid-template-columns: 1fr 1fr; padding-left: 0; }
  .tot.all { grid-column: span 2; }
  .home section { margin-bottom: 4.5rem; }
}

/* =====================================================================
   Hover details and small motion across the app
   ===================================================================== */
.vc-tip {
  position: absolute; top: 0; left: 0; z-index: 100; pointer-events: none;
  display: flex; flex-direction: column; gap: .12rem; max-width: 260px;
  background: rgba(23, 29, 37, .96); backdrop-filter: blur(8px); border: 1px solid var(--line-2); border-radius: 11px;
  padding: .55rem .75rem; font: 500 .8rem/1.45 var(--sans); color: #c9d2dc;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .85);
  opacity: 0; transition: opacity .12s ease;
}
.vc-tip.on { opacity: 1; }
.vc-tip b { color: var(--text); font-weight: 600; font-size: .84rem; }
.vc-tip span { font-family: var(--mono); font-size: .76rem; }

/* heatmap: wave in, grow on hover, focus a level from the legend */
.heatmap { padding: 6px 4px 8px; margin: -6px -4px 0; }
.heatmap i { position: relative; transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease; animation: cellIn .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 11ms); cursor: pointer; }
.heatmap i:hover { transform: scale(1.65); z-index: 2; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--text); }
.heatmap i.today { box-shadow: 0 0 0 1px var(--text); }
.heatmap i.today:hover { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--text); }
@keyframes cellIn { from { opacity: 0; transform: scale(.4); } }
.heatmap[data-focus] i { opacity: .14; }
.heatmap[data-focus="0"] i.l0, .heatmap[data-focus="1"] i.l1, .heatmap[data-focus="2"] i.l2,
.heatmap[data-focus="3"] i.l3, .heatmap[data-focus="4"] i.l4 { opacity: 1; }
.heat-legend i { cursor: pointer; transition: transform .15s ease; }
.heat-legend i:hover { transform: scale(1.35); }

/* bar chart: focus the hovered day */
.bars .bar-col { transition: opacity .2s ease; }
.bars:hover .bar-col:not(:hover) { opacity: .4; }
.bar-col:hover .seg { filter: brightness(1.12); }

/* timeline */
.tl-seg { transition: transform .15s ease, filter .15s ease; cursor: pointer; }
.tl-seg:hover { transform: scaleY(1.28); filter: brightness(1.15); z-index: 2; }

/* lists */
.hlist .row { border-radius: 9px; padding-left: .45rem; padding-right: .45rem; margin: 0 -.45rem; transition: background .15s ease; cursor: default; }
.hlist .row:hover { background: rgba(255, 255, 255, .035); }
.hlist .row:hover .name { color: var(--text); }
.hlist .row:hover .fill { filter: brightness(1.2); box-shadow: 0 0 12px rgba(69, 217, 196, .45); }
.hlist.vibe .row:hover .fill { box-shadow: 0 0 12px rgba(255, 138, 76, .45); }
.hlist .row:hover .time { color: var(--text); }

/* stat cards */
.stat, .mini-stat { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.stat:hover, .mini-stat:hover { transform: translateY(-3px); border-color: var(--line-2); }
.stat.code:hover { border-color: rgba(69, 217, 196, .45); box-shadow: 0 18px 40px -22px rgba(69, 217, 196, .55); }
.stat.vibe:hover { border-color: rgba(255, 138, 76, .5); box-shadow: 0 18px 40px -22px rgba(255, 138, 76, .55); }
.stat::after { transition: top .25s ease, bottom .25s ease; }
.stat:hover::after { top: 0; bottom: 0; }

/* ratio bars */
.ratio-code, .ratio-vibe { transition: filter .15s ease, transform .15s ease; cursor: pointer; }
.ratio .ratio-code:hover, .ratio .ratio-vibe:hover { filter: brightness(1.18); transform: scaleY(1.35); }
.mini-ratio { cursor: pointer; transition: transform .15s ease; }
.mini-ratio:hover { transform: scaleY(1.6); }

/* badges */
.badge { transition: transform .18s ease, box-shadow .18s ease; }
.badge:hover, .badge:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 22px -12px currentColor; }
.badge:hover i { animation: wiggle .5s ease; }
@keyframes wiggle { 30% { transform: rotate(-14deg) scale(1.15); } 60% { transform: rotate(10deg) scale(1.15); } }

/* leaderboard rows and lists */
.board tbody tr td .avatar-xs, .mini-board .avatar-xs, .scoreboard .avatar-xs { transition: transform .18s ease; }
.board tbody tr:hover .avatar-xs, .mini-board li:hover .avatar-xs, .scoreboard li:hover .avatar-xs { transform: scale(1.18) rotate(-4deg); }
.board tbody tr:hover .rank { color: var(--text); }
.source-item { transition: border-color .2s ease, transform .2s ease; }
.source-item:hover { border-color: var(--line-2); transform: translateX(3px); }

/* fair play */
.ev-plus.limit { color: var(--danger); }
.fair-title { margin-top: 1.4rem; }
.fair-note { margin: -.4rem 0 1rem; }
.chip.warn { color: var(--gold); background: rgba(255, 209, 102, .12); margin-left: .5rem; }
.admin-table .chip.vibe { margin-left: .5rem; }
.admin-table tr.flagged td { background: rgba(255, 209, 102, .04); }
.admin-table tr.banned td { opacity: .6; }
.admin-actions { white-space: nowrap; }
.admin-actions form + form { margin-left: .8rem; }
