.field-page {
    width: min(100%, 1160px);
}

.field-hero {
    padding: clamp(20px, 4vw, 38px) 0 clamp(16px, 3vw, 24px);
    text-align: center;
}

.field-hero h1 {
    margin-top: 16px;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.field-hero h1 span {
    background: linear-gradient(100deg, #1dd1a1 0%, #7c6cff 55%, #ffb84d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.field-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.demo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.demo-toggle input {
    accent-color: #7c6cff;
    width: 16px;
    height: 16px;
}

.city-picker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    font-size: 0.82rem;
}

.city-picker select {
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 6px;
    font: inherit;
}

.geo-status {
    color: var(--muted);
    font-size: 0.76rem;
}

/* ===== Kara i raid ===== */
.raid-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.raid-warning,
.raid-death {
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
}

.raid-warning {
    border: 1px solid rgba(254, 202, 87, 0.36);
    background: rgba(254, 202, 87, 0.1);
    color: #ffe6a8;
}

.raid-death {
    border: 1px solid rgba(255, 95, 158, 0.45);
    background: rgba(255, 95, 158, 0.12);
    color: #ffc2d9;
}

.raid-carry {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.raid-carry-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.raid-carry-head h3 {
    font-size: 0.82rem;
    letter-spacing: -0.01em;
}

.raid-hint {
    margin-top: 6px;
    color: rgba(238, 240, 255, 0.4);
    font-size: 0.68rem;
    line-height: 1.4;
}

.carried-list,
.extraction-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.carried-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 10px;
    background: rgba(254, 202, 87, 0.07);
    border: 1px solid rgba(254, 202, 87, 0.22);
    font-size: 0.75rem;
    font-weight: 700;
}

.carried-item .icon {
    font-size: 1rem;
}

.carried-item .slots {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.66rem;
}

.carried-empty {
    color: var(--muted);
    font-size: 0.72rem;
}

.extraction-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(29, 209, 161, 0.3);
    border-radius: 10px;
    background: rgba(29, 209, 161, 0.07);
    color: var(--text);
    font-family: inherit;
    font-size: 0.73rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.extraction-btn:disabled {
    opacity: 0.42;
    cursor: default;
}

.extraction-btn small {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.64rem;
}

.extraction-btn.private {
    border-color: rgba(124, 108, 255, 0.5);
    background: linear-gradient(135deg, rgba(124, 108, 255, 0.16), rgba(255, 95, 158, 0.08));
}

.extraction-btn.private small {
    color: #c9c1ff;
}

/* ===== Prywatny punkt zatwierdzenia ===== */
.private-extraction {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(124, 108, 255, 0.32);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(124, 108, 255, 0.11), rgba(255, 95, 158, 0.045));
}

.private-extraction.is-set {
    border-color: rgba(29, 209, 161, 0.35);
    background: linear-gradient(145deg, rgba(29, 209, 161, 0.1), rgba(124, 108, 255, 0.05));
}

.private-extraction-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.private-badge {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(124, 108, 255, 0.2);
    color: #d8d3ff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.private-extraction h4 {
    margin: 7px 0 3px;
    color: var(--text);
    font-size: 0.78rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.private-extraction .raid-hint {
    margin-top: 3px;
}

.private-help {
    margin-top: 8px;
}

.private-help summary {
    color: #c9c1ff;
    font-size: 0.69rem;
    font-weight: 800;
    cursor: pointer;
}

.private-help p {
    margin-top: 6px;
    color: rgba(238, 240, 255, 0.54);
    font-size: 0.67rem;
    line-height: 1.45;
}

.private-help strong {
    color: rgba(238, 240, 255, 0.82);
}

.private-extraction-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.private-extraction-actions .btn {
    flex: 1 1 130px;
    justify-content: center;
}

.private-extraction .auth-error {
    margin-top: 6px;
    font-size: 0.68rem;
}

.field-map.picking-private {
    cursor: crosshair;
    box-shadow: inset 0 0 0 2px rgba(124, 108, 255, 0.65);
}

/* ===== Walka ===== */
.encounter-card {
    width: min(100%, 460px);
    text-align: center;
}

.encounter-power {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.8rem;
}

.encounter-log {
    min-height: 62px;
    margin: 16px 0;
    padding: 11px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: left;
    white-space: pre-line;
}

.encounter-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== Ewakuacja ===== */
.field-auth-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 15px;
    border: 1px solid rgba(254, 202, 87, 0.32);
    border-radius: 15px;
    background: rgba(254, 202, 87, 0.08);
    color: #ffe6a8;
    font-size: 0.84rem;
}

