/* Menu debugowania (klawisz O) */
#dbgmenu { position: fixed; inset: 0; z-index: 130; display: none; align-items: flex-start; padding-top: 7vh; box-sizing: border-box; justify-content: center; background: rgba(8,10,6,.55); backdrop-filter: blur(2px); font-family: Bahnschrift, 'Segoe UI', sans-serif; }
#dbgmenu.on { display: flex; }
.dg-box { position: relative; width: min(760px, 96vw); max-height: 90vh; display: flex; flex-direction: column; padding: 16px 20px 18px; background: rgba(22,25,17,.97); border: 1px solid #5a5746; box-shadow: 0 10px 40px rgba(0,0,0,.6); animation: bnIn .25s cubic-bezier(.2,1.2,.4,1) both; color: #e6e0c4; }
.dg-box .win-x { top: 10px; right: 10px; }
.dg-box h2 { margin: 0 0 10px; font: 800 14px Bahnschrift, sans-serif; letter-spacing: .26em; text-transform: uppercase; color: #e0b64a; }
.dg-tabs { display: flex; gap: 4px; margin-bottom: 10px; border-bottom: 1px solid #3a3d2e; }
.dg-tab { padding: 7px 16px; font: 800 12px Bahnschrift, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #a8a48a; background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.dg-tab:hover { color: #e6e0c4; }
.dg-tab.on { color: #e6e0c4; border-bottom-color: #e0b64a; }
.dg-body { overflow: auto; padding-right: 4px; }
.dg-sec { margin-bottom: 12px; }
.dg-sec h3 { margin: 0 0 6px; font: 700 11px Bahnschrift, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #8b8869; }
.dg-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dg-b { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font: 700 13px Bahnschrift, sans-serif; letter-spacing: .04em; color: #e6e0c4; background: rgba(10,12,8,.65); border: 1px solid #4a4d3a; cursor: pointer; transition: border-color .1s, background .1s, transform .08s; }
.dg-b:hover { border-color: #e0b64a; background: rgba(40,44,30,.8); }
.dg-b:active { transform: translateY(1px); }
.dg-b.sm { padding: 4px 9px; font-size: 12px; }
.dg-b.on { color: #14160f; background: #e0b64a; border-color: #e0b64a; }
.dg-b.hit, .dg-tile.hit { animation: dgHit .35s ease-out; }
@keyframes dgHit { 0% { box-shadow: 0 0 0 0 rgba(224,182,74,.8); } 100% { box-shadow: 0 0 0 10px rgba(224,182,74,0); } }
.dg-r { display: flex; align-items: center; gap: 10px; flex: 1 1 100%; font: 700 12px Bahnschrift, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #a8a48a; }
.dg-r input { flex: 1; accent-color: #e0b64a; }
.dg-r b { min-width: 48px; color: #e6e0c4; font-size: 15px; }
.dg-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; flex: 1 1 100%; }
.dg-pick > span { margin-right: 6px; font: 700 12px Bahnschrift, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #a8a48a; }
.dg-items, .dg-zom { flex: 1 1 100%; }
.dg-bar { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 8px; }
.dg-rar { display: inline-flex; gap: 3px; margin: 0 8px; }
.dg-rb { width: 22px; height: 22px; padding: 0; background: var(--rc); border: 2px solid rgba(0,0,0,.55); cursor: pointer; opacity: .55; }
.dg-rb.on { opacity: 1; outline: 2px solid #e6e0c4; }
.dg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; max-height: 250px; overflow: auto; }
.dg-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 5px; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 26%, transparent), rgba(10,12,8,.65)); border: 1px solid var(--rc); cursor: pointer; }
.dg-tile:hover { filter: brightness(1.25); }
.dg-tile em { font: 700 11px Bahnschrift, sans-serif; font-style: normal; color: #e6e0c4; text-align: center; line-height: 1.1; }
.dg-names { display: flex; flex-wrap: wrap; gap: 5px; }
.dg-info { display: grid; grid-template-columns: 150px 1fr; gap: 3px 14px; flex: 1 1 100%; font: 700 14px Bahnschrift, sans-serif; }
.dg-info span { color: #8b8869; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.dg-info b { color: #e6e0c4; }

/* DEBUG2: sekcja zwijana nagłówkiem */
.dg-sec h3 { cursor: pointer; }
.dg-sec.fold .dg-row { display: none; }
