:root {
    --bg: #f4f4f9; --text: #111; --map-fill: #d1d5db; --map-stroke: #ffffff;
    --panel-bg: rgba(255, 255, 255, 0.92); 
    --panel-border: rgba(200, 200, 200, 0.8);
    --fidesz: #FF6A00; --tisza: #00457A; --mh: #6C9022; --egyeb: #888888;
}

body.dark {
    --bg: #121212; --text: #f4f4f9; --map-fill: #3a3a3a; --map-stroke: #1a1a1a;
    --panel-bg: rgba(30, 30, 30, 0.92); --panel-border: rgba(100, 100, 100, 0.6);
    --tisza: #4dabf5; --mh: #2ecc71;
}

* { -webkit-tap-highlight-color: transparent; }
button, a, img, svg { -webkit-user-drag: none; user-select: none; }
body, button, input { font-family: 'Host Grotesk', sans-serif !important; }

body {
    background: var(--bg); color: var(--text); margin: 0; height: 100vh; width: 100vw;
    display: flex; justify-content: center; align-items: center; overflow: hidden;
    transition: background 0.2s, color 0.2s; user-select: none; -webkit-user-select: none;
}

.icon-btn {
    width: 44px; height: 44px; cursor: pointer; border: 1px solid var(--panel-border);
    background: var(--panel-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: transform 0.1s; color: var(--text); padding: 0; box-shadow: none;
    pointer-events: auto;
}
.icon-btn:hover { transform: scale(1.05); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

#newsfeed-btn svg { stroke: #000 !important; fill: none !important; }
body.dark #newsfeed-btn svg { stroke: #fff !important; fill: none !important; }

.moon-icon { display: none; } 
body.dark .moon-icon { display: block; } 
.sun-icon { display: block; } 
body.dark .sun-icon { display: none; }

.top-bar {
    position: absolute; top: 0; left: 0; right: 0; height: 60px;
    background: var(--panel-bg); border-bottom: 1px solid var(--panel-border); 
    z-index: 2600; display: flex; justify-content: space-between; align-items: center; padding: 0 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: none; pointer-events: auto;
}
.hud-left { display: flex; align-items: center; gap: 20px; }
.hud-center { display: flex; flex-direction: column; flex: 1; margin-left: 20px; justify-content: center; }
.hud-right { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }

.logo-26 { font-weight: 800; font-style: italic; font-size: 28px; letter-spacing: -2px; line-height: 1; }
.hud-item { font-weight: 800; font-size: 16px; }

.progress-container { width: 200px; height: 8px; background: rgba(128,128,128,0.2); border-radius: 4px; overflow: hidden; margin-top: 4px;}
.progress-bar { height: 100%; background: var(--text); transition: width 0.3s ease; }
.countdown { font-size: 11px; opacity: 0.8; font-weight: 600;}

.party-info-btn {
    background: var(--panel-bg); border: 2px solid var(--panel-border); box-shadow: none;
    padding: 6px 14px; border-radius: 20px; font-weight: 800; font-size: 14px;
    cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s;
    color: var(--text); pointer-events: auto;
}
.party-info-btn:hover { opacity: 0.8; }

#next-turn-btn {
    display: flex; align-items: center; gap: 6px; box-shadow: none;
    background: var(--text); color: var(--bg); border: none; padding: 10px 20px;
    border-radius: 8px; font-weight: 800; font-size: 14px; cursor: pointer; transition: opacity 0.2s;
    text-transform: uppercase; letter-spacing: 0.5px; pointer-events: auto;
}
#next-turn-btn:hover:not(:disabled) { opacity: 0.8; }
#next-turn-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-text { display: inline; }

.btn-primary {
    background: var(--text); color: var(--bg); border: none; padding: 10px 20px;
    border-radius: 8px; font-weight: 800; font-size: 14px; cursor: pointer; transition: opacity 0.2s;
    text-transform: uppercase; letter-spacing: 0.5px; box-shadow: none; pointer-events: auto;
}
.btn-primary:hover:not(:disabled) { opacity: 0.8; }
.btn-primary:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-secondary {
    background: rgba(128,128,128,0.1); color: var(--text); border: 1px solid var(--panel-border);
    padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: 13px; width: 100%; margin-top: 10px; cursor: pointer; transition: all 0.2s; pointer-events: auto;
}
.btn-secondary:hover:not(:disabled) { background: var(--text); color: var(--bg); }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.hud-buttons { display: flex; gap: 10px; align-items: center;}

.campaign-limit-badge {
    display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: none;
    background: var(--panel-bg); border: 1px solid var(--panel-border);
    padding: 8px 12px; border-radius: 30px; font-weight: 800; font-size: 14px; color: var(--text);
}

.budget-btn { 
    display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: none;
    background: var(--panel-bg); border: 1px solid var(--panel-border); padding: 8px 15px; 
    border-radius: 30px; font-weight: 800; font-size: 15px; color: var(--text); cursor: pointer; min-width: 140px; pointer-events: auto;
}
.budget-btn svg { stroke: #2ecc71; pointer-events: none; }
body:not(.dark) .budget-btn svg { stroke: #27ae60; }
.budget-btn:hover { opacity: 0.8; }

@keyframes modalPop {
    0% { transform: scale(0.95) translateY(10px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    height: 100dvh;
    background: rgba(0,0,0,0.4); z-index: 3000; display: flex; justify-content: center; align-items: center; 
    opacity: 1; transition: opacity 0.3s ease, visibility 0.3s ease; pointer-events: auto; visibility: visible;
}

.hidden { opacity: 0 !important; pointer-events: none !important; visibility: hidden !important; }

.modal {
    background: var(--panel-bg); border: 1px solid var(--panel-border);
    padding: 30px; border-radius: 16px; width: 90%; max-width: 600px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); max-height: 90vh; overflow-y: auto; text-align: center;
    animation: modalPop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); color: var(--text);
}
.modal h1 { margin-top: 0; margin-bottom: 5px; font-weight: 800; font-size: 28px;}
.modal h2 { margin-top: 0; margin-bottom: 15px; font-weight: 800; font-size: 22px;}
.modal p { margin-bottom: 25px; opacity: 0.8; line-height: 1.5; font-size: 15px;}

/* Kép mérete: tökéletesen négyzet, mobilon is biztonságos */
.event-img { width: 100%; max-width: 160px; aspect-ratio: 1/1; object-fit: cover; margin: 0 auto 15px auto; display: block; border-radius: 12px; border: 1px solid var(--panel-border); }

.march-15-style {
    background: linear-gradient(180deg, #fdfaf4 0%, #f1e5cf 100%) !important;
    border-top: 5px solid #cd2a3e !important;
    border-bottom: 5px solid #436f4d !important;
    color: #2c2518 !important;
    box-shadow: inset 0 0 30px rgba(139, 115, 85, 0.15), 0 20px 50px rgba(0,0,0,0.3) !important;
}
.march-15-style h2, .march-15-style div { color: #2c2518 !important; }
.march-15-style .choice-btn {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(139, 115, 85, 0.4) !important;
    color: #2c2518 !important;
}
.march-15-style .choice-btn:hover:not(:disabled) {
    background: #2c2518 !important;
    color: #fdfaf4 !important;
}

@keyframes flashRed {
    0% { background-color: rgba(220, 38, 38, 0.6); }
    100% { background-color: transparent; }
}
.flash-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 9999; animation: flashRed 0.8s ease-out forwards;
}

.scandal-title {
    color: #dc2626 !important;
    font-style: italic;
    font-weight: 900 !important;
    text-transform: uppercase;
    font-size: 32px !important;
}

.party-grid { display: flex; flex-direction: row; gap: 10px; margin-bottom: 15px;}
.party-card {
    background: rgba(128,128,128,0.05); border: 1px solid var(--panel-border);
    padding: 12px 10px; border-radius: 12px; cursor: pointer; transition: all 0.2s ease; 
    text-align: center; color: var(--text); pointer-events: auto; flex: 1;
    display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
}
.party-card:hover { transform: translateY(-2px); border-color: var(--text); }

.party-card.active { background: rgba(128,128,128,0.15); transform: translateY(-2px); }
#card-fidesz.active { border-color: var(--fidesz); box-shadow: inset 0 0 25px color-mix(in srgb, var(--fidesz) 20%, transparent), inset 0 0 0 1px var(--fidesz); }
#card-tisza.active { border-color: var(--tisza); box-shadow: inset 0 0 25px color-mix(in srgb, var(--tisza) 20%, transparent), inset 0 0 0 1px var(--tisza); }
#card-mh.active { border-color: var(--mh); box-shadow: inset 0 0 25px color-mix(in srgb, var(--mh) 20%, transparent), inset 0 0 0 1px var(--mh); }

.party-name { font-weight: 800; font-size: 16px; margin-bottom: 4px; line-height: 1.1; display:flex; align-items:center; justify-content:center; gap:6px; }
.party-desc { font-size: 12px; opacity: 0.8; line-height: 1.4; margin-top: 4px; }

.power-balance-container { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
#power-balance-label { transition: opacity 0.15s ease-in-out, color 0.15s ease-in-out; text-align: right; line-height: 1.2; }

.custom-slider {
    -webkit-appearance: none; 
    width: 100%; 
    height: 8px; 
    border-radius: 4px;
    background: linear-gradient(to right, var(--fidesz) 0%, rgba(128,128,128,0.3) 50%, var(--tisza) 100%); 
    outline: none; 
    margin-top: 10px;
}
.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--panel-bg); 
    border: 3px solid var(--text);
    cursor: pointer; transition: transform 0.1s;
}
.custom-slider::-moz-range-thumb {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--panel-bg); 
    border: 3px solid var(--text);
    cursor: pointer;
}
.custom-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

.difficulty-selector { margin-bottom: 20px; text-align: left; }
.difficulty-title { font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.diff-buttons { display: flex; gap: 10px; }
.diff-btn {
    flex: 1; padding: 10px; border: 1px solid var(--panel-border);
    background: var(--panel-bg); color: var(--text); border-radius: 8px;
    font-weight: 700; cursor: pointer; transition: all 0.2s; font-size: 13px; pointer-events: auto;
}
.diff-btn:hover { background: rgba(128,128,128,0.1); }
.diff-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.choice-btn {
    display: block; width: 100%; text-align: left; background: rgba(128,128,128,0.05);
    border: 1px solid var(--panel-border); padding: 14px 18px; margin-bottom: 12px;
    border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--text); transition: all 0.1s; cursor: pointer; pointer-events: auto;
}
.choice-btn:hover:not(:disabled) { background: var(--text); color: var(--bg); }
.choice-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.flex-choices { display: flex; gap: 10px; }
.flex-choices .choice-btn { flex: 1; text-align: center; padding: 14px 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 0; }

.cal-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--panel-border); font-size: 15px; text-align: left;}
.cal-date { font-weight: 800; color: var(--hover-fill); min-width: 100px;}

