/* BAM Test 01 — landscape-first shell on top of the shared arena styles. */
html:has(body.bam),body.bam{touch-action:none;-webkit-text-size-adjust:100%}
body.bam *{touch-action:none;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}
body.bam .overlay button,body.bam .overlay a{touch-action:manipulation}
body.bam{margin:0;height:100dvh;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:radial-gradient(ellipse at 50% 40%,#1d3443 0,#0e1c29 45%,#07111b 85%)}
.bam-shell{position:relative;display:flex;flex-direction:column;overflow:hidden;background:#0b1925;border:1px solid #3a5263;border-radius:16px;box-shadow:0 28px 90px #0006,0 0 0 6px #0b1a2755}
.bam-shell.o-landscape{width:min(calc(100vw - 24px),calc((100dvh - 56px) * 16 / 9));aspect-ratio:16/9}
.bam-shell.o-portrait{width:min(100vw,480px);height:min(calc(100dvh - 48px),900px)}
.bam-shell .viewport{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}
.bam-shell canvas{flex:1;min-height:0;height:auto;width:100%}

/* Top HUD floats over the arena in both orientations. */
.hud-top{position:absolute;top:0;left:0;right:0;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 14px;pointer-events:none;z-index:2;background:linear-gradient(#081521d0,#08152100)}
.hud-top button{pointer-events:auto}
.hud-top .player-hud{width:110px}
.hud-center{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.title-btn{background:none;border:0;padding:2px 6px;font-size:9px;letter-spacing:2.5px;font-weight:700;color:#c9b38a;cursor:default;user-select:none;-webkit-user-select:none}
#objective{font-size:9px;letter-spacing:1px;color:#a4bcc5;text-shadow:0 2px 5px #000}
.hud-right{display:flex;align-items:center;gap:8px;font-size:10px;color:#a4bcc5}
.hud-right .best{letter-spacing:1px;font-size:8px}.hud-right .best b{font-size:12px;color:#e6d4a6;margin-left:3px}
#timer{font-variant-numeric:tabular-nums;font-size:11px;color:#c8d6d7}
.hud-right button{width:27px;height:28px;border:1px solid #344b5c;border-radius:6px;background:#0e1e2cb0;font-size:14px}

/* Live chain badge */
.chain-badge{position:absolute;top:56px;left:50%;transform:translateX(-50%) scale(.8);display:flex;align-items:baseline;gap:8px;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;z-index:2;text-shadow:0 3px 12px #000}
.chain-badge b{font:normal 44px/1 Georgia,serif;color:#d8c6ff}
.chain-badge span{font-size:10px;letter-spacing:3px;color:#cdbcf5;font-weight:700}
.chain-badge.show{opacity:1;transform:translateX(-50%) scale(1)}
.chain-badge.hot b{color:#ffd66e}.chain-badge.hot span{color:#ffd66e}
.bam-shell .hint{top:12px;bottom:auto;left:50%;right:auto;transform:translateX(-50%);max-width:min(460px,60%);z-index:2;font-size:12px;padding:6px 12px;pointer-events:none}

/* Controls: overlaid in landscape, a deck under the arena in portrait. */
.controls{display:flex;justify-content:space-between;align-items:flex-end;user-select:none;-webkit-user-select:none;touch-action:none;z-index:3}
.o-landscape .controls{position:absolute;left:0;right:0;bottom:0;padding:0 22px 14px;pointer-events:none}
.o-landscape .controls .stick{pointer-events:auto;opacity:.82}
.o-portrait .controls{height:140px;flex-shrink:0;padding:10px 26px 14px;background:#0e1e2b;border-top:1px solid #29404d}
.controls .move-zone,.controls .aim-zone{display:flex;flex-direction:column;align-items:center;gap:7px}
.controls .control-label{font-size:7px;letter-spacing:1.4px;color:#8aa4b2;text-shadow:0 1px 4px #000}
.aim-stick.cooling{opacity:.42!important;filter:saturate(.4)}
.o-landscape .move-stick{width:104px;height:104px}.o-landscape .aim-stick{width:100px;height:100px}

/* Rotate prompt */
.rotate-icon svg{width:64px;height:64px;fill:none;stroke:#b7d6dc;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;animation:tilt 2.4s ease-in-out infinite}
@keyframes tilt{0%,30%{transform:rotate(0)}60%,100%{transform:rotate(-90deg)}}
.card b{color:#e3d8ff;font-weight:600}

/* BAM Lab */
.lab{position:absolute;inset:0;z-index:20;background:#050c14b8;display:flex;justify-content:flex-end}
.lab-card{width:min(440px,100%);height:100%;background:#0d1b28;border-left:1px solid #33495a;display:flex;flex-direction:column;color:#d9e3e4}
.lab-card header{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #263b49}
.lab-card h3{font:normal 24px Georgia,serif;margin:4px 0 0}
.lab-close{width:32px;height:32px;border:1px solid #344b5c;border-radius:8px;background:transparent}
.lab-body{flex:1;overflow-y:auto;padding:6px 18px 18px;-webkit-overflow-scrolling:touch}
.lab-body section{padding:12px 0;border-bottom:1px solid #1f3240}
.lab-body h4{font-size:10px;letter-spacing:1.8px;color:#c9b38a;margin:0 0 8px;font-weight:700;text-transform:uppercase}
.lab-row{display:flex;flex-direction:column;gap:4px;margin:8px 0;font-size:11px;color:#b3c6cc}
.lab-row span{display:flex;justify-content:space-between;gap:10px}.lab-row b{color:#e7dcff;font-weight:600;font-variant-numeric:tabular-nums}
.lab-row input[type=range]{width:100%;accent-color:#a28ff0;height:26px}
.lab-row input[type=checkbox]{width:22px;height:22px;accent-color:#7fc9b4;align-self:flex-start}
.lab-row select{background:#13283a;color:#d9e3e4;border:1px solid #3b5466;border-radius:6px;padding:7px}
.lab-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.lab-stats div{border-top:1px solid #2c4453;padding-top:6px}.lab-stats strong{display:block;font-size:17px;color:#c1e4d9;font-weight:400}.lab-stats span{font-size:9px;color:#8aa5b4}
.lab-body textarea{width:100%;background:#0a1621;color:#d9e3e4;border:1px solid #3b5466;border-radius:6px;padding:8px;font:11px/1.4 ui-monospace,monospace}
.lab-msg{font-size:11px;color:#9fd8c5;min-height:14px;margin:8px 0 0}
.lab-card footer{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 18px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #263b49}
.lab-card footer .secondary{margin:0;padding:10px;font-size:10px}.lab-card footer .primary{padding:10px 14px;font-size:12px;justify-content:center}

.bam-footer{display:flex;gap:24px;font-size:8px;letter-spacing:1.5px;color:#577384}.bam-footer a{color:#8aa6b1}

/* Phones and small windows: the game owns the whole screen. */
@media (max-height:540px),(max-width:760px){
  body.bam{gap:0}
  .bam-footer{display:none}
  .bam-shell{border:0;border-radius:0;box-shadow:none}
  .bam-shell.o-landscape{width:100vw;height:100dvh;aspect-ratio:auto;padding:0 env(safe-area-inset-right) 0 env(safe-area-inset-left)}
  .bam-shell.o-portrait{width:100vw;height:100dvh;padding-top:env(safe-area-inset-top)}
  .o-portrait .controls{padding-bottom:calc(14px + env(safe-area-inset-bottom));height:calc(140px + env(safe-area-inset-bottom))}
}
@media (max-height:420px){
  .o-landscape .move-stick{width:88px;height:88px}.o-landscape .aim-stick{width:86px;height:86px}
  .card h2{font-size:26px;margin:8px 0 10px}.card>p{font-size:10px;line-height:1.6;margin-bottom:10px}.mini-controls{display:none}
  .overlay{padding:10px}.stats{gap:6px;margin:8px 0}.stats strong{font-size:16px}.result h2{font-size:24px}
  .chain-badge{top:44px}.chain-badge b{font-size:34px}
  .bam-shell .hint{top:10px}
}
.o-portrait .hint{bottom:152px!important}

.card .logo{display:block;width:min(100%,300px);height:auto;margin:0 auto 6px;filter:drop-shadow(0 6px 18px #0008)}
@media (max-height:500px){.card .logo{width:200px;margin-bottom:2px}}

/* Gothic face only on numbers (Arif); words stay in the plain UI face. Numbers burn hot. */
#hp-number,#objective b,.chain-badge b,#bounce-label{font-family:"Grenze Gotisch",Georgia,serif}
.rook-name{display:block;line-height:1}
#hp-number{display:inline-block;font-size:20px;font-weight:900;background:linear-gradient(#fff7d6,#ffc23d 50%,#ff5a2a);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 6px #ff7a2a99)}
#hp-number.low{background:linear-gradient(#ffd0d6,#ff3d5a);-webkit-background-clip:text;background-clip:text;animation:hpbeat .5s ease-in-out infinite}
#objective{display:flex;align-items:baseline;gap:6px}
#objective b{font-size:24px;font-weight:900;line-height:1;background:linear-gradient(#fff7d6,#ffc23d 55%,#ff6a2a);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 8px #ff8a1e88) drop-shadow(0 2px 3px #000)}
#objective span{font-size:9px;letter-spacing:2px;text-transform:uppercase;color:#b9a6ef;font-weight:700}
.title-btn{width:90px;height:14px;padding:0}
.chain-badge b{font:900 54px/1 "Grenze Gotisch",Georgia,serif;background:linear-gradient(#ffffff,#d8c6ff 45%,#9a6bff);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 12px #a66bffaa)}
.chain-badge.hot b{background:linear-gradient(#fff7d6,#ffc23d 50%,#ff4f2a);-webkit-background-clip:text;background-clip:text;filter:drop-shadow(0 0 14px #ff8a1ecc)}
#bounce-label{font-size:16px;font-weight:800;letter-spacing:0;color:#c3cbe0;min-height:18px}
#health-fill{transition:width .15s}
@keyframes hpbeat{50%{transform:scale(1.18)}}

/* ---- Modern combat HUD (Arif + ChatGPT): thin, translucent, colour = state. Gothic stays in the world. ---- */
.bam-shell .hud-top{background:none;padding:10px 14px}
.bam-shell .player-hud,.bam-shell #objective,.bam-shell #rift-gauge{display:none!important}
.bam-shell .title-btn{position:absolute;top:0;left:50%;transform:translateX(-50%);width:140px;height:40px;opacity:0}
.bam-shell .hud-right button{width:36px;height:36px;border-radius:50%;border:1.5px solid #ffffff40;background:#0a061266;color:#ffffffcc;font-size:15px;backdrop-filter:blur(4px)}
.bam-shell .stick{border-radius:50%!important;box-shadow:none!important}
.bam-shell .stick .axis,.bam-shell .stick .knob svg{display:none}
.bam-shell .move-stick{background:radial-gradient(circle,#ffffff10 0 58%,#ffffff05 59%)!important;border:2px solid #ffffff45!important}
.bam-shell .move-stick .knob{width:44%;height:44%;border-radius:50%;border:0;background:radial-gradient(circle at 40% 35%,#ffffffd0,#d8e6ff8c 60%,#ffffff40);box-shadow:0 2px 10px #0006}
.bam-shell .aim-stick{background:radial-gradient(circle,#ff9a3c1c 0 58%,#ff9a3c0a 59%)!important;border:2.5px solid #ffb547b0!important}
.bam-shell .aim-stick .knob{width:46%;height:46%;border-radius:50%;border:0;background:radial-gradient(circle at 40% 35%,#fff1d0,#ffb547d0 55%,#ff7a1e99);box-shadow:0 0 14px #ff9a3c80}
.bam-shell .aim-stick.cooling{opacity:.55!important;filter:saturate(.3)}
.bam-shell .aim-stick.rift-ready{border-color:#c9a2ffd8!important;box-shadow:0 0 18px #9a6bff99!important}
.bam-shell .aim-stick.rift-ready .knob{background:radial-gradient(circle at 40% 35%,#ffffff,#c9a2ff 55%,#8a4dffb0);box-shadow:0 0 16px #b47bffcc}
.bam-shell .aim-stick.over{border-color:#ffffff!important;box-shadow:0 0 26px #b47bff,0 0 50px #8a4dff!important}
.bam-shell .echo-zone{position:absolute;right:150px;bottom:92px;pointer-events:auto}
.bam-shell .echo-stick{position:relative;width:76px;height:76px;background:radial-gradient(circle,#4fe6f51a 0 58%,#4fe6f50a 59%)!important;border:2px solid #4fe6f5b0!important}
.bam-shell .echo-stick .knob{width:46%;height:46%;border-radius:50%;border:0;background:radial-gradient(circle at 40% 35%,#ffffff,#9ff6ffd0 55%,#4fe6f599);box-shadow:0 0 12px #4fe6f599}
.bam-shell .echo-stick.cooling{border-color:#ffffff30!important}
.bam-shell .echo-stick.cooling .knob{background:#ffffff26;box-shadow:none}
.bam-shell .echo-stick::after{content:"";position:absolute;inset:-2px;border-radius:50%;background:conic-gradient(#05030c99 calc(var(--cd,0)*360deg),transparent 0);pointer-events:none}
.bam-shell .echo-stick #echo-cd{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:900 19px "Grenze Gotisch",Georgia,serif;color:#e8f6ff;text-shadow:0 1px 3px #000;pointer-events:none;z-index:2}
.bam-shell.o-landscape .move-stick{width:118px;height:118px}
.bam-shell.o-landscape .aim-stick{width:118px;height:118px}
.bam-shell.o-landscape .controls .stick{opacity:.92}
.bam-shell.o-portrait .echo-zone{position:relative;right:auto;bottom:auto;align-self:center}

/* ---- Minimal controls (ChatGPT's 3 rules): small visuals (move ~72, jump ~66 px) inside bigger touch areas;
   dark ~30 % fill, one thin light outline, one functional colour; state by colour, no ornaments, no constant pulse. ---- */
.bam-shell .stick{background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
.bam-shell.o-landscape .move-stick,.bam-shell.o-landscape .aim-stick{width:112px;height:112px}
.bam-shell .move-stick::before,.bam-shell .aim-stick::before{content:"";position:absolute;left:50%;top:50%;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;transition:transform .12s,border-color .15s,background .15s}
.bam-shell .move-stick::before{width:72px;height:72px;background:rgba(8,5,16,.3);border:1.5px solid rgba(255,255,255,.55)}
.bam-shell .move-stick .knob{width:28px;height:28px;border-radius:50%;border:0;background:rgba(255,255,255,.85)!important;box-shadow:0 1px 6px rgba(0,0,0,.4)}
.bam-shell .aim-stick::before{width:66px;height:66px;background:rgba(8,5,16,.3);border:2px solid #ffb547}
.bam-shell .aim-stick .knob{width:24px;height:24px;border-radius:50%;border:0;background:#ffb547!important;box-shadow:0 1px 6px rgba(0,0,0,.4)!important;filter:none!important}
.bam-shell .aim-stick:active::before{transform:translate(-50%,-50%) scale(1.08)}
.bam-shell .aim-stick.cooling{opacity:1!important;filter:none!important}
.bam-shell .aim-stick.cooling::before{border-color:rgba(255,255,255,.3)}
.bam-shell .aim-stick.cooling .knob{background:rgba(255,255,255,.35)!important}
.bam-shell .aim-stick.rift-ready::before,.bam-shell .aim-stick.finale::before{border-color:#c9a2ff;background:rgba(60,25,120,.35)}
.bam-shell .aim-stick.rift-ready .knob,.bam-shell .aim-stick.finale .knob{background:#c9a2ff!important}
.bam-shell .aim-stick.finale{animation:none!important}
.bam-shell .aim-stick.finale::before{box-shadow:0 0 16px #b47bff}
.bam-shell .aim-stick.over::before{border-color:#fff;background:rgba(120,70,220,.45)}
.bam-shell .aim-stick.over .knob{background:#fff!important}
.bam-shell .stick .axis,.bam-shell .stick .knob svg{display:none}
.bam-shell .hud-right button{width:32px;height:32px;border-radius:50%;border:1.5px solid rgba(255,255,255,.4);background:rgba(8,5,16,.3);color:rgba(255,255,255,.85);font-size:13px}

/* Level-end screen: built from ChatGPT's mockup (docs/art/sonuc-ekrani-tasarim.png). */
.bam-shell #interlude{background:radial-gradient(ellipse at 50% 42%,rgba(150,70,255,.35),rgba(40,14,80,.75) 38%,rgba(6,2,14,.94) 75%);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);animation:intIn .6s ease both;overflow:auto}
.win{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:clamp(3px,1.2vh,9px);padding:10px 20px;color:#fff;font-family:Montserrat,system-ui,sans-serif}
.win-eyebrow{display:flex;align-items:center;gap:12px}
.win-eyebrow i{width:clamp(50px,14vw,140px);height:1px;background:linear-gradient(90deg,transparent,#b47bff)}
.win-eyebrow i:last-child{transform:scaleX(-1)}
.win-eyebrow em{font-style:normal;font-weight:800;font-size:clamp(10px,2.4vh,13px);letter-spacing:2px;padding:4px 18px;border:1.5px solid #9a6bff;border-radius:999px;background:rgba(60,25,120,.55);box-shadow:0 0 14px rgba(150,90,255,.5)}
.win-title{margin:0;font-weight:900;font-size:clamp(26px,7.4vh,46px);letter-spacing:1px;line-height:1.02;color:#fff;text-shadow:0 0 18px rgba(170,110,255,.85),0 2px 0 rgba(60,20,120,.8)}
.win-sub{margin:0;font-weight:600;font-size:clamp(12px,2.9vh,16px);color:#ddd2f5}
.win-reward{display:flex;flex-direction:column;align-items:center;gap:clamp(2px,.8vh,6px);margin:clamp(0px,.6vh,6px) 0}
.win-cube{width:clamp(66px,19vh,120px);height:auto;filter:drop-shadow(0 0 26px rgba(180,110,255,.85));animation:cubeFloat 3.2s ease-in-out infinite}
.win-reward-label{font-weight:800;font-size:clamp(11px,2.6vh,14px);letter-spacing:1.5px;padding:6px 26px;border-radius:999px;border:1.5px solid rgba(190,140,255,.75);background:rgba(50,18,100,.7);box-shadow:0 0 18px rgba(150,90,255,.5)}
.win-stats{display:flex;gap:clamp(6px,1.4vw,14px)}
.win-stats div{display:flex;align-items:center;gap:10px;min-width:clamp(118px,24vw,190px);padding:clamp(6px,1.4vh,11px) 16px;border-radius:14px;background:rgba(40,16,80,.55);border:1px solid rgba(170,120,255,.35);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.win-stats svg{width:clamp(20px,5vh,30px);height:clamp(20px,5vh,30px);fill:none;stroke:#b98cff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.win-stats p{margin:0;display:flex;flex-direction:column;align-items:center;flex:1}
.win-stats b{font-weight:900;font-size:clamp(20px,5.6vh,32px);line-height:1}
.win-stats span{font-weight:600;font-size:clamp(9px,2.2vh,12px);color:#d7ccef;margin-top:2px}
.win-go{margin-top:clamp(4px,1.4vh,10px);min-width:clamp(200px,34vw,300px);padding:clamp(9px,2.3vh,15px) 40px;border:0;font-family:Montserrat,system-ui,sans-serif;font-weight:900;font-size:clamp(15px,3.6vh,20px);letter-spacing:1px;color:#fff;cursor:pointer;
  clip-path:polygon(7% 0,93% 0,100% 50%,93% 100%,7% 100%,0 50%);background:linear-gradient(#c58bff,#8a42f0 55%,#6a2ad0);filter:drop-shadow(0 0 16px rgba(170,90,255,.8));text-shadow:0 1px 2px rgba(40,0,90,.6)}
.win-go:active{transform:scale(.97)}
.win-again{position:absolute;right:-10px;bottom:clamp(8px,2vh,16px);width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.05);color:#cbbcf0;font-size:17px;cursor:pointer}
@keyframes intIn{from{opacity:0}to{opacity:1}}
@keyframes cubeFloat{50%{transform:translateY(-7px)}}

/* ---- Brawl Stars design language (Arif, standing rule for all level-end cards and controls) ----
   Chunky Rubik Black type (Lilita One lacks Ş Ğ İ) with a dark outline, thick-outlined pill/round shapes with a bottom "3D" shadow,
   yellow primary action, colour = state (blue move, orange jump, yellow = super/Rift ready). Own art, own palette. */
.win{font-family:Rubik,Montserrat,system-ui,sans-serif}
.win-title{font-family:Rubik,sans-serif;font-weight:900;font-size:clamp(30px,8.4vh,52px);letter-spacing:1px;color:#fff;-webkit-text-stroke:2.5px #1a0d33;paint-order:stroke fill;text-shadow:0 4px 0 #1a0d33,0 0 22px rgba(170,110,255,.7)}
.win-sub{font-family:Montserrat,sans-serif;font-weight:800;color:#e6dcff;text-shadow:0 2px 0 #1a0d33}
.win-eyebrow em{font-family:Rubik,sans-serif;font-weight:900;font-size:clamp(12px,2.8vh,15px);border:2.5px solid #1a0d33;background:linear-gradient(#8f5cff,#5b2bc9);box-shadow:0 3px 0 #1a0d33}
.win-reward-label{font-family:Rubik,sans-serif;font-weight:900;letter-spacing:1px;border:2.5px solid #1a0d33;background:linear-gradient(#5a2bb0,#3a1780);box-shadow:0 3px 0 #1a0d33,0 0 18px rgba(150,90,255,.5);-webkit-text-stroke:1px #1a0d33;paint-order:stroke fill}
.win-stats div{border:2.5px solid #1a0d33;background:linear-gradient(#3d1d78,#2a1256);box-shadow:0 4px 0 #1a0d33}
.win-stats b{font-family:Rubik,sans-serif;font-weight:900;-webkit-text-stroke:2px #1a0d33;paint-order:stroke fill}
.win-stats span{font-family:Montserrat,sans-serif;font-weight:800}
.win-go{clip-path:none;border:3px solid #1a0d33!important;border-radius:16px;background:linear-gradient(#ffe45c,#ffc21a 55%,#ffad0a);filter:none;box-shadow:0 6px 0 #1a0d33,0 10px 24px rgba(0,0,0,.4);font-family:Rubik,sans-serif;font-weight:900;font-size:clamp(18px,4.4vh,26px);color:#fff;-webkit-text-stroke:2px #1a0d33;paint-order:stroke fill;text-shadow:0 3px 0 #1a0d33}
.win-go:active{transform:translateY(5px);box-shadow:0 1px 0 #1a0d33}
.win-again{border:2.5px solid #1a0d33;background:linear-gradient(#6d6aa0,#45427a);color:#fff;box-shadow:0 3px 0 #1a0d33}
/* Controls */
.bam-shell .move-stick::before{width:76px;height:76px;background:rgba(20,40,90,.32);border:3px solid rgba(255,255,255,.32)}
.bam-shell .move-stick .knob{width:34px;height:34px;background:linear-gradient(#7cc4ff,#3b8cf0)!important;border:3px solid #10204a!important;box-shadow:0 3px 0 rgba(16,32,74,.8)!important}
.bam-shell .aim-stick::before{width:72px;height:72px;background:rgba(120,40,0,.28);border:3px solid rgba(255,170,80,.6)}
.bam-shell .aim-stick .knob{width:32px;height:32px;background:linear-gradient(#ffb15c,#ff7a1e)!important;border:3px solid #3a1600!important;box-shadow:0 3px 0 rgba(58,22,0,.85)!important}
.bam-shell .aim-stick.cooling::before{border-color:rgba(255,255,255,.25);background:rgba(30,30,40,.3)}
.bam-shell .aim-stick.cooling .knob{background:linear-gradient(#9a9aa8,#6c6c7a)!important;border-color:#222!important}
.bam-shell .aim-stick.rift-ready::before,.bam-shell .aim-stick.finale::before{border-color:rgba(255,215,64,.85);background:rgba(120,90,0,.3);box-shadow:0 0 14px rgba(255,210,60,.55)}
.bam-shell .aim-stick.rift-ready .knob,.bam-shell .aim-stick.finale .knob{background:linear-gradient(#fff07a,#ffc21a)!important;border-color:#4a3000!important}
.bam-shell .aim-stick.over::before{border-color:#fff;background:rgba(255,200,40,.35);box-shadow:0 0 20px rgba(255,220,80,.9)}
.bam-shell .aim-stick.over .knob{background:linear-gradient(#ffffff,#ffe45c)!important}
.bam-shell .hud-right button{width:38px;height:38px;border-radius:12px;border:2.5px solid #1a0d33;background:linear-gradient(#6d6aa0,#45427a);color:#fff;font-size:15px;box-shadow:0 3px 0 #1a0d33}

/* Level 1 reward is the boomerang (Arif): wider art, a gentle spin-sway, and one quiet hint line. */
.win-weapon{width:clamp(110px,30vh,190px);filter:drop-shadow(0 0 22px rgba(79,230,245,.55)) drop-shadow(0 6px 0 rgba(10,4,24,.6));animation:weaponSway 3.4s ease-in-out infinite}
@keyframes weaponSway{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-6px) rotate(4deg)}}
.win-reward-hint{display:block;margin-top:6px;font-family:Montserrat,sans-serif;font-weight:700;font-size:clamp(10px,2.4vh,13px);color:#c9bdf0}

/* Super button (Bölüm 2+, sealed): appears only once a weapon is won; tap = auto-aim, drag = aim.
   Brawl language: chunky dark disc, thick outline, the weapon itself as the icon, a count badge; it pops when it fills. */
.bam-shell .super-stick{width:54px;height:54px;border:3px solid #1a0d33!important;background:radial-gradient(circle at 50% 40%,#2c2350,#151027)!important;box-shadow:0 4px 0 #0b0618,0 0 0 2px #4fe6f566 inset}
.bam-shell .super-stick .knob{width:78%;height:78%;background:none!important;box-shadow:none!important;display:flex;align-items:center;justify-content:center}
.bam-shell .super-stick .knob img{width:100%;height:auto;transform:rotate(-20deg);filter:drop-shadow(0 0 6px #4fe6f5aa)}
.bam-shell .super-stick.empty{opacity:.45}
.bam-shell .super-stick.empty .knob img{filter:grayscale(1) brightness(.7)}
.bam-shell .super-stick:not(.empty){box-shadow:0 4px 0 #0b0618,0 0 0 2px #4fe6f5 inset,0 0 18px #4fe6f566}
.bam-shell .super-stick #super-count{position:absolute;right:-6px;top:-6px;min-width:24px;height:24px;border-radius:12px;border:2.5px solid #1a0d33;background:linear-gradient(#ffe45c,#ffb40a);color:#1a0d33;font:900 14px Rubik,sans-serif;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 0 #1a0d33;z-index:3}
.bam-shell .super-stick.empty #super-count{background:#4a4566;color:#cfc8e8}
.bam-shell .super-stick.pop{animation:superPop .32s ease-out}
@keyframes superPop{0%{transform:scale(1)}40%{transform:scale(1.25)}100%{transform:scale(1)}}
.bam-shell .super-stick::after{display:none}
.bam-shell .super-stick::before{content:'';position:absolute;inset:-7px;border-radius:50%;background:conic-gradient(#ffd23f calc(var(--c,0)*360deg),#ffffff14 0);-webkit-mask:radial-gradient(circle,transparent 66%,#000 68%);mask:radial-gradient(circle,transparent 66%,#000 68%);pointer-events:none;opacity:.85}

/* ATIŞ button (agreement 1 Nov): left of ZIPLA within thumb reach; three small ammo segments above it
   (cyan = round, gold = POWER round from a ×3 chain); empty = dimmed but still there. Super moves above ZIPLA. */
.bam-shell .fire-zone{position:absolute;right:158px;bottom:26px;pointer-events:auto}
.bam-shell .fire-stick{position:relative;width:74px;height:74px;border-radius:50%;border:3px solid #1a0d33!important;background:radial-gradient(circle at 50% 38%,#24476a,#122236)!important;box-shadow:0 4px 0 #0b0618,0 0 0 2px #4fe6f588 inset}
.bam-shell .fire-stick .knob{width:62%;height:62%;border-radius:50%;background:radial-gradient(circle at 40% 35%,#e9feff,#7ff1ff 60%,#33c9db)!important;border:2.5px solid #1a0d33;box-shadow:0 3px 0 #0b0618;display:flex;align-items:center;justify-content:center}
.bam-shell .fire-stick .knob svg{width:70%;height:70%;fill:none;stroke:#0c2433;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.bam-shell .fire-stick .seg{position:absolute;top:-13px;width:16px;height:7px;border-radius:4px;border:2px solid #1a0d33;background:#3a3452}
.bam-shell .fire-stick .s0{left:calc(50% - 28px)}.bam-shell .fire-stick .s1{left:calc(50% - 8px);top:-16px}.bam-shell .fire-stick .s2{left:calc(50% + 12px)}
.bam-shell .fire-stick .seg{overflow:hidden}
.bam-shell .fire-stick .seg::before{content:'';position:absolute;inset:0;width:calc(var(--f,0)*100%);background:#4fe6f580}
.bam-shell .fire-stick .seg.on::before,.bam-shell .fire-stick .seg.pw::before{display:none}
.bam-shell .fire-stick .seg.on{background:#4fe6f5;box-shadow:0 0 8px #4fe6f5aa}
.bam-shell .fire-stick .seg.pw{background:#ffd23f;box-shadow:0 0 10px #ffd23fcc}
.bam-shell .fire-stick.empty{opacity:.5}.bam-shell .fire-stick.empty .knob{filter:grayscale(1) brightness(.75)}
.bam-shell .fire-stick.power .knob{background:radial-gradient(circle at 40% 35%,#fffbe6,#ffe27a 60%,#ffb40a)!important}
.bam-shell .fire-stick.pop{animation:superPop .28s ease-out}
.bam-shell .echo-zone{right:42px;bottom:162px}

/* ---------- Home (agreement 1 Nov): dark, slightly moving Taht Salonu; big logo; big ROOK; one dominant
   OYNA; level progress under it; Silah Odası and sound in the corners. One second to play. ---------- */
.overlay.home{display:block;padding:0;background:#07040f;overflow:hidden}
.overlay.home.hidden{display:none}
.home-bg{position:absolute;inset:-20px;background:url(../bam/art/taht-salonu.webp) center 40%/cover no-repeat;filter:blur(3px) brightness(.42) saturate(.85);animation:homeBreath 7s ease-in-out infinite}
.home-bg::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 30% 75%,rgba(255,140,60,.10),transparent 55%),linear-gradient(90deg,rgba(7,4,15,.15),rgba(7,4,15,.55) 60%,rgba(7,4,15,.75));animation:homeFlicker 2.3s steps(9) infinite}
@keyframes homeBreath{0%,100%{transform:scale(1.03)}50%{transform:scale(1.07) translateX(-8px)}}
@keyframes homeFlicker{0%,100%{opacity:1}30%{opacity:.86}55%{opacity:.97}80%{opacity:.9}}
.home-rook{position:absolute;left:3%;bottom:-2%;height:96%;max-width:52%;object-fit:contain;object-position:left bottom;filter:drop-shadow(0 18px 30px rgba(0,0,0,.7)) drop-shadow(0 0 40px rgba(79,230,245,.15));animation:homeRook 3.6s ease-in-out infinite;transform-origin:50% 100%}
@keyframes homeRook{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.home-main{position:absolute;right:5%;top:50%;transform:translateY(-52%);width:min(46%,560px);display:flex;flex-direction:column;align-items:center;gap:clamp(10px,3vh,22px)}
.home-logo{width:100%;height:auto;filter:drop-shadow(0 8px 24px rgba(0,0,0,.8)) drop-shadow(0 0 22px rgba(150,90,255,.35))}
.home-play{display:flex;align-items:center;justify-content:center;gap:14px;width:86%;padding:clamp(12px,3.6vh,22px) 0;border:3.5px solid #1a0d33;border-radius:20px;background:linear-gradient(#ffe45c,#ffc21a 55%,#ffad0a);box-shadow:0 7px 0 #1a0d33,0 14px 30px rgba(0,0,0,.5),inset 0 2px 0 rgba(255,255,255,.6);font:900 clamp(26px,7.4vh,46px)/1 Rubik,sans-serif;letter-spacing:2px;color:#fff;-webkit-text-stroke:2.5px #1a0d33;paint-order:stroke fill;text-shadow:0 4px 0 #1a0d33;cursor:pointer;transition:transform .08s}
.home-play svg{width:clamp(22px,6vh,36px);height:auto;fill:#fff;stroke:#1a0d33;stroke-width:2.2;stroke-linejoin:round}
.home-play:active{transform:translateY(4px);box-shadow:0 3px 0 #1a0d33,0 8px 20px rgba(0,0,0,.5)}
.home-level{display:flex;align-items:center;gap:10px;padding:8px 22px;border:2.5px solid #1a0d33;border-radius:999px;background:linear-gradient(#3b2a78,#26184f);box-shadow:0 3px 0 #1a0d33,inset 0 0 0 1.5px #8f6bff66;font:900 clamp(12px,2.9vh,16px)/1 Rubik,sans-serif;letter-spacing:1px;color:#efe9ff}
.home-level svg{width:20px;height:20px;fill:#4fe6f5}
.home-corner{position:absolute;bottom:clamp(12px,3.5vh,24px);display:flex;align-items:center;gap:0;border:0;background:none;padding:0;cursor:pointer}
.home-corner.left{left:clamp(12px,2.4vw,26px)}.home-corner.right{right:clamp(12px,2.4vw,26px)}
.home-corner img,.home-corner.right svg{width:clamp(48px,11vh,64px);height:clamp(48px,11vh,64px);padding:8px;box-sizing:border-box;border:3px solid #1a0d33;border-radius:16px;background:linear-gradient(#3b2a78,#22164a);box-shadow:0 4px 0 #1a0d33,inset 0 0 0 1.5px #8f6bff66;object-fit:contain;position:relative;z-index:1}
.home-corner span{margin-left:-12px;padding:10px 18px 10px 22px;border:2.5px solid #1a0d33;border-left:0;border-radius:0 12px 12px 0;background:#1d1340;box-shadow:0 3px 0 #1a0d33;font:900 clamp(12px,2.7vh,15px)/1 Rubik,sans-serif;letter-spacing:1px;color:#efe9ff}
.home-corner.right svg{fill:#efe9ff;stroke:#efe9ff;stroke-width:1.6;stroke-linecap:round}
.home-corner.right svg .wave{fill:none}
.home-corner.right.off svg .wave{opacity:.15}

/* ---------- Silah Odası ---------- */
#armory{background:radial-gradient(ellipse at 50% 30%,rgba(60,30,120,.75),rgba(7,4,15,.95));backdrop-filter:blur(6px)}
.armory{width:min(92vw,880px);display:flex;flex-direction:column;align-items:center;gap:clamp(8px,2.4vh,16px);font-family:Rubik,sans-serif}
.armory .win-eyebrow em{font-size:clamp(14px,3.4vh,18px);padding:6px 26px}
.armory-sub{margin:0;font-weight:700;font-size:clamp(12px,2.8vh,15px);color:#c9bdf0}
.armory-cards{display:flex;gap:clamp(10px,2vw,20px);justify-content:center;flex-wrap:wrap}
.armory-card{position:relative;width:clamp(170px,30vw,250px);padding:clamp(10px,2.4vh,16px);border:3px solid #1a0d33;border-radius:18px;background:linear-gradient(#3b2a78,#22164a);box-shadow:0 5px 0 #1a0d33,inset 0 0 0 1.5px #8f6bff55;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;color:#fff;text-align:center;font-family:Rubik,sans-serif}
.armory-card img{height:clamp(70px,20vh,120px);width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 0 14px rgba(79,230,245,.5))}
.armory-card b{font-weight:900;font-size:clamp(15px,3.6vh,20px);letter-spacing:1px;-webkit-text-stroke:1.5px #1a0d33;paint-order:stroke fill}
.armory-card p{margin:0;font-weight:600;font-size:clamp(11px,2.4vh,13px);color:#d9cff7;line-height:1.3}
.armory-card .state{margin-top:4px;padding:5px 16px;border:2.5px solid #1a0d33;border-radius:999px;background:#4a3a8a;font-weight:900;font-size:13px;letter-spacing:1px}
.armory-card.sel{background:linear-gradient(#2b6f86,#163a52);box-shadow:0 5px 0 #1a0d33,inset 0 0 0 2px #4fe6f5,0 0 24px rgba(79,230,245,.35)}
.armory-card.sel .state{background:linear-gradient(#ffe45c,#ffb40a);color:#1a0d33}
.armory-card.locked{cursor:default;filter:saturate(.2) brightness(.6)}
.armory-card.locked img{filter:brightness(0) drop-shadow(0 0 8px rgba(160,140,255,.4))}
.armory-ok{min-width:240px}

/* Zaman Bumerangı: while the world crawls the picture drains a little and sharpens (a filter, not a drawn effect). */
#arena{transition:filter .25s ease}
#arena.timeslow{filter:saturate(.55) contrast(1.12) brightness(.95)}

/* Drawn UI effects (ChatGPT fx sheet): counter gain burst; ATIŞ icon fills the knob. */
.bam-shell .stick .gain-fx{position:absolute;left:50%;top:50%;width:150%;height:auto;transform:translate(-50%,-60%) scale(.4);opacity:0;pointer-events:none;z-index:4;animation:gainFx .7s ease-out forwards}
@keyframes gainFx{0%{opacity:0;transform:translate(-50%,-60%) scale(.35)}20%{opacity:1;transform:translate(-50%,-65%) scale(1)}100%{opacity:0;transform:translate(-50%,-90%) scale(1.25)}}
.bam-shell .fire-stick .knob{background:none!important;border:0;box-shadow:none;width:92%;height:92%}
.bam-shell .fire-stick .knob img{width:100%;height:100%;object-fit:contain}
/* Arif (1 Kasım 22:13): side by side works — JUMP back in the corner, FIRE back left of it (a little bigger),
   super above. */
.bam-shell.o-landscape .fire-stick{width:84px;height:84px}
.bam-shell.o-landscape .fire-zone{right:152px;bottom:22px}
.bam-shell .fire-stick.firing .knob{transform:scale(.92);box-shadow:0 1px 0 #0b0618,0 0 18px #7ff1ff}

/* MENÜLER — "Koyu ve sade, premium" (Arif seçti, ChatGPT maketi, 1 Kasım 22:50). Arif: "aşırı poligon" →
   köşeler yuvarlak, kesik köşe yok. Kömür-lacivert yarı saydam kompakt panel, ince turkuaz kenar, küçük altın
   vurgu, tek sarı ana buton, ikinciller yalnız çerçeve. */
.pm-overlay{background:rgba(4,6,12,.62);backdrop-filter:blur(6px) saturate(.8);-webkit-backdrop-filter:blur(6px) saturate(.8);display:flex;align-items:center;justify-content:center;padding:10px}
.pm-overlay.hidden{display:none}
.pm-panel{position:relative;width:min(460px,86vw);padding:clamp(18px,5vh,30px) clamp(18px,4vw,34px) clamp(16px,4vh,26px);display:flex;flex-direction:column;align-items:center;gap:clamp(7px,2.1vh,13px);
  background:linear-gradient(180deg,rgba(22,32,48,.95),rgba(12,18,30,.97));border:1.5px solid rgba(63,227,238,.55);border-radius:22px;
  box-shadow:0 0 0 1px rgba(0,0,0,.4),0 0 22px rgba(63,227,238,.16),0 20px 50px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.06);
  font-family:Rubik,system-ui,sans-serif;color:#fff;animation:pmIn .22s ease-out both}
.pm-panel::after{content:'';position:absolute;left:50%;bottom:-1.5px;width:30%;height:3px;border-radius:3px;transform:translateX(-50%);background:linear-gradient(90deg,#0000,#f2b632 20%,#ffd76a 50%,#f2b632 80%,#0000)}
@keyframes pmIn{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
.pm-gem{position:absolute;top:-1.5px;left:50%;width:30%;height:3px;border-radius:3px;transform:translateX(-50%);background:linear-gradient(90deg,#0000,#f2b632 25%,#ffd76a 50%,#f2b632 75%,#0000)}
.pm-title{margin:4px 0 0;display:flex;align-items:center;gap:14px;font-weight:900;font-size:clamp(24px,7vh,40px);letter-spacing:.5px;line-height:1;text-shadow:0 2px 12px rgba(0,0,0,.5)}
.pm-title i{width:clamp(20px,6vw,46px);height:2px;border-radius:2px;background:linear-gradient(90deg,#0000,#3fe3ee)}.pm-title i:last-child{transform:scaleX(-1)}
.pm-level{display:flex;align-items:center;gap:12px;padding:6px 22px;border-radius:999px;font-weight:800;font-size:clamp(11px,2.9vh,15px);letter-spacing:1.5px;color:#d9e4ef;background:rgba(16,40,56,.8);border:1.5px solid rgba(63,227,238,.7)}
.pm-level b{color:#3fe3ee;font-size:.7em}
.pm-stat{display:flex;align-items:center;gap:12px;padding:6px 18px 6px 10px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(160,190,220,.18);font-weight:800;font-size:clamp(11px,2.9vh,15px);letter-spacing:1px;color:#e6edf5}
.pm-stat img{height:clamp(26px,7vh,38px)}
.pm-stat em{font-style:normal;font-family:'Grenze Gotisch',serif;font-weight:900;font-size:clamp(22px,6vh,32px);color:#ffc93c;padding-left:14px;border-left:1px solid rgba(160,190,220,.25);line-height:1}
.pm-icon{width:clamp(48px,12vh,62px);height:clamp(34px,8.5vh,44px);border-radius:12px;border:1.5px solid #3fe3ee;background:rgba(18,52,66,.7);display:flex;align-items:center;justify-content:center;box-shadow:0 0 12px rgba(63,227,238,.22);cursor:pointer}
.pm-icon svg{width:56%;height:70%;fill:none;stroke:#9ff6ff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.pm-icon .spk{fill:#9ff6ff}
.pm-icon .x{display:none}.pm-icon.off{border-color:#5b6b7e;box-shadow:none}.pm-icon.off .wave{display:none}.pm-icon.off .x{display:block;stroke:#8fa0b4}.pm-icon.off .spk{fill:#8fa0b4;stroke:#8fa0b4}
.pm-main{width:min(100%,370px);display:flex;align-items:center;justify-content:center;gap:14px;padding:clamp(9px,2.6vh,14px) 0;border:0;border-radius:14px;cursor:pointer;font-family:Rubik,sans-serif;font-weight:900;font-size:clamp(18px,5.2vh,27px);letter-spacing:.5px;color:#14100a;
  background:linear-gradient(180deg,#ffd862,#f5b52a 60%,#e39b17);box-shadow:0 0 14px rgba(255,190,60,.3),inset 0 1px 0 rgba(255,255,255,.5),inset 0 -2px 0 rgba(120,70,0,.35)}
.pm-main svg{width:.85em;height:.85em;fill:#14100a}.pm-main:active{transform:scale(.97)}
.pm-row{display:flex;gap:clamp(8px,2vw,14px);width:100%;justify-content:center}
.pm-ghost{flex:1;max-width:220px;display:flex;align-items:center;justify-content:center;gap:10px;padding:clamp(8px,2.2vh,12px) 10px;border-radius:12px;border:1.5px solid rgba(170,195,220,.4);background:rgba(255,255,255,.03);color:#eef3f8;font-family:Rubik,sans-serif;font-weight:800;font-size:clamp(11px,2.9vh,15px);letter-spacing:.8px;cursor:pointer}
.pm-ghost svg{width:1.4em;height:1.4em;fill:none;stroke:#5fe9f2;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.pm-ghost:active{background:rgba(63,227,238,.12)}

/* Arif (22:52) referans: gece mavisi, boyalı yumuşak dünya, kor turuncu parlayan diskler. Menü buna çevrildi:
   yuvarlak derin lacivert cam panel + yıldız tozu + yumuşak mavi kenar ışığı; ana buton parlayan kor. */
.pm-overlay{background:radial-gradient(ellipse at 50% 60%,rgba(10,22,60,.45),rgba(3,6,18,.78));backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.pm-panel{border-radius:28px;border:1px solid rgba(120,175,255,.38);
  background:radial-gradient(1.2px 1.2px at 12% 18%,#cfe3ff 99%,#0000),radial-gradient(1px 1px at 78% 12%,#cfe3ff 99%,#0000),radial-gradient(1.4px 1.4px at 88% 64%,#9fc4ff 99%,#0000),radial-gradient(1px 1px at 24% 82%,#9fc4ff 99%,#0000),radial-gradient(1px 1px at 55% 40%,#ffffffaa 99%,#0000),
    radial-gradient(ellipse at 50% 0%,rgba(70,120,255,.28),#0000 60%),linear-gradient(180deg,rgba(16,30,72,.93),rgba(8,14,40,.96));
  box-shadow:0 0 0 1px rgba(0,0,0,.35),0 0 30px rgba(70,130,255,.22),0 24px 60px rgba(0,0,0,.6),inset 0 1px 0 rgba(190,215,255,.18)}
.pm-panel::after,.pm-gem{display:none}
.pm-title{font-size:clamp(24px,6.6vh,38px);text-shadow:0 0 18px rgba(120,170,255,.45),0 2px 10px rgba(0,0,0,.6)}
.pm-title i{background:linear-gradient(90deg,#0000,#8fb8ff)}
.pm-level{border-color:rgba(130,180,255,.45);background:rgba(30,55,120,.45);color:#dbe7ff}.pm-level b{color:#ff9a4a}
.pm-stat{background:rgba(20,40,95,.45);border-color:rgba(130,180,255,.22)}
.pm-stat em{color:#ffb35a;text-shadow:0 0 10px rgba(255,120,40,.55);border-left-color:rgba(130,180,255,.25)}
.pm-icon{border-radius:999px;border-color:rgba(130,180,255,.55);background:rgba(25,50,115,.55);box-shadow:0 0 14px rgba(90,150,255,.25)}
.pm-icon svg{stroke:#cfe0ff}.pm-icon .spk{fill:#cfe0ff}
.pm-main{border-radius:999px;color:#fff;text-shadow:0 1px 2px rgba(120,20,0,.6);background:radial-gradient(ellipse at 50% 30%,#ffd08a 0%,#ff8a3a 38%,#f0471f 78%,#c42a12 100%);
  box-shadow:0 0 22px rgba(255,110,40,.65),0 0 60px rgba(255,80,30,.3),inset 0 2px 0 rgba(255,235,200,.6),inset 0 -3px 6px rgba(120,20,0,.4)}
.pm-main svg{fill:#fff}
.pm-ghost{border-radius:999px;border-color:rgba(130,180,255,.4);background:rgba(25,50,115,.35);color:#e3ecff}.pm-ghost svg{stroke:#9fc4ff}
.pm-panel h2.pm-title{font-family:Rubik,system-ui,sans-serif;font-weight:900;letter-spacing:1px;color:#fff}
/* Arif (23:01): hizalama gürültüyü azaltır. Tek sütun: DEVAM ET ile alt iki butonun dış kenarları aynı çizgide;
   bölüm hapı ile kalan-tepegöz kutusu aynı genişlikte ve ortalı. */
.pm-panel{--col:min(100%,400px)}
.pm-main,.pm-row{width:var(--col);box-sizing:border-box}
.pm-row{gap:12px}.pm-row .pm-ghost{flex:1 1 0;max-width:none;min-width:0}
.pm-level,.pm-stat{width:calc(var(--col) * .74);box-sizing:border-box;justify-content:center}
.pm-stat{justify-content:space-between;padding-left:12px;padding-right:18px}.pm-stat span{flex:1;text-align:center}
/* Arif (23:05): üstteki iki kutu da DEVAM ET ile aynı genişlikte. */
.pm-level,.pm-stat{width:var(--col)}
/* Arif (23:05): panelin tepesinde ağaç estetiğinde aksiyon illüstrasyonu (ChatGPT: ROOK kor atış, gece çamları).
   Başlık illüstrasyonun eriyen alt kenarına oturur; ses ikonu yer açmak için sağ üst köşeye alındı. */
.pm-panel{overflow:hidden;padding-top:clamp(64px,22vh,96px);gap:clamp(6px,1.7vh,11px)}
.pm-art{position:absolute;top:0;left:50%;transform:translateX(-50%);width:100%;height:auto;max-height:clamp(96px,34vh,150px);object-fit:cover;object-position:50% 40%;pointer-events:none;
  -webkit-mask:linear-gradient(#000 55%,#0000);mask:linear-gradient(#000 55%,#0000);opacity:.95}
.pm-title,.pm-level,.pm-stat,.pm-main,.pm-row{position:relative;z-index:1}
.pm-title{text-shadow:0 2px 14px rgba(4,8,24,.95),0 0 18px rgba(120,170,255,.45)}
.pm-corner{position:absolute;top:10px;right:10px;z-index:2;width:38px!important;height:38px!important;background:rgba(10,20,50,.6)}
/* Arif (23:12): ROOK menüde boy göstermesin; aksiyonu, yerinde homurdanarak kıpırdanan bir tepegöz versin.
   Oyunun kendi minik tepegöz sprite'ı (idle / windup kareleri) yerinde soluyup silkiniyor, ara ara tepiniyor. */
.pm-art{display:none}
.pm-panel{padding-top:clamp(70px,23vh,98px)}
.pm-mini{position:absolute;top:clamp(8px,2.5vh,14px);left:50%;width:clamp(64px,19vh,92px);aspect-ratio:195/169;transform:translateX(-50%);z-index:1}
.pm-mini::after{content:'';position:absolute;left:18%;right:18%;bottom:2%;height:12%;border-radius:50%;background:radial-gradient(rgba(0,0,0,.55),#0000 70%);z-index:-1;animation:pmShadow 1.6s ease-in-out infinite}
.pm-mini i{position:absolute;inset:0;background:url(../bam/art/mini.webp) 0 0/800% 100% no-repeat;transform-origin:50% 96%;animation:pmGrumble 1.6s ease-in-out infinite,pmFrames 4.8s steps(1) infinite}
@keyframes pmGrumble{0%,100%{transform:scale(1,1)}18%{transform:scale(1.06,.92)}30%{transform:scale(.97,1.05) translateY(-2%)}44%{transform:scale(1.03,.96) rotate(-3deg)}56%{transform:scale(1.03,.96) rotate(3deg)}70%{transform:scale(1,1)}}
@keyframes pmShadow{0%,100%{transform:scaleX(1)}18%{transform:scaleX(1.12)}30%{transform:scaleX(.9)}}
/* frames: 0 idle · 1-4 walk · 5 windup — mostly idle, a grumpy windup, a little stomp in place */
@keyframes pmFrames{0%{background-position-x:0%}30%{background-position-x:calc(100%*5/7)}42%{background-position-x:0%}66%{background-position-x:calc(100%*1/7)}72%{background-position-x:calc(100%*3/7)}78%{background-position-x:calc(100%*1/7)}84%{background-position-x:calc(100%*3/7)}90%{background-position-x:0%}}

/* Level-end signature move: the controls and HUD step aside so ROOK has the stage */
.bam-shell.cine [class$="-zone"],.bam-shell.cine .stick,.bam-shell.cine .player-hud,.bam-shell.cine #objective{opacity:0!important;pointer-events:none;transition:opacity .4s}

/* Künye (credits): small link on the home screen, a scrolling list in the night-glass panel */
.home-credits{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);background:none;border:0;color:rgba(200,215,255,.6);font:700 12px/1 Montserrat,sans-serif;letter-spacing:1px;text-transform:uppercase;padding:8px 12px;cursor:pointer;z-index:3}
.credits-panel{padding-top:clamp(18px,4vh,26px)!important;max-height:92%;width:min(620px,92vw)}
.credits-body{width:100%;overflow-y:auto;max-height:calc(100dvh - 190px);text-align:left;color:#c9d4f2;font:500 12px/1.45 Montserrat,sans-serif;padding-right:6px}
.credits-body h3{margin:10px 0 4px;font:800 12px/1 Montserrat,sans-serif;letter-spacing:1.5px;color:#ffb36b;text-transform:uppercase}
.credits-body ul{list-style:none;margin:0;padding:0}.credits-body li{padding:4px 0;border-bottom:1px solid rgba(120,175,255,.12)}
.credits-body li b{display:block;color:#fff;font-weight:800}.credits-body li span{color:#9fb0d8}.credits-body a{color:#8cc7ff}
.credits-body p{margin:4px 0}.credits-note{color:#8090b8;font-size:11px}

/* 2 Kas: bütün menü ekranları aynı gece mavisi cam panelde (zafer, yenilgi, silah odası, yan çevir).
   Tek sütun, dış kenarlar hizalı, tek kor buton; sayılar gotik. */
.pm-sub{position:relative;z-index:1;margin:0;width:var(--col);text-align:center;font:700 clamp(11px,2.7vh,14px)/1.35 Rubik,sans-serif;color:#b9c9ee}
.pm-plain{padding-top:clamp(18px,5vh,30px)!important}
.pm-wide{width:min(720px,92vw)}.pm-wide{--col:min(100%,560px)}
.pm-stats{position:relative;z-index:1;width:var(--col);display:flex;gap:10px}
.pm-stats>div{flex:1 1 0;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px;border-radius:14px;background:rgba(20,40,95,.45);border:1px solid rgba(130,180,255,.22)}
.pm-stats b{font-family:'Grenze Gotisch',serif;font-weight:900;font-size:clamp(20px,5.4vh,30px);line-height:1;color:#ffb35a;text-shadow:0 0 10px rgba(255,120,40,.55)}
.pm-stats span{font:800 clamp(9px,2.2vh,11px)/1.1 Rubik,sans-serif;letter-spacing:1px;color:#cddaf7;text-transform:uppercase;text-align:center}
.pm-win{padding-top:clamp(74px,24vh,104px)}
.pm-reward{position:absolute;top:clamp(6px,2vh,12px);left:50%;transform:translateX(-50%);height:clamp(62px,19vh,92px);width:auto;z-index:1;filter:drop-shadow(0 0 16px rgba(79,230,245,.55));animation:pmFloat 2.4s ease-in-out infinite}
@keyframes pmFloat{0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(-4px)}}
.pm-win .pm-title{font-size:clamp(20px,5.6vh,32px);white-space:nowrap}
.pm-win .pm-level{font-size:clamp(10px,2.6vh,13px)}
.pm-panel .pm-main svg,.pm-panel .pm-ghost svg{flex:0 0 auto}
.pm-panel .pm-main svg{fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.pm-panel .pm-main svg path[d^="M7 4.5"]{fill:#fff;stroke:none}
/* Silah Odası kartları: cam kartlar */
.pm-panel .armory-cards{position:relative;z-index:1;width:var(--col);display:flex;gap:12px;justify-content:center}
.pm-panel .armory-card{flex:1 1 0;width:auto;padding:clamp(8px,2vh,14px);border:1px solid rgba(130,180,255,.3);border-radius:20px;background:rgba(20,40,95,.45);box-shadow:none;color:#fff;font-family:Rubik,sans-serif;display:flex;flex-direction:column;align-items:center;gap:4px}
.pm-panel .armory-card b{-webkit-text-stroke:0;font-size:clamp(13px,3.2vh,17px)}
.pm-panel .armory-card p{color:#b9c9ee}
.pm-panel .armory-card .state{border:1px solid rgba(130,180,255,.45);background:rgba(25,50,115,.55);color:#e3ecff;font-size:12px}
.pm-panel .armory-card.sel{border-color:rgba(255,150,70,.8);box-shadow:0 0 18px rgba(255,110,40,.35)}
.pm-panel .armory-card.sel .state{border:0;color:#fff;background:radial-gradient(ellipse at 50% 30%,#ffd08a,#ff8a3a 45%,#e0451c)}
.pm-panel .armory-card img{height:clamp(54px,15vh,96px)}
#rotate-screen .rotate-icon svg{width:64px;height:64px;fill:none;stroke:#cfe0ff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;position:relative;z-index:1}
.pm-level .win-reward-label,.pm-level .win-eyebrow{all:unset;color:inherit;font:inherit;letter-spacing:inherit}
.pm-level .win-reward-label{color:#ffb35a}
.pm-win{padding-top:clamp(66px,21vh,96px);padding-bottom:clamp(12px,3vh,20px);gap:clamp(5px,1.4vh,9px)}
.pm-win .pm-reward{height:clamp(56px,17vh,84px)}