/* ===== Układ mapa + lista ===== */
.field-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
    gap: 14px;
    align-items: stretch;
}

.field-map {
    position: relative;
    z-index: 1;
    min-height: 560px;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px),
        #12152a;
}

.field-side {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 700px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.045);
    overflow-y: auto;
}

.field-side-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.field-side-head h2 {
    font-size: 1.05rem;
}

.quest-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding-right: 2px;
}

.quest-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.14s, background 0.14s;
}

.quest-item:hover {
    border-color: rgba(124, 108, 255, 0.45);
}

.quest-item.active {
    border-color: rgba(29, 209, 161, 0.55);
    background: rgba(29, 209, 161, 0.08);
}

.quest-item.done {
    opacity: 0.62;
}

.quest-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 1.1rem;
}

.quest-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quest-name {
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.25;
}

.quest-place {
    color: var(--muted);
    font-size: 0.7rem;
}

.quest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 3px;
}

.quest-meta span {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(238, 240, 255, 0.72);
    font-size: 0.63rem;
    font-weight: 700;
}

.quest-meta .ready {
    background: rgba(29, 209, 161, 0.14);
    color: var(--green);
}

.quest-meta .tier-badge {
    font-weight: 800;
}

.tier-badge.tier-1 {
    background: rgba(29, 209, 161, 0.14);
    color: var(--green);
}

.tier-badge.tier-2 {
    background: rgba(255, 184, 77, 0.16);
    color: #ffcf7a;
}

.tier-badge.tier-3 {
    background: rgba(255, 95, 158, 0.18);
    color: #ff9dc2;
}

.quest-meta .cooldown {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.quest-item-name.item-tier-1 {
    color: #8effe0;
}

.quest-item-name.item-tier-2 {
    color: #d8c4ff;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.6);
}

.quest-item-name.item-tier-3 {
    color: #ffe89a;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.75);
}

.field-pin.taken-pin {
    opacity: 0.55;
    filter: grayscale(0.6);
}

.field-pin.item-tier-1 {
    outline: 2px solid rgba(46, 242, 176, 0.8);
    outline-offset: 2px;
    box-shadow: 0 0 16px rgba(46, 242, 176, 0.42);
}

.field-pin.item-tier-2 {
    outline: 2px solid rgba(192, 132, 252, 0.88);
    outline-offset: 2px;
    box-shadow: 0 0 20px rgba(168, 118, 255, 0.54);
}

.field-pin.item-tier-3 {
    outline: 2px solid rgba(255, 226, 122, 0.95);
    outline-offset: 2px;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.62);
}

/* ===== Znaczniki mapy ===== */
.field-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border-radius: 50% 50% 50% 8px;
    transform: rotate(-45deg);
    background: linear-gradient(145deg, #8f7dff, #ff5f9e);
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    font-size: 1rem;
    cursor: pointer;
}

.field-pin span {
    transform: rotate(45deg);
}