#toast-container { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 4000; display: flex; flex-direction: column; gap: 10px; pointer-events: none !important;}
.toast { background: var(--text); color: var(--bg); padding: 12px 24px; border-radius: 30px; font-weight: 700; font-size: 14px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); animation: toastAnim 4s forwards; pointer-events: none !important; text-align: center; }
@keyframes toastAnim { 0% { opacity: 0; transform: translateY(-20px); } 10% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-20px); } }

.toast, .modal p, .modal h1, .modal h2, .t-subtitle, .event-desc, .party-desc, .tweet-text, .m-title, .choice-btn {
    text-wrap: balance;
}

/* Elegáns, villanásmentes map belépés */
@keyframes fadeInMap { from { opacity: 0; } to { opacity: 1; } }
.map-container { width: 100vw; height: 100vh; cursor: grab; position: absolute; top:0; left:0; overflow: hidden; touch-action: none; z-index: 10; opacity: 0; animation: fadeInMap 0.8s ease 0.2s forwards; background: var(--bg);}
.map-container:active { cursor: grabbing; }
.map-container svg { position: absolute; top: 0; left: 0; width: 873px; height: 539px; transform-origin: 0 0; }
.map-container svg.smooth-zoom { transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); }

path {
    fill: color-mix(in srgb, var(--party-color, var(--map-fill)) var(--intensity, 0%), var(--map-fill)) !important;
    stroke: var(--map-stroke) !important; stroke-width: 0.6px !important;
    cursor: pointer; transition: filter 0.2s ease; outline: none; vector-effect: non-scaling-stroke; pointer-events: auto;
}
path:hover, path.active-district { filter: brightness(0.65) saturate(1.2); z-index: 10; }

