/* Dominara Uzmanı — görev paneli, parşömen, rehber */

/* Sol sabit butonlar — görev + hazine
   z-index: harita üstü (viewport=2), modallerin altı (modaller ≥100) */
.dm-side-fabs {
    position: fixed;
    left: max(10px, env(safe-area-inset-left, 0px));
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    pointer-events: auto;
}

.dm-gorev-parsom,
.dm-hazine-btn {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    z-index: 1;
    width: 58px;
    height: 58px;
    border: 2px solid rgba(212, 175, 55, 0.55);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    background: linear-gradient(160deg, rgba(74, 14, 20, 0.92), rgba(20, 8, 6, 0.95));
    box-shadow:
        0 0 0 3px rgba(240, 215, 140, 0.18),
        0 8px 22px rgba(0, 0, 0, 0.45),
        0 0 18px rgba(212, 175, 55, 0.45);
    animation: dm-side-fab-pulse 2.4s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.dm-hazine-btn {
    border-color: rgba(240, 190, 90, 0.6);
    animation-delay: 0.35s;
}

.dm-gorev-parsom__emoji,
.dm-hazine-btn__emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.75rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(240, 215, 140, 0.75));
}

.dm-map-wrap--mobile .dm-gorev-parsom,
#dmGorevParsomMobile {
    display: none !important;
}

/* Modal açıkken diğer UI gibi arkada kalsın */
body.dm-cadir-open .dm-side-fabs,
body.dm-karakter-open .dm-side-fabs,
body.dm-mutfak-open .dm-side-fabs,
body.dm-fuzyon-open .dm-side-fabs,
body.dm-meslek-open .dm-side-fabs,
body.dm-ferman-open .dm-side-fabs,
body.dm-gorev-open .dm-side-fabs,
body.dm-hazine-open .dm-side-fabs {
    z-index: 1;
    pointer-events: none;
}

@keyframes dm-side-fab-pulse {
    0%,
    100% {
        box-shadow:
            0 0 0 3px rgba(240, 215, 140, 0.14),
            0 8px 22px rgba(0, 0, 0, 0.45),
            0 0 12px rgba(212, 175, 55, 0.35);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 0 0 5px rgba(240, 215, 140, 0.28),
            0 8px 26px rgba(0, 0, 0, 0.5),
            0 0 26px rgba(240, 215, 140, 0.75);
        transform: scale(1.08);
    }
}

