/* ===== FONTY ===== */
@font-face {
    font-family: 'Mafia';
    src: url('../fonts/Mafia.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ===== ZÁKLAD ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: inherit;
}

/* ===== CURSOR SYSTEM TOGGLE ===== */
/* When body.cursor-system is applied, revert to the OS default cursor */
body.cursor-system,
body.cursor-system * {
    cursor: auto !important;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4" fill="none" stroke="%23ffd700" stroke-width="1.5"/><line x1="12" y1="0" x2="12" y2="8" stroke="%23ffd700" stroke-width="1.5"/><line x1="12" y1="16" x2="12" y2="24" stroke="%23ffd700" stroke-width="1.5"/><line x1="0" y1="12" x2="8" y2="12" stroke="%23ffd700" stroke-width="1.5"/><line x1="16" y1="12" x2="24" y2="12" stroke="%23ffd700" stroke-width="1.5"/></svg>') 12 12, crosshair;
    overflow-y: hidden;
    overflow-x: hidden;
}

:root {
    --text-size: 18px;
    --content-opacity: 1;
    --win-color: #4caf50;
    --lose-color: #f44336;
    --special-color: #ff9800;
    --angel-color: #b89b7a;
    --devil-color: #9c27b0;
    --text-color: #e0d3b0;
    --border-color: #b89b7a;
    --border-color-rgb: 184, 155, 122;
    --border-light: #5a4a3a;
    --btn-bg: #3a2a1c;
    --btn-hover: #5a4a3a;
    --footer-bg: #1e140e;
    --header-height: 68px;
    --sticky-header-height: 52px;
    --accent: #ffd700;
    --accent-dim: rgba(255, 215, 0, 0.12);
    --card-bg: rgba(22, 15, 8, 0.94);
    --card-bg-hover: rgba(30, 20, 12, 0.97);

    /* Velikosti titulu pro responzivitu */
    --title-size-desktop: 36px;
    --title-size-tablet: 24px;
    --title-size-mobile: 20px;
    --title-size-small: 16px;
    --title-size-xs: 13px;

    --app-height: 840px; /* fixed app viewport height */

    /* User-controlled CSS variables (with safe defaults) */
    --glow-intensity: 1;
    --anim-speed: 1;
    --ui-font: 'Cinzel', serif;
}

/* ===== USER SETTING BODY-CLASS OVERRIDES ===== */

/* No effects: disable theme background particle animations */
body.no-fx .wrapper::before,
body.no-fx [class*="theme-"] .wrapper::before { animation: none !important; opacity: 0 !important; }
body.no-fx body::before,
body.no-fx body::after { animation: none !important; opacity: 0 !important; }

/* No animations: disable all CSS transitions and animations */
body.no-anim *,
body.no-anim *::before,
body.no-anim *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* No hover effects: disable card/button hover transforms/shadows */
body.no-hover-fx *:hover { transform: none !important; box-shadow: inherit !important; }

/* FPS saver: stop all looping background animations */
body.fps-saver *::before,
body.fps-saver *::after { animation: none !important; }
body.fps-saver .wrapper::before { animation: none !important; }

/* Reduce motion: similar to prefers-reduced-motion */
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* No blur: disable backdrop-filter on panels and overlays */
body.no-blur [id$="-panel"],
body.no-blur .panel,
body.no-blur .slide-panel,
body.no-blur .settings-slide-panel,
body.no-blur .popup-overlay,
body.no-blur .popup-box,
body.no-blur .mafia-popup-overlay > * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

body {
    font-family: var(--ui-font, 'Cinzel', serif);
    line-height: 1.6;
    font-size: var(--text-size);
    transition: background-color 0.3s ease, background-image 0.3s ease;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-y: hidden;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background: #0a0806;
}

.wrapper {
    width: 1480px;
    height: var(--app-height);
    margin: 0;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/film-grain.png') repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.content {
    opacity: var(--content-opacity);
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 8px 12px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.45);
    font-size: var(--text-size);
    background: #2a1e14;
    background-image: url('../images/old-paper-dark.png');
    color: var(--text-color);
    overflow-y: auto;
    scrollbar-width: none;
}

.content::-webkit-scrollbar { display: none; }

.content p {
    font-size: 18px;
}

