:root{color-scheme:dark light}body{margin:0;font:16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;background:#12081f;color:#f2eaff}
main{max-width:760px;margin:0 auto;padding:32px 20px 64px}a{color:#ff6fb5}h1{font-size:28px}h2{margin-top:32px;font-size:20px}
header{display:flex;align-items:center;gap:12px;margin-bottom:8px}header img{width:48px;height:48px;border-radius:12px}nav a{margin-right:16px}footer{margin-top:48px;opacity:.7;font-size:14px}
@media (prefers-color-scheme:light){body{background:#fff;color:#1b1328}}
/* ---- web app ---- */
.wrap{max-width:1100px;margin:0 auto;padding:0 16px 64px}
.top{position:sticky;top:0;z-index:20;background:rgba(18,8,31,.92);backdrop-filter:blur(8px);border-bottom:1px solid #ffffff14}
.top .in{max-width:1100px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;gap:14px}
.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;font-weight:800;font-size:18px}.brand img{width:34px;height:34px;border-radius:9px}
.tabs{display:flex;gap:6px;margin-left:8px}.tabs a{color:#cdb8ee;text-decoration:none;padding:6px 12px;border-radius:999px;font-weight:600}.tabs a.on{background:#ff4f9a;color:#fff}
.sp{flex:1}.btn{display:inline-block;border:0;border-radius:999px;padding:10px 18px;font-weight:700;cursor:pointer;background:#ff4f9a;color:#fff;text-decoration:none;font-size:15px}.btn.ghost{background:#ffffff1a}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px;margin-top:18px}
.card{position:relative;border-radius:16px;overflow:hidden;background:#241236;cursor:pointer;aspect-ratio:9/14;text-decoration:none;color:#fff;display:block}
.card img{width:100%;height:100%;object-fit:cover;display:block}.card .cap{position:absolute;left:0;right:0;bottom:0;padding:34px 10px 10px;background:linear-gradient(transparent,#000c);font-weight:700;font-size:14px;line-height:1.25}
.card .tag{position:absolute;top:8px;left:8px;background:#000a;border-radius:999px;padding:3px 9px;font-size:11px;text-transform:capitalize}
.more{display:block;margin:26px auto 0}
.detail{display:grid;grid-template-columns:minmax(260px,380px) 1fr;gap:28px;margin-top:22px}@media(max-width:760px){.detail{grid-template-columns:1fr}}
.player{position:relative;border-radius:18px;overflow:hidden;background:#000;aspect-ratio:9/16;max-height:78vh}.player video{width:100%;height:100%;object-fit:cover;display:block}
.sub{position:absolute;left:8px;right:8px;bottom:14px;text-align:center;font-weight:700;text-shadow:0 1px 4px #000;font-size:15px;pointer-events:none}
.detail h1{margin:0 0 8px}.muted{color:#b9a6d6}.cta{margin-top:20px;display:flex;gap:10px;flex-wrap:wrap}
.modal{position:fixed;inset:0;background:#000c;display:none;align-items:center;justify-content:center;z-index:50;padding:16px}.modal.show{display:flex}
.box{background:#1d0f31;border:1px solid #ffffff22;border-radius:22px;max-width:420px;width:100%;padding:26px;text-align:center}.box img{width:72px;height:72px;border-radius:18px}
.box h2{margin:12px 0 6px}.stores{display:grid;gap:10px;margin:18px 0 6px}.stores a{background:#fff;color:#111;border-radius:14px;padding:12px;text-decoration:none;font-weight:700}
.x{margin-top:8px;background:none;border:0;color:#b9a6d6;cursor:pointer}
.avatar{border-radius:50%;aspect-ratio:1/1;object-fit:cover}.srow .card{aspect-ratio:3/4}
.age{position:fixed;inset:0;z-index:60;background:#12081f;display:flex;align-items:center;justify-content:center;padding:20px}

.stores.two{grid-template-columns:1fr 1fr;gap:14px}.stores.two>div{display:grid;gap:10px;align-content:start}.qr{background:#fff;border-radius:12px;padding:6px;aspect-ratio:1/1}.qr svg{width:100%;height:100%;display:block}.box{max-width:480px}

/* ===== web app: layout modelled on the original IF Drama web ===== */
body.web{background:#050507;color:#fff;font:14px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;margin:0}
body.web a{color:inherit;text-decoration:none}
.rail{position:fixed;left:0;top:0;bottom:0;width:70px;border-right:1px solid #ffffff12;display:flex;flex-direction:column;align-items:center;padding:18px 0;background:#050507;z-index:30}
.rail .logo img{width:30px;height:30px;border-radius:8px}
.rail nav{margin:auto 0 70px;display:flex;flex-direction:column;gap:14px}
.rail button,.rail a.ic{width:44px;height:44px;border-radius:12px;border:0;background:none;color:#cfcfd6;display:flex;align-items:center;justify-content:center;cursor:pointer}
.rail .on{background:#1f1f24;color:#fff}.rail svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.main{margin-left:70px;padding:18px 38px 80px;min-height:100vh;background:radial-gradient(900px 500px at 85% -10%,#1a0f2a66,transparent)}
.head{display:flex;align-items:center;gap:16px}.head h1{font-size:16px;margin:0;font-weight:800;flex:1}
.search{width:380px;max-width:44vw;background:#16161a;border:1px solid #ffffff14;border-radius:12px;padding:9px 12px;display:flex;gap:8px;align-items:center;color:#9a9aa5}
.search input{flex:1;background:none;border:0;outline:0;color:#fff;font:inherit}.search svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8}
.tabrow{display:flex;align-items:center;gap:16px;margin:6px 0 14px}.tabrow a,.tabrow button{background:none;border:0;color:#9a9aa5;font:600 11px/1 Inter,sans-serif;padding:8px 0;cursor:pointer;border-bottom:2px solid transparent}
.tabrow .on{color:#fff;border-color:#fff}.tabrow .sp{flex:1}.chk{font-size:11px;color:#bbb;display:flex;gap:6px;align-items:center}
.wgrid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px 14px}
@media(max-width:1180px){.wgrid{grid-template-columns:repeat(5,1fr)}}@media(max-width:980px){.wgrid{grid-template-columns:repeat(4,1fr)}}
.wc{display:block;cursor:pointer}.wc .po{aspect-ratio:9/16;border-radius:12px;overflow:hidden;background:#15151a;position:relative}.wc .po img{width:100%;height:100%;object-fit:cover;display:block}
.wc b{display:block;margin-top:8px;font-size:12.5px;font-weight:800}.wc small{display:block;color:#8d8d98;font-size:10.5px;margin-top:2px}
.rails h2{font-size:15px;margin:22px 0 10px;font-weight:800;display:flex;align-items:center}.rails h2 span{flex:1}
.arr{background:none;border:0;color:#cfcfd6;font-size:18px;cursor:pointer;padding:0 8px}
.hrow{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 5*14px)/6);gap:14px;overflow-x:auto;scrollbar-width:none;scroll-behavior:smooth}.hrow::-webkit-scrollbar{display:none}
.hrow .wc .po{aspect-ratio:9/16}
.stage{position:fixed;left:70px;right:0;top:0;bottom:0;background:#000;display:flex;align-items:center;justify-content:center;z-index:25}
.phone{position:relative;height:100vh;aspect-ratio:9/16;max-width:100%;background:#000}.phone video{width:100%;height:100%;object-fit:cover;display:block}
.phone .scrim{position:absolute;inset:0;background:linear-gradient(#0008,transparent 18%,transparent 52%,#000d);pointer-events:none}
.rb{position:absolute;top:14px;width:42px;height:42px;border-radius:50%;background:#0009;border:0;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;backdrop-filter:blur(6px)}
.rb svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}.rb.l{left:14px}.rb.r{right:14px}
.cap2{position:absolute;left:16px;right:16px;bottom:96px}.cap2 h2{margin:0 0 6px;font-size:18px}.cap2 p{margin:0;color:#d4d4dc;font-size:13px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.subt{position:absolute;left:12px;right:12px;bottom:158px;text-align:center;font-weight:800;text-shadow:0 1px 5px #000;font-size:15px;pointer-events:none}
.comp{position:absolute;left:14px;right:14px;bottom:18px;display:flex;gap:8px;align-items:center}
.comp .box2{flex:1;background:#1d1d22cc;border:1px solid #ffffff1c;border-radius:999px;padding:13px 16px;color:#a2a2ad;font-size:14px;cursor:pointer;text-align:left}
.comp .go{width:44px;height:44px;border-radius:50%;border:0;background:#ff4f6d;color:#fff;cursor:pointer;font-size:18px}
.sdet{display:grid;grid-template-columns:minmax(260px,420px) 1fr;gap:34px;margin-top:10px}@media(max-width:820px){.sdet{grid-template-columns:1fr}}
.sdet .hero{border-radius:16px;overflow:hidden;background:#111;aspect-ratio:9/14}.sdet video,.sdet img{width:100%;height:100%;object-fit:cover;display:block}
.sdet h1{font-size:26px;margin:0 0 4px}.pill{display:inline-block;background:#ff4f6d;color:#fff;border-radius:999px;padding:12px 26px;font-weight:800;border:0;cursor:pointer;margin-top:16px}
.tagchips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.tagchips button{background:#16161a;border:1px solid #ffffff14;color:#ddd;border-radius:999px;padding:6px 12px;font-size:12px;cursor:pointer}.tagchips .on{background:#fff;color:#000}
@media(max-width:760px){
  .rail{top:auto;bottom:0;left:0;right:0;width:auto;height:58px;flex-direction:row;border-right:0;border-top:1px solid #ffffff14;padding:0 6px;justify-content:space-around}
  .rail .logo{display:none}.rail nav{flex-direction:row;margin:0;gap:4px;width:100%;justify-content:space-around}
  .main{margin-left:0;padding:14px 14px 80px}.wgrid{grid-template-columns:repeat(3,1fr);gap:12px 10px}.search{width:auto;flex:1;max-width:none}.head h1{display:none}
  .stage{left:0;bottom:0}.hrow{grid-auto-columns:calc((100% - 2*10px)/3)}
}

/* ===== account / login ===== */
.acct{position:fixed;top:14px;right:22px;z-index:20}
.acct.btn{padding:8px 18px;font-size:13px}
.acct.av,.av.big{width:36px;height:36px;border-radius:50%;background:#ff4f6d;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;border:0;cursor:pointer;padding:0}
.av.big{width:64px;height:64px;font-size:26px;flex:none}
.head{padding-right:110px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.lgf{display:grid;gap:10px;margin-top:14px}.lgf input{background:#16161a;border:1px solid #ffffff22;border-radius:12px;padding:12px 14px;color:#fff;font:inherit;outline:0}.lgf input:focus{border-color:#ff4f6d}
.lgf .code{text-align:center;letter-spacing:.5em;font-size:22px}.lgf .pill{margin-top:0}.lerr{color:#ff8a9d;min-height:1.2em;margin:0;font-size:13px}
.or{display:flex;align-items:center;gap:10px;color:#8d8d98;font-size:12px;margin-top:14px}.or:before,.or:after{content:"";flex:1;height:1px;background:#ffffff1c}
.oauth{background:#fff;color:#111;border:0;border-radius:14px;padding:12px;font-weight:700;font:inherit;font-weight:700;cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #ff9db0;outline-offset:2px}
.acc{display:flex;gap:16px;align-items:center;margin:18px 0}.stats{display:flex;gap:26px;margin-top:8px;flex-wrap:wrap}.stats span{display:grid}.stats small{color:#8d8d98;font-size:11px}.stats b{font-size:16px}
.sec{font-size:15px;margin:26px 0 12px;font-weight:800}.vgrid .vc{background:none;border:0;color:inherit;font:inherit;text-align:left;padding:0}
.vc .pl{position:absolute;right:8px;bottom:8px;background:#000a;border-radius:50%;width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:11px}
.po.sq{aspect-ratio:1/1}.linkb{background:none;border:0;color:#ff6fb5;cursor:pointer;font:inherit;padding:0;text-decoration:underline}
#pv .box{max-width:420px}#pv video{width:100%;max-height:70vh;border-radius:14px;background:#000}#pv .stores{margin-top:12px}
@media(max-width:760px){.acct{top:10px;right:12px}.head{padding-right:84px}}
.age[hidden]{display:none}


/* ===== sync with the app's look ===== */
:root{--accent:#E8455F;--surface:#18181B;--surfaceHi:#1C1C22;--hair:#ffffff1f}
.modal{background:#000d;backdrop-filter:blur(6px)}
.box{background:var(--surface);border:1px solid var(--hair);border-radius:24px;box-shadow:0 20px 60px #000a;color:#fff;max-width:440px}
.box img{width:64px;height:64px;border-radius:16px}
.box h2{font-size:20px;font-weight:800;margin:14px 0 6px;color:#fff}
.box .muted{color:#ffffffad;font-size:14px;line-height:1.5}
body.web .stores a,body.web .stores button.oauth{background:var(--surfaceHi);color:#fff;border:1px solid var(--hair);border-radius:14px;padding:12px 14px;font-weight:700;font-size:14px}
body.web .stores a:hover,body.web .stores button.oauth:hover{border-color:var(--accent)}
body.web a.dlgo,body.web .pill{background:var(--accent);color:#fff;border-radius:999px;padding:13px 26px;font-weight:800;display:inline-block;margin:16px 0 4px}
.dlgo[hidden],.stores.two a[hidden]{display:none!important}
.qr{background:#fff;border-radius:14px;padding:8px}
.modal.phone .stores.two{display:none}
.lgf input{background:var(--surfaceHi);border:1px solid var(--hair);border-radius:12px}.lgf input:focus{border-color:var(--accent)}
.x{color:#ffffff8c;font-size:14px;margin-top:10px}.x:hover{color:#fff}
.or{color:#ffffff73}.or:before,.or:after{background:var(--hair)}
.tabrow .on{border-color:var(--accent)}
