:root{--bg:#101129;--text:#f7f6ff;--muted:#b3b7d8;--lime:#66f4e0;--border:#484873}
body{background:radial-gradient(ellipse at 10% 5%,#49307a80,transparent 46%),radial-gradient(ellipse at 93% 70%,#075e7570,transparent 48%),var(--bg)}
.mark{color:#ac8dff;text-shadow:0 0 24px #9875ff80}h1{background:linear-gradient(125deg,#fff 25%,#b7a0ff 70%,#68f7dd);background-clip:text;color:transparent}.intro>.eyebrow{color:#75f5e4}.rule>span{color:#ffbc91}.small-title{color:#eee8ff}
.game{background:linear-gradient(145deg,#272443,#1c2341);border-color:#67609b;box-shadow:0 25px 80px #0004,0 0 60px #7159ee12}.tag{background:#151a32;color:#c6c6e5}.heading>span{color:#bba9ff}.stats strong{color:#fff}.stats>div:nth-child(2) strong{color:#ffbd91}.stats>div:last-child strong{color:#ba9cff}#board{background:#12172e;border-color:#454567}.cell{background:#2e3455;border-color:#535c84;box-shadow:inset 0 2px 0 #ffffff08}.cell span{border-color:#a2a9ce}.cell.on{background:linear-gradient(145deg,#9affec,#45ddeb);border-color:#b4fff2;box-shadow:0 3px 22px #43e3d626,inset 0 2px 1px #fff8}.cell.on span{background:#106575;border-color:#106575;box-shadow:0 0 0 5px #10657517}.dot.off{background:#6f789f}.primary{background:linear-gradient(120deg,#69f5df,#5fdbef);color:#102d43;border-color:#a0fff0}.primary:disabled{background:#343c60;color:#a4aecf;border-color:#4e587b}.secondary{border-color:#77719c;background:#ffffff04}.secondary:hover{background:#ffffff12}.cross-demo i{background:#3b3f66}.cross-demo .lit{background:#9c80eb}.cross-demo .center{background:#6cf4df}.help-button{background:#9380ff1c;border:1px solid #8775c8;color:#ded7ff;border-radius:24px;padding:10px 16px;font-size:12px}.help-button:hover{background:#9380ff35}footer{gap:16px;flex-wrap:wrap}
dialog{color:var(--text);width:min(460px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow:auto;border:1px solid #8a7ac3;border-radius:26px;padding:26px;background:radial-gradient(ellipse at 100% 0,#54408c70,transparent 60%),#20203d;box-shadow:0 30px 120px #0009;font-family:'DM Sans',sans-serif}dialog::backdrop{background:#07091bcc;backdrop-filter:blur(9px)}.tutorial-top{display:flex;justify-content:space-between;align-items:center;color:var(--lime)}.close-button{background:#ffffff0c;color:#e6ddff;border:1px solid #746d96;border-radius:50%;width:32px;height:32px}.tutorial-top .eyebrow{font-size:9px}dialog h2{font-family:Outfit,sans-serif;font-size:29px;font-weight:500;line-height:1.15;margin:18px 0 10px}dialog p{font-size:13px;line-height:1.6;margin:0 0 18px}#demo-board{width:min(100%,254px);margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:9px;background:#12172e;border:1px solid #46466a;border-radius:17px;padding:12px}.demo-cell{position:relative;border-radius:10px}.demo-cell.affected{outline:2px solid #ffbd91;outline-offset:2px}.demo-touch:after{content:'☝';position:absolute;right:0;bottom:-15px;font-size:32px;filter:drop-shadow(0 3px 3px #0005);animation:tap-example 1s ease-in-out infinite;z-index:2}.demo-caption{min-height:76px;font-size:13px;line-height:1.6;text-align:center;color:#ece7ff;padding:18px 0 8px}.tutorial-progress{display:flex;justify-content:center;gap:6px;margin:4px 0 18px}.tutorial-progress i{width:7px;height:7px;border-radius:20px;background:#666281}.tutorial-progress .selected{background:#76f5df;width:22px}.tutorial-actions{display:flex;gap:10px}.tutorial-actions button{padding:13px 10px;border-radius:10px;font-size:12px;font-weight:600}.skip-link{display:block;margin:15px auto 0;border:none;background:transparent;color:#c8c0e0;text-decoration:underline;text-underline-offset:4px;font-size:12px;padding:6px}.close-button:hover,.skip-link:hover{color:#fff}@keyframes tap-example{0%,100%{transform:translateY(3px) scale(1)}50%{transform:translateY(-4px) scale(.9)}}@media(max-width:680px){dialog{padding:20px}dialog h2{font-size:25px}footer{padding:18px;flex-direction:column}.help-button{width:100%;max-width:280px}.intro h1{line-height:1.15}.intro h1 br{display:block}}@media(prefers-reduced-motion:reduce){.demo-touch:after{animation:none}}
