:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}body{margin:0}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}:root{color:#352d29;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#fff3dc;font-family:ui-rounded,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:radial-gradient(circle at 10% 10%,#fffdf4 0,#fff3dc 48%,#fcebd6 100%);min-width:320px;margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,input:focus-visible,select:focus-visible{outline-offset:3px;outline:3px solid #7b59d0}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.6rem,4.5vw,2.65rem)}h2{font-size:clamp(1.4rem,4vw,2rem)}h3{font-size:1.17rem}p{line-height:1.55}small,.muted{color:#736a62}.app{width:min(100%,930px);margin:auto;padding:20px 18px 100px}.site-header{text-align:left;justify-content:center;align-items:center;gap:18px;margin:8px 0 12px;display:flex}.site-header .mascot{object-fit:contain;width:85px;height:95px;animation:2.5s ease-in-out infinite trotBounce}.site-header h1{margin:0}.site-header p{color:#685b50;max-width:440px;margin:5px 0;font-style:italic}.home-header{text-align:center;flex-direction:column;gap:2px}.home-header .mascot{width:170px;height:180px}.top-bar{justify-content:space-between;align-items:center;gap:8px;margin:8px 0 18px;display:flex}.top-actions{flex-wrap:wrap;gap:8px;display:flex}.save-status{color:#766e60;text-align:right;font-size:.75rem}.card{background:#fffefb;border:2px solid #f0e5d6;border-radius:24px;margin:16px 0;padding:22px;box-shadow:0 5px 22px #6748270b}.welcome-card{text-align:center;background:#fff8e9}.welcome-card h2{margin-bottom:8px}.home-content{max-width:780px;margin:auto}.home-main-actions{flex-wrap:wrap;justify-content:center;gap:12px;margin:24px 0 4px;display:flex}.home-main-actions .btn{flex:1;min-width:210px;max-width:330px}.btn{text-align:center;-webkit-user-select:none;user-select:none;border:2px solid #0000;border-radius:16px;justify-content:center;align-items:center;gap:6px;min-height:48px;padding:11px 18px;font-size:1rem;font-weight:800;line-height:1.25;text-decoration:none;transition:transform .12s,box-shadow .12s;display:inline-flex}.btn:not(:disabled):active,.menu-tile:active{transform:scale(.97)}.btn.primary{color:#342714;background:#ffcf67;border-color:#e7a942;box-shadow:0 4px #e7a942}.btn.secondary{color:#2c5542;background:#e6f4ed;border-color:#9bc8b1}.btn.ghost{color:#5d4e43;background:#fffdf8;border-color:#eee4d7}.btn.danger{color:#922c25;background:#fce4df;border-color:#e39b8c}.btn.big{min-height:58px;padding:14px 24px;font-size:1.12rem}.btn.small{min-height:40px;padding:8px 12px;font-size:.88rem}.btn.icon-btn{min-width:42px}.btn small{color:inherit;opacity:.78;font-size:.72rem;display:block}.menu-grid{grid-template-columns:repeat(4,1fr);gap:12px;display:grid}.menu-tile{background:#f3eafa;border:2px solid #e6d9ee;border-radius:20px;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:118px;font-size:2rem;display:flex}.menu-tile strong{color:#514369;font-size:.9rem}.center{text-align:center}.section-heading{text-align:center;margin:24px auto 16px}.section-heading h2{margin-bottom:4px}.section-heading p{color:#736a62}.progress-card{background:#fffefa;border:1px solid #eee1d0;border-radius:16px;padding:12px 16px}.progress-title{justify-content:space-between;margin-bottom:10px;font-size:.9rem;display:flex}.stage-track{gap:5px;display:flex}.stage{text-align:center;color:#655e56;background:#eee8df;border-radius:7px;flex:1;min-width:0;padding:7px 2px;font-size:.65rem}.stage.active{color:#352b1b;background:#ffcf67;font-weight:800}.player-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.player-card{background:#f8fcf9;border:2px solid #e6eee6;border-radius:18px;min-width:0;padding:12px}.player-card-top{align-items:center;gap:10px;margin-bottom:10px;display:flex}.player-input{flex:1;min-width:0}.player-input label{margin-bottom:4px;font-size:.75rem;font-weight:700;display:block}.player-input input{width:100%}.avatar{object-fit:contain;background:#fff;border:2px solid #eee4d7;border-radius:50%;flex-shrink:0}.avatar-placeholder{justify-content:center;align-items:center;font-size:1.6rem;display:inline-flex}.avatar-picker{border-top:1px solid #ddd;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:8px;margin-top:14px;padding-top:14px;display:grid}.avatar-choice{background:#fff;border:2px solid #eee2d6;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-height:110px;padding:8px;display:flex}.avatar-choice.chosen{background:#fff4d8;border-color:#e9a63c}.avatar-choice small{overflow-wrap:anywhere;font-size:.75rem}.choice-row{flex-wrap:wrap;gap:9px;margin:12px 0 26px;display:flex}.choice-row .btn{flex:1;min-width:70px}.toggle-row{border:1px solid #eee4d7;border-radius:14px;justify-content:space-between;align-items:center;gap:15px;margin:14px 0;padding:14px;display:flex}.toggle-row span{flex-direction:column;gap:5px;display:flex}.toggle-row input{accent-color:#7aab91;flex-shrink:0;width:24px;height:24px}.field-label{margin:14px 0 7px;font-weight:800;display:block}input:not([type=file]):not([type=checkbox]),select{color:#352d29;background:#fff;border:2px solid #ddd4c8;border-radius:12px;width:100%;max-width:100%;min-height:48px;padding:10px 12px;font-size:16px}.notice{border-radius:12px;padding:12px 15px}.notice.warning{color:#765522;background:#fff0cc}.notice.error{color:#8a332c;background:#ffe1db}.rules{text-align:left;max-width:660px;margin:auto;padding-left:30px}.rules li{padding:8px 0;line-height:1.55}.highlight{background:#fff2d1;border-radius:12px;margin:18px 0;padding:15px;font-weight:800}.lead{font-size:1.25rem}.giant-emoji{margin:14px;font-size:4rem}.challenge{background:#fff2d8;border-radius:18px;max-width:620px;margin:18px auto;padding:16px}.challenge p{margin:10px 0}.sticky-action{z-index:5;padding:16px 8px max(16px,env(safe-area-inset-bottom));background:linear-gradient(#fff3dc00,#fff3dc 22% 100%);flex-direction:column;align-items:center;gap:8px;margin-top:18px;display:flex;position:sticky;bottom:0}.sticky-action .btn{width:min(100%,480px)}.sticky-action small{color:#675c4e;font-size:.75rem}.timer-ring{aspect-ratio:1;background:conic-gradient(#9bc8b1 var(--timer-progress),#f0e6d7 var(--timer-progress));border-radius:50%;place-items:center;width:min(75vw,320px);margin:20px auto;padding:17px;display:grid;box-shadow:0 8px 25px #a6876430}.timer-ring.urgent{background:conic-gradient(#f39a86 var(--timer-progress),#f0e6d7 var(--timer-progress))}.timer-center{background:#fffefa;border-radius:50%;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.timer-center strong{font-variant-numeric:tabular-nums;font-size:clamp(3.4rem,11vw,5.8rem)}.timer-center small{letter-spacing:.15em;font-weight:800}.actions{flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0;display:flex}.actions.center{justify-content:center}.upload-count{justify-content:center;align-items:center;gap:10px;display:flex}.upload-count strong{font-size:2.2rem}.upload-progress{background:#eee7dd;border-radius:20px;height:12px;margin:12px 0 20px;overflow:hidden}.upload-progress span{background:#9bc8b1;height:100%;transition:width .3s;display:block}.upload-button{cursor:pointer;position:relative;overflow:hidden}.upload-button input[type=file],label.btn input[type=file]{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.upload-button.disabled{opacity:.5;pointer-events:none}.upload-grid,.judging-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;display:grid}.upload-card,.judge-card{min-width:0;margin:0}.art-image-button{background:#faf5ed;border:0;border-radius:14px;justify-content:center;align-items:center;width:100%;height:230px;padding:8px;display:flex;overflow:hidden}.art-image-button img{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:100%}.art-image-button:disabled{opacity:1;cursor:default}.upload-card .actions{margin-bottom:0}.upload-card select{margin-bottom:10px}.reveal-art .art-image-button,.featured-art .art-image-button{height:min(60vh,510px)}.reveal-art{animation:.6s ease-out artAppear}.judge-card.selected{background:#fff8e8;border-color:#e8a63c}.judge-card .btn{width:100%;margin-top:12px}.player-badge{text-align:left;align-items:center;gap:10px;display:inline-flex}.player-badge>span:last-child{flex-direction:column;gap:3px;display:flex}.standings{max-width:550px;margin:auto}.standing{border-bottom:1px solid #eee;align-items:center;gap:18px;padding:10px;display:flex}.standing-rank{color:#9e7845;width:24px;font-size:1.3rem;font-weight:900}.winner-history{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.winner-history p{background:#f3eafa;border-radius:12px;padding:8px 14px}.champion{background:#fff8e5;border:2px solid #f5d17c;border-radius:18px;margin:10px;padding:15px;display:inline-flex}.gallery-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px;display:grid}.gallery-card,.character-card{text-align:center;min-width:0;margin:0}.gallery-card .art-image-button,.character-card .art-image-button{height:190px}.gallery-card h3,.character-card h3{overflow-wrap:anywhere;margin:12px 0 5px}.gallery-card p{font-size:.82rem}.winner-label{background:#fff0c6;border-radius:10px;margin-bottom:8px;padding:6px 10px;font-weight:800;display:inline-block}.character-card .btn{margin:5px}.filter-card{align-items:center;gap:12px;display:flex}.filter-card label{white-space:nowrap;font-weight:800}.filter-card select{max-width:360px}.danger-text{color:#a63832!important}.modal-backdrop{z-index:50;background:#211b18b8;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.confirm-modal,.zoom-modal{background:#fffef9;border-radius:24px;width:100%;max-width:480px;max-height:92vh;padding:22px;overflow:auto;box-shadow:0 12px 60px #0003}.confirm-modal .actions{justify-content:center}.zoom-modal{text-align:center;max-width:900px;position:relative}.zoom-modal img{object-fit:contain;max-width:100%;max-height:70vh}.close-btn{background:#fff;border:1px solid #ccc;min-height:44px;position:absolute;top:10px;right:10px}.party-overlay{z-index:40;text-align:center;background:#fff2d7ef;justify-content:center;align-items:center;padding:18px;display:flex;position:fixed;inset:0;overflow:hidden}.party-center{z-index:2;background:#fffef9ed;border:3px solid #ffcf67;border-radius:30px;max-width:500px;padding:28px;box-shadow:0 10px 60px #b98c4d55}.party-center h2{font-size:clamp(1.8rem,6vw,2.8rem)}.party-icon{font-size:4rem}.party-pieces{pointer-events:none;position:absolute;inset:0}.party-piece{font-size:2.8rem;animation:linear infinite toiletFall;position:absolute;top:-20%}.paper-ribbon{color:#aa85c9;font-size:3.2rem}.paper-roll{font-size:3.4rem}@keyframes toiletFall{0%{transform:translateY(-20vh)rotate(0)}to{transform:translateY(145vh)rotate(900deg)}}@keyframes trotBounce{0%,to{transform:translateY(0)rotate(-3deg)}50%{transform:translateY(-7px)rotate(3deg)}}@keyframes artAppear{0%{opacity:0;transform:scale(.88)}to{opacity:1;transform:scale(1)}}@media (width<=650px){.app{padding:12px 12px 85px}.site-header{gap:9px}.compact-header .mascot{width:58px;height:68px}.compact-header h1{font-size:clamp(1.3rem,5.6vw,1.9rem)}.home-header .mascot{width:145px;height:150px}.card{border-radius:18px;padding:16px}.menu-grid{grid-template-columns:repeat(2,1fr)}.menu-tile{min-height:110px}.player-grid,.upload-grid,.judging-grid{grid-template-columns:1fr}.player-card{padding:12px}.stage{padding:7px 1px;font-size:.57rem}.art-image-button{height:240px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.gallery-card,.character-card{padding:9px}.gallery-card .art-image-button,.character-card .art-image-button{height:150px}.filter-card{flex-direction:column;align-items:stretch}.top-bar{align-items:flex-start}.save-status{font-size:.65rem}.btn.big{width:100%}.home-main-actions .btn{max-width:none}.confirm-modal .actions .btn{flex:1}.sticky-action{margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px}}@media (width<=380px){.stage{font-size:.5rem}.gallery-grid{grid-template-columns:1fr 1fr}.gallery-card .art-image-button,.character-card .art-image-button{height:120px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.party-pieces{display:none}}
