/* =================================================================
   «Зброя дня» — угадай оружие и заработай «Души»
   ================================================================= */

.daily-page {
    padding-top: 30px;
    padding-bottom: 60px;
}

.dl-tabs button {
    padding: 9px 18px;
    font-size: 12px;
}

.dl-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.dl-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dl-play {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dl-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    color: var(--text-dim);
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dl-status:empty {
    display: none;
}

.dl-status b {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 15px;
}

.dl-status__next {
    margin-left: auto;
}

.dl-gate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 18px;
    background: rgba(209, 184, 148, 0.06);
    border: 1px dashed var(--border-gold);
}

.dl-gate__text {
    flex: 1 1 100%;
    color: #e8e2d8;
    font-size: 15px;
    line-height: 1.5;
}

/* ---------- Ввод ---------- */
.dl-form {
    display: flex;
    gap: 10px;
}

.dl-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.dl-input {
    padding: 13px 14px;
    font-size: 15px;
}

.dl-suggest {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 20;
    max-height: 320px;
    overflow-y: auto;
    list-style: none;
    background: #141516;
    border: 1px solid var(--border-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.dl-opt {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    color: #e8e2d8;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.dl-opt small {
    color: var(--text-dim);
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
}

.dl-opt.is-sel,
.dl-opt:hover {
    background: rgba(204, 36, 29, 0.18);
}

.dl-msg {
    color: #f0a35a;
    font-size: 13px;
}

.dl-hint {
    padding: 10px 14px;
    color: var(--text-gold);
    font-size: 14px;
    background: rgba(209, 184, 148, 0.08);
    border-left: 3px solid var(--text-gold);
}

/* ---------- Сетка попыток ---------- */
.dl-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dl-row {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.dl-row--head span {
    padding: 0 4px 2px;
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

.dl-row--head span:first-child {
    text-align: left;
}

.dl-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 6px;
    overflow: hidden;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    border: 1px solid transparent;
}

.dl-cell--name {
    justify-content: flex-start;
    padding-left: 14px;
    font-size: 15px;
    text-align: left;
}

.dl-cell.is-ok {
    background: #1f6b3a;
    border-color: #2a8a4c;
}

.dl-cell.is-near {
    background: #8a6a1f;
    border-color: #a8832a;
}

.dl-cell.is-no {
    background: #5e1c18;
    border-color: #7a2620;
}

.dl-cell--name.is-no {
    background: #1c1d1f;
    border-color: var(--border-accent);
}

/* Новая строка переворачивается плитка за плиткой */
.dl-row.is-fresh .dl-cell {
    animation: dl-flip 0.45s ease-out both;
}

.dl-row.is-fresh .dl-cell:nth-child(2) {
    animation-delay: 0.08s;
}

.dl-row.is-fresh .dl-cell:nth-child(3) {
    animation-delay: 0.16s;
}

.dl-row.is-fresh .dl-cell:nth-child(4) {
    animation-delay: 0.24s;
}

.dl-row.is-fresh .dl-cell:nth-child(5) {
    animation-delay: 0.32s;
}

@keyframes dl-flip {
    from {
        transform: rotateX(90deg);
        opacity: 0;
    }
}

/* ---------- Итог ---------- */
.dl-result {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    text-align: center;
    background: rgba(209, 184, 148, 0.06);
    border: 1px solid var(--border-gold);
}

.dl-result__title {
    color: #e8e2d8;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dl-result__title.is-win {
    color: #5fbf7f;
}

.dl-result__answer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
}

.dl-result__answer b {
    color: var(--text-gold);
    font-family: var(--font-heading);
    font-size: 30px;
    text-transform: none;
}

.dl-result__souls {
    color: #f2d27a;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.dl-result__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.dl-copied {
    color: #5fbf7f;
}

/* ---------- Правила ---------- */
.dl-rules__list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    color: #cfc6b8;
    font-size: 14px;
    line-height: 1.5;
    list-style: none;
}

.dl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 10px;
    vertical-align: -1px;
}

.dl-dot.is-ok {
    background: #1f6b3a;
}

.dl-dot.is-near {
    background: #8a6a1f;
}

.dl-dot.is-no {
    background: #5e1c18;
}

/* ---------- Боковая колонка ---------- */
.dl-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dl-me__n {
    color: #f2d27a;
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
}

.dl-me__title {
    margin: 6px 0 12px;
    color: var(--text-gold);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dl-me__bar {
    height: 6px;
    background: #111213;
    border: 1px solid var(--border-main);
}

.dl-me__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #8c7662, #f2d27a);
}

.dl-me__next {
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 12px;
}

.dl-top__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.dl-top__head .block-title {
    margin: 0;
}

.dl-top__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
}

.dl-top__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: #111213;
    border: 1px solid var(--border-main);
}

.dl-top__row.is-me {
    border-color: var(--border-gold);
}

.dl-top__pos {
    width: 20px;
    color: var(--text-dim);
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
}

.dl-top__row:nth-child(-n + 3) .dl-top__pos {
    color: #f2d27a;
}

.dl-top__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #e8e2d8;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dl-top__name:hover {
    color: var(--text-gold);
}

.dl-top__souls {
    color: #f2d27a;
    font-family: var(--font-heading);
    font-weight: 700;
}

.dl-top__empty {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
    .dl-row.is-fresh .dl-cell {
        animation: none;
    }
}

@media (max-width: 960px) {
    .dl-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .dl-form {
        flex-direction: column;
    }

    /* На телефоне: название оружия — строкой сверху, четыре плитки под ним */
    .dl-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dl-cell--name {
        grid-column: 1 / -1;
        min-height: 36px;
    }

    .dl-row--head span:first-child {
        display: none;
    }

    .dl-cell {
        font-size: 12px;
    }

    .dl-status__next {
        margin-left: 0;
    }
}
