*{box-sizing:border-box} :root{--navy:#15113f;--navy2:#231a63;--pink:#f50073;--pink2:#ff37a0;--blue:#28a9e8;--blue2:#73d7ff;--yellow:#ffe61f;--paper:#fffdf7;--ink:#181533;--muted:#6d6b83;--good:#20d596;--red:#ff506e} html,body{width:100%;height:100%;margin:0;overflow:hidden;background:#46aaf5;font-family:Inter,ui-rounded,"Arial Rounded MT Bold",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);overscroll-behavior:none} button,input{font:inherit} button{-webkit-tap-highlight-color:transparent}.hidden{display:none!important}.sky-bg{position:fixed;inset:0;overflow:hidden;background:linear-gradient(#38a7f4 0%,#77cfff 40%,#ffbf89 100%);pointer-events:none}.sky-bg:before{content:"";position:absolute;left:-12%;right:-12%;bottom:-15%;height:46%;background:radial-gradient(circle at 25% 10%,#f5007345 0 12%,transparent 13%),radial-gradient(circle at 70% 25%,#ffe61f55 0 12%,transparent 13%),linear-gradient(160deg,#3547a8aa,#f14483aa);filter:blur(30px)}.sky-bg i{position:absolute;border-radius:999px;background:#ffffff70;filter:blur(2px)}.sky-bg i:nth-child(1){width:190px;height:58px;left:-30px;top:13%}.sky-bg i:nth-child(2){width:150px;height:48px;right:-20px;top:24%}.sky-bg i:nth-child(3){width:240px;height:78px;left:20%;top:44%;opacity:.4}.app-shell{position:relative;z-index:2;width:min(100%,560px);height:100dvh;margin:0 auto;display:grid;grid-template-rows:auto minmax(0,1fr);padding:env(safe-area-inset-top) 10px env(safe-area-inset-bottom);overflow:hidden}.topbar{height:54px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;padding:5px 2px}.brand-lockup{text-align:center;line-height:.87;text-shadow:0 3px 0 #171246,0 5px 16px #15113f44}.brand-lockup span{display:block;color:#fff;font-weight:1000;font-size:clamp(22px,7vw,34px);letter-spacing:-.07em}.brand-lockup b{display:block;color:var(--yellow);font-size:clamp(10px,3vw,15px);letter-spacing:.04em;transform:rotate(-1deg)}.round-btn{width:40px;height:40px;border:0;border-radius:50%;background:linear-gradient(#3e579f,#1c2764);color:#fff;font-size:26px;font-weight:900;box-shadow:inset 0 1px 0 #ffffff70,0 4px 0 #10163f,0 8px 20px #1b205855;display:grid;place-items:center;cursor:pointer}.round-btn:active{transform:translateY(2px);box-shadow:inset 0 1px 0 #ffffff70,0 2px 0 #10163f,0 5px 14px #1b205844}.screen{min-height:0;height:100%;overflow:hidden}.mini-kicker{font-size:10px;font-weight:1000;letter-spacing:.16em;color:#fff;background:#15113fc7;border:1px solid #ffffff36;border-radius:999px;padding:7px 11px;display:inline-block}.home-screen{display:grid;grid-template-rows:auto minmax(145px,1fr) auto auto;gap:8px;align-items:center;padding:7px 4px 10px}.home-title{text-align:center;color:#fff;text-shadow:0 3px 16px #193a7655}.home-title h1{font-size:clamp(31px,10vw,55px);line-height:.85;margin:8px 0 8px;font-weight:1000;letter-spacing:-.07em}.home-title h1 span{color:var(--yellow)}.home-title p{max-width:410px;margin:0 auto;font-size:13px;line-height:1.35;font-weight:750;color:#f7fbff}.home-tower{position:relative;height:100%;min-height:145px;max-height:315px;perspective:800px}.home-platform{position:absolute;width:56%;height:22px;left:22%;bottom:7%;background:linear-gradient(#b86e31,#774320);border-radius:50%;box-shadow:0 10px 25px #14215055}.hc{position:absolute;display:block;left:50%;bottom:calc(7% + 18px);width:104px;height:57px;border-radius:13px 18px 12px 16px;transform-origin:center bottom;box-shadow:inset -12px -12px 15px #00000016,inset 8px 8px 12px #ffffff29,0 8px 14px #1d1a5240;border:2px solid #15113f38}.hc:before{content:"";position:absolute;left:9px;right:-9px;height:14px;top:-10px;background:inherit;filter:brightness(1.18);transform:skewX(-38deg);border-radius:7px}.hc.blue{background:#28a9e8}.hc.pink{background:#f50073}.hc.yellow{background:#ffe61f}.h1{transform:translateX(-50%) rotate(-4deg)}.h2{bottom:calc(7% + 69px);width:92px;transform:translateX(-48%) rotate(4deg)}.h3{bottom:calc(7% + 119px);width:84px;transform:translateX(-55%) rotate(-6deg)}.h4{bottom:calc(7% + 169px);width:98px;transform:translateX(-47%) rotate(5deg)}.h5{bottom:calc(7% + 220px);width:78px;transform:translateX(-56%) rotate(-4deg)}.mode-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mode-btn{min-height:78px;border:0;border-radius:20px;padding:12px 12px 11px;text-align:left;color:#fff;position:relative;box-shadow:inset 0 1px 0 #ffffff75,0 6px 0 #15113f,0 10px 24px #15113f45;cursor:pointer}.mode-btn span{display:block;font-size:19px;font-weight:1000;letter-spacing:-.03em}.mode-btn small{display:block;font-size:10px;font-weight:750;opacity:.9;margin-top:4px}.mode-btn b{position:absolute;right:11px;top:50%;transform:translateY(-50%);font-size:29px}.mode-btn.solo{background:linear-gradient(145deg,#2e75d2,#2440a5)}.mode-btn.vs{background:linear-gradient(145deg,#ff3199,#db0066)}.mode-btn:active{transform:translateY(3px);box-shadow:inset 0 1px 0 #ffffff75,0 3px 0 #15113f,0 7px 17px #15113f45}.home-note{text-align:center;color:#162457;font-size:9px;font-weight:900;letter-spacing:.06em;background:#ffffffb5;padding:7px 12px;border-radius:999px;justify-self:center}.lobby-screen{display:grid;place-items:center;padding:8px}.lobby-card{width:min(100%,430px);background:linear-gradient(#ffffffef,#fff9f2e8);border:1px solid #ffffff;border-radius:28px;padding:20px;box-shadow:0 22px 50px #15113f3b;backdrop-filter:blur(14px)}.lobby-card .mini-kicker{color:#fff}.lobby-card h2{margin:10px 0 5px;font-size:30px;letter-spacing:-.05em}.lobby-card p{margin:0 0 14px;color:#5e5b76;font-size:12px;line-height:1.4;font-weight:650}.lobby-card label{display:block;font-size:9px;font-weight:1000;letter-spacing:.12em;margin:8px 0 5px;color:#353253}.lobby-card input{width:100%;height:46px;border:2px solid #ded9ef;border-radius:14px;background:#fff;padding:0 12px;font-weight:800;color:var(--navy);outline:none}.big-btn{width:100%;height:48px;border:0;border-radius:15px;font-weight:1000;letter-spacing:.04em;margin-top:10px;box-shadow:0 5px 0 #15113f;cursor:pointer}.big-btn.pink{background:linear-gradient(#ff379d,#ed006e);color:#fff}.big-btn.blue{background:linear-gradient(#4cc4ff,#238ed9);color:#fff}.big-btn.yellow{background:linear-gradient(#fff35c,#ffd91f);color:#16143d}.big-btn:active{transform:translateY(3px);box-shadow:0 2px 0 #15113f}.invite-box{margin-top:13px;padding-top:11px;border-top:1px solid #dfdbea}.invite-status{display:flex;align-items:center;gap:8px;font-size:11px;color:#3a3659;margin-bottom:8px}.invite-status span{width:9px;height:9px;background:var(--good);border-radius:50%;box-shadow:0 0 0 4px #20d59625}.invite-row{display:grid;grid-template-columns:1fr 67px;gap:6px}.invite-row button{border:0;border-radius:12px;background:#211a58;color:#fff;font-size:10px;font-weight:1000}.error-text{margin-top:10px;background:#ffe4e9;color:#a61f3b;padding:8px 10px;border-radius:11px;font-size:11px;font-weight:800}.game-screen{position:relative;display:grid;grid-template-rows:58px minmax(0,1fr) 206px 27px;gap:6px;padding-bottom:3px;min-height:0}.hud-strip{display:grid;grid-template-columns:1fr 1.18fr 1fr;gap:6px}.hud-box,.turn-box{border:1px solid #ffffff54;background:linear-gradient(180deg,#263b83e8,#151b56ed);color:#fff;border-radius:17px;box-shadow:inset 0 1px 0 #ffffff30,0 6px 18px #13245c35;display:flex;flex-direction:column;justify-content:center;padding:6px 9px;min-width:0}.hud-box.right{text-align:right;align-items:flex-end}.hud-box small,.turn-box small{font-size:8px;font-weight:1000;letter-spacing:.13em;color:#a9dfff}.hud-box strong{font-size:clamp(14px,4.5vw,22px);font-weight:1000;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.turn-box{text-align:center;align-items:center;background:linear-gradient(180deg,#ff3c9d,#cf0063)}.turn-box small{color:#fff4a6}.turn-box strong{font-size:12px;font-weight:1000;letter-spacing:.04em}.arena-shell{position:relative;min-height:0;border-radius:24px;overflow:hidden;background:linear-gradient(#84d6ffdd,#cfeeffc9 60%,#ffe2b8dd);border:1px solid #ffffffb0;box-shadow:inset 0 1px 0 #fff,0 12px 28px #15265b30}.arena-shell:before{content:"";position:absolute;left:0;right:0;bottom:0;height:35%;background:linear-gradient(transparent,#24488c14);pointer-events:none}#towerCanvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}.arena-topline,.arena-bottomline{position:absolute;z-index:4;left:10px;right:10px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.arena-topline{top:9px}.arena-bottomline{bottom:8px}.arena-topline>span:first-child,.arena-bottomline span{background:#15113fca;color:#fff;border:1px solid #ffffff35;border-radius:999px;padding:5px 9px;font-size:8px;font-weight:1000;letter-spacing:.05em;backdrop-filter:blur(8px)}.connection-badge{display:flex!important;align-items:center;gap:5px;background:#ffffffd9!important;color:#176e55!important}.connection-badge i{width:7px;height:7px;border-radius:50%;background:var(--good)}.connection-badge.waiting{color:#966300!important}.connection-badge.waiting i{background:#ffc526}.connection-badge.offline{color:#a6233d!important}.connection-badge.offline i{background:var(--red)}.settle-counter{position:absolute;z-index:8;left:50%;top:42%;transform:translate(-50%,-50%);width:142px;height:142px;border-radius:50%;background:#15113fdf;color:#fff;border:3px solid #ffffffbb;box-shadow:0 0 0 8px #f5007348,0 15px 35px #15113f55;display:grid;place-items:center;align-content:center;text-align:center;pointer-events:none}.settle-counter small{font-size:8px;font-weight:1000;letter-spacing:.14em;color:#ffe86c}.settle-counter strong{font-size:68px;line-height:.9}.effect-banner{position:absolute;z-index:8;left:50%;top:18%;transform:translateX(-50%);background:linear-gradient(135deg,#f50073,#7c35ff);color:#fff;border:2px solid #fff;border-radius:999px;padding:8px 15px;font-size:11px;font-weight:1000;letter-spacing:.05em;white-space:nowrap;box-shadow:0 7px 20px #15113f55;animation:popBanner .6s ease both}.control-deck{min-height:0;display:grid;grid-template-rows:82px 14px 1fr;gap:3px;background:linear-gradient(180deg,#17164df0,#11113cf5);border-radius:22px;padding:7px 8px 8px;border:1px solid #ffffff40;box-shadow:inset 0 1px 0 #ffffff22,0 -2px 18px #15113f22}.block-dock{display:grid;grid-template-columns:72px 1fr;gap:6px;align-items:center;min-height:0}.dock-title{color:#fff;min-width:0}.dock-title b{display:block;font-size:10px;letter-spacing:.1em}.dock-title span{display:block;font-size:8px;line-height:1.2;color:#b8c8ff;margin-top:4px}.cube-rack{height:100%;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:4px;align-items:end}.rack-cube{position:relative;border:0;background:transparent;height:66px;min-width:0;padding:0;touch-action:none;cursor:grab;opacity:.28;filter:saturate(.5);transition:opacity .15s,transform .15s,filter .15s}.rack-cube.playable{opacity:1;filter:none}.rack-cube.dragging{opacity:.25}.rack-cube .mini-block{position:absolute;left:50%;bottom:8px;width:86%;height:42px;transform:translateX(-50%) rotate(var(--mini-rot));border-radius:7px 9px 6px 8px;background:var(--block-color);box-shadow:inset -7px -7px 8px #00000015,inset 5px 5px 7px #ffffff2e,0 5px 7px #08082b75;border:1px solid #ffffff30}.rack-cube .mini-block:before{content:"";position:absolute;left:5px;right:-5px;top:-7px;height:9px;border-radius:5px;background:var(--block-color);filter:brightness(1.18);transform:skewX(-36deg)}.rack-cube .size-dot{position:absolute;left:50%;bottom:0;transform:translateX(-50%);font-size:7px;font-weight:1000;color:#c5d2ff;text-transform:uppercase}.rack-cube.playable:active .mini-block{transform:translateX(-50%) translateY(-4px) rotate(var(--mini-rot));filter:brightness(1.08)}.hand-head{display:flex;justify-content:space-between;color:#b7c7ff;font-size:8px;font-weight:1000;letter-spacing:.12em;padding:0 3px}.card-hand{min-height:0;display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.hand-card{position:relative;min-width:0;border:2px solid #ffffff26;border-radius:13px;background:linear-gradient(#fffefb,#f1f0fb);padding:6px 5px 5px;color:#171442;box-shadow:0 4px 0 #09092c,0 7px 12px #09092c4a;overflow:hidden;transform:rotate(var(--card-tilt));transition:transform .12s,opacity .12s,filter .12s;cursor:pointer}.hand-card:before{content:"W";position:absolute;right:5px;top:3px;font-size:9px;font-weight:1000;color:#211a58}.hand-card .card-chip{width:36px;height:29px;margin:3px auto 4px;border-radius:6px 8px 5px 7px;background:var(--chip);border:2px solid #201a58;box-shadow:inset -5px -5px 6px #00000014}.hand-card .card-title{display:block;text-align:center;font-size:9px;line-height:1.02;font-weight:1000;text-transform:uppercase}.hand-card .card-sub{display:block;text-align:center;font-size:7px;line-height:1.08;color:#69667c;font-weight:850;margin-top:3px}.hand-card.action{background:linear-gradient(160deg,#25205d,#171443);color:#fff}.hand-card.action:before{color:#ffe61f}.hand-card.action .card-chip{display:grid;place-items:center;color:#fff;font-size:18px;background:linear-gradient(145deg,#f50073,#6f46ff);border-color:#fff}.hand-card.action .card-sub{color:#cad4ff}.hand-card.combo{background:linear-gradient(150deg,#fffef9,#f9eaff)}.hand-card.combo .card-chip{background:linear-gradient(135deg,#f50073 0 33%,#ffe61f 33% 66%,#28a9e8 66%)}.hand-card.disabled{opacity:.36;filter:grayscale(.75);cursor:not-allowed}.hand-card.playable:not(.disabled){border-color:#ffffff;box-shadow:0 4px 0 #09092c,0 0 0 2px #f5007390,0 7px 14px #09092c55}.hand-card.playable:not(.disabled):active{transform:translateY(3px) rotate(0);box-shadow:0 1px 0 #09092c,0 0 0 2px #f5007390}.hand-card.selected{transform:translateY(-5px) rotate(0);border-color:#ffe61f;box-shadow:0 5px 0 #09092c,0 0 0 3px #ffe61f,0 8px 15px #09092c55}.solo-meta{height:27px;border-radius:12px;background:#15113fdc;color:#fff;display:flex;justify-content:space-around;align-items:center;font-size:7px;font-weight:900;letter-spacing:.08em;border:1px solid #ffffff35}.solo-meta b{color:var(--yellow);font-size:11px;margin-left:3px}.game-over{position:absolute;z-index:30;inset:0;display:grid;place-items:center;background:#111038a8;backdrop-filter:blur(8px);padding:18px}.game-over-card{width:min(100%,390px);background:linear-gradient(#fffef9,#fff1ed);border-radius:28px;border:2px solid #fff;padding:23px;text-align:center;box-shadow:0 25px 60px #05051a88}.game-over-card>small{font-size:9px;font-weight:1000;letter-spacing:.16em;color:#f50073}.game-over-card h2{font-size:27px;line-height:.95;margin:8px 0 8px;letter-spacing:-.05em}.game-over-card p{margin:0;color:#656177;font-size:12px;line-height:1.35;font-weight:700}.final-score{margin:14px auto 2px;background:#15113f;color:#fff;border-radius:16px;padding:10px;display:flex;justify-content:space-between;align-items:center}.final-score span{font-size:8px;font-weight:1000;letter-spacing:.1em}.final-score b{font-size:22px;color:#ffe61f}.toast{position:fixed;z-index:100;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);background:#15113fee;color:#fff;border:1px solid #ffffff3d;border-radius:999px;padding:9px 14px;font-size:10px;font-weight:900;box-shadow:0 8px 20px #15113f55;white-space:nowrap;max-width:90vw;overflow:hidden;text-overflow:ellipsis}.drag-ghost-label{position:fixed;z-index:80;pointer-events:none;background:#15113fe8;color:#fff;border:1px solid #ffffff55;border-radius:999px;padding:6px 9px;font-size:8px;font-weight:1000;transform:translate(-50%,-140%)}@keyframes popBanner{0%{opacity:0;transform:translateX(-50%) scale(.7)}70%{transform:translateX(-50%) scale(1.08)}100%{opacity:1;transform:translateX(-50%) scale(1)}}@media(max-height:760px){.topbar{height:48px}.game-screen{grid-template-rows:52px minmax(0,1fr) 188px 24px}.control-deck{grid-template-rows:70px 12px 1fr;padding-top:5px}.rack-cube{height:58px}.rack-cube .mini-block{height:34px}.hand-card{padding-top:3px}.hand-card .card-chip{height:23px;margin-bottom:2px}.hand-card .card-title{font-size:8px}.hand-card .card-sub{font-size:6px}.home-screen{grid-template-rows:auto minmax(105px,1fr) auto auto}.home-title p{font-size:11px}.mode-btn{min-height:64px;padding:9px}.mode-btn span{font-size:16px}.h5{display:none}.home-tower{max-height:230px}}@media(max-height:660px){.brand-lockup span{font-size:22px}.brand-lockup b{font-size:10px}.topbar{height:44px}.game-screen{grid-template-rows:48px minmax(0,1fr) 166px 22px;gap:4px}.control-deck{grid-template-rows:58px 10px 1fr}.dock-title span{display:none}.rack-cube{height:50px}.rack-cube .mini-block{height:29px;bottom:7px}.hand-card .card-chip{width:28px;height:19px}.hand-card .card-title{font-size:7px}.hand-card .card-sub{display:none}.solo-meta{font-size:6px}.solo-meta b{font-size:9px}.home-title h1{font-size:34px}.home-title p{display:none}.mode-btn{min-height:58px}.home-note{display:none}}@media(min-width:700px){.app-shell{padding-left:0;padding-right:0}.game-screen{padding-left:6px;padding-right:6px}}@media(prefers-reduced-motion:reduce){*{animation-duration:.001ms!important;animation-iteration-count:1!important;transition:none!important}}
.rotate-btn{margin-top:5px;border:1px solid #ffffff55;background:#ffffff18;color:#ffe61f;border-radius:8px;padding:4px 6px;font-size:7px;font-weight:1000;letter-spacing:.05em}.rotate-btn:active{transform:translateY(1px);background:#ffffff2b}.rack-cube.used{opacity:.10!important;filter:grayscale(1)!important}
.card-hand{touch-action:none;overflow:visible}
.hand-card{touch-action:none;will-change:transform;transform-origin:50% 100%}
.hand-card.gesture-hover{z-index:12;transform:translateY(-9px) scale(1.045) rotate(0deg)!important;box-shadow:0 7px 0 #09092c,0 0 0 3px #ffffff,0 14px 22px #09092c66!important;transition:transform .08s ease,box-shadow .08s ease}
.hand-card.reading{z-index:25;transform:translateY(-20px) scale(1.16) rotate(0deg)!important;box-shadow:0 8px 0 #09092c,0 0 0 3px #ffe61f,0 18px 30px #09092c77!important;transition:transform .16s cubic-bezier(.2,.85,.2,1.15),box-shadow .16s ease}
.hand-card.reading .card-title{font-size:10px}
.hand-card.reading .card-sub{font-size:8px;line-height:1.15}
/* ImageGen-guided card redesign: compact mobile hand, full art reveals on hold. */
.hand-card{padding:3px;border:3px solid #fff;border-radius:15px;background:#fff;box-shadow:0 4px 0 #09092c,0 8px 14px #09092c55;overflow:hidden;color:#fff}
.hand-card:before{display:none!important}
.card-face{position:relative;display:grid;grid-template-rows:auto 1fr auto;height:100%;min-height:0;border-radius:11px;overflow:hidden;background:linear-gradient(165deg,var(--card-hi),var(--card-mid) 55%,var(--card-lo));box-shadow:inset 0 2px 0 #ffffff88,inset 0 -2px 0 #00000025}
.card-face:before{content:"";position:absolute;inset:25% -35% 22%;background:repeating-conic-gradient(from 0deg,#ffffff16 0 10deg,transparent 10deg 28deg);border-radius:50%;opacity:.9}
.card-top{position:relative;z-index:2;display:grid;justify-items:center;gap:1px;padding:5px 4px 1px}
.card-top b{max-width:100%;padding:2px 6px;border-radius:999px;background:#101049cc;color:#fff;font-size:8px;line-height:1;font-weight:1000;letter-spacing:-.02em;text-shadow:0 1px 1px #000;white-space:nowrap}
.card-top em{font-style:normal;background:#ffffffdc;color:#15113f;border-radius:999px;padding:2px 5px;font-size:6px;line-height:1;font-weight:1000;white-space:nowrap}
.card-art{position:relative;z-index:1;min-height:0;display:block;perspective:150px}
.art-block{position:absolute;display:block;border-radius:6px 8px 6px 7px;box-shadow:inset -8px -8px 10px #0002,inset 5px 5px 8px #fff5,0 5px 8px #0005;border:1px solid #ffffffaa;transform:rotate(-7deg) skewY(-2deg)}
.art-block:before{content:"";position:absolute;left:9%;right:-9%;top:-18%;height:20%;background:inherit;filter:brightness(1.18);transform:skewX(-38deg);border-radius:4px}
.art-block.pink{background:#f50073}.art-block.blue{background:#28a9e8}.art-block.yellow{background:#ffe61f}
.art-block.single{width:56%;height:58%;left:22%;top:20%;transform:rotate(-6deg)}
.a-small{width:25%;height:27%;left:12%;top:48%}.a-medium{width:34%;height:37%;left:34%;top:33%;transform:rotate(4deg)}.a-large{width:42%;height:47%;right:7%;top:18%;transform:rotate(-4deg)}
.trio-a{width:38%;height:42%;left:8%;top:38%;transform:rotate(-6deg)}.trio-b{width:33%;height:36%;left:36%;top:14%;transform:rotate(8deg)}.trio-c{width:37%;height:40%;right:7%;top:42%;transform:rotate(4deg)}
.mascot{width:49%;height:52%;left:24%;top:24%;transform:rotate(-10deg)}.mascot:after{content:"• ? •";position:absolute;inset:0;display:grid;place-items:center;color:#15113f;font-size:10px;font-weight:1000}
.dash{transform:rotate(10deg) translateX(4px)}
.power-top{width:31%;height:32%;left:35%;top:17%;transform:rotate(2deg)}.power-left{width:35%;height:36%;left:16%;top:48%;transform:rotate(-4deg)}.power-right{width:35%;height:36%;right:16%;top:48%;transform:rotate(4deg)}
.card-glyph{position:absolute;z-index:4;font-weight:1000;text-shadow:0 2px 3px #0005}.sleepy{right:7%;top:8%;background:#fff;color:#086d35;border-radius:999px;padding:2px 4px;font-size:7px}.arrows{right:7%;bottom:12%;font-size:24px}.swirl{left:50%;top:43%;transform:translate(-50%,-50%);font-size:34px;color:#fff}.crown{left:50%;top:3%;transform:translateX(-50%);font-size:29px;color:#ffe61f;text-shadow:0 0 8px #ffe61f,0 2px 3px #0008}
.card-footer{position:relative;z-index:3;display:grid;place-items:center;min-height:24px;padding:3px 4px;background:#11113fe8;color:#fff;font-size:5.8px;line-height:1.05;font-weight:1000;text-align:center;letter-spacing:.01em;text-shadow:0 1px 1px #000}
.art-pink{--card-hi:#ff42ac;--card-mid:#f50073;--card-lo:#8c0047}.art-blue{--card-hi:#54caff;--card-mid:#168ee6;--card-lo:#12449d}.art-yellow{--card-hi:#fff75b;--card-mid:#ffd91f;--card-lo:#d89500}.art-rainbow{--card-hi:#1fc8ff;--card-mid:#8a32ff;--card-lo:#f50073}.art-pass{--card-hi:#71f55e;--card-mid:#20c44a;--card-lo:#067035}.art-skip{--card-hi:#c05cff;--card-mid:#7a24e6;--card-lo:#36106f}.art-scramble{--card-hi:#ffb13b;--card-mid:#ff6a13;--card-lo:#9f2600}.art-power{--card-hi:#386de5;--card-mid:#183a91;--card-lo:#08194f}
.hand-card.gesture-hover{transform:translateY(-9px) scale(1.055) rotate(0)!important}
.hand-card.reading{transform:translateY(-34px) scale(1.55) rotate(0)!important;z-index:40!important;overflow:visible}
.hand-card.reading .card-top b{font-size:9px}.hand-card.reading .card-top em{font-size:7px}.hand-card.reading .card-footer{font-size:7px;min-height:28px}
@media(max-height:760px){.card-top{padding-top:3px}.card-top b{font-size:7px}.card-top em{font-size:5px}.card-footer{font-size:5px;min-height:20px}.hand-card.reading{transform:translateY(-28px) scale(1.45) rotate(0)!important}}
@media(max-height:660px){.card-top b{font-size:6px}.card-top em{display:none}.card-footer{font-size:4.6px;min-height:17px}.hand-card.reading{transform:translateY(-24px) scale(1.38) rotate(0)!important}}
/* Keep top controls clear of the centered game logo on narrow phones. */
.topbar{grid-template-columns:36px minmax(0,1fr) 36px;gap:4px;padding-left:0;padding-right:0}
.topbar .round-btn{width:34px;height:34px;font-size:20px;justify-self:center}
.brand-lockup{min-width:0;padding:0 4px}
.brand-lockup span{font-size:clamp(20px,6.2vw,30px)}
.brand-lockup b{font-size:clamp(9px,2.6vw,13px);white-space:nowrap}
@media(max-width:390px){
  .topbar{grid-template-columns:32px minmax(0,1fr) 32px;gap:2px}
  .topbar .round-btn{width:30px;height:30px;font-size:18px}
  .brand-lockup span{font-size:24px}
  .brand-lockup b{font-size:10px}
}
/* Public onboarding tutorial */
.home-screen{grid-template-rows:auto minmax(120px,1fr) auto auto auto}
.tutorial-launch{width:100%;min-height:44px;border:1px solid #ffffff70;border-radius:15px;background:#ffffffdc;color:#171442;display:grid;grid-template-columns:34px auto 1fr;align-items:center;gap:7px;padding:6px 10px;box-shadow:0 4px 0 #15113f,0 8px 18px #15113f2c;cursor:pointer;text-align:left}
.tutorial-launch span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#ffe61f,#ffbd27);color:#15113f;font-size:18px;font-weight:1000;box-shadow:inset 0 1px 0 #fff9}
.tutorial-launch b{font-size:11px;letter-spacing:.05em;white-space:nowrap}.tutorial-launch small{font-size:9px;color:#6d6b83;font-weight:800;text-align:right;min-width:0}
.tutorial-launch:active{transform:translateY(2px);box-shadow:0 2px 0 #15113f,0 5px 12px #15113f24}
.tutorial-overlay{position:absolute;z-index:90;inset:0;background:#0c0b2dcc;backdrop-filter:blur(9px);display:grid;place-items:center;padding:12px}
.tutorial-card{width:min(100%,430px);max-height:calc(100% - 6px);overflow:hidden;background:linear-gradient(#fffefb,#f7f5ff);border:2px solid #fff;border-radius:26px;box-shadow:0 24px 60px #05051a88;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}
.tutorial-head{display:flex;justify-content:space-between;align-items:center;padding:14px 15px 8px}.tutorial-head small{display:block;font-size:8px;font-weight:1000;letter-spacing:.15em;color:#f50073}.tutorial-head h2{margin:2px 0 0;font-size:24px;letter-spacing:-.04em;color:#15113f}.tutorial-close{width:38px;height:38px;border:0;border-radius:50%;background:#171442;color:#fff;font-size:25px;line-height:1;cursor:pointer}
.tutorial-stage{min-height:0;overflow:auto;padding:4px 15px 10px}.tutorial-step{display:grid;gap:10px}.tutorial-step h3{margin:0;color:#15113f;font-size:20px;letter-spacing:-.035em}.tutorial-step p{margin:0;color:#66627d;font-size:11px;line-height:1.45;font-weight:700}.tutorial-visual{height:188px;border-radius:20px;background:linear-gradient(#8fd9ff,#dff4ff 58%,#ffd9a5);border:1px solid #fff;box-shadow:inset 0 1px 0 #fff,0 6px 16px #15113f20;position:relative;overflow:hidden;display:grid;place-items:center}
.tutorial-caption{display:flex;gap:7px;align-items:flex-start;background:#15113f;color:#fff;border-radius:13px;padding:8px 10px;font-size:9px;font-weight:850;line-height:1.25}.tutorial-caption b{color:#ffe61f;white-space:nowrap}
.tut-card-row{display:flex;gap:7px;align-items:end}.tut-card{width:62px;height:88px;border:3px solid #fff;border-radius:11px;box-shadow:0 5px 0 #15113f;display:grid;grid-template-rows:auto 1fr auto;padding:5px;color:#fff;transform:rotate(var(--r,0deg));background:linear-gradient(#ff43aa,#d80069)}.tut-card.blue{background:linear-gradient(#50c9ff,#197fd0)}.tut-card.yellow{background:linear-gradient(#fff75e,#e8b700);color:#15113f}.tut-card b{font-size:7px;text-align:center}.tut-card i{display:block;width:30px;height:24px;margin:auto;border-radius:5px;background:currentColor;opacity:.45}.tut-card small{font-size:5px;text-align:center;font-weight:900}.tut-card.focus{transform:translateY(-12px) scale(1.07);box-shadow:0 5px 0 #15113f,0 0 0 3px #ffe61f}
.tut-rack{position:absolute;bottom:12px;left:12px;right:12px;height:54px;border-radius:15px;background:#15113fec;display:flex;align-items:center;justify-content:center;gap:8px}.tut-cube{width:46px;height:32px;border-radius:7px 9px 6px 8px;background:#f50073;box-shadow:inset -7px -7px 8px #0002,inset 5px 5px 7px #fff4,0 5px 8px #15113f55;position:relative}.tut-cube.blue{background:#28a9e8}.tut-cube.yellow{background:#ffe61f}.tut-cube.dragging{position:absolute;left:54%;top:38%;transform:translate(-50%,-50%) rotate(-7deg);width:72px;height:48px}.tut-finger{position:absolute;font-size:31px;filter:drop-shadow(0 3px 3px #0003)}.tut-arrow{position:absolute;font-size:34px;color:#15113f;font-weight:1000}
.tut-platform{position:absolute;width:132px;height:26px;border-radius:50%;background:#8f542c;bottom:27px;box-shadow:0 8px 15px #15113f35}.tut-stack{position:absolute;bottom:48px;width:92px;height:46px;border-radius:8px;background:#28a9e8;transform:rotate(3deg);box-shadow:inset -10px -9px 10px #0002,inset 7px 7px 10px #fff3}.tut-shadow{position:absolute;width:66px;height:38px;border:3px solid #15113f;border-radius:8px;bottom:88px;transform:rotate(3deg);background:#15113f12}.tut-held{position:absolute;width:66px;height:42px;border-radius:8px;background:#f50073;bottom:125px;transform:rotate(-5deg);box-shadow:inset -8px -8px 8px #0002,inset 6px 6px 8px #fff4}
.tut-rotate-ring{width:112px;height:112px;border:4px dashed #6545ff;border-radius:50%;position:absolute}.tut-rotate-cube{width:72px;height:52px;border-radius:9px;background:#ffe61f;box-shadow:inset -9px -9px 9px #0002,inset 7px 7px 9px #fff5;transform:rotate(22deg)}.tut-rotate-icon{position:absolute;font-size:36px;color:#6545ff;font-weight:1000;right:55px;top:18px}.tut-twofinger{position:absolute;left:35px;bottom:24px;font-size:26px;letter-spacing:13px}
.tut-camera-tower{position:absolute;bottom:35px;display:grid;gap:1px}.tut-camera-tower i{width:70px;height:30px;border-radius:6px;display:block}.tut-camera-tower i:nth-child(1){background:#f50073;transform:rotate(-5deg)}.tut-camera-tower i:nth-child(2){background:#ffe61f;transform:rotate(4deg)}.tut-camera-tower i:nth-child(3){background:#28a9e8;transform:rotate(-3deg)}.tut-orbit{position:absolute;width:150px;height:82px;border:3px dashed #15113f;border-radius:50%;transform:rotate(-9deg)}.tut-cam-finger{position:absolute;right:45px;top:34px;font-size:30px}.tut-pinch{position:absolute;left:26px;top:32px;font-size:26px;letter-spacing:5px}.tut-zoommarks{position:absolute;left:24px;top:77px;color:#15113f;font-size:23px;font-weight:1000}
.tut-count{width:105px;height:105px;border-radius:50%;display:grid;place-items:center;background:#15113fe8;color:#fff;border:3px solid #fff;box-shadow:0 0 0 7px #f5007340;font-size:54px;font-weight:1000}.tut-win{position:absolute;bottom:18px;background:#ffe61f;color:#15113f;border-radius:999px;padding:7px 12px;font-size:9px;font-weight:1000}
.tutorial-dots{display:flex;justify-content:center;gap:6px;padding:3px 0 8px}.tutorial-dots i{width:7px;height:7px;border-radius:50%;background:#d0cde0}.tutorial-dots i.active{width:20px;border-radius:999px;background:#f50073}
.tutorial-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 14px 14px}.tutorial-nav{height:44px;border:0;border-radius:13px;font-size:10px;font-weight:1000;letter-spacing:.05em;cursor:pointer}.tutorial-nav.primary{background:linear-gradient(#ff399e,#df006a);color:#fff;box-shadow:0 4px 0 #85103f}.tutorial-nav.secondary{background:#e9e7f3;color:#3c3858}.tutorial-nav:disabled{opacity:.32;cursor:default}
@media(max-height:760px){.tutorial-visual{height:150px}.tutorial-card{border-radius:22px}.tutorial-head{padding-top:9px}.tutorial-stage{padding-bottom:6px}.tutorial-launch{min-height:38px}.tutorial-launch span{width:24px;height:24px;font-size:15px}}
@media(max-height:660px){.tutorial-visual{height:118px}.tutorial-step{gap:6px}.tutorial-step h3{font-size:16px}.tutorial-step p{font-size:9px}.tutorial-caption{font-size:8px;padding:6px 8px}.tutorial-head h2{font-size:19px}.tutorial-nav{height:38px}}