@media (max-aspect-ratio: 16/9) {
    .dm-side-fabs {
        top: auto;
        bottom: max(14px, env(safe-area-inset-bottom, 0px));
        transform: none;
        gap: 0.4rem;
    }

    .dm-gorev-parsom,
    .dm-hazine-btn {
        width: 42px;
        height: 42px;
        border-width: 1.5px;
        box-shadow:
            0 0 0 2px rgba(240, 215, 140, 0.14),
            0 4px 14px rgba(0, 0, 0, 0.4),
            0 0 12px rgba(212, 175, 55, 0.35);
    }

    .dm-gorev-parsom__emoji,
    .dm-hazine-btn__emoji {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .dm-side-fabs {
        left: max(8px, env(safe-area-inset-left, 0px));
        gap: 0.35rem;
    }

    .dm-gorev-parsom,
    .dm-hazine-btn {
        width: 38px;
        height: 38px;
    }

    .dm-gorev-parsom__emoji,
    .dm-hazine-btn__emoji {
        font-size: 1.15rem;
    }
}

.dominara-meydani-page .dm-btn--quest-hint,
.dominara-meydani-page .dm-gorev-parsom.dm-btn--quest-hint {
    z-index: 12;
    animation: dm-quest-hint-pulse 1.35s ease-in-out infinite;
}

.dominara-meydani-page .dm-btn--quest-hint .dm-mon__halo {
    opacity: 1 !important;
    background: radial-gradient(circle, rgba(240, 215, 140, 0.85) 0%, rgba(212, 175, 55, 0.25) 45%, transparent 70%);
    transform: scale(1.45);
}

.dominara-meydani-page .dm-btn--quest-hint .dm-plaque {
    box-shadow: 0 0 0 2px rgba(240, 215, 140, 0.75), 0 0 22px rgba(212, 175, 55, 0.55);
}

.dominara-meydani-page .dm-btn--quest-hint.dm-btn--menu .dm-menu-hit,
.dominara-meydani-page .dm-btn--quest-hint.dm-btn--menu .dm-menu-label {
    box-shadow: 0 0 0 2px rgba(240, 215, 140, 0.8), 0 0 18px rgba(212, 175, 55, 0.5);
    color: #f0d78c;
}

@keyframes dm-quest-hint-pulse {
    0%,
    100% {
        filter: drop-shadow(0 0 6px rgba(240, 215, 140, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(240, 215, 140, 1));
    }
}

/* Modaller (≥100) altında kalmalı; harita/fabs üstünde */
.dm-quest-bubble {
    position: fixed;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    animation: dm-quest-bubble-in 0.35s ease-out forwards;
    overflow: visible;
}

@keyframes dm-quest-bubble-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dm-quest-bubble__inner {
    position: relative;
    pointer-events: auto;
    display: flex;
    gap: 0.7rem;
    align-items: center;
    padding: 0.75rem 2.4rem 0.75rem 0.9rem;
    background: linear-gradient(160deg, rgba(31, 6, 8, 0.97), rgba(74, 14, 20, 0.95));
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    border-radius: 1rem;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 22px rgba(212, 175, 55, 0.22);
    color: #fff6e4;
    overflow: visible;
}

.dm-quest-bubble > .dm-quest-bubble__x {
    position: absolute;
    top: -0.45rem;
    right: -0.45rem;
    z-index: 5;
    pointer-events: auto;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(240, 215, 140, 0.55);
    border-radius: 50%;
    background: rgba(12, 4, 6, 0.96);
    color: #f5ecd7;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.dm-quest-bubble > .dm-quest-bubble__x::before,
.dm-quest-bubble > .dm-quest-bubble__x::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.72rem;
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
}

.dm-quest-bubble > .dm-quest-bubble__x::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.dm-quest-bubble > .dm-quest-bubble__x::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.dm-quest-bubble > .dm-quest-bubble__x:hover {
    color: #1a080a;
    background: #f0d78c;
    border-color: #f0d78c;
}

.dm-quest-bubble__inner img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(212, 175, 55, 0.55);
    flex-shrink: 0;
    align-self: center;
}

.dm-quest-bubble__text {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: #fff6e4;
}

.dm-quest-bubble__text.is-typing::after {
    content: "▍
    display: inline-block;
    margin-left: 2px;
    color: #f0d78c;
    animation: dm-gorev-caret 0.7s steps(1) infinite;
}

/* Dominara Uzmanı diyalog modalı — büyük, okunaklı sohbet */
.dominara-meydani-page .dm-gorev-dialog-modal {
    position: fixed;
    inset: 0;
    z-index: 125;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.dominara-meydani-page .dm-gorev-dialog-modal[hidden] {
    display: none !important;
}

.dominara-meydani-page .dm-gorev-dialog-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 1, 2, 0.82);
    backdrop-filter: blur(8px);
}

.dominara-meydani-page .dm-gorev-dialog-modal__panel {
    position: relative;
    width: min(100%, 46rem);
    max-height: min(92vh, 720px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, rgba(40, 10, 12, 0.98) 0%, rgba(74, 14, 20, 0.96) 50%, rgba(16, 8, 6, 0.99) 100%);
    border: 2px solid rgba(240, 215, 140, 0.5);
    border-radius: 1.35rem;
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.75),
        0 0 56px rgba(212, 175, 55, 0.2);
    animation: dm-cadir-in 0.28s ease-out;
}

.dominara-meydani-page .dm-gorev-dialog-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.55rem;
    background: rgba(0, 0, 0, 0.4);
    color: #f5ecd7;
    cursor: pointer;
    font-size: 1.1rem;
}

