/* Bakuvi Oyunları — ortaq üslub (ayarlar, hesab pəncərəsi, bildiriş, hekayə) */
.bk-layer, .bk-intro, .bk-toast { font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #eef3ff; }
.bk-layer { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(4, 6, 16, .74); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); padding: 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); box-sizing: border-box; overflow: auto; }
.bk-layer[hidden] { display: none; }
.bk-panel { width: min(440px, 100%); box-sizing: border-box; background: rgba(11, 17, 38, .97); border: 1px solid rgba(125, 165, 255, .25); border-radius: 22px; padding: 24px 24px 20px; box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .7); animation: bkPin .25s ease-out; }
@keyframes bkPin { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.bk-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #38bdf8; }
.bk-panel h2 { margin: 4px 0 14px; font-size: 26px; font-weight: 900; line-height: 1.15; text-wrap: balance; }
.bk-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; margin: 12px 0; font-weight: 800; font-size: 15px; }
.bk-val { font-variant-numeric: tabular-nums; color: #93c5fd; font-size: 14px; }
.bk-row input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: #3b82f6; height: 28px; margin: 0; }
.bk-hint { color: #a3b3d8; font-size: 13px; font-weight: 600; margin: 8px 0 0; line-height: 1.45; }
.bk-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.bk-btn { font: inherit; font-weight: 800; font-size: 15px; padding: 11px 18px; border-radius: 12px; border: 1px solid rgba(125, 165, 255, .28); background: rgba(255, 255, 255, .06); color: #eef3ff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; }
.bk-btn.bk-primary { background: linear-gradient(180deg, #4f8dff, #2f6ae6); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -10px rgba(59, 130, 246, .9); }
.bk-btn:focus-visible, .bk-skip:focus-visible, .bk-nav:focus-visible, .bk-link:focus-visible, .bk-row input:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }

/* ---- Hesab pəncərəsi ---- */
.bk-p { margin: 0 0 8px; color: #c7d2ee; font-size: 15px; font-weight: 700; }
.bk-list { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.bk-list li { position: relative; padding-left: 28px; font-size: 15px; font-weight: 700; line-height: 1.4; }
.bk-list li::before { content: ""; position: absolute; left: 2px; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: #22c55e; }
.bk-list li::after { content: ""; position: absolute; left: 7.5px; top: 5.5px; width: 5px; height: 8px; border: solid #04130a; border-width: 0 2.2px 2.2px 0; transform: rotate(42deg); }
.bk-warn { margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .4); color: #fde68a; font-size: 14px; font-weight: 700; line-height: 1.45; }
.bk-gbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-link { display: block; width: 100%; margin-top: 12px; padding: 10px; background: none; border: 0; color: #a3b3d8; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; border-radius: 10px; }
.bk-link:hover { color: #fff; }
.bk-acc { font-size: 13px; font-weight: 700; color: #a3b3d8; }
.bk-acc a { color: #93c5fd; }
.bk-acc-in { color: #86efac; }

/* ---- Bildiriş ---- */
.bk-toast { position: fixed; z-index: 130; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -16px); opacity: 0; transition: opacity .3s, transform .3s; background: rgba(11, 17, 38, .95); border: 1px solid rgba(125, 165, 255, .3); border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 800; max-width: calc(100vw - 32px); box-sizing: border-box; pointer-events: none; }
.bk-toast.bk-on { opacity: 1; transform: translate(-50%, 0); }

/* ---- Hekayə ---- */
.bk-intro { position: fixed; inset: 0; z-index: 110; background: #050816; overflow: hidden; touch-action: manipulation; cursor: pointer; transition: opacity .26s; -webkit-user-select: none; user-select: none; }
.bk-intro.bk-out { opacity: 0; }
.bk-tap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; font: inherit; font-weight: 900; font-size: 19px; display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px 16px 18px; border-radius: 999px; border: 0; color: #fff; background: linear-gradient(180deg, #4f8dff, #2f6ae6); box-shadow: 0 18px 44px -14px rgba(59, 130, 246, .95); cursor: pointer; animation: bk-tp 1.6s ease-in-out infinite; }
.bk-tap-i { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 16px; }
@keyframes bk-tp { 50% { box-shadow: 0 0 0 10px rgba(79, 141, 255, .2), 0 18px 44px -14px rgba(59, 130, 246, .95); } }
.bk-intro.bk-wait .bk-sub { opacity: 0; pointer-events: none; }
.bk-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bk-bar { position: absolute; left: 0; right: 0; height: 5.5vh; background: #000; opacity: .82; pointer-events: none; }
.bk-bar-t { top: 0; } .bk-bar-b { bottom: 0; }
.bk-sub { position: absolute; left: 50%; bottom: calc(3.2vh + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(820px, calc(100% - 32px)); box-sizing: border-box; background: rgba(6, 10, 26, .8); border: 1px solid rgba(125, 165, 255, .28); border-radius: 18px; padding: 14px 18px 12px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: default; }
.bk-name { font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #38bdf8; }
.bk-line { margin: 5px 0 10px; font-size: clamp(16px, 2.3vw, 21px); font-weight: 700; line-height: 1.45; min-height: 2.9em; }
.bk-ctl { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bk-nav { font: inherit; font-size: 14px; font-weight: 800; padding: 8px 14px; min-height: 40px; border-radius: 11px; border: 1px solid rgba(125, 165, 255, .3); background: rgba(255, 255, 255, .06); color: #eef3ff; cursor: pointer; white-space: nowrap; }
.bk-nav:disabled { opacity: .35; cursor: default; }
.bk-nav-next { background: linear-gradient(180deg, #4f8dff, #2f6ae6); border-color: transparent; color: #fff; }
.bk-dots { display: flex; gap: 6px; }
.bk-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .2); transition: background .2s, transform .2s; }
.bk-dots i.bk-d { background: rgba(147, 197, 253, .7); }
.bk-dots i.bk-c { background: #fff; transform: scale(1.35); }
.bk-skip { position: absolute; top: calc(7vh + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); font: inherit; font-weight: 800; font-size: 14px; padding: 9px 15px; min-height: 40px; border-radius: 12px; border: 1px solid rgba(125, 165, 255, .35); background: rgba(10, 16, 36, .72); color: #eef3ff; cursor: pointer; }
@media (max-width: 640px) { .bk-sub { padding: 12px 14px 10px; } .bk-gbtns { grid-template-columns: 1fr; } .bk-bar { height: 3vh; } }
@media (prefers-reduced-motion: reduce) { .bk-panel { animation: none !important; } }

/* ---- Telefon (üfüqi, alçaq ekran): pəncərələr yığcam olur, səhnə görünür ---- */
@media (max-height: 520px) {
  .bk-layer { align-items: center; padding-block: 8px; }
  .bk-panel { padding: 14px 18px 12px; border-radius: 16px; width: min(560px, 100%); }
  .bk-panel h2 { font-size: 20px; margin: 2px 0 8px; }
  .bk-p { font-size: 13px; margin-bottom: 6px; }
  .bk-list { gap: 4px; margin-bottom: 8px; }
  .bk-list li { font-size: 13px; padding-left: 24px; }
  .bk-list li::before { width: 15px; height: 15px; top: 1px; }
  .bk-list li::after { left: 6.5px; top: 4px; }
  .bk-warn { font-size: 12px; padding: 6px 10px; margin-bottom: 10px; }
  .bk-gbtns { grid-template-columns: 1fr 1fr; }
  .bk-btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
  .bk-link { margin-top: 4px; padding: 6px; }
  .bk-row { margin: 6px 0; }
  .bk-bar { height: 0; }
  /* Mətn qutusu ekranın yarısını tutur və danışanın əks tərəfində durur — personaj və hərəkətli fon açıq qalır */
  .bk-sub { width: min(420px, 47%); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); transform: none; padding: 9px 12px 8px; border-radius: 14px; background: rgba(6, 10, 26, .66); }
  .bk-intro.bk-sl .bk-sub { left: calc(12px + env(safe-area-inset-left, 0px)); right: auto; }
  .bk-intro.bk-sr .bk-sub { left: auto; right: calc(12px + env(safe-area-inset-right, 0px)); }
  .bk-name { font-size: 10.5px; }
  .bk-line { font-size: 14px; line-height: 1.38; margin: 2px 0 7px; min-height: 2.6em; max-height: 46vh; overflow: hidden; }
  .bk-nav { min-height: 32px; padding: 4px 11px; font-size: 12.5px; }
  .bk-dots { gap: 4px; } .bk-dots i { width: 6px; height: 6px; }
  .bk-skip { top: calc(8px + env(safe-area-inset-top, 0px)); min-height: 34px; padding: 6px 12px; }
}

/* Çətinlik seçimi (bütün oyunlar) */
.bk-diff { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 2px; }
.bk-diff-l { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #a3b3d8; margin-right: 4px; }
.bk-dchip { font: inherit; font-size: 13.5px; font-weight: 800; padding: 7px 14px; min-height: 36px; border-radius: 999px; border: 1px solid rgba(125, 165, 255, .3); background: rgba(255, 255, 255, .05); color: #dbe6ff; cursor: pointer; }
.bk-dchip.on.bk-d-easy { background: #16a34a; border-color: #4ade80; color: #fff; }
.bk-dchip.on.bk-d-mid { background: #2563eb; border-color: #93c5fd; color: #fff; }
.bk-dchip.on.bk-d-hard { background: #dc2626; border-color: #fca5a5; color: #fff; box-shadow: 0 0 18px -4px rgba(239, 68, 68, .9); }
.bk-dchip:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }
.bk-diff-d { flex-basis: 100%; font-size: 12.5px; font-weight: 700; color: #a3b3d8; }
