/* Zadania dnia — layout zakładek w GameModal */

.game-modal-panel--daily {
    max-width: 680px;
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 28px rgba(251, 191, 36, 0.08);
}

.game-modal-panel--daily .game-modal-icon {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.35);
}

.game-daily-panel {
    display: grid;
    grid-template-columns: minmax(7.5rem, 10rem) minmax(0, 1fr);
    gap: 0.85rem;
    align-items: stretch;
    min-height: 12rem;
}

.game-daily-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.game-daily-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.55);
    color: #e2e8f0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.game-daily-tab:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.4);
}

.game-daily-tab.is-active {
    background: rgba(15, 118, 110, 0.22);
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.12);
}

.game-daily-tab.is-claimable {
    border-color: rgba(251, 191, 36, 0.45);
}

.game-daily-tab.is-claimed {
    opacity: 0.72;
}

.game-daily-tab-label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #5eead4;
}

.game-daily-tab--medium .game-daily-tab-label { color: #93c5fd; }
.game-daily-tab--hard .game-daily-tab-label { color: #fbbf24; }

.game-daily-tab-status {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.25;
    white-space: normal;
}

.game-daily-tab-dot {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #fbbf24;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9);
}

.game-daily-detail {
    padding: 0.85rem 0.95rem 0.95rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.game-daily-detail.is-claimable {
    border-color: rgba(251, 191, 36, 0.45);
}

.game-daily-detail.is-claimed {
    opacity: 0.85;
}

.game-daily-tab:focus-visible {
    outline: 2px solid rgba(45, 212, 191, 0.85);
    outline-offset: 2px;
}

.game-daily-nav {
    display: contents;
}

.game-daily-nav-btn {
    display: none;
}

.game-daily-slot {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5eead4;
}

.game-daily-detail--medium .game-daily-slot { color: #93c5fd; }
.game-daily-detail--hard .game-daily-slot { color: #fbbf24; }

.game-daily-title {
    margin: 0;
    font-size: 1.15rem;
    color: #f1f5f9;
    line-height: 1.3;
}

.game-daily-desc {
    margin: 0;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.45;
}

.game-daily-species {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.game-daily-species-row {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.35rem;
    align-items: center;
}

.game-daily-species-frame {
    grid-row: 1 / span 2;
    display: block;
    width: 7.5rem;
    height: 5rem;
    border-radius: 12px;
    overflow: hidden;
    background: #e8eef4;
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.game-daily-species-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.game-daily-species-img--empty {
    display: block;
}

.game-daily-species-copy {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: baseline;
    min-width: 0;
}

.game-daily-species-name {
    font-weight: 700;
    color: #e2e8f0;
}

.game-daily-species-count {
    font-variant-numeric: tabular-nums;
    color: #cbd5e1;
    font-weight: 700;
}

.game-daily-species-row.is-done .game-daily-species-name,
.game-daily-species-row.is-done .game-daily-species-count {
    color: #5eead4;
}

.game-daily-species-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.game-daily-species-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0d9488, #22d3ee);
}

.game-daily-species-row.is-done .game-daily-species-bar > span {
    background: linear-gradient(90deg, #0f766e, #5eead4);
}

.game-daily-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
    font-size: 0.92rem;
    color: #cbd5e1;
    flex-wrap: wrap;
}

.game-daily-bar {
    height: 7px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.game-daily-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0d9488, #22d3ee);
}

.game-daily-detail.is-claimable .game-daily-bar > span {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

.game-daily-note {
    margin: 0;
    color: #94a3b8;
    font-size: 0.92rem;
}

.game-daily-claim-btn {
    margin-top: 0.15rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(45, 212, 191, 0.35);
    background: rgba(45, 212, 191, 0.12);
    color: #a5f3fc;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-self: flex-start;
}

.game-daily-claim-btn:hover {
    background: rgba(45, 212, 191, 0.2);
    border-color: rgba(45, 212, 191, 0.55);
}

.game-daily-claim-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.game-daily-empty {
    margin: 0;
    color: #94a3b8;
    font-size: 0.95rem;
}

@media (hover: none) {
    .game-daily-tab:hover {
        background: rgba(15, 23, 42, 0.55);
        border-color: rgba(148, 163, 184, 0.25);
    }

    .game-daily-tab.is-active:hover {
        background: rgba(15, 118, 110, 0.22);
        border-color: rgba(45, 212, 191, 0.45);
    }
}

@media (max-width: 560px) {
    .game-modal-panel--daily {
        max-width: 100%;
    }

    .game-daily-panel {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        min-height: 0;
    }

    .game-daily-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.2rem;
        padding: 0.22rem;
        border-radius: 14px;
        background: rgba(2, 6, 23, 0.55);
        border: 1px solid rgba(148, 163, 184, 0.28);
        overflow: visible;
    }

    .game-daily-tab {
        position: relative;
        flex: none;
        min-width: 0;
        min-height: 3.15rem;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0.55rem 0.3rem 0.5rem;
        border: 0;
        border-radius: 11px;
        background: transparent;
        gap: 0.12rem;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .game-daily-tab:hover {
        background: transparent;
        border-color: transparent;
    }

    .game-daily-tab.is-active {
        background: rgba(15, 118, 110, 0.38);
        border: 0;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(45, 212, 191, 0.28);
    }

    .game-daily-tab.is-active:hover {
        background: rgba(15, 118, 110, 0.38);
        border-color: transparent;
    }

    .game-daily-tab--medium.is-active:hover {
        background: rgba(37, 99, 235, 0.38);
    }

    .game-daily-tab--hard.is-active:hover {
        background: rgba(180, 83, 9, 0.42);
    }

    .game-daily-tab:active {
        transform: scale(0.985);
    }

    .game-daily-tab--medium.is-active {
        background: rgba(37, 99, 235, 0.38);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(147, 197, 253, 0.35);
    }

    .game-daily-tab--hard.is-active {
        background: rgba(180, 83, 9, 0.42);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(251, 191, 36, 0.35);
    }

    .game-daily-tab.is-claimable:not(.is-active) {
        box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.4);
    }

    .game-daily-tab-label,
    .game-daily-tab-status {
        width: 100%;
        text-align: center;
    }

    .game-daily-tab-label {
        font-size: 0.72rem;
        letter-spacing: 0.04em;
    }

    .game-daily-tab-status {
        font-size: 0.68rem;
        line-height: 1.2;
        color: #cbd5e1;
    }

    .game-daily-tab.is-active .game-daily-tab-status {
        color: #e2e8f0;
    }

    .game-daily-tab-dot {
        top: 0.28rem;
        right: 0.28rem;
        width: 0.45rem;
        height: 0.45rem;
    }

    .game-daily-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.35rem;
        margin: 0 -0.15rem;
    }

    .game-daily-nav-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 2.5rem;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        border-radius: 999px;
        border: 1px solid rgba(148, 163, 184, 0.35);
        background: rgba(15, 23, 42, 0.7);
        color: #e2e8f0;
        font-size: 1.55rem;
        line-height: 1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .game-daily-nav-btn:disabled {
        opacity: 0.28;
        cursor: default;
    }

    .game-daily-slot {
        flex: 1 1 auto;
        text-align: center;
        font-size: 0.82rem;
    }

    .game-daily-detail {
        touch-action: pan-y;
    }

    .game-daily-title {
        font-size: 1.08rem;
    }

    .game-daily-claim-btn {
        align-self: stretch;
        justify-content: center;
        min-height: 2.75rem;
    }
}

@media (min-width: 761px) {
    .game-modal-panel--daily {
        max-width: 720px;
    }
}

.game-confetti-layer {
    position: fixed;
    inset: 0;
    z-index: 20050;
    pointer-events: none;
    overflow: hidden;
}

.game-confetti-piece {
    position: absolute;
    left: 50%;
    top: 36%;
    border-radius: 1px;
    opacity: 0;
    animation: game-confetti-pop 0.95s cubic-bezier(0.16, 0.72, 0.28, 1) forwards;
}

@keyframes game-confetti-pop {
    0% {
        opacity: 1;
        transform: translate3d(-50%, -50%, 0) rotate(0deg);
    }
    72% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(calc(-50% + var(--dx)), calc(-50% + var(--dy)), 0) rotate(var(--rot));
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-confetti-piece {
        animation: none;
        opacity: 0;
    }
}