.dominara-meydani-page .dm-gorev-dialog-modal__body {
    padding: 1.5rem 1.6rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-dialog {
    margin-top: 0.15rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
}

.dominara-meydani-page .dm-gorev-dialog-modal #dmGorevDialogTitle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-dialog__top {
    display: flex;
    gap: 1.1rem;
    align-items: center;
}

.dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-dialog__avatar .dm-gorev-npc__img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border-width: 2px;
}

.dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-dialog__meta strong {
    display: block;
    font-size: 1.45rem;
    color: #f0d78c;
    letter-spacing: 0.02em;
}

.dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-dialog__meta h3 {
    margin: 0.35rem 0 0.45rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff8e7;
    line-height: 1.25;
}

.dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-dialog__bubble {
    padding: 1.25rem 1.35rem 1.35rem;
    border-radius: 1.1rem;
    background: rgba(0, 0, 0, 0.38);
    border: 1.5px solid rgba(212, 175, 55, 0.38);
}

.dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-dialog__speech {
    margin: 0;
    min-height: 5.5rem;
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    line-height: 1.55;
    font-weight: 500;
    color: #fff6e4;
    letter-spacing: 0.01em;
    white-space: pre-wrap;
}

.dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-dialog__speech.is-typing::after {
    content: "▍
    display: inline-block;
    margin-left: 2px;
    color: #f0d78c;
    animation: dm-gorev-caret 0.7s steps(1) infinite;
}

@keyframes dm-gorev-caret {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}

.dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-dialog__hedef {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-size: 1.05rem !important;
    line-height: 1.45 !important;
    color: #fff8e7 !important;
}

.dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-dialog__hint-note {
    margin: 0.65rem 0 0.85rem !important;
    font-size: 1rem !important;
    color: rgba(240, 215, 140, 0.85) !important;
    line-height: 1.4 !important;
}

.dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-dialog__actions {
    margin-top: 1.1rem;
    gap: 0.65rem;
}

.dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-dialog__actions[hidden] {
    display: none !important;
}

.dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-btn {
    padding: 0.75rem 1.25rem;
    font-size: 1.05rem;
    border-radius: 0.65rem;
}

.dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-dialog__skip {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
    color: rgba(245, 236, 215, 0.55);
}

.dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-rewards {
    margin-top: 0.35rem;
}

.dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-reward {
    font-size: 0.95rem;
    padding: 0.3rem 0.55rem;
}

@media (max-width: 640px) {
    .dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-dialog__top {
        flex-direction: column;
        text-align: center;
    }

    .dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-dialog__avatar .dm-gorev-npc__img {
        width: 96px;
        height: 96px;
    }

    .dominara-meydani-page .dm-gorev-dialog-modal .dm-gorev-dialog__speech {
        font-size: 1.2rem;
        min-height: 4.5rem;
    }
}

/* Görev listesi modalı */
.dominara-meydani-page .dm-gorev-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.dominara-meydani-page .dm-gorev-modal[hidden] {
    display: none !important;
}

.dominara-meydani-page .dm-gorev-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 4, 6, 0.74);
    backdrop-filter: blur(6px);
}

.dominara-meydani-page .dm-gorev-modal__panel {
    position: relative;
    width: min(100%, 34rem);
    max-height: min(92vh, 720px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(31, 6, 8, 0.97) 0%, rgba(74, 14, 20, 0.94) 45%, rgba(20, 12, 8, 0.98) 100%);
    border: 2px solid rgba(212, 175, 55, 0.35);
    border-radius: 1.15rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 40px rgba(212, 175, 55, 0.12);
    animation: dm-cadir-in 0.28s ease-out;
}

.dominara-meydani-page .dm-gorev-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.35);
    color: #f5ecd7;
    cursor: pointer;
}

.dominara-meydani-page .dm-gorev-modal__head {
    padding: 1.05rem 2.5rem 0.65rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dominara-meydani-page .dm-gorev-modal__head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f0d78c;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.dominara-meydani-page .dm-gorev-modal__sub {
    margin: 0.3rem 0 0;
    font-size: 0.75rem;
    color: rgba(245, 236, 215, 0.65);
}

.dominara-meydani-page .dm-gorev-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.65rem 1rem 0;
}

