/* === БАЗА === */

body {
    margin: 0;
    background: #181a1b;
    font-family: Arial, sans-serif;
}

/* === КАРТОЧКА SekretaR === */

.logo-wrapper {
    width: 320px;
    margin: 120px auto;
    position: relative;
}

.logo-wrapper img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

/* Премиальный фон карточки */
.card {
    position: relative;

    background: radial-gradient(
        circle at 50% 40%,
        rgba(255, 215, 120, 0.08),
        rgba(20, 20, 20, 0.96) 65%
    );

    border-radius: 20px;
    padding: 16px;

    border: 1px solid rgba(255, 215, 120, 0.08);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.6);

    transition: all 0.3s ease;
}


/* === КНОПКА SR — СТАБИЛЬНАЯ ВЕРСИЯ === */

.sr-hitbox {
    position: absolute;
    top: 148px;
    left: 50%;

    width: 93px;
    height: 77px;

    transform: translate(-50%, -50%);
    border-radius: 20px;

    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 10;

    transition: transform 0.15s ease, box-shadow 0.2s ease;

    box-shadow:
        inset 0 0 0 1.5px rgba(255, 215, 120, 0.6),
        0 0 18px rgba(255, 215, 120, 0.35);
}

.sr-hitbox:hover {
    box-shadow:
        inset 0 0 0 2px rgba(255, 215, 120, 0.9),
        0 0 28px rgba(255, 215, 120, 0.6),
        0 0 45px rgba(255, 215, 120, 0.25);
}

.sr-hitbox:active {
    transform: translate(-50%, -50%) scale(0.93);
}

/* === ВИДЕО OVERLAY === */

#intro-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;

    justify-content: center;
    align-items: center;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* === ПРИЛОЖЕНИЕ === */

#app {
    display: none;
    color: white;
    text-align: center;
    padding-top: 100px;
}

/* кнопка внутри приложения (временная) */
button:not(.btn-interactive):not(.sr-hitbox) {
    padding: 18px 28px;
    font-size: 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;

    background: #e5e5e5;
    transition: all 0.2s ease;
}

#app button:not(#confirmBtn):not(.sr-hitbox):hover {
    background: #ffffff;
    transform: translateY(-2px);
}

/* === UNIFIED INTERACTION === */

/* Подтвердить задачи */
#confirmBtn {
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

#confirmBtn:hover {
    box-shadow:
        inset 0 0 0 2px rgba(212,175,55,0.9),
        0 0 25px rgba(212,175,55,0.45),
        0 0 45px rgba(212,175,55,0.2);

    transform: translateY(-2px);
}

/* Протокол / История */
#tab-protocol,
#tab-history {
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

#tab-protocol:hover,
#tab-history:hover {
    box-shadow:
        inset 0 0 0 2px rgba(212,175,55,0.8),
        0 0 20px rgba(212,175,55,0.35);

    transform: translateY(-2px);
}

/* === MOBILE LAYOUT === */

@media (max-width: 768px) {

    /* === ОСНОВНОЙ ИНТЕРФЕЙС === */

    .container {
        width: auto;
        margin: 18px 12px;
    }

    .logo {
        font-size: 34px;
    }

    .logo-line {
        margin-bottom: 22px;
    }

    .actions {
        flex-direction: column;
        gap: 14px;
    }

    .action {
        padding: 22px 18px;
    }

    .action-title {
        font-size: 22px;
    }

    .action-sub {
        font-size: 15px;
    }

    .block {
        margin-top: 18px;
        padding: 16px;
    }

    .block-title {
        font-size: 20px;
    }

    .block-text {
        font-size: 16px;
        line-height: 1.4;
    }

    .task-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .task-name,
    .task-date,
    .task-user {
        flex: none;
        text-align: left;
        width: 100%;
    }

    .task-remove {
        margin-left: 0;
        align-self: flex-end;
        font-size: 22px;
    }

    .task-name-input,
    .task-date-input,
    .task-user-input {
        font-size: 16px;
        padding: 10px;
        text-align: left;
    }

    .main-btn,
    .tab {
        min-height: 48px;
        font-size: 17px;
    }

    .tabs {
        flex-direction: column;
    }

    .thinking-block {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .neural-flow {
        width: 100%;
    }

    #recordModal > div {
        width: auto !important;
        margin: 0 14px;
        padding: 20px !important;
    }

    /* === СТАРТОВАЯ КАРТОЧКА === */

    .logo-wrapper {
        width: min(92vw, 420px);
        margin: 0 auto;
        padding: 16px;

        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .logo-wrapper img {
        width: 100%;
        border-radius: 22px;
    }

    .sr-hitbox {
        top: 50%;
        width: 38%;
        height: 30%;
        border-radius: 20px;
    }
}