.solid-panel {
    background: var(--panel-bg); border: 1px solid var(--panel-border); color: var(--text);
    border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); 
}

#tooltip { position: fixed; padding: 12px 16px; min-width: 240px; font-size: 14px; pointer-events: none; display: none; transform: translate(-50%, 0); z-index: 1000;}
#tooltip.pinned { pointer-events: auto; } 

.t-title { font-size: 16px; font-weight: 800; text-align: center; margin-bottom: 2px;}
.t-subtitle { font-size: 13px; font-weight: 500; text-align: center; opacity: 0.7; margin-bottom: 8px; border-bottom: 1px solid var(--panel-border); padding-bottom: 6px;}
.t-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 8px; margin-bottom: 4px; border-radius: 0 6px 6px 0; background: rgba(128,128,128,0.05); }

.c-fidesz { background-color: var(--fidesz); color: var(--fidesz); } .c-tisza { background-color: var(--tisza); color: var(--tisza); } .c-mh { background-color: var(--mh); color: var(--mh); } .c-egyeb { background-color: var(--egyeb); color: var(--egyeb); } 
.b-fidesz { border-left: 4px solid var(--fidesz); } .b-tisza { border-left: 4px solid var(--tisza); } .b-mh { border-left: 4px solid var(--mh); } .b-egyeb { border-left: 4px solid var(--egyeb); }