.dominara-meydani-page .dm-gorev-tabs button {
    flex: 1 1 calc(33.33% - 0.35rem);
    min-width: 4.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(245, 236, 215, 0.75);
    border-radius: 0.55rem;
    padding: 0.4rem 0.3rem;
    font-size: 0.72rem;
    cursor: pointer;
}

.dominara-meydani-page .dm-gorev-card__icon {
    display: inline-flex;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.dominara-meydani-page .dm-gorev-card__meta {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    color: rgba(240, 215, 140, 0.75);
}

.dominara-meydani-page .dm-gorev-tabs button.is-active {
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.16);
    color: #f0d78c;
    font-weight: 600;
}

.dominara-meydani-page .dm-gorev-modal__body {
    padding: 0.85rem 1.1rem 1.15rem;
    overflow-y: auto;
    flex: 1;
}

.dominara-meydani-page .dm-gorev-loading,
.dominara-meydani-page .dm-gorev-gate {
    text-align: center;
    color: rgba(245, 236, 215, 0.75);
    padding: 1.5rem 0.5rem;
    font-size: 0.9rem;
}

.dominara-meydani-page .dm-gorev-gate .dm-gorev-npc__img {
    margin: 0 auto 0.75rem;
}

.dominara-meydani-page .dm-gorev-npc {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    padding: 0.65rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(212, 175, 55, 0.18);
}

.dominara-meydani-page .dm-gorev-npc__img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    flex-shrink: 0;
    image-rendering: auto;
}

.dominara-meydani-page .dm-gorev-npc__text strong {
    color: #f0d78c;
    display: block;
    margin-bottom: 0.25rem;
}

.dominara-meydani-page .dm-gorev-npc__text p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(245, 236, 215, 0.78);
    line-height: 1.4;
}

.dominara-meydani-page .dm-gorev-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.dominara-meydani-page .dm-gorev-card {
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.28);
    border-radius: 0.75rem;
    padding: 0.7rem 0.8rem;
    color: #f5ecd7;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.dominara-meydani-page .dm-gorev-card:hover:not(:disabled) {
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(74, 14, 20, 0.45);
}

.dominara-meydani-page .dm-gorev-card:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dominara-meydani-page .dm-gorev-card--active {
    border-color: rgba(240, 215, 140, 0.55);
    box-shadow: 0 0 0 1px rgba(240, 215, 140, 0.2) inset;
}

.dominara-meydani-page .dm-gorev-card--ready {
    border-color: rgba(120, 220, 140, 0.5);
}

.dominara-meydani-page .dm-gorev-card__top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0.3rem;
}

.dominara-meydani-page .dm-gorev-card__title {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.dominara-meydani-page .dm-gorev-card__top strong {
    font-size: 0.92rem;
    color: #f0d78c;
}

.dominara-meydani-page .dm-gorev-card__ozet {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    color: rgba(245, 236, 215, 0.7);
    line-height: 1.35;
}

.dominara-meydani-page .dm-gorev-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.dominara-meydani-page .dm-gorev-badge--locked {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(245, 236, 215, 0.5);
}

.dominara-meydani-page .dm-gorev-badge--available {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.35);
    color: #f0d78c;
}

.dominara-meydani-page .dm-gorev-badge--active {
    background: rgba(80, 140, 255, 0.18);
    border-color: rgba(120, 170, 255, 0.4);
    color: #c6dbff;
}

.dominara-meydani-page .dm-gorev-badge--ready {
    background: rgba(80, 200, 120, 0.18);
    border-color: rgba(120, 220, 140, 0.45);
    color: #b8f0c8;
}

.dominara-meydani-page .dm-gorev-badge--claimed {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(245, 236, 215, 0.55);
}

.dominara-meydani-page .dm-gorev-rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dominara-meydani-page .dm-gorev-reward {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    padding: 0.15rem 0.4rem;
    border-radius: 0.4rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(245, 236, 215, 0.9);
}

