*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:#070a12;color:#e8eef5;font:16px/1.6 system-ui,-apple-system,"Hiragino Sans","Noto Sans JP",sans-serif}
a{color:inherit}
.logo{margin:0;text-align:center;font-weight:900;line-height:1.05;letter-spacing:.04em;user-select:none}
.logo span{display:block}
.logo .a{font-size:min(21vw,104px);color:#fff;text-shadow:0 0 .35em rgba(255,255,255,.35),0 .06em 0 #b71c1c,0 .12em .3em rgba(0,0,0,.7)}
.logo .b{font-size:min(15.5vw,78px);margin-top:.08em;background:linear-gradient(180deg,#ffe082 10%,#ff7043 55%,#e53935 100%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 .05em 0 #5d0f0f) drop-shadow(0 0 .3em rgba(255,82,50,.55))}
.sw{position:fixed;right:6px;bottom:6px;z-index:50;font-size:11px;background:rgba(0,0,0,.8);border:1px solid #334;border-radius:8px;padding:4px 6px;display:flex;gap:4px;flex-wrap:wrap;max-width:240px}
.sw a{color:#9fb0c8;text-decoration:none;padding:3px 6px;border-radius:5px;background:#1a2233}
.sw a.on{background:#ffd24a;color:#2b1200}
.clean .sw{display:none}

/* title */
#bg{position:fixed;inset:0;width:100%;height:100%;display:block;z-index:0}
.hero{position:relative;z-index:1;height:100vh;height:100svh;min-height:520px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:0 20px max(22px,env(safe-area-inset-bottom));cursor:pointer;text-align:center}
.hero .logo{margin-bottom:max(4vh,24px)}
.hero .logo .a{animation:rise .9s cubic-bezier(.2,.9,.25,1.2) both}
.hero .logo .b{animation:rise .9s .18s cubic-bezier(.2,.9,.25,1.2) both}
@keyframes rise{from{opacity:0;transform:translateY(.25em) scale(.9);filter:blur(6px)}}
.tap{font-size:20px;font-weight:800;letter-spacing:.3em;text-indent:.3em;color:#fff3c4;text-shadow:0 0 14px rgba(255,200,60,.65);animation:blink 1.8s ease-in-out infinite;margin:0 0 18px}
@keyframes blink{50%{opacity:.6}}
.more{font-size:12px;color:#8a97ab;letter-spacing:.12em;text-decoration:none;display:block;padding:6px 14px}
.more i{display:block;font-style:normal;animation:bob 1.6s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(4px)}}
.intro{position:relative;z-index:1;background:linear-gradient(180deg,#05070d 0,#0a0f1c 100%);padding:44px 22px 20px;box-shadow:0 -30px 40px #05070d}
.intro .in{max-width:520px;margin:0 auto}
.intro h2{font-size:20px;margin:0 0 6px;letter-spacing:.06em}
.intro h2::before{content:"";display:inline-block;width:6px;height:1em;background:linear-gradient(#ffd24a,#e53935);border-radius:3px;margin-right:10px;vertical-align:-.15em}
.intro p{margin:0 0 28px;color:#b8c3d4;font-size:15px;line-height:1.85}
.steps{list-style:none;margin:0 0 30px;padding:0;display:grid;gap:10px;counter-reset:s}
.steps li{counter-increment:s;display:flex;gap:14px;align-items:center;background:#111827;border:1px solid #1f2a40;border-radius:14px;padding:14px 16px;color:#dbe4f2;font-size:15px;line-height:1.6}
.steps li::before{content:counter(s);flex:none;width:30px;height:30px;border-radius:50%;background:linear-gradient(#ffe082,#ff9800);color:#3b1200;font-weight:900;display:grid;place-items:center}
.start{display:block;max-width:340px;margin:0 auto 26px;text-align:center;text-decoration:none;font-size:20px;font-weight:900;letter-spacing:.3em;text-indent:.3em;color:#3b1200;background:linear-gradient(180deg,#fff2a8,#ffd24a 55%,#ffb300);border-radius:999px;padding:14px 0;box-shadow:0 8px 24px rgba(255,170,0,.3),inset 0 -4px 0 rgba(160,80,0,.35)}
footer{position:relative;z-index:1;background:#0a0f1c;text-align:center;font-size:12px;line-height:2;color:#7b889b;padding:8px 16px max(22px,env(safe-area-inset-bottom))}
footer a{color:#8d9ab0;text-decoration:none;margin:0 8px}
footer .v{display:block;color:#566174}

/* home */
.home{position:relative;max-width:520px;margin:0 auto;padding:0 18px 40px;background:
 radial-gradient(120% 40% at 50% 0,rgba(229,57,53,.16),transparent 70%)}
.hd{display:flex;align-items:center;justify-content:space-between;height:52px}
.hd .mini{font-weight:900;font-size:19px;letter-spacing:.06em;color:#fff;text-shadow:0 2px 0 #b71c1c}
.hd .mini b{background:linear-gradient(180deg,#ffe082,#ff7043);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none}
.hd .lv{font-size:12px;color:#9fb0c8;letter-spacing:.08em}
.banner{margin:0 0 10px;padding:9px 14px;border-radius:12px;background:rgba(255,210,74,.12);border:1px solid rgba(255,210,74,.4);color:#ffe9a3;font-size:14px;font-weight:700;display:none}
.card{position:relative;min-height:max(380px,46vh);border-radius:26px;padding:16px 16px 16px;background:linear-gradient(180deg,#1a2338 0,#101828 100%);border:1px solid #2a3652;box-shadow:0 14px 40px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.07);display:flex;flex-direction:column;gap:10px;overflow:hidden}
.card::before{content:"";position:absolute;inset:-1px;border-radius:26px;pointer-events:none;box-shadow:inset 0 0 0 1px rgba(255,210,74,.0)}
.card .row{display:flex;align-items:center;justify-content:space-between;min-height:24px}
.chip{font-size:12px;font-weight:800;letter-spacing:.12em;color:#ffd24a;background:rgba(255,210,74,.12);border-radius:999px;padding:3px 12px}
.chip.new{background:#e53935;color:#fff}
.num{font-size:13px;color:#9fb0c8;letter-spacing:.1em}
.board{display:block;width:100%;flex:1;min-height:150px;max-height:260px;border-radius:12px;background:#080c16;border:1px solid #232d45;object-fit:contain}
.cname{display:flex;align-items:baseline;gap:12px}
.cname .n{font-size:15px;font-weight:800;color:#ffd24a;letter-spacing:.06em;white-space:nowrap}
.cname .t{font-size:26px;font-weight:900;letter-spacing:.06em;color:#fff;line-height:1.2}
.go{display:flex;align-items:center;justify-content:center;width:100%;height:64px;border-radius:999px;text-decoration:none;font-size:28px;font-weight:900;letter-spacing:.35em;text-indent:.35em;color:#3b1200;background:linear-gradient(180deg,#fff2a8,#ffd24a 55%,#ffb300);box-shadow:0 0 0 3px rgba(255,210,74,.22),0 10px 28px rgba(255,170,0,.35),inset 0 -4px 0 rgba(160,80,0,.35);animation:pulse 2.4s ease-in-out infinite}
.go:active{transform:translateY(2px) scale(.98)}
.go.alt{font-size:19px;letter-spacing:.12em;text-indent:.12em;height:56px;animation:none;color:#e8eef5;background:#1c2740;box-shadow:inset 0 0 0 1px #3a4a6e}
@keyframes pulse{50%{box-shadow:0 0 0 7px rgba(255,210,74,.12),0 10px 34px rgba(255,170,0,.55),inset 0 -4px 0 rgba(160,80,0,.35)}}
.glow .card{border-color:rgba(255,210,74,.7);box-shadow:0 0 0 1px rgba(255,210,74,.35),0 0 46px rgba(255,190,50,.28),0 14px 40px rgba(0,0,0,.5)}
.glow .banner{display:block}
.trophy{flex:1;display:grid;place-items:center;min-height:150px}
.trophy svg{width:140px;height:140px;filter:drop-shadow(0 0 22px rgba(255,200,60,.55))}
.allbtns{display:grid;gap:10px}
.prog{margin:18px 2px 0}
.prog .l1{display:flex;justify-content:space-between;align-items:baseline;font-size:13px;color:#9fb0c8}
.prog .l1 b{font-size:20px;color:#fff;letter-spacing:.04em}
.prog .l1 b small{font-size:13px;color:#9fb0c8;font-weight:600}
.bar{height:10px;border-radius:6px;background:#161f33;overflow:hidden;margin:8px 0 8px;box-shadow:inset 0 1px 2px rgba(0,0,0,.6)}
.bar i{display:block;height:100%;min-width:8px;border-radius:6px;background:linear-gradient(90deg,#e53935,#ffb300)}
.l2{display:flex;justify-content:space-between;font-size:12.5px;color:#8d9ab0}
.l2 em{font-style:normal;color:#cfd8e6;font-weight:700}
.up{color:#7be08a!important}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}
.tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:92px;border-radius:18px;text-decoration:none;color:#e8eef5;font-size:14px;font-weight:800;letter-spacing:.06em;background:linear-gradient(180deg,#18223a,#121a2c);border:1px solid #27324f;box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.tile svg{width:34px;height:34px}
.tile:active{transform:scale(.97)}
.quiet .tile{opacity:.6;font-weight:600}
.small{display:flex;justify-content:center;gap:6px;margin-top:14px}
.small a{position:relative;color:#9fb0c8;text-decoration:none;font-size:14px;padding:11px 14px;min-height:44px;letter-spacing:.08em}
.small a .dot{display:none;position:absolute;top:8px;right:4px;width:8px;height:8px;border-radius:50%;background:#e53935}
.news .small a .dot{display:block}
.ad{margin:56px auto 0;width:320px;max-width:100%;height:100px;border-radius:8px;background:#1b1f27;border:1px dashed #3a4150;display:grid;place-items:center;color:#5b6577;font-size:12px;letter-spacing:.1em}
.adnote{text-align:center;font-size:10px;color:#4a5363;margin-top:4px}
/* state visibility */
[data-s]{display:none}
.st-first [data-s~=first],.st-usual [data-s~=usual],.st-back [data-s~=back],.st-new [data-s~=new],.st-all [data-s~=all]{display:revert}
.st-first [data-s~=first].flex,.st-usual .flex[data-s~=usual],.st-back .flex[data-s~=back]{display:flex}
@media (prefers-reduced-motion:reduce){.go,.tap,.more i{animation:none}}
.banner:empty{display:none!important}

.cname.c{justify-content:center}

/* real home additions */
.sw{display:none}
.ad{margin:56px auto 0;height:100px;background:transparent;border:0;color:transparent}
.adnote{display:none}
.small button{position:relative;font:inherit;background:none;border:0;color:#9fb0c8;font-size:14px;padding:11px 14px;min-height:44px;letter-spacing:.08em;cursor:pointer}
.small button .dot{display:none;position:absolute;top:8px;right:4px;width:8px;height:8px;border-radius:50%;background:#e53935}
.news .small button .dot{display:block}
button.tile{font:inherit;font-size:14px;font-weight:800;letter-spacing:.06em;cursor:pointer}
.sheet{position:fixed;inset:0;z-index:20;background:rgba(3,5,10,.72);display:flex;align-items:flex-end;justify-content:center}
.sheet[hidden]{display:none}
.sheet .box{width:100%;max-width:520px;max-height:88vh;overflow:auto;background:#101828;border:1px solid #2a3652;border-radius:22px 22px 0 0;padding:18px 18px max(22px,env(safe-area-inset-bottom))}
.sheet h2{margin:0 0 8px;font-size:19px}
.sheet label{display:block;font-size:14px;color:#9fb0c8;margin:12px 0 4px}
.sheet input[type=range]{width:100%}
.sheet input[type=text],.sheet select{width:100%;font:inherit;font-size:16px;color:#e8eef5;background:#0b1220;border:1px solid #35567d;border-radius:8px;padding:8px 10px;min-height:44px}
.sheet .close{display:block;width:100%;margin-top:16px;min-height:48px;font:inherit;font-size:16px;font-weight:700;color:#e8eef5;background:#1c2740;border:1px solid #3a4a6e;border-radius:12px;cursor:pointer}
.sheet .muted{color:#9fb0c8;font-size:14px}
.tabs{display:flex;gap:6px;margin-bottom:8px}
.tabs button{flex:1;font:inherit;font-size:15px;color:#e8eef5;background:#0b1220;border:1px solid #35567d;border-radius:8px;padding:8px;min-height:44px}
.tabs button.on{background:#1d3a5c}
.rank{list-style:none;margin:8px 0;padding:0}
.rank li{display:flex;gap:8px;align-items:baseline;padding:6px 8px;border-bottom:1px solid #22324a;font-size:16px}
.rank li:nth-child(-n+3) .no{color:#ffb74d}
.rank .no{width:2.2em;text-align:right;color:#9fb0c8;flex:none}
.rank .nm{flex:1;min-width:0;overflow-wrap:anywhere}
.rank .sc{flex:none;font-weight:600}
.rank li.me{background:#1d3a5c;border-radius:6px}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.7);display:flex;align-items:center;justify-content:center;padding:16px;z-index:30}
.modal-box{background:#111c2e;border:1px solid #35567d;border-radius:12px;padding:16px;width:100%;max-width:380px}
.row{display:flex;gap:8px;margin-top:10px}
.row .btn{flex:1;font:inherit;color:#fff;background:#1d3a5c;border:1px solid #35567d;border-radius:10px;min-height:44px}

/* real home additions */
.sw{display:none}
.ad{margin:56px auto 0;height:100px;background:transparent;border:0;color:transparent}
.small button{position:relative;font:inherit;background:none;border:0;color:#9fb0c8;font-size:14px;padding:11px 14px;min-height:44px;letter-spacing:.08em;cursor:pointer}
.small button .dot{display:none;position:absolute;top:8px;right:4px;width:8px;height:8px;border-radius:50%;background:#e53935}
.news .small button .dot{display:block}
button.tile{font:inherit;font-size:14px;font-weight:800;letter-spacing:.06em;cursor:pointer}
button.go{border:0;font-family:inherit;cursor:pointer}
.sheet{position:fixed;inset:0;z-index:20;background:rgba(3,5,10,.72);display:flex;align-items:flex-end;justify-content:center}
.sheet[hidden]{display:none}
.sheet .box{width:100%;max-width:520px;max-height:88vh;overflow:auto;background:#101828;border:1px solid #2a3652;border-radius:22px 22px 0 0;padding:18px 18px max(22px,env(safe-area-inset-bottom))}
.sheet h2{margin:0 0 8px;font-size:19px}
.sheet label{display:block;font-size:14px;color:#9fb0c8;margin:12px 0 4px}
.sheet input[type=range]{width:100%}
.sheet input[type=text],.sheet select{width:100%;font:inherit;font-size:16px;color:#e8eef5;background:#0b1220;border:1px solid #35567d;border-radius:8px;padding:8px 10px;min-height:44px}
.sheet .close{display:block;width:100%;margin-top:16px;min-height:48px;font:inherit;font-size:16px;font-weight:700;color:#e8eef5;background:#1c2740;border:1px solid #3a4a6e;border-radius:12px;cursor:pointer}
.sheet .muted{color:#9fb0c8;font-size:14px}
.tabs{display:flex;gap:6px;margin-bottom:8px}
.tabs button{flex:1;font:inherit;font-size:15px;color:#e8eef5;background:#0b1220;border:1px solid #35567d;border-radius:8px;padding:8px;min-height:44px}
.tabs button.on{background:#1d3a5c}
.rank{list-style:none;margin:8px 0;padding:0}
.rank li{display:flex;gap:8px;align-items:baseline;padding:6px 8px;border-bottom:1px solid #22324a;font-size:16px}
.rank li:nth-child(-n+3) .no{color:#ffb74d}
.rank .no{width:2.2em;text-align:right;color:#9fb0c8;flex:none}
.rank .nm{flex:1;min-width:0;overflow-wrap:anywhere}
.rank .sc{flex:none;font-weight:600}
.rank li.me{background:#1d3a5c;border-radius:6px}
.go.easy{margin-top:6px;height:56px;flex-direction:column;font-size:19px;letter-spacing:.12em;text-indent:.12em;animation:none;color:#e8eef5;background:#1c2f4d;box-shadow:inset 0 0 0 1px #3a5a8e;line-height:1.2}
.go.easy small{font-size:12px;letter-spacing:.04em;text-indent:0;color:#9fb8d8;font-weight:600}
.go.last{box-shadow:0 0 0 3px rgba(255,210,74,.5),0 10px 28px rgba(255,170,0,.35),inset 0 -4px 0 rgba(160,80,0,.35)}
.go.easy.last{box-shadow:0 0 0 2px #7fb8ff,inset 0 0 0 1px #3a5a8e}
.card{gap:8px}
.hd{justify-content:space-between}
