/* ── Arayüz stilleri (09_ui.js bütün öğeleri JS ile kurar) ──
   Sizes scale with --k (set from JS: shorter screen side / 800, clamped). Everything is prefixed u-/ui. */
:root {
  --k: 1;
  --f: "Avenir Next Rounded", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Avenir Next", system-ui, sans-serif;
  --ink: #2a1546;
  --gold: linear-gradient(145deg, #fff7cf 0%, #ffd766 20%, #d3921c 46%, #ffe890 66%, #b5720f 88%, #ffe38a 100%);
  --padL: max(calc(var(--k) * 16px), env(safe-area-inset-left));
  --padR: max(calc(var(--k) * 16px), env(safe-area-inset-right));
  --padT: max(calc(var(--k) * 14px), env(safe-area-inset-top));
  --padB: max(calc(var(--k) * 14px), env(safe-area-inset-bottom));
  --rb: max(72px, calc(var(--k) * 70px));
  --rim: #93590c;   /* düğmelerin alttaki 3D kenarı: altın çerçevenin koyu (bronz) kalınlığı; renkli gövde hep çerçevenin İÇİNDE kalır */   /* round HUD button: never below the 72 px kid minimum */
}
html, body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }

#ui, #ui * { box-sizing: border-box; }
#ui { position: fixed; inset: 0; z-index: 10; pointer-events: none; font-family: var(--f); color: #fff; overflow: hidden; overflow: clip; }
#ui button { font-family: var(--f); -webkit-appearance: none; appearance: none; margin: 0; border: 0; outline: none;
  touch-action: none; cursor: pointer; pointer-events: auto; color: #fff; -webkit-tap-highlight-color: transparent; }