.dominara-meydani-page .dm-gorev-reward .ekonomi-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dominara-meydani-page .dm-gorev-reward--gumus {
    border-color: rgba(180, 190, 200, 0.35);
}

.dominara-meydani-page .dm-gorev-reward--altin {
    border-color: rgba(240, 200, 80, 0.45);
    color: #f0d78c;
}

.dominara-meydani-page .dm-gorev-progress {
    position: relative;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.35rem 0 0.5rem;
    overflow: hidden;
}

.dominara-meydani-page .dm-gorev-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #7a5c1e, #f0d78c);
}

.dominara-meydani-page .dm-gorev-progress em {
    position: absolute;
    right: 0.35rem;
    top: -1.15rem;
    font-size: 0.65rem;
    font-style: normal;
    color: rgba(245, 236, 215, 0.55);
}

.dominara-meydani-page .dm-gorev-back {
    border: none;
    background: transparent;
    color: rgba(240, 215, 140, 0.85);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0.65rem;
}

.dominara-meydani-page .dm-gorev-dialog {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.dominara-meydani-page .dm-gorev-dialog__avatar .dm-gorev-npc__img {
    width: 88px;
    height: 88px;
}

.dominara-meydani-page .dm-gorev-dialog__bubble {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(212, 175, 55, 0.28);
}

.dominara-meydani-page .dm-gorev-dialog__bubble header {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.dominara-meydani-page .dm-gorev-dialog__bubble header strong {
    color: #f0d78c;
}

.dominara-meydani-page .dm-gorev-dialog__bubble h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    color: #fff8e7;
}

.dominara-meydani-page .dm-gorev-dialog__bubble > p {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(245, 236, 215, 0.88);
}

.dominara-meydani-page .dm-gorev-dialog__hedef {
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    font-size: 0.8rem !important;
}

.dominara-meydani-page .dm-gorev-dialog__hint-note {
    margin: 0.45rem 0 0.65rem !important;
    font-size: 0.75rem !important;
    color: rgba(240, 215, 140, 0.75) !important;
    line-height: 1.35 !important;
}

.dm-gorev-float-toast {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 200;
    max-width: min(92vw, 26rem);
    padding: 0.7rem 1rem;
    border-radius: 0.7rem;
    font-size: 0.85rem;
    text-align: center;
    display: none;
    pointer-events: none;
}

.dm-gorev-float-toast--visible {
    display: block;
}

.dm-gorev-float-toast--ok {
    background: rgba(30, 90, 50, 0.94);
    border: 1px solid rgba(120, 220, 140, 0.5);
    color: #e8ffe8;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.dm-gorev-float-toast--err {
    background: rgba(90, 30, 30, 0.94);
    border: 1px solid rgba(220, 120, 120, 0.5);
    color: #ffe8e8;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.dominara-meydani-page .dm-gorev-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.dominara-meydani-page .dm-gorev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.85rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
    color: #f5ecd7;
    font-size: 0.82rem;
    text-decoration: none;
    cursor: pointer;
}

.dominara-meydani-page .dm-gorev-btn--primary {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.35), rgba(122, 92, 30, 0.45));
    border-color: rgba(212, 175, 55, 0.55);
    color: #fff6d6;
    font-weight: 600;
}

.dominara-meydani-page .dm-gorev-btn--claim {
    background: linear-gradient(180deg, rgba(80, 180, 110, 0.4), rgba(30, 90, 50, 0.5));
    border-color: rgba(120, 220, 140, 0.5);
    color: #e8ffe8;
    font-weight: 600;
}

.dominara-meydani-page .dm-gorev-done-msg {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(184, 240, 200, 0.9);
}

.dominara-meydani-page .dm-gorev-discord {
    margin-top: 1.1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dominara-meydani-page .dm-gorev-discord h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    color: #f0d78c;
}

.dominara-meydani-page .dm-gorev-discord__hint {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    color: rgba(245, 236, 215, 0.6);
    line-height: 1.4;
}

