/* Claim Match v2 — animated interactive art direction. No remote fonts or assets. */
:root{--glow-cyan:#64e6fd;--glow-gold:#ffe6a3}
.title-screen{background-position:51% 48%;background-size:cover;animation:v2-title-pan 18s ease-in-out infinite alternate}
.title-screen:after{content:"";position:absolute;inset:0;pointer-events:none;background-image:url('../assets/ui/constellation_0.webp'),url('../assets/ui/constellation_1.webp');background-position:8% 20%,96% 78%;background-size:min(48vw,450px),min(36vw,340px);background-repeat:no-repeat;mix-blend-mode:screen;opacity:.38;animation:v2-constellations 6.3s ease-in-out infinite alternate}
.title-art{filter:drop-shadow(0 2px 13px #6acaff44)}
.title-art .splash{will-change:transform;transition:filter .4s ease}
.title-art .splash.center{filter:drop-shadow(0 0 18px #6df5ff88) drop-shadow(0 8px 20px #0009)}
.title-copy,.title-art{z-index:2}
.logo-en{background:linear-gradient(170deg,#fffae0 10%,#ffdd74 38%,#d79847 70%,#fff5c7);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 8px #f1c15e3e)}
.primary-button{position:relative;isolation:isolate;transition:filter .18s,box-shadow .18s,scale .2s}
.primary-button:not(:disabled):hover{filter:brightness(1.13);box-shadow:0 5px 0 #8d4d19,0 9px 26px #ffce74aa;scale:1.018}
.secondary-button:not(:disabled):hover,.glass-button:not(:disabled):hover,.mode-card:hover{border-color:#a4efff;filter:brightness(1.15)}
.world-card{transition:transform .22s ease,filter .22s ease,box-shadow .22s ease;background-size:105%}
.world-card:not(.locked):hover{transform:translateY(-3px) scale(1.009);background-size:112%;box-shadow:0 11px 36px #54c8f766}
.world-card:after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;border:1px solid #ffffff55}
.stage-btn:not(:disabled):hover{transform:translateY(-3px);border-color:#ffdf80;box-shadow:0 4px 14px #66daff61}
.game-screen{background:radial-gradient(ellipse at 50% 0%,#195a8a 0%,transparent 55%),linear-gradient(#07142c,#111638)}
.game-wrap{isolation:isolate}
.battle-arena{height:170px;isolation:isolate;border:1px solid #b7f6ffaa;box-shadow:inset 0 0 20px #1a66a566,0 0 18px #4e9bfd40,0 6px 18px #0008}
.battle-arena:before{content:"";position:absolute;pointer-events:none;inset:0;background-image:url('../assets/ui/constellation_2.webp'),url('../assets/ui/constellation_0.webp');background-size:190px 110px,155px 85px;background-repeat:no-repeat;background-position:42% 1%,65% 83%;opacity:.56;animation:v2-constellations 4.4s ease-in-out infinite alternate}
.battle-arena:after{content:"";position:absolute;pointer-events:none;left:0;right:0;bottom:0;height:15px;background:linear-gradient(90deg,transparent,#34c9ec35,#a868ff33,transparent);filter:blur(5px);animation:v2-floor 3s ease-in-out infinite alternate}
.fighter{min-width:0;width:43%;gap:3px}
.fighter canvas{width:62%;height:100%;max-height:166px;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 9px 6px #040915bf) drop-shadow(0 0 9px #46d5ff77);transform-origin:center 80%;animation:v2-fighter-bob 2.4s ease-in-out infinite alternate;will-change:transform}
.fighter-boss canvas{width:65%;max-height:168px;filter:drop-shadow(0 9px 7px #040915ce) drop-shadow(0 0 8px #d669ff99);animation-delay:.4s}
.fighter-caption{width:36%;z-index:4;flex-shrink:1}
.fighter-caption b{color:#fff4dc;font-weight:900;overflow-wrap:break-word;line-height:1.25}
.fighter canvas.attack{animation:fighter-strike .34s cubic-bezier(.25,.75,.25,1)}
.fighter canvas.hurt{animation:fighter-hurt .27s ease-out}
.battle-projectile{box-shadow:0 0 25px #c2fdff}
.board-shell{position:relative;box-shadow:0 0 28px #59aff84d,inset 0 2px 5px #eafaff8c,0 12px 25px #0009}
.board-shell:after{content:"";position:absolute;inset:-3px;pointer-events:none;border-radius:inherit;border:1px solid #ffffff45;box-shadow:inset 0 0 6px #e0fbff30}
.board-shell.item-mode{animation:v2-tool-glow 1.1s ease-in-out infinite alternate}
#puzzle-canvas{touch-action:none;outline:0}
.power-tool{transition:transform .18s,filter .18s,box-shadow .18s;touch-action:manipulation}
.power-tool:not(:disabled):hover{transform:translateY(-5px) scale(1.05);border-color:#fff0a9;filter:brightness(1.25);box-shadow:0 3px 19px #65c8ff6a}
.power-tool img{filter:drop-shadow(0 0 4px #6edfff85)}
.power-tool.selected{animation:v2-tool-glow .7s infinite alternate}
.game-toast{filter:drop-shadow(0 0 18px #ffe98baa)}
.game-toast.show{animation:toast-pop .67s cubic-bezier(.12,.84,.27,1) forwards}
.ultimate-button:not(:disabled){animation:v2-tool-glow 1s ease-in-out infinite alternate}
.boot-warning{position:fixed;z-index:100;bottom:20px;left:50%;transform:translateX(-50%);background:#591d2fe8;border:1px solid #ffc2bd;border-radius:12px;color:white;padding:12px 16px;max-width:min(94vw,490px);font-size:13px;line-height:1.5;box-shadow:0 6px 30px #0009}
.loading-mask.load-failed{cursor:pointer;background:#111930;animation:none}
.loading-mask.load-failed .loader-gem{animation:none;filter:grayscale(1)}
.loading-mask.load-failed small{max-width:300px;color:#ffcbaf;line-height:1.65}
@keyframes v2-title-pan{from{background-position:47% 48%}to{background-position:55% 53%}}
@keyframes v2-constellations{0%{opacity:.18;transform:translateY(-5px)}100%{opacity:.6;transform:translateY(8px)}}
@keyframes v2-fighter-bob{0%{transform:translateY(1px) rotate(-1.5deg)}100%{transform:translateY(-7px) rotate(1deg)}}
@keyframes v2-floor{from{opacity:.3}to{opacity:1}}
@keyframes v2-tool-glow{0%{box-shadow:0 0 8px #ffe7a354}100%{box-shadow:0 0 24px #ffdc84d9,0 0 12px #71d7fc8c}}
@media(max-width:740px){
 .battle-arena{height:clamp(116px,15.6dvh,147px)!important;padding:0 6px}
 .fighter{width:44%;gap:1px}
 .fighter canvas{width:65%;max-height:140px}
 .fighter-boss canvas{width:67%;max-height:140px}
 .fighter-caption{width:34%}
 .fighter-caption b{font-size:10px}
 .arena-center{font-size:17px}
 .game-screen{padding-top:3px}
 .board-shell{margin-top:4px}
 .game-meta{height:28px}
}
@media(max-width:360px){.battle-arena{height:105px!important}.fighter canvas{max-height:105px}}
@media(orientation:landscape) and (max-height:530px) and (max-width:1000px){.battle-arena{height:110px!important}.fighter canvas{max-height:105px}}
@media(prefers-reduced-motion:reduce){.title-screen,.title-screen:after,.battle-arena:before,.battle-arena:after,.fighter canvas,.world-card,.ultimate-button:not(:disabled),.board-shell.item-mode{animation:none!important;transition:none!important}}