/* iç boşluk sıfırı en düşük öncelikte: yoksa (#ui button) .u-btn'in kendi iç boşluğunu ezer, yazı/simge altın çerçeveye dayanır */
:where(#ui) button { padding: 0; }
.u-svg { width: 1em; height: 1em; fill: #fff; flex: none; filter: drop-shadow(0 0.08em 0 rgba(20, 5, 40, 0.35)); }
.u-hide { display: none !important; }

/* Outlined chunky text: <span class="u-ol"><b>txt</b><i>txt</i></span> (stroke underlay + gradient fill) */
.u-ol { position: relative; display: inline-block; white-space: nowrap; --ol: var(--ink); --t1: #fff; --t2: #fff; }
.u-ol b, .u-ol i { display: block; font: inherit; font-style: normal; padding: 0 0.1em; }
.u-ol b { color: var(--ol); -webkit-text-stroke: 0.2em var(--ol); text-shadow: 0 0.09em 0 var(--ol), 0 0.16em 0.3em rgba(20, 5, 45, 0.45); }
.u-ol i { position: absolute; left: 0; top: 0; background: linear-gradient(180deg, var(--t1) 12%, var(--t2) 72%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.u-gold-t { --t1: #fffbe0; --t2: #ffc733; --ol: #5a2a00; }

/* ── Glossy buttons ── */
.u-btn { --c1: #8ff27f; --c2: #37c44d; --c3: #1d8f37; --lip: #136a28; position: relative; display: inline-flex; align-items: center;
  justify-content: center; gap: 0.32em; min-height: calc(var(--k) * 84px); padding: 0 1.15em; border-radius: 999px;
  font-weight: 900; font-size: calc(var(--k) * 36px); line-height: 1; letter-spacing: 0.01em; white-space: nowrap;
  text-shadow: 0 0.08em 0 rgba(10, 30, 10, 0.35);
  border: calc(var(--k) * 4px) solid transparent !important;
  background: linear-gradient(180deg, var(--c1), var(--c2) 55%, var(--c3)) padding-box, var(--gold) border-box;
  box-shadow: inset 0 calc(var(--k) * 4px) 0 rgba(255, 255, 255, 0.45), inset 0 calc(var(--k) * -7px) 0 rgba(0, 0, 0, 0.15),
    0 calc(var(--k) * 6px) 0 var(--rim), 0 calc(var(--k) * 15px) calc(var(--k) * 22px) rgba(12, 0, 35, 0.5);
  transition: transform 0.09s ease-out, box-shadow 0.09s ease-out, filter 0.2s; }
.u-btn::before { content: ""; position: absolute; left: 9%; right: 9%; top: 7%; height: 44%; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.05)); }
.u-btn > * { position: relative; }
.u-btn.down { transform: translateY(calc(var(--k) * 5px)) scale(0.98);
  box-shadow: inset 0 calc(var(--k) * 4px) 0 rgba(255, 255, 255, 0.4), inset 0 calc(var(--k) * -5px) 0 rgba(0, 0, 0, 0.15),
    0 calc(var(--k) * 2px) 0 var(--rim), 0 calc(var(--k) * 6px) calc(var(--k) * 12px) rgba(12, 0, 35, 0.45); }
.u-btn.b { --c1: #8fd8ff; --c2: #3a9cf5; --c3: #2266d0; --lip: #16459a; }
.u-btn.o { --c1: #ffd27a; --c2: #ff9a2e; --c3: #e0661a; --lip: #a54510; }
.u-btn.r { --c1: #ff9aa6; --c2: #f2435c; --c3: #c82040; --lip: #8c1430; }
.u-btn.p { --c1: #ffd37a; --c2: #f2a029; --c3: #c8710e; --lip: #8a4a08; }
.u-btn.gr { --c1: #d8d2e6; --c2: #93a1b5; --c3: #6a788c; --lip: #475366; }
.u-btn.off { filter: saturate(0.25) brightness(0.9); }

/* Round glossy icon button (HUD corner buttons, toggles) */
.u-rbtn { position: relative; width: var(--rb); height: var(--rb); border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: calc(var(--k) * 30px); line-height: 1;
  border: calc(var(--k) * 4px) solid transparent !important;
  background: radial-gradient(circle at 50% 30%, #8fd8ff, #3a8fe8 55%, #1f4f9a) padding-box, var(--gold) border-box;
  box-shadow: inset 0 calc(var(--k) * 3px) 0 rgba(255, 255, 255, 0.35), 0 calc(var(--k) * 4px) 0 var(--rim),
    0 calc(var(--k) * 8px) calc(var(--k) * 14px) rgba(0, 12, 40, 0.45);
  transition: transform 0.09s ease-out; }
.u-rbtn::before { content: ""; position: absolute; left: 16%; right: 16%; top: 8%; height: 40%; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0)); pointer-events: none; }
.u-rbtn::after { content: ""; position: absolute; inset: calc(var(--k) * -8px); border-radius: 50%; }   /* bigger touch target */
.u-rbtn > * { position: relative; }
.u-rbtn.down { transform: translateY(calc(var(--k) * 3px)) scale(0.94); }
.u-rbtn.off .u-svg, .u-rbtn.off .u-emo { opacity: 0.55; }
.u-rbtn.off > .u-slash { display: block; }
/* press-and-hold progress (--hp 0..1 from JS): a ring around round buttons, a sweeping fill inside pills */
.u-hold { position: absolute !important; inset: calc(var(--k) * -10px); border-radius: 50%; pointer-events: none; opacity: 0; z-index: 3;
  background: conic-gradient(#fff6b0 calc(var(--hp, 0) * 360deg), rgba(255, 255, 255, 0.22) 0);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%, #000 70%, transparent 72%); mask: radial-gradient(circle, transparent 60%, #000 62%, #000 70%, transparent 72%);
  filter: drop-shadow(0 0 calc(var(--k) * 6px) #ffd23f); transition: opacity 0.12s; }
.holding > .u-hold { opacity: 1; }
/* HUD corner buttons act on release: once the ring is full it glows and pulses ("lift now") */
.armed > .u-hold { filter: drop-shadow(0 0 calc(var(--k) * 10px) #ffd23f) brightness(1.25); animation: u-armed 0.45s ease-in-out infinite alternate; }
@keyframes u-armed { from { transform: scale(1); } to { transform: scale(1.1); } }
.u-btn > .u-hfill { position: absolute; inset: 0; border-radius: 999px; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--hp, 0));
  background: linear-gradient(180deg, rgba(255, 246, 176, 0.85), rgba(255, 200, 60, 0.75)); }
.u-slash { display: none; position: absolute; left: 50%; top: 50%; width: 86%; height: calc(var(--k) * 6px); margin: calc(var(--k) * -3px) 0 0 -43%;
  border-radius: 9px; background: #ff4a5e; box-shadow: 0 0 0 calc(var(--k) * 2px) #fff; transform: rotate(-45deg); }

/* ── HUD ── */
#uiHud { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0s linear 0.45s; }
#ui.hud-on #uiHud { opacity: 1; visibility: visible; transition: opacity 0.45s ease; }
#ui.hud-on .u-tl { animation: u-inL 0.6s cubic-bezier(.2, 1.4, .4, 1) both; }
#ui.hud-on .u-tr { animation: u-inR 0.6s cubic-bezier(.2, 1.4, .4, 1) both; }
#ui.hud-on .u-bl { animation: u-inB 0.6s 0.08s cubic-bezier(.2, 1.4, .4, 1) both; }
#ui.hud-on .u-pad { animation: u-inB 0.6s 0.12s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes u-inL { from { transform: translateX(-120%); } }
@keyframes u-inR { from { transform: translateX(120%); } }
@keyframes u-inB { from { transform: translateY(160%); } }

/* top-left: portrait, level star, xp, gold */
.u-tl { position: absolute; left: var(--padL); top: var(--padT); display: flex; align-items: center; gap: calc(var(--k) * 12px); }
.u-portraits { position: relative; flex: none; width: calc(var(--k) * 164px); height: calc(var(--k) * 106px); }
.u-bilbo-face { position: absolute; right: 0; top: calc(var(--k) * 7px); width: calc(var(--k) * 62px); height: calc(var(--k) * 62px);
  border-radius: 50%; overflow: hidden; pointer-events: none; border: calc(var(--k) * 3px) solid transparent;
  background: radial-gradient(circle at 45% 30%, #f5e5c7, #9eb8b8 80%) padding-box, var(--gold) border-box;
  box-shadow: 0 0 0 calc(var(--k) * 1.5px) #452711, 0 calc(var(--k) * 4px) calc(var(--k) * 9px) #160c2866; }
.u-bilbo-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.u-face { position: relative; pointer-events: auto; cursor: pointer; touch-action: none; -webkit-touch-callout: none; transition: transform 0.1s; width: calc(var(--k) * 106px); height: calc(var(--k) * 106px); border-radius: 50%; flex: none;
  border: calc(var(--k) * 5px) solid transparent;
  background: radial-gradient(circle at 50% 38%, #bfe6ff, #6fb6f0 60%, #4a7fd0) padding-box, var(--gold) border-box;
  box-shadow: 0 0 0 calc(var(--k) * 2px) rgba(60, 25, 5, 0.6), 0 calc(var(--k) * 6px) calc(var(--k) * 14px) rgba(15, 0, 40, 0.5), inset 0 calc(var(--k) * -6px) calc(var(--k) * 12px) rgba(20, 30, 90, 0.35); }
.u-face.down { transform: scale(0.94); }
.u-face > .u-hold { inset: calc(var(--k) * -12px); }
.u-face .u-fimg { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.u-face img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.u-face .u-femo { font-size: calc(var(--k) * 60px); line-height: 1; transform: translateY(6%); }
.u-face::after { content: ""; position: absolute; left: 14%; top: 6%; width: 44%; height: 28%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); }
.u-lvl { position: absolute; right: calc(var(--k) * -16px); bottom: calc(var(--k) * -12px); width: calc(var(--k) * 54px); height: calc(var(--k) * 54px);
  display: flex; align-items: center; justify-content: center; z-index: 2; filter: drop-shadow(0 calc(var(--k) * 3px) calc(var(--k) * 3px) rgba(20, 5, 40, 0.5)); }
.u-lvl::before, .u-lvl::after { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0%, 63% 32%, 98% 35%, 71% 57%, 80% 92%, 50% 73%, 20% 92%, 29% 57%, 2% 35%, 37% 32%); }
.u-lvl::before { background: #5a2a00; transform: scale(1.14); }
.u-lvl::after { background: radial-gradient(circle at 45% 35%, #fffbe0, #ffd84a 45%, #f0a216 80%); }
.u-lvl span { position: relative; z-index: 1; font-weight: 900; font-size: calc(var(--k) * 21px); color: #6a2c00; margin-top: calc(var(--k) * 4px);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.u-stats { display: flex; flex-direction: column; gap: calc(var(--k) * 8px); padding-left: calc(var(--k) * 6px); }
.u-xp { position: relative; width: calc(var(--k) * 210px); height: calc(var(--k) * 24px); border-radius: 99px; overflow: hidden;
  border: calc(var(--k) * 3px) solid transparent; background: linear-gradient(180deg, #0f203a, #1a3255) padding-box, var(--gold) border-box;
  box-shadow: 0 0 0 calc(var(--k) * 1.5px) rgba(60, 25, 5, 0.6), 0 calc(var(--k) * 4px) calc(var(--k) * 8px) rgba(0, 12, 40, 0.45); }
.u-xpfill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 99px; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #ffb347, #ffd86f 60%, #fff0a0); transition: transform 0.45s cubic-bezier(.3, 1.3, .5, 1); overflow: hidden; }
.u-xpfill::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 45%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.05)); }
.u-xpfill::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -30%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); animation: u-shine 2.8s ease-in-out infinite; }
@keyframes u-shine { 0% { transform: translateX(0); } 60%, 100% { transform: translateX(470%); } }
.u-xpstar { position: absolute; right: calc(var(--k) * 4px); top: 50%; transform: translateY(-50%); font-size: calc(var(--k) * 14px); opacity: 0.9; }
.u-gold { display: flex; align-items: center; gap: calc(var(--k) * 8px); font-weight: 900; font-size: calc(var(--k) * 30px); line-height: 1; }
.u-coin { position: relative; width: calc(var(--k) * 32px); height: calc(var(--k) * 32px); border-radius: 50%; flex: none;
  background: radial-gradient(circle at 36% 30%, #fffbd0, #ffd84a 38%, #e3a019 72%, #b0700a);
  box-shadow: inset 0 0 0 calc(var(--k) * 2.5px) #f7c236, inset 0 0 0 calc(var(--k) * 4.5px) #c9870e, 0 calc(var(--k) * 3px) 0 #7a4705, 0 calc(var(--k) * 4px) calc(var(--k) * 6px) rgba(0, 12, 40, 0.45); }
.u-coin::after { content: "★"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #c78100;
  font-size: calc(var(--k) * 16px); text-shadow: 0 1px 0 #fff3b0; }

/* top-right: minimap + corner buttons */
.u-tr { position: absolute; right: var(--padR); top: var(--padT); display: flex; align-items: flex-start; gap: calc(var(--k) * 10px); }
.u-sbtns { display: flex; flex-direction: row; gap: calc(var(--k) * 10px); }   /* one row along the top edge, left of the minimap */
.u-mini { position: relative; width: calc(var(--k) * 178px); height: calc(var(--k) * 178px); border-radius: 50%; flex: none;
  border: calc(var(--k) * 6px) solid transparent; background: linear-gradient(#141a36, #141a36) padding-box, var(--gold) border-box;
  box-shadow: 0 0 0 calc(var(--k) * 2px) rgba(60, 25, 5, 0.6), 0 calc(var(--k) * 8px) calc(var(--k) * 18px) rgba(10, 0, 30, 0.5); }
.u-mini canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; display: block; }

/* bottom-left: health orb + potion */
.u-bl { position: absolute; left: var(--padL); bottom: var(--padB); display: flex; align-items: flex-end; gap: calc(var(--k) * 2px); }
.u-orb { position: relative; width: calc(var(--k) * 190px); height: calc(var(--k) * 190px); flex: none; }
.u-orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.u-orbglow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 40, 70, 0.75), rgba(255, 40, 70, 0) 70%);
  opacity: 0; transform: scale(1.05); }
.u-orb.low .u-orbglow { animation: u-beat 0.9s ease-in-out infinite; }
@keyframes u-beat { 0%, 100% { opacity: 0.15; transform: scale(1.02); } 40% { opacity: 0.95; transform: scale(1.22); } }
.u-potion { position: relative; width: calc(var(--k) * 90px); height: calc(var(--k) * 90px); border-radius: 50%; margin-bottom: calc(var(--k) * 10px);
  border: calc(var(--k) * 5px) solid transparent !important;
  background: radial-gradient(circle at 50% 35%, #fff 0%, #ffe1ec 30%, #f4a9c8 70%, #d9709c) padding-box, var(--gold) border-box;
  box-shadow: inset 0 calc(var(--k) * -6px) calc(var(--k) * 10px) rgba(150, 20, 70, 0.35), 0 calc(var(--k) * 5px) 0 #8a2d55,
    0 calc(var(--k) * 10px) calc(var(--k) * 16px) rgba(0, 12, 40, 0.45);
  transition: transform 0.09s ease-out, filter 0.25s; }
.u-potion svg { position: absolute; left: 12%; top: 8%; width: 76%; height: 76%; }
.u-potion.down { transform: translateY(calc(var(--k) * 4px)) scale(0.94); }
.u-potion.empty { filter: saturate(0.15) brightness(0.9); }
.u-potion.hint::after { content: ""; position: absolute; inset: calc(var(--k) * -12px); border-radius: 50%; border: calc(var(--k) * 5px) solid #ff5d7c;
  animation: u-ring 1s ease-out infinite; pointer-events: none; }
.u-badge { position: absolute; right: calc(var(--k) * -10px); top: calc(var(--k) * -8px); min-width: calc(var(--k) * 36px); height: calc(var(--k) * 36px);
  border-radius: 99px; padding: 0 calc(var(--k) * 6px); display: flex; align-items: center; justify-content: center; font-weight: 900;
  font-size: calc(var(--k) * 22px); color: #fff; background: linear-gradient(180deg, #ff6b84, #d81f45);
  box-shadow: 0 0 0 calc(var(--k) * 3px) #fff1b0, 0 0 0 calc(var(--k) * 5px) #8a4a05, 0 calc(var(--k) * 3px) calc(var(--k) * 6px) rgba(0, 0, 0, 0.4);
  text-shadow: 0 2px 0 rgba(90, 0, 20, 0.5); }
/* potion count: a "×3" tag centred on the bottom rim (auto margins, so the bump animation's transform can't shift it) */
.u-potion .u-potn { top: auto; right: 0; left: 0; bottom: calc(var(--k) * -14px); margin: 0 auto; width: max-content;
  padding: 0 calc(var(--k) * 10px); font-size: calc(var(--k) * 21px); letter-spacing: calc(var(--k) * 0.5px); }
@keyframes u-ring { from { transform: scale(0.85); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }

/* bottom-right: attack + skills (children positioned around the attack button centre) */
.u-pad { position: absolute; right: calc(var(--padR) + var(--k) * 76px); bottom: calc(var(--padB) + var(--k) * 76px); width: 0; height: 0; }
.u-pad > button { position: absolute; left: calc(var(--x) * var(--k) * 1px); top: calc(var(--y) * var(--k) * 1px); transform: translate(-50%, -50%); }
/* attack = lightsaber on a starry night-blue button (any blade colour pops on it); --blade is set by 09_ui.js */
.u-atk { --blade: #5ad8ff; width: calc(var(--k) * 140px); height: calc(var(--k) * 140px); border-radius: 50%;
  border: calc(var(--k) * 6px) solid transparent !important;
  background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.9) 0 0.8%, transparent 1.4%),
    radial-gradient(circle at 72% 78%, rgba(255, 255, 255, 0.75) 0 0.7%, transparent 1.3%),
    radial-gradient(circle at 22% 38%, rgba(255, 255, 255, 0.7) 0 0.6%, transparent 1.2%),
    radial-gradient(circle at 50% 30%, #6fb6ff, #2f78e0 42%, #1f4fa8 76%, #12306a) padding-box, var(--gold) border-box;
  box-shadow: inset 0 calc(var(--k) * 5px) 0 rgba(255, 255, 255, 0.3), inset 0 calc(var(--k) * -10px) calc(var(--k) * 16px) rgba(10, 0, 40, 0.45),
    0 calc(var(--k) * 7px) 0 #160c4a, 0 calc(var(--k) * 14px) calc(var(--k) * 22px) rgba(10, 0, 30, 0.5);
  transition: transform 0.08s ease-out; }
.u-atk::before { content: ""; position: absolute; left: 17%; right: 17%; top: 6%; height: 40%; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)); pointer-events: none; }
.u-atk svg { position: absolute; left: 10%; top: 10%; width: 80%; height: 80%; overflow: visible; filter: drop-shadow(0 calc(var(--k) * 3px) 0 rgba(10, 0, 40, 0.45)); }
.u-atk .u-blade { transform-origin: 50px 60px; transition: transform 0.22s ease-in; }
.u-atk.off .u-blade { transform: scaleY(0.02); }
.u-atk.down { transform: translate(-50%, -50%) scale(0.9); }
.u-atk.down svg { filter: drop-shadow(0 calc(var(--k) * 3px) 0 rgba(10, 0, 40, 0.45)) brightness(1.2); }
.u-emsvg { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.u-temo .u-emsvg { width: 1em; height: 1em; vertical-align: -0.1em; }
.u-skill { --c: #ffd23f; --p: 0; width: calc(var(--k) * 98px); height: calc(var(--k) * 98px); border-radius: 50%;
  border: calc(var(--k) * 4px) solid transparent !important;
  background: radial-gradient(circle at 50% 32%, #fff 0%, var(--c) 42%, var(--cd, #6a4a20) 100%) padding-box, var(--gold) border-box;
  box-shadow: inset 0 calc(var(--k) * -6px) calc(var(--k) * 10px) rgba(20, 0, 50, 0.3), 0 calc(var(--k) * 5px) 0 rgba(40, 15, 70, 0.9),
    0 calc(var(--k) * 10px) calc(var(--k) * 16px) rgba(0, 12, 40, 0.45);
  transition: transform 0.08s ease-out; }
.u-skill::before { content: ""; position: absolute; left: 18%; right: 18%; top: 7%; height: 38%; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0)); pointer-events: none; z-index: 2; }
.u-skill .u-ico { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: calc(var(--k) * 50px); line-height: 1;
  filter: drop-shadow(0 calc(var(--k) * 3px) calc(var(--k) * 2px) rgba(30, 0, 60, 0.4)); z-index: 1; }
.u-skill .u-cd { position: absolute; inset: 0; border-radius: 50%; z-index: 3; pointer-events: none;
  background: conic-gradient(rgba(22, 10, 48, 0.72) calc(var(--p) * 360deg), rgba(0, 0, 0, 0) 0); }
.u-skill .u-cdn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 4; font-weight: 900;
  font-size: calc(var(--k) * 30px); color: #fff; text-shadow: 0 0 calc(var(--k) * 6px) #000, 0 2px 0 #000; pointer-events: none; }
.u-skill.cool .u-ico { filter: saturate(0.4) brightness(0.8); }
/* keyboard key (1 2 3 on the skills, Q on the potion): on computers, or once a key was pressed (#ui.kbd) */
.u-skill .u-key, .u-potion .u-key { display: none; position: absolute; top: calc(var(--k) * -10px); right: calc(var(--k) * -10px); z-index: 5; box-sizing: border-box;
  min-width: calc(var(--k) * 36px); height: calc(var(--k) * 36px); padding: 0 calc(var(--k) * 6px); border-radius: calc(var(--k) * 10px);
  background: linear-gradient(180deg, #ffffff, #d6e6fa); color: #1d3f82; font-weight: 900; font-size: calc(var(--k) * 23px);
  line-height: calc(var(--k) * 36px); text-align: center; pointer-events: none;
  box-shadow: 0 calc(var(--k) * 3px) 0 #6882a8, 0 calc(var(--k) * 5px) calc(var(--k) * 8px) rgba(0, 12, 40, 0.45); }
#ui.kbd .u-skill .u-key, #ui.kbd .u-potion .u-key { display: block; }
.u-skill.down { transform: translate(-50%, -50%) scale(0.88); }
.u-skill.new::after { content: ""; position: absolute; inset: calc(var(--k) * -12px); border-radius: 50%; border: calc(var(--k) * 5px) solid #fff6b0;
  box-shadow: 0 0 calc(var(--k) * 14px) #ffd23f; animation: u-ring 1.1s ease-out infinite; pointer-events: none; }
.u-skill.pop { animation: u-pop 0.7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes u-pop { 0% { transform: translate(-50%, -50%) scale(0); } 100% { transform: translate(-50%, -50%) scale(1); } }

/* boss bar: centred in the gap between the top-left stats and the 🎒⏸ row (never covers them; its portrait disc keeps ~10 px from the XP bar) */
.u-boss { position: absolute; top: calc(var(--padT) + var(--k) * 84px); left: calc(var(--padL) + var(--k) * 580px); right: calc(var(--padR) + var(--k) * 240px);   /* (Pırıl: Çanta+Mola+Harita düğmelerine binmez) */
  max-width: calc(var(--k) * 520px); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: calc(var(--k) * 4px); opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0s linear 0.4s; }
.u-boss.on { opacity: 1; visibility: visible; transition: opacity 0.4s; animation: u-drop 0.6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes u-drop { from { transform: translateY(-140%); } to { transform: translateY(0); } }
.u-bossname { font-weight: 900; font-size: calc(var(--k) * 26px); --t1: var(--bn1, #fff6d8); --t2: var(--bn2, #ffc860); --ol: var(--bno, #4a2204); }
.u-bossrow { position: relative; width: 100%; display: flex; align-items: center; }
.u-bossico { position: absolute; left: calc(var(--k) * -18px); top: 50%; transform: translateY(-50%); width: calc(var(--k) * 58px); height: calc(var(--k) * 58px);
  border-radius: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; font-size: calc(var(--k) * 34px);
  border: calc(var(--k) * 4px) solid transparent; background: radial-gradient(circle at 50% 35%, #ffe08a, #e08a1e) padding-box, var(--gold) border-box;
  box-shadow: 0 calc(var(--k) * 4px) calc(var(--k) * 8px) rgba(10, 0, 30, 0.5); }
/* friendly boss portrait (rendered PNG, or the SVG stand-in): a round badge on its own pastel disc (per boss: .b-<type>) */
.u-dimg { display: block; flex: none; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; overflow: hidden;
  background: radial-gradient(circle at 50% 36%, #fff9ec, #ffe09e 55%, #e8963e); }
.u-dimg.b-kraljole { background: radial-gradient(circle at 50% 36%, #eefcff, #a8f0f8 55%, #2ca8c8); }
.u-dimg.b-kostebekusta { background: radial-gradient(circle at 50% 36%, #fffaf0, #ffe3b0 55%, #f5b86a); }
.u-dimg.b-lavkaplumbaga { background: radial-gradient(circle at 50% 36%, #fff8f0, #ffd6b0 55%, #ff9f6a); }
.u-dimg.b-kefirdev { background: radial-gradient(circle at 50% 36%, #eaf7ff, #c4e8ff 42%, #5494dc); }   /* (a deeper blue rim: the white bottle stands out at 46–59 px) */
.u-dimg.b-sovalye { background: radial-gradient(circle at 50% 36%, #fffbea, #ffe39a 44%, #3d64d8); }   /* Huysuz Şövalye: gold centre, royal-blue rim */
/* per-boss bar colours (09_ui.js sets data-b from the 'boss' event's type); default is warm gold → amber */
.u-boss[data-b="kraljole"] { --bf1: #8ff5e4; --bf2: #27c6d6; --bf3: #4a84ff; --bn1: #e8fffd; --bn2: #7fe8f0; --bno: #0a3a5a; --bi1: #9ef5ff; --bi2: #1c88b8; }
.u-boss[data-b="kostebekusta"] { --bf1: #ffe066; --bf2: #ffab3c; --bf3: #f0703a; --bn1: #fff6d8; --bn2: #ffc860; --bno: #4a2204; --bi1: #ffe0a0; --bi2: #c07a2a; }
.u-boss[data-b="lavkaplumbaga"] { --bf1: #ffd23c; --bf2: #ff8a2c; --bf3: #ff4f86; --bn1: #fff2dc; --bn2: #ffa060; --bno: #4a1004; --bi1: #ffc9a0; --bi2: #d8542a; }
/* Kefir Devi: milky white → kefir-bottle blue, with fizzy bubbles rising inside the fill (.u-bossfizz, see bossFill in 09_ui.js) */
.u-boss[data-b="kefirdev"] { --bf1: #eaf8ff; --bf2: #8fd6ff; --bf3: #4f8ff5; --bn1: #ffffff; --bn2: #b4e4ff; --bno: #16386a; --bi1: #eef9ff; --bi2: #4a8ad8; }
.u-bossfizz { display: none; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: 0 50%; overflow: hidden; pointer-events: none; }
.u-boss.on[data-b="kefirdev"] .u-bossfizz { display: block; }   /* (only while the bar shows: no idle animation) */
.u-bossfizz i { position: absolute; left: 0; right: 0; top: 0; height: 200%; will-change: transform;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0) 0 calc(var(--k) * 2.1px), rgba(255, 255, 255, 0.95) calc(var(--k) * 2.6px) calc(var(--k) * 3.5px), rgba(255, 255, 255, 0) calc(var(--k) * 4px)) 0 0 / calc(var(--k) * 46px) 50%,
    radial-gradient(circle at 72% 78%, rgba(255, 255, 255, 0.9) 0 calc(var(--k) * 1.7px), rgba(255, 255, 255, 0) calc(var(--k) * 2.3px)) calc(var(--k) * 11px) 0 / calc(var(--k) * 29px) 25%,
    radial-gradient(circle at 50% 14%, rgba(236, 248, 255, 0.85) 0 calc(var(--k) * 1.1px), rgba(255, 255, 255, 0) calc(var(--k) * 1.6px)) calc(var(--k) * 5px) 0 / calc(var(--k) * 17px) 16.667%;
  animation: u-fizz 2.6s linear infinite; }
@keyframes u-fizz { from { transform: translateY(0); } to { transform: translateY(-50%); } }
/* Huysuz Şövalye: royal blue with a golden shine, and the red-and-white spiral stripes of his jousting lance moving slowly
   along the fill (the same counter-scaled layer as the kefir bubbles, so the stripes keep their slant at any health) */
.u-boss[data-b="sovalye"] { --bf1: #ffd23f; --bf2: #6d8dff; --bf3: #3a4fd6; --bn1: #fffbe6; --bn2: #ffd35a; --bno: #14286a; --bi1: #fff0b0; --bi2: #3452c4; }
.u-boss.on[data-b="sovalye"] .u-bossfizz { display: block; }
.u-boss[data-b="sovalye"] .u-bossfizz i { height: 100%; right: auto; width: calc(100% + var(--k) * 38px);
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0) 0 calc(var(--k) * 9px), rgba(255, 255, 255, 0.34) calc(var(--k) * 9px) calc(var(--k) * 15px),
    rgba(255, 90, 110, 0.3) calc(var(--k) * 15px) calc(var(--k) * 18px), rgba(255, 255, 255, 0) calc(var(--k) * 18px) calc(var(--k) * 34px));
  animation: u-lance 3.2s linear infinite; }
@keyframes u-lance { from { transform: translateX(calc(var(--k) * -37.52px)); } to { transform: translateX(0); } }   /* 34 px / sin 115°: one stripe period */
/* Pasta yoruldu (src/05c_boss_davranis.js #ui.boss-team): Takım düğmesi kocaman parlar; ortada büyük T işareti + ok (.u-takim-isaret) */
#ui.boss-team .u-team { transform: scale(1.45); z-index: 40; box-shadow: 0 0 0 calc(var(--k) * 5px) #fff3a0, 0 0 calc(var(--k) * 40px) calc(var(--k) * 14px) #ff7fb0; }
.u-takim-isaret { position: fixed; z-index: 60; display: flex; align-items: center; gap: 14px; padding: 14px 26px; border-radius: 40px; pointer-events: auto; cursor: pointer;
  font: 900 44px/1 system-ui, sans-serif; color: #fff; background: linear-gradient(180deg, #ff7fb0, #e8407e); border: 5px solid #fff3a0;
  box-shadow: 0 10px 30px rgba(120, 0, 60, 0.45); animation: uTakimZipla 0.7s ease-in-out infinite alternate; transform-origin: 50% 50%; }
.u-takim-isaret b { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff3a0; color: #c02a64; font-size: 46px; }
.u-takim-ok { position: fixed; z-index: 60; pointer-events: none; font: 900 72px/1 system-ui, sans-serif; color: #fff3a0; text-shadow: 0 4px 0 #c02a64, 0 0 18px #ff7fb0; }
@keyframes uTakimZipla { from { transform: scale(1); } to { transform: scale(1.1); } }
/* Dev Ev bossları (src/05b_bosslar.js): kendi renkleri + dolguda kıpır kıpır desen (süpürge: toz kabarcıkları, tencere: puantiye,
   dondurma: renkli şeker, pasta: krema şeritleri) */
.u-boss[data-b="uykucuSupurge"] { --bf1: #d8e0ff; --bf2: #8ea4ec; --bf3: #5d6fd0; --bn1: #f2f4ff; --bn2: #b9c7ff; --bno: #1c2468; --bi1: #e4e9ff; --bi2: #6a7ed8; }
.u-boss[data-b="dudukluTencere"] { --bf1: #ffd0c4; --bf2: #ff7a66; --bf3: #e8404a; --bn1: #fff4ef; --bn2: #ffb3a0; --bno: #5a1018; --bi1: #ffe3dc; --bi2: #d8434a; }
.u-boss[data-b="dondurmaKrali"] { --bf1: #c8fbe6; --bf2: #8eeac0; --bf3: #ff9fc6; --bn1: #f2fffa; --bn2: #ffc6dc; --bno: #124a3a; --bi1: #e4fff4; --bi2: #ff8fb8; }
.u-boss[data-b="kocaPasta"] { --bf1: #ffe0ec; --bf2: #f08fb3; --bf3: #c8577e; --bn1: #fff4f8; --bn2: #ffbcd4; --bno: #5a1430; --bi1: #fff0f5; --bi2: #d0638e; }
.u-boss.on[data-b="uykucuSupurge"] .u-bossfizz, .u-boss.on[data-b="dudukluTencere"] .u-bossfizz, .u-boss.on[data-b="dondurmaKrali"] .u-bossfizz,
.u-boss.on[data-b="kocaPasta"] .u-bossfizz { display: block; }
.u-boss[data-b="dudukluTencere"] .u-bossfizz i { animation-duration: 5s;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 calc(var(--k) * 3px), rgba(255, 255, 255, 0) calc(var(--k) * 3.6px)) 0 0 / calc(var(--k) * 22px) 25%; }
.u-boss[data-b="dondurmaKrali"] .u-bossfizz i { animation-duration: 6s;
  background: linear-gradient(60deg, rgba(255, 255, 255, 0) 45%, rgba(255, 225, 74, 0.9) 45% 55%, rgba(255, 255, 255, 0) 55%) 0 0 / calc(var(--k) * 19px) 25%,
    linear-gradient(-50deg, rgba(255, 255, 255, 0) 45%, rgba(95, 211, 255, 0.9) 45% 55%, rgba(255, 255, 255, 0) 55%) calc(var(--k) * 9px) 0 / calc(var(--k) * 23px) 16.667%; }
.u-boss[data-b="kocaPasta"] .u-bossfizz i { height: 100%; right: auto; width: calc(100% + var(--k) * 38px); animation: u-lance 4s linear infinite;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0) 0 calc(var(--k) * 9px), rgba(255, 255, 255, 0.5) calc(var(--k) * 9px) calc(var(--k) * 16px),
    rgba(255, 79, 110, 0.25) calc(var(--k) * 16px) calc(var(--k) * 19px), rgba(255, 255, 255, 0) calc(var(--k) * 19px) calc(var(--k) * 34px)); }
.u-dimg.b-uykucuSupurge { background: radial-gradient(circle at 50% 36%, #f6f7ff, #d8e0ff 55%, #8ea4ec); }
.u-dimg.b-dudukluTencere { background: radial-gradient(circle at 50% 36%, #fff8f4, #ffd8cc 55%, #ff8a78); }
.u-dimg.b-dondurmaKrali { background: radial-gradient(circle at 50% 36%, #f6fffb, #d4f8e8 52%, #ff9fc6); }
.u-dimg.b-kocaPasta { background: radial-gradient(circle at 50% 36%, #fff8fb, #ffd6e6 55%, #e07aa2); }
.u-boss[data-b] .u-bossico { background: radial-gradient(circle at 50% 35%, var(--bi1, #ffe08a), var(--bi2, #e08a1e)) padding-box, var(--gold) border-box; }
.u-subico.drg { box-shadow: 0 0 0 calc(var(--k) * 2px) #ffd23f, 0 0 calc(var(--k) * 10px) rgba(255, 120, 200, 0.6); }
.u-chip .u-dimg { display: inline-block; width: 1.5em; height: 1.5em; margin: -0.2em 0.1em -0.2em -0.35em; vertical-align: middle;
  box-shadow: 0 0 0 calc(var(--k) * 2px) #ffd23f; }
.u-bossbar { position: relative; flex: 1; height: calc(var(--k) * 30px); border-radius: 99px; overflow: hidden;
  border: calc(var(--k) * 4px) solid transparent; background: linear-gradient(180deg, #0b1a30, #172d4f) padding-box, var(--gold) border-box;
  box-shadow: 0 0 0 calc(var(--k) * 2px) rgba(60, 25, 5, 0.6), 0 calc(var(--k) * 6px) calc(var(--k) * 12px) rgba(10, 0, 30, 0.5); }
.u-bosstrail, .u-bossfill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: 0 50%; border-radius: 99px; }
.u-bosstrail { background: linear-gradient(180deg, #fff6d6, #ffcf7a); }
.u-bossfill { background: linear-gradient(90deg, var(--bf1, #ffe066), var(--bf2, #ffab3c) 55%, var(--bf3, #f0703a)); overflow: hidden; }
.u-bossfill::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 45%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.05)); }
/* Round 6 bonus pips (09_ui.js bonusPips): little gold stars — the dragon's friendship hearts pink — just right of the boss's
   name, on the name's own line (the boss bar keeps its height); empty ones are soft outlines, a filled one pops in */
.u-bpips { position: absolute; top: 0; left: 50%; height: calc(var(--k) * 34px); display: flex; align-items: center; gap: calc(var(--k) * 3px);
  pointer-events: none; opacity: 0; visibility: hidden; transform: translateX(calc(var(--nw, 0px) / 2 + var(--k) * 6px - var(--sh, 0px))) scale(calc(var(--ps, 1) * 0.5)); transform-origin: 0 50%;
  transition: opacity 0.3s, transform 0.4s cubic-bezier(.2, 1.5, .4, 1), visibility 0s linear 0.4s; }
.u-bpips.on { opacity: 1; visibility: visible; transform: translateX(calc(var(--nw, 0px) / 2 + var(--k) * 6px - var(--sh, 0px))) scale(var(--ps, 1)); transition: opacity 0.3s, transform 0.4s cubic-bezier(.2, 1.5, .4, 1); }
.u-bossname { transition: transform 0.3s ease; }   /* (slides left a little while long name + pips need the room, see pipsPlace) */
.u-bpip { display: block; flex: none; width: calc(var(--k) * 31px); height: calc(var(--k) * 31px); }
.u-bpip svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 calc(var(--k) * 2px) 0 rgba(20, 5, 40, 0.5)); }
.u-bpip path { fill: rgba(42, 16, 72, 0.6); stroke: rgba(255, 236, 170, 0.95); stroke-width: 1.8; stroke-linejoin: round; }
.u-bpip .sh { fill: #fff; opacity: 0; }
.u-bpip.f path { fill: #ffd23f; stroke: #7a3e00; }
.u-bpip.f .sh { opacity: 0.75; }
.u-bpip.f svg { filter: drop-shadow(0 0 calc(var(--k) * 5px) rgba(255, 226, 110, 0.9)) drop-shadow(0 calc(var(--k) * 2px) 0 rgba(60, 25, 5, 0.55)); }
.u-bpips[data-k="heart"] .u-bpip path { stroke: rgba(255, 205, 230, 0.95); }
.u-bpips[data-k="heart"] .u-bpip.f path { fill: #ff6fb8; stroke: #8a1450; }
.u-bpips[data-k="heart"] .u-bpip.f svg { filter: drop-shadow(0 0 calc(var(--k) * 5px) rgba(255, 140, 200, 0.9)) drop-shadow(0 calc(var(--k) * 2px) 0 rgba(70, 5, 35, 0.55)); }
.u-bpips.on.done .u-bpip { animation: u-pipjoy 0.8s ease-in-out infinite; }
.u-bpips.on.done .u-bpip:nth-child(2) { animation-delay: 0.12s; }
.u-bpips.on.done .u-bpip:nth-child(3) { animation-delay: 0.24s; }
.u-bpips.on.done .u-bpip:nth-child(4) { animation-delay: 0.36s; }
.u-bpips.on.done .u-bpip:nth-child(5) { animation-delay: 0.48s; }
.u-bpips.on.done .u-bpip:nth-child(6) { animation-delay: 0.6s; }
@keyframes u-pipjoy { 0%, 100% { transform: translateY(0) scale(1) rotate(0deg); } 40% { transform: translateY(calc(var(--k) * -7px)) scale(1.18) rotate(-10deg); } 70% { transform: translateY(0) scale(0.95) rotate(6deg); } }

/* subtitles: centred in the gap between the orb and the skill arc (JS adds .subhi when that gap is too narrow) */
.u-sub { position: absolute; z-index: 25; pointer-events: none; left: calc(var(--padL) + var(--k) * 300px); right: calc(var(--padR) + var(--k) * 425px);   /* (425: Takım düğmesinin solunda biter) */ margin: 0 auto; width: -webkit-fit-content; width: fit-content;
  bottom: calc(var(--padB) + var(--k) * 8px); transform: translateY(20px); opacity: 0; transition: opacity 0.25s, transform 0.3s cubic-bezier(.2, 1.4, .4, 1);
  display: flex; align-items: center; gap: calc(var(--k) * 12px); padding: calc(var(--k) * 12px) calc(var(--k) * 20px) calc(var(--k) * 12px) calc(var(--k) * 12px);
  border-radius: calc(var(--k) * 26px); background: linear-gradient(180deg, rgba(24, 56, 112, 0.88), rgba(12, 30, 66, 0.9));
  border: calc(var(--k) * 3px) solid rgba(255, 216, 110, 0.75); box-shadow: 0 calc(var(--k) * 8px) calc(var(--k) * 20px) rgba(0, 10, 35, 0.45); }
.u-sub.on { opacity: 1; transform: translateY(0); }
#ui.submid .u-sub { left: calc(var(--padL) + var(--k) * 206px); bottom: calc(var(--padB) + var(--k) * 112px); }   /* narrow landscape: right of the orb, above the potion */
#ui.menu-on .u-sub { z-index: 15; }
#ui:not(.hud-on) .u-sub, #ui:not(.hud-on).submid .u-sub { left: 8vw; right: 8vw; bottom: calc(var(--padB) + var(--k) * 18px); }   /* title / victory: no controls */
.u-subico { flex: none; width: calc(var(--k) * 46px); height: calc(var(--k) * 46px); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: calc(var(--k) * 28px); background: radial-gradient(circle at 50% 35%, #fff6d0, #ffc94a 60%, #e39512); box-shadow: 0 0 0 calc(var(--k) * 2px) #7a4205; }
/* Kefir Vadisi lines (🥛 🥣 🍯 🫧 🧀): a milky sky-blue disc, so the white glass of kefir reads */
.u-subico.milk { background: radial-gradient(circle at 50% 35%, #ffffff, #c4e8ff 58%, #6fb2ea); box-shadow: 0 0 0 calc(var(--k) * 2px) #23518a; }
/* Surlu Şehir lines (🏰 🛡️ 🥯 🧹 🥁): a sunny sky-blue disc with a gold ring, so the brown simit and broom read */
.u-subico.town { background: radial-gradient(circle at 50% 35%, #ffffff, #bfe2ff 55%, #5d95e8); box-shadow: 0 0 0 calc(var(--k) * 2px) #ffd23f, 0 0 0 calc(var(--k) * 3.5px) #1c2f78; }
/* Round 6 bonus lines: a small badge (👑 🫧 🥕 💕…) on the boss portrait's lower right */
.u-subico { position: relative; }
.u-sbadge { position: absolute; right: calc(var(--k) * -7px); bottom: calc(var(--k) * -5px); width: calc(var(--k) * 24px); height: calc(var(--k) * 24px); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: calc(var(--k) * 15px); line-height: 1;
  background: radial-gradient(circle at 50% 35%, #ffffff, #fff1c4 70%, #ffd66a); box-shadow: 0 0 0 calc(var(--k) * 2px) #ffd23f, 0 calc(var(--k) * 2px) calc(var(--k) * 4px) rgba(0, 12, 40, 0.45); }
.u-subtxt { font-weight: 800; font-size: calc(var(--k) * 22px); line-height: 1.28; color: #fff; text-shadow: 0 2px 0 rgba(10, 0, 30, 0.5); }

/* centre banners */
.u-banner { position: absolute; left: 50%; top: 22%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; text-align: center;
  pointer-events: none; visibility: hidden; }
.u-banner.zone, .u-banner.alan { display: none !important; }   /* Feza 4.5 yaşında, okuyamıyor; ekranı kaplayan dev şeritler kaldırıldı */
.u-banner.on { visibility: visible; animation: u-bin 0.55s cubic-bezier(.2, 1.6, .4, 1) both; }
.u-banner.out { visibility: visible; animation: u-bout 0.45s ease-in both; }
@keyframes u-bin { 0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes u-bout { to { transform: translate(-50%, -80%) scale(0.9); opacity: 0; } }
.u-rays { position: absolute; left: 50%; top: 42%; width: calc(var(--k) * 460px); height: calc(var(--k) * 460px); margin: calc(var(--k) * -230px) 0 0 calc(var(--k) * -230px);
  border-radius: 50%; background: repeating-conic-gradient(rgba(255, 236, 150, 0.5) 0deg 9deg, rgba(255, 236, 150, 0) 9deg 22.5deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%); mask: radial-gradient(circle, #000 18%, transparent 68%);
  animation: u-spin 14s linear infinite; opacity: 0.9; }
@keyframes u-spin { to { transform: rotate(360deg); } }
.u-bico { position: relative; font-size: calc(var(--k) * 72px); line-height: 1; filter: drop-shadow(0 calc(var(--k) * 6px) calc(var(--k) * 6px) rgba(40, 10, 60, 0.45)); }
.u-bico.med { width: calc(var(--k) * 104px); height: calc(var(--k) * 104px); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: calc(var(--k) * 56px); border: calc(var(--k) * 6px) solid transparent;
  background: radial-gradient(circle at 50% 32%, #fff, var(--c, #ffd23f) 45%, var(--cd, #6a4a20)) padding-box, var(--gold) border-box; }
.u-btitle { position: relative; font-weight: 900; font-size: calc(var(--k) * 62px); line-height: 1.05; margin-top: calc(var(--k) * 4px); }
.u-bsub { position: relative; font-weight: 900; font-size: calc(var(--k) * 32px); margin-top: calc(var(--k) * 2px); --t1: #ffffff; --t2: #dcecff; }
/* --zs (09 nextBanner): < 1 when a long zone name would be wider than a narrow portrait screen — title and ribbon shrink to fit */
.u-banner.zone .u-btitle { font-size: calc(var(--k) * 60px * var(--zs, 1)); }
.u-zrib { position: relative; padding: calc(var(--k) * 10px) calc(var(--k) * 56px * var(--zs, 1)) calc(var(--k) * 14px); margin-top: calc(var(--k) * 6px);
  background: linear-gradient(180deg, var(--zr1, #4a90e8), var(--zr2, #2058b8)); border-top: calc(var(--k) * 4px) solid #ffd766; border-bottom: calc(var(--k) * 4px) solid #b5720f;
  box-shadow: 0 calc(var(--k) * 10px) calc(var(--k) * 22px) rgba(0, 12, 40, 0.45);
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%); }
.u-zsm { font-weight: 900; font-size: calc(var(--k) * 24px); letter-spacing: 0.12em; color: #ffe38a; text-shadow: 0 2px 0 rgba(10, 24, 60, 0.65); }
/* zone journey gems under the ribbon: done (gold) · here (big, glowing amber) · ahead (hollow) */
.u-zpips { position: relative; display: flex; align-items: center; gap: calc(var(--k) * 22px); margin-top: calc(var(--k) * 14px); }
.u-zpips i { width: calc(var(--k) * 22px); height: calc(var(--k) * 22px); transform: rotate(45deg); border-radius: calc(var(--k) * 5px);
  background: rgba(255, 246, 214, 0.28); box-shadow: 0 0 0 calc(var(--k) * 3px) rgba(255, 227, 138, 0.95), 0 0 0 calc(var(--k) * 5px) rgba(90, 42, 0, 0.8),
    0 calc(var(--k) * 4px) calc(var(--k) * 8px) rgba(0, 12, 40, 0.45); }
.u-zpips i.d { background: linear-gradient(135deg, #fff6c0, #ffd23f 50%, #d98f10); }
.u-zpips i.c { width: calc(var(--k) * 32px); height: calc(var(--k) * 32px); background: linear-gradient(135deg, #fff, #ffe38a 45%, #f08a24);
  box-shadow: 0 0 0 calc(var(--k) * 3.5px) #fff3b0, 0 0 0 calc(var(--k) * 5.5px) rgba(90, 42, 0, 0.8), 0 0 calc(var(--k) * 18px) #ffb83c;
  animation: u-gem 1.1s ease-in-out infinite alternate; }
@keyframes u-gem { from { transform: rotate(45deg) scale(0.9); } to { transform: rotate(45deg) scale(1.12); } }
/* Kefir Vadisi zone card: a creamy ribbon with strawberry-pink letters and milk dripping from its lower edge */
.u-zwrap { position: relative; display: flex; flex-direction: column; align-items: center;
  filter: drop-shadow(0 calc(var(--k) * 4px) 0 rgba(120, 66, 30, 0.5)) drop-shadow(0 calc(var(--k) * 9px) calc(var(--k) * 12px) rgba(40, 10, 40, 0.35)); }
.u-banner.t-dairy .u-zrib { background: linear-gradient(180deg, #ffffff, #fff9ee 55%, #fff0d8); border-bottom: 0; padding-bottom: calc(var(--k) * 16px); }
.u-banner.t-dairy .u-btitle .u-ol { --t1: #ffd6e8; --t2: #ff5f9e; --ol: #5a1030; }
/* the valley is bright and creamy: the small "2. Bölge" line sits on a soft blueberry-navy pill so it reads */
.u-banner.t-dairy .u-zsm { padding: calc(var(--k) * 3px) calc(var(--k) * 16px); border-radius: 99px;
  background: linear-gradient(180deg, rgba(38, 72, 138, 0.82), rgba(22, 44, 96, 0.85)); box-shadow: 0 calc(var(--k) * 3px) calc(var(--k) * 8px) rgba(12, 24, 60, 0.35); }
.u-zmk { display: inline-block; font-size: 1.3em; line-height: 1; vertical-align: -0.12em; letter-spacing: 0;
  filter: drop-shadow(0 calc(var(--k) * 2px) 0 rgba(40, 10, 60, 0.6)); }
.u-banner.t-dairy .u-zpips { margin-top: calc(var(--k) * 26px); }   /* (below the drips) */
.u-zdrip { position: absolute; left: 4%; top: 100%; width: 92%; height: calc(var(--k) * 30px); margin-top: -1px; fill: #fff0d8; overflow: visible; }
/* Surlu Şehir zone card: a piece of the sandstone city wall (two rows of bricks, battlements on top) with royal-blue letters
   and festive bunting hanging from its lower edge; one soft shadow for all of it */
.u-banner.t-town .u-zrib { clip-path: none; margin-top: calc(var(--k) * 24px); padding: calc(var(--k) * 10px) calc(var(--k) * 44px * var(--zs, 1)) calc(var(--k) * 12px);
  border-top: 0; border-bottom: calc(var(--k) * 4px) solid #b8803e; border-radius: calc(var(--k) * 4px); box-shadow: none;
  background:
    linear-gradient(90deg, rgba(150, 96, 40, 0.34) 0 calc(var(--k) * 2px), transparent calc(var(--k) * 2px)) 0 0 / calc(var(--k) * 58px) 50% repeat-x,
    linear-gradient(90deg, rgba(150, 96, 40, 0.34) 0 calc(var(--k) * 2px), transparent calc(var(--k) * 2px)) calc(var(--k) * 29px) 100% / calc(var(--k) * 58px) 50% repeat-x,
    linear-gradient(180deg, transparent calc(50% - 1px), rgba(150, 96, 40, 0.34) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(180deg, #fde8b8, #f3cb86 55%, #e2ab66);
  filter: drop-shadow(0 calc(var(--k) * 4px) 0 rgba(110, 60, 20, 0.45)) drop-shadow(0 calc(var(--k) * 9px) calc(var(--k) * 12px) rgba(30, 10, 50, 0.35)); }
.u-banner.t-town .u-btitle .u-ol { --t1: #dff0ff; --t2: #3d6ee4; --ol: #14286a; }
.u-banner.t-town .u-zsm { padding: calc(var(--k) * 3px) calc(var(--k) * 16px); border-radius: 99px;
  background: linear-gradient(180deg, rgba(46, 78, 170, 0.82), rgba(24, 44, 116, 0.82)); box-shadow: 0 calc(var(--k) * 3px) calc(var(--k) * 8px) rgba(20, 20, 60, 0.3); }
.u-banner.t-town .u-zpips { margin-top: calc(var(--k) * 32px); }   /* (below the bunting) */
.u-zwall { position: absolute; left: 0; bottom: 100%; width: 100%; height: calc(var(--k) * 20px); margin-bottom: -1px; fill: #fde8b8; overflow: visible; }
.u-zflags { position: absolute; left: 3%; right: 3%; top: 100%; display: flex; justify-content: space-between; margin-top: calc(var(--k) * 2px); pointer-events: none; }
.u-zflags i { width: calc(var(--k) * 20px); height: calc(var(--k) * 22px); clip-path: polygon(0 0, 100% 0, 50% 100%); background: #ff5f7a;
  transform-origin: 50% 0; animation: u-flag 1.6s ease-in-out infinite alternate; animation-play-state: paused; }
.u-banner.on .u-zflags i, .u-banner.out .u-zflags i { animation-play-state: running; }   /* (they flutter only while the card shows) */
.u-zflags i:nth-child(5n + 2) { background: #ffd23f; animation-delay: -0.4s; }
.u-zflags i:nth-child(5n + 3) { background: #5ab4ff; animation-delay: -0.8s; }
.u-zflags i:nth-child(5n + 4) { background: #6fdc6a; animation-delay: -1.2s; }
.u-zflags i:nth-child(5n + 5) { background: #b07aff; animation-delay: -0.6s; }
@keyframes u-flag { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }

/* toast */
/* kısa bildirim: üstteki yuvarlak düğme sırasının ALTINDA (uzun yazı çanta/mola düğmelerini örtmesin), seviye yazısının üstünde */
.u-toast { position: absolute; left: 50%; top: calc(var(--padT) + var(--k) * 104px); transform: translate(-50%, -20px); opacity: 0; z-index: 16;
  width: -webkit-max-content; width: max-content; max-width: calc(100vw - var(--padL) - var(--padR) - var(--k) * 40px); text-align: center;
  padding: calc(var(--k) * 10px) calc(var(--k) * 24px); border-radius: 99px; font-weight: 900; font-size: calc(var(--k) * 26px); white-space: normal; line-height: 1.2;
  background: linear-gradient(180deg, #ff9a52, #f0602e); border: calc(var(--k) * 3px) solid #ffe38a; box-shadow: 0 calc(var(--k) * 6px) calc(var(--k) * 14px) rgba(0, 12, 40, 0.45);
  text-shadow: 0 2px 0 rgba(110, 30, 0, 0.5); transition: opacity 0.25s, transform 0.35s cubic-bezier(.2, 1.5, .4, 1); }
.u-toast.on { opacity: 1; transform: translate(-50%, 0); }
.u-boss.on ~ .u-toast { top: calc(var(--padT) + var(--k) * 104px); }
.u-toast.info { background: linear-gradient(180deg, #8fd0ff, #3a7fe0); text-shadow: 0 2px 0 rgba(0, 30, 90, 0.5); }

/* item card */
.u-card { position: absolute; left: var(--padL); top: calc(var(--padT) + var(--k) * 140px); display: flex; align-items: center; gap: calc(var(--k) * 14px);
  padding: calc(var(--k) * 12px) calc(var(--k) * 22px) calc(var(--k) * 12px) calc(var(--k) * 12px); border-radius: calc(var(--k) * 30px);
  border: calc(var(--k) * 4px) solid transparent; background: linear-gradient(180deg, #2a528e, #163460) padding-box, var(--gold) border-box;
  box-shadow: 0 calc(var(--k) * 10px) calc(var(--k) * 24px) rgba(10, 0, 30, 0.5); transform: translateX(-130%); transition: transform 0.45s cubic-bezier(.2, 1.3, .4, 1);
  pointer-events: none; max-width: min(64vw, calc(var(--k) * 470px)); }   /* never blocks the steering finger */
.u-card.on { transform: translateX(0); }
.u-cthumb { position: relative; width: calc(var(--k) * 92px); height: calc(var(--k) * 92px); border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, #ffffff, var(--rl, #fff) 35%, var(--rd, #555) 100%);
  box-shadow: 0 0 0 calc(var(--k) * 4px) var(--rc, #fff), 0 0 calc(var(--k) * 22px) var(--rc, #fff); }
.u-cthumb img { width: 92%; height: 92%; object-fit: contain; }
.u-cthumb .u-temo { font-size: calc(var(--k) * 52px); }
.u-card.leg .u-cthumb::before { content: ""; position: absolute; inset: calc(var(--k) * -26px); border-radius: 50%; z-index: -1;
  background: repeating-conic-gradient(rgba(255, 190, 80, 0.8) 0 10deg, rgba(255, 190, 80, 0) 10deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); animation: u-spin 6s linear infinite; }
.u-ctext { display: flex; flex-direction: column; gap: calc(var(--k) * 3px); min-width: 0; }
.u-cnew { font-weight: 900; font-size: calc(var(--k) * 17px); letter-spacing: 0.08em; color: var(--rc, #fff); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45); }
.u-cname { font-weight: 900; font-size: calc(var(--k) * 30px); line-height: 1.1; --t1: #fff; --t2: var(--rc, #fff); }
.u-cname .u-ol { white-space: normal; }
.u-cname.long { font-size: calc(var(--k) * 25px); }   /* "Gökkuşağı Işın Kılıcı ✦" fits on one line */
.u-stars { font-size: calc(var(--k) * 24px); letter-spacing: 0.04em; color: #ffd23f; text-shadow: 0 2px 0 #7a4205, 0 0 6px rgba(255, 210, 63, 0.6); line-height: 1; }
.u-stars .e { color: rgba(255, 255, 255, 0.22); text-shadow: none; }
.u-cstat { display: inline-flex; align-self: flex-start; align-items: center; gap: 0.3em; margin-top: calc(var(--k) * 2px); padding: calc(var(--k) * 4px) calc(var(--k) * 12px);
  border-radius: 99px; font-weight: 900; font-size: calc(var(--k) * 18px); background: rgba(255, 255, 255, 0.14); }
.u-cstat.eq { background: linear-gradient(180deg, #5fe07a, #25a84a); box-shadow: 0 2px 0 #13702c; }

/* first-run hint: finger tapping the ground (positioned from JS at the target point) */
.u-hint { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.u-hint.on { opacity: 1; }
.u-hring { position: absolute; left: calc(var(--k) * -34px); top: calc(var(--k) * -17px); width: calc(var(--k) * 68px); height: calc(var(--k) * 34px);
  border-radius: 50%; border: calc(var(--k) * 4px) solid rgba(160, 240, 255, 0.95); box-shadow: 0 0 calc(var(--k) * 12px) rgba(120, 220, 255, 0.9);
  animation: u-tapring 1.3s ease-out infinite; }
.u-hring.b { animation-delay: 0.2s; }
.u-hand { position: absolute; left: calc(var(--k) * -18px); top: calc(var(--k) * -4px); font-size: calc(var(--k) * 58px); line-height: 1;
  filter: drop-shadow(0 calc(var(--k) * 6px) calc(var(--k) * 6px) rgba(20, 10, 40, 0.5)); animation: u-tap 1.3s ease-in-out infinite; transform-origin: 30% 0; }
@keyframes u-tap { 0%, 100% { transform: translate(8%, 34%) rotate(-12deg); } 30% { transform: translate(0, 0) rotate(-12deg) scale(0.92); } 45% { transform: translate(0, 4%) rotate(-12deg) scale(0.92); } }
@keyframes u-tapring { 0%, 25% { transform: scale(0.2); opacity: 0; } 32% { opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* ── Full-screen layers ── */
.u-screen { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; pointer-events: auto; z-index: 20; touch-action: none; }
.u-screen.on { display: flex; animation: u-fadein 0.3s ease both; }
.u-screen.closing { display: flex; animation: u-fadeout 0.3s ease both; pointer-events: none; }
/* A fading screen must not catch taps: `#ui button { pointer-events: auto }` would otherwise keep its buttons live for 0.3 s
   (a quick tap after Devam Et flipped Müzik/Efektler, pressed Kaydet or ate the portal tap). Taps go to the game instead. */
#ui .u-screen.closing, #ui .u-screen.closing * { pointer-events: none !important; }
@keyframes u-fadein { from { opacity: 0; } }
@keyframes u-fadeout { to { opacity: 0; } }
.u-dim { background: radial-gradient(circle at 50% 45%, rgba(20, 50, 100, 0.55), rgba(6, 16, 40, 0.84)); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.u-panel { position: relative; display: flex; flex-direction: column; align-items: center; gap: calc(var(--k) * 18px);
  padding: calc(var(--k) * 30px) calc(var(--k) * 40px) calc(var(--k) * 36px); border-radius: calc(var(--k) * 42px);
  border: calc(var(--k) * 6px) solid transparent;
  background: radial-gradient(ellipse at 50% 0%, #4a90e0, #23559f 55%, #153466) padding-box, var(--gold) border-box;
  box-shadow: 0 0 0 calc(var(--k) * 2px) rgba(60, 25, 5, 0.6), 0 calc(var(--k) * 24px) calc(var(--k) * 50px) rgba(5, 0, 20, 0.6), inset 0 calc(var(--k) * 3px) 0 rgba(255, 255, 255, 0.15); }
.u-screen.on .u-panel { animation: u-panelin 0.45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes u-panelin { from { transform: scale(0.7); opacity: 0; } }
.u-ptitle { font-weight: 900; font-size: calc(var(--k) * 58px); line-height: 1; margin-bottom: calc(var(--k) * 4px); }
.u-close { position: absolute !important; right: calc(var(--k) * -20px); top: calc(var(--k) * -20px); width: calc(var(--k) * 76px); height: calc(var(--k) * 76px);
  z-index: 5; background: radial-gradient(circle at 50% 30%, #ff9aa6, #f2435c 55%, #b81a3a) padding-box, var(--gold) border-box !important; }
.u-close .u-svg { width: 0.95em; height: 0.95em; }
/* Restart confirmation keeps the four-row menu height; Evet requires a hold. */
.u-ask { display: none; flex-direction: column; align-items: center; justify-content: space-between; gap: calc(var(--k) * 12px);
  height: calc(var(--k) * (4 * 84px + 3 * 18px)); min-width: calc(var(--k) * 330px); }
.u-panel.asking > .u-main { display: none; }
.u-panel.asking > .u-ask { display: flex; }
.u-asktxt { font-weight: 900; font-size: calc(var(--k) * 32px); line-height: 1.15; text-align: center; }
.u-yesbox { display: flex; flex-direction: column; align-items: center; gap: calc(var(--k) * 4px); align-self: flex-end; margin-right: calc(var(--k) * -10px); }
.u-btn.u-small { min-height: calc(var(--k) * 60px); min-width: calc(var(--k) * 140px); font-size: calc(var(--k) * 25px); padding: 0 0.9em 0 0.75em; overflow: hidden; }
.u-yeshint { font-weight: 800; font-size: calc(var(--k) * 16px); color: #ffd9e0; opacity: 0.85; }
.u-main { display: flex; flex-direction: column; align-items: center; gap: calc(var(--k) * 18px); }
.u-btn.wide { min-width: calc(var(--k) * 330px); }

/* title */
.u-title { flex-direction: column; justify-content: space-between; align-items: center; padding: calc(var(--padT) + 3vh) var(--padR) calc(var(--padB) + 5vh) var(--padL); }
.u-tshade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(24, 8, 60, 0.62) 0%, rgba(24, 8, 60, 0.12) 30%, rgba(24, 8, 60, 0) 52%, rgba(24, 8, 60, 0.1) 70%, rgba(24, 8, 60, 0.6) 100%); }
.u-logo { position: relative; display: flex; flex-direction: column; align-items: center; animation: u-logoin 1s cubic-bezier(.2, 1.5, .4, 1) both; }
.u-logo::before { content: ""; position: absolute; left: -18%; right: -18%; top: -30%; bottom: -35%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 214, 110, 0.42), rgba(255, 150, 200, 0.16) 45%, rgba(255, 150, 200, 0) 70%); animation: u-glow 3.2s ease-in-out infinite; }
@keyframes u-glow { 0%, 100% { opacity: 0.75; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes u-logoin { from { transform: translateY(-40%) scale(0.6); opacity: 0; } }
.u-word { position: relative; display: flex; gap: calc(var(--k) * 2px); padding-bottom: 0.24em; font-weight: 900; font-size: calc(var(--k) * 150px); line-height: 1; }
.u-let { position: relative; display: inline-block; animation: u-bob 2.6s ease-in-out infinite; --r: 0deg; }
.u-let b, .u-let i { display: block; font-style: normal; padding: 0 0.04em; }
.u-let b { color: #143970; -webkit-text-stroke: 0.2em #143970; text-shadow: 0 0.07em 0 #143970, 0 0.12em 0 #0a2040, 0 0.2em 0.25em rgba(10, 0, 30, 0.55); }
.u-let i { position: absolute; left: 0; top: 0; color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0) 62%) no-repeat,
    linear-gradient(180deg, #fffbe2 10%, #ffe066 38%, #ffb21c 64%, #ff7a1a 92%);
  background-size: 300% 100%, 100% 100%; background-position: 150% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; animation: u-gleam 4.5s ease-in-out infinite; }
.u-let:nth-child(1) { --r: -6deg; animation-delay: 0s; } .u-let:nth-child(1) i { animation-delay: 0s; }
.u-let:nth-child(2) { --r: 3deg; animation-delay: -0.4s; } .u-let:nth-child(2) i { animation-delay: 0.12s; }
.u-let:nth-child(3) { --r: -3deg; animation-delay: -0.8s; } .u-let:nth-child(3) i { animation-delay: 0.24s; }
.u-let:nth-child(4) { --r: 6deg; animation-delay: -1.2s; } .u-let:nth-child(4) i { animation-delay: 0.36s; }
@keyframes u-bob { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-0.06em) rotate(var(--r)); } }
@keyframes u-gleam { 0%, 55% { background-position: 150% 0, 0 0; } 85%, 100% { background-position: -50% 0, 0 0; } }
.u-sidekick { position: absolute; z-index: 2; right: -0.07em; bottom: 0.16em; display: flex; align-items: baseline; gap: 0.1em;
  font-family: "Avenir Next Rounded", "Arial Rounded MT Bold", ui-rounded, var(--f); font-weight: 900; font-size: 0.34em; line-height: 1;
  letter-spacing: -0.025em; white-space: nowrap; transform: rotate(-7deg); transform-origin: 75% 50%; }
.u-sidekick .u-ol { --ol: #fff2ce; --t1: #ff837d; --t2: #df2245; filter: drop-shadow(0 0.055em 0 #741331); }
.u-sidekick .u-ol b { text-shadow: 0 0.05em 0 #fff2ce, 0 0.12em 0.15em rgba(70, 6, 29, 0.35); }
.u-sidekick-ve { font-size: 0.48em; letter-spacing: 0; }
.u-ribbon { position: relative; margin-top: calc(var(--k) * -8px); padding: calc(var(--k) * 10px) calc(var(--k) * 64px) calc(var(--k) * 16px);
  background: linear-gradient(180deg, #ff6f8e, #e8325a 60%, #c11f47); border-top: calc(var(--k) * 4px) solid #ffe38a; border-bottom: calc(var(--k) * 4px) solid #b5720f;
  clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%); filter: drop-shadow(0 8px 10px rgba(10, 0, 30, 0.5));
  font-weight: 900; font-size: calc(var(--k) * 42px); line-height: 1; }
.u-ribbon .u-ol { --ol: #7a0a2a; --t1: #fff; --t2: #ffe9f0; }
.u-spark { position: absolute; color: #fff6c0; font-size: calc(var(--k) * 30px); text-shadow: 0 0 12px #ffd23f; animation: u-twinkle 2.2s ease-in-out infinite; pointer-events: none; }
@keyframes u-twinkle { 0%, 100% { transform: scale(0.3) rotate(0deg); opacity: 0; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }
.u-tbtns { position: relative; display: flex; gap: calc(var(--k) * 24px); align-items: center; justify-content: center; flex-wrap: wrap; animation: u-inB 0.8s 0.25s cubic-bezier(.2, 1.4, .4, 1) both; }
.u-tbtns .u-btn { min-width: calc(var(--k) * 260px); }
/* The atlas label needs real inner space: #ui button otherwise resets the pill padding. */
#ui .u-title-map { max-width: 100%; min-width: 0; padding: .3em .85em; white-space: normal; line-height: 1.35; }
.u-title-map > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.u-tbtns .u-btn.main { min-height: calc(var(--k) * 100px); font-size: calc(var(--k) * 44px); min-width: calc(var(--k) * 300px); animation: u-breathe 1.8s ease-in-out infinite; }
@keyframes u-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.u-tbtns .u-btn.main.down { animation: none; }
.u-ttog { position: absolute; right: var(--padR); top: var(--padT); display: flex; gap: calc(var(--k) * 12px); }

/* bag / wardrobe */
.u-bag { flex-direction: row; align-items: stretch; gap: calc(var(--k) * 22px); width: min(94vw, calc(100vw - 184px), calc(var(--k) * 1060px));   /* 184 px: sol üstteki ev düğmesinin (16+66+10) iki yanı; pano köşesi düğmenin altında kalmasın */ max-height: 90vh;
  padding: calc(var(--k) * 26px); }
.u-bagl { display: flex; flex-direction: column; align-items: center; gap: calc(var(--k) * 12px); width: calc(var(--k) * 230px); flex: none; justify-content: center; }
.u-bagface { position: relative; width: calc(var(--k) * 200px); height: calc(var(--k) * 200px); border-radius: 50%; overflow: hidden;
  border: calc(var(--k) * 6px) solid transparent; background: radial-gradient(circle at 50% 38%, #c9ecff, #6fb6f0 60%, #4a7fd0) padding-box, var(--gold) border-box;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 calc(var(--k) * 10px) calc(var(--k) * 22px) rgba(0, 12, 40, 0.45); }
.u-bagface img { width: 100%; height: 100%; object-fit: cover; }
.u-bagface .u-femo { font-size: calc(var(--k) * 110px); }
.u-bagname { font-weight: 900; font-size: calc(var(--k) * 40px); }
.u-chips { display: flex; flex-wrap: wrap; gap: calc(var(--k) * 8px); justify-content: center; }
.u-chip .u-coin { width: calc(var(--k) * 24px); height: calc(var(--k) * 24px); }
.u-chip .u-coin::after { font-size: calc(var(--k) * 12px); }
.u-chip { display: inline-flex; align-items: center; gap: 0.25em; padding: calc(var(--k) * 6px) calc(var(--k) * 14px); border-radius: 99px; font-weight: 900;
  font-size: calc(var(--k) * 22px); background: rgba(10, 0, 30, 0.35); box-shadow: inset 0 0 0 calc(var(--k) * 2px) rgba(255, 220, 120, 0.4); }
/* (landscape: title + 3 slot panels fit 90vh; should a small window still overflow, the column scrolls instead of clipping) */
.u-bagr { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--k) * 8px); overflow-x: hidden; overflow-y: auto; touch-action: pan-y;
  scrollbar-width: none; }
.u-bagr::-webkit-scrollbar { display: none; }
.u-bagtitle { font-weight: 900; font-size: calc(var(--k) * 46px); line-height: 1; align-self: center; margin-bottom: calc(var(--k) * 2px); }
.u-slot { display: flex; flex-direction: column; gap: calc(var(--k) * 6px); padding: calc(var(--k) * 7px) calc(var(--k) * 12px); border-radius: calc(var(--k) * 26px);
  background: rgba(10, 0, 30, 0.28); box-shadow: inset 0 calc(var(--k) * 2px) calc(var(--k) * 8px) rgba(0, 0, 0, 0.25); }
.u-slothd { display: flex; align-items: baseline; gap: calc(var(--k) * 10px); font-weight: 900; font-size: calc(var(--k) * 26px); padding-left: calc(var(--k) * 6px); }
.u-slothd small { font-size: calc(var(--k) * 19px); color: #ffe38a; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the row scrolls sideways, which clips at its padding box: a padding as wide as the chosen tile's glow (negative margins
   keep the layout as before) so the glow fades out softly instead of ending in a hard rectangle */
.u-tiles { display: flex; gap: calc(var(--k) * 12px); overflow-x: auto; overflow-y: hidden; touch-action: pan-x; -webkit-overflow-scrolling: touch;
  padding: calc(var(--k) * 16px); margin: calc(var(--k) * -8px) calc(var(--k) * -10px) calc(var(--k) * -6px); scrollbar-width: none; }
.u-tiles::-webkit-scrollbar { display: none; }
.u-tile { --rc: #f4f4f4; --rl: #fbfbfb; --rd: #6d6a80; position: relative; flex: none; width: calc(var(--k) * 104px); height: calc(var(--k) * 118px); border-radius: calc(var(--k) * 24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--k) * 2px); touch-action: pan-x !important;
  border: calc(var(--k) * 4px) solid var(--rc) !important;
  background: radial-gradient(circle at 50% 38%, var(--rl, #fff), var(--rd, #3a2a60) 78%);
  box-shadow: 0 calc(var(--k) * 5px) 0 rgba(10, 0, 30, 0.5), inset 0 calc(var(--k) * 3px) 0 rgba(255, 255, 255, 0.35); transition: transform 0.1s; }
.u-tile.down { transform: scale(0.93); }
.u-tile img { width: calc(var(--k) * 76px); height: calc(var(--k) * 76px); object-fit: contain; pointer-events: none; }
.u-tile .u-temo { font-size: calc(var(--k) * 50px); line-height: calc(var(--k) * 76px); pointer-events: none; }
.u-tile .u-stars { font-size: calc(var(--k) * 15px); letter-spacing: 0; }
.u-tile .u-polish { position: absolute; left: calc(var(--k) * 5px); top: calc(var(--k) * 8px);
  display: inline-flex; align-items: center; padding: calc(var(--k) * 3px) calc(var(--k) * 5px); border-radius: calc(var(--k) * 9px);
  background: #35204ee8; color: #fff0b5; font-size: calc(var(--k) * 13px); font-weight: 900; line-height: 1.1; white-space: nowrap; pointer-events: none; }
.u-tile.fresh .u-polish { top: calc(var(--k) * 24px); }
.u-tile.on { border-color: #ffe066 !important; box-shadow: 0 0 0 calc(var(--k) * 3px) #fff3b0, 0 0 calc(var(--k) * 13px) calc(var(--k) * 1px) #ffd23f, 0 calc(var(--k) * 5px) 0 rgba(10, 0, 30, 0.5),
  inset 0 0 calc(var(--k) * 16px) rgba(255, 226, 110, 0.6); }
.u-tile .u-chk { display: none; position: absolute; right: calc(var(--k) * -8px); top: calc(var(--k) * -8px); width: calc(var(--k) * 34px); height: calc(var(--k) * 34px);
  border-radius: 50%; background: linear-gradient(180deg, #6ae57f, #22a347); box-shadow: 0 0 0 calc(var(--k) * 3px) #fff; align-items: center; justify-content: center;
  font-size: calc(var(--k) * 20px); font-weight: 900; }
.u-tile.on .u-chk { display: flex; }
.u-tile .u-new { display: none; position: absolute; left: calc(var(--k) * -8px); top: calc(var(--k) * -9px); padding: calc(var(--k) * 3px) calc(var(--k) * 8px);
  border-radius: 99px; font-weight: 900; font-size: calc(var(--k) * 13px); letter-spacing: 0.04em; background: linear-gradient(180deg, #ff6b9a, #e0306a);
  box-shadow: 0 0 0 calc(var(--k) * 2px) #fff; transform: rotate(-10deg); }
.u-tile.fresh .u-new { display: block; animation: u-breathe 1.2s ease-in-out infinite; }
.u-dot { display: none; position: absolute; right: calc(var(--k) * -3px); top: calc(var(--k) * -3px); width: calc(var(--k) * 20px); height: calc(var(--k) * 20px);
  border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff9ab8, #ff2e63 60%, #c4103f); box-shadow: 0 0 0 calc(var(--k) * 2.5px) #fff; }
.u-rbtn.has-new .u-dot { display: block; animation: u-breathe 0.9s ease-in-out infinite; }
.u-tile.none { --rc: #8f84ad; --rl: #c9c2dc; --rd: #3e3560; }
.u-tile.none .u-temo { opacity: 0.8; }

/* victory */
.u-win .u-panel { padding: calc(var(--k) * 34px) calc(var(--k) * 56px) calc(var(--k) * 40px); gap: calc(var(--k) * 14px); max-width: 100%; }
/* the panel always keeps a margin from the screen edges (portrait 820 wide included); chips wrap instead of widening it */
.u-win .u-wwrap { max-width: calc(100vw - var(--padL) - var(--padR) - var(--k) * 28px); }
.u-win .u-chips { max-width: 100%; }
/* bitiş panelinin düğmeleri: alt alta, hep aynı genişlikte (en uzun yazıya göre) */
.u-wbtns { display: grid; justify-items: stretch; gap: calc(var(--k) * 14px); max-width: 100%; }
.u-wbtns .u-btn.wide { max-width: 100%; }
/* every zone's boss, cheered up: a row of small happy badges that bob one after another */
.u-wboss { display: flex; justify-content: center; flex-wrap: wrap; gap: calc(var(--k) * 12px); margin: calc(var(--k) * 2px) 0; }
/* dik ekranda 7-8 portre tek sıraya sığmaz: 7+1 yerine dengeli 4+4 */
@media (max-aspect-ratio: 1/1) { .u-wboss:has(> :nth-child(7)) { display: grid; grid-template-columns: repeat(4, max-content); justify-content: center; } }
.u-wb { width: calc(var(--k) * 70px); height: calc(var(--k) * 70px); border-radius: 50%; flex: none;
  box-shadow: 0 0 0 calc(var(--k) * 3px) #ffd23f, 0 0 0 calc(var(--k) * 5px) #7a4205, 0 calc(var(--k) * 6px) calc(var(--k) * 12px) rgba(0, 12, 40, 0.45);
  animation: u-wbob 1.4s ease-in-out infinite; }
@keyframes u-wbob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(calc(var(--k) * -7px)) rotate(3deg); } }
.u-wcry { position: relative; font-size: calc(var(--k) * 110px); line-height: 1; animation: u-float 2.4s ease-in-out infinite; margin-top: calc(var(--k) * -86px);
  filter: drop-shadow(0 0 calc(var(--k) * 26px) rgba(255, 140, 220, 0.9)); }
@keyframes u-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(calc(var(--k) * -12px)) rotate(4deg); } }
.u-wwrap { position: relative; display: flex; align-items: center; justify-content: center; }
.u-win .u-rays { top: calc(var(--k) * 26px); width: calc(var(--k) * 660px); height: calc(var(--k) * 660px); margin: calc(var(--k) * -330px) 0 0 calc(var(--k) * -330px); }
.u-wsub { font-weight: 900; font-size: calc(var(--k) * 30px); text-align: center; color: #fff; text-shadow: 0 2px 0 rgba(20, 0, 40, 0.5); }
.u-conf { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.u-conf i { position: absolute; top: -6vh; width: calc(var(--k) * 12px); height: calc(var(--k) * 20px); border-radius: 3px; animation: u-fall linear infinite; will-change: transform; }
.u-conf i.c { border-radius: 50%; width: calc(var(--k) * 14px); height: calc(var(--k) * 14px); }
@keyframes u-fall { 0% { transform: translate3d(0, 0, 0) rotate(0deg); } 100% { transform: translate3d(var(--dx), 112vh, 0) rotate(var(--rot)); } }

/* fade / sleep overlay */
#uiFade { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: calc(var(--k) * 16px); background: radial-gradient(circle at 50% 50%, #17407a, #081a38 75%); font-family: var(--f); color: #fff; }
#uiFade.flash { background: radial-gradient(circle at 50% 50%, #ffffff 0%, #fff0fa 35%, #e2c6ff 75%, #b996ff 100%); }
#uiFade.sleep { z-index: 6; background: radial-gradient(circle at 50% 50%, rgba(60, 30, 120, 0.2), rgba(14, 6, 38, 0.8) 72%); }   /* under the HUD: subtitles stay readable */
.u-fstar { display: none; }
/* yükleme perdesi (bölüm kurulurken): yıldızlı gece, ortada küçük Büyük Fener — ışığı iki yana yanıp söner — altında zıplayan üç ışık */
#uiFade.load { background: radial-gradient(circle at 50% 44%, #2c5da6 0%, #163a78 42%, #0a1d40 100%); }
#uiFade.load::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; animation: u-ftw 2.6s ease-in-out infinite alternate;
  background-image: radial-gradient(circle at 12% 20%, #fff8dc 0 1.5px, transparent 2.5px), radial-gradient(circle at 27% 68%, #fff 0 1.2px, transparent 2px), radial-gradient(circle at 38% 14%, #ffe9a8 0 2px, transparent 3px),
    radial-gradient(circle at 70% 24%, #fff 0 1.4px, transparent 2.4px), radial-gradient(circle at 84% 58%, #fff8dc 0 2px, transparent 3px), radial-gradient(circle at 62% 82%, #fff 0 1.2px, transparent 2px),
    radial-gradient(circle at 90% 12%, #ffe9a8 0 1.6px, transparent 2.6px), radial-gradient(circle at 8% 86%, #fff 0 1.6px, transparent 2.6px), radial-gradient(circle at 48% 92%, #fff8dc 0 1.2px, transparent 2px); }
#uiFade.load::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; animation: u-ftw 3.4s ease-in-out infinite alternate-reverse;
  background-image: radial-gradient(circle at 20% 40%, #fff 0 1.3px, transparent 2.3px), radial-gradient(circle at 55% 30%, #ffe9a8 0 1.6px, transparent 2.6px), radial-gradient(circle at 78% 76%, #fff 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 33% 84%, #ffe9a8 0 1.2px, transparent 2.2px), radial-gradient(circle at 94% 36%, #fff 0 1.3px, transparent 2.3px); }
@keyframes u-ftw { from { opacity: .18; } to { opacity: .75; } }
#uiFade.load .u-fstar { display: flex; flex-direction: column; align-items: center; gap: calc(var(--k) * 14px); position: relative; z-index: 1; }
.u-fstar svg { width: calc(var(--k) * 186px); height: calc(var(--k) * 248px); overflow: visible; filter: drop-shadow(0 calc(var(--k) * 6px) calc(var(--k) * 10px) rgba(0, 8, 30, .45)); }
.u-fstar .u-fb { opacity: .06; animation: u-fbeam 2.4s ease-in-out infinite; }
.u-fstar .u-fb2 { animation-delay: -1.2s; }
@keyframes u-fbeam { 0%, 100% { opacity: .04; } 50% { opacity: .9; } }
.u-fstar .u-fglow { transform-box: fill-box; transform-origin: center; animation: u-fglow 1.2s ease-in-out infinite alternate; }
@keyframes u-fglow { from { transform: scale(.8); opacity: .7; } to { transform: scale(1.15); opacity: 1; } }
.u-fdots { display: flex; gap: calc(var(--k) * 14px); }
.u-fdots i { width: calc(var(--k) * 16px); height: calc(var(--k) * 16px); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fffbe6, #ffd86b 55%, #f2a93a);
  box-shadow: 0 0 calc(var(--k) * 12px) rgba(255, 214, 90, .85); animation: u-fdot 1.1s ease-in-out infinite; }
.u-fdots i:nth-child(2) { animation-delay: .16s; } .u-fdots i:nth-child(3) { animation-delay: .32s; }
@keyframes u-fdot { 0%, 60%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(calc(var(--k) * -16px)) scale(1.12); } }
/* perde kapalıyken (görünmez) süsler dursun: oyun sırasında boşuna çalışmasın */
#uiFade[style*="opacity: 0;"]::before, #uiFade[style*="opacity: 0;"]::after, #uiFade[style*="opacity: 0;"] .u-fstar * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .u-fstar *, #uiFade.load::before, #uiFade.load::after { animation: none !important; } }

/* ?ikon: no UI at all */
#ui.ikon, body.u-ikon #loading, body.u-ikon #fxText { display: none !important; }

/* ── Portrait iPad ── */
@media (orientation: portrait) {
  /* Keep a right-hand gutter for Bilbo's permanent button and its label. */
  #ui.hud-on .u-sub { left: calc(var(--padL) + var(--k) * 20px); right: calc(var(--padR) + var(--k) * 330px); bottom: calc(var(--padB) + var(--k) * 228px); }   /* (Pırıl: dikeyde alt bölgede, can küresinin üstünde, yetenek yayının solunda; dar) */
  /* portrait: boss bar right under the portrait/XP block, left of the minimap (keeps most of the tall screen for the dragon);
     toast under the minimap; item card drops below the boss bar while it is shown */
  .u-boss { top: calc(var(--padT) + var(--k) * 228px); left: calc(var(--padL) + var(--k) * 120px); right: calc(var(--padR) + var(--k) * 60px); max-width: calc(var(--k) * 620px); }   /* (Pırıl: portre/sayaç ve yıldız düğmesinin altında) */
  .u-toast { top: calc(var(--padT) + var(--k) * 264px); left: auto; right: var(--padR); transform: translate(0, -20px); max-width: 60vw; white-space: normal; text-align: center; }
  .u-toast.on { transform: translate(0, 0); }
  .u-boss.on ~ .u-toast { top: calc(var(--padT) + var(--k) * 330px); }
  .u-boss.on ~ .u-card { top: calc(var(--padT) + var(--k) * 330px); }
  .u-banner { top: 37%; }
  .u-banner.zone { top: 32%; }   /* (the zone card's gems stay above Feza's head, the intro subtitle below his feet) */
  .u-card { top: calc(var(--padT) + var(--k) * 150px); }
  .u-word { font-size: calc(var(--k) * 170px); }
  .u-title { padding-top: calc(var(--padT) + 9vh); padding-bottom: calc(var(--padB) + 8vh); }
  .u-tbtns { flex-direction: column; align-items: stretch; }   /* alt alta düğmeler aynı genişlikte */
  .u-bag { flex-direction: column; width: 94vw; max-height: 92vh; }
  .u-bagl { width: auto; flex-direction: row; justify-content: center; gap: calc(var(--k) * 20px); }
  .u-bagface { width: calc(var(--k) * 150px); height: calc(var(--k) * 150px); }
  .u-bagl .u-bagmeta { display: flex; flex-direction: column; align-items: flex-start; gap: calc(var(--k) * 8px); }
  .u-chips { justify-content: flex-start; }
}
.u-bagmeta { display: contents; }
@media (orientation: portrait) { .u-bagmeta { display: flex !important; } }
@media (max-height: 560px) {
  .u-word { font-size: calc(var(--k) * 110px); }
}

/* Character choice: three large, illustrated buttons; the whole card is a touch target. */
.u-choice { padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.u-choice .u-panel { width: min(1020px, 100%); max-height: 100%; overflow-y: auto; gap: 10px; padding: 24px; touch-action: pan-y; }
.u-choice .u-ptitle { font-size: clamp(26px, 4.2vw, 42px); text-align: center; }
.u-choicehint { color: #e9dafb; font-size: clamp(15px, 2.4vw, 20px); text-align: center; }
.u-herorow { display: flex; gap: 20px; width: 100%; margin: 8px 0; }
#ui .u-herocard { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: center; gap: 8px; padding: 8px 14px 18px; border: 3px solid #83dcff; border-radius: 26px; color: white; background: radial-gradient(ellipse at 50% 20%, #427dac, #24497b 65%, #283763); box-shadow: 0 6px 0 #172849, inset 0 1px 0 #ffffff70; transition: transform .15s, box-shadow .15s; touch-action: pan-y; }
#ui .u-herocard.wizard { border-color: #d7a4ff; background: radial-gradient(ellipse at 50% 20%, #9766bd, #60408b 65%, #42296f); box-shadow: 0 6px 0 #291747, inset 0 1px 0 #ffffff70; }
#ui .u-herocard.hybrid { border-color: #ffe39d; background: radial-gradient(ellipse at 50% 20%, #479f9e, #246577 65%, #254461); box-shadow: 0 6px 0 #183540, inset 0 1px 0 #ffffff70; }
#ui .u-herocard:focus-visible { outline: 4px solid #ffdf76; outline-offset: 4px; }
#ui .u-herocard.down { transform: translateY(4px) scale(.98); box-shadow: 0 2px 0 #172849; }
.u-heroart { width: min(100%, 230px); height: auto; flex-shrink: 0; }
.u-herocard strong { text-align: center; min-height: 2.4em; display: flex; align-items: center; font-size: clamp(19px, 2.6vw, 27px); text-shadow: 0 2px 0 #261e49; }
.u-herodesc { font-size: clamp(14px, 2vw, 18px); line-height: 1.4; color: #f0eaff; text-align: center; }
.u-herogo { display: flex; align-items: center; gap: 8px; margin-top: 5px; padding: 8px 14px; border-radius: 24px; color: #382358; background: linear-gradient(#fff0ab, #ffd063); font-weight: 900; font-size: clamp(13px, 2vw, 18px); }
.u-herogo .u-svg { width: 18px; height: 18px; }
#ui .u-choiceback { min-height: 42px; font-size: 20px; padding: 6px 25px; }
.u-wandico { display: block; font-size: calc(var(--k) * 68px); filter: drop-shadow(0 0 8px #cdacff); }
.u-offhandico { position: absolute; right: 9%; bottom: 14%; font-size: calc(var(--k) * 44px); filter: drop-shadow(0 0 5px #8effe2); }
@media (max-width: 520px) {
  .u-choice .u-panel { padding: 18px 12px; gap: 8px; }
  .u-herorow { gap: 7px; }
  .u-herocard strong { font-size: 16px; min-height: 3.6em; line-height: 1.2; }
  .u-herodesc { font-size: 12px; min-height: 4.2em; }
  .u-herogo { font-size: 12px; text-align: center; }
  .u-herogo .u-svg { display: none; }
  #ui .u-herocard { padding: 5px 5px 12px; border-radius: 20px; gap: 7px; }
  .u-herogo { padding: 7px 8px; gap: 4px; }
}
@media (max-height: 560px) and (min-width: 521px) {
  .u-choice .u-panel { width: min(850px, 100%); padding: 12px 20px; gap: 4px; }
  .u-heroart { width: 82px; }
  .u-herorow { margin: 2px 0; gap: 18px; }
  #ui .u-herocard { gap: 3px; padding: 2px 10px 8px; }
  .u-herodesc br { display: none; }
  .u-herocard strong { font-size: 18px; min-height: 1.3em; }
  .u-herodesc { font-size: 14px; min-height: 2.8em; }
  .u-choice .u-ptitle { font-size: 27px; }
}

/* The pause menu stays small; difficulty has its own view and applies without leaving the adventure. */
.u-pause-panel { box-sizing: border-box; max-width: 94%; max-height: 94%; overflow-y: auto; touch-action: pan-y; }
.u-pause-panel .u-main { width: 100%; align-items: stretch; }   /* mola düğmeleri aynı genişlikte; uzun yazılı olan sütunu taşırmasın */
.u-difficulty-tag { align-self: flex-start; padding: calc(var(--k) * 5px) calc(var(--k) * 12px); border-radius: 99px;
  border: calc(var(--k) * 2px) solid #ffe49b; background: #432477; color: #fff9e8;
  font-weight: 900; font-size: calc(var(--k) * 18px); line-height: 1; letter-spacing: 0.03em;
  box-shadow: 0 calc(var(--k) * 3px) calc(var(--k) * 9px) rgba(28, 0, 28, 0.45); }
.u-difficulty-tag.hard { background: #a31f48; }
/* Feza okuyamıyor: HUD'da zorluk yazısı yok. Normal'de rozet hiç görünmez; Zor'da yalnız yazısız bir alev simgesi (yazı JS'te kalır, ekran okuyucu için) */
#ui .u-difficulty-tag:not(.hard) { display: none; }
#ui .u-difficulty-tag.hard { font-size: 0; letter-spacing: 0; padding: calc(var(--k) * 4px) calc(var(--k) * 9px); }
#ui .u-difficulty-tag.hard::before { content: "🔥"; font-size: calc(var(--k) * 20px); line-height: 1; }
/* dokunmatik cihazda (iPad) klavye harf rozetleri (Q, 1, 2, K) hiç görünmez */
@media (hover: none) and (pointer: coarse) { #ui .u-key { display: none !important; } }
.u-difficulty { display: none; width: calc(var(--k) * 430px); max-width: 100%; flex-direction: column; align-items: center; gap: calc(var(--k) * 16px); }
.u-pause-panel.choosing-difficulty > .u-main { display: none; }
.u-pause-panel.choosing-difficulty > .u-difficulty { display: flex; }
.u-difficulty-hint { color: #fff5d6; font-size: calc(var(--k) * 23px); line-height: 1.35; text-align: center; }
.u-difficulty-choices { display: flex; flex-direction: column; gap: calc(var(--k) * 12px); width: 100%; }
#ui .u-difficulty-choice { box-sizing: border-box; position: relative; display: flex; flex-direction: column; align-items: flex-start;
  width: 100%; padding: calc(var(--k) * 16px) calc(var(--k) * 22px); gap: calc(var(--k) * 6px);
  border: calc(var(--k) * 3px) solid #ad91df; border-radius: calc(var(--k) * 22px); color: #f8f0ff; text-align: left;
  background: linear-gradient(135deg, #58369a, #321964); box-shadow: 0 calc(var(--k) * 4px) 0 #1e0e43; cursor: pointer; }
#ui .u-difficulty-choice[aria-pressed="true"] { border-color: #ffe17c; background: linear-gradient(135deg, #386747, #234739); }
#ui .u-difficulty-choice[data-difficulty="hard"][aria-pressed="true"] { background: linear-gradient(135deg, #a03d52, #66213e); }
.u-difficulty-choice strong { font-size: calc(var(--k) * 32px); font-weight: 900; }
.u-difficulty-choice span { font-size: calc(var(--k) * 21px); line-height: 1.3; }
.u-difficulty-choice small { position: absolute; right: calc(var(--k) * 20px); top: calc(var(--k) * 20px);
  font-size: calc(var(--k) * 19px); font-weight: 800; color: #ffe6a1; }
.u-difficulty-choice.down { transform: translateY(calc(var(--k) * 3px)); }
.u-difficulty-note { text-align: center; font-size: calc(var(--k) * 18px); line-height: 1.35; color: #e1cfff; }
.u-pause-panel .u-btn.wide { max-width: 100%; }
.u-pause-panel .u-btn.p.wide { font-size: calc(var(--k) * 32px); }
.u-asktxt small { display: block; margin-top: 1em; font-size: 0.6em; line-height: 1.45; font-weight: 600; }
@media (max-height: 450px) and (min-width: 700px) {
  .u-pause-panel { width: min(94%, 720px); padding: 10px 22px; gap: 7px; }
  .u-pause-panel:not(.asking):not(.choosing-difficulty) .u-main { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; justify-items: stretch; }
  .u-pause-panel .u-btn.wide { min-width: 0; width: 100%; }
  .u-pause-panel .u-difficulty { width: 100%; gap: 8px; }
  .u-difficulty-choices { flex-direction: row; }
  .u-difficulty-hint br { display: none; }
  .u-pause-panel .u-ask { height: auto; gap: 8px; }
  .u-pause-panel .u-yesbox { margin-right: 0; }
}

/* FPS meter ("." key or ?fps): top-left under the portrait, above every screen, never catches a touch */
.u-fps { position: fixed; left: calc(env(safe-area-inset-left) + 12px); top: calc(env(safe-area-inset-top) + 132px); z-index: 1000;
  pointer-events: none; padding: 5px 10px; border-radius: 8px; background: rgba(18, 11, 34, 0.82); color: #fff;
  font: 700 14px/1.3 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.2px; white-space: pre-line;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }

/* The travelling moon-cat's shop: readable offers, exact costs, and a quiet pause while choosing. */
/* Feza's atlas: a quiet night sea, floating storybook islands and a golden dream trail. */
.u-dream-intro { z-index: 24; padding: max(14px, env(safe-area-inset-top)) 18px max(14px, env(safe-area-inset-bottom)); box-sizing: border-box; }
.u-dream-intro-panel { box-sizing: border-box; display: flex; align-items: center; flex-direction: column; gap: 9px; width: min(900px, 100%); max-height: 100%; padding: 25px; overflow-y: auto; border: 3px solid #ecd4a0; border-radius: 32px; background: linear-gradient(145deg, #354e61, #382d57); box-shadow: 0 12px 70px #08082199; touch-action: pan-y; }
.u-dream-intro-art { width: min(760px, 100%); }
.u-dream-intro-art svg { width: 100%; display: block; }
.u-dream-intro-copy { text-align: center; font-size: clamp(14px, 2vw, 20px); line-height: 1.5; color: #fff1d4; margin: 0 0 6px; }
.u-dream-intro .u-btn { font-size: clamp(22px, 3vw, 31px); min-height: 54px; }
.u-dream-travel { z-index: 24; overflow: hidden; background: radial-gradient(ellipse at 18% 80%, #416e8199, transparent 50%), radial-gradient(ellipse at 76% 28%, #65537977, transparent 54%), linear-gradient(155deg, #172645, #151736 55%, #233650); }
.u-dream-travel.forest { background: radial-gradient(ellipse at 78% 60%, #599b7066, transparent 55%), linear-gradient(155deg, #192642, #1e3541 70%, #26493e); }
.u-dream-travel::before, .u-dream-travel::after { content: ''; position: absolute; inset: -10%; pointer-events: none; background-image: radial-gradient(circle, #ffffe9bb 1px, transparent 2px); background-size: 87px 73px; opacity: .5; animation: u-travel-sky 15s linear infinite; }
.u-dream-travel::after { background-size: 153px 137px; background-position: 31px 19px; opacity: .3; animation-duration: 23s; }
.u-dream-travel-art { position: relative; z-index: 1; width: min(1320px, 100%); height: min(75vh, 620px); }
.u-dream-travel-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
#ui.journey-on #uiHud { visibility: hidden; }
#ui.journey-on .u-sub { z-index: 26; left: 10vw; right: 10vw; bottom: max(4vh, env(safe-area-inset-bottom)); }
@keyframes u-travel-sky { from { transform: translate(20px, -8px); } to { transform: translate(-25px, 12px); } }
.u-rocket-flame { opacity: 0; }
.u-journey-rocket { transform-box: view-box; transform-origin: 0 0; }
.u-journey-passengers { opacity: 0; }
.u-boarding-feza, .u-boarding-bilbo { transform-box: view-box; transform-origin: 0 0; }
.u-dream-travel-art.flying .u-boarding-feza { animation: u-feza-boards 1s ease-in-out forwards; }
.u-dream-travel-art.flying .u-boarding-bilbo { animation: u-bilbo-boards .95s .15s ease-in-out forwards; }
.u-dream-travel-art.flying .u-journey-passengers { animation: u-cabin-arrival .2s 1s forwards; }
.u-dream-travel-art.flying .u-journey-rocket { animation: u-dream-flight 4.2s 1.15s ease-in-out forwards; }
.u-dream-travel-art.flying .u-rocket-flame { animation: u-cabin-arrival .2s 1.15s forwards, u-flame-pulse .22s 1.15s ease-in-out infinite alternate; }
.u-dream-travel-art.flying .u-journey-boarding { opacity: 0; transition: opacity .2s; }
@keyframes u-feza-boards { 0% { transform: translate(160px, 214px); opacity: 1; } 35% { transform: translate(202px, 205px) rotate(5deg); opacity: 1; } 72% { transform: translate(250px, 167px) scale(.75); opacity: 1; } 100% { transform: translate(280px, 147px) scale(.35); opacity: 0; } }
@keyframes u-bilbo-boards { 0% { transform: translate(207px, 246px); opacity: 1; } 42% { transform: translate(232px, 173px) rotate(-12deg); opacity: 1; } 78% { transform: translate(277px, 163px) scale(.8); opacity: 1; } 100% { transform: translate(296px, 160px) scale(.4); opacity: 0; } }
@keyframes u-cabin-arrival { to { opacity: 1; } }
@keyframes u-dream-flight { 0% { transform: translate(285px, 157px) rotate(24deg); } 25% { transform: translate(310px, 133px) rotate(43deg); } 65% { transform: translate(450px, 111px) rotate(62deg) scale(.8); } 100% { transform: translate(610px, 145px) rotate(24deg) scale(.4); } }
@keyframes u-flame-pulse { from { fill-opacity: .55; } to { fill-opacity: 1; } }
@media (max-height: 560px) and (orientation: landscape) {
  .u-dream-intro-panel { padding: 12px 20px; gap: 5px; }
  .u-dream-intro .u-dream-title { font-size: 25px; }
  .u-dream-intro-art { width: min(100%, calc((100dvh - 180px) * 2.17)); }
  .u-dream-intro-copy { font-size: 13px; line-height: 1.3; }
  .u-dream-intro .u-btn { min-height: 43px; font-size: 22px; }
  .u-dream-travel-art { height: 88vh; width: 100%; }
}
.u-dream-open { position: relative; }
.u-dream-label { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); color: #fff1bf; font-weight: 900; font-size: calc(var(--k) * 15px); padding-top: 3px; white-space: nowrap;
  text-shadow: 0 0 2px #2a1546, 0 1px 0 #2a1546, 1px 0 0 #2a1546, -1px 0 0 #2a1546, 0 -1px 0 #2a1546, 0 2px 4px rgba(20, 5, 45, 0.6); }   /* açık zeminde de okunsun */
.u-bone { --c: #b5efd7; box-shadow: 0 calc(var(--k) * 6px) 0 #235b57, 0 0 0 calc(var(--k) * 3px) #ffe8b9, inset 0 calc(var(--k) * 4px) calc(var(--k) * 10px) #fff9; }
.u-bone .u-ico { transform: rotate(-24deg); }
.u-bone-label { position: absolute; bottom: -12%; left: 50%; transform: translateX(-50%); padding: 2px 11px; border-radius: 12px; background: #275b5a; border: 2px solid #fff0bb; color: #fff6d3; font-weight: 900; font-size: calc(var(--k) * 17px); }
.u-dream-screen { z-index: 25; padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); box-sizing: border-box; background: #110e2dee; backdrop-filter: blur(7px); }
/* yatay ekran: harita panosunun köşesi sol üstteki ev düğmesinin (16+66 px) altında kalmasın; iki yana eşit pay */
@media (min-aspect-ratio: 1/1) { .u-dream-screen { padding-left: max(92px, env(safe-area-inset-left)); padding-right: max(92px, env(safe-area-inset-right)); } }
.u-dream-panel { position: relative; box-sizing: border-box; width: min(1160px, 100%); max-height: 100%; overflow-y: auto; display: flex; align-items: center; flex-direction: column; padding: 20px 22px 14px; border: 2px solid #e6cda5; border-radius: 34px; background: radial-gradient(ellipse at 30% 80%, #24636b80, transparent 60%), radial-gradient(ellipse at 80% 0%, #79549055, transparent 60%), linear-gradient(135deg, #29264f, #183447 55%, #35274e); box-shadow: 0 0 0 5px #72648055, 0 18px 80px #0008, inset 0 0 40px #140e3288; touch-action: pan-y; }
.u-dream-kicker { color: #c4dedc; letter-spacing: 3px; font-size: 11px; font-weight: 800; }
.u-dream-title { margin: 2px 0 3px; font: 900 clamp(27px, 4.3vw, 43px)/1.15 var(--f); color: #ffecc3; text-shadow: 0 3px 0 #14132f; }
.u-dream-hint { margin: 3px 0 0; font-size: clamp(12px, 1.6vw, 17px); color: #d4e7e0; text-align: center; }
.u-dream-panel > .u-dream-title, .u-dream-panel > .u-dream-hint, .u-dream-panel > .u-dream-kicker { min-width: 0; max-width: 100%; overflow-wrap: anywhere; text-align: center; line-height: 1.35; }
.u-dream-board { position: relative; width: 100%; aspect-ratio: 1000 / 560; min-height: 270px; margin: 5px 0; flex: 0 0 auto; border-radius: 22px; overflow: hidden; background-image: radial-gradient(circle, #fff1bf99 1px, transparent 2px), radial-gradient(circle, #cbd0ff88 1px, transparent 2px), radial-gradient(ellipse at 50% 50%, #aabbef1a, transparent 55%); background-size: 73px 61px, 113px 101px, 100% 100%; background-position: 15px 21px, 41px 8px, center; }
.u-dream-route { position: absolute; inset: 0; pointer-events: none; }
.u-dream-starfield, .u-dream-ornaments { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.u-dream-ornaments svg { width: 100%; height: 100%; display: block; }
.u-dream-star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #faf0c1; box-shadow: 0 0 8px #d9c7ff; opacity: .55; animation: u-star-twinkle var(--star-time, 4s) var(--star-delay, 0s) ease-in-out infinite; }
.u-dream-star.bright { width: 15px; height: 15px; line-height: 1; font-size: 15px; color: #ffe2ad; background: none; box-shadow: none; animation-name: u-star-drift; }
.u-island-sparkles { position: absolute; inset: 5% 8% 24%; pointer-events: none; color: #f8edbb; }
.u-island-sparkles i { position: absolute; font-size: 13px; font-style: normal; opacity: .55; animation: u-star-twinkle 3.4s var(--spark-delay, 0s) ease-in-out infinite; }
.u-island-sparkles i:nth-child(1) { left: 1%; top: 23%; }
.u-island-sparkles i:nth-child(2) { right: 4%; top: 4%; animation-delay: calc(var(--spark-delay, 0s) - 1.3s); font-size: 9px; }
.u-island-sparkles i:nth-child(3) { right: 0; bottom: 11%; animation-delay: calc(var(--spark-delay, 0s) - 2.1s); }
@keyframes u-star-twinkle { 0%, 100% { opacity: .22; transform: scale(.7); } 50% { opacity: .9; transform: scale(1.2); } }
@keyframes u-star-drift { 0%, 100% { opacity: .35; transform: translateY(2px) rotate(-8deg) scale(.8); } 50% { opacity: .95; transform: translateY(-5px) rotate(8deg) scale(1.1); } }
.u-dream-route svg { display: block; width: 100%; height: 100%; }
.u-dream-compass { position: absolute; left: 46%; top: 43%; width: 8%; color: #dec69e; text-align: center; opacity: .8; }
.u-dream-compass span { font-size: clamp(25px, 4vw, 55px); line-height: 1; display: block; }
.u-dream-compass small { letter-spacing: 3px; font-size: 9px; }
#ui .u-dream-island { position: absolute; left: var(--ix); top: var(--iy); width: 20%; padding: 0; background: none; border: 0; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; color: #fff4d7; cursor: pointer; touch-action: manipulation; transition: filter .18s, scale .18s; }
.u-island-art { display: block; width: 100%; max-height: 170px; filter: drop-shadow(0 6px 6px #070c2855); }
.u-island-name { min-width: 0; max-width: 100%; margin-top: -5px; padding: 5px 10px; border-radius: 13px; border: 1px solid #cfb68f88; font-size: clamp(11px, 1.5vw, 17px); font-weight: 900; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; text-align: center; color: #fff1c8; background: linear-gradient(#444260ee, #252f4aee); box-shadow: 0 3px 10px #0b0c2688; }
.u-island-number { position: absolute; left: 18%; top: 56%; display: grid; place-items: center; width: 22px; height: 22px; background: #f8dfac; border: 2px solid #d8bb8c; color: #55425d; border-radius: 50%; font-size: 12px; font-weight: 900; box-shadow: 0 2px 5px #221a4944; }
.u-island-current { display: none; color: #b0ffe0; font-size: 11px; font-weight: 800; margin-top: 4px; }
.u-dream-island.current .u-island-current { display: block; }
.u-dream-island.current .u-island-name { border-color: #affedb; box-shadow: 0 0 14px #baffd655; }
#ui .u-dream-island.down { scale: .95; filter: brightness(1.15); }
#ui .u-dream-island:focus-visible { outline: 3px solid #ffe5aa; border-radius: 26px; outline-offset: 2px; }
#ui .u-dream-close { display: flex; align-items: center; justify-content: center; gap: 9px; flex: 0 0 auto; min-height: 45px; padding: 7px 23px; border: 2px solid #ccb797; border-radius: 20px; background: #423e61; color: #fff0c8; font: 800 17px var(--f); box-shadow: 0 3px 0 #161b32; cursor: pointer; }
.u-dream-close .u-svg { width: 17px; height: 17px; }
.u-dream-header { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 auto; }
.u-dream-headings { min-width: 0; }
.u-dream-headings .u-dream-title { overflow-wrap: anywhere; }
#ui .u-dream-top-close { flex-shrink: 0; min-height: 48px; padding: 8px 16px; }
@media (max-width: 480px) {
  .u-dream-header { gap: 8px; }
  #ui .u-dream-top-close { padding: 8px 10px; font-size: 14px; }
  .u-dream-headings .u-dream-title { font-size: 23px; }
}

.u-dream-close:focus-visible { outline: 3px solid #b0ffe0; outline-offset: 4px; }
.u-dream-unlock { color: #cff9ed; font-size: calc(var(--k) * 18px); max-width: 480px; text-align: center; }
@media (orientation: portrait) {
  .u-dream-board { aspect-ratio: 1000 / 780; }
  #ui .u-dream-island { width: 23%; }
  .u-island-name { white-space: normal; text-align: center; min-height: 2.2em; display: flex; align-items: center; justify-content: center; padding: 5px 6px; }
  .u-island-number { left: 5%; width: 20px; height: 20px; }
  .u-dream-panel { padding: 20px 10px 16px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .u-dream-panel { padding: 10px 20px; border-radius: 24px; }
  .u-dream-title { font-size: 26px; }
  .u-dream-kicker { font-size: 8px; }
  .u-dream-hint { font-size: 12px; }
  .u-dream-board { width: min(100%, 880px); height: calc(100dvh - 170px); aspect-ratio: auto; min-height: 190px; margin: 0; }
  .u-island-art { max-height: 76px; }
  .u-island-name { font-size: 11px; padding: 3px 7px; }
  .u-island-number { width: 16px; height: 16px; font-size: 10px; border-width: 1px; }
  #ui .u-dream-close { min-height: 36px; padding: 4px 20px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .u-dream-island { transition: none !important; } .u-dream-star, .u-island-sparkles i { animation: none; opacity: .6; } }

.u-shop-panel { box-sizing: border-box; width: min(92vw, 800px); max-height: 92vh; padding: 24px; gap: 14px; overflow: hidden; }
.u-shop-head { display: flex; align-items: center; gap: 18px; width: 100%; }
.u-shop-seal { display: grid; place-items: center; width: 76px; height: 76px; flex: 0 0 auto; border: 2px solid #eac47b; border-radius: 50%;
  background: radial-gradient(circle, #7961b1, #392957); color: #fff0b5; font-size: 66px; line-height: 1; box-shadow: 0 0 26px #b4e6d344; }
.u-shop-kicker { color: #b6eadd; font-size: 11px; font-weight: 900; letter-spacing: 1.8px; margin-bottom: 7px; }
.u-shop-panel .u-ptitle { font-size: clamp(25px, 3.7vw, 39px); }
.u-shop-greeting { font-size: 15px; color: #eadbf7; margin-top: 6px; }
.u-shop-gold { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; border-radius: 14px; background: #25153e99; padding: 10px 14px; color: #ffe098; font-size: 22px; font-weight: 900; }
.u-shop-gold small { margin-left: auto; color: #d8c9ec; font-size: 13px; font-weight: 600; }
.u-shop-offers { display: flex; flex-direction: column; gap: 10px; width: 100%; min-height: 0; overflow-y: auto; touch-action: pan-y; }
.u-shop-head, .u-shop-gold, .u-shop-status, .u-shop-foot { flex-shrink: 0; }
.u-shop-card { flex-shrink: 0; }
.u-shop-card { display: grid; grid-template-columns: 49px 1fr 138px; align-items: center; gap: 12px; padding: 12px; border: 1px solid #ab8eca88; border-radius: 18px; background: linear-gradient(120deg, #5b4384, #37245f); }
.u-shop-card.sold { background: #392c4e; }
.u-shop-icon { font-size: 32px; text-align: center; }
.u-shop-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.u-shop-copy strong { color: #fff0c6; font-size: 20px; }
.u-shop-copy span { color: #f3eafa; font-size: 14px; line-height: 1.3; }
.u-shop-copy small { color: #afe7d6; font-size: 12px; }
#ui .u-shop-buy { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 10px 8px; min-height: 64px; border: 2px solid #f2d690; border-radius: 14px;
  background: linear-gradient(#5aab80, #337157); color: #fff9dd; box-shadow: 0 3px 0 #233b38; cursor: pointer; }
.u-shop-buy b { display: flex; align-items: center; gap: 6px; font-size: 21px; }
.u-shop-buy > span { font-size: 13px; line-height: 1.2; }
#ui .u-shop-buy:disabled { background: #433651; border-color: #8d7c9a; color: #c5b9cb; cursor: default; box-shadow: none; }
.u-shop-buy.down { transform: translateY(2px); }
.u-shop-status { color: #d2f7e4; font-size: 13px; text-align: center; min-height: 1.4em; }
.u-shop-foot { display: flex; width: 100%; align-items: center; gap: 16px; }
.u-shop-note { flex: 1; color: #ddcce9; font-size: 12px; line-height: 1.4; }
#ui .u-shop-foot .u-btn { min-height: 48px; font-size: 22px; padding: 0 20px; }
#ui .u-merchant-prompt { position: absolute; pointer-events: auto; left: 50%; bottom: max(190px, 25vh); transform: translateX(-50%); white-space: nowrap;
  padding: 10px 18px; background: #49336dee; border: 2px solid #d9c68b; border-radius: 24px; color: #fff0c6; font-size: 17px; font-weight: 800; box-shadow: 0 3px 18px #29113977; }
.u-merchant-prompt small { border: 1px solid #ceafd9; padding: 1px 5px; border-radius: 4px; margin-left: 8px; }
#ui:not(.kbd) .u-merchant-prompt small { display: none; }
.u-ward-tag { position: absolute; left: 0; top: 100%; margin-top: 30px; padding: 4px 9px; border-radius: 12px; color: #c8f9f0; background: #253950cc; font-size: calc(var(--k) * 18px); white-space: nowrap; }
@media (max-width: 520px) {
  .u-shop-panel { padding: 16px 12px; gap: 10px; border-width: 3px; border-radius: 26px; }
  .u-shop-head { gap: 9px; }
  .u-shop-seal { width: 46px; height: 46px; font-size: 40px; }
  .u-shop-kicker { font-size: 8px; letter-spacing: 0.5px; }
  .u-shop-greeting { font-size: 11px; }
  .u-shop-gold { font-size: 20px; padding: 8px; }
  .u-shop-gold small { font-size: 10px; }
  .u-shop-card { grid-template-columns: 30px 1fr 94px; gap: 8px; padding: 10px 8px; }
  .u-shop-icon { font-size: 25px; }
  .u-shop-copy strong { font-size: 16px; }
  .u-shop-copy span { font-size: 12px; }
  .u-shop-buy b { font-size: 18px; }
  .u-shop-buy > span { font-size: 11px; }
  .u-shop-status { font-size: 11px; }
  .u-shop-foot { flex-direction: column; gap: 8px; text-align: center; }
  #ui .u-shop-foot .u-btn { width: 100%; }
}
@media (max-height: 500px) and (min-width: 521px) {
  .u-shop-panel { padding: 12px 18px; gap: 8px; }
  .u-shop-head { gap: 10px; }
  .u-shop-seal { width: 42px; height: 42px; font-size: 38px; }
  .u-shop-panel .u-ptitle { font-size: 27px; }
  .u-shop-greeting { display: none; }
  .u-shop-card { grid-template-columns: 30px 1fr 120px; padding: 8px; }
  .u-shop-offers { display: grid; grid-template-columns: 1fr 1fr; scrollbar-width: thin; scrollbar-color: #d9c68b #392457; }
  .u-shop-status::before { content: "Diğer ürünler için listeyi kaydır. "; color: #ffe098; }
  .u-shop-card { grid-template-columns: 28px 1fr; }
  #ui .u-shop-buy { grid-column: 1 / -1; flex-direction: row; min-height: 38px; padding: 4px 8px; }
  .u-shop-copy strong { font-size: 16px; }
  .u-shop-copy span { font-size: 12px; }
}

/* Language picker is shown before the game boots; no layout scans during play. */
/* Dev Ev: Takım Hamlesi düğmesi (Aytuğ Hala ile); --fill 0..1 dolum, .ready parlar */
.u-team { --c: #ffb3c4; --fill: 0; overflow: visible; box-shadow: 0 calc(var(--k) * 6px) 0 #8a2e4a, 0 0 0 calc(var(--k) * 3px) #ffe8b9, inset 0 calc(var(--k) * 4px) calc(var(--k) * 10px) #fff9; }
.u-team .u-team-fill { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: conic-gradient(#0000 calc(var(--fill) * 360deg), #2a0f1caa 0); }
.u-team.ready { animation: uTeamGlow 1s ease-in-out infinite alternate; }
@keyframes uTeamGlow { to { box-shadow: 0 calc(var(--k) * 6px) 0 #8a2e4a, 0 0 0 calc(var(--k) * 3px) #fff, 0 0 calc(var(--k) * 28px) #ff8fb0; } }

/* ── Oyun hissi + HUD ekleri (src/08j_his.js; önek his-) ── */
/* Şeker sayacı: altın para yerine ambalajlı pembe şeker */
.u-coin { background: radial-gradient(circle at 36% 30%, #ffe0f0 0 12%, #ff6fb1 46%, #d22d7c 100%) !important;
  box-shadow: 0 0 0 calc(var(--k) * 2.5px) #fff, 0 calc(var(--k) * 3px) 0 calc(var(--k) * 2px) #8e1d55 !important; overflow: visible; }
.u-coin::after { content: "" !important; inset: 18% !important; border-radius: 50%; background:
  conic-gradient(from 20deg, #fff0 0 40deg, #fffc 40deg 80deg, #fff0 80deg 160deg, #fffc 160deg 200deg, #fff0 200deg 280deg, #fffc 280deg 320deg, #fff0 320deg); }
.u-coin::before { content: ""; position: absolute; top: 22%; bottom: 22%; left: -46%; right: -46%; z-index: -1;
  background: linear-gradient(90deg, #7fd8ff 0 22%, transparent 22% 78%, #7fd8ff 78%);
  clip-path: polygon(0 0, 24% 50%, 0 100%, 0 0, 100% 0, 76% 50%, 100% 100%, 100% 0); }
.u-gold { transform-origin: 20% 50%; }
.u-gold.his-bump .u-coin { animation: hisCoin 0.32s cubic-bezier(.2, 1.8, .4, 1); }
.u-gold.his-bump .u-gn { animation: hisNum 0.32s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes hisCoin { 40% { transform: scale(1.45) rotate(-14deg); } }
@keyframes hisNum { 40% { transform: scale(1.22) translateY(calc(var(--k) * -3px)); } }

/* Aytuğ Hala yüzü + yıldız şeker düğmesi (Feza portresinin altında) */
.his-col { position: absolute; left: calc(var(--k) * 2px); top: calc(var(--k) * 134px); display: flex; align-items: center; gap: calc(var(--k) * 12px); }
.his-hala { position: relative; flex: none; width: calc(var(--k) * 86px); height: calc(var(--k) * 86px); border-radius: 50%;
  box-shadow: 0 0 0 calc(var(--k) * 3px) #fff, 0 0 0 calc(var(--k) * 6px) #ff7563, 0 calc(var(--k) * 6px) calc(var(--k) * 12px) rgba(40, 10, 30, 0.45); background: #ffe6cf; }
.his-hala svg { display: block; width: 100%; height: 100%; border-radius: 50%; }
.his-hala.talk { animation: hisTalk 0.42s ease-in-out infinite alternate; }
@keyframes hisTalk { from { transform: rotate(-2.5deg) translateY(0); } to { transform: rotate(2.5deg) translateY(calc(var(--k) * -2px)); } }
.his-talk { position: absolute; right: calc(var(--k) * -6px); top: calc(var(--k) * -16px); display: flex; gap: calc(var(--k) * 3px); align-items: center;
  padding: calc(var(--k) * 6px) calc(var(--k) * 8px); border-radius: 99px; background: #fff; box-shadow: 0 calc(var(--k) * 2px) 0 #e5b9a6;
  opacity: 0; transform: scale(0.4); transform-origin: 0 100%; transition: opacity 0.18s, transform 0.25s cubic-bezier(.2, 1.6, .4, 1); }
.his-talk i { width: calc(var(--k) * 6px); height: calc(var(--k) * 6px); border-radius: 50%; background: #ff6f61; animation: hisDot 0.9s ease-in-out infinite; }
.his-talk i:nth-child(2) { animation-delay: 0.15s; } .his-talk i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hisDot { 50% { transform: translateY(calc(var(--k) * -4px)); opacity: 0.55; } }
.his-hala.talk .his-talk { opacity: 1; transform: scale(1); }
.his-starbtn { position: relative; flex: none; width: var(--rb); height: var(--rb); border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #8fd0ff, #3a8fe8 62%, #1f5ab0); box-shadow: 0 calc(var(--k) * 5px) 0 #12306a, 0 0 0 calc(var(--k) * 3px) #ffe48a, inset 0 calc(var(--k) * 4px) calc(var(--k) * 8px) #fff8;
  transition: transform 0.1s; }
.his-starbtn::before { content: ""; position: absolute; left: 18%; right: 18%; top: 7%; height: 36%; border-radius: 50%; background: linear-gradient(#fff9, #fff0); pointer-events: none; }
.his-starbtn svg { position: absolute; left: 12%; top: 9%; width: 76%; height: 76%; filter: drop-shadow(0 calc(var(--k) * 2px) 0 #10366e); }
.his-starn { position: absolute; left: 50%; bottom: calc(var(--k) * -12px); transform: translateX(-50%); min-width: calc(var(--k) * 36px); padding: 0 calc(var(--k) * 7px);
  height: calc(var(--k) * 28px); border-radius: 99px; background: #fff; color: #235fb8; font-weight: 900; font-size: calc(var(--k) * 21px); line-height: calc(var(--k) * 28px);
  text-align: center; box-shadow: 0 calc(var(--k) * 2px) 0 #10366e; }
.his-plus { position: absolute; right: calc(var(--k) * -8px); top: calc(var(--k) * -8px); width: calc(var(--k) * 32px); height: calc(var(--k) * 32px); border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #a6ff9a, #2fc24a); color: #fff; font-weight: 900; font-size: calc(var(--k) * 28px); line-height: calc(var(--k) * 30px); text-align: center;
  box-shadow: 0 0 0 calc(var(--k) * 2.5px) #fff, 0 calc(var(--k) * 2px) 0 calc(var(--k) * 2px) #136a28; text-shadow: 0 calc(var(--k) * 2px) 0 #136a28; display: none; }
.his-starbtn.ready { animation: hisReady 1.1s ease-in-out infinite; }
.his-starbtn.ready .his-plus { display: block; animation: hisPlus 0.55s ease-in-out infinite alternate; }
@keyframes hisReady { 0%, 100% { transform: scale(1) rotate(0); box-shadow: 0 calc(var(--k) * 5px) 0 #10366e, 0 0 0 calc(var(--k) * 3px) #ffe48a, 0 0 0 #ffd23f00; }
  50% { transform: scale(1.08) rotate(-4deg); box-shadow: 0 calc(var(--k) * 5px) 0 #10366e, 0 0 0 calc(var(--k) * 3px) #fff, 0 0 calc(var(--k) * 26px) #ffd23f; } }
@keyframes hisPlus { to { transform: scale(1.18); } }
.his-starbtn.bump { animation: hisBumpBtn 0.35s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes hisBumpBtn { 40% { transform: scale(1.22); } }
.his-hide { display: none !important; }

/* Pasta malzemesi yuvaları: un, yumurta, çilek, krema */
.his-malz { display: flex; gap: calc(var(--k) * 7px); }
.his-m { position: relative; width: calc(var(--k) * 46px); height: calc(var(--k) * 46px); border-radius: 50%; padding: calc(var(--k) * 5px);
  background: radial-gradient(circle at 50% 35%, #ffffff55, #2a154622); box-shadow: inset 0 0 0 calc(var(--k) * 2.5px) #ffffff88, 0 calc(var(--k) * 2px) calc(var(--k) * 5px) #2a154633; }
.his-m svg { display: block; width: 100%; height: 100%; filter: grayscale(1) brightness(1.25) opacity(0.45); transition: filter 0.4s; }
.his-m.has { background: radial-gradient(circle at 50% 35%, #fffbe6, #ffd76a 70%, #e2a21c); box-shadow: 0 0 0 calc(var(--k) * 2.5px) #fff, 0 calc(var(--k) * 3px) 0 calc(var(--k) * 2px) #a86a00; }
.his-m.has svg { filter: drop-shadow(0 calc(var(--k) * 1.5px) 0 #0003); }
.his-m.got { animation: hisGot 1.2s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes hisGot { 0% { transform: scale(0.3) rotate(-30deg); } 30% { transform: scale(1.7) rotate(12deg); } 55% { transform: scale(0.92) rotate(-4deg); } 100% { transform: scale(1); } }
.his-mshine { position: absolute; inset: calc(var(--k) * -10px); border-radius: 50%; pointer-events: none; opacity: 0;
  background: conic-gradient(from 0deg, #fff0, #fff9 8%, #fff0 16%, #fff0 25%, #fff9 33%, #fff0 41%, #fff0 50%, #fff9 58%, #fff0 66%, #fff0 75%, #fff9 83%, #fff0 91%); }
.his-m.got .his-mshine { animation: hisShine 1.2s ease-out; }
@keyframes hisShine { 0% { opacity: 1; transform: rotate(0) scale(0.6); } 100% { opacity: 0; transform: rotate(160deg) scale(1.5); } }

/* Kombo sayacı: büyük, sevimli, renk değiştiren rakamlar */
.his-combo { --h: 40; position: absolute; right: calc(var(--padR) + var(--k) * 150px); top: 40%; pointer-events: none; display: flex; align-items: center; justify-content: center;
  width: calc(var(--k) * 170px); height: calc(var(--k) * 150px); opacity: 0; transform: scale(0.4); transition: opacity 0.35s, transform 0.35s; }
.his-combo.on { opacity: 1; transform: scale(1); transition: opacity 0.12s, transform 0.2s cubic-bezier(.2, 1.6, .4, 1); }
.his-cstar { position: absolute; inset: 0; background: radial-gradient(circle, hsl(var(--h) 100% 75% / 0.85) 0 30%, hsl(var(--h) 100% 70% / 0) 62%);
  clip-path: polygon(50% 0, 61% 33%, 96% 35%, 68% 56%, 79% 92%, 50% 71%, 21% 92%, 32% 56%, 4% 35%, 39% 33%); animation: hisSpin 6s linear infinite; }
@keyframes hisSpin { to { transform: rotate(360deg); } }
.his-cn { position: relative; font-weight: 900; font-size: calc(var(--k) * 76px); line-height: 1; --ol: #103060; --t1: #fff; --t2: hsl(var(--h) 100% 66%); }
.his-combo.hit .his-cn { animation: hisCHit 0.28s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes hisCHit { 35% { transform: scale(1.3) rotate(-6deg); } }
.his-combo.big .his-cn { animation: hisCBig 0.75s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes hisCBig { 0% { transform: scale(0.6); } 30% { transform: scale(1.9) rotate(10deg); } 60% { transform: scale(1.25) rotate(-4deg); } 100% { transform: scale(1); } }

/* Seviye kutlaması (ortada, dokunmayı engellemez) */
.his-lvl, .his-card { position: absolute; left: 50%; top: 40%; width: calc(var(--k) * 260px); height: calc(var(--k) * 260px); margin: calc(var(--k) * -130px) 0 0 calc(var(--k) * -130px);
  pointer-events: none; opacity: 0; transform: scale(0.2); display: flex; align-items: center; justify-content: center; }
.his-lvl.on { animation: hisLvl 2.1s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes hisLvl { 0% { opacity: 0; transform: scale(0.2) rotate(-20deg); } 18% { opacity: 1; transform: scale(1.15) rotate(4deg); } 28% { transform: scale(1) rotate(0); }
  82% { opacity: 1; transform: scale(1) translateY(0); } 100% { opacity: 0; transform: scale(0.35) translate(-120%, -150%); } }
.his-rays { position: absolute; inset: -18%; border-radius: 50%; background: repeating-conic-gradient(#fff6b8aa 0 9deg, #fff6b800 9deg 22.5deg);
  -webkit-mask: radial-gradient(circle, #000 20%, #0000 68%); mask: radial-gradient(circle, #000 20%, #0000 68%); animation: hisSpin 7s linear infinite; }
.his-lstar { position: relative; width: 74%; height: 74%; animation: hisWob 0.9s ease-in-out infinite alternate; }
.his-lstar svg { width: 100%; height: 100%; filter: drop-shadow(0 calc(var(--k) * 6px) 0 #b25e00) drop-shadow(0 0 calc(var(--k) * 20px) #fff5b0); }
.his-ln { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); font-weight: 900; font-size: calc(var(--k) * 92px); line-height: 1; --ol: #7a3400; --t1: #fff; --t2: #ffe27a; }
.his-lstar svg circle, .his-lstar svg path:nth-last-child(1) { opacity: 0; }   /* rakam yüzün yerinde */
@keyframes hisWob { from { transform: rotate(-5deg) scale(0.98); } to { transform: rotate(5deg) scale(1.03); } }
/* Yeni yetenek kartı: büyük resimli simge, düğmesine uçar */
.his-card { --c: #ffd23f; }
.his-card.on { animation: hisCard 3.2s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes hisCard { 0% { opacity: 0; transform: scale(0.2) rotate(20deg); } 14% { opacity: 1; transform: scale(1.12) rotate(-3deg); } 24% { transform: scale(1); }
  80% { opacity: 1; transform: scale(1) translate(0, 0); } 100% { opacity: 0; transform: scale(0.3) translate(110%, 120%); } }
.his-cico { position: relative; width: 66%; height: 66%; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 30%, #fff, var(--c) 70%); box-shadow: 0 0 0 calc(var(--k) * 6px) #fff, 0 calc(var(--k) * 10px) 0 calc(var(--k) * 6px) #0003, 0 0 calc(var(--k) * 40px) var(--c); }
.his-cico svg { width: 86%; height: 86%; }
.his-cico .his-emo { font-size: calc(var(--k) * 110px); line-height: 1; }
.his-cstars { position: absolute; bottom: 6%; left: 0; right: 0; display: flex; justify-content: center; gap: calc(var(--k) * 6px); font-size: calc(var(--k) * 34px); }
.his-cstars i, .his-uppips i { font-style: normal; color: #ffffff66; -webkit-text-stroke: calc(var(--k) * 1.5px) #3a5a8a; }
.his-cstars i.on, .his-uppips i.on { color: #ffd23f; -webkit-text-stroke: calc(var(--k) * 1.5px) #a05a00; text-shadow: 0 0 calc(var(--k) * 10px) #fff6a0; }

/* Uçan şekerler / yıldızlar (HUD sayaçlarına) */
.his-flyroot { position: absolute; inset: 0; pointer-events: none; }
.his-fly { position: absolute; left: 0; top: 0; width: calc(var(--k) * 34px); height: calc(var(--k) * 34px); opacity: 0; will-change: transform; filter: drop-shadow(0 calc(var(--k) * 2px) calc(var(--k) * 3px) #0005); }
.his-fly.star { width: calc(var(--k) * 46px); height: calc(var(--k) * 46px); }
.his-fly svg { width: 100%; height: 100%; display: block; }

/* Yetenek kademe yıldızları (yetenek düğmelerinin altında) */
.his-pips { position: absolute; left: 50%; bottom: calc(var(--k) * -9px); transform: translateX(-50%); display: flex; gap: calc(var(--k) * 2px); z-index: 6; pointer-events: none;
  padding: calc(var(--k) * 2px) calc(var(--k) * 5px); border-radius: 99px; background: #2a1546cc; }
.his-pips i { width: calc(var(--k) * 13px); height: calc(var(--k) * 13px); background: #ffffff44;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.his-pips i.on { background: #ffd23f; }
.u-skill.his-tierup { animation: hisTier 0.9s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes hisTier { 30% { transform: translate(-50%, -50%) scale(1.3) rotate(-10deg); } 60% { transform: translate(-50%, -50%) scale(0.95) rotate(4deg); } }
.u-skill .u-ico svg { width: 78%; height: 78%; display: block; filter: drop-shadow(0 calc(var(--k) * 2px) 0 #0003); }

/* Takım Hamlesi hazırken: parlar VE titrer */
.u-team.ready .u-ico { animation: hisShakeIco 0.6s ease-in-out infinite; }
@keyframes hisShakeIco { 0%, 100% { transform: rotate(0) scale(1); } 20% { transform: rotate(-14deg) scale(1.12); } 40% { transform: rotate(12deg) scale(1.15); } 60% { transform: rotate(-8deg) scale(1.08); } 80% { transform: rotate(5deg) scale(1.04); } }

/* Yetenekler paneli (yıldız şekerle güçlendir) */
.his-up { position: absolute; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; pointer-events: auto; touch-action: none;
  background: radial-gradient(circle at 50% 40%, #3b1d6acc, #140829ee); }
.his-up.on { display: flex; animation: hisFade 0.25s ease-out; }
@keyframes hisFade { from { opacity: 0; } }
.his-upbox { position: relative; display: flex; flex-direction: column; align-items: center; gap: calc(var(--k) * 18px); padding: calc(var(--k) * 26px) calc(var(--k) * 30px) calc(var(--k) * 34px);
  border-radius: calc(var(--k) * 44px); background: linear-gradient(180deg, #fff9ef, #ffe7c6); box-shadow: 0 0 0 calc(var(--k) * 6px) #ffd166, 0 calc(var(--k) * 14px) 0 calc(var(--k) * 6px) #b0742a, 0 calc(var(--k) * 30px) calc(var(--k) * 60px) #0008;
  animation: hisPopIn 0.45s cubic-bezier(.2, 1.6, .4, 1); max-width: 96vw; }
@keyframes hisPopIn { from { transform: scale(0.5); } }
.his-uphead { display: flex; align-items: center; gap: calc(var(--k) * 10px); height: calc(var(--k) * 70px); padding: 0 calc(var(--k) * 26px) 0 calc(var(--k) * 12px); border-radius: 99px;
  background: linear-gradient(180deg, #7fc4ff, #2f78e0); box-shadow: 0 calc(var(--k) * 5px) 0 #12408a; }
.his-uphead svg { width: calc(var(--k) * 58px); height: calc(var(--k) * 58px); }
.his-upn { font-weight: 900; font-size: calc(var(--k) * 46px); color: #fff; text-shadow: 0 calc(var(--k) * 3px) 0 #154690; }
.his-upclose { position: absolute !important; right: calc(var(--k) * -26px); top: calc(var(--k) * -26px); width: var(--rb); height: var(--rb); border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #ff9a8a, #e5413a 65%, #b0241e); box-shadow: 0 0 0 calc(var(--k) * 4px) #fff, 0 calc(var(--k) * 6px) 0 calc(var(--k) * 3px) #7a1410; }
.his-upclose svg { width: 52%; height: 52%; }
.his-uprow { display: flex; gap: calc(var(--k) * 22px); }
.his-upcard { --c: #ffd23f; position: relative; width: calc(var(--k) * 200px); display: flex; flex-direction: column; align-items: center; gap: calc(var(--k) * 10px);
  padding: calc(var(--k) * 16px) calc(var(--k) * 12px) calc(var(--k) * 18px); border-radius: calc(var(--k) * 32px); background: #fff; box-shadow: 0 calc(var(--k) * 6px) 0 #e4c79c; }
.his-upcard.boom { animation: hisBoom 0.7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes hisBoom { 25% { transform: scale(1.14) rotate(-3deg); } 50% { transform: scale(0.97) rotate(1deg); } }
.his-upico { width: calc(var(--k) * 150px); height: calc(var(--k) * 150px); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 30%, #fff, var(--c) 72%); box-shadow: 0 0 0 calc(var(--k) * 4px) #fff, 0 calc(var(--k) * 5px) 0 calc(var(--k) * 4px) #0002; }
.his-upico svg { width: 84%; height: 84%; }
.his-upico .his-emo, .his-upico .his-lock { font-size: calc(var(--k) * 74px); }
.his-upcard.lock .his-upico { filter: grayscale(1) opacity(0.55); }
.his-uppips { display: flex; gap: calc(var(--k) * 4px); font-size: calc(var(--k) * 40px); line-height: 1; }
.his-upbtn { position: relative; display: flex; align-items: center; gap: calc(var(--k) * 8px); min-width: calc(var(--k) * 150px); height: max(76px, calc(var(--k) * 80px)); padding: 0 calc(var(--k) * 16px);
  border-radius: 99px; background: linear-gradient(180deg, #d9d2e6, #a99cbf); box-shadow: 0 calc(var(--k) * 5px) 0 #6d6280; justify-content: center; }
.his-upbtn.ok { background: linear-gradient(180deg, #a6ff9a, #37c44d 60%, #1d8f37); box-shadow: 0 calc(var(--k) * 6px) 0 #136a28, 0 0 calc(var(--k) * 18px) #9dff8a; animation: hisReady 1.1s ease-in-out infinite; }
.his-upbtn.no { animation: hisNo 0.4s; }
@keyframes hisNo { 20%, 60% { transform: translateX(calc(var(--k) * -8px)); } 40%, 80% { transform: translateX(calc(var(--k) * 8px)); } }
.his-upplus { font-weight: 900; font-size: calc(var(--k) * 52px); line-height: 1; text-shadow: 0 calc(var(--k) * 3px) 0 #0004; }
.his-upcost { display: flex; flex-wrap: wrap; max-width: calc(var(--k) * 90px); gap: calc(var(--k) * 2px); }
.his-upcost i { width: calc(var(--k) * 22px); height: calc(var(--k) * 22px); background: #ffffff55;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.his-upcost i.on { background: #ffd23f; }
.his-upmax { height: max(76px, calc(var(--k) * 80px)); display: flex; align-items: center; font-size: calc(var(--k) * 60px); color: #ffd23f; text-shadow: 0 0 calc(var(--k) * 14px) #ffef9a, 0 calc(var(--k) * 3px) 0 #b06a00; animation: hisWob 0.9s ease-in-out infinite alternate; }
/* Ekran konfeti yağmuru (seviye atlama, boss neşelenmesi) */
.his-rain { position: absolute; inset: 0; pointer-events: none; overflow: hidden; display: none; }
.his-rain.on { display: block; }
.his-rain i { position: absolute; top: -6%; width: calc(var(--k) * 14px); height: calc(var(--k) * 22px); border-radius: calc(var(--k) * 3px); opacity: 0; }
.his-rain i.c { width: calc(var(--k) * 18px); height: calc(var(--k) * 18px); border-radius: 50%; }
.his-rain.on i { animation-name: hisRain; animation-timing-function: cubic-bezier(.3, .2, .7, 1); animation-fill-mode: both; }
@keyframes hisRain { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), 112vh) rotate(var(--r)); } }
/* Büyük vuruş düğmesi: takılı ev eşyasının resmi */
.u-atk .u-atkimg { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 calc(var(--k) * 4px) calc(var(--k) * 3px) #0006); transform: rotate(-8deg); }
.u-atk.off .u-atkimg { filter: grayscale(0.6) brightness(0.8); }
.u-bico svg { width: 82%; height: 82%; display: block; }
/* Dev Ev: sıradan eşya sessizce çantaya: düğmede kısa "+" */
.u-rbtn.u-plus::after { content: "+"; position: absolute; right: -6%; top: -8%; width: 42%; height: 42%; border-radius: 50%; background: #3fd27a; color: #fff;
  font-weight: 900; font-size: calc(var(--k) * 22px); line-height: 1.6; text-align: center; box-shadow: 0 0 0 2px #fff; animation: uPlus 1.6s ease-out both; pointer-events: none; }
@keyframes uPlus { 0% { transform: scale(0); opacity: 1; } 20% { transform: scale(1.3); } 30% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40%); } }

/* Takım düğmesi: Bilbo rozeti (Takım Hamlesi'nden sonra Feza Bilbo'ya biner) */
.u-team .u-team-bilbo { position: absolute; left: calc(var(--k) * -10px); top: calc(var(--k) * -10px); width: 44%; height: 44%; border-radius: 50%;
  overflow: hidden; border: calc(var(--k) * 3px) solid #ffe8b9; background: #6b3a1e; box-shadow: 0 calc(var(--k) * 2px) calc(var(--k) * 4px) #0006; pointer-events: none; z-index: 2; }
.u-team .u-team-bilbo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.u-team.ready .u-team-bilbo { animation: hisShakeIco 0.6s ease-in-out infinite; }

/* Pırıl konuşurken sol üstteki portresi hafifçe zıplar (08j_his) */
.u-bilbo-face.talk { animation: hisTalk 0.42s ease-in-out infinite alternate; }
#ui.banner-on .u-sub { opacity: 0 !important; }
.u-banner.skill { top: 74%; scale: 0.55; }   /* (Pırıl: "Yeni Yetenek!" küçük, ekranın üstünde) */
.u-banner.skill .u-rays { display: none; }
#ui .u-banner.alan { top: calc(var(--padT) + var(--k) * 150px); scale: 0.65; }   /* (Pırıl: alan adı küçük, HUD düğmelerinin altında; varılan yeri örtmez) */
@media (orientation: portrait) {
  #ui .u-banner.alan { top: calc(var(--padT) + var(--k) * 250px); }   /* (Pırıl: dikeyde ışık yuvalarının altında) */
  #ui .sl-big { font-size: 92px; } #ui .sl-rib { font-size: 32px; }   /* (Pırıl: dikeyde başlık logosu büyük) */
}
.u-skill .u-cdn { display: none !important; }   /* (Pırıl: bekleme sayısı yok — yalnız dolan dairesel gösterge) */
@media (orientation: landscape) { #ui .u-banner.zone:not(.alan) { top: 34%; } }   /* (Pırıl: bölüm bayrağı üst HUD satırının (ışık yuvaları) altında) */
.u-bastan { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; background: rgba(20, 16, 60, 0.55); }
.u-bastan.on { display: flex; }
.u-bastan-kart { background: linear-gradient(#fffaf0, #ffecc8); border: 6px solid #fff; border-radius: 36px; padding: 26px 34px 30px; text-align: center;
  box-shadow: 0 16px 40px rgba(10, 24, 60, 0.45); max-width: min(560px, 90vw); font-family: "Avenir Next Rounded", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif; }
.u-bastan-resim { font-size: 74px; line-height: 1.1; }
.u-bastan-soru { font-size: 36px; font-weight: 900; color: #1c3568; margin-top: 6px; }
.u-bastan-not { font-size: 22px; font-weight: 700; color: #4a6b9c; margin: 4px 0 18px; }
.u-bastan-dugme { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.u-bastan-hayir { font-size: 30px !important; min-width: 300px; min-height: 84px; }
.u-bastan-evet { font-size: 20px !important; min-height: 60px; opacity: 0.9; }
/* (Pırıl: alan tabelası okunur — koyu lacivert yarı saydam bant, beyaz yazı) */
#ui .u-banner.alan .u-zrib { background: rgba(18, 38, 82, 0.84); border-top: 0; border-bottom: 0; border-radius: 999px; clip-path: none;
  padding: calc(var(--k) * 8px) calc(var(--k) * 40px * var(--zs, 1)) calc(var(--k) * 10px); box-shadow: 0 0 0 calc(var(--k) * 3px) rgba(255, 232, 160, 0.45); }
#ui .u-banner.alan .u-btitle .u-ol { --t1: #ffffff; --t2: #fff4cf; --ol: #0e2048; }
#ui.toast-on .u-sub { opacity: 0 !important; }
@media (orientation: portrait) { #ui .u-banner.skill { top: 70%; } }
#ui.boss-on.banner-on .u-sub, #ui.boss-on.toast-on .u-sub { opacity: 1 !important; }   /* (Pırıl: boss savaşında uyarı cümlesi altyazısı hiç gizlenmez) */
/* (Pırıl: rüya haritası — yuva numarasız, sıradaki ada parlar, bitmiş adalar altın rozetli) */
.u-island-number.hub { background: #2a2f6a; border-color: #c7b8ff; font-size: 13px; }
#ui .u-dream-island.next .u-island-art { filter: drop-shadow(0 0 10px #fff3b0) drop-shadow(0 0 22px #ffd76a99); animation: u-sonraki 1.6s ease-in-out infinite; }
#ui .u-dream-island.next .u-island-name { border-color: #ffe9a8; box-shadow: 0 0 14px #ffd76a88; }
@keyframes u-sonraki { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4%); } }
#ui .u-dream-island.done .u-island-number { background: #ffd76a; border-color: #fff4c8; }
#ui .u-dream-island.done .u-island-number::after { content: '⭐'; position: absolute; left: 70%; top: -70%; font-size: 18px; filter: drop-shadow(0 0 5px #ffd76a); }   /* (Pırıl: biten diyar rozeti — numaranın yanında küçük altın yıldız) */
.u-wodul { display: flex; align-items: center; gap: 14px; margin: 8px auto 4px; padding: 10px 18px; border-radius: 22px; background: linear-gradient(#fff8e2, #ffe9b8); border: 3px solid #fff; box-shadow: 0 6px 16px rgba(60, 40, 120, 0.3); color: #5a3a12; max-width: 92%; }
.u-wodul-resim { width: 72px; height: 72px; flex: none; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #ffd76a); }
.u-wodul-resim img, .u-wodul-resim svg { max-width: 64px; max-height: 64px; }
.u-wodul-yazi { display: flex; flex-direction: column; text-align: left; }
.u-wodul-yazi small { font-size: 15px; font-weight: 800; opacity: .85; } .u-wodul-yazi b { font-size: 22px; font-weight: 900; }

/* ── Başlık ekranı (MOTOR1, ebeveyn geri bildirimi): küçük düğmeler, tek sıra, ekranın altında; Feza ve Pırıl'ın üstüne binmez ── */
#ui .u-title { padding-top: calc(var(--padT) + 2vh); padding-bottom: calc(var(--padB) + 2.2vh); }
#ui .u-tbtns { flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: center; gap: calc(var(--k) * 16px); }
#ui .u-tbtns .u-btn { min-height: calc(var(--k) * 46px); min-width: calc(var(--k) * 150px); font-size: calc(var(--k) * 22px); padding: 0 .9em; white-space: nowrap; }
#ui .u-tbtns .u-btn.main { min-height: calc(var(--k) * 60px); min-width: calc(var(--k) * 210px); font-size: calc(var(--k) * 30px); animation: none; }
#ui .u-tbtns .u-btn .u-svg { width: 1em; height: 1em; }
#ui .u-tbtns .u-title-map { min-width: calc(var(--k) * 150px); white-space: nowrap; padding: 0 .9em; line-height: 1.1; }
#ui .u-tbtns #contBtn, #ui .u-tbtns .u-btn.b { order: 1; }
#ui .u-tbtns .u-btn.main { order: 2; }
#ui .u-tbtns .u-title-map { order: 3; }
#ui .u-tbtns .u-btn:not(.main):not(.u-title-map) { order: 1; }
@media (max-aspect-ratio: 1/1) { #ui .u-tbtns { flex-direction: row; flex-wrap: wrap; } #ui .u-title { padding-bottom: calc(var(--padB) + 3vh); } }

/* ── Dünya Haritası (MOTOR1): 10 diyar iki sıralı zigzag + Büyük Fener ── */
.u-dream-fener { position: absolute; left: 50%; top: 1%; width: 17%; transform: translateX(-50%); pointer-events: none; }
.u-dream-fener svg { width: 100%; display: block; filter: drop-shadow(0 4px 8px #0008); }
#ui .u-dream-island { width: 15.5%; }
#ui .u-dream-island .u-island-name { font-size: clamp(9px, 1.25vw, 15px); padding: 3px 7px; margin-top: -8px; }
.u-dream-island .u-island-number { left: 12%; top: 40%; width: 18px; height: 18px; font-size: 10px; }
.u-island-star { display: none; position: absolute; right: 8%; top: 6%; font-size: clamp(16px, 2.6vw, 30px); filter: drop-shadow(0 2px 3px #0008); }
.u-dream-island.done .u-island-star { display: block; }
.u-island-lock { display: none; position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font-size: clamp(16px, 2.6vw, 28px); }
.u-dream-island.locked .u-island-lock { display: block; }
.u-dream-island.locked .u-island-art, .u-dream-island.locked .u-island-name { filter: grayscale(.8) brightness(.62); }
.u-dream-island.next .u-island-art { animation: u-next-glow 1.8s ease-in-out infinite; }
@keyframes u-next-glow { 0%, 100% { filter: drop-shadow(0 0 4px #ffe9a8) drop-shadow(0 6px 6px #070c2855); } 50% { filter: drop-shadow(0 0 20px #fff3c4) drop-shadow(0 6px 6px #070c2855); } }
.u-dream-island.next .u-island-name { border-color: #ffe27a; box-shadow: 0 0 14px #ffe27a88; }
@media (max-aspect-ratio: 1/1) { .u-dream-board { aspect-ratio: 1000 / 1000; } #ui .u-dream-island { width: 21%; } .u-dream-fener { width: 24%; } }
.u-dream-island .u-island-name { white-space: nowrap; }
/* ── HUD: Büyük Fener ışık parçaları (9 + 10. yuva) ── */
.u-parts { display: flex; gap: calc(var(--k) * 4px); align-items: center; align-self: flex-start; padding: calc(var(--k) * 4px) calc(var(--k) * 8px); border-radius: 99px; background: #14183c99; }
.u-parts i { width: calc(var(--k) * 11px); height: calc(var(--k) * 15px); border-radius: 3px; background: #39426a; box-shadow: inset 0 0 0 1.5px #ffffff33; }
.u-parts i.on { background: var(--c); box-shadow: 0 0 6px var(--c), inset 0 0 0 1.5px #fff8; }
.u-parts b { width: calc(var(--k) * 13px); height: calc(var(--k) * 13px); margin-left: calc(var(--k) * 3px); border-radius: 50%; background: #2a2f55; box-shadow: inset 0 0 0 2px #ffffff55; }
.u-parts b.on { background: #ffe27a; box-shadow: 0 0 8px #ffe27a, inset 0 0 0 2px #fff; }
/* ── Yolculuk sahnesi ── */
.u-dream-travel { background: linear-gradient(180deg, #141a45, #1d2a52); opacity: 0; transition: opacity 1s; }
.u-dream-travel.go { opacity: 1; }
.u-dream-travel.out { opacity: 0; transition: opacity .6s; }
.u-dream-travel-art svg { width: 100%; height: 100%; }
.u-dream-travel.go .u-dt-mover { animation: u-dt-fly 9s ease-in-out forwards; }
.u-dt-ride { animation: u-dt-bob 1.6s ease-in-out infinite alternate; }
@keyframes u-dt-fly { 0% { transform: translate(110px, 215px); } 40% { transform: translate(300px, 255px); } 75% { transform: translate(470px, 170px); } 100% { transform: translate(640px, 110px) scale(.6); } }
@keyframes u-dt-bob { from { transform: translateY(-5px) rotate(-2deg); } to { transform: translateY(6px) rotate(2deg); } }
.u-dt-name { position: absolute; left: 0; right: 0; bottom: 9%; display: flex; align-items: center; justify-content: center; gap: .4em; font: 900 clamp(26px, 4.4vw, 52px)/1.1 var(--f); color: #fff1c8; text-shadow: 0 3px 0 #14132f; opacity: 0; transform: translateY(14px); transition: opacity .8s, transform .8s; pointer-events: none; }
.u-dt-name.on { opacity: 1; transform: none; }
.u-dt-ico { font-size: 1.2em; }
#ui .u-dt-skip { position: absolute; right: calc(var(--padR, 14px) + 8px); bottom: calc(var(--padB, 14px) + 10px); min-height: calc(var(--k) * 44px); min-width: 0; font-size: calc(var(--k) * 20px); opacity: .9; }
.u-dt-skip .u-svg { width: 1em; height: 1em; }
/* başlık düğmeleri: hepsi AYNI boyda (Oyna, Dünya Haritası, Devam Et), yan yana, simetrik */
#ui .u-tbtns .u-btn, #ui .u-tbtns .u-btn.main, #ui .u-tbtns .u-title-map { width: calc(var(--k) * 240px); min-width: calc(var(--k) * 240px); min-height: calc(var(--k) * 52px); height: calc(var(--k) * 52px); font-size: calc(var(--k) * 22px); padding: 0 .5em; box-sizing: border-box; animation: none; }
#ui .u-tbtns { flex-wrap: nowrap; }
@media (max-aspect-ratio: 1/1) { #ui .u-tbtns { flex-wrap: nowrap; } #ui .u-tbtns .u-btn, #ui .u-tbtns .u-btn.main, #ui .u-tbtns .u-title-map { width: calc(var(--k) * 190px); min-width: 0; font-size: calc(var(--k) * 21px); } }

/* Zıp düğmesi (07_game kendi oluşturur): SOL altta, can topunun hemen ÜSTÜNDE (anlatıcı: "Sol alttaki yıldız düğmesi");
   sağdaki Kılıç / Pırıl gücü / yetenek düğmeleriyle ve alttaki altyazıyla çakışmaz (dikey ekranda da) */
#zipBtn { right: auto !important; left: calc(var(--k) * 40px + max(14px, env(safe-area-inset-left))) !important; bottom: calc(var(--k) * 228px + max(14px, env(safe-area-inset-bottom))) !important; width: calc(var(--k) * 100px) !important; height: calc(var(--k) * 100px) !important; }

/* ── Sol üst HUD sadeleştirme (ebeveyn kararı): ana ilerleme = Büyük Fener'in 10 ışık yuvası; XP + altın küçük ve silik ── */
.his-malz { display: none !important; }   /* eski "5 ejderha ışığı" sırası kalktı (08j_his.js yine kurar, görünmez) */
.u-stats { gap: calc(var(--k) * 5px); }
.u-parts { order: 1; gap: calc(var(--k) * 6px); padding: calc(var(--k) * 7px) calc(var(--k) * 12px); background: #10153ccc; box-shadow: 0 0 0 calc(var(--k) * 2px) #ffffff40, 0 calc(var(--k) * 3px) calc(var(--k) * 8px) #0007; }
.u-parts i { width: calc(var(--k) * 19px); height: calc(var(--k) * 25px); border-radius: calc(var(--k) * 6px) calc(var(--k) * 6px) calc(var(--k) * 3px) calc(var(--k) * 3px);
  background: color-mix(in srgb, var(--c) 28%, #232a55); box-shadow: inset 0 0 0 calc(var(--k) * 2px) color-mix(in srgb, var(--c) 55%, #ffffff30); }
.u-parts i.on { background: radial-gradient(circle at 50% 35%, #fff, var(--c) 65%); box-shadow: 0 0 calc(var(--k) * 10px) var(--c), inset 0 0 0 calc(var(--k) * 2px) #fffc; }
.u-parts b { width: calc(var(--k) * 24px); height: calc(var(--k) * 24px); border-radius: 50%; background: #232a55; box-shadow: inset 0 0 0 calc(var(--k) * 2px) #ffe9a0aa; }
.u-parts b.on { background: radial-gradient(circle, #fff, #ffd35a 70%); box-shadow: 0 0 calc(var(--k) * 12px) #ffd35a; }
.u-parts .cur { animation: u-curpulse 1.6s ease-in-out infinite; }
@keyframes u-curpulse { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.18); filter: brightness(1.5); } }
.u-xp { order: 2; width: calc(var(--k) * 118px); height: calc(var(--k) * 13px); opacity: 0.62; }
.u-gold { order: 3; font-size: calc(var(--k) * 17px); gap: calc(var(--k) * 5px); opacity: 0.7; }
.u-gold .u-coin { width: calc(var(--k) * 19px); height: calc(var(--k) * 19px); }
.u-difficulty-tag { order: 4; }
@media (prefers-reduced-motion: reduce) { .u-parts .cur { animation: none; } }
@media (max-aspect-ratio: 1/1) {   /* dikey ekran: ışık çubuğu portrelerin ALTINA iner, düğmelerin altından geçmez */
  .u-tl { flex-direction: column; align-items: flex-start; gap: calc(var(--k) * 4px); }
  .u-tl .u-stats { padding-left: calc(var(--k) * 4px); }
  .his-col { top: calc(var(--k) * 206px); }   /* yıldız şeker düğmesi çubukların altında */
}

.u-difficulty-tag, .u-difficulty { display: none !important; }   /* zorluk seçimi kaldırıldı */

/* Mor yalnız Pırıl'ın: bölüm bayrağı şeridi ve bölüm sonu kartı bölüm temasına göre sıcak / mavi */
.u-banner.t-forest { --zr1: #e8a040; --zr2: #a85a18; }
.u-banner.t-cave { --zr1: #4aa6e8; --zr2: #1c5aa8; }
.u-banner.t-volcano { --zr1: #f27a3a; --zr2: #b0381a; }
.u-banner.t-castle { --zr1: #5a8cf0; --zr2: #2a4cb0; }
.u-banner.t-moon { --zr1: #4f78e0; --zr2: #26358f; }
.u-banner .u-bsub { --t2: #dcecff; }
.u-win.u-dim { background: radial-gradient(circle at 50% 45%, rgba(20, 50, 100, 0.55), rgba(6, 16, 40, 0.84)); }
.u-win .u-panel { background: radial-gradient(ellipse at 50% 0%, #4a90e0, #23559f 55%, #153466) padding-box, var(--gold) border-box; }
.u-xpstar { display: none !important; }

/* Mola menüsü küçültüldü */
.u-pause-panel { width: calc(var(--k) * 330px); max-width: 90%; padding: calc(var(--k) * 14px) calc(var(--k) * 18px); gap: calc(var(--k) * 6px); }
.u-pause-panel .u-ptitle { font-size: calc(var(--k) * 36px); margin-bottom: 0; }
.u-pause-panel .u-main { gap: calc(var(--k) * 8px); }
.u-pause-panel .u-btn, .u-pause-panel .u-btn.wide, .u-pause-panel .u-btn.p.wide { min-height: calc(var(--k) * 46px); font-size: calc(var(--k) * 21px); }
.u-pause-panel .u-btn svg { width: calc(var(--k) * 20px); height: calc(var(--k) * 20px); }

/* Boss can çubuğu: ekranın tam ortasında */
.u-boss { left: 0; right: 0; margin: 0 auto; width: min(calc(var(--k) * 520px), 70%); max-width: none; }
.u-pause-panel:not(.asking):not(.choosing-difficulty) .u-main { display: flex; flex-direction: column; gap: calc(var(--k) * 8px); }
.u-pause-panel .u-btn span { white-space: nowrap; }
.u-pause-panel .u-btn, .u-pause-panel .u-btn.wide { min-width: 0; width: 100%; box-sizing: border-box; }

/* Yıldızla yetenek geliştirme kaldırıldı: düğme, kademe yıldızları ve panel görünmez */
.his-starbtn, .his-pips, .his-up { display: none !important; }

/* Sinematik sırasında sağ üstteki mini harita ve düğmeler tamamen gizlenir ("Geç" düğmesiyle asla çakışmaz) */
#ui.cine-on .u-mini, #ui.cine-on .u-sbtns, .st-cinema #ui .u-tr { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

/* ── Dokunma boyu (5 yaş parmağı): her düğme en az ~60 px; küçük kalanlar büyütüldü ── */
/* başlık (dikey): üç düğme yan yana sığar, yazı kesilmez ("Dünya Haritası" kenara taşıyordu) */
@media (max-aspect-ratio: 1/1) {
  body #ui .u-title .u-tbtns { gap: 2vw; max-width: 97vw; }
  body #ui .u-title .u-tbtns .u-btn, body #ui .u-title .u-tbtns .u-btn.main, body #ui .u-title .u-tbtns .u-title-map {
    width: 31vw; max-width: 31vw; min-width: 0; height: max(64px, calc(var(--k) * 62px)); min-height: max(64px, calc(var(--k) * 62px));
    font-size: clamp(15px, 2.5vw, 22px); padding: 0 .4em !important; }
}
body #ui .u-title .u-tbtns .u-btn, body #ui .u-title .u-tbtns .u-btn.main, body #ui .u-title .u-tbtns .u-title-map { min-height: max(62px, calc(var(--k) * 56px)); }
/* Mola: küçük panel kalır, düğmeler parmak boyu */
.u-pause-panel .u-btn, .u-pause-panel .u-btn.wide, .u-pause-panel .u-btn.p.wide { min-height: max(60px, calc(var(--k) * 56px)); }
/* kahraman seçimi › Geri; yolculuk › Geç */
#ui .u-choiceback { min-height: 62px; min-width: 150px; }
#ui .u-dt-skip { min-height: max(64px, calc(var(--k) * 64px)); min-width: max(130px, calc(var(--k) * 130px)); font-size: calc(var(--k) * 24px); }
/* oyunun kendi sinematik "Geç ▸" düğmesi (07_game, sınıfsız): masalın "Geç" düğmesiyle aynı boy ve yer */
body > button:not([id]):not([class]) { min-height: 72px !important; min-width: 130px !important; font-size: 24px !important; border-color: #ffe38a !important; border-width: 4px !important;
  top: calc(env(safe-area-inset-top, 0px) + 16px) !important; right: calc(env(safe-area-inset-right, 0px) + 16px) !important; background: linear-gradient(180deg, #5aa8ff, #2a62c8) !important; border-radius: 40px !important; }
/* Dünya Haritası › Kapat: parmak boyu */
#ui .u-dream-screen .u-dream-top-close { min-height: 62px; min-width: 130px; padding: 8px 20px; font-size: 20px; border-radius: 31px; }
#ui .u-dream-screen .u-dream-top-close .u-svg { width: 20px; height: 20px; }
/* dikey ekranda Zıp düğmesi (sol alt, can topunun üstü) altyazının altında kalıyordu: Zıp görünürken altyazı onun üstüne çıkar */
@media (max-aspect-ratio: 1/1) {
  body:has(> #zipBtn[style*="display: block"]) #ui.hud-on .u-sub { bottom: calc(var(--padB) + var(--k) * 352px); }
}
/* Zıp düğmesi (07_game, #ui dışında) menü / harita / yolculuk / sinematik / bitiş ekranının ÜSTÜNDE kalıyordu: o anlarda gizli */
body:has(#ui.menu-on) #zipBtn, body:has(#ui.journey-on) #zipBtn, body:has(#ui.cine-on) #zipBtn, body:has(#ui:not(.hud-on)) #zipBtn, body.st-cinema #zipBtn { display: none !important; }

/* Dikey ekran: Zıp düğmesi yatayla AYNI yerde (can topunun hemen üstü, 228); altyazı yukarıdaki :has kuralıyla onun ÜSTÜNE çıkar (352).
   Eskiden ikisi birden yukarı kaçıyordu (Zıp 390) ve Zıp altyazının ortasına biniyordu. */
@media (orientation: portrait) { #zipBtn { bottom: calc(var(--k) * 228px + max(14px, env(safe-area-inset-bottom))) !important; } }
/* Bölüm yüklenirken (yıldızlı perde) Zıp düğmesi perdenin üstünde görünüyordu: perde kalkana dek gizli */
body:has(> #uiFade.load:not([style*="opacity: 0;"])) #zipBtn { display: none !important; }