.dominara-meydani-page .dm-gorev-discord__hint code {
    font-size: 0.7rem;
    color: #f0d78c;
}

.dominara-meydani-page .dm-gorev-discord__card {
    margin-bottom: 0.55rem;
    padding: 0.65rem 0.7rem;
    border-radius: 0.65rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dominara-meydani-page .dm-gorev-discord__card header {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
}

.dominara-meydani-page .dm-gorev-discord__card header strong {
    color: #f0d78c;
}

.dominara-meydani-page .dm-gorev-discord__card header span {
    color: rgba(245, 236, 215, 0.55);
    font-size: 0.68rem;
}

.dominara-meydani-page .dm-gorev-discord__card p {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    color: rgba(245, 236, 215, 0.65);
}

.dominara-meydani-page .dm-gorev-discord__card ol {
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-size: 0.72rem;
    color: rgba(245, 236, 215, 0.75);
}

.dominara-meydani-page .dm-gorev-discord__card li {
    margin: 0.15rem 0;
}

.dominara-meydani-page .dm-gorev-discord__card li.is-done {
    color: #b8f0c8;
}

.dominara-meydani-page .dm-gorev-toast {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    font-size: 0.82rem;
    text-align: center;
    z-index: 3;
}

.dominara-meydani-page .dm-gorev-toast--visible {
    display: block;
}

.dominara-meydani-page .dm-gorev-toast--ok {
    background: rgba(30, 90, 50, 0.92);
    border: 1px solid rgba(120, 220, 140, 0.45);
    color: #e8ffe8;
}

.dominara-meydani-page .dm-gorev-toast--err {
    background: rgba(90, 30, 30, 0.92);
    border: 1px solid rgba(220, 120, 120, 0.45);
    color: #ffe8e8;
}

/* Sol alt yığın: görev FAB → görev balonu → olta FAB → olta balonu */
.dm-side-alerts {
    position: fixed;
    left: 14px;
    bottom: 18px;
    z-index: 90;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.55rem;
    max-width: min(320px, calc(100vw - 28px));
    pointer-events: none;
}

.dm-side-alerts > * {
    pointer-events: auto;
    position: relative;
    left: auto;
    bottom: auto;
    right: auto;
    top: auto;
}

/* Diğer sayfalar — FAB + balon */
.dm-gorev-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    background: linear-gradient(160deg, rgba(74, 14, 20, 0.95), rgba(20, 8, 6, 0.96));
    border: 2px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.dm-gorev-fab__emoji {
    font-size: 1.55rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(240, 215, 140, 0.5));
}

.dm-gorev-fab.is-glowing {
    animation: dm-gorev-parsom-pulse 2s ease-in-out infinite;
    filter: none;
}

.dm-olta-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    background: linear-gradient(160deg, rgba(20, 48, 72, 0.96), rgba(8, 18, 28, 0.97));
    border: 2px solid rgba(240, 200, 80, 0.55);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.dm-olta-fab__img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(240, 200, 80, 0.45));
    pointer-events: none;
}

.dm-olta-fab.is-glowing {
    animation: dm-gorev-parsom-pulse 2s ease-in-out infinite;
}

.dm-olta-fab.is-ready {
    border-color: rgba(120, 220, 160, 0.7);
    box-shadow: 0 0 18px rgba(80, 200, 120, 0.35), 0 8px 22px rgba(0, 0, 0, 0.45);
}

.dm-olta-bubble {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.65rem 1.6rem 0.65rem 0.7rem;
    background: linear-gradient(160deg, rgba(12, 28, 42, 0.96), rgba(18, 44, 58, 0.94));
    border: 1.5px solid rgba(240, 200, 80, 0.45);
    border-radius: 0.85rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    color: #f5ecd7;
    font-size: 0.78rem;
    line-height: 1.35;
    text-decoration: none;
}

.dm-olta-bubble--urgent {
    border-color: rgba(240, 180, 70, 0.7);
}