.t-left { display: flex; flex-direction: column; } .t-party { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; } .t-cand { font-size: 12px; font-weight: 500; opacity: 0.8; margin-top: 2px; } .t-val { font-weight: 800; font-size: 16px; margin-left: 15px; }

#ui-wrapper { position: absolute; bottom: 20px; left: 20px; z-index: 2600; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }

#floating-buttons { display: none; justify-content: space-between; align-items: flex-end; width: 100%; pointer-events: none; }

.settings-container { position: relative; display: flex; align-items: center; pointer-events: none; }
.settings-menu {
    display: flex; flex-direction: row; gap: 12px;
    position: absolute; right: 100%; bottom: 0; margin-right: 12px;
    opacity: 0; pointer-events: none !important; transform: translateX(20px);
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.settings-menu button { pointer-events: none !important; }
.settings-menu.open { opacity: 1; pointer-events: auto !important; transform: translateX(0); }
.settings-menu.open button { pointer-events: auto !important; }

#mandate-widget { padding: 16px; min-width: 320px; max-width: 450px; cursor: pointer; transition: transform 0.2s; display: none; pointer-events: auto; }
#mandate-widget:hover { transform: translateY(-2px); box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2); }
.m-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; opacity: 0.8; display: flex; justify-content: space-between;}
.m-bar-container { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-bottom: 12px; background: rgba(128,128,128,0.2); }
.m-bar { height: 100%; transition: width 0.5s ease; display: flex; align-items: center; justify-content: center; font-size: 10px; color: white; font-weight: 800;}
.m-labels { display: flex; justify-content: space-between; font-size: 15px; font-weight: 800; }
.m-label { display: flex; align-items: center; gap: 6px; }
.m-dot { width: 10px; height: 10px; border-radius: 50%; }