/* currency barvy */
.money-display .currency-value { color: #00ff00 !important; }
.keys-display .currency-value { color: #ff9900 !important; }
.angel-doors-display .currency-value { color: #0099ff !important; }

/* ===== HLAVIČKA ===== */
.mafia-header {
    position: relative;
    z-index: 10000;
    width: 100%;
    padding: 0 16px;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Mafia', 'Cinzel', serif;
    flex-wrap: nowrap;
    gap: 8px;
    flex-shrink: 0;
    border-bottom: 2px solid #b89b7a;
    box-shadow: inset 0 1px 0 rgba(255,215,140,0.2), 0 2px 5px rgba(0,0,0,0.5);
    transition: background 0.3s ease;
}

.mafia-header.sticky {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1480px, 100%);
    z-index: 15000;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ===== ULTIMÁTNÍ SHINY TITLE - OPRAVENÝ ===== */
html body .mafia-header .header-left,
body .mafia-header .header-left,
.mafia-header .header-left {
    position: relative;
    display: flex;
    align-items: center;
}

.title-container {
    position: relative;
    display: inline-block;
    --title-color: #ffd700;
    --title-shadow: #b8860b;
    --title-glare: rgba(255, 255, 255, 0.75);
    --hover: 1;
}

/* Hlavní title - MAFIA GAMBLING CLUB */
html body .mafia-header .header-left h1,
body .mafia-header .header-left h1,
.mafia-header .header-left h1,
.header-left h1,
.shiny-title {
    font-size: var(--title-size-desktop) !important;
    letter-spacing: 4px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    background: linear-gradient(
        90deg,
        #7a5c10 0%,
        #ffd700 8%,
        #fffde0 14%,
        #ffffff 18%,
        #fffde0 22%,
        #ffd700 28%,
        #e8b800 45%,
        #ffd700 60%,
        #fffde0 68%,
        #ffffff 72%,
        #fffde0 76%,
        #ffd700 82%,
        #7a5c10 100%
    ) !important;
    background-size: 400% 100% !important;
    /* NO static background-position here — animation controls it */
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter:
        drop-shadow(0 0 8px rgba(255,215,0,0.6))
        drop-shadow(0 0 20px rgba(255,180,0,0.3))
        drop-shadow(2px 2px 4px rgba(0,0,0,0.9)) !important;
    animation: titleShine 3.5s linear infinite !important;
    will-change: background-position !important;
    transform: translateZ(0) !important;
    color: transparent !important;
    text-shadow: none !important;
    cursor: default;
}

/* Stínový efekt - SKRYTÝ */
.title-shadow {
    display: none !important;
}

.title-glare {
    display: none !important;
}

/* Efekt lesku (volitelný) */
.title-glare {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    font-size: var(--title-size-desktop) !important;
    letter-spacing: 4px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    font-family: 'Mafia', 'Cinzel', serif;
    background: linear-gradient(
        108deg,
        transparent 0% 55%,
        var(--title-glare) 55% 60%,
        transparent 60% 70%,
        var(--title-glare) 70% 85%,
        transparent 85%
    ) calc(var(--pos, 1) * -200%) 0% / 200% 100%, var(--title-color);
    
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: 2;
    text-shadow: none;
    transform: translate(calc(var(--hover) * 3.6px), calc(var(--hover) * -3.6px));
    animation: titleGlareMove 4s ease-in-out infinite alternate !important;
}

@keyframes titleShine {
    0%   { background-position: 200% center; }
    100% { background-position: -100% center; }
}

@keyframes titleGlareMove {
    0% { background-position: -200% 0%; }
    100% { background-position: 200% 0%; }
}

.header-right {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex-shrink: 1;
    min-width: 0;
}

.welcome {
    display: none;
}

.header-link {
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid;
    background: rgba(0,0,0,0.3);
    transition: 0.3s;
    font-weight: bold;
    font-size: 15px;
    font-family: 'Mafia', 'Cinzel', serif;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255,215,140,0.2), 0 2px 3px #000;
    text-transform: uppercase;
    color: var(--text-color);
    border-color: #b89b7a;
}

.header-link:hover {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 5px #000;
    background: #b89b7a;
    color: #1a120b;
}

/* ===== HEADER BUTTONS (TROJICE) ===== */
.header-buttons-inline {
    display: flex !important;
    flex-direction: row-reverse;
    gap: 6px;
    align-items: center;
    margin: 0 8px;
}

/* Cursor pointer for interactive elements */
a, button, [role="button"], label, select,
.menu-btn, .header-btn, .popup-btn, .footer-btn, .panel-btn,
.btn-mafia, .theme-btn, .lang-btn, .loan-option, .panel-close,
.case:not(.disabled), .cup, .bill-row, .tab-btn, .bet-tab,
input[type="submit"], input[type="button"], input[type="checkbox"], input[type="radio"],
.bill-control-btn, .main-action-btn, .restart-btn, .lupa-btn:not(.disabled) {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="5" fill="%23ffd700" fill-opacity="0.3" stroke="%23ffd700" stroke-width="2"/><line x1="12" y1="0" x2="12" y2="7" stroke="%23ffd700" stroke-width="2"/><line x1="12" y1="17" x2="12" y2="24" stroke="%23ffd700" stroke-width="2"/><line x1="0" y1="12" x2="7" y2="12" stroke="%23ffd700" stroke-width="2"/><line x1="17" y1="12" x2="24" y2="12" stroke="%23ffd700" stroke-width="2"/></svg>') 12 12, pointer !important;
}

.header-btn {
    background: rgba(42, 30, 20, 0.85);
    border: 1px solid #b89b7a;
    border-radius: 20px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255,215,140,0.1), 0 2px 6px rgba(0,0,0,0.4);
    min-width: auto;
    color: #b89b7a;
    font-size: 14px;
    white-space: nowrap;
}

.header-btn:hover {
    background: #b89b7a;
    color: #1a120b;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 3px 8px rgba(184,155,122,0.3);
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 16px;
}

.btn-text {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* ===== CURRENCY DISPLAYS ===== */
.currency-display {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #b89b7a;
    border-radius: 6px;
    padding: 4px 8px;
    min-width: 0;
    justify-content: center;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 2px 3px #000;
    font-family: 'Mafia', 'Cinzel', serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    gap: 4px;
    cursor: default;
    white-space: nowrap;
}

.money-display {
    background: linear-gradient(145deg, #2a4a2a, #1a2e1a);
    border-color: #4caf50;
}

.keys-display {
    background: linear-gradient(145deg, #8b5a2b, #5a3e28);
    border-color: #cd7f32;
}

.angel-doors-display {
    background: linear-gradient(145deg, #4a3a5a, #2a1e3a);
    border-color: #b89b7a;
}

.currency-icon {
    font-size: 1.1em;
    text-shadow: 0 0 5px currentColor !important;
}

.currency-value {
    font-weight: bold;
    font-size: 1.15em;
    text-shadow: 2px 2px 3px #000 !important;
    transition: transform 0.15s ease, text-shadow 0.15s ease;
}

/* Pulse animation when value changes */
@keyframes currencyPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.18); }
    70%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.currency-value.updated {
    animation: currencyPop 0.35s ease;
}

/* Subtle idle glow on money display */
@keyframes moneyGlow {
    0%, 100% { box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 2px 3px #000, 0 0 0px rgba(76,175,80,0); }
    50%       { box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 2px 3px #000, 0 0 8px rgba(76,175,80,0.45); }
}
.money-display { animation: moneyGlow 3s ease-in-out infinite; }

@keyframes keysGlow {
    0%, 100% { box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 2px 3px #000, 0 0 0px rgba(205,127,50,0); }
    50%       { box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 2px 3px #000, 0 0 8px rgba(205,127,50,0.45); }
}
.keys-display { animation: keysGlow 3.5s ease-in-out infinite; }

@keyframes angelGlow {
    0%, 100% { box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 2px 3px #000, 0 0 0px rgba(184,155,122,0); }
    50%       { box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 2px 3px #000, 0 0 8px rgba(184,155,122,0.45); }
}
.angel-doors-display { animation: angelGlow 4s ease-in-out infinite; }

.currency-label {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.7;
    display: block;
    line-height: 1;
    padding-top: 1px;
}

.currency-display {
    flex-direction: column;
    gap: 1px;
    padding: 6px 10px;
    min-width: 56px;
    text-align: center;
}

.currency-display .currency-icon {
    font-size: 1.3em;
}

.header-sep {
    width: 1px;
    height: 36px;
    background: rgba(184,155,122,0.35);
    flex-shrink: 0;
    margin: 0 4px;
}

.header-link-back {
    background: rgba(0,0,0,0.4);
    border-color: rgba(184,155,122,0.5);
    font-size: 12px;
    opacity: 0.8;
}
.header-link-back:hover {
    opacity: 1;
    background: rgba(184,155,122,0.25);
    color: var(--text-color);
}

.currency-suffix {
    margin-left: 2px;
    font-size: 1.1em;
    color: inherit;
}

[data-tooltip] {
    position: relative;
    cursor: default;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px;
    padding: 8px 12px;
    background: #2a1e14;
    color: #e0d3b0;
    border: 2px solid #b89b7a;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    font-family: 'Mafia', 'Cinzel', serif;
}

[data-tooltip]:hover:before {
    opacity: 1;
}

/* HLAVNÍ KONTEJNER + MENU + CONTENT + FOOTER + BUTTONY + FLOATING TEXT + ANIMACE + FORMULÁŘE + VALIDACE + ADMIN TABLE + TOGGLE + AUTH + RAINBOW atd. */

/* ===== GAME AREA ===== */
.game-area {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0;
    padding: 5px;
    border-radius: 15px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.game-area > * {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

.game-area .game-layout,
.game-area .plinko-layout,
.game-area .slot-layout,
.game-area .main-row {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

.game-area .left-panel,
.game-area .right-panel {
    min-height: 0;
}

.game-area::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    pointer-events: none;
    opacity: 0;
    z-index: 3;
}

.game-area.game-area-fx-win::after {
    animation: gameAreaWinPulse .52s ease-out;
    background: radial-gradient(60% 40% at 50% 50%, rgba(88, 214, 141, 0.28), rgba(88, 214, 141, 0));
}

.game-area.game-area-fx-lose::after {
    animation: gameAreaLosePulse .46s ease-out;
    background: radial-gradient(60% 40% at 50% 50%, rgba(244, 67, 54, 0.2), rgba(244, 67, 54, 0));
}

.game-area.game-area-fx-impact::after {
    animation: gameAreaImpactPulse .22s ease-out;
    background: radial-gradient(45% 30% at 50% 50%, rgba(255, 215, 120, 0.18), rgba(255, 215, 120, 0));
}

.mgc-game-fx-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 25000;
}

.mgc-fx-particle {
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    will-change: transform, opacity;
    animation: mgcFxBurst var(--dur, 650ms) cubic-bezier(0.17, 0.79, 0.27, 1) forwards;
}

.mgc-fx-particle.win {
    background: radial-gradient(circle at 35% 35%, #fff8bf 0%, #ffd54d 45%, #ffaf1a 100%);
    box-shadow: 0 0 8px rgba(255, 215, 80, 0.55);
}

.mgc-fx-particle.lose {
    background: radial-gradient(circle at 35% 35%, #ffd1cc 0%, #ff7b6f 45%, #d8432f 100%);
    box-shadow: 0 0 7px rgba(255, 99, 71, 0.45);
}

.mgc-fx-ripple {
    position: absolute;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    margin-top: -5px;
    border-radius: 999px;
    border: 2px solid rgba(255, 215, 120, 0.75);
    background: rgba(255, 215, 120, 0.22);
    pointer-events: none;
    animation: mgcFxRipple .52s ease-out forwards;
}

@keyframes mgcFxBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.6);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) scale(0.2);
    }
}

@keyframes mgcFxRipple {
    0% {
        opacity: 0.95;
        transform: scale(0.3);
    }
    100% {
        opacity: 0;
        transform: scale(4.8);
    }
}

@keyframes gameAreaWinPulse {
    0% { opacity: 0; }
    30% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes gameAreaLosePulse {
    0% { opacity: 0; }
    35% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes gameAreaImpactPulse {
    0% { opacity: 0; }
    45% { opacity: 1; }
    100% { opacity: 0; }
}

.safe-area {
    background: rgba(0, 0, 0, 0.3);
}

.main-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Login / Register / Reset — no sidebar */
.main-container.auth-page {
    justify-content: center;
}
.main-container.auth-page .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    overflow-y: auto;
}

.mafia-menu {
    width: 260px;
    padding: 12px 0;
    font-family: 'Mafia', 'Cinzel', serif;
    box-shadow: inset -5px 0 10px rgba(0,0,0,0.5);
    transition: background 0.3s ease, border-color 0.3s ease;
    background: linear-gradient(145deg, #3a2a1c, #1e140e);
    border-right: 2px solid #b89b7a;
    align-self: stretch;
    overflow-y: auto;
}

.mafia-menu ul {
    list-style: none;
}

.mafia-menu li {
    margin: 6px 0;
}

.mafia-menu li.menu-section {
    padding: 12px 15px 5px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid;
    margin-top: 15px;
    color: #b89b7a;
    border-bottom-color: #5a4a3a;
}

.mafia-menu li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: 0.2s;
    font-size: 20px;
    background: rgba(0,0,0,0.2);
    box-shadow: inset 0 1px 0 rgba(255,215,140,0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
}

.mafia-menu li a:hover,
.mafia-menu li a.active {
    box-shadow: inset 0 1px 0 rgba(255,215,140,0.3), 0 0 15px rgba(184,155,122,0.3);
    background: #5a4a3a;
    border-left-color: #b89b7a;
    color: #fff;
}

/* Support both class names used across CSS/JS for sticky header */
body.sticky-header-active, body.has-sticky-header {
    padding-top: var(--header-height, 72px);
}

.content h1, .content h2, .content h3 {
    font-family: 'Mafia', 'Cinzel', serif;
    border-bottom: 2px solid;
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-size: 2em;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #b89b7a;
    border-bottom-color: #5a4a3a;
}

.mafia-footer {
    padding: 0 20px;
    border-top: 2px solid;
    font-size: 13px;
    letter-spacing: 1px;
    font-family: 'Mafia', 'Cinzel', serif;
    box-shadow: inset 0 1px 0 rgba(255,215,140,0.1);
    text-transform: uppercase;
    transition: background 0.3s ease, color 0.3s ease;
    background: linear-gradient(180deg, #2a1e14, #0a0806);
    color: #b89b7a;
    border-top-color: #5a4a3a;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
}

.footer-copy {
    opacity: 0.45;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}
.footer-copy-right { text-align: right; }

.footer-panel-btns {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: rgba(42, 30, 20, 0.85);
    border: 1px solid #b89b7a;
    border-radius: 22px;
    cursor: pointer;
    color: #b89b7a;
    font-family: 'Mafia', 'Cinzel', serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255,215,140,0.1), 0 2px 6px rgba(0,0,0,0.4);
    white-space: nowrap;
    user-select: none;
    outline: none;
}

.footer-btn:hover {
    background: #b89b7a;
    color: #1a120b;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 3px 8px rgba(184,155,122,0.3);
    transform: translateY(-1px);
}

/* ===== BUTTONY ===== */
.btn-mafia {
    background: var(--btn-bg, #3a2a1c);
    border: 2px solid var(--border-color, #b89b7a);
    padding: 10px 20px;
    font-family: 'Mafia', 'Cinzel', serif;
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 40px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 4px 0 rgba(0,0,0,0.5);
    transition: 0.1s ease;
    width: 100%;
    color: var(--text-color, #e0d3b0);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6) !important;
}

.btn-mafia:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 6px 0 rgba(0,0,0,0.5);
    background: var(--btn-hover, #5a4a3a);
    color: var(--text-color, #e0d3b0);
    border-color: var(--border-color, #b89b7a);
    filter: brightness(1.15);
}

.btn-mafia:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 1px 0 rgba(0,0,0,0.5);
}

.btn-mafia:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 0 rgba(0,0,0,0.3);
}

.btn-small {
    padding: 6px 10px;
    border: 1px solid;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Mafia', 'Cinzel', serif;
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255,215,140,0.2), 0 2px 3px #000;
    text-transform: uppercase;
    background: #3a2a1c;
    color: var(--text-color);
    border-color: #b89b7a;
}

.btn-small:hover {
    background: #5a4a3a;
}

.floating-text {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15000 !important;
    pointer-events: none;
    font-weight: bold;
    font-size: 2.2em;
    text-align: center;
    white-space: nowrap;
    animation: floatUp 1.8s ease-out forwards;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.85) !important;
}

.floating-text.positive { color: var(--win-color); }
.floating-text.negative { color: var(--lose-color); }

@keyframes floatUp {
    0%   { opacity: 0;   transform: translate(-50%, -50%) scale(0.6); }
    20%  { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
    70%  { opacity: 0.9; transform: translate(-50%, -120px) scale(1.1); }
    100% { opacity: 0;   transform: translate(-50%, -180px) scale(0.9); }
}

/* ===== ANIMACE PENĚZ ===== */
@keyframes moneyPulseGreen {
    0% { transform: scale(1); background: rgba(76,175,80,0); }
    50% { transform: scale(1.15); background: rgba(76,175,80,0.3); box-shadow: 0 0 30px var(--win-color); }
    100% { transform: scale(1); background: rgba(76,175,80,0); }
}

@keyframes moneyPulseRed {
    0% { transform: scale(1); background: rgba(244,67,54,0); }
    50% { transform: scale(1.15); background: rgba(244,67,54,0.3); box-shadow: 0 0 30px var(--lose-color); }
    100% { transform: scale(1); background: rgba(244,67,54,0); }
}

.hcur-money.money-update-win,
.hcur-keys.money-update-win,
.hcur-shields.money-update-win  { animation: moneyPulseGreen 0.5s ease; }
.hcur-money.money-update-lose,
.hcur-keys.money-update-lose,
.hcur-shields.money-update-lose { animation: moneyPulseRed 0.5s ease; }
.money-display.money-update-win { animation: moneyPulseGreen 0.5s ease; z-index: 1; }
.money-display.money-update-lose { animation: moneyPulseRed 0.5s ease; z-index: 1; }

/* ===== FORMULÁŘE ===== */
.form-container {
    border: 2px solid;
    border-radius: 8px;
    padding: 25px;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,215,140,0.2);
    background: #2a1e14;
    border-color: #b89b7a;
}

/* Auth form redesign — compact */
.auth-form-container {
    max-width: 680px;
    padding: 38px 48px 34px;
    position: relative;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 26px;
    padding-top: 4px;
}

.auth-form-logo {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 14px rgba(255,215,0,0.55));
}

.auth-form-title {
    font-family: 'Mafia', 'Cinzel', serif;
    font-size: 30px;
    color: #ffd700;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.auth-form-subtitle {
    color: #b89b7a;
    font-size: 14px;
    margin: 3px 0 0;
    font-style: italic;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

/* Field sizing — override large global defaults */
.auth-form-container .form-group label {
    font-size: 13px !important;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-form-container .form-group input[type="text"],
.auth-form-container .form-group input[type="email"],
.auth-form-container .form-group input[type="password"] {
    font-size: 16px !important;
    padding: 14px 16px !important;
    border-radius: 8px !important;
}

/* Password wrapper inputs: reserve right-side space for toggle button */
.auth-form-container .password-wrapper input {
    padding-right: 56px !important;
}

.auth-form-container .btn-mafia {
    font-size: 18px !important;
    padding: 15px 28px !important;
    letter-spacing: 2.5px;
    margin-top: 8px;
    border-radius: 10px !important;
}

.auth-submit-btn {
    width: 100%;
    margin-top: 8px;
    letter-spacing: 2.5px;
}

.auth-switch-link {
    text-align: center;
    margin-top: 20px;
    color: #b89b7a;
    font-size: 15px;
}

.auth-switch-link a {
    color: #ffd700;
    font-weight: bold;
    text-decoration: none;
}

.auth-switch-link a:hover {
    text-decoration: underline;
}

.auth-success {
    text-align: center;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* === LANGUAGE SWITCHER === */
.auth-lang-bar {
    position: absolute;
    top: 16px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 2px;
    z-index: 10;
}

.auth-lang-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 3px 7px;
    font-family: 'Mafia', 'Cinzel', serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: rgba(184,155,122,0.4);
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    text-transform: uppercase;
    line-height: 1.6;
}

.auth-lang-btn:hover {
    color: #ffd700;
    background: rgba(255,215,0,0.08);
    border-color: rgba(255,215,0,0.2);
}

.auth-lang-btn.active {
    color: #ffd700;
    background: rgba(255,215,0,0.1);
    border-color: rgba(255,215,0,0.35);
}

.auth-lang-sep {
    color: rgba(184,155,122,0.25);
    font-size: 10px;
    user-select: none;
}

/* === FORGOT PASSWORD LINK === */
.forgot-link {
    display: block;
    text-align: right;
    margin: -4px 0 14px;
    font-size: 12px;
    color: rgba(184,155,122,0.65);
    text-decoration: none;
    font-family: 'Mafia', 'Cinzel', serif;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 2px;
    width: fit-content;
    margin-left: auto;
}

.forgot-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to left, #ffd700, transparent);
    transition: width 0.25s ease;
}

.forgot-link:hover { color: #ffd700; }
.forgot-link:hover::after { width: 100%; }
.forgot-link:active { opacity: 0.75; }

/* === EYE / PASSWORD TOGGLE === */
.auth-form-container .toggle-password {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    padding: 0 !important;
    font-size: 0 !important;
    border-radius: 4px;
    border: 1px solid #5a4a3a;
    background: #1e140e;
    color: #b89b7a;
    cursor: pointer;
    user-select: none;
    box-shadow: inset 0 1px 0 rgba(255,215,140,0.08);
    transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.12s;
}

.auth-form-container .toggle-password:hover {
    border-color: #b89b7a;
    color: #ffd700;
    background: #2a1e14;
    transform: translateY(-50%) scale(1.06);
}

.auth-form-container .toggle-password:active {
    transform: translateY(-50%) scale(0.9);
}

.auth-form-container .toggle-password svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* === REGISTER 2-COL GRID === */
.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 520px) {
    .auth-form-row { grid-template-columns: 1fr; }
    .auth-form-container { padding: 24px 20px 22px; }
}

/* === INLINE PASSWORD REQUIREMENTS === */
.password-requirements-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: -4px 0 12px;
    padding: 0;
    background: none;
}

.password-requirements-inline small {
    font-size: 11px !important;
    text-shadow: none;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid;
    letter-spacing: 0.3px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    white-space: nowrap;
}

.password-requirements-inline small.invalid {
    color: rgba(220,130,130,0.85);
    border-color: rgba(200,80,80,0.3);
    background: rgba(244,67,54,0.08);
}

.password-requirements-inline small.valid {
    color: #4caf50;
    border-color: rgba(76,175,80,0.4);
    background: rgba(76,175,80,0.1);
}

.password-requirements-inline #match-message {
    font-size: 11px !important;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid transparent;
    margin: 0 !important;
}

/* === CODE INPUT (reset password) === */
.code-input {
    letter-spacing: 8px !important;
    font-size: 22px !important;
    text-align: center !important;
    font-family: monospace !important;
    padding: 12px 14px !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 18px;
    font-family: 'Mafia', 'Cinzel', serif;
    text-transform: uppercase;
    color: #b89b7a;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid;
    border-top: 2px solid;
    border-left: 2px solid;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Mafia', 'Crimson Text', serif;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.5), 0 1px 0 rgba(255,215,140,0.1);
    background: #1e140e;
    border-color: #5a4a3a;
    color: var(--text-color);
}

.form-group input:focus {
    outline: none;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.5), 0 0 10px rgba(184,155,122,0.5);
    border-color: #b89b7a;
}

.password-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.password-wrapper input {
    flex: 1;
    padding-right: 70px;
}

.toggle-password {
    position: absolute;
    right: 3px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid;
    box-shadow: inset 0 1px 0 rgba(255,215,140,0.1);
    color: #b89b7a;
    background: #1e140e;
    border-color: #5a4a3a;
}

/* ===== VALIDACE ===== */
.password-requirements {
    margin-top: 8px;
    padding: 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}

.password-requirements small {
    font-size: 25px;
    text-shadow: #000000 0px 2px 2px;
}

.valid { color: var(--win-color); }
.invalid { color: var(--lose-color); }

#match-message {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.error {
    color: var(--lose-color);
    background-color: rgba(0,0,0,0.5);
    border: 1px solid var(--lose-color);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.success {
    color: var(--win-color);
    background-color: rgba(0,0,0,0.5);
    border: 1px solid var(--win-color);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* ===== ADMIN TABLE ===== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(20, 15, 10, 0.7);
    border: 2px solid;
    border-radius: 8px;
    overflow: hidden;
    font-size: 16px;
    border-color: #b89b7a;
}
.admin-table th {
    padding: 12px;
    font-family: 'Mafia', 'Cinzel', serif;
    font-size: 18px;
    border-bottom: 2px solid;
    text-transform: uppercase;
    text-align: center;
    background: #2a1e14;
    color: #b89b7a;
    border-bottom-color: #b89b7a;
}
.admin-table td {
    padding: 10px 12px;
    border: 1px solid;
    text-align: center;
    vertical-align: middle;
    border-color: #5a4a3a;
    color: var(--text-color);
}
.admin-table input[type="number"] {
    padding: 6px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 14px;
    width: 100px;
    text-align: center;
    background: #1e140e;
    border-color: #b89b7a;
    color: var(--text-color);
}

/* ===== TOGGLE BUTTONS ===== */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid;
    border-radius: 30px;
    padding: 3px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    height: 40px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    background: #1e140e;
    border-color: #5a4a3a;
}
.toggle-option {
    flex: 1;
    text-align: center;
    padding: 6px 5px;
    border-radius: 30px;
    z-index: 2;
    transition: color 0.3s;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px #000;
    color: var(--text-color);
}
.toggle-slider {
    position: absolute;
    width: 50%;
    height: 34px;
    border-radius: 30px;
    z-index: 1;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    background: #b89b7a;
}
.toggle-container.on .toggle-slider { transform: translateX(0); }
.toggle-container.off .toggle-slider { transform: translateX(100%); }

.toggle-container.on .toggle-option:first-child {
    color: #1e140e;
    font-weight: bold;
}
.toggle-container.off .toggle-option:last-child {
    color: #1e140e;
    font-weight: bold;
}

.theme-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Mafia', 'Cinzel', serif;
    transition: 0.3s;
    font-size: 16px;
    box-shadow: inset 0 1px 0 rgba(255,215,140,0.2), 0 2px 3px #000;
    text-transform: uppercase;
    background: #3a2a1c;
    color: var(--text-color);
    border-color: #b89b7a;
}
.theme-btn:hover {
    background: #5a4a3a;
}
.theme-btn.active {
    font-weight: bold;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 5px #000;
    background: #b89b7a;
    color: #1a120b;
}

.form-container {
    font-size: 18px;
}

.form-group label {
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"] {
    font-size: 18px;
    padding: 12px 15px;
}

.toggle-password {
    font-size: 16px;
    padding: 5px 12px;
    right: 3px;
}

.btn-mafia {
    font-size: 24px;
    padding: 15px 25px;
}

#match-message {
    font-size: 16px;
    margin-top: 8px;
}

/* ===== AUTHENTIKACE - PŘIHLÁŠENÍ A REGISTRACE ===== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    padding: 20px;
}

.auth-card {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 3px solid #d4af37;
    border-radius: 30px;
    padding: 40px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 50px rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
}

.auth-title {
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    color: #d4af37;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 3px 3px 0 #000, 0 0 20px gold;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 15px;
}

.auth-form {
    width: 100%;
}

.auth-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.auth-icons {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.auth-icon {
    font-size: 48px;
    text-align: center;
    filter: drop-shadow(0 0 15px gold);
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px gold); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 25px gold); }
}

.auth-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-field {
    width: 100%;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.auth-field input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #8b7355;
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    font-family: 'Cinzel', serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    background: rgba(0, 0, 0, 0.8);
}

.auth-field input::placeholder {
    color: #8b7355;
    font-style: italic;
    opacity: 0.7;
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(145deg, #8b5a2b, #d4af37);
    border: none;
    border-radius: 50px;
    color: #000;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 0 #5a3a1a, 0 0 30px gold;
    margin-top: 20px;
    font-family: 'Cinzel', serif;
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 11px 0 #5a3a1a, 0 0 50px gold;
}

.auth-btn:active:not(:disabled) {
    transform: translateY(5px);
    box-shadow: 0 3px 0 #5a3a1a, 0 0 50px gold;
}

.auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(4px);
    box-shadow: 0 4px 0 #5a3a1a;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: #b89b7a;
    font-size: 16px;
}

.auth-footer a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.auth-footer a:hover {
    color: #ffd700;
    border-bottom-color: #ffd700;
}

.auth-error {
    background: rgba(139, 0, 0, 0.3);
    border: 2px solid #8b0000;
    border-radius: 50px;
    padding: 12px 20px;
    margin-bottom: 20px;
    color: #ff6b6b;
    text-align: center;
    font-weight: 700;
    backdrop-filter: blur(5px);
}

.auth-success {
    background: rgba(0, 100, 0, 0.3);
    border: 2px solid #006400;
    border-radius: 50px;
    padding: 12px 20px;
    margin-bottom: 20px;
    color: #4caf50;
    text-align: center;
    font-weight: 700;
    backdrop-filter: blur(5px);
}

/* ===== REGISTRAČNÍ GRID ===== */
.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.register-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== RESPONZIVITA - ZMENŠENÍ TITULU NA MOBILU ===== */
@media (max-width: 768px) {
    .mafia-header {
        padding: 10px 16px;
    }

    .mafia-header.sticky {
        padding: 6px 12px;
        min-height: 54px;
    }

    /* Zmenšení titulu pro tablety */
    html body .mafia-header .header-left h1,
    body .mafia-header .header-left h1,
    .mafia-header .header-left h1,
    .header-left h1,
    .shiny-title {
        font-size: var(--title-size-tablet) !important;
        letter-spacing: 3px !important;
    }
    
    .title-shadow,
    .title-glare {
        font-size: var(--title-size-tablet) !important;
        letter-spacing: 3px !important;
    }

    .mafia-header.sticky .shiny-title,
    .mafia-header.sticky .title-container,
    .mafia-header.sticky .header-left h1 {
        font-size: 22px !important;
        letter-spacing: 1.4px;
        margin-right: 12px;
    }

    .mafia-header.sticky .currency-display {
        min-width: 70px;
        padding: 5px 8px;
        font-size: 0.92rem;
    }
    
    .auth-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .auth-icons {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
    
    .register-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    html body .mafia-header .header-left h1,
    body .mafia-header .header-left h1,
    .mafia-header .header-left h1,
    .header-left h1,
    .shiny-title {
        font-size: var(--title-size-mobile) !important;
        letter-spacing: 2px !important;
    }
    
    .title-shadow,
    .title-glare {
        font-size: var(--title-size-mobile) !important;
        letter-spacing: 2px !important;
    }
    
    .welcome {
        display: none;
    }
    
    .mafia-header {
        padding: 8px 12px;
    }
    
    .currency-display {
        padding: 5px 8px;
        min-width: 70px;
    }
    
    .currency-icon {
        font-size: 1.2em;
    }
    
    .currency-value {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    html body .mafia-header .header-left h1,
    body .mafia-header .header-left h1,
    .mafia-header .header-left h1,
    .header-left h1,
    .shiny-title {
        font-size: var(--title-size-small) !important;
        letter-spacing: 1.5px !important;
    }
    
    .title-shadow,
    .title-glare {
        font-size: var(--title-size-small) !important;
        letter-spacing: 1.5px !important;
    }
    
    .mafia-header.sticky .shiny-title,
    .mafia-header.sticky .title-container,
    .mafia-header.sticky .header-left h1 {
        font-size: 16px !important;
    }
    
    .header-link {
        display: none;
    }
    
    .currency-display {
        min-width: 60px;
        padding: 4px 6px;
    }
    
    .currency-icon {
        font-size: 1em;
        margin-right: 2px;
    }
    
    .currency-value {
        font-size: 0.9em;
    }
    
    .currency-suffix {
        font-size: 0.8em;
    }
    
    .auth-card {
        padding: 20px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .auth-btn {
        font-size: 18px;
        padding: 12px;
    }
}

@media (max-width: 360px) {
    html body .mafia-header .header-left h1,
    body .mafia-header .header-left h1,
    .mafia-header .header-left h1,
    .header-left h1,
    .shiny-title {
        font-size: var(--title-size-xs) !important;
        letter-spacing: 1px !important;
    }
    
    .title-shadow,
    .title-glare {
        font-size: var(--title-size-xs) !important;
        letter-spacing: 1px !important;
    }
    
    .keys-display,
    .angel-doors-display {
        display: none;
    }
}

/* ===== RAINBOW TEXT - GLOBÁLNĚ PRO VŠECHNA TÉMATA ===== */
.rainbow-text {
    background: linear-gradient(
        90deg,
        #ff0040 0%,
        #ff6600 12%,
        #ffcc00 25%,
        #00ff88 37%,
        #00ccff 50%,
        #8844ff 62%,
        #ff0088 75%,
        #ff6600 87%,
        #ff0040 100%
    ) !important;
    background-size: 300% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    text-shadow: none !important;
    animation: smoothRainbow 4s linear infinite !important;
    filter: saturate(1.4);
}

@keyframes smoothRainbow {
    0%   { background-position: 0%   50%; }
    100% { background-position: 300% 50%; }
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ===== PARTICLE / ANIMATION PERFORMANCE OVERRIDES ===== */
/* FPS saver + no-fx both kill theme content animations */
body.fps-saver .content,
body.no-fx .content {
    animation: none !important;
    will-change: auto !important;
    background-image: none !important; /* remove animated gradient sparks */
    background-color: var(--content-bg, #2a1e14) !important;
}

/* Glow intensity — scale all glow-related shadows */
body { --glow-intensity: 1; --anim-speed: 1; }

/* Game anim speed variable propagation */
.slot-game, .plinko-game, .door-game, .suitcase-game, .cups-game, .basket-game, .gamblit-game {
    --local-anim-speed: var(--anim-speed, 1);
}

/* No-hover-fx disables interactive shadows/transforms */
body.no-hover-fx .settings-card:hover,
body.no-hover-fx .theme-swatch:hover,
body.no-hover-fx .pair-btn:hover,
body.no-hover-fx .font-btn:hover,
body.no-hover-fx .loan-option:hover,
body.no-hover-fx [class*="-btn"]:hover,
body.no-hover-fx [class*="-card"]:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ===== ZAWIERA PERFORMANCE HINT ===== */
.content { contain: paint; }