* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
    background: #000;
    width: 100vw;
    height: 100dvh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

body.virtual-keyboard-open {
    --virtual-keyboard-space: 408px;
}

button,
input {
    font: inherit;
}

button {
    border: none;
}

button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(116, 214, 255, 0.9);
    outline-offset: 2px;
}

.stage {
    position: relative;
    width: 1080px;
    height: 1920px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.container {
    width: 1080px;
    height: 1920px;
    flex: 0 0 auto;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(var(--stage-scale, 1));
    transform-origin: center;
    isolation: isolate;
}

.background {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

.container
    > :not(.background):not(.header):not(.screensaver-trigger):not(
        .wheel-container
    ):not(.screensaver) {
    position: relative;
    z-index: 1;
}

.header {
    position: absolute;
    top: 54px;
    left: 70px;
    width: 940px;
    height: auto;
    margin-top: 0;
    transform: none;
    z-index: 10;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.screensaver-trigger {
    position: fixed;
    top: calc(18px + env(safe-area-inset-top, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
    min-width: 98px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 11, 32, 0.18);
    color: rgba(255, 255, 255, 0.44);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    z-index: 60;
    cursor: pointer;
    opacity: 0.16;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3px);
    transition:
        transform 0.18s ease,
        opacity 0.18s ease,
        background 0.18s ease;
}

.screensaver-trigger:hover {
    opacity: 0.34;
    background: rgba(6, 14, 40, 0.28);
}

.screensaver-trigger:active {
    transform: translateY(1px) scale(0.98);
    opacity: 0.48;
}

.status-bar {
    display: none;
}

.status-chip {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(5, 10, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 20px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.status-chip--muted {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.86);
}

.fullscreen-button {
    position: fixed;
    inset: auto auto calc(18px + env(safe-area-inset-bottom, 0px))
        calc(18px + env(safe-area-inset-left, 0px));
    z-index: 120;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    border: 1px solid rgba(8, 12, 30, 0.08);
    background: rgba(8, 12, 30, 0.08);
    color: rgba(8, 12, 30, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.2;
    backdrop-filter: blur(4px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.fullscreen-button:hover {
    opacity: 0.28;
    transform: translateY(-1px);
}

.fullscreen-icon {
    width: 10px;
    height: 10px;
}

.version-tag {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: calc(12px + env(safe-area-inset-left, 0px));
    z-index: 26;
    display: inline-flex;
    align-items: center;
    max-width: 170px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(8, 12, 30, 0.24);
    border: 1px solid rgba(8, 12, 30, 0.12);
    backdrop-filter: blur(3px);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1;
    color: rgba(8, 12, 30, 0.52);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: auto;
    user-select: none;
    opacity: 0.48;
}

.wheel-container {
    position: absolute;
    top: 52.5%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--wheel-size);
    height: var(--wheel-size);
    margin-top: 0;
    transform: translate(-50%, -50%);
    --wheel-size: 880px;
}

.wheel-wrapper {
    position: relative;
    width: 880px;
    height: 880px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.prize-arrow {
    position: absolute;
    top: calc(50% - (var(--wheel-size) / 2) - 80px);
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: auto;
    z-index: 25;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.wheel-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    z-index: 6;
}

.wheel-labels {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 12;
    overflow: visible;
}

.wheel-labels__text {
    fill: #fff;
    font-family: "Arial Black", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    dominant-baseline: middle;
    paint-order: stroke fill;
    stroke: rgba(4, 16, 42, 0.68);
    stroke-width: 8px;
    stroke-linejoin: round;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.38));
    vector-effect: non-scaling-stroke;
}

.spin-button {
    position: absolute;
    width: 142px;
    height: 142px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 20;
    padding: 0;
    border-radius: 50%;
    transition: transform 0.2s;
}

.spin-button:hover {
    transform: scale(1.05);
}

.spin-button:active {
    transform: scale(0.95);
}

.spin-button img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.spin-button:disabled {
    cursor: not-allowed;
}

.spin-button:disabled img {
    opacity: 1;
}

.result-toast {
    position: absolute;
    left: 50%;
    bottom: 330px;
    transform: translate(-50%, 16px) scale(0.98);
    z-index: 34;
    width: min(520px, calc(100vw - 64px));
    min-width: 0;
    max-width: 520px;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 22px 28px 24px;
    border-radius: 28px;
    background:
        radial-gradient(
            100% 85% at 50% -4%,
            rgba(255, 255, 255, 0.14),
            rgba(255, 255, 255, 0) 64%
        ),
        linear-gradient(180deg, rgba(10, 19, 44, 0.94), rgba(4, 9, 24, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.28),
        0 10px 18px rgba(0, 0, 0, 0.18);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    text-align: center;
    color: #ffffff;
    isolation: isolate;
    --toast-accent-1: #ff2f2f;
    --toast-accent-2: #ffb347;
    backdrop-filter: blur(10px);
}

.result-toast::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    transform: none;
    width: auto;
    height: 6px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(
        90deg,
        var(--toast-accent-1),
        var(--toast-accent-2)
    );
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.16);
    pointer-events: none;
}

.result-toast::after {
    content: "";
    position: absolute;
    inset: auto 28px -14px;
    height: 28px;
    left: 50%;
    background: linear-gradient(
        135deg,
        var(--toast-accent-1),
        var(--toast-accent-2)
    );
    opacity: 0.18;
    filter: blur(16px);
    z-index: -1;
    pointer-events: none;
}

.result-toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
    animation: result-pop 0.55s ease-out;
}

.result-toast__text {
    display: block;
    max-width: 100%;
    margin-top: 0;
    font-size: clamp(34px, 4.2vw, 50px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-wrap: balance;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.result-toast__actions {
    margin-top: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.result-toast__actions .primary-button {
    min-width: 184px;
    padding: 15px 22px;
    font-size: 17px;
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.result-toast--prize {
    --toast-accent-1: #ff2f2f;
    --toast-accent-2: #ffb347;
}

.result-toast--retry {
    --toast-accent-1: #2b6bff;
    --toast-accent-2: #25e0a6;
}

@keyframes result-pop {
    0% {
        transform: translate(-50%, 16px) scale(0.96);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -2px) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 0) scale(1);
    }
}

.screensaver {
    position: fixed;
    inset: 0;
    z-index: 180;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    background: #000;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.screensaver.screensaver--hidden {
    opacity: 0;
    pointer-events: none;
}

.screensaver .screensaver__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none;
}

.screensaver .screensaver__badge {
    display: none;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
    background: rgba(4, 6, 18, 0.42);
    backdrop-filter: blur(6px);
}

body.virtual-keyboard-open .overlay,
body.virtual-keyboard-open .admin-shell {
    padding-bottom: calc(var(--virtual-keyboard-space, 0px) + 28px);
}

#formOverlay {
    pointer-events: none;
}

#formOverlay > * {
    pointer-events: auto;
}

.overlay--solid {
    background:
        linear-gradient(180deg, rgba(5, 10, 28, 0.82), rgba(5, 10, 28, 0.72)),
        rgba(4, 6, 18, 0.88);
}

.overlay--hidden {
    display: none;
}

.card {
    width: min(100%, 720px);
    padding: 42px;
    border-radius: 34px;
    background:
        radial-gradient(
            120% 140% at 50% 0%,
            rgba(255, 255, 255, 0.18),
            rgba(255, 255, 255, 0) 58%
        ),
        linear-gradient(160deg, rgba(6, 10, 28, 0.88), rgba(6, 10, 28, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.card--center {
    max-width: 760px;
    text-align: center;
}

.form-card {
    max-width: 760px;
}

.eyebrow {
    margin-bottom: 10px;
    color: rgba(116, 214, 255, 0.94);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.title {
    font-size: 54px;
    line-height: 0.95;
    margin-bottom: 18px;
}

.title--small {
    font-size: 38px;
    line-height: 1;
}

.copy {
    font-size: 24px;
    line-height: 1.35;
    opacity: 0.88;
    max-width: 620px;
    margin: 0 auto;
}

.copy--compact {
    margin: 0 0 24px;
    max-width: none;
}

.form-fields,
.config-list,
.segment-config-list {
    display: grid;
    gap: 18px;
}

.field,
.field-row,
.segment-row {
    display: grid;
    gap: 10px;
}

.field span,
.field-row__label,
.segment-row__title {
    font-size: 18px;
    font-weight: 700;
    opacity: 0.92;
}

.field input,
.field-row input,
.segment-row input {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 15, 40, 0.9);
    color: #fff;
    padding: 18px 20px;
    font-size: 24px;
}

.field input.virtual-keyboard-target,
.field-row input.virtual-keyboard-target,
.segment-row input.virtual-keyboard-target {
    border-color: rgba(116, 214, 255, 0.92);
    box-shadow: 0 0 0 3px rgba(116, 214, 255, 0.18);
}

.field-row {
    grid-template-columns: minmax(0, 1.4fr) auto auto;
    align-items: center;
    gap: 16px;
}

.field-row__controls,
.segment-row__controls {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.checkbox-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 16px;
    font-weight: 600;
}

.checkbox-chip input {
    width: 18px;
    height: 18px;
    accent-color: #74d6ff;
}

.toggle-card {
    display: grid;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.toggle-card__copy {
    display: grid;
    gap: 6px;
}

.toggle-card__title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.toggle-card__help {
    font-size: 16px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.74);
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 86px;
    height: 48px;
    flex: 0 0 auto;
}

.toggle-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.toggle-switch__track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    pointer-events: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.toggle-switch__thumb {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.toggle-switch input:checked + .toggle-switch__track {
    background: linear-gradient(
        135deg,
        rgba(116, 214, 255, 0.88),
        rgba(75, 176, 255, 0.92)
    );
    border-color: rgba(116, 214, 255, 0.5);
}

.toggle-switch input:checked + .toggle-switch__track + .toggle-switch__thumb {
    transform: translateX(38px);
}

.segment-row {
    grid-template-columns: 52px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.segment-row input[type="number"] {
    width: 110px;
    text-align: center;
    padding: 14px 14px;
    font-size: 22px;
}

.segment-row__index {
    font-size: 22px;
    font-weight: 800;
    color: rgba(116, 214, 255, 0.94);
}

.segment-row__name {
    min-width: 0;
}

.segment-row .field {
    min-width: 140px;
}

.segment-row__note {
    min-width: 120px;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    opacity: 0.72;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.actions--stack {
    justify-content: stretch;
    flex-direction: column;
}

.primary-button,
.secondary-button {
    border-radius: 18px;
    padding: 16px 22px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease;
}

.primary-button {
    background: linear-gradient(135deg, #74d6ff, #4bb0ff);
    color: #04102a;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.inline-error {
    margin-top: 16px;
    color: #ff9aa2;
    font-size: 18px;
    font-weight: 700;
}

.admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
}

.admin-overlay--hidden {
    display: none;
}

.admin-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 14, 0.68);
    backdrop-filter: blur(6px);
}

.admin-shell {
    position: absolute;
    inset: 10px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 10px;
}

.pin-gate,
.admin-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 980px);
}

.pin-card {
    max-width: 520px;
    margin: 0 auto;
}

.admin-panel {
    max-height: calc(100dvh - 20px);
    overflow: auto;
    border-radius: 30px;
    padding: 22px;
    background: rgba(8, 12, 30, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    position: sticky;
    top: -22px;
    z-index: 3;
    padding: 18px 0 16px;
    background: linear-gradient(
        180deg,
        rgba(8, 12, 30, 0.98),
        rgba(8, 12, 30, 0.92)
    );
    backdrop-filter: blur(6px);
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.admin-section {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 16px;
}

.admin-section--wide {
    grid-column: 1 / -1;
}

.section-head {
    display: grid;
    gap: 16px;
}

.admin-section h3 {
    font-size: 28px;
}

.section-help {
    font-size: 17px;
    line-height: 1.4;
    opacity: 0.8;
}

.section-help--status {
    color: rgba(116, 214, 255, 0.94);
}

.virtual-keyboard {
    position: fixed;
    left: 50%;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 0);
    width: min(980px, calc(100vw - 28px));
    padding: 16px;
    border-radius: 28px;
    background: rgba(6, 10, 24, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
    z-index: 140;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.virtual-keyboard--hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 24px);
}

.virtual-keyboard__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.virtual-keyboard__title {
    font-size: 18px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.86);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.virtual-keyboard__close {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 10px 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.virtual-keyboard__keys {
    display: grid;
    gap: 10px;
}

.virtual-keyboard__shortcuts,
.virtual-keyboard__panel {
    display: grid;
    gap: 10px;
}

.virtual-keyboard__main {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(220px, 0.9fr);
    gap: 12px;
}

.virtual-keyboard__panel--alpha,
.virtual-keyboard__panel--numeric,
.virtual-keyboard__shortcuts {
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.virtual-keyboard__panel--numeric-only {
    width: min(460px, 100%);
    justify-self: center;
}

.virtual-keyboard__row {
    display: grid;
    gap: 10px;
}

.virtual-keyboard__key {
    min-height: 62px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}

.virtual-keyboard__key:active {
    transform: scale(0.98);
    background: rgba(116, 214, 255, 0.22);
}

.virtual-keyboard__key[data-key-action="space"] {
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.virtual-keyboard__key[data-key-action="backspace"],
.virtual-keyboard__key[data-key-action="close"],
.virtual-keyboard__key[data-key-action="shift"],
.virtual-keyboard__key[data-key-action="next"],
.virtual-keyboard__key[data-key-action="submit"] {
    font-size: 21px;
}

.virtual-keyboard__key--accent {
    background: linear-gradient(135deg, #74d6ff, #4bb0ff);
    color: #04102a;
    border-color: rgba(116, 214, 255, 0.62);
}

.virtual-keyboard__key--muted {
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
    body.virtual-keyboard-open {
        --virtual-keyboard-space: 360px;
    }

    .virtual-keyboard {
        width: calc(100vw - 18px);
        bottom: calc(28px + env(safe-area-inset-bottom, 0px));
        padding: 12px;
    }

    .virtual-keyboard__main {
        grid-template-columns: 1fr;
    }

    .virtual-keyboard__key {
        min-height: 56px;
        font-size: 24px;
    }
}

.stat-list {
    display: grid;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 18px;
}

.stat-item span {
    opacity: 0.74;
}

@media (max-width: 1180px), (max-height: 900px) {
    .admin-shell {
        inset: 0;
        padding: 0;
    }

    .admin-panel {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        padding: 18px 16px 28px;
    }

    .admin-header {
        top: -18px;
        padding: 18px 0 14px;
    }

    .field-row,
    .segment-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .field-row__controls,
    .segment-row__controls {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .toggle-card__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .segment-row__note {
        min-width: 0;
        text-align: left;
    }
}

.confetti-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    pointer-events: none;
    z-index: 40;
}