.field-pin.done {
    background: linear-gradient(145deg, #3a3f57, #262a3d);
    border-color: rgba(255, 255, 255, 0.35);
    opacity: 0.8;
}

.field-pin.tier2-pin {
    background: linear-gradient(145deg, #ffb84d, #ff7a45);
}

.field-pin.tier3-pin {
    background: linear-gradient(145deg, #ff5f9e, #b52d5b);
}

.field-pin.extraction-pin {
    background: linear-gradient(145deg, #1dd1a1, #0f8a6c);
}

.field-pin.extraction-pin.private-pin {
    background: linear-gradient(145deg, #8f7dff, #ff5f9e);
    box-shadow: 0 0 0 5px rgba(124, 108, 255, 0.22), 0 10px 26px rgba(0, 0, 0, 0.5);
}

.field-pin.extraction-pin.active {
    box-shadow: 0 0 0 6px rgba(29, 209, 161, 0.25), 0 10px 26px rgba(0, 0, 0, 0.5);
}

.field-pin.active {
    background: linear-gradient(145deg, #1dd1a1, #0f9b78);
    box-shadow: 0 0 0 6px rgba(29, 209, 161, 0.22), 0 10px 26px rgba(0, 0, 0, 0.5);
}

.player-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border-radius: 50%;
    background: #4da3ff;
    border: 3px solid #fff;
    box-shadow: 0 0 0 7px rgba(77, 163, 255, 0.22);
}

.map-fallback {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.4;
}

/* ===== Modal zadania ===== */
.quest-modal-card {
    width: min(100%, 460px);
}

.quest-place {
    color: var(--green);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.quest-modal-card h2 {
    margin-top: 4px;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.quest-reward {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
}

.challenge-book {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 212, 121, 0.28);
    border-radius: 12px;
    background: rgba(24, 18, 6, 0.55);
    max-height: 240px;
    overflow-y: auto;
}

.challenge-book-title {
    display: block;
    margin-bottom: 6px;
    color: var(--gold);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.challenge-book-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.challenge-book-row {
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-size: 0.62rem;
    line-height: 1.35;
}

.challenge-book-time {
    flex: 0 0 auto;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.challenge-book-text {
    color: var(--text);
}

.challenge-book-row.kill .challenge-book-text { color: #ffb3b3; }
.challenge-book-row.take .challenge-book-text { color: #ffe3a3; }
.challenge-book-row.challenge .challenge-book-text { color: #d6d2ff; }

.challenge-book-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.62rem;
}

.tier-badge.book-badge {
    border-color: rgba(255, 212, 121, 0.4);
    color: #ffe3a3;
}

.quest-question {
    margin: 16px 0 12px;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
}

.quest-answers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quest-answer {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.14s, background 0.14s;
}

.quest-answer:hover:not(:disabled) {
    border-color: rgba(124, 108, 255, 0.6);
    background: rgba(124, 108, 255, 0.14);
}

.quest-answer:disabled {
    opacity: 0.55;
    cursor: default;
}

/* ===== Modal prywatnego punktu ===== */
.private-modal-card {
    width: min(100%, 460px);
}

.private-summary {
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid rgba(124, 108, 255, 0.32);
    border-radius: 12px;
    background: rgba(124, 108, 255, 0.1);
    color: #d8d3ff;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.4;
}

.private-story {
    margin-bottom: 12px;
    color: rgba(238, 240, 255, 0.72);
    font-size: 0.78rem;
    line-height: 1.5;
}

.private-story strong {
    color: var(--text);
}

.private-warning {
    color: #ffe6a8;
    font-size: 0.78rem;
    line-height: 1.5;
}

.private-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.private-modal-actions .btn {
    flex: 1 1 140px;
    justify-content: center;
}

/* ===== Toast ===== */
.field-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 120;
    transform: translateX(-50%);
    width: min(92vw, 440px);
    padding: 14px 18px;
    border: 1px solid rgba(29, 209, 161, 0.45);
    border-radius: 16px;
    background: linear-gradient(145deg, #162b29, #101a22);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    color: #d9fff4;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    animation: toastIn 0.2s ease-out;
}

.field-toast.error {
    border-color: rgba(255, 95, 158, 0.5);
    color: #ffd9e7;
}

@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.field-info {
    margin-top: 18px;
}

@media (max-width: 860px) {
    .field-layout {
        grid-template-columns: 1fr;
    }

    .field-map {
        min-height: 430px;
    }

    .field-side {
        max-height: none;
    }
}

@media (max-width: 560px) {
    .field-map {
        min-height: 360px;
        border-radius: 16px;
    }

    .field-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .demo-toggle {
        justify-content: center;
    }
}

.field-summon-panel {
    border-color: rgba(255, 212, 121, 0.35);
    background: linear-gradient(160deg, rgba(255, 212, 121, 0.08), transparent);
}

.field-summon-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-summon-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.field-summon-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.8rem;
}

.field-summon-line span {
    color: var(--muted);
}

.field-summon-progress {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.field-summon-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffd479, #ff4f9a);
}

.field-summon-targets {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-summon-target {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.16);
    font-size: 0.76rem;
}

.field-summon-target small {
    display: block;
    color: var(--muted);
    font-size: 0.68rem;
}

.field-summon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}


.quest-show-all {
    align-self: flex-start;
    margin: 0 0 10px;
}
