/* Колесо фортуни для стримерів: кабінет (/wheel) і екран розіграшу (/wheel/spin). */

.whl-page { max-width: 960px; margin: 0 auto; padding: 0 16px 64px; }

.whl-section { margin-top: 32px; }
.whl-section-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.whl-subsection-title { font-size: 15px; font-weight: 600; margin: 20px 0 8px; }
.whl-hint { color: var(--fc-muted, #9d9da8); font-size: 13px; margin: 0 0 12px; }
.whl-muted { color: var(--fc-muted, #9d9da8); font-size: 13px; font-weight: 400; }

.whl-input {
    width: 100%;
    background: var(--fc-bg, #0e0e10);
    border: 1px solid var(--fc-border, #2d2d33);
    border-radius: 8px;
    color: inherit;
    padding: 8px 10px;
    font: inherit;
}
.whl-input:focus { outline: none; border-color: var(--fc-accent, #9146ff); }

.whl-btn { cursor: pointer; }

.whl-integrations { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.whl-integration {
    background: var(--fc-panel, #18181b);
    border: 1px solid var(--fc-border, #2d2d33);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}
.whl-integration-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.whl-integration-name { font-weight: 700; }
.whl-status { font-size: 12px; color: var(--fc-muted, #9d9da8); }
.whl-status.is-on { color: #38c172; }
.whl-integration-controls { display: flex; flex-direction: column; gap: 8px; }

.whl-form {
    background: var(--fc-panel, #18181b);
    border: 1px solid var(--fc-border, #2d2d33);
    border-radius: 12px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    align-items: end;
}
.whl-field label { display: block; font-size: 12px; color: var(--fc-muted, #9d9da8); margin-bottom: 4px; }
.whl-field-wide { grid-column: span 2; }

.whl-error {
    background: #3a1216;
    border: 1px solid #7a2730;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 12px;
}
.whl-warnblock {
    background: #2b2313;
    border: 1px solid #6e5a1e;
    border-radius: 8px;
    padding: 10px 14px;
}

.whl-results { margin-top: 20px; }
.whl-summary { color: var(--fc-muted, #9d9da8); margin-bottom: 12px; }
.whl-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--fc-panel, #18181b);
    border: 1px solid var(--fc-border, #2d2d33);
    border-radius: 12px;
    overflow: hidden;
}
.whl-table th, .whl-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--fc-border, #2d2d33); }
.whl-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--fc-muted, #9d9da8); }
.whl-table tr:last-child td { border-bottom: none; }
.whl-num { text-align: right; font-variant-numeric: tabular-nums; }
.whl-note { font-size: 12px; color: #f5b83d; }
.whl-chancebar {
    display: inline-block;
    height: 6px;
    background: var(--fc-accent, #9146ff);
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 8px;
}

.whl-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.whl-flash { color: #38c172; font-size: 13px; opacity: 0; transition: opacity .2s; }
.whl-flash.is-visible { opacity: 1; }
.whl-pool-name { max-width: 240px; }
.whl-pool-tickets { max-width: 90px; text-align: right; }
.whl-mini-del {
    background: none;
    border: 1px solid var(--fc-border, #2d2d33);
    color: var(--fc-muted, #9d9da8);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 13px;
    cursor: pointer;
}
.whl-mini-del:hover { color: #f66; border-color: #7a2730; background: #3a1216; }

/* ---- сторінка розіграшу ---- */

.whl-spin-page { padding: 16px; }
.whl-empty-pool { text-align: center; padding: 64px 16px; display: grid; gap: 16px; justify-items: center; }
.whl-spin-layout {
    display: grid;
    /* колесо — головне: широка колонка, панель праворуч компактна */
    grid-template-columns: minmax(340px, 800px) minmax(240px, 320px);
    gap: 24px;
    justify-content: center;
    align-items: start;
}
@media (max-width: 760px) { .whl-spin-layout { grid-template-columns: 1fr; } }
.whl-wheelbox canvas { width: 100%; height: auto; display: block; }

.whl-controls { display: flex; gap: 10px; margin-top: 16px; justify-content: center; flex-wrap: wrap; }
.whl-btn-spin {
    background: var(--fc-accent, #9146ff);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 26px;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}
.whl-btn-spin:hover { background: var(--fc-accent-hover, #a970ff); }
.whl-btn-spin:disabled { opacity: .4; cursor: default; }
.whl-btn-secondary {
    background: var(--fc-panel, #18181b);
    color: inherit;
    border: 1px solid var(--fc-border, #2d2d33);
    border-radius: 8px;
    padding: 12px 18px;
    font: inherit;
    cursor: pointer;
}
.whl-btn-secondary.is-on { background: var(--fc-accent, #9146ff); border-color: var(--fc-accent, #9146ff); color: #fff; font-weight: 700; }
.whl-mode-select {
    background: var(--fc-panel, #18181b);
    border: 1px solid var(--fc-border, #2d2d33);
    border-radius: 8px;
    color: inherit;
    padding: 12px 10px;
    font: inherit;
    cursor: pointer;
}
.whl-mode-desc { text-align: center; margin-top: 10px; color: var(--fc-muted, #9d9da8); font-size: 13px; }
.whl-spin-status { text-align: center; margin-top: 12px; min-height: 24px; color: var(--fc-muted, #9d9da8); }

.whl-settings {
    background: var(--fc-panel, #18181b);
    border: 1px solid var(--fc-border, #2d2d33);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}
.whl-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.whl-checkline { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }

.whl-panel {
    background: var(--fc-panel, #18181b);
    border: 1px solid var(--fc-border, #2d2d33);
    border-radius: 12px;
    padding: 14px 16px;
}
.whl-panel + .whl-panel { margin-top: 16px; }
.whl-panel h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--fc-muted, #9d9da8); margin: 0 0 10px; }
.whl-prow { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.whl-prow.is-out { text-decoration: line-through; color: var(--fc-muted, #9d9da8); }
.whl-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.whl-pname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whl-pstat { color: var(--fc-muted, #9d9da8); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.whl-mini {
    background: none;
    border: 1px solid var(--fc-border, #2d2d33);
    border-radius: 6px;
    color: var(--fc-muted, #9d9da8);
    font-size: 11px;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
    cursor: pointer;
}
.whl-back-btn { display: block; margin-top: 16px; text-align: center; text-decoration: none; }
/* журнал вильотів не розтягує сторінку — скролиться всередині панелі */
.whl-out-list { max-height: 260px; overflow-y: auto; }

.whl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    z-index: 40;
    text-align: center;
    padding: 20px;
}
.whl-overlay.is-shown { display: flex; }
.whl-overlay-trophy { font-size: 72px; }
.whl-overlay-winner { font-size: 42px; font-weight: 800; }
.whl-overlay-sub { color: var(--fc-muted, #9d9da8); }
.whl-overlay-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

.whl-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 41;
    display: none;
}
.whl-confetti.is-shown { display: block; }

/* картки інтеграцій симетричні: підказка розтягується, кнопки притиснуті до низу */
.whl-key-hint { font-size: 12px; color: var(--fc-muted, #9d9da8); margin: 0 0 6px; flex-grow: 1; }
.whl-key-link {
    font-size: 12px;
    color: var(--fc-accent, #9146ff);
    text-decoration: none;
    margin-bottom: 12px;
    align-self: flex-start;
}
.whl-key-link:hover { text-decoration: underline; }
.whl-integration-buttons { display: flex; gap: 8px; }
.whl-integration-buttons .whl-btn { flex: 1; text-align: center; }
