:root {
  color-scheme:dark;--base:#101019;--panel:#1b1a28;--panel2:#242234;--line:#353248;--text:#f8f7fd;--muted:#b5b0c8;--lav:#c6b3ff;--purple:#8460ed;
  font-family:"Be Vietnam Pro","DM Sans","Segoe UI",sans-serif;font-size:16px;color:var(--text);background:var(--base);
}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;background:radial-gradient(ellipse at 89% 8%,#24203580,transparent 45%),var(--base);min-height:100vh;display:flex;flex-direction:column}main{flex:1}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button{border:0;background:none}a{color:inherit;text-decoration:none}button:disabled{opacity:.47;cursor:not-allowed}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #ccbbff}button:not(:disabled):active,.button:not(:disabled):active{transform:translateY(1px)}h1,h2,h3,p{margin:0}img{display:block;max-width:100%}.ic{display:inline-block;width:20px;height:20px;flex:none;vertical-align:middle}.wrap{width:min(1344px,calc(100% - clamp(36px,8.3vw,136px)));margin-inline:auto}.skip{position:fixed;top:-100px;left:20px;z-index:99;background:#622db8;padding:10px}.skip:focus{top:12px}
.top{border-bottom:1px solid #ffffff0d;background:#14131dd9}.top-inner{display:flex;align-items:center;gap:clamp(22px,4.5vw,82px);min-height:78px}.brand{display:flex;align-items:center;gap:12px;flex:none;font-size:1.36rem;letter-spacing:-1px;font-weight:700}.brand img{border-radius:12px;border:1px solid #fff2;object-fit:cover}.brand strong{font-weight:600}.top nav{display:flex;align-items:center;gap:8px}.nav-item{display:flex;align-items:center;justify-content:center;gap:9px;color:#b9b6c9;font-size:.9rem;font-weight:600;padding:10px 15px;border-radius:10px;transition:background .18s,color .18s;white-space:nowrap}.nav-item .ic{width:17px;height:17px}.nav-item.active{background:#322b46;color:#d4c1ff}.nav-item:hover,.icon-btn:hover{background:#302d40;color:white}.profile-chip{margin-left:auto;display:flex;align-items:center;gap:10px;border:1px solid #3a374c;border-radius:30px;padding:5px 12px 5px 6px;background:#221f2e;font-size:.84rem;font-weight:600;min-height:40px}.profile-chip .ic{width:14px;color:var(--muted)}#header-name{max-width:130px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#header-avatar{display:flex}.avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;object-fit:cover;border-radius:50%;font-size:21px;line-height:1;box-shadow:inset 0 0 0 1px #ffffff22;background:#8666b7}.profile-chip .avatar{width:29px;height:29px;font-size:19px}.av-violet{background:#a389d2}.av-peach{background:#e7ad83}.av-mint{background:#8cc8b1}.av-sky{background:#97b9e0}.av-rose{background:#e7a0c3}.av-sun{background:#ebc17c}
.hero{margin-top:clamp(20px,2.3vw,34px);position:relative;isolation:isolate;overflow:hidden;border-radius:24px;display:flex;align-items:center;min-height:clamp(400px,33vw,500px);border:1px solid #ffffff14;background:#363451;box-shadow:0 15px 45px -30px #05040a}.hero-img,.hero-shade{position:absolute;inset:0;width:100%;height:100%;z-index:-2;object-fit:cover;object-position:center 44%}.hero-shade{z-index:-1;background:linear-gradient(90deg,rgba(17,15,39,.93) 0%,rgba(29,21,57,.81) 23%,rgba(39,26,62,.39) 47%,rgba(21,18,37,.025) 72%),linear-gradient(0deg,#1e183940,transparent 30%)}.hero-content{width:min(550px,54%);padding:clamp(30px,3.35vw,56px) 0 clamp(32px,3.2vw,52px) clamp(30px,4.1vw,67px)}.featured{display:inline-flex;align-items:center;gap:8px;padding:6px 10px 6px 9px;border:1px solid #dcc9ff60;background:#503c6a9c;color:#efe1ff;border-radius:7px;font-size:.67rem;font-weight:700;letter-spacing:1.45px}.featured .ic{width:14px;height:14px;fill:#e5d3ff;stroke-width:1}.hero h1{font-family:"Playfair Display",Cambria,"Times New Roman",serif;font-size:clamp(4.05rem,5.67vw,6rem);line-height:.98;letter-spacing:-.049em;margin:16px 0 15px;font-weight:700;text-shadow:0 2px 16px #16122320}.hero h1 em{color:#e3d0ff;font-weight:700;font-style:italic}.hero p{font-size:clamp(.9rem,1.01vw,1rem);line-height:1.66;color:#f4eefb;max-width:390px}.hero-meta{display:flex;align-items:center;gap:14px;margin:18px 0 22px;color:#eee6fb;font-size:.82rem;font-weight:500}.hero-meta span,.hero-actions,.actions{display:flex;align-items:center;gap:9px}.hero-meta .ic{width:17px;height:17px;color:#d2bfea}.hero-meta b{width:3px;height:3px;background:#dfd4ed;border-radius:50%}.hero-actions,.actions{gap:11px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 19px;border:1px solid transparent;border-radius:11px;font-size:.91rem;line-height:1.35;font-weight:600;min-height:45px;transition:background .18s,box-shadow .18s,transform .15s}.button .ic{width:18px;height:18px}.primary{background:linear-gradient(120deg,#a382fc,#8860ed);color:#171021;box-shadow:inset 0 1px #ffffff55,0 5px 18px #4d2b973d}.primary:hover:not(:disabled){background:linear-gradient(120deg,#bea2ff,#9d7afa);box-shadow:0 5px 20px #8058ca59}.glass{background:#2522389e;border-color:#ebddff69;color:#fff;backdrop-filter:blur(8px)}.glass:hover{background:#4a3f62cc}.secondary{background:#2c283c;border-color:#494359;color:#f2eafc}.secondary:hover:not(:disabled){background:#373148}.quiet{font-size:.84rem;background:#201e2b;border-color:#3b374b;color:#d9d4e5}.quiet:hover{background:#2c293b}
.library{margin:clamp(29px,3vw,46px) 0 clamp(33px,3.9vw,62px)}.section-head,.section-name{display:flex;align-items:center}.section-head{justify-content:space-between;margin-bottom:19px}.section-name{gap:12px}.section-name h2,.panel h2{font-size:clamp(1.39rem,2.1vw,1.85rem);letter-spacing:-1.3px;line-height:1.35}.heading-icon{width:34px;height:34px;border:1px solid #8e74c739;border-radius:10px;display:grid;place-items:center;color:#b99cf9;background:#31283f}.heading-icon .ic{width:18px;height:18px}.section-note{font-size:.78rem;font-weight:600;color:#b7afc7;border:1px solid #3a3447;border-radius:20px;padding:5px 12px}.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.5vw,22px)}.game-tile{padding:0;text-align:left;background:#201e2c;border:1px solid #383444;border-radius:15px;overflow:hidden;min-width:0;transition:transform .2s,border-color .2s,box-shadow .2s}.game-tile:hover{transform:translateY(-4px);border-color:#71618c;box-shadow:0 8px 22px #08060c44}.tile-img{position:relative;aspect-ratio:1.98;overflow:hidden;background:#282432}.tile-img img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.game-tile:hover img{transform:scale(1.035)}.dev{position:absolute;left:10px;top:10px;display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border:1px solid #ffffff40;border-radius:20px;background:#191522c9;font-size:.68rem;color:white;line-height:1.3;font-weight:600;backdrop-filter:blur(6px)}.dev .ic{width:12px;height:12px}.tile-copy{padding:15px 16px 16px;display:flex;align-items:center;justify-content:space-between;gap:6px}.tile-copy strong,.tile-copy small{display:block}.tile-copy strong{font-size:clamp(.97rem,1.24vw,1.23rem);letter-spacing:-.65px}.tile-copy small{font-size:.76rem;color:#b9b3c8;margin-top:5px}.tile-lock{color:#aaa2bb;display:grid;place-items:center;border-radius:50%;width:27px;height:27px;background:#302c3d;flex:none}.tile-lock .ic{width:13px;height:13px}
.foot{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #332f40;padding:20px 0 25px;color:#b0aabe;font-size:.79rem}.foot-brand,.discord{display:flex;align-items:center;gap:9px}.foot-brand img{border-radius:6px}.foot strong{color:#ddd6ea;font-weight:600}.discord{color:#d5c5ff;font-weight:600;border:1px solid #463c5a;background:#282234;border-radius:9px;padding:8px 11px}.discord:hover{background:#392d4b}.discord .ic:first-child{width:17px;height:17px}.discord .ic:last-child{width:12px;height:12px}
dialog{color:var(--text);background:#211e30;border:1px solid #504862;border-radius:22px;width:min(490px,calc(100% - 28px));padding:clamp(20px,3vw,32px);max-height:88dvh;box-shadow:0 22px 86px #030207aa}dialog::backdrop{background:#06040dbe;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.dialog-head h2{font-size:1.5rem;letter-spacing:-1px}.icon-btn,.tools button,.av-choices button{display:inline-grid;place-items:center;background:#302b40;border:1px solid #51475f;border-radius:10px;width:36px;height:36px;padding:0;flex:none}.icon-btn .ic{width:18px;height:18px}dialog p,.panel>p,.guide p,.muted{color:var(--muted);line-height:1.65;font-size:.91rem}dialog .actions{margin-top:18px}#notice{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:99;transition:.2s;max-width:90vw;background:#efeaff;color:#2b203d;border-radius:12px;padding:12px 19px;font-size:.88rem;box-shadow:0 8px 30px #0005}#notice.show{opacity:1;transform:translate(-50%,0)}.error{color:#ffb2bf;font-size:.86rem;margin:12px 0 0}.error:empty{display:none}.field,fieldset{display:flex;flex-direction:column;gap:9px;margin:0 0 17px;font-size:.89rem;font-weight:600;color:#dfdbe9}fieldset{border:0;padding:0;min-width:0}legend{margin-bottom:9px;padding:0}input:not([type=file]):not([type=range]):not([type=color]),textarea,select{width:100%;background:#15131f;color:#f6f3fc;border:1px solid #474054;border-radius:10px;padding:11px 13px;font-size:1rem;font-weight:400}input::placeholder,textarea::placeholder{color:#aaa2ba}#join-code{text-transform:uppercase;letter-spacing:2px}select{appearance:none;padding-right:34px;background-image:linear-gradient(45deg,transparent 50%,#bcb1d1 50%),linear-gradient(135deg,#bcb1d1 50%,transparent 50%);background-position:calc(100% - 18px) center,calc(100% - 13px) center;background-size:5px 5px;background-repeat:no-repeat}textarea{resize:vertical;min-height:90px}.wide{width:100%}.profile-row,.av-choices{display:flex;align-items:center;gap:9px}.profile-row{gap:15px}.av-choices{flex-wrap:wrap;gap:5px}.av-choices button{border:2px solid transparent;width:34px;height:34px;border-radius:50%;background:none}.av-choices .avatar{width:27px;height:27px;font-size:18px}.av-choices button[aria-pressed=true]{border-color:#c5a4ff}.avatar.large{width:56px;height:56px;font-size:34px}.upload{position:relative;align-self:flex-start;display:flex;gap:7px;align-items:center;color:#d3bcff;cursor:pointer;font-size:.83rem;font-weight:600;padding:5px 0}.upload input,.custom-ink input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.upload:focus-within,.custom-ink:focus-within{outline:2px solid var(--lav);outline-offset:3px}.upload .ic{width:16px}.guide>div{display:flex;gap:13px;margin:18px 0}.guide h3,.empty h3{font-size:1.02rem;margin-bottom:4px}.guide-icon,.wait-icon{display:grid;place-items:center;flex:none;width:37px;height:37px;border-radius:11px;background:#423257;color:#d5b8ff}.guide p{font-size:.85rem}.preview-art,.received{width:100%;border-radius:12px;object-fit:contain}.preview-art{max-height:220px;object-fit:cover}.coming-status{display:inline-flex;align-items:center;gap:7px;color:#d8c4fb;font-size:.82rem;margin:16px 0 8px}.coming-status .ic{width:16px}.rank-row,.roster>div,.entry-label{display:flex;align-items:center;gap:10px}.rank-row{padding:9px 0;border-bottom:1px solid var(--line);font-size:.88rem}.rank-row>b:last-child{margin-left:auto;color:#decbff}.rank-row small,.entry-label small,.album-nav span strong{display:block;color:var(--muted);font-size:.77rem;margin-top:3px}.rank-row .place{width:30px;color:#c5b6df}.rank-row>span:not(.avatar){min-width:0;overflow-wrap:anywhere}.empty,.waiting{text-align:center;padding:20px 10px}.empty>.ic{color:#c6a5ff;width:40px;height:40px;margin-bottom:12px}
.room-bar{display:flex;align-items:center;gap:15px;margin:25px 0 18px;color:var(--muted)}.room-ident{display:flex;align-items:center;gap:8px}.room-ident b{color:var(--lav);letter-spacing:1px}.room-bar .quiet{margin-left:auto;padding:7px 12px;min-height:36px}#connection{font-size:.8rem;color:#efbc88}.lobby{display:grid;grid-template-columns:1.2fr 1fr;gap:22px;margin-bottom:40px}.panel{background:linear-gradient(140deg,#242033,#1c1a28 80%);border:1px solid #393344;border-radius:19px;padding:clamp(20px,3.4vw,43px);min-width:0}.panel h1{font-size:clamp(1.8rem,3vw,2.65rem);letter-spacing:-1.8px;margin:4px 0 10px}.eyebrow,.prompt small{color:#ceaeff;font-weight:700;letter-spacing:1.6px;font-size:.67rem}.room-code{font-weight:700;font-size:clamp(2rem,5vw,3.3rem);letter-spacing:.14em;color:#dfceff;margin:18px 0}.panel hr{border:0;border-top:1px solid var(--line);margin:22px 0}.panel h2 small,.pill{font-size:.78rem;color:var(--lav);font-weight:600;letter-spacing:0}.roster>div{padding:13px 0;border-bottom:1px solid var(--line);font-size:.91rem}.roster strong{overflow-wrap:anywhere;min-width:0}.roster small,.hint{font-size:.8rem;color:var(--muted)}.pill{margin-left:auto;background:#3a2f50;border-radius:20px;padding:4px 8px;white-space:nowrap}.panel p.hint{font-size:.8rem;margin-top:10px}.workspace,.album{width:min(900px,100%);margin:0 auto 38px}.work-head,.turn-actions,.album-nav{display:flex;align-items:center;justify-content:space-between;gap:14px}.work-head{margin-bottom:20px}.work-head h1{margin-bottom:0}.timer{display:inline-flex;align-items:center;gap:6px;color:#dbc7fd;background:#382b4a;border-radius:12px;padding:9px 11px;font-variant-numeric:tabular-nums;flex:none}.timer.urgent{color:#ffc3cd;background:#4b2b38}.prompt{background:#2c263b;border-left:3px solid #aa82f8;padding:12px 15px;border-radius:0 10px 10px 0;margin-bottom:15px}.prompt p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:600}.received{display:block;max-height:330px;background:#fff;margin:12px 0 16px}.turn-actions{margin:14px 0}.waiting{padding:35px 8px}.waiting p{color:var(--muted);margin-top:8px}.wait-icon{margin:0 auto 15px;width:46px;height:46px}#turn-progress{margin-top:20px;color:#bbb3cb;font-size:.79rem}.progress{height:5px;background:#393146;border-radius:6px;margin-top:7px;overflow:hidden}.progress i{height:100%;display:block;background:#b092f1;transition:width .3s}
.board{background:#201c2c;border-radius:13px;border:1px solid #494055;overflow:hidden}.tools,.inks{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px}.tools button{width:33px;height:33px;background:#2e293a;border-color:transparent;border-radius:7px}.tools .ic{width:18px}.tools button[aria-pressed=true]{background:#664c8e;color:#fff;border-color:#b59ad9}.tool-split{height:21px;width:1px;background:#50495b;margin:0 4px}.board canvas{display:block;width:100%;aspect-ratio:864/480;height:auto;background:#fff;touch-action:none;cursor:crosshair}.inks button,.custom-ink{position:relative;border-radius:50%;width:25px;height:25px;background:var(--ink);border:1px solid #ffffff5a;padding:0}.inks button[aria-pressed=true]{outline:2px solid #dfceff;outline-offset:1px}.custom-ink{display:grid;place-items:center;background:#3d344d}.custom-ink .ic{width:15px}.size{display:flex;align-items:center;gap:8px;font-size:.78rem;margin-left:auto}.size input{width:75px;accent-color:#aa82f8}.size output{width:19px}.album-nav{background:#30283e;padding:10px 12px;border-radius:13px;margin:15px 0}.album-nav span{text-align:center;font-size:.84rem;color:var(--muted)}.album-nav span strong{color:white;font-size:1rem}.entries article{padding:16px 0;border-bottom:1px solid var(--line)}.entries article>p{padding:10px 0 0 44px;color:#e9e2f4;overflow-wrap:anywhere;white-space:pre-wrap}.entry-label{font-size:.9rem}.entry-label .avatar{width:32px;height:32px}.album .actions{margin-top:20px}
@media(min-width:1600px){.hero{min-height:490px}}
@media(max-width:960px){.wrap{width:calc(100% - 44px)}.top-inner{gap:20px}.nav-item{padding:9px 10px}.tiles{gap:12px}.tile-copy{padding:12px}.hero-content{width:56%}.hero-shade{background:linear-gradient(90deg,#19152aef,#211933b8 35%,#2c204549 60%,transparent 80%)}}
@media(max-width:750px){.top-inner{flex-wrap:wrap;gap:0;justify-content:space-between;padding-top:12px}.brand{font-size:1.14rem}.brand img{width:33px;height:33px;border-radius:9px}.top nav{order:3;width:100%;gap:3px;margin:9px 0 8px}.nav-item{font-size:.78rem;padding:7px 10px;gap:6px}.nav-item .ic{width:15px;height:15px}.profile-chip{min-height:34px}.hero{min-height:390px}.hero-content{width:63%}.hero h1{font-size:4.3rem}.tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.lobby{grid-template-columns:1fr}.lobby-main{order:0}.hero-shade{background:linear-gradient(90deg,#181329e8,#231b39a8 48%,#21162d17 90%)}.hero-img{object-position:66% center}}
@media(max-width:510px){.wrap{width:calc(100% - 28px)}.top nav{justify-content:space-between}.nav-item{padding:7px 9px}.profile-chip{font-size:.77rem}.hero{min-height:450px;margin-top:14px;align-items:flex-end;border-radius:18px}.hero-img{object-position:69% 15%;height:64%;object-fit:cover}.hero-shade{background:linear-gradient(0deg,#231b37 0%,#231c38fa 32%,#261d36b8 51%,#231a3617 75%),linear-gradient(90deg,#251f3770,transparent 65%)}.hero-content{width:100%;padding:98px 20px 23px}.hero h1{font-size:3.7rem;margin:13px 0 10px}.hero p{font-size:.85rem;max-width:305px;line-height:1.55}.featured{font-size:.58rem;padding:5px 8px}.hero-meta{margin:14px 0 17px;font-size:.76rem}.hero-actions{gap:8px}.hero-actions .button{padding:10px 13px;font-size:.83rem;min-height:42px}.section-head{margin-bottom:13px}.section-note{font-size:.66rem;padding:4px 9px}.section-name{gap:8px}.section-name h2{font-size:1.35rem}.heading-icon{width:29px;height:29px}.tiles{gap:9px}.tile-img{aspect-ratio:1.58}.dev{left:6px;top:6px;font-size:.57rem;padding:4px 5px;gap:3px}.dev .ic{width:10px;height:10px}.tile-copy{padding:11px 9px}.tile-copy strong{font-size:.91rem;letter-spacing:-.5px}.tile-copy small{font-size:.65rem;margin-top:4px}.tile-lock{display:none}.game-tile{border-radius:11px}.foot{flex-wrap:wrap;font-size:.7rem}.foot-brand{gap:5px}.foot-brand img{width:20px;height:20px}.discord{gap:5px;padding:7px}.panel{padding:16px}.room-bar{gap:6px;flex-wrap:wrap;font-size:.85rem}.work-head{gap:8px}.work-head h1,.panel h1{font-size:1.62rem;letter-spacing:-1px}.button{padding:10px 13px}.timer{padding:6px 9px;font-size:.9rem}.turn-actions{flex-wrap:wrap}.tools,.inks{gap:5px;padding:7px}.tools button{width:28px;height:30px}.inks button,.custom-ink{width:20px;height:20px}.size{margin-left:0}.section-note{white-space:nowrap}.profile-row{gap:7px}.av-choices{gap:3px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
