/* Accepted ValueM prototype: palette, composition, surfaces and motion. */
@font-face{font-family:Nunito;src:url('/static/fonts/Nunito-500.ttf') format('truetype');font-weight:500;font-display:swap}
@font-face{font-family:Nunito;src:url('/static/fonts/Nunito-700.ttf') format('truetype');font-weight:600 700;font-display:swap}
@font-face{font-family:Nunito;src:url('/static/fonts/Nunito-800.ttf') format('truetype');font-weight:800;font-display:swap}
@font-face{font-family:Nunito;src:url('/static/fonts/Nunito-900.ttf') format('truetype');font-weight:900 1000;font-display:swap}
:root{--ink:#123e2e;--cream:#fff9ef;--coral:#ff695d;--gold:#ffc849;--line:#e6dfcf;--muted:#617263;--green:#123e2e;--pale:#e6eddb;color:var(--ink);background:#e9e6d9;font:700 16px/1.4 Nunito,system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;border:0;transition:transform .16s,background .16s}button:active{transform:scale(.96)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a84bb7;outline-offset:3px}button:disabled{opacity:.5;cursor:default}button[hidden],[hidden]{display:none!important}
#shell{max-width:460px;min-height:100dvh;margin:auto;background:var(--cream);box-shadow:0 0 70px #163c2b16;padding-bottom:110px}.hero{height:262px;position:relative;padding:20px 22px;background-image:linear-gradient(90deg,#fff9efcc,transparent 66%),image-set(url('/static/art/home-600.webp') 1x,url('/static/art/home-1000.webp') 2x);background-size:cover;background-position:center 52%}.brand-row{height:48px;display:flex;align-items:center}.brand{font-size:32px;font-weight:1000;letter-spacing:-1.6px;line-height:1}.brand-m{color:var(--coral);position:relative}.brand-m:after{content:'✦';position:absolute;top:-13px;right:-15px;color:var(--gold);font-size:22px}.brand-rays,.hero-leaves,.hero-home{display:none}.profile-button{position:absolute;right:22px;top:20px;background:transparent;padding:0;border-radius:50%}.hero h1{font-size:34px;font-weight:1000;line-height:1.04;letter-spacing:-1.1px;margin:22px 0 0;max-width:235px;text-shadow:0 2px 0 #fff9ef}.hello{font-size:13px;margin-top:12px;background:#fff9efd9;display:inline-block;padding:5px 9px;border-radius:20px;max-width:100%;overflow-wrap:anywhere}#shell:not([data-page=home]) .hero{height:auto;min-height:144px;padding:18px 22px 14px;background:linear-gradient(135deg,#fff3d9,#fff9ef)}#shell:not([data-page=home]) .hero h1{font-size:30px;margin:20px 0 3px;max-width:100%;text-shadow:none}#shell:not([data-page=home]) .hello{display:none}
main{padding:0 16px 20px}h2{font-size:21px;letter-spacing:-.4px;margin:0}h3{font-size:17px;margin:0}.intro,.section-copy{color:var(--muted);font-size:13px;font-weight:600;margin:12px 0}.intro{text-align:left;font-size:14px}.card,.axis,.period-results{border:1px solid #dfd8c5;border-radius:23px;padding:16px;margin:0 0 13px;background:#fffdf7;box-shadow:0 4px 0 #dfd8c52b;min-width:0}.card{margin-top:13px}.period-switch,.tabs{display:flex;gap:6px;margin:14px 0}.period-switch button,.tabs button{flex:1;min-width:0;padding:10px 3px;border-radius:24px;background:#f1e9d9;font-size:13px;font-weight:800}.period-switch button[aria-pressed=true],.tabs button[aria-pressed=true]{background:var(--ink);color:white;box-shadow:0 3px 8px #123e2e22}
.axis{--axis-color:var(--coral);background:linear-gradient(120deg,#ffe0d4,#fff0e8)}.axis[data-kind=month]{--axis-color:#4e9b60;background:linear-gradient(120deg,#e1efd7,#f1f5e9)}.axis[data-kind=year]{--axis-color:#9e73cd;background:linear-gradient(120deg,#e8dcfc,#f6eefc)}.axis-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.axis-name{min-width:0}.axis h2{font-size:21px;font-weight:900}.remaining{border-radius:20px;background:#fff9efb8;padding:5px 9px;font-size:12px;white-space:nowrap}.remaining strong{font-weight:800}.timeline{display:grid;grid-template-columns:minmax(0,1fr) 77px;align-items:center;gap:6px;margin-top:17px;min-height:91px}.track{position:relative;height:10px;border-radius:8px;background:#fff8;margin:0 3px;min-width:0}.trackfill{height:100%;border-radius:8px;background:var(--axis-color)}.nowline{position:absolute;left:var(--progress);width:2px;top:-30px;height:56px;transform:translateX(-50%);background:var(--axis-color);opacity:.65}.nowtag{position:absolute;left:clamp(26px,var(--progress),calc(100% - 26px));top:-42px;transform:translateX(-50%);font-size:11px;background:var(--axis-color);color:white;border-radius:10px;padding:2px 7px;z-index:3}.leader-cluster{position:absolute;z-index:2;top:-18px;display:flex;align-items:center;gap:var(--pair-gap);width:max-content;pointer-events:none;transition:left .18s ease}.leader-cluster .avatar{width:43px;height:43px}.leader-connector{position:absolute;top:4px;height:2px;background:var(--axis-color)}.axis-labels{display:flex;justify-content:space-between;font-size:11px;font-weight:600;margin:-9px 86px 0 0}.leader-names{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px;font-size:13px}.ranking-row{display:inline-flex;gap:5px;max-width:100%;background:#fff7;padding:5px 8px;border-radius:10px}.ranking-row b:first-child{overflow-wrap:anywhere}.ranking-row b:last-child{white-space:nowrap}.empty-leaders{font-size:13px;font-weight:600}.ranking-status{font-size:10px;margin:10px 0 0;color:#586557;font-weight:600}.gift-button{width:77px;height:auto;min-height:65px;background:transparent;padding:0;border-radius:16px;display:flex;flex-direction:column;gap:3px;align-items:center}.gift-button .gift-icon{width:65px;height:65px;object-fit:contain;border-radius:16px}.gift-label{font-size:11px;line-height:1.15;overflow-wrap:anywhere;max-width:100%;font-weight:700}.reward-caption{font-size:12px;overflow-wrap:anywhere}.calendar,.period-icon{display:none}.period-results table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.period-results th,.period-results td{padding:10px 3px;border-bottom:1px solid var(--line)}.period-results thead th{font-size:10px;color:var(--muted)}.period-results tr>:last-child{text-align:right;white-space:nowrap}.period-results tbody tr:last-child>*{border-bottom:0}
.avatar{display:inline-grid;place-items:center;flex-shrink:0;width:48px;height:48px;vertical-align:middle;border-radius:50%;border:3px solid white;box-shadow:0 3px 7px #193e2c22;position:relative;background:white}.portrait svg{display:block;width:100%;height:100%;border-radius:50%}.portrait .rank-badge{position:absolute;right:-4px;top:-4px;min-width:18px;height:18px;padding:0 3px;display:grid;place-items:center;background:var(--gold);border-radius:50%;font-size:10px;line-height:18px;font-weight:900;color:var(--ink)}.art{width:65px;height:65px;flex-shrink:0;object-fit:contain;border-radius:16px}.emoji-art{display:grid;place-items:center;font-size:32px;background:#fff0d9}
.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(460px,100%);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:3px;padding:10px 8px max(12px,env(safe-area-inset-bottom));background:#fffaf1f5;backdrop-filter:blur(14px);border-top:1px solid #e2dac8;border-radius:25px 25px 0 0;z-index:10;box-shadow:0 -5px 20px #123e2e09}.bottom-nav button{min-width:0;background:transparent;border-radius:16px;padding:9px 3px;min-height:60px;font-size:10px;font-weight:800;position:relative}.bottom-nav .nav-icon{display:block;width:23px;height:25px;margin:0 auto 3px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.bottom-nav button[aria-current=page]{background:#deedc9}.bottom-nav .plus{background:var(--coral);color:white;width:60px;height:60px;border-radius:21px;font-size:40px;line-height:1;padding:0;box-shadow:0 6px 12px #ff695d44;margin:auto}.bottom-nav .plus span{font-size:40px}.bottom-nav .plus .nav-icon{display:none}.challenge-badge{position:absolute;right:2px;top:1px;background:var(--coral)}
dialog{border:0;border-radius:28px;padding:24px;color:inherit;background:var(--cream);width:min(calc(100% - 24px),430px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 80px #102f2b44}dialog::backdrop{background:#143b2c66;backdrop-filter:blur(5px)}body:has(dialog[open]){overflow:hidden}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.dialog-head h2{font-size:23px;min-width:0;overflow-wrap:anywhere}.close{border-radius:50%;width:44px;height:44px;flex:none;padding:8px;background:#ede6d5;font-size:22px}.secondary,.primary{border-radius:18px;padding:12px 16px;font-weight:900;min-height:44px}.primary{background:var(--coral);color:#fff}.secondary{background:#e6eddb;color:var(--ink)}.actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px;flex-wrap:wrap}.listbtn{display:flex;width:100%;justify-content:space-between;align-items:center;text-align:left;gap:10px;background:#fffcf5;border:1px solid var(--line);border-radius:19px;padding:10px;margin:0 0 9px;box-shadow:0 3px 0 #e9dfcf40}.listbtn>span:first-child{min-width:0;overflow-wrap:anywhere}.listbtn[aria-pressed=true]{border:2px solid var(--coral);background:#fff0e6}.activity-label{flex:1;font-size:16px;line-height:1.22;min-width:0;overflow-wrap:anywhere}.points{background:#ffe49a;border-radius:16px;padding:5px 8px;white-space:nowrap;font-size:13px;font-weight:900;flex:none}.status{position:fixed;bottom:105px;left:50%;transform:translateX(-50%);background:#143e2e;color:white;border-radius:20px;padding:13px 19px;z-index:50;width:max-content;max-width:calc(100% - 24px);box-shadow:0 5px 20px #0002;font-size:13px}.status button{color:#fff;background:#ffffff24;border-radius:12px;padding:8px 12px;margin-left:9px;font-weight:900}
input:not([type=checkbox]),select,textarea{border:1px solid var(--line)!important;border-radius:16px!important;padding:12px!important;background:#fffdf7;max-width:100%;min-width:0;font-size:16px!important}input[type=checkbox]{width:20px;height:20px;accent-color:var(--ink);flex-shrink:0}input[type=file]{font-size:12px!important;width:100%}textarea{width:100%;resize:vertical}label{overflow-wrap:anywhere}form label{font-size:14px}#loginForm label{display:block;margin-top:16px}#loginForm input,#loginForm select{display:block;width:100%;margin-top:5px}#choreForm label{display:block;margin:12px 0}#choreForm input,#choreForm select{display:block;width:100%;margin-top:4px}[role=alert]:not(:empty){color:#a13d32;background:#ffe9df;padding:10px;border-radius:12px;font-size:13px;overflow-wrap:anywhere}
.screen-dialog{position:fixed;inset:0;width:min(460px,100%);height:100dvh;max-height:100dvh;margin:0 auto;border-radius:0;padding:0 0 110px;box-shadow:none}.screen-dialog::backdrop{background:#e9e6d9}.sheet-header{padding:18px 22px 14px;background:linear-gradient(135deg,#fff3d9,#fff9ef)}.sheet-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.sheet-header h2{font-size:30px;line-height:1.15;letter-spacing:-.8px;margin:24px 0 3px}.back{width:36px;height:44px;border-radius:50%;background:#ede9dc;font-size:22px}.sheet-main{padding:0 16px 20px}.profileline{display:flex;align-items:center;gap:10px;background:#ffe7d8;padding:8px 13px;border-radius:28px;margin:17px 0;overflow-wrap:anywhere;font-size:14px}.profileline .avatar{width:43px;height:43px}.search{width:100%;margin:0 0 12px}.savebar{position:sticky;bottom:0;background:var(--cream);padding:12px 0;z-index:3}.savebar .primary{width:100%;font-size:18px;padding:15px}.selection-summary{padding:17px;background:#fff0ca;border-radius:20px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px}.selection-summary strong{font-size:26px;color:#cc4b38}.menuhead{text-align:center;padding:20px 0}.menuhead>.avatar{width:135px;height:135px;border:6px solid #fff;box-shadow:0 0 0 9px #ffdc7e55}.menuhead h2{font-size:28px;margin:14px 0 5px;overflow-wrap:anywhere}.menuhead p{font-size:13px}.profiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:22px 0}.profiles .listbtn{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;text-align:center;background:#fff1dc;padding:12px 2px;border:2px solid transparent;border-radius:18px;font-size:13px;box-shadow:none}.profiles .listbtn[aria-pressed=true]{background:#e0efce;border-color:#38834e}.profiles .avatar{width:57px;height:57px;margin-bottom:3px}.menulink{display:flex;align-items:center;justify-content:space-between;width:100%;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:21px 9px;text-align:left;font-size:18px;box-shadow:none}.profile-preview{background:#ffe7d8}.profile-preview .avatar{width:100px;height:100px}.avatar-choice img{width:58px;height:58px;object-fit:cover;border-radius:50%;display:block;margin:auto}.avatar-choice{background:#fff1dc}
.entry{display:grid;grid-template-columns:51px minmax(0,1fr) auto;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.entry:last-child{border:0}.entry-icon,.entry-icon .art{width:51px;height:51px}.entry-main{min-width:0;overflow-wrap:anywhere}.entry strong{font-size:14px;line-height:1.25;display:block}.entry small{display:block;color:var(--muted);margin-top:5px;font-size:11px;font-weight:600}.entry small .avatar{width:23px;height:23px;border-width:1px;vertical-align:middle}.entry-actions{display:flex;flex-direction:column;align-items:flex-end;gap:5px}.entry .points{font-size:12px;padding:4px 6px}.undo{background:#ede7db;border-radius:10px;padding:6px 8px;font-size:11px;min-height:36px}.catalog-list{background:transparent;padding:0;border:0;box-shadow:none}.catalog-row{display:grid;grid-template-columns:65px minmax(0,1fr) auto;align-items:center;gap:10px;background:#fffcf5;border:1px solid var(--line);border-radius:19px;padding:10px;margin-bottom:9px;box-shadow:0 3px 0 #e9dfcf40}.catalog-row strong{font-size:15px;min-width:0;overflow-wrap:anywhere}.catalog-actions{display:flex;flex-direction:column;gap:5px;align-items:flex-end}.catalog-actions .secondary{font-size:11px;min-height:36px;padding:6px 9px}
.bonus-panel{background:linear-gradient(110deg,#ff7c63,#ff5d62);color:white;border:0;box-shadow:0 5px 12px #ff695d22}.bonus-panel small{color:white}.bonus-panel .bonus-item{border-color:#ffffff55}.bonus-panel h2{font-size:18px}.bonus-panel .bonus-item{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px}.bonus-panel .art{width:48px;height:48px;background:#fff9ef;border-radius:14px}.bonus-panel .bonus-item p{font-size:12px}.bonus-manage{background:#fff0df}.bonus-picker-note{font-size:11px;background:#fff0ca}.ranking-tools{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.ranking-tools button{flex:1;font-size:12px}.bonus-badge{background:var(--coral);color:#fff}.challenge-card{background:linear-gradient(135deg,#e8dbfc,#fff4e8)}.challenge-card h3{font-size:20px}.challenge-phase{border-radius:20px;padding:5px 9px;background:#fff9efb8}.challenge-card>.secondary{width:100%;background:#e6eddb}.duel-score{background:#fff8;border-radius:20px;padding:18px 8px}.duel-score .avatar{width:66px;height:66px}.duel-score b{font-size:28px}.duel-rewards{background:#fff0ca;border-color:#eddfba;border-radius:20px}.voluntary-note{background:#fff4df;border-color:var(--gold)}.notification-link{background:#fff0ca;border-color:#eddfba;border-radius:18px}.result-notice{background:#fff0ca}.winner-message{background:#e0efce;border-radius:18px}.reward-details .reward-art{width:144px;height:144px;object-fit:contain;display:block;margin:14px auto}.stats-contribution{background:linear-gradient(120deg,#ffe0d4,#fff0e8)!important;border-color:#ead7c5!important}.family-overview{background:linear-gradient(120deg,#e1efd7,#f1f5e9)!important}.family-member:nth-child(2n){background:#f6eefc}.family-member:nth-child(2n+1){background:#fff0e6}.stats-filters{background:#fff4df}.stats-profile .avatar{width:80px;height:80px}.stats-points div,.stats-counts div,.family-points>div{border-radius:16px}.stats-wins{background:#fff5d7}.stats-challenges{background:#f4ebfc}.challenge-empty,.empty{padding:25px;text-align:center;color:var(--muted)}
.burst{position:fixed;left:50%;top:43%;transform:translate(-50%,-50%);z-index:60;background:var(--gold);color:var(--ink);border:7px solid #fff4cb;border-radius:32px;padding:25px;font-size:40px;font-weight:1000;box-shadow:0 0 0 25px #ffc84933,0 20px 60px #123e2e33;animation:pop 1.4s both;pointer-events:none;white-space:nowrap}.view-enter{animation:enter .25s ease-out}@keyframes enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@keyframes pop{0%{opacity:0;transform:translate(-50%,-30%) scale(.5)}20%,70%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-85%) scale(1.1)}}
@media(max-width:350px){.hero{height:240px;padding:16px}.hero h1{font-size:29px;max-width:200px}.profile-button{right:16px;top:16px}main,.sheet-main{padding-inline:11px}.card,.axis,.period-results{padding:12px}.art{width:55px;height:55px}.catalog-row{grid-template-columns:55px minmax(0,1fr) auto;gap:7px}.catalog-row strong{font-size:13px}.catalog-row .points{font-size:11px}.timeline{grid-template-columns:minmax(0,1fr) 63px}.gift-button{width:63px}.gift-button .gift-icon{width:55px;height:55px}.axis-labels{margin-right:72px}.leader-cluster .avatar{width:36px;height:36px}.leader-cluster{top:-14px}.leader-names{font-size:12px}.remaining{font-size:11px;padding:5px 7px}.profiles .avatar{width:47px;height:47px}.bottom-nav button{padding:8px 2px}.sheet-header{padding:16px}.sheet-header h2{font-size:29px}.activity-label{font-size:14px}.points{font-size:12px}.entry{gap:6px;grid-template-columns:44px minmax(0,1fr) auto}.entry-icon,.entry-icon .art{width:44px;height:44px}.entry strong{font-size:13px}.entry small{font-size:10px}.dialog-head h2{font-size:21px}}
.screen-dialog{max-width:min(460px,100%)}
.profiles strong{max-width:100%;min-width:0;overflow-wrap:anywhere}
.hero .page-back{display:none}#shell:not([data-page=home]) .hero .page-back{display:block;position:absolute;left:22px;top:20px}#shell:not([data-page=home]) .brand-row{justify-content:center}
.nowtag{background:var(--coral)}.nowline,.leader-connector{background:var(--coral)}
.challenge-topic{display:flex;align-items:center;gap:10px;margin:12px 0}.challenge-topic .art{width:64px;height:64px;background:#fff9ef80}.challenge-topic p{min-width:0;overflow-wrap:anywhere;flex:1}
dialog{max-height:calc(var(--visible-height,100dvh) - 24px)}
dialog[open]:not(.screen-dialog){position:fixed;top:calc(var(--visible-top,0px) + var(--visible-height,100dvh)/2);bottom:auto;margin-block:0;transform:translateY(-50%)}
.screen-dialog{top:var(--visible-top,0px);bottom:auto;height:var(--visible-height,100dvh);max-height:var(--visible-height,100dvh)}
.screen-dialog .bottom-nav{bottom:max(0px,calc(100dvh - var(--visible-height,100dvh) - var(--visible-top,0px)))}
.axis h2{font-weight:700}.axis .remaining{line-height:1.2}.axis .leader-names{margin-top:6px}.axis .ranking-status{margin-top:6px;font-size:9px}.axis .reward-caption{margin:6px 0 0;font-size:10px}.axis .timeline{min-height:82px}.axis .axis-labels{margin-top:-12px}.reward-art .gift-icon{width:144px;height:144px;object-fit:contain;border-radius:20px}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.burst{display:none}}
