:root {
    color-scheme: dark;
    --obs-blue: #769dcc;
    --obs-blue-bright: #8fc0ff;
    --obs-border: rgba(143, 192, 255, 0.16);
    --obs-border-strong: rgba(143, 192, 255, 0.3);
    --obs-surface: rgba(34, 34, 34, 0.72);
    --obs-surface-raised: rgba(43, 43, 43, 0.94);
    --obs-text-soft: rgba(255, 255, 255, 0.68);
    --obs-green: #72d79a;
}

.obs-setup-shell {
    max-width: 620px;
}

.obs-setup-shell [hidden] {
    display: none !important;
}

.obs-setup-panel {
    overflow: visible;
}

.obs-card {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--obs-border);
    border-radius: 9px;
    background:
        linear-gradient(180deg, rgba(45, 45, 45, 0.88), rgba(38, 38, 38, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.obs-card:first-of-type {
    margin-top: 0;
}

.obs-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.obs-card-heading h2 {
    margin: 0 0 4px;
    color: rgba(238, 246, 255, 0.96);
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.obs-card-heading p {
    margin: 0;
    color: var(--obs-text-soft);
    font-size: 0.82rem;
    line-height: 1.5;
}

.obs-card-heading-with-action {
    align-items: center;
}

.obs-connection-state,
.obs-channel-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(28, 28, 28, 0.58);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    font-weight: 650;
}

.obs-channel-badge {
    border-color: rgba(114, 215, 154, 0.2);
    background: rgba(63, 118, 83, 0.1);
}

.obs-status-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--obs-green);
    box-shadow: 0 0 0 4px rgba(114, 215, 154, 0.09);
}

.obs-status-dot.is-loading {
    background: var(--obs-blue);
    box-shadow: 0 0 0 4px rgba(118, 157, 204, 0.1);
    animation: obs-pulse 1.2s ease-in-out infinite;
}

@keyframes obs-pulse {
    50% {
        opacity: 0.45;
    }
}

.obs-empty-state {
    padding: 13px;
    border: 1px solid rgba(255, 189, 106, 0.18);
    border-radius: 8px;
    background: rgba(121, 83, 35, 0.09);
}

.obs-empty-state strong {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 239, 216, 0.95);
    font-size: 0.9rem;
}

.obs-empty-state p {
    margin: 0 0 11px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    line-height: 1.52;
}

.obs-source-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.obs-source-option {
    min-width: 0;
    min-height: 46px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(34, 34, 34, 0.9);
    color: rgba(255, 255, 255, 0.72);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.obs-source-option strong,
.obs-source-option small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.obs-source-option strong {
    font-size: 0.78rem;
}

.obs-source-option small {
    margin-top: 1px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.7rem;
}

.obs-source-option:hover {
    border-color: rgba(143, 192, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
}

.obs-source-option[aria-checked="true"] {
    border-color: rgba(143, 192, 255, 0.42);
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.17), rgba(255, 255, 255, 0.035));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.obs-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.obs-channel-badge + .obs-field,
.obs-source-picker + .obs-field {
    margin-top: 12px;
}

.obs-field-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 680;
    line-height: 1.3;
}

.obs-url-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
}

.obs-url-input {
    width: 100%;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.73rem;
}

.obs-url-input.is-masked {
    color: transparent;
    text-shadow: 0 0 8px rgba(220, 234, 255, 0.48);
}

.obs-icon-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(143, 192, 255, 0.16);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(215, 229, 244, 0.72);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.obs-icon-button:hover {
    border-color: rgba(143, 192, 255, 0.3);
    background: rgba(143, 192, 255, 0.075);
    color: rgba(239, 247, 255, 0.96);
}

.obs-icon-button:active {
    transform: translateY(1px);
}

.obs-icon-button:focus-visible,
.obs-button:focus-visible,
.obs-source-option:focus-visible,
.obs-text-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.18);
}

.obs-icon-button svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.obs-refresh-button {
    width: 38px;
    height: 38px;
    border-radius: 9px;
}

.obs-refresh-button svg {
    width: 16px;
    height: 16px;
}

.obs-icon-button .icon-eye-off,
.obs-icon-button.is-revealed .icon-eye {
    display: none;
}

.obs-icon-button.is-revealed .icon-eye-off {
    display: block;
}

.obs-primary-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 9px;
}

.obs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid rgba(143, 192, 255, 0.25);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.16), rgba(255, 255, 255, 0.045));
    color: rgba(234, 244, 255, 0.98);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 720;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 7px 17px rgba(0, 0, 0, 0.12);
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.obs-button:hover {
    border-color: rgba(143, 192, 255, 0.4);
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.24), rgba(255, 255, 255, 0.06));
    color: #fff;
    text-decoration: none;
}

.obs-button-secondary {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
}

.obs-button.is-disabled,
.obs-button:disabled {
    opacity: 0.42;
    pointer-events: none;
    cursor: default;
}

.obs-note {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    line-height: 1.45;
}

.obs-game-current {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 84px;
    padding: 13px 14px;
    border: 1px solid rgba(143, 192, 255, 0.14);
    border-radius: 9px;
    background:
        radial-gradient(circle at 6% 0%, rgba(66, 126, 190, 0.1), transparent 40%),
        rgba(23, 25, 29, 0.76);
}

