*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;overflow:hidden;background:#ffe6d8;font-family:ui-rounded,"SF Pro Rounded","Nunito","Segoe UI",system-ui,-apple-system,sans-serif;color:#5a3a4a;user-select:none;-webkit-user-select:none;touch-action:none;overscroll-behavior:none}
#cv{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none}
button{font:inherit;color:inherit;border:0;cursor:pointer;touch-action:manipulation}
#top{position:fixed;left:0;right:0;top:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px 0;padding-top:max(8px,env(safe-area-inset-top));pointer-events:none}
#top>*{pointer-events:auto}
#tabs{display:flex;gap:4px;background:rgba(255,255,255,.72);padding:4px;border-radius:999px;box-shadow:0 4px 14px rgba(150,70,90,.16)}
#tabs button{padding:9px 14px;border-radius:999px;background:transparent;font-weight:800;font-size:15px;color:#8a5a6c;white-space:nowrap}
#tabs button.on{background:linear-gradient(#ff7aa2,#ff5a86);color:#fff;box-shadow:0 3px 8px rgba(255,80,130,.35)}
#icons{display:flex;gap:6px}
.ic{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.8);display:grid;place-items:center;box-shadow:0 4px 14px rgba(150,70,90,.16);color:#c2477a}
.ic svg{width:24px;height:24px}
.ic .x{display:none}
.ic.off{color:#b9a3ad}.ic.off .x{display:block}.ic.off .w{display:none}
#info{position:fixed;left:0;right:0;top:62px;display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;padding:0 10px;pointer-events:none;font-weight:800;font-size:14px}
#info .chip{background:rgba(255,255,255,.78);padding:6px 12px;border-radius:999px;box-shadow:0 3px 10px rgba(150,70,90,.12);white-space:nowrap}
#info .chip b{color:#e0457b}
#info button{pointer-events:auto;background:linear-gradient(#8fd8ff,#4fb2f5);color:#fff;padding:7px 14px;border-radius:999px;font-weight:800;box-shadow:0 3px 8px rgba(60,140,220,.35)}
#info .bar{width:min(320px,70vw);height:12px;border-radius:99px;background:rgba(255,255,255,.75);overflow:hidden;box-shadow:inset 0 1px 3px rgba(120,50,70,.2)}
#info .bar i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#ffcf4a,#ff7aa2);border-radius:99px;transition:width .1s linear}
#info .hint{width:100%;text-align:center;font-size:13px;color:#8a5a6c;opacity:.9}
#bottom{position:fixed;left:0;right:0;bottom:0;padding:6px 8px;padding-bottom:max(8px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:6px;align-items:center}
#bottom .row{display:flex;gap:6px;overflow-x:auto;max-width:100%;padding:4px 6px;scrollbar-width:none;touch-action:pan-x;background:rgba(255,255,255,.55);border-radius:18px;box-shadow:0 4px 14px rgba(150,70,90,.12)}
#bottom .row::-webkit-scrollbar{display:none}
.sh{flex:0 0 auto;width:58px;height:58px;border-radius:14px;background:rgba(255,255,255,.7);position:relative;display:grid;place-items:center;padding:0}
.sh canvas{width:48px;height:48px}
.sh.on,.co.on{outline:3px solid #ff5a86;outline-offset:-3px;background:#fff}
.co{flex:0 0 auto;width:40px;height:40px;border-radius:50%;position:relative;padding:0;border:3px solid #fff;box-shadow:0 2px 6px rgba(120,50,70,.2)}
.co.on{outline-offset:2px}
.lock{position:absolute;inset:0;border-radius:inherit;background:rgba(240,228,232,.82);display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:10px;font-weight:800;color:#9a7a88;line-height:1.1}
.lock svg{width:14px;height:14px}
#duelbar{position:fixed;left:0;right:0;bottom:0;display:none;align-items:center;justify-content:center;gap:10px;padding:10px;padding-bottom:max(12px,env(safe-area-inset-bottom))}
#turn{background:rgba(255,255,255,.85);padding:10px 16px;border-radius:999px;font-weight:900;font-size:16px;box-shadow:0 4px 14px rgba(150,70,90,.16)}
#bPass{background:linear-gradient(#ffd35a,#ffae2b);color:#6a3a10;font-weight:900;font-size:17px;padding:13px 22px;border-radius:999px;box-shadow:0 5px 0 #d98a16,0 8px 16px rgba(200,120,20,.3)}
#bPass:disabled{filter:grayscale(.7);opacity:.6}
#toast{position:fixed;left:50%;top:112px;transform:translate(-50%,-10px);background:#fff;color:#c2477a;font-weight:900;padding:10px 18px;border-radius:999px;box-shadow:0 6px 20px rgba(150,70,90,.25);opacity:0;transition:opacity .25s,transform .25s;pointer-events:none;white-space:nowrap;max-width:94vw;overflow:hidden;text-overflow:ellipsis;font-size:15px}
#toast.show{opacity:1;transform:translate(-50%,0)}
#panel{position:fixed;inset:0;display:grid;place-items:center;background:rgba(255,220,230,.35);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);padding:16px}
#panel.hide{display:none}
.card{background:#fff;border-radius:28px;padding:22px 22px 20px;max-width:380px;width:100%;text-align:center;box-shadow:0 18px 50px rgba(150,70,90,.3)}
.card h2{margin:0 0 8px;font-size:26px;color:#e0457b}
.card p{margin:6px 0 12px;font-size:15px;line-height:1.4;color:#7a5566}
.card .stats{display:flex;justify-content:center;gap:10px;margin:10px 0 14px}
.card .stats div{background:#fff1f5;border-radius:16px;padding:8px 12px;font-weight:800;font-size:13px;color:#9a6a7c}
.card .stats b{display:block;font-size:24px;color:#e0457b}
.card .new{color:#ff9f1a;font-weight:900}
.card .btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.big{background:linear-gradient(#ff8db0,#ff5a86);color:#fff;font-weight:900;font-size:19px;padding:14px 26px;border-radius:999px;box-shadow:0 5px 0 #d23e6c,0 10px 20px rgba(255,80,130,.3);min-width:150px}
.big.alt{background:linear-gradient(#8fd8ff,#4fb2f5);box-shadow:0 5px 0 #2f86c6,0 10px 20px rgba(60,140,220,.3)}
.big:active,#bPass:active{transform:translateY(3px)}
@media (max-width:420px){#tabs button{padding:9px 10px;font-size:14px}.ic{width:40px;height:40px}#info{font-size:13px}}
@media (max-width:350px){#tabs button{padding:8px 7px;font-size:13px}}
