/* KAZAN ROYAL EDITION — full arcade-first redesign */
:root{--gold:#f1c96f;--gold2:#fff0bd;--ruby:#a80e2b;--ink:#080407;--muted:#d0b9b8}
html{scroll-behavior:smooth} body{background:radial-gradient(ellipse at 50% -12%,#7a1029 0,#350b19 26%,#10050b 58%,#050305 100%);color:#fff5e9;min-height:100vh}
.shell{max-width:1600px;padding:clamp(16px,3vw,46px)}
.top{position:relative;padding:18px 22px;border:1px solid #d1a44e;border-radius:22px;background:linear-gradient(105deg,#19060d 0%,#5b0c20 46%,#16060c 100%);box-shadow:0 22px 55px #000b,inset 0 1px #fff3;overflow:hidden}
.top:after{content:'♛';position:absolute;right:25%;top:-62px;font:220px Georgia,serif;color:#ffe6a00c;pointer-events:none}
.brand{font:900 clamp(32px,4vw,52px) Georgia,serif;letter-spacing:.2em;color:#fff0bd;text-shadow:0 3px #4b0917,0 0 30px #e8b84e66}
.tag{color:#e8c98d}.stats{position:relative;z-index:1}.stat{min-width:105px;border:1px solid #a64b59!important;border-radius:14px!important;background:linear-gradient(145deg,#4b0d1d,#17070d)!important;box-shadow:0 10px 25px #0008,inset 0 1px #fff2!important}.stat small{color:#d8bfc0}.stat b{color:#ffe5a0}
.hero{position:relative;isolation:isolate;min-height:270px;padding:clamp(28px,5vw,64px);display:flex;flex-direction:column;justify-content:center;border:1px solid #e1b95e!important;border-radius:26px!important;background:linear-gradient(100deg,#100409f5 0%,#4c0b1ff0 45%,#1a070df0 100%)!important;box-shadow:0 28px 70px #000c,inset 0 1px #fff3!important;overflow:hidden}
.hero:before{content:'';position:absolute;z-index:-1;inset:0 0 0 48%;background:linear-gradient(90deg,#210711 0%,#21071122 40%,transparent 100%),url('assets/img/kazan-hero-lounge.webp') center/cover no-repeat;opacity:.76;mask-image:linear-gradient(90deg,transparent,#000 30%)}
.hero:after{content:'K';font:300px Georgia,serif;color:#f6d58a0b;right:4%;top:-110px}
.hero .tag:first-child{font-weight:900;color:#ffe2a0}.hero h1{max-width:780px;font:700 clamp(32px,5vw,62px)/1.04 Georgia,serif;letter-spacing:-.025em;color:#fff0c0;text-shadow:0 3px #4c0b1b,0 0 25px #e6b95755}.hero p{max-width:700px;color:#f0d9d1;font-size:15px}
.controls{padding:18px 0 8px}.controls h2{font:700 30px Georgia,serif;color:#ffe7ae}.controls input{border:1px solid #a64b59!important;border-radius:14px!important;background:linear-gradient(145deg,#320b18,#10050a)!important;color:#fff2e5!important;min-width:min(100%,360px);padding:14px 18px!important}
.grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:17px}
.game-card{position:relative;isolation:isolate;min-height:265px;padding:18px!important;border:1px solid #98505a!important;border-radius:20px!important;background-image:linear-gradient(180deg,#09030718 0%,#0b0308a6 55%,#080307f2 100%),var(--game-art)!important;background-size:cover!important;background-position:center!important;box-shadow:0 16px 36px #000b,inset 0 1px #fff2!important;overflow:hidden;transition:transform .28s,border-color .28s,box-shadow .28s}
.game-card:before{z-index:-1!important;inset:0!important;height:auto!important;background:linear-gradient(180deg,#12030808 0%,#16050b22 35%,#080306ef 100%)!important;opacity:1!important}
.game-card:after{z-index:2;left:0;right:0;bottom:0;top:auto;width:100%;height:4px;border-radius:0;background:linear-gradient(90deg,transparent,#ffe39b,#bd203b,#ffe39b,transparent);opacity:.95}
.game-card>*{position:relative;z-index:1}.game-card .game-index{padding:6px 10px;border:1px solid #e3bd70;border-radius:999px;background:#10050bd9;color:#ffe8ad;font-weight:900}.game-card .game-symbol{width:52px;height:52px;border-radius:16px;background:linear-gradient(145deg,#8d1630,#210711);border:1px solid #e4bd67;color:#fff0bb;box-shadow:0 10px 26px #0009}.game-card b{font:700 21px Georgia,serif;color:#fff0c0;text-shadow:0 2px 9px #000}.game-card small{color:#f3dfd2;text-shadow:0 2px 7px #000;min-height:36px}.game-card .play-link{padding:9px 12px;border:1px solid #d7ad59;border-radius:999px;background:linear-gradient(145deg,#671126,#1b060d);color:#ffe6a5}.game-card:hover{transform:translateY(-7px) scale(1.012);border-color:#ffe6a0!important;box-shadow:0 25px 48px #000d,0 0 30px #e3a94155!important}
.stage{border:1px solid #d3a64f!important;border-radius:24px!important;background:radial-gradient(ellipse at 50% 0%,#76152e,#260812 58%,#080407)!important;box-shadow:0 26px 65px #000c,inset 0 1px #fff3!important;padding:clamp(16px,3vw,32px)!important}
.stage h2,.result-panel h3{color:#fff0bd!important;font-family:Georgia,serif}.game-visual{border:1px solid #e5bf68!important;border-radius:20px!important;box-shadow:0 20px 45px #000c!important}.challenge-hud>span{border:1px solid #88404d;background:linear-gradient(145deg,#3a0b18,#10050a)}.challenge-hud b{color:#ffe5a0}.prompt{border:1px solid #8d3c4b!important;background:linear-gradient(145deg,#2a0914,#090407)!important;color:#fff0df!important}.answer-btn,.action{border:1px solid #fff0b5!important;background:linear-gradient(180deg,#fff1c2,#edc66b 35%,#b87924 78%)!important;color:#2a0710!important;box-shadow:0 5px 0 #64200e,0 12px 24px #0009!important}.answer-btn:hover,.action:hover{filter:brightness(1.1);transform:translateY(-2px)}.answer-btn.correct{background:linear-gradient(145deg,#d7f3c7,#75b77b)!important;color:#102414!important}.answer-btn.wrong{background:linear-gradient(145deg,#f18b98,#9e1c35)!important;color:white!important}.result-panel{border:1px solid #e5bf68!important;background:radial-gradient(ellipse at top,#71142b,#1a070d 68%,#060306)!important}
.footer{color:#d1b9b9;border-top:1px solid #682638;margin-top:34px}
@media(max-width:700px){.top{align-items:flex-start}.stats{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.stat{min-width:0}.hero{min-height:250px}.hero:before{inset:0;opacity:.35;mask-image:linear-gradient(90deg,transparent,#000)}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.game-card{min-height:220px;padding:13px!important}.game-card b{font-size:17px}.game-card small{font-size:11px}.game-symbol{width:43px!important;height:43px!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