.dm-olta-bubble--ready {
    border-color: rgba(120, 220, 160, 0.65);
    box-shadow: 0 0 16px rgba(80, 200, 120, 0.25), 0 12px 28px rgba(0, 0, 0, 0.5);
}

.dm-olta-bubble img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(240, 200, 80, 0.45);
    flex-shrink: 0;
}

.dm-olta-bubble strong {
    display: block;
    color: #f0d78c;
    margin-bottom: 0.15rem;
    font-size: 0.8rem;
}

.dm-olta-bubble p {
    margin: 0;
    color: #f5ecd7;
}

.dm-olta-bubble__x {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(245, 236, 215, 0.75);
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}

.dm-olta-bubble__x::before,
.dm-olta-bubble__x::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 0.65rem;
    height: 2px;
    margin: -1px 0 0 -0.325rem;
    background: currentColor;
    border-radius: 1px;
}

.dm-olta-bubble__x::before {
    transform: rotate(45deg);
}

.dm-olta-bubble__x::after {
    transform: rotate(-45deg);
}

.dm-olta-bubble__x:hover {
    color: #fff6e4;
    background: rgba(255, 255, 255, 0.08);
}

.dm-gorev-page-bubble,
.dm-olta-bubble {
    position: relative;
}

.dm-gorev-page-bubble {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.65rem 1.6rem 0.65rem 0.7rem;
    background: linear-gradient(160deg, rgba(31, 6, 8, 0.96), rgba(74, 14, 20, 0.94));
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: 0.85rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    color: #f5ecd7;
    font-size: 0.78rem;
    line-height: 1.35;
}

.dm-gorev-page-bubble img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(212, 175, 55, 0.5);
    flex-shrink: 0;
}

.dm-gorev-page-bubble strong {
    display: block;
    color: #f0d78c;
    margin-bottom: 0.15rem;
    font-size: 0.8rem;
}

.dm-gorev-page-bubble p {
    margin: 0;
}

.dm-gorev-page-bubble em {
    display: block;
    margin-top: 0.25rem;
    font-style: normal;
    color: rgba(245, 236, 215, 0.55);
    font-size: 0.7rem;
}

.dm-gorev-page-bubble__x {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(245, 236, 215, 0.75);
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}

.dm-gorev-page-bubble__x::before,
.dm-gorev-page-bubble__x::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 0.65rem;
    height: 2px;
    margin: -1px 0 0 -0.325rem;
    background: currentColor;
    border-radius: 1px;
}

.dm-gorev-page-bubble__x::before {
    transform: rotate(45deg);
}

.dm-gorev-page-bubble__x::after {
    transform: rotate(-45deg);
}

.dm-gorev-page-bubble__x:hover {
    color: #fff6e4;
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .dominara-meydani-page .dm-gorev-dialog {
        flex-direction: column;
        align-items: center;
    }

    .dominara-meydani-page .dm-gorev-dialog__avatar .dm-gorev-npc__img {
        width: 72px;
        height: 72px;
    }
}

/* Hazine / paket modalı */
.dominara-meydani-page .dm-hazine-modal {
    position: fixed;
    inset: 0;
    z-index: 115;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.dominara-meydani-page .dm-hazine-modal[hidden] {
    display: none !important;
}

.dominara-meydani-page .dm-hazine-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 4, 6, 0.74);
    backdrop-filter: blur(6px);
}

.dominara-meydani-page .dm-hazine-modal__panel {
    position: relative;
    width: min(100%, 32rem);
    max-height: min(92vh, 680px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(31, 6, 8, 0.97) 0%, rgba(74, 14, 20, 0.94) 45%, rgba(20, 12, 8, 0.98) 100%);
    border: 2px solid rgba(212, 175, 55, 0.35);
    border-radius: 1.15rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 40px rgba(212, 175, 55, 0.12);
    animation: dm-cadir-in 0.28s ease-out;
}

.dominara-meydani-page .dm-hazine-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.35);
    color: #f5ecd7;
    cursor: pointer;
}

