:root{--bg:#0d0f14;--surface:#151922;--surface-2:#1c2230;--border:#262d3d;--text:#e8ecf4;--muted:#8b95a8;--accent:#6c8cff;--accent-2:#a06cff;--danger:#ff6b6b;--radius:14px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}*{box-sizing:border-box}body{background:radial-gradient(1200px 600px at 10% -10%, #6c8cff2e, transparent 60%), radial-gradient(900px 500px at 100% 0%, #a06cff24, transparent 55%), var(--bg);min-height:100vh;color:var(--text);margin:0}a{color:inherit;text-decoration:none}h1{letter-spacing:-.02em;margin:0 0 .25rem;font-size:1.9rem}h2{margin:0;font-size:1.3rem}h3{margin:0;font-size:1rem}.app{flex-direction:column;min-height:100vh;display:flex}.topbar{border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:10;background:#0d0f14bf;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 2rem;display:flex;position:sticky;top:0}.brand{letter-spacing:-.01em;align-items:center;gap:.5rem;font-weight:700;display:flex}.brand-mark{color:var(--accent)}.nav{flex-wrap:wrap;gap:.35rem;display:flex}.nav-link{color:var(--muted);border-radius:999px;padding:.45rem .85rem;font-size:.92rem;transition:background .15s,color .15s}.nav-link:hover,.nav-link.active{color:var(--text);background:var(--surface-2)}.content{flex:1;width:100%;max-width:1180px;margin:0 auto;padding:2rem}.footer{color:var(--muted);border-top:1px solid var(--border);padding:1rem 2rem;font-size:.8rem}.page{flex-direction:column;gap:1.25rem;display:flex}.page.narrow{max-width:640px}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:1rem;display:flex}.subtitle{color:var(--muted);margin:0}.button{background:linear-gradient(135deg, var(--accent), var(--accent-2));color:#fff;cursor:pointer;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:.4rem;padding:.6rem 1.1rem;font-size:.92rem;font-weight:600;transition:filter .15s,opacity .15s;display:inline-flex}.button:hover:not(:disabled){filter:brightness(1.1)}.button:disabled{opacity:.5;cursor:not-allowed}.button.ghost{border-color:var(--border);color:var(--text);background:0 0}.button.ghost:hover:not(:disabled){background:var(--surface-2)}.button.danger{color:var(--danger);background:0 0;border-color:#ff6b6b80}.search,.form input,.form textarea,.form select{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);font:inherit;border-radius:10px;outline:none;padding:.65rem .85rem;transition:border-color .15s}.search:focus,.form input:focus,.form textarea:focus,.form select:focus{border-color:var(--accent)}.form textarea{resize:vertical}.grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1rem;transition:opacity .2s;display:grid}.grid-fetching{opacity:.6}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;transition:transform .15s,border-color .15s;display:flex;overflow:hidden}.card:hover{border-color:var(--accent);transform:translateY(-3px)}.card-media{aspect-ratio:4/3;background:var(--surface-2);overflow:hidden}.card-media img{object-fit:cover;width:100%;height:100%;display:block}.card-body{flex-direction:column;gap:.3rem;padding:.85rem 1rem 1rem;display:flex}.card-body p{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:.85rem;display:-webkit-box;overflow:hidden}.meta{color:var(--muted);font-size:.75rem}.pagination{color:var(--muted);justify-content:center;align-items:center;gap:1rem;display:flex}.state{border-radius:var(--radius);border:1px dashed var(--border);background:var(--surface);color:var(--muted);padding:1.25rem}.state p{margin:.35rem 0 0}.state-error{color:#ffb3b3;border-color:#ff6b6b73}.spinner{color:var(--muted);align-items:center;gap:.6rem;padding:1rem 0;display:flex}.spinner-dot{border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:14px;height:14px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.form{flex-direction:column;gap:1rem;display:flex}.form label{color:var(--muted);flex-direction:column;gap:.35rem;font-size:.85rem;display:flex}.form-row{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.card-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem}.dropzone{border:2px dashed var(--border);border-radius:var(--radius);text-align:center;min-height:220px;color:var(--muted);cursor:pointer;justify-content:center;align-items:center;padding:1rem;transition:border-color .15s,background .15s;display:flex}.dropzone:hover{border-color:var(--accent);background:var(--surface)}.dropzone.has-preview{border-style:solid;padding:0;overflow:hidden}.dropzone img{object-fit:contain;max-width:100%;max-height:360px;display:block}.detail{gap:1rem}.back-link{color:var(--muted);font-size:.9rem}.back-link:hover{color:var(--text)}.detail-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:start;gap:1.5rem;display:grid}.detail-media{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.detail-media img{width:100%;display:block}.detail-info{flex-direction:column;gap:1rem;display:flex}.description{color:var(--muted);white-space:pre-wrap;margin:0}.facts{gap:.5rem;margin:0;display:grid}.facts div{border-bottom:1px solid var(--border);justify-content:space-between;gap:1rem;padding-bottom:.4rem;display:flex}.facts dt{color:var(--muted);font-size:.85rem}.facts dd{text-align:right;margin:0;font-size:.85rem}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.75rem!important}.actions{flex-wrap:wrap;gap:.6rem;display:flex}.suggestions-layout{grid-template-columns:minmax(0,380px) minmax(0,1fr);align-items:start;gap:1.5rem;display:grid}.suggestions-result{flex-direction:column;gap:1rem;display:flex}.result-head{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.challenge-list{gap:.85rem;display:grid}.challenge{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:.6rem;padding:1rem 1.1rem;display:flex}.challenge header{align-items:center;gap:.6rem;display:flex}.challenge header h3{flex:1}.challenge p{color:var(--muted);margin:0;font-size:.9rem}.challenge footer{justify-content:space-between;align-items:center;display:flex}.challenge-index{color:var(--accent);font-size:.8rem;font-weight:700}.tip{color:#c9d2e6!important;font-size:.82rem!important}.points{color:var(--accent);font-size:.85rem;font-weight:700}.badge{border:1px solid var(--border);color:var(--muted);white-space:nowrap;border-radius:999px;padding:.2rem .55rem;font-size:.72rem}.badge-easy{color:#6ee7a8;border-color:#6ee7a866}.badge-medium{color:#ffd166;border-color:#ffd16666}.badge-hard{color:#ff8f8f;border-color:#ff8f8f66}.badge-ai{color:#c3b0ff;border-color:#a06cff80}.chip{color:var(--muted);background:var(--surface-2);border-radius:999px;padding:.15rem .55rem;font-size:.75rem}@media (width<=860px){.content{padding:1.25rem}.detail-grid,.suggestions-layout,.form-row{grid-template-columns:1fr}.topbar{padding:.85rem 1.25rem}}.party{max-width:520px;min-height:100dvh;padding-bottom:calc(72px + env(safe-area-inset-bottom));background:var(--bg,#0f1115);flex-direction:column;margin:0 auto;display:flex}.party-header{z-index:10;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#0f1115eb;border-bottom:1px solid #ffffff14;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;display:flex;position:sticky;top:0}.party-eyebrow{letter-spacing:.08em;text-transform:uppercase;opacity:.6;margin:0;font-size:11px}.party-title{margin:2px 0 0;font-size:18px;line-height:1.2}.party-score{color:#fff;background:linear-gradient(135deg,#ff7a45,#ff3d81);border-radius:999px;align-items:baseline;gap:4px;padding:6px 12px;font-weight:700;display:flex}.party-score span{opacity:.85;font-size:11px}.party-main{flex:1;padding:16px 16px 24px}.party-section{flex-direction:column;gap:14px;display:flex}.party-section-title{text-transform:uppercase;letter-spacing:.06em;opacity:.7;margin:4px 0 0;font-size:15px}.party-tabs{width:100%;max-width:520px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#0f1115f5;border-top:1px solid #ffffff14;grid-template-columns:repeat(4,1fr);display:grid;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.party-tab{color:inherit;opacity:.55;border-radius:12px;flex-direction:column;align-items:center;gap:2px;padding:6px 0;font-size:11px;text-decoration:none;display:flex}.party-tab span{font-size:18px}.party-tab.is-active{opacity:1;color:#ff8a5c}.party-cta{flex-direction:column;gap:6px;display:flex}.party-cta-hint{text-align:center;opacity:.6;margin:0;font-size:12px}.btn-block{width:100%}.btn-lg{border-radius:16px;padding:16px;font-size:16px}.challenge-list,.feed-list,.ranking-list,.profile-grid{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.challenge-item{background:#ffffff0d;border:1px solid #ffffff14;border-radius:16px;overflow:hidden}.challenge-item.is-done{background:#4cd97b14;border-color:#4cd97b80}.challenge-link{color:inherit;padding:14px;text-decoration:none;display:block}.challenge-head{align-items:center;gap:10px;display:flex}.challenge-head h3{flex:1;margin:0;font-size:16px}.challenge-index{opacity:.5;font-size:12px;font-weight:700}.challenge-check{color:#4cd97b;font-weight:700}.challenge-desc{opacity:.75;margin:6px 0 10px;font-size:13px}.challenge-meta{justify-content:space-between;align-items:center;display:flex}.challenge-points{color:#ff8a5c;font-size:13px;font-weight:700}.pill{background:#ffffff1a;border-radius:999px;padding:3px 10px;font-size:11px;font-weight:600;display:inline-block}.pill-easy{color:#7ee2a0;background:#4cd97b2e}.pill-medium{color:#ffd27a;background:#ffc4572e}.pill-hard{color:#ff9b9b;background:#ff5c5c2e}.pill-challenge{color:#ffb08a;background:#ff8a5c29}.photo-form{flex-direction:column;gap:14px;display:flex}.photo-picker{flex-direction:column;gap:12px;display:flex}.photo-preview{object-fit:contain;background:#000;border-radius:18px;width:100%;max-height:60dvh}.photo-placeholder{opacity:.7;border:2px dashed #ffffff2e;border-radius:18px;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-height:220px;font-size:13px;display:flex}.photo-placeholder span{font-size:34px}.photo-actions{grid-template-columns:1fr 1fr;gap:10px;display:grid}.field{flex-direction:column;gap:6px;font-size:13px;display:flex}.field>span{opacity:.7}.field input,.field select,.field textarea{width:100%;color:inherit;font:inherit;background:#ffffff0f;border:1px solid #ffffff24;border-radius:12px;padding:12px 14px;font-size:16px}.challenge-hint{background:#ff8a5c1a;border:1px solid #ff8a5c40;border-radius:14px;padding:12px 14px;font-size:13px}.challenge-hint p{opacity:.8;margin:4px 0 0}.challenge-tip{color:#ffd27a}.feed-card{background:#ffffff0d;border:1px solid #ffffff14;border-radius:18px;overflow:hidden}.feed-card img{aspect-ratio:4/3;object-fit:cover;background:#000;width:100%;display:block}.feed-body{flex-direction:column;gap:6px;padding:12px 14px 14px;display:flex}.feed-head{justify-content:space-between;align-items:center;display:flex}.feed-points{color:#ff8a5c;font-size:12px;font-weight:700}.feed-head-actions{align-items:center;gap:8px;display:flex}.feed-delete{width:28px;height:28px;color:var(--danger);cursor:pointer;background:0 0;border:1px solid #ff6b6b66;border-radius:8px;justify-content:center;align-items:center;padding:0;font-size:13px;line-height:1;transition:background .15s,opacity .15s;display:inline-flex}.feed-delete:hover:not(:disabled){background:#ff6b6b26}.feed-delete:disabled{opacity:.5;cursor:not-allowed}.feed-title{margin:0;font-size:14px}.feed-time{opacity:.5;font-size:11px}.fab{right:max(18px,50% - 240px);bottom:calc(84px + env(safe-area-inset-bottom));color:#fff;background:linear-gradient(135deg,#ff7a45,#ff3d81);border-radius:50%;place-items:center;width:56px;height:56px;font-size:30px;line-height:1;text-decoration:none;display:grid;position:fixed;box-shadow:0 10px 24px #ff3d8159}.ranking-item{background:#ffffff0d;border:1px solid #ffffff14;border-radius:14px;align-items:center;gap:12px;padding:12px 14px;display:flex}.ranking-item.is-me{background:#ff8a5c1a;border-color:#ff8a5c99}.ranking-pos{text-align:center;width:28px;font-weight:700}.ranking-info{flex-direction:column;flex:1;display:flex}.ranking-sub{opacity:.6;font-size:11px}.ranking-you{color:#ffb08a;background:#ff8a5c40;border-radius:999px;margin-left:6px;padding:1px 8px;font-size:10px}.ranking-points{color:#ff8a5c;font-weight:700}.profile-card{background:linear-gradient(160deg,#ff7a452e,#ff3d811f);border:1px solid #ffffff1a;border-radius:20px;flex-direction:column;align-items:center;gap:8px;padding:22px 16px;display:flex}.profile-avatar{color:#fff;background:linear-gradient(135deg,#ff7a45,#ff3d81);border-radius:50%;place-items:center;width:64px;height:64px;font-size:26px;font-weight:700;display:grid}.profile-card h2{margin:0;font-size:20px}.profile-event{opacity:.75;text-align:center;margin:0;font-size:13px}.profile-stats{grid-template-columns:repeat(3,1fr);gap:8px;width:100%;margin-top:8px;display:grid}.profile-stats div{background:#0003;border-radius:12px;flex-direction:column;align-items:center;padding:10px 4px;display:flex}.profile-stats strong{font-size:18px}.profile-stats span{opacity:.65;font-size:11px}.profile-grid{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}.profile-grid li{background:#ffffff0d;border-radius:14px;overflow:hidden}.profile-grid img{aspect-ratio:1;object-fit:cover;width:100%;display:block}.profile-grid-info{opacity:.8;justify-content:space-between;padding:6px 8px;font-size:11px;display:flex}.party-footnote{text-align:center;opacity:.55;margin:8px 0 0;font-size:12px}.party-gate{max-width:520px;min-height:100dvh;padding:32px 20px calc(32px + env(safe-area-inset-bottom));flex-direction:column;justify-content:center;gap:24px;margin:0 auto;display:flex}.party-gate-hero{text-align:center;flex-direction:column;gap:8px;display:flex}.party-gate-badge{font-size:44px}.party-gate-hero h1{margin:0;font-size:26px;line-height:1.2}.party-gate-hero p{opacity:.75;margin:0;font-size:14px}.party-gate-meta{opacity:.5!important;font-size:12px!important}.party-gate-form{flex-direction:column;gap:12px;display:flex}.party-gate-form label{opacity:.75;font-size:13px}.party-gate-form input{color:inherit;font:inherit;background:#ffffff0f;border:1px solid #ffffff29;border-radius:14px;padding:16px;font-size:17px}.party-gate-hint{text-align:center;opacity:.5;margin:0;font-size:12px}@media (width>=720px){.party-main{padding:24px 20px 32px}}.form-error{color:#ffb3b3;background:#ff6b6b1f;border:1px solid #ff6b6b73;border-radius:10px;margin:0;padding:10px 12px;font-size:14px}.form-error-blocked{color:#ffd39b;background:#ffaa3c1f;border-color:#ffaa3c8c}.auth-nav{align-items:center;margin-left:auto}.auth-user{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;max-width:160px;font-size:.88rem;overflow:hidden}.button.small{padding:.4rem .85rem;font-size:.85rem}.auth-page{margin:0 auto}.auth-switch{color:var(--muted);text-align:center;margin:0;font-size:.88rem}.auth-switch a{color:var(--accent)}.form-error{color:var(--danger);margin:0;font-size:.88rem}.event-list{flex-direction:column;gap:.75rem;display:flex}.event-item{justify-content:space-between;align-items:center;gap:1rem;transition:border-color .15s;display:flex}.event-item:hover{border-color:var(--accent)}.event-item-main{color:inherit;flex:1;justify-content:space-between;align-items:center;gap:1rem;text-decoration:none;display:flex}.badge-telao{white-space:nowrap}.event-item p{margin:.2rem 0 0}.event-created{border-color:#6ee7a866;flex-direction:column;gap:.5rem;display:flex}.event-created p{margin:0}.slideshow{z-index:100;color:#f4f7ff;background:radial-gradient(circle at 20% 0,#1b2340 0%,#0a0c12 55%,#05060a 100%);flex-direction:column;display:flex;position:fixed;inset:0;overflow:hidden}.slideshow-center{text-align:center;justify-content:center;align-items:center;font-size:1.4rem}.slideshow-hint{color:var(--muted);font-size:1rem}.slideshow-header{justify-content:space-between;align-items:center;gap:2rem;padding:2vh 3vw;display:flex}.slideshow-header h1{margin:0;font-size:clamp(1.6rem,3.2vw,3rem);line-height:1.1}.slideshow-header-right{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:1.2rem;display:flex}.slideshow-eyebrow{text-transform:uppercase;letter-spacing:.18em;color:#8fa6ff;margin:0 0 .4rem;font-size:clamp(.7rem,1vw,1rem)}.slideshow-code{color:#8fa6ff;font-family:ui-monospace,monospace;font-size:clamp(1rem,1.6vw,1.6rem)}.slideshow-counter{color:var(--muted);font-size:clamp(.8rem,1.2vw,1.1rem)}.slideshow-button{color:#f4f7ff;cursor:pointer;background:#ffffff14;border:1px solid #ffffff29;border-radius:999px;padding:.5rem 1.1rem;font-size:clamp(.8rem,1.1vw,1rem);text-decoration:none;transition:background .15s}.slideshow-button:hover{background:#ffffff2e}.slideshow-stage{flex:1;justify-content:center;align-items:center;min-height:0;padding:0 3vw;display:flex}.slideshow-empty{text-align:center;color:var(--muted)}.slideshow-empty h2{color:#f4f7ff;font-size:clamp(1.6rem,3vw,2.6rem)}.slideshow-photo{flex-direction:column;justify-content:center;align-items:center;gap:1.5vh;width:100%;height:100%;margin:0;animation:.6s slideshow-fade;display:flex}.slideshow-photo img{object-fit:contain;border-radius:18px;max-width:100%;max-height:72vh;box-shadow:0 24px 80px #0009}.slideshow-photo figcaption{text-align:center;max-width:80vw}.slideshow-caption{margin:0 0 .6rem;font-size:clamp(1.2rem,2.4vw,2.2rem);font-weight:600;line-height:1.25}.slideshow-meta{color:var(--muted);flex-wrap:wrap;justify-content:center;align-items:center;gap:1rem;margin:0;font-size:clamp(.9rem,1.4vw,1.3rem);display:flex}.slideshow-meta strong{color:#f4f7ff}.slideshow-tag{background:#6c8cff2e;border:1px solid #6c8cff66;border-radius:999px;padding:.2rem .8rem}.slideshow-points{color:#6ee7a8;font-weight:700}.slideshow-challenge,.slideshow-ranking{text-align:center;max-width:70vw;animation:.6s slideshow-fade}.slideshow-challenge h2,.slideshow-ranking h2{margin:0 0 1.2rem;font-size:clamp(2rem,5vw,4.5rem);line-height:1.05}.slideshow-challenge-desc{color:#c9d3ea;margin:0 0 1.4rem;font-size:clamp(1.1rem,2vw,1.8rem)}.slideshow-tip{color:var(--muted);margin-top:1.4rem;font-size:clamp(.9rem,1.4vw,1.3rem)}.slideshow-ranking ol{flex-direction:column;gap:.8rem;margin:0;padding:0;list-style:none;display:flex}.slideshow-ranking li{background:#ffffff0d;border:1px solid #ffffff1a;border-radius:14px;align-items:center;gap:1.2rem;padding:.8rem 1.4rem;font-size:clamp(1rem,1.8vw,1.6rem);display:flex}.slideshow-rank{color:#8fa6ff;min-width:3ch;font-weight:700}.slideshow-rank-name{text-align:left;flex:1}.slideshow-footer{justify-content:space-between;align-items:center;gap:2rem;padding:2vh 3vw;display:flex}.slideshow-progress{flex-wrap:wrap;flex:1;gap:.4rem;display:flex}.slideshow-progress span{background:#ffffff2e;border-radius:999px;width:22px;height:4px}.slideshow-progress span.active{background:#6c8cff}.slideshow-controls{gap:.6rem;display:flex}.slideshow-help{color:var(--muted);background:#000000bf;border:1px solid #ffffff26;border-radius:12px;padding:.6rem 1.2rem;position:absolute;bottom:12vh;left:50%;transform:translate(-50%)}@keyframes slideshow-fade{0%{opacity:0;transform:scale(.985)}to{opacity:1;transform:scale(1)}}.composer{flex-direction:column;gap:0;min-height:100%;display:flex}.composer-bar{z-index:5;background:var(--bg);grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;padding:4px 4px 12px;display:grid;position:sticky;top:0}.composer-back{width:40px;height:40px;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:50%;place-items:center;font-size:28px;line-height:1;display:grid}.composer-back:hover{background:var(--surface-2)}.composer-title{text-align:center;margin:0;font-size:16px;font-weight:600}.composer-share{color:var(--accent);font:inherit;cursor:pointer;background:0 0;border:none;justify-self:end;padding:8px 4px;font-size:15px;font-weight:700}.composer-share:disabled{opacity:.5;cursor:default}.composer-share-ghost{pointer-events:none}.composer-select{flex-direction:column;gap:14px;padding-top:8px;display:flex}.composer-dropzone{border:2px dashed var(--border);background:var(--surface);min-height:320px;color:var(--text);font:inherit;cursor:pointer;border-radius:20px;flex-direction:column;justify-content:center;align-items:center;gap:8px;transition:border-color .15s,background .15s;display:flex}.composer-dropzone:hover{border-color:var(--accent);background:var(--surface-2)}.composer-dropzone-icon{font-size:48px}.composer-dropzone small{color:var(--muted);font-size:13px}.composer-select-actions{grid-template-columns:1fr 1fr;gap:10px;display:grid}.composer-body{flex-direction:column;gap:16px;display:flex}.composer-media{background:#000;border-radius:18px;position:relative;overflow:hidden}.composer-preview{object-fit:contain;background:#000;width:100%;max-height:60dvh;display:block}.composer-change{color:#fff;font:inherit;cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0009;border:none;border-radius:999px;padding:6px 14px;font-size:13px;font-weight:600;position:absolute;top:10px;right:10px}.composer-change:hover{background:#000c}.composer-fields{flex-direction:column;gap:14px;display:flex}
