#divIntro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px 0 26px;
}

#introCard {
    width: min(860px, 100%);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.14);
    padding: 20px;
}

#introHeader {
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
}

#scoresGuest {
    font-weight: 700;
    color: rgba(15, 23, 42, 0.82);
}

#contentIntro {
    text-align: center;
    padding: 8px 0 16px;
}

#introTitle {
    margin: 10px 0 6px;
    font-size: 28px;
    line-height: 1.15;
}

#introLead {
    margin: 0 auto 18px;
    max-width: 62ch;
    color: rgba(15, 23, 42, 0.72);
}

.introNameRow {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.introLabel {
    font-weight: 700;
}

.introInputRow {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

#nameGuest {
    width: min(340px, 90vw);
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    outline: none;
    font-size: 1rem;
}

#nameGuest:focus {
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

#randomNameBtn,
#toMenu,
.introBtn {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.06);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.2s ease;
}

#randomNameBtn:hover,
#toMenu:hover,
.introBtn:hover {
    background: rgba(15, 23, 42, 0.10);
    transform: translateY(-1px);
}

#toMenu {
    width: min(360px, 92%);
    display: block;
    margin: 0 auto;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.20);
}

/* карточки Блиц/Голосование */
.introChoiceGrid {
    width: min(760px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 10px auto 6px;
}

.introChoiceCard {
    text-align: left;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}

.introChoiceCard:hover {
    background: rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.introChoiceCard.is-selected {
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.28);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.10);
}

.introChoiceTitle {
    font-weight: 900;
    margin-bottom: 6px;
}

.introChoiceDesc {
    color: rgba(15, 23, 42, 0.72);
    font-size: 0.96rem;
    line-height: 1.35;
}

.introBtnSecondary {
    background: rgba(15, 23, 42, 0.04);
}

/* демо-голосование. */
.introVoteLead {
    color: rgba(15, 23, 42, 0.72);
    max-width: 62ch;
    text-align: center;
}

/* пул голосов*/
.introVotePool {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.10);
}

.introVotePoolLabel {
    font-weight: 700;
    color: rgba(15, 23, 42, 0.75);
}

.introVotePoolValue {
    min-width: 28px;
    text-align: center;
    font-weight: 900;
}

.introVoteGrid {
    width: min(880px, 100%);
    gap: 16px;
    margin-top: 14px;
}

.introVoteCard {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.75);
    padding: 12px;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.introVoteImg {
    width: 100%;
    height: 320px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(15, 23, 42, 0.10);
}

.introVoteControls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.introVoteScore {
    min-width: 44px;
    text-align: center;
    font-weight: 900;
    font-size: 1.05rem;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.10);
}

.introVoteBtn {
    width: 46px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.introVoteBtn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 720px) {
    .introChoiceGrid {
        grid-template-columns: 1fr;
    }
    .introVoteImg {
        height: 260px;
    }
}

/* панель блица */
.introBlitz {
    display: grid;
    gap: 15px;
    justify-items: center;
    padding: 12px 0 6px;
}

.introStatus {
    width: min(450px, 92%);
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 800;
    text-align: center;
    background: #d7c203;
    color: #1a1a1a;
}

.introStatus.is-danger {
    background: #ef6a6a;
    color: #1a1a1a;
}

.introStatus.is-success {
    background: #67d3a1;
    color: #062314;
}

.introEquation {
    font-size: 18px;
    font-weight: 700;
}

.introAnswer {
    width: min(280px, 70vw);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    text-align: center;
    font-size: 1rem;
}

#introToast {
    position: fixed;
    left: 50%;
    top: 90px;
    transform: translateX(-50%);
    width: min(520px, 92vw);
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(7, 16, 31, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

#introToast.is-open {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
