:root { --ink:#122b2e; --muted:#698080; --line:#dbe4df; --paper:#f7f8f3; --card:#fffefa; --panel:#122b2e; --input:#edf0e9; --lime:#d5ff45; --orange:#ff6847; --cyan:#54d8e3; --easy:#58cf92; --medium:#ffc95c; --hard:#ff765b; }
[data-theme="dark"] { --ink:#e9f5ef; --muted:#a1b5ae; --line:#34504d; --paper:#112522; --card:#17312d; --panel:#0b1917; --input:#203c37; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:Manrope,Arial,sans-serif; }
button,input { font:inherit; } button { cursor:pointer; }
.auth-overlay { position:fixed; z-index:10; inset:0; display:grid; place-items:center; padding:20px; background:rgba(18,43,46,.68); backdrop-filter:blur(7px); }.auth-overlay[hidden] { display:none; }.auth-card { width:min(100%,390px); display:grid; gap:14px; padding:30px; border-radius:18px; background:var(--card); box-shadow:0 20px 60px rgba(0,0,0,.25); }.auth-card .eyebrow { margin:0; }.auth-card h2 { margin:0; font-size:30px; }.auth-card p:not(.eyebrow):not(.auth-message) { margin:0; color:var(--muted); font-size:14px; line-height:1.5; }.auth-card input { width:100%; border:1px solid var(--line); }.auth-card button { min-height:47px; border:0; border-radius:9px; color:#122b2e; background:var(--lime); font-weight:800; }.auth-card button:disabled { cursor:wait; opacity:.65; }.auth-message { min-height:18px; margin:0; color:#be3b27; font-size:12px; }
.page-shell { width:min(1180px,calc(100% - 40px)); margin:0 auto; padding:32px 0 80px; }
.hero { display:flex; justify-content:space-between; gap:32px; align-items:start; padding:0 2px 44px; }
.eyebrow { color:#69817d; font:500 11px/1 "DM Mono",monospace; letter-spacing:.12em; margin:0 0 14px; }
h1,h2,h3,h4,p { margin-top:0; }
h1 { max-width:760px; font-size:clamp(44px,6vw,78px); line-height:.97; letter-spacing:-.07em; margin-bottom:21px; }
h1 em { color:var(--orange); font-style:normal; }
.hero-copy { max-width:470px; color:var(--muted); font-size:16px; line-height:1.65; margin:0; }
.hero-marker { display:grid; grid-template-columns:repeat(3,12px); gap:6px; align-content:center; justify-items:center; width:104px; height:104px; border:1px solid var(--ink); border-radius:50%; flex:0 0 auto; margin-top:4px; transform:rotate(-11deg); }
.hero-marker span { grid-column:1/-1; font:500 18px/1 "DM Mono",monospace; letter-spacing:-.13em; transform:rotate(11deg); }
.hero-marker i { width:10px; height:10px; background:var(--lime); border-radius:50%; }.hero-marker i:nth-of-type(2) { background:var(--cyan); }.hero-marker i:nth-of-type(3) { background:var(--orange); }
.search-panel { padding:18px 20px; background:var(--panel); border-radius:16px; box-shadow:0 14px 32px rgba(18,43,46,.13); }.search-panel .eyebrow { color:var(--lime); margin-bottom:8px; } form { display:flex; gap:10px; }
input { min-width:0; flex:1; border:0; outline:0; border-radius:9px; color:var(--ink); background:var(--input); padding:16px 18px; font-size:15px; }
form button { border:0; border-radius:9px; background:var(--lime); color:var(--ink); padding:0 20px; font-weight:800; white-space:nowrap; } form button:hover,form button:focus-visible { background:#e0ff75; }
.form-message { color:#c8d6d0; min-height:17px; margin:10px 7px 2px; font-size:12px; }.form-message.error { color:#ffb7a7; } code { font-family:"DM Mono",monospace; }
.dashboard-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; margin:0 0 23px; }.dashboard-heading .eyebrow { margin-bottom:9px; } h2 { font-size:28px; letter-spacing:-.055em; margin-bottom:0; }
.text-button,.remove-button { border:0; background:transparent; color:#496566; font-weight:800; }.text-button:hover,.text-button:focus-visible { color:var(--orange); }.text-button span { margin-left:3px; font-size:18px; }
.profiles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }.profile-card { min-width:0; background:var(--card); border:1px solid var(--line); border-radius:18px; padding:26px; box-shadow:0 3px 0 rgba(19,43,46,.03); animation:reveal .35s ease-out both; }
@keyframes reveal { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.profile-header,.identity,.handle-row,.section-label { display:flex; align-items:center; }.profile-header { justify-content:space-between; gap:12px; }.identity { gap:12px; min-width:0; }
.avatar { width:42px; height:42px; flex:0 0 42px; border-radius:12px; background:var(--cyan); position:relative; overflow:hidden; }.avatar::after { content:""; width:24px; height:24px; position:absolute; right:-5px; bottom:-5px; background:var(--orange); border-radius:50%; }.avatar.has-avatar::after { display:none; }.avatar img { width:100%; height:100%; display:block; object-fit:cover; }
.handle-row { gap:7px; min-width:0; }h3 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:17px; letter-spacing:-.04em; margin:0; }.joined { color:var(--muted); font-size:12px; margin:3px 0 0; }.remove-button { font-size:28px; font-weight:400; line-height:1; padding:0 2px; }
.headline-stats { display:grid; grid-template-columns:.9fr 1.28fr 1.05fr .95fr; gap:15px; padding:23px 0; margin:23px 0; border-block:1px solid var(--line); }.headline-stats > div { text-align:center; }.headline-stats span,.profile-footer span { display:block; color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.03em; }.headline-stats strong { display:block; margin-top:7px; font-size:27px; line-height:1; letter-spacing:-.025em; font-variant-numeric:tabular-nums; white-space:nowrap; }.crown { margin-left:3px; font-size:12px; letter-spacing:0; vertical-align:middle; }
.difficulty-section,.activity-section { margin-top:24px; }.section-label { justify-content:space-between; gap:12px; }h4 { font-size:13px; letter-spacing:-.02em; margin:0; }.section-label span { color:var(--muted); font:400 10px/1 "DM Mono",monospace; white-space:nowrap; }.difficulty-list { display:grid; gap:12px; margin-top:17px; }.difficulty-row { display:grid; grid-template-columns:57px minmax(0,1fr) 56px; align-items:center; gap:9px; font-size:12px; }.difficulty-name { color:var(--muted); }.difficulty-count { font:400 11px/1 "DM Mono",monospace; white-space:nowrap; }.difficulty-value { display:inline-block; position:relative; }.difficulty-value .crown { position:absolute; left:calc(100% + 2px); top:-5px; margin:0; }.progress-track { overflow:hidden; height:7px; border-radius:99px; background:#ebefea; }.progress-value { height:100%; border-radius:inherit; min-width:5px; }
.activity-chart { display:grid; height:84px; grid-template-columns:repeat(14,minmax(3px,1fr)); align-items:end; gap:5px; margin-top:13px; }.activity-bar { min-height:3px; background:var(--cyan); border-radius:4px 4px 2px 2px; transition:opacity .2s; }.activity-bar:hover { opacity:.65; }.activity-axis { display:flex; justify-content:space-between; color:var(--muted); margin-top:6px; font:400 10px/1 "DM Mono",monospace; }.profile-footer { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:25px; padding-top:17px; border-top:1px solid var(--line); }.profile-footer strong { display:block; margin-top:5px; font:500 13px/1.2 "DM Mono",monospace; color:#24484a; }.state-card { grid-column:1/-1; padding:30px; border:1px dashed #adc1bb; border-radius:18px; color:var(--muted); text-align:center; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.activity-chart { grid-template-columns:repeat(13,minmax(3px,1fr)) minmax(42px,1.7fr); overflow:visible; }.activity-column { display:flex; flex-direction:column; justify-content:flex-end; align-items:center; min-width:0; height:100%; overflow:visible; }.activity-column .activity-bar { width:100%; }.activity-today-value { display:inline-block; position:relative; min-width:max-content; margin-bottom:5px; padding:0 2px; color:var(--ink); font:500 10px/1 "DM Mono",monospace; white-space:nowrap; }.activity-today-value .crown { position:absolute; left:calc(100% + 2px); top:-5px; display:block; margin:0; }
.dashboard-actions { display:flex; align-items:center; gap:18px; }.theme-toggle { border:1px solid var(--line); border-radius:99px; padding:7px 10px; background:var(--card); color:var(--ink); font-size:11px; font-weight:800; }.theme-toggle:hover,.theme-toggle:focus-visible { border-color:var(--orange); }[data-theme="dark"] .profile-footer strong { color:var(--ink); }[data-theme="dark"] .state-card { border-color:var(--muted); }
.problems-solved-label,.current-streak-label { display:flex!important; position:relative; align-items:center; width:max-content; margin-inline:auto; white-space:nowrap; }.problems-solved-label .crown,.current-streak-label .crown { position:absolute; left:calc(100% + 2px); top:-3px; display:block; margin:0; transform:none; }
@media (max-width:760px) { .page-shell { width:min(100% - 28px,580px); padding-top:34px; }.hero { padding-bottom:31px; }.hero-marker { width:76px; height:76px; grid-template-columns:repeat(3,8px); gap:4px; }.hero-marker i { width:7px; height:7px; }.hero-marker span { font-size:14px; }form { display:grid; }form button { min-height:48px; }.profiles { grid-template-columns:1fr; }.dashboard-actions { gap:9px; }.theme-toggle { padding:6px 8px; } }
@media (max-width:420px) { .hero-marker { display:none; }.headline-stats strong { font-size:23px; }.profile-card { padding:20px; } }
@media (max-width:480px) { .headline-stats { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:17px; } }
