.qcook-online {
    --qonline-surface: rgba(255, 255, 255, .96);
    --qonline-border: rgba(24, 32, 49, .16);
    --qonline-text: #172033;
    --qonline-muted: #526174;
    --qonline-sky: #0f766e;
    --qonline-gold: #b45309;
    min-height: 100vh;
    padding: 22px 14px 34px;
    color: #172033;
    background:
        radial-gradient(circle at 16% 10%, rgba(255, 205, 92, .28), transparent 30%),
        linear-gradient(135deg, #fff8e8 0%, #eff8f1 46%, #edf4ff 100%);
}

.qcook-online-stage {
    width: min(1060px, 100%);
    margin: 0 auto;
}

.qcook-online .qonline-setup,
.qcook-online .qonline-wait-room {
    width: min(620px, 100%);
    max-width: 620px;
    color: #172033;
}

.qcook-online .qonline-setup__head {
    margin-bottom: 14px;
}

.qcook-online .qonline-setup__icon {
    width: 64px;
    height: 64px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid rgba(180, 83, 9, .18);
    box-shadow: 0 10px 28px rgba(23, 32, 51, .10);
}

.qcook-online .qonline-setup__title,
.qcook-online .qonline-section__title,
.qcook-online .qonline-wait-room h2,
.qcook-online .qonline-play-now h2 {
    color: #111827;
    letter-spacing: 0;
}

.qcook-online .qonline-setup__desc,
.qcook-online .qonline-muted,
.qcook-online .qonline-fieldhint,
.qcook-online .qonline-create-hint,
.qcook-online .qonline-qr-hint,
.qcook-online .qonline-myqr__hint {
    color: #526174;
}

.qcook-online .qonline-section,
.qcook-online .qonline-wait-room,
.qcook-online .qonline-myname,
.qcook-online .qonline-accordion,
.qcook-online .qonline-play-now {
    background: rgba(255, 255, 255, .96);
    border-color: rgba(24, 32, 49, .16);
    box-shadow: 0 16px 44px rgba(23, 32, 51, .10);
}

.qcook-online .qonline-section {
    border-radius: 8px;
}

.qcook-online .qonline-field__label,
.qcook-online .qonline-myname__label,
.qcook-online .qonline-toggle {
    color: #1f2937;
}

.qcook-online .qonline-input {
    background: #ffffff;
    border-color: #c9d3df;
    color: #111827;
    box-shadow: inset 0 1px 0 rgba(23, 32, 51, .03);
}

.qcook-online .qonline-input::placeholder {
    color: #7a8798;
    opacity: 1;
}

.qcook-online .qonline-input:focus {
    outline: 3px solid rgba(15, 118, 110, .18);
    border-color: #0f766e;
}

.qcook-online select.qonline-input,
.qcook-online .qonline-input option {
    background: #ffffff;
    color: #111827;
}

.qcook-online .qonline-btn {
    background: #ffffff;
    border-color: #c9d3df;
    color: #172033;
    box-shadow: 0 6px 16px rgba(23, 32, 51, .08);
}

.qcook-online .qonline-btn:hover {
    border-color: #0f766e;
    color: #0f766e;
}

.qcook-online .qonline-btn--primary {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

.qcook-online .qonline-btn--primary:hover {
    background: #115e59;
    border-color: #115e59;
    color: #ffffff;
}

.qcook-online .qonline-btn--ghost {
    background: transparent;
    color: #314057;
}

.qcook-online .qonline-friend-chip,
.qcook-online .qsv-friend-chip,
.qcook-online .qonline-pending__item,
.qcook-online .qonline-wait-room__players li {
    background: #f7fafc;
    border-color: #d8e0ea;
    color: #172033;
}

.qcook-online .qonline-friend-req {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #7c2d12;
}

.qcook-online .qonline-tag {
    background: #ccfbf1;
    color: #115e59;
}

.qcook-online .qonline-wait-room__code b {
    color: #b45309;
}

.qcook-online .qonline-accordion > summary {
    color: #172033;
}

.qcook-online .qonline-qr-wrap,
.qcook-online .qonline-play-now .qonline-qr-wrap {
    border: 1px solid rgba(24, 32, 49, .12);
    box-shadow: 0 10px 28px rgba(23, 32, 51, .10);
}

.qcook-online .qonline-pending__item small {
    color: #64748b;
}

.qcook-online .qonline-spinner {
    border-color: rgba(15, 118, 110, .16);
    border-top-color: #0f766e;
}

.qcook-online-loader,
.qcook-panel {
    width: min(520px, 100%);
    margin: 72px auto 0;
    padding: 24px;
    border: 1px solid rgba(23, 32, 51, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 16px 44px rgba(23, 32, 51, .10);
    text-align: center;
}

.qcook-online-loader__icon,
.qcook-panel__icon {
    font-size: 44px;
}

.qcook-game {
    display: grid;
    gap: 14px;
}

.qcook-hero,
.qcook-board,
.qcook-result {
    border: 1px solid rgba(23, 32, 51, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 44px rgba(23, 32, 51, .10);
}

.qcook-hero {
    display: grid;
    grid-template-columns: minmax(240px, 380px) 1fr;
    gap: 18px;
    padding: 14px;
    align-items: stretch;
}

.qcook-hero__media {
    min-height: 250px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3efe5;
}

.qcook-hero__img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    display: block;
}

.qcook-hero__fallback {
    height: 100%;
    min-height: 250px;
    display: grid;
    place-items: center;
    font-size: 66px;
}

.qcook-hero__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    min-width: 0;
}

.qcook-kicker {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e7f5e9;
    color: #166533;
    font-size: 13px;
    font-weight: 800;
}

.qcook-hero h1,
.qcook-board h2,
.qcook-result h2 {
    margin: 0;
    color: #121826;
    letter-spacing: 0;
}

.qcook-hero h1 {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
}

.qcook-hero p,
.qcook-board p,
.qcook-result p {
    margin: 0;
    color: #506078;
    line-height: 1.7;
}

.qcook-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qcook-meta span,
.qcook-player {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #25324a;
    font-size: 13px;
    font-weight: 800;
}

.qcook-timer {
    background: #fff3cd !important;
    color: #7a4b00 !important;
}

.qcook-timer.is-urgent {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.qcook-timer b {
    font-size: 19px;
}

.qcook-players {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.qcook-player.is-done {
    background: #dcfce7;
    color: #166533;
}

.qcook-player.is-left {
    opacity: .55;
    text-decoration: line-through;
}

.qcook-board {
    padding: 14px;
}

.qcook-board__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
}

.qcook-board h2 {
    font-size: 20px;
}

.qcook-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px;
}

.qcook-item {
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid #d6deea;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2a3d;
    font: inherit;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.qcook-item:hover {
    transform: translateY(-1px);
    border-color: #71a36f;
}

.qcook-item.is-selected {
    border-color: #1f8f45;
    background: #dcfce7;
    color: #14532d;
}

.qcook-item.is-correct {
    border-color: #16a34a;
    background: #bbf7d0;
    color: #14532d;
}

.qcook-item.is-wrong {
    border-color: #ef4444;
    background: #fee2e2;
    color: #991b1b;
}

.qcook-item:disabled {
    cursor: default;
}

.qcook-submit {
    position: sticky;
    bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 10px;
    border: 1px solid rgba(23, 32, 51, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 30px rgba(23, 32, 51, .14);
}

.qcook-submit--waiting {
    display: block;
    color: #166533;
    font-weight: 900;
    text-align: center;
}

.qcook-result {
    padding: 14px;
    border-color: #bfd9c1;
}

.qcook-result.is-win {
    border-color: #16a34a;
}

.qcook-ranking {
    display: grid;
    gap: 7px;
    margin: 12px 0;
    padding: 0;
    list-style-position: inside;
}

.qcook-ranking li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    background: #f3f6fb;
}

.qcook-correct {
    margin: 10px 0 12px;
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: #25324a;
    line-height: 1.7;
}

.qcook-toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 9999;
    transform: translateX(-50%) translateY(20px);
    max-width: min(92vw, 420px);
    padding: 10px 14px;
    border-radius: 8px;
    background: #121826;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.qcook-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 760px) {
    .qcook-online {
        padding: 14px 10px 28px;
    }

    .qcook-hero {
        grid-template-columns: 1fr;
    }

    .qcook-hero__media,
    .qcook-hero__img,
    .qcook-hero__fallback {
        min-height: 210px;
    }

    .qcook-board__head,
    .qcook-submit {
        align-items: stretch;
        flex-direction: column;
    }

    .qcook-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
