/* Baloo 2 (variable 400-800) — polskie znaki w subsecie latin-ext */
@font-face {
    font-family: 'Baloo 2';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fnt/baloo2-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Baloo 2';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fnt/baloo2-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-weight: 600;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    cursor: url('/cur/normal.cur'), auto;
    background: #1a1f3a;
}

/* =====================================================================
   SCENA: cała gra jest projektowana w stałych px na płótnie 2560x1440,
   a .game-wrapper jest skalowany JEDNYM transform: scale() do okna
   (JS: fitStage w game.js). Jak zdjęcie zmniejszane/powiększane w całości.
   ===================================================================== */
.game-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2560px;
    height: 1440px;
    transform: translate(-50%, -50%); /* skalę dopisuje JS */
    transform-origin: center center;
    overflow: hidden;
}

/* Warstwa 1 - Background */
.background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Warstwa 2 - Pasek nagłówka */
.header-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 69px;
    background-color: rgba(21, 27, 52, 0.7);
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 0 13px;
}

/* Warstwa 3 - Ikony na pasku nagłówka */
.header-icons {
    position: absolute;
    top: 14px;
    right: 13px;
    z-index: 3;
    display: flex;
    gap: 18px;
    align-items: center;
}

.header-icon {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.header-icon span {
    color: white;
    font-size: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.pmd-logo {
    position: absolute;
    top: 25%;
    left: 13px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    z-index: 3;
}

/* Warstwa 4 - Logo gry */
.game-logo {
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: 900px;
}

.game-logo img {
    width: 100%;
    height: auto;
}

/* Warstwa 5 - Linia napięcia */
.power-line {
    display: none;
    position: absolute;
    top: 257px;
    left: -39px;
    z-index: 5;
    transition: transform 0.2s;
}

/* Słup energetyczny bez interakcji — brak hovera, kursor domyślny (strzałka) */

.power-line img {
    height: 720px;
    width: auto;
}

/* Warstwa 6 - Maszt nadawczy */
.transmitter {
    display: none;
    position: absolute;
    top: 260px;
    right: 73px;
    z-index: 6;
    transition: transform 0.2s;
}

.transmitter img:hover {
    transform: scale(1.005);
    cursor: url('/cur/link.cur'), auto;
}

.transmitter img {
    height: 760px;
    width: auto;
}

/* Warstwa 7 - Dozorca */
.caretaker {
    display: none;
    position: absolute;
    bottom: 317px;
    right: 30%;
    z-index: 8;
    transition: transform 0.2s;
}

.caretaker img:hover {
    transform: scale(1.005);
    cursor: url('/cur/link.cur'), auto;
}

.caretaker img {
    height: 550px;
    width: auto;
}

/* Warstwa 8 - Stacja radiowa */
.radiostation {
    display: none;
    position: absolute;
    bottom: 317px;
    left: 23%;
    z-index: 7;
    transition: transform 0.2s;
}

.radiostation img:hover {
    transform: scale(1.005);
    cursor: url('/cur/link.cur'), auto;
}

.radiostation img {
    height: 720px;
    width: auto;
}

/* Warstwa 9 - Drzewo */
.tree {
    display: none;
    position: absolute;
    bottom: 300px;
    left: 395px;
    z-index: 9;
    transition: transform 0.2s;
}

/* Drzewo bez interakcji — brak hovera, kursor domyślny (strzałka) */

.tree img {
    height: 760px;
    width: auto;
}

/* Warstwa 10 - Płotek */
.fence {
    display: none;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: transform 0.2s;
    width: 100%;
}

/* Płotek bez interakcji — brak hovera, kursor domyślny (strzałka) */

.fence img {
    width: 100%;
    height: auto;
}

/* Hitboxy z alpha: zdarzenia wskaźnika łapie tylko przycięty (clip-path)
   obrazek, a nie prostokątny kontener — dzięki temu hover/click działają na
   kształcie, a przezroczyste miejsca "przepuszczają" do obiektu pod spodem. */
.radiostation, .caretaker, .transmitter, .power-line, .tree, .fence {
    pointer-events: none;
}
.radiostation img, .caretaker img, .transmitter img,
.power-line img, .tree img, .fence img {
    pointer-events: auto;
}

/* Warstwa 11 - Boczne ikony */
.side-icons {
    position: absolute;
    top: 340px;
    right: 31px;
    transform: translateY(-50%);
    z-index: 11;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-icon {
    width: 100px;
    height: 100px;
    background-color: rgba(21, 27, 52, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    border: 6px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 14px;
}

.side-icon:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    cursor: url('/cur/link.cur'), auto;
}

.side-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Warstwa 12 - Blok spinnera */
.spinner-container {
    position: absolute;
    width: 1459px;
    height: 306px;
    bottom: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    background-image: url('/img/spinner_block.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.spinner-block {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-left {
    left: 77px;
    top: 158px;
    transform: translateY(-50%);
}

.spinner-center {
    left: 791px;
    top: 138px;
    transform: translate(-50%, -50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner-right {
    right: 100px;
    top: 158px;
    transform: translateY(-50%);
}

.spinner-content {
    display: flex;
    gap: 12px;
    align-items: center;
}

.spinner-item {
    position: relative;
    width: 108px;
    height: 145px;
    background: #fff;
    background-size: cover !important;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    top: -34px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 0;
    cursor: url('/cur/link.cur'), auto;
    transition: transform 0.2s;
}

.spinner-item:hover {
    transform: scale(1.02);
    opacity: 0.8;
}

/* Efekt Shine */
.spinner-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
    transform: skewX(-25deg);
}

.spinner-item:hover::after {
    animation: shine 0.75s;
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

.spinner-item::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 5px;
    border-radius: inherit;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.6),
        rgba(144, 114, 52, 0.6)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    pointer-events: none;
}

.spinner-stars {
    display: flex;
    margin-bottom: 5px;
}

.star {
    color: #ffd700;
    font-size: 35px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
    visibility: hidden;
}

.lottery {
    margin: 0 auto !important;
}

.lottery-content {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.lottery-item {
    position: relative;
    width: 108px;
    height: 145px;
    background: #fff;
    top: -5px;
    left: -60px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 0;
}

.lottery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 5px;
    border-radius: inherit;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.6),
        rgba(144, 114, 52, 0.6)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 2;
    pointer-events: none;
}

/* ===== Bębny spinnera ===== */
.reel-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.reel-cell {
    width: 100%;
    height: 145px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-cell img {
    width: auto;
    height: 120px;
    object-fit: contain;
}

.reel-cell .emoji {
    font-size: 56px;
    line-height: 1;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

/* Rozmycie podczas kręcenia */
.lottery-item.spinning .reel-strip {
    animation: reelLoop 0.35s linear infinite;
    filter: blur(2px);
}

@keyframes reelLoop {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}

/* Błysk wygranej */
.lottery-item.win {
    animation: winPulse 0.5s ease-in-out 3;
}

@keyframes winPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 215, 0, 0); }
    50%      { box-shadow: 0 0 35px rgba(255, 215, 0, 0.95); }
}

.spin-button {
    position: absolute;
    top: 100px;
    left: 18px;
    z-index: 100;
    transition: all 0.2s ease;
    cursor: url('/cur/link.cur'), auto;
}

.spin-button:hover {
    transform: scale(1.05);
}

.spin-button:active {
    transform: scale(0.98);
}

.spin-button.disabled {
    pointer-events: none;
    filter: grayscale(80%) brightness(0.8);
}

/* ===== Karty budynków — tła ustawia JS wg poziomu ===== */
.station_build,
.transmitter_build,
.tree_build,
.power_build,
.caretaker_build,
.fence_build {
    background-color: #d8d2c4;
}

/* =====================================================================
   Modale — montowane w body (poza sceną), ale skalują się tak samo jak
   gra przez --stage-scale (ustawiane w fitStage w game.js).
   ===================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 12, 24, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* Panel modala — szare szkło (jak w koncepcie), gra przebija w tle */
.modal-content {
    background: rgba(84, 90, 104, 0.38);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    max-width: 600px;
    width: 90%;
    max-height: 82vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(var(--stage-scale, 1));
    transform-origin: center center;
    animation: modalIn 0.25s ease-out;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    color: #f2f4f8;
}

@keyframes modalIn {
    from { transform: scale(calc(var(--stage-scale, 1) * 0.9)); opacity: 0; }
    to   { transform: scale(var(--stage-scale, 1)); opacity: 1; }
}

.modal-content.large { max-width: 900px; }

/* Modal z zakładkami (profil) — szerszy kontener dla wszystkich zakładek */
.modal-content.modal-tabbed { max-width: 820px; }

/* Nagłówek (modale komunikatów — bez zakładek) */
.modal-header {
    padding: 22px 26px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Zakładki (profil) — jasnoszare bloki z ciemnym tekstem, jak w koncepcie */
.modal-tabs {
    display: flex;
    gap: 6px;
    padding: 14px 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.modal-tab {
    flex: 1;
    padding: 12px 8px;
    background: rgba(226, 230, 236, 0.5);
    border: none;
    color: #2a2e3a;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: url('/cur/link.cur'), pointer;
    border-radius: 6px 6px 0 0;
    transition: background 0.15s, color 0.15s;
}

.modal-tab:hover {
    background: rgba(236, 239, 244, 0.7);
}

.modal-tab.active {
    background: rgba(242, 245, 249, 0.95);
    color: #14171f;
}

/* Ciało */
.modal-body {
    padding: 24px 26px;
    overflow-y: auto;
    flex: 1;
}

.modal-content:not(.modal-tabbed) .modal-body {
    text-align: center;
}

.modal-body h3 { margin-top: 0; color: #ffffff; }

.modal-body p {
    line-height: 1.55;
    font-size: 18px;
    white-space: pre-line;
    margin: 0;
}

.modal-body .modal-icon {
    width: 84px;
    height: 84px;
    object-fit: contain;
    margin-bottom: 14px;
}

.modal-body .modal-icon-emoji {
    font-size: 66px;
    line-height: 1;
    display: block;
    margin-bottom: 14px;
}

/* Stopka + przyciski — jednolite szare szkło (jak w koncepcie) */
.modal-footer {
    padding: 18px 26px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    justify-content: center;
    gap: 12px;
}

.modal-button {
    padding: 11px 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(222, 227, 234, 0.28);
    color: #f4f6f9;
    cursor: url('/cur/link.cur'), pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.modal-button:hover {
    background: rgba(232, 236, 241, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.3);
}

.modal-button:active { transform: translateY(0); }

/* Primary (OK / ZAPISZ) — odrobinę jaśniejszy od reszty */
.modal-ok, .modal-save {
    background: rgba(236, 240, 245, 0.42);
    color: #ffffff;
    font-weight: 700;
}
.modal-ok:hover, .modal-save:hover {
    background: rgba(242, 245, 249, 0.55);
}

/* Sekcja Stacja — 2 kolumny po 5 wierszy */
.station-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 22px;
}

/* ===== Kontrolki formularza (ostylowane wg mockupu) ===== */
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }

.field-label {
    display: block;
    color: #eef1f6;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.field-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Etykieta w tej samej linii co kontrolka (np. GŁOŚNOŚĆ MUZYKI ——o——) */
.field-row .field-label {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.field-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e9ecf2;
    font-size: 15px;
    cursor: url('/cur/link.cur'), pointer;
    margin-bottom: 8px;
}
.field-inline:last-child { margin-bottom: 0; }

/* Suwak — cienka linia + biała kropka (jak w koncepcie) */
.modal-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 2px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.45);
    outline: none;
    cursor: url('/cur/link.cur'), pointer;
}
.modal-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    cursor: url('/cur/link.cur'), pointer;
}
.modal-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    cursor: url('/cur/link.cur'), pointer;
}
.slider-val {
    min-width: 46px;
    text-align: right;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
}

/* Checkbox — jasnoszary kwadrat */
.modal-checkbox {
    -webkit-appearance: none;
    appearance: none;
    width: 19px;
    height: 19px;
    margin: 0;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(222, 227, 234, 0.35);
    cursor: url('/cur/link.cur'), pointer;
    position: relative;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}
.modal-checkbox:checked {
    background: #eef1f6;
    border-color: #eef1f6;
}
.modal-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #2a2e3a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Radio — jasnoszare kółko */
.modal-radio {
    -webkit-appearance: none;
    appearance: none;
    width: 19px;
    height: 19px;
    margin: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(222, 227, 234, 0.35);
    cursor: url('/cur/link.cur'), pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.15s;
}
.modal-radio:checked { border-color: #eef1f6; }
.modal-radio:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #eef1f6;
}

/* Input tekstowy — jasnoszare wypełnienie */
.modal-input {
    width: 100%;
    padding: 10px 13px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(222, 227, 234, 0.28);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}
.modal-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.modal-input:focus {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(228, 232, 238, 0.38);
}
.modal-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Select — jasnoszary, strzałka po prawej */
.modal-select {
    width: 100%;
    padding: 10px 38px 10px 13px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(222, 227, 234, 0.28);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23eef1f6' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: url('/cur/link.cur'), pointer;
    transition: border-color 0.15s;
}
.modal-select:focus { border-color: rgba(255, 255, 255, 0.75); }

/* Stepper (.custom-stepper) — opcje przełączane strzałkami ▲▼ (w kółko) */
.custom-stepper {
    display: flex;
    align-items: center;
    user-select: none;
    background-image: none;          /* bez strzałki-tła jak w zwykłym selekcie */
    padding-right: 8px;
}
.custom-stepper .cs-label {
    flex: 1;
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cs-arrows {
    display: flex;
    flex-direction: column;
    margin-left: 8px;
    flex-shrink: 0;
}
.cs-arrow {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 9px;
    line-height: 1;
    padding: 2px 6px;
    cursor: url('/cur/link.cur'), pointer;
}
.cs-arrow:hover { color: #c7ccd7; }
.cs-arrow:active { transform: translateY(1px); }

/* Autocomplete miejscowości (open-meteo) */
.autocomplete { position: relative; }
/* Podpowiedzi miejscowości — ten sam styl co lista opcji selecta */
.autocomplete-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #aab0ba;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    max-height: 220px;
    overflow-y: auto;
    z-index: 5;
}
.autocomplete-item {
    padding: 9px 13px;
    font-size: 15px;             /* jak tekst w polu */
    color: #1e222c;
    cursor: url('/cur/normal.cur'), auto;  /* strzałka przy wyborze podpowiedzi */
}
.autocomplete-item:hover { background: #7d8492; }

/* Upload logo stacji */
.logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.logo-preview {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(222, 227, 234, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px;
    flex-shrink: 0;
}
.logo-ctl {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.file-note {
    font-size: 13px;
    color: rgba(231, 235, 246, 0.55);
}

/* Notka pod formularzem */
.field-note {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(231, 235, 246, 0.5);
}

/* ===== Profil ===== */
.profile-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(222, 227, 234, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 10px;
    margin-bottom: 6px;
}
.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.profile-line { font-size: 15px; color: rgba(255, 255, 255, 0.7); }
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}
.profile-cell {
    background: rgba(222, 227, 234, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #f2f4f8;
}
.profile-cell img { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }

/* ===== Efekty budowania (animowane przez GSAP) ===== */
.build-fx {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    overflow: visible;
}

/* Warstwa chmury kurzu — turbulencja SVG rozrywa kształty kłębów,
   żeby nie było widać pojedynczych kółek */
.fx-cloud {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    filter: url(#dustFilter);
}

/* Kłęby kurzu zakrywające budynek podczas rozbudowy */
.fx-puff {
    position: absolute;
    background: radial-gradient(circle,
        rgba(206, 190, 165, 0.98) 0%,
        rgba(184, 166, 138, 0.9) 45%,
        rgba(158, 140, 112, 0.6) 75%,
        rgba(158, 140, 112, 0) 100%);
    filter: blur(2px);
}

.fx-puff.dark {
    background: radial-gradient(circle,
        rgba(163, 145, 118, 0.95) 0%,
        rgba(138, 120, 95, 0.85) 45%,
        rgba(112, 96, 74, 0.55) 75%,
        rgba(112, 96, 74, 0) 100%);
    filter: blur(3px);
}

/* Narzędzia wystające z kurzu (obrazki /img/hammer|saw|wrench.png) */
.fx-tool {
    position: absolute;
    height: auto;
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,0.4));
    z-index: 3;
}

.fx-spark {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffd764;
    box-shadow: 0 0 10px 3px rgba(255, 200, 60, 0.9);
    z-index: 2;
}