.m-details { max-height: 0; overflow: hidden; transition: max-height 0.2s ease, margin-top 0.2s ease; opacity: 0; font-size: 13px; font-weight: 500;}
#mandate-widget.expanded .m-details { max-height: 400px; opacity: 1; margin-top: 12px; border-top: 1px solid var(--panel-border); padding-top: 10px;}
.m-detail-row { display: flex; justify-content: space-between; margin-bottom: 4px; }
.m-source { font-size: 11px; text-align: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--panel-border); opacity: 0.7; }
.m-source a { color: var(--text); font-weight: 700; text-decoration: none; }
.m-source a:hover { text-decoration: underline; }

#newsfeed-panel {
    position: fixed; bottom: 20px; right: 20px; width: 420px; max-height: 60vh;
    display: flex; flex-direction: column; z-index: 2500;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
    transform: translateY(20px); opacity: 0; pointer-events: none;
}
#newsfeed-panel.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

.nf-header { padding: 15px 20px; border-bottom: 1px solid var(--panel-border); font-weight: 900; font-size: 18px; display: flex; justify-content: space-between; align-items: center; background: var(--panel-bg); border-radius: 12px 12px 0 0;}
.nf-body { flex: 1; overflow-y: auto; padding: 0; display: flex; flex-direction: column; }