.obs-game-word-block {
    min-width: 0;
}

.obs-game-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.62rem;
    font-weight: 760;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.obs-game-word-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.obs-game-secret {
    overflow: hidden;
    color: rgba(245, 249, 255, 0.98);
    font-size: clamp(1.18rem, 4.6vw, 1.48rem);
    font-weight: 760;
    letter-spacing: -0.025em;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: filter 0.16s ease, opacity 0.16s ease;
}

.obs-game-secret.is-hidden:not(.is-empty) {
    filter: blur(7px);
    opacity: 0.72;
    user-select: none;
}

.obs-game-secret.is-empty {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0;
}

.obs-secret-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(143, 192, 255, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(215, 229, 244, 0.52);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.obs-secret-toggle:hover:not(:disabled) {
    border-color: rgba(143, 192, 255, 0.25);
    background: rgba(143, 192, 255, 0.07);
    color: rgba(239, 247, 255, 0.92);
}

.obs-secret-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.16);
}

.obs-secret-toggle:disabled {
    opacity: 0.28;
    cursor: default;
}

.obs-secret-toggle svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.obs-secret-toggle .icon-eye-off,
.obs-secret-toggle.is-revealed .icon-eye {
    display: none;
}

.obs-secret-toggle.is-revealed .icon-eye-off {
    display: block;
}

.obs-game-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    font-weight: 720;
    white-space: nowrap;
}

.obs-game-state .obs-status-dot {
    width: 6px;
    height: 6px;
    box-shadow: none;
}

.obs-game-state[data-state="running"] {
    border-color: rgba(114, 215, 154, 0.22);
    background: rgba(62, 133, 89, 0.1);
    color: rgba(190, 241, 209, 0.92);
}

.obs-game-state[data-state="stopped"] .obs-status-dot,
.obs-game-state[data-state="empty"] .obs-status-dot {
    background: rgba(255, 255, 255, 0.32);
}

.obs-game-state[data-state="solved"] {
    border-color: rgba(255, 185, 88, 0.24);
    background: rgba(141, 91, 24, 0.11);
    color: rgba(255, 220, 169, 0.94);
}

.obs-game-state[data-state="solved"] .obs-status-dot {
    background: #ffb858;
}

.obs-game-actions {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
}

.obs-game-action {
    grid-column: span 2;
    min-width: 0;
    padding-inline: 9px;
}

.obs-game-action:nth-child(n + 4) {
    grid-column: span 3;
}

.obs-game-action.is-start {
    border-color: rgba(114, 215, 154, 0.26);
    background: linear-gradient(135deg, rgba(39, 160, 90, 0.34), rgba(255, 255, 255, 0.035));
}

.obs-game-action.is-danger {
    border-color: rgba(255, 104, 116, 0.25);
    background: rgba(139, 39, 48, 0.1);
    color: rgba(255, 180, 187, 0.94);
    box-shadow: none;
}

.obs-game-action span {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    margin-left: 5px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.65rem;
    font-variant-numeric: tabular-nums;
}

.obs-game-create {
    margin-top: 14px;
}

.obs-game-create-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 7px;
}

.obs-game-create-row .create-game-input {
    min-width: 0;
    min-height: 42px;
}

.obs-game-feedback {
    min-height: 1.1em;
    margin: 8px 1px 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.7rem;
    line-height: 1.45;
}

.obs-game-feedback.is-error {
    color: rgba(255, 159, 168, 0.92);
}

.obs-preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.68rem;
    font-weight: 620;
}

.obs-preview-meta span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.obs-preview-meta i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--obs-green);
    box-shadow: 0 0 8px rgba(114, 215, 154, 0.32);
}

.obs-preview-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: clamp(390px, 68vh, 560px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.018) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.018) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.018) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.018) 75%),
        #181818;
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

.obs-preview-stage iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: var(--preview-source-width, 100%);
    height: var(--preview-source-height, 100%);
    border: 0;
    background: transparent;
    transform: translate(-50%, -50%) scale(var(--preview-source-scale, 1));
    transform-origin: center;
}

.obs-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.obs-field select,
.obs-number-shell input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border: 1px solid rgba(143, 192, 255, 0.18);
    border-radius: 8px;
    background: rgba(42, 42, 42, 0.96);
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    padding: 9px 11px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.obs-field select:focus,
.obs-number-shell input:focus {
    outline: none;
    border-color: rgba(33, 150, 243, 0.78);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.16);
}

.obs-number-shell input[readonly] {
    color: rgba(225, 241, 255, 0.88);
    cursor: default;
}

