/* KANEC – štýly hry (dopĺňa /include/style.css) */
#kanec h1 { text-align: center; font-size: clamp(2.2rem, 7vw, 3.6rem); letter-spacing: 3px; text-transform: uppercase; }
#kanec .zb-intro-text { max-width: 820px; margin: 0 auto 10px; text-align: center; }

.zb-game {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 82vh;
    margin: 10px auto 30px;
    border-radius: 18px;
    overflow: hidden;
    background: #b9b25e;
    border: 3px solid var(--green, #53fc18);
    box-shadow: 0 0 0 4px #000, 0 12px 40px rgba(83, 252, 24, 0.25);
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.zb-game canvas { display: block; width: 100%; height: 100%; outline: none; }
.zb-game:fullscreen { max-height: none; border-radius: 0; border: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.zb-game:-webkit-full-screen { max-height: none; border-radius: 0; border: 0; width: 100vw; height: 100vh; }

.zb-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; text-shadow: 0 2px 0 #000; }
.zb-ready .zb-loading { display: none; }

.zb-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 14px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.78));
    z-index: 5;
    overflow-y: auto;
}
.zb-hidden { display: none !important; }
.zb-panel {
    position: relative;
    background: linear-gradient(180deg, #2b2f36 0%, #16181c 100%);
    border: 4px solid #000;
    outline: 3px solid var(--green, #53fc18);
    border-radius: 22px;
    padding: 18px 22px 20px;
    max-width: 760px; width: 100%;
    max-height: 100%;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 10px 0 #000, 0 18px 40px rgba(0, 0, 0, 0.6);
    animation: zbPop 0.28s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes zbPop { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.zb-title {
    margin: 0 0 6px;
    font-size: clamp(1.9rem, 5.5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--green, #53fc18);
    -webkit-text-stroke: 2px #000;
    text-shadow: 0 4px 0 #000, 0 0 24px rgba(83, 252, 24, 0.5);
}
.zb-title.zb-small { font-size: clamp(1.5rem, 4vw, 2.3rem); }
.zb-red { color: #ff3b3b !important; text-shadow: 0 4px 0 #000, 0 0 24px rgba(255, 59, 59, 0.5) !important; }
.zb-lead, .zb-sub { margin: 0 0 8px; font-size: 0.95rem; padding: 4px 0; }
.zb-howto { list-style: none; margin: 6px 0 10px; padding: 0; text-align: left; font-size: 0.86rem; line-height: 1.45; }
.zb-howto li { display: flex; align-items: center; gap: 8px; padding: 3px 0; flex-wrap: wrap; }
.zb-howto img { width: 26px; height: 26px; flex: 0 0 auto; }
kbd {
    display: inline-block; min-width: 1.6em; padding: 1px 6px;
    background: #f0f0f0; color: #111; border-radius: 6px; border-bottom: 3px solid #888;
    font-weight: 700; font-size: 0.8rem; text-align: center; font-family: inherit;
}
.zb-gem { display: inline-block; width: 14px; height: 18px; background: linear-gradient(#c6ff9a, #2fb52a); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); flex: 0 0 auto; }
.zb-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #000; flex: 0 0 auto; }
.zb-dot-gold { background: linear-gradient(#fff2a0, #c98a07); }
.zb-dot-cz { background: linear-gradient(180deg, #fff 50%, #d7141a 50%); position: relative; overflow: hidden; }
.zb-dot-cz::after { content: ''; position: absolute; left: 0; top: 0; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 7px solid #11457e; }
.zb-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 6px 0; }
.zb-chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(83, 252, 24, 0.6); border-radius: 30px; padding: 2px 10px 2px 3px; font-size: 0.78rem; font-weight: 700; }
.zb-chip img { width: 26px; height: 26px; }
.zb-chip-bad { border-color: rgba(255, 80, 80, 0.7); }

.zb-btn {
    margin-top: 10px;
    font: 700 1.25rem Poppins, sans-serif;
    padding: 10px 34px 12px;
    color: #000;
    background: linear-gradient(180deg, #b4ff8a 0%, #53fc18 55%, #2fb000 100%);
    border: 3px solid #000;
    border-radius: 16px;
    box-shadow: 0 6px 0 #000, inset 0 2px 0 rgba(255, 255, 255, 0.6);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.08s;
}
.zb-btn small { font-size: 0.7rem; opacity: 0.7; text-transform: none; }
.zb-btn:hover { transform: translateY(-2px); }
.zb-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #000; }
.zb-btn:disabled { filter: grayscale(1); opacity: 0.6; cursor: default; transform: none; }

/* level up karty */
.zb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.zb-card {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 14px 10px 12px;
    background: linear-gradient(180deg, #3b4150, #1e2129);
    color: #fff;
    border: 3px solid #000;
    outline: 2px solid #5fe1ff;
    border-radius: 16px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 6px 0 #000;
    transition: transform 0.1s, outline-color 0.1s;
}
.zb-card:hover, .zb-card:focus-visible { transform: translateY(-4px) scale(1.03); outline-color: var(--green, #53fc18); }
.zb-card img { width: 74px; height: 74px; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.5)); }
.zb-card strong { font-size: 1.1rem; }
.zb-card .zb-lv { font-size: 0.75rem; color: #ffe14a; font-weight: 700; }
.zb-card .zb-stars { letter-spacing: 1px; }
.zb-card .zb-desc { font-size: 0.8rem; line-height: 1.3; color: #dfe6ee; }
.zb-card .zb-key { position: absolute; top: 6px; left: 8px; background: #000; color: var(--green, #53fc18); border-radius: 8px; padding: 0 7px; font-weight: 700; font-size: 0.8rem; }
.zb-card.zb-new::after { content: 'NOVÉ'; position: absolute; top: -10px; right: -6px; background: #ff3b5c; color: #fff; font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; border: 2px solid #000; transform: rotate(8deg); }

/* automat */
.zb-slot-panel { max-width: 460px; outline-color: #ffd23a; }
.zb-machine {
    position: relative; margin: 8px auto 4px; padding: 26px 18px 18px; width: 300px; max-width: 100%;
    background: linear-gradient(180deg, #ff5a5a, #a40f0f);
    border: 4px solid #000; border-radius: 22px;
    box-shadow: 0 8px 0 #000, inset 0 4px 0 rgba(255, 255, 255, 0.35);
}
.zb-lights { position: absolute; top: 8px; left: 20px; right: 20px; height: 10px; background: radial-gradient(circle, #ffe14a 3px, transparent 4px) 0 0 / 20px 10px repeat-x; animation: zbBlink 0.4s steps(2) infinite; }
@keyframes zbBlink { 50% { filter: brightness(0.4); } }
.zb-reels { position: relative; display: flex; gap: 6px; background: #000; border-radius: 10px; padding: 6px; height: 252px; overflow: hidden; }
.zb-reel { flex: 1; height: 240px; overflow: hidden; background: linear-gradient(180deg, #ddd, #fff 20%, #fff 80%, #ddd); border-radius: 6px; }
.zb-strip { will-change: transform; }
.zb-sym { height: 80px; display: flex; align-items: center; justify-content: center; }
.zb-sym img { width: 66px; height: 66px; }
.zb-line { position: absolute; left: 0; right: 0; height: 3px; margin-top: -1px; background: rgba(255, 210, 58, 0.35); pointer-events: none; transform: translateY(2px); }
.zb-line.zb-win { background: #ffd23a; height: 6px; box-shadow: 0 0 14px #ffd23a; animation: zbBlink 0.3s steps(2) infinite; }
.zb-slot-msg { font-weight: 700; min-height: 2.6em; }
.zb-good { color: var(--green, #53fc18); }
.zb-bad { color: #ff7a7a; }

/* koniec + TOP10 */
.zb-end-panel { max-width: 720px; }
.zb-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 6px 0; }
.zb-stat { background: rgba(255, 255, 255, 0.07); border: 2px solid #000; border-radius: 12px; padding: 6px 4px; display: flex; flex-direction: column; }
.zb-stat span { font-size: 0.7rem; color: #aab; }
.zb-stat strong { font-size: 1.15rem; }
.zb-score { outline: 2px solid var(--green, #53fc18); }
.zb-score strong { color: var(--green, #53fc18); }
.zb-save { font-weight: 700; font-size: 0.9rem; padding: 4px 0; }
.zb-top-wrap h3 { margin: 6px 0 4px; color: #ffe14a; letter-spacing: 2px; }

.zb-top { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.zb-top th { background: var(--green, #53fc18); color: #000; padding: 6px 8px; text-align: left; }
.zb-top td { padding: 5px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); text-align: left; }
.zb-top tbody:first-of-type tr:nth-child(1) td:first-child { color: #ffd23a; font-weight: 700; }
.zb-top tbody:first-of-type tr:nth-child(2) td:first-child { color: #d9dde0; font-weight: 700; }
.zb-top tbody:first-of-type tr:nth-child(3) td:first-child { color: #e0904a; font-weight: 700; }
.zb-top tr.zb-me { background-color: rgba(83, 252, 24, 0.19); box-shadow: 0 0 8px 2px var(--green, #53fc18); position: relative; }
.zb-top tr.zb-me td { font-weight: 700; }
.zb-top tbody.zb-top-me tr.zb-gap td { padding: 0; height: 6px; border-bottom: 0; }
.zb-ban { background: #ff2a2a; color: #fff; font-weight: 700; font-size: 0.7rem; padding: 1px 7px; border-radius: 6px; border: 2px solid #000; }
.zb-empty, .zb-myrank { text-align: center; padding: 8px 0; }

#zbTopSection { max-width: 820px; margin: 0 auto 30px; }
#zbTopSection h2 { margin-bottom: 10px; }
#zbTopSection .zb-top { font-size: 1rem; }

.zb-ctrl {
    position: absolute; right: 10px; bottom: 10px; z-index: 6;
    display: flex; align-items: center; gap: 8px;
    background: rgba(0, 0, 0, 0.55); border: 2px solid #000; border-radius: 12px; padding: 4px 6px 4px 10px;
    font-size: 0.72rem; font-weight: 700; color: #fff;
}
.zb-keys { opacity: 0.8; white-space: nowrap; }
.zb-vol { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.zb-note { color: var(--green, #53fc18); font-size: 1rem; }
.zb-vol input[type=range] { width: 90px; accent-color: #53fc18; cursor: pointer; }
.zb-fs {
    width: 30px; height: 30px; border-radius: 8px; border: 2px solid #000;
    background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1;
}
.zb-fs:hover { background: rgba(83, 252, 24, 0.8); color: #000; }
.zb-win {
    width: 30px; height: 30px; border-radius: 8px; border: 2px solid #000;
    background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1;
}
.zb-win:hover, .zb-win.zb-on { background: rgba(83, 252, 24, 0.8); color: #000; }
@media (max-width: 760px) { .zb-win { display: none; } }
@media (max-width: 760px) { .zb-keys { display: none; } .zb-vol input[type=range] { width: 70px; } }

.zb-login {
    max-width: 640px; margin: 20px auto 30px; text-align: center;
    background: linear-gradient(180deg, #2b2f36, #16181c); border: 3px solid var(--green, #53fc18);
    border-radius: 18px; padding: 22px;
}
.zb-login img { width: 120px; }

@media (max-width: 760px) {
    .zb-game { aspect-ratio: 4 / 5; max-height: 86vh; }
    .zb-cards { grid-template-columns: 1fr; gap: 8px; }
    .zb-card { flex-direction: row; text-align: left; flex-wrap: wrap; padding: 8px 10px; }
    .zb-card img { width: 46px; height: 46px; }
    .zb-card .zb-desc { flex-basis: 100%; }
    .zb-stats { grid-template-columns: repeat(2, 1fr); }
    .zb-howto { font-size: 0.74rem; }
    .zb-lead, .zb-sub { font-size: 0.8rem; }
    .zb-title { font-size: 1.7rem; letter-spacing: 1px; }
    .zb-chip { font-size: 0.68rem; }
    .zb-btn { font-size: 1rem; padding: 8px 22px 10px; }
    .zb-panel { padding: 12px; }
    .zb-top { font-size: 0.75rem; }
    .zb-top td, .zb-top th { padding: 4px 4px; }
}
.zb-game, .zb-game button, .zb-game h2, .zb-game h3, .zb-game p, .zb-game td, .zb-game th { font-family: "Poppins", sans-serif; }

.zb-machine.zb-spinning .zb-lights { animation-duration: 0.12s; }
.zb-machine.zb-spinning { animation: zbShake 0.12s linear infinite; }
@keyframes zbShake { 0%,100% { transform: translateX(0); } 50% { transform: translateX(1.5px); } }
.zb-card.zb-gurru { outline-color: #ffd23a; background: linear-gradient(180deg, #5a4a14, #2a230a); }
.zb-card.zb-gurru .zb-lv { color: #fff6b0; }

/* ---------- SMS od mamky (mapa 2) ---------- */
.zb-phone { width: min(320px, 88%); background: #0d0f12; border: 3px solid #e3b84a; border-radius: 28px; padding: 14px 14px 18px; box-shadow: 0 18px 50px rgba(0,0,0,.6), inset 0 0 0 6px #1c1f25; animation: zbPhoneIn .45s cubic-bezier(.2,1.4,.4,1); text-align: center; }
.zb-phone-top { display: flex; align-items: center; gap: 10px; padding: 6px 6px 12px; border-bottom: 1px solid #2a2e35; color: #fff; text-align: left; }
.zb-phone-top strong { flex: 1; font-size: 1.05rem; }
.zb-phone-top small { color: #8a929a; }
.zb-phone-ava { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(#ff9ccc, #d1407f); display: grid; place-items: center; font-weight: 800; color: #fff; }
.zb-phone-body { min-height: 150px; display: flex; flex-direction: column; gap: 8px; padding: 14px 4px; }
.zb-msg { max-width: 78%; padding: 9px 13px; border-radius: 18px; font-weight: 700; font-size: 1rem; animation: zbPop .3s ease-out; }
.zb-msg-in { align-self: flex-start; background: #2a2e35; color: #fff; border-bottom-left-radius: 6px; }
.zb-msg-out { align-self: flex-end; background: linear-gradient(#5fe1ff, #1e88e5); color: #fff; border-bottom-right-radius: 6px; }
.zb-msg.zb-note { max-width: 100%; align-self: center; background: none; color: #ffb36b; font-size: .85rem; font-weight: 600; }
.zb-typing { display: flex; gap: 4px; padding: 12px 14px; }
.zb-typing i { width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .5; animation: zbDot 1s infinite; }
.zb-typing i:nth-child(2) { animation-delay: .15s; } .zb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes zbDot { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes zbPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes zbPhoneIn { from { transform: translateY(60px) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.zb-hidden.zb-btn, .zb-btn.zb-hidden { display: none; }

/* ---------- Pripomienky (chat s Gurru05) ---------- */
.zb-fb { max-width: 1100px; margin: 14px auto 0; text-align: center; }
.zb-fb-btn { display: inline-flex; align-items: center; gap: 9px; padding: 10px 20px; border-radius: 999px; border: 2px solid #53fc18; background: #14171c; color: #fff; font: 700 15px/1 Poppins, sans-serif; cursor: pointer; position: relative; transition: transform .15s, background .15s; }
.zb-fb-btn:hover { background: #1d2229; transform: translateY(-1px); }
.zb-fb-bell { color: #53fc18; }
.zb-fb-ring .zb-fb-bell { color: #ffd23a; animation: zbBell 1.6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes zbBell { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-16deg); } }
.zb-fb-badge { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ff2a2a; color: #fff; font-size: 12px; line-height: 22px; box-shadow: 0 0 0 2px #0d0f12; }
.zb-fb-badge[hidden] { display: none; }
.zb-fb-panel { margin: 12px auto 0; max-width: 640px; display: grid; gap: 10px; text-align: left; background: #0f1216; border: 2px solid #2a2e35; border-radius: 14px; padding: 12px; }
.zb-fb-panel[hidden] { display: none; }
.zb-fb-panel.zb-fb-admin { max-width: 960px; grid-template-columns: minmax(200px, 280px) 1fr; }
.zb-fb-list { display: flex; flex-direction: column; gap: 6px; max-height: 470px; overflow-y: auto; }
.zb-fb-conv { position: relative; display: grid; gap: 2px; text-align: left; padding: 8px 34px 8px 10px; border-radius: 10px; border: 1px solid #2a2e35; background: #161a20; color: #cfd4da; cursor: pointer; font: 13px/1.3 Poppins, sans-serif; }
.zb-fb-conv strong { color: #fff; }
.zb-fb-conv span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zb-fb-conv small { color: #7d858e; font-size: 11px; }
.zb-fb-conv em { position: absolute; right: 8px; top: 8px; font-style: normal; background: #ff2a2a; color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.zb-fb-conv.zb-fb-new { border-color: #ffd23a; }
.zb-fb-conv.zb-fb-active { border-color: #53fc18; background: #1b2418; }
.zb-fb-chat { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.zb-fb-head { color: #fff; font: 700 15px Poppins, sans-serif; }
.zb-fb-thread { display: flex; flex-direction: column; gap: 8px; min-height: 120px; max-height: 360px; overflow-y: auto; padding: 4px 2px; }
.zb-fb-msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; font: 14px/1.4 Poppins, sans-serif; }
.zb-fb-mine { align-self: flex-end; background: #1f3a14; border: 1px solid #3c7a1f; color: #eaffdf; border-bottom-right-radius: 4px; }
.zb-fb-their { align-self: flex-start; background: #23272e; border: 1px solid #353a42; color: #fff; border-bottom-left-radius: 4px; }
.zb-fb-meta { display: block; font-size: 11px; color: #8a929a; margin-bottom: 2px; }
.zb-fb-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.zb-fb-empty { color: #8a929a; font-size: 14px; margin: 6px 0; }
.zb-fb-form textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 70px; padding: 10px; border-radius: 10px; border: 1px solid #353a42; background: #161a20; color: #fff; font: 14px/1.4 Poppins, sans-serif; }
.zb-fb-form textarea:focus { outline: 2px solid #53fc18; outline-offset: 1px; }
.zb-fb-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.zb-fb-count { color: #7d858e; font: 12px Poppins, sans-serif; }
.zb-fb-err { color: #ff6b6b; font: 13px Poppins, sans-serif; flex: 1; }
.zb-fb-row button { margin-left: auto; padding: 8px 18px; border-radius: 999px; border: 0; background: #53fc18; color: #0d0f12; font: 700 14px Poppins, sans-serif; cursor: pointer; }
.zb-fb-row button:disabled { opacity: .5; cursor: wait; }
.zb-fb-note { margin: 0; color: #6b737c; font: 12px Poppins, sans-serif; }
@media (max-width: 700px) { .zb-fb-panel.zb-fb-admin { grid-template-columns: 1fr; } .zb-fb-list { max-height: 200px; } }

 
a.cta-kanec, button.cta-kanec{
    background-color: var(--green);
    color: var(--black);
    padding: 5px 15px;
    border: 2px solid var(--green);
    text-decoration: none;
    transition: all .5s ease;
    
}
a.cta-kanec:hover, button.cta-kanec:hover{
    background-color: var(--black);
    color: var(--green);
    box-shadow: 0 0 15px 3px var(--green);
}

/* ---------- celá obrazovka – náhradný režim (iPhone / mobily bez Fullscreen API) ---------- */
.zb-game.zb-fakefs {
    position: fixed; inset: 0; z-index: 99999; margin: 0;
    width: 100vw; height: 100vh; height: 100dvh; max-height: none; aspect-ratio: auto;
    border: 0; border-radius: 0; box-shadow: none;
}
html.zb-noscroll, html.zb-noscroll body { overflow: hidden; overscroll-behavior: none; }
.zb-game:fullscreen, .zb-game:-webkit-full-screen { aspect-ratio: auto; }
.zb-promo { margin: -4px 0 10px; color: #ffd23a; font-weight: 700; font-size: 0.95rem; letter-spacing: 1px; }
.zb-tip { color: #ffd23a; }

/* ---------- prihlásenie (modálne okno) ---------- */
.zb-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.72); }
.zb-modal[hidden] { display: none; }
.zb-modal-box { position: relative; width: min(460px, 100%); text-align: center; background: linear-gradient(180deg, #2b2f36, #16181c); border: 3px solid var(--green, #53fc18); border-radius: 18px; padding: 24px 20px 20px; color: #fff; font-family: Poppins, sans-serif; }
.zb-modal-box h2 { margin: 0 0 8px; }
.zb-modal-box p { margin: 0 0 14px; font-size: 0.95rem; }
.zb-modal-close { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; font-size: 1.2rem; cursor: pointer; }
.zb-modal-close:hover { background: rgba(255,255,255,0.25); }
.zb-modal-msg { min-height: 1.2em; font-size: 0.85rem; color: #ffd23a; }
.zb-panel { max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; box-sizing: border-box; }
.zb-overlay { touch-action: pan-y; }
@media (max-width: 760px) {
    .zb-intro .zb-lead { font-size: 0.74rem; line-height: 1.35; }
    .zb-intro .zb-howto { font-size: 0.7rem; }
    .zb-intro .zb-title { font-size: 1.4rem; margin-bottom: 4px; }
}
.zb-game { touch-action: auto; }
.zb-game canvas { touch-action: none; }
@media (max-width: 760px) {
    .zb-intro .zb-howto li { display: block; }
    .zb-intro .zb-howto img { width: 22px; height: 22px; vertical-align: middle; margin-right: 4px; }
    .zb-intro .zb-howto kbd { padding: 0 5px; font-size: 0.62rem; }
}

button.cta-kanec { cursor: pointer; font: inherit; }

/* ---------- Beh po večeru (bonusová minihra) ---------- */
.rn-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; z-index: 1; }
.rn-wrap { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.rn-wrap .zb-overlay, .rn-wrap .rn-tbtn { pointer-events: auto; }
.rn-touch { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; }
.rn-touch.zb-hidden { display: none; }
.rn-tbtn { width: 108px; height: 64px; border-radius: 16px; border: 3px solid #000; background: rgba(83, 252, 24, 0.85); color: #000; font: 800 1rem Poppins, sans-serif; box-shadow: 0 5px 0 #000; touch-action: none; -webkit-user-select: none; user-select: none; }
.rn-tbtn.rn-duck { background: rgba(255, 210, 58, 0.9); }
.rn-tbtn:active { transform: translateY(3px); box-shadow: 0 2px 0 #000; }
.rn-fs { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 8; }
.zb-game.rn-game { aspect-ratio: 16 / 9; }
@media (max-width: 760px) { .zb-game.rn-game { aspect-ratio: 16 / 10; max-height: none; } .rn-tbtn { width: 92px; height: 54px; font-size: 0.9rem; } }
.rn-ctrl { right: auto; left: 50%; transform: translateX(-50%); z-index: 8; }
.rn-mute { font-size: 0.9rem; }
@media (max-width: 760px) { .rn-ctrl { bottom: 84px; } }
/* ---------- prepínač kvality grafiky ---------- */
.zb-q { height: 30px; min-width: 54px; padding: 0 8px; border-radius: 8px; border: 2px solid #000; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; font: 700 0.68rem Poppins, sans-serif; white-space: nowrap; }
.zb-q:hover { background: rgba(83, 252, 24, 0.8); color: #000; }
/* ---------- Beh po večeru v Kancovi ---------- */
.zb-game.rn-active .zb-ctrl { right: auto; left: 50%; transform: translateX(-50%); }
@media (max-width: 760px) { .zb-game.rn-active .zb-ctrl { bottom: 84px; } }
.rn-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.zb-btn.zb-btn-sec { background: linear-gradient(#5a5f66, #2b2f36); color: #fff; }

/* Koniec po večeri – Restt v dome hore, panel dole */
.zb-overlay.zb-waiting { align-items: flex-end; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.7) 55%, rgba(0,0,0,0.85) 100%); }
.zb-overlay.zb-waiting .zb-panel { max-height: 64%; }
.zb-overlay.zb-waiting .zb-end-title { font-size: clamp(20px, 3.6vw, 40px); }

/* ---------- výber charakteru Restta ---------- */
.zb-hero-panel { max-width: 900px; }
.zb-card.zb-hero { outline-color: var(--hc); justify-content: flex-start; text-align: center; }
.zb-card.zb-hero:hover, .zb-card.zb-hero:focus-visible { outline-color: #fff; }
.zb-card.zb-hero strong { color: var(--hc); }
.zb-card.zb-last::after { content: 'POSLEDNÝ'; position: absolute; top: -10px; right: -6px; background: var(--hc); color: #000; font-size: 0.62rem; font-weight: 800; padding: 2px 8px; border-radius: 10px; border: 2px solid #000; transform: rotate(6deg); }
.zb-hbars { display: grid; gap: 3px; width: 100%; margin-top: 4px; }
.zb-hbar { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.5px; }
.zb-hbar em { font-style: normal; color: #aeb7c2; }
.zb-hbar b { display: flex; gap: 3px; }
.zb-hbar i { width: 14px; height: 8px; border-radius: 3px; background: #0d0f12; border: 1px solid #000; }
.zb-hbar i.on { background: var(--hc); }
.zb-hpm { list-style: none; margin: 6px 0 0; padding: 0; width: 100%; text-align: left; font-size: 0.7rem; line-height: 1.3; }
.zb-hpm li { padding-left: 14px; position: relative; }
.zb-hpm li::before { position: absolute; left: 0; font-weight: 800; }
.zb-hpm li.p { color: #b4ff9a; } .zb-hpm li.p::before { content: '+'; }
.zb-hpm li.m { color: #ff9a8a; } .zb-hpm li.m::before { content: '−'; }
@media (max-width: 640px) {
    .zb-heroes { grid-template-columns: 1fr; }
    .zb-card.zb-hero { display: grid; grid-template-columns: 48px 1fr; text-align: left; align-items: start; column-gap: 10px; }
    .zb-card.zb-hero img { width: 48px; height: 48px; grid-row: span 2; }
    .zb-card.zb-hero .zb-hbars, .zb-card.zb-hero .zb-hpm { grid-column: 1 / -1; }
    .zb-card.zb-hero .zb-key { display: none; }
}
.zb-top .zb-thero { width: 20px; height: 20px; vertical-align: -5px; margin-right: 5px; }

/* ---------- dom: voľba po smrti + nové vylepšenia po večeri ---------- */
.zb-choice { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.zb-newupg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 4px; }
.zb-nu { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; background: rgba(0,0,0,0.35); border: 2px solid #000; outline: 2px solid #ff7ad9; border-radius: 12px; text-align: center; }
.zb-nu img { width: 46px; height: 46px; }
.zb-nu strong { color: #ffd1f2; font-size: 0.9rem; }
.zb-nu span { font-size: 0.68rem; line-height: 1.25; color: #dfe6ee; }
@media (max-width: 640px) { .zb-newupg { grid-template-columns: repeat(2, 1fr); } }
.zb-end-panel .zb-fight { display: block; margin: 8px auto 4px; }
ul.release li {
    padding-bottom: 10px;
}
ul.release li strong {
    background-color: rgb(48, 48, 48);
  padding: 2px 10px;
  text-shadow: 3px 3px 4px black;
}

/* ---------- pomocné okná + 4 karty pri level-upe ---------- */
.zb-hint {
    position: absolute; left: 50%; top: 64px; transform: translateX(-50%); z-index: 4;
    display: flex; align-items: center; gap: 10px; width: min(460px, calc(100% - 24px)); box-sizing: border-box;
    padding: 10px 34px 12px 10px; overflow: hidden;
    background: linear-gradient(180deg, #2b2f36, #16181c); color: #fff;
    border: 3px solid #000; outline: 2px solid var(--hc, #53fc18); border-radius: 14px;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.6); animation: zbHintIn 0.25s ease-out;
}
.zb-hint img { width: 46px; height: 46px; flex: none; }
.zb-hint strong { display: block; color: var(--hc, #53fc18); font-size: 0.95rem; letter-spacing: 0.5px; }
.zb-hint p { margin: 2px 0 0; font-size: 0.82rem; line-height: 1.3; color: #dfe6ee; }
.zb-hint-x { position: absolute; top: 4px; right: 6px; background: none; border: 0; color: #aeb7c2; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 2px 6px; }
.zb-hint-x:hover { color: #fff; }
.zb-hint-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--hc, #53fc18); transform-origin: left; animation: zbHintBar 5s linear forwards; }
@keyframes zbHintIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes zbHintBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.zb-cards.zb-cards4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .zb-cards.zb-cards4 { grid-template-columns: repeat(2, 1fr); } .zb-hint { top: 52px; } }

/* ---------- TOP10: postup cez bossov (záhrada | dom | pivnica) ---------- */
.zb-bb { display: inline-flex; gap: 5px; padding: 3px; background: #0d0f12; border: 2px solid #000; border-radius: 8px; vertical-align: middle; }
.zb-bb-map { display: inline-flex; gap: 2px; }
.zb-bb i { display: block; width: 16px; height: 15px; border-radius: 2px; }
.zb-bb-map:first-child i:first-child { border-radius: 5px 2px 2px 5px; }
.zb-bb-map:last-child i:last-child { border-radius: 2px 5px 5px 2px; }
.zb-bb i.on { background: #53fc18; box-shadow: 0 0 6px rgba(83, 252, 24, 0.55); }
.zb-bb i.off { background: #17800e; }
.zb-bb i.na { background: #50565c; }
@media (max-width: 640px) { .zb-bb i { width: 8px; height: 11px; } .zb-bb { gap: 3px; padding: 2px; } }