@keyframes fadeTweet {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.tweet { display: flex; gap: 12px; font-size: 14px; padding: 15px 20px; border-bottom: 1px solid var(--panel-border); transition: background 0.2s; animation: fadeTweet 0.3s ease-out forwards; opacity: 0;}
.tweet:hover { background: rgba(128,128,128,0.05); }
.tweet:last-child { border-bottom: none; }
.tweet-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: rgba(128,128,128,0.1); border: 1px solid var(--panel-border); flex-shrink: 0;}
.tweet-content { flex: 1; display: flex; flex-direction: column; gap: 2px;}
.tweet-header { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tweet-name { font-weight: 800; font-size: 15px; }
.tweet-handle { opacity: 0.6; font-size: 13px; margin-left: 2px;}
.tweet-verified { width: 14px; height: 14px; flex-shrink: 0; }
.tweet-text { line-height: 1.4; opacity: 0.9; margin-top: 2px; }

.leader-badge {
    display: inline-block;
    background: rgba(128,128,128,0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--panel-border);
    color: var(--text);
}
.intro-header { display: flex; gap: 20px; align-items: center; margin-bottom: 15px; }
.intro-title-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mobile-break { display: none; }

.election-splash {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s;
}
.election-splash-bg {
    position: absolute; inset: 0;
    box-shadow: inset 0 0 0px rgba(46, 204, 113, 0);
}
.election-splash-text {
    position: relative;
    color: var(--text); font-size: 28px; font-weight: 900; text-transform: uppercase; letter-spacing: 4px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transform: scale(0.95); opacity: 0;
    background: var(--panel-bg); padding: 15px 30px; border-radius: 12px;
    border: 1px solid var(--panel-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.election-splash.active { opacity: 1; pointer-events: auto; background: rgba(0,0,0,0.2); }
.election-splash.active .election-splash-bg { animation: softGreenPulse 2.5s ease-in-out forwards; }
.election-splash.active .election-splash-text { animation: softTextIn 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

@keyframes softGreenPulse {
    0% { box-shadow: inset 0 0 0px rgba(46, 204, 113, 0); }
    30% { box-shadow: inset 0 0 40px rgba(46, 204, 113, 0.5); }
    70% { box-shadow: inset 0 0 60px rgba(46, 204, 113, 0.6); }
    100% { box-shadow: inset 0 0 0px rgba(46, 204, 113, 0); }
}
@keyframes softTextIn {
    0% { transform: scale(0.9); opacity: 0; }
    20% { transform: scale(1); opacity: 1; }
    80% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(1.05); opacity: 0; }
}

@media (max-width: 600px) {
    .mobile-break { display: block; }
    #intro-bio-leader-badge { text-align: center; }

    .power-balance-container { flex-direction: column; align-items: center !important; text-align: center; gap: 8px; }
    #power-balance-label { text-align: center !important; width: 100%; }
    .difficulty-title.power-balance-container { justify-content: center; }

    .toast { width: 75vw; max-width: 75vw; line-height: 1.4; text-wrap: balance; padding: 12px 18px; }

    .intro-header { align-items: flex-start; }
    .intro-img-container { width: 80px !important; height: 105px !important; }
    #intro-bio-title { font-size: 24px !important; }

    #ui-wrapper { bottom: 10px; left: 10px; right: 10px; }
    #mandate-widget { min-width: auto; width: 100%; box-sizing: border-box; }
    
    .modal {
        width: 90%; 
        padding: 25px 20px;
        box-sizing: border-box;
    }
    .modal h1 { font-size: 24px; }
    .modal h2 { font-size: 20px; }

    .top-bar { padding: 0 10px; height: 56px; gap: 5px;}
    .hud-left { gap: 8px; flex: 0 0 auto; width: auto; }
    .hud-right { gap: 4px; flex: 0 0 auto; }
    .hud-center { flex: 1 1 auto; margin: 0 5px; align-items: center; text-align: center; overflow: hidden; justify-content: center; }
    
    .logo-26 { font-size: 22px; margin-right: 0; }
    .hud-item { font-size: 11px; white-space: nowrap; }
    .countdown { font-size: 9px; white-space: nowrap; }
    .progress-container { max-width: 100px; width: 100%; margin-top: 3px; }
    
    .party-grid { gap: 6px; margin-bottom: 15px; }
    .party-card { padding: 12px 4px; }
    .party-name { font-size: 14px; margin-bottom: 0; }
    .party-desc { display: none; } 
    
    .party-info-btn { padding: 0; width: 34px; height: 34px; min-width: 34px; justify-content: center; border-radius: 50%; border-width: 1px; }
    .party-info-btn span#hud-party-name { display: none; } 
    .party-info-btn span.m-dot { margin: 0; width: 14px; height: 14px; }
    
    .calendar-btn { display: none !important; }
    .campaign-limit-badge { display: none !important; }
    
    .budget-btn { padding: 4px 6px; width: auto; justify-content: center; border-radius: 20px; min-width: 0; }
    .hud-budget-text { display: inline !important; font-size: 11px !important; margin-left: 2px; font-weight: 800; white-space: nowrap; }
    .budget-btn svg { margin: 0; width: 14px; height: 14px; stroke: #2ecc71 !important; margin-right: 0 !important; }
    body.dark .budget-btn svg { stroke: #2ecc71 !important; }
    
    /* Gomb formázása mobilra, fekete szín fixálása */
    #next-turn-btn { padding: 0; width: 34px; height: 34px; min-width: 34px; justify-content: center; border-radius: 50%; background: var(--text) !important; color: var(--bg) !important; border: none !important; }
    .btn-text { display: none !important; }
    #next-turn-btn svg { margin: 0; width: 20px; height: 20px; fill: currentColor !important; }
    
    #newsfeed-panel { width: 90%; left: 5%; top: auto; bottom: 75px; max-height: 360px; right: auto; z-index: 2500; }
    
    #tooltip {
        top: 70px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90%;
        max-width: 320px;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }
    body.dark #tooltip { background: rgba(30, 30, 30, 0.96); }
}