.dominara-meydani-page .dm-hazine-modal__head {
    padding: 1.05rem 2.5rem 0.65rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dominara-meydani-page .dm-hazine-modal__head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f0d78c;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.dominara-meydani-page .dm-hazine-modal__sub {
    margin: 0.3rem 0 0;
    font-size: 0.75rem;
    color: rgba(245, 236, 215, 0.65);
}

.dominara-meydani-page .dm-hazine-modal__body {
    padding: 0.9rem 1.1rem 1.15rem;
    overflow-y: auto;
    flex: 1;
}

.dominara-meydani-page .dm-hazine-loading,
.dominara-meydani-page .dm-hazine-gate,
.dominara-meydani-page .dm-hazine-empty {
    text-align: center;
    color: rgba(245, 236, 215, 0.75);
    padding: 1.5rem 0.5rem;
    font-size: 0.9rem;
}

.dominara-meydani-page .dm-hazine-hint {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    color: rgba(245, 236, 215, 0.6);
}

.dominara-meydani-page .dm-hazine-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.dominara-meydani-page .dm-hazine-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    text-align: left;
    padding: 0.7rem 0.8rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(0, 0, 0, 0.28);
    color: #f5ecd7;
    cursor: pointer;
}

.dominara-meydani-page .dm-hazine-card:hover:not(:disabled) {
    border-color: rgba(240, 215, 140, 0.55);
    background: rgba(74, 14, 20, 0.4);
}

.dominara-meydani-page .dm-hazine-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dominara-meydani-page .dm-hazine-card__body strong {
    color: #f0d78c;
    font-size: 0.95rem;
}

.dominara-meydani-page .dm-hazine-card__body em {
    font-style: normal;
    font-size: 0.78rem;
    color: rgba(245, 236, 215, 0.6);
}

.dominara-meydani-page .dm-hazine-card__action {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f0d78c;
    padding: 0.3rem 0.55rem;
    border-radius: 0.45rem;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.12);
}

.dominara-meydani-page .dm-hazine-result__head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}

.dominara-meydani-page .dm-hazine-result__head strong {
    display: block;
    color: #f0d78c;
    font-size: 1.05rem;
}

.dominara-meydani-page .dm-hazine-rarity {
    display: inline-block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dominara-meydani-page .dm-hazine-rarity--kırmızı { color: #ff8a8a; border-color: rgba(255, 80, 80, 0.45); }
.dominara-meydani-page .dm-hazine-rarity--turuncu { color: #ffb070; border-color: rgba(255, 140, 60, 0.45); }
.dominara-meydani-page .dm-hazine-rarity--sarı { color: #ffe066; border-color: rgba(255, 220, 80, 0.45); }
.dominara-meydani-page .dm-hazine-rarity--yeşil { color: #9dff9d; border-color: rgba(100, 220, 100, 0.45); }
.dominara-meydani-page .dm-hazine-rarity--mavi { color: #8ecbff; border-color: rgba(80, 170, 255, 0.45); }

.dominara-meydani-page .dm-hazine-rewards {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dominara-meydani-page .dm-hazine-rewards li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.55rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff6e4;
    font-size: 0.92rem;
}

.dominara-meydani-page .dm-hazine-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
    color: #f5ecd7;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
}

.dominara-meydani-page .dm-hazine-action--primary {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.35), rgba(122, 92, 30, 0.45));
    border-color: rgba(212, 175, 55, 0.55);
    color: #fff6d6;
    font-weight: 600;
}

.dominara-meydani-page .dm-hazine-toast {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    font-size: 0.82rem;
    text-align: center;
    z-index: 3;
    display: none;
}

.dominara-meydani-page .dm-hazine-toast--visible { display: block; }
.dominara-meydani-page .dm-hazine-toast--ok {
    background: rgba(30, 90, 50, 0.92);
    border: 1px solid rgba(120, 220, 140, 0.45);
    color: #e8ffe8;
}
.dominara-meydani-page .dm-hazine-toast--err {
    background: rgba(90, 30, 30, 0.92);
    border: 1px solid rgba(220, 120, 120, 0.45);
    color: #ffe8e8;
}