.obs-number-shell input[readonly]:focus {
    border-color: rgba(143, 192, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.obs-segment-field {
    min-width: 0;
    border: 0;
}

.obs-segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    min-height: 42px;
    padding: 3px;
    border: 1px solid rgba(143, 192, 255, 0.14);
    border-radius: 8px;
    background: rgba(30, 30, 30, 0.72);
}

.obs-segmented label {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.obs-segmented input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.obs-segmented span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.75rem;
    font-weight: 680;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.obs-segmented input:checked + span {
    border-color: rgba(143, 192, 255, 0.18);
    background: rgba(33, 150, 243, 0.14);
    color: rgba(238, 247, 255, 0.98);
}

.obs-segmented input:focus-visible + span {
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.18);
}

.obs-switch-list {
    margin-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.obs-switch-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 56px;
    padding: 10px 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    cursor: pointer;
}

.obs-switch-row > span {
    min-width: 0;
}

.obs-switch-row strong,
.obs-switch-row small {
    display: block;
}

.obs-switch-row strong {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.79rem;
    line-height: 1.35;
}

.obs-switch-row small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
    line-height: 1.38;
}

.obs-switch-row input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.obs-switch-row > i {
    position: relative;
    flex: 0 0 auto;
    width: 39px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(18, 18, 18, 0.74);
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.obs-switch-row > i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.62);
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.obs-switch-row input:checked + i {
    border-color: rgba(143, 192, 255, 0.34);
    background: rgba(33, 150, 243, 0.24);
}

.obs-switch-row input:checked + i::after {
    background: #dceeff;
    transform: translateX(17px);
}

.obs-switch-row input:focus-visible + i {
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.16);
}

.obs-switch-row.is-disabled {
    opacity: 0.42;
    cursor: default;
}

.obs-standalone-switch {
    margin: 11px 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.obs-range-group {
    margin-bottom: 14px;
}

.obs-range-group > label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 660;
}

.obs-range-group output {
    color: var(--obs-blue-bright);
    font-variant-numeric: tabular-nums;
}

.obs-range-group input[type="range"] {
    --range-progress: 50%;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    outline: none;
    appearance: none;
    background: linear-gradient(
        90deg,
        rgba(93, 155, 229, 0.84) var(--range-progress),
        rgba(255, 255, 255, 0.09) var(--range-progress)
    );
}

.obs-range-group input[type="range"]::-webkit-slider-thumb {
    width: 17px;
    height: 17px;
    border: 2px solid #2b2b2b;
    border-radius: 50%;
    appearance: none;
    background: #a9d2ff;
    box-shadow: 0 0 0 1px rgba(143, 192, 255, 0.34);
    cursor: pointer;
}

.obs-range-group input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border: 2px solid #2b2b2b;
    border-radius: 50%;
    background: #a9d2ff;
    cursor: pointer;
}

.obs-dimensions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 9px;
}

.obs-number-shell {
    position: relative;
    display: block;
}

.obs-number-shell input {
    padding-right: 34px;
}

.obs-number-shell > span {
    position: absolute;
    top: 50%;
    right: 10px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.68rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.obs-dimension-cross {
    padding-bottom: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.obs-text-button {
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(143, 192, 255, 0.78);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 680;
    cursor: pointer;
}

.obs-text-button:hover {
    color: #b8d9ff;
    text-decoration: underline;
}

.obs-steps {
    display: grid;
    gap: 9px;
    list-style: none;
}

.obs-steps li {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
}

.obs-steps li > span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 1px solid rgba(143, 192, 255, 0.22);
    border-radius: 7px;
    background: rgba(33, 150, 243, 0.1);
    color: rgba(220, 237, 255, 0.94);
    font-size: 0.7rem;
    font-weight: 760;
}

.obs-steps p {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
    line-height: 1.48;
}

.obs-steps strong {
    color: rgba(255, 255, 255, 0.9);
}

.obs-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 100;
    width: min(430px, calc(100vw - 28px));
    padding: 11px 14px;
    border: 1px solid rgba(143, 192, 255, 0.24);
    border-radius: 9px;
    background: rgba(32, 38, 45, 0.97);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 15px 38px rgba(0, 0, 0, 0.34);
    font-size: 0.78rem;
    font-weight: 650;
    text-align: center;
    transform: translateX(-50%);
    animation: obs-toast-in 0.16s ease-out;
}

.obs-toast.is-error {
    border-color: rgba(255, 135, 135, 0.25);
    background: rgba(55, 31, 34, 0.97);
}

@keyframes obs-toast-in {
    from {
        opacity: 0;
        transform: translate(-50%, 6px);
    }
}

@media (max-width: 560px) {
    .obs-settings-grid {
        grid-template-columns: 1fr;
    }

    .obs-source-picker {
        grid-template-columns: 1fr;
    }

    .obs-preview-stage {
        height: min(480px, 68vh);
        min-height: 340px;
    }

    .obs-game-current {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .obs-game-state {
        justify-self: start;
    }
}

@media (max-width: 390px) {
    .obs-card {
        padding: 12px;
    }

    .obs-dimensions {
        gap: 7px;
    }

    .obs-game-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .obs-game-action,
    .obs-game-action:nth-child(n + 4) {
        grid-column: auto;
    }

    .obs-game-action:last-child {
        grid-column: span 2;
    }

    .obs-game-create-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .obs-status-dot.is-loading,
    .obs-toast {
        animation: none;
    }

    .obs-preview-stage iframe,
    .obs-switch-row > i,
    .obs-switch-row > i::after {
        transition: none;
    }
}
