.control-section__title {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field__label {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.form-field__combo {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.form-field__combo .form-field__input {
    min-width: 0;
}

.form-field__combo .interface-button {
    flex-shrink: 0;
    white-space: nowrap;
}

.form-field__input:not(.interface-select__summary) {
    flex: 1;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 0.08em;
    padding: 12px 14px;
    color: var(--text-primary);
    background: linear-gradient(180deg, rgb(var(--accent-rgb) / 0.1), rgba(6, 12, 24, 0.9));
    border: 1px solid rgb(var(--accent-rgb) / 0.35);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field--select {
    position: relative;
}

.form-field__input--native {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.control-section .form-field {
    width: 100%;
}

.form-field__select-shell {
    position: relative;
    display: block;
    width: 100%;
}


.form-field__select-shell--biome {
    max-width: clamp(260px, 32vw, 340px);
}

.biome-selector-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: flex-end;
}

.biome-selector-row > .form-field {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

.biome-selector-row .form-field__select-shell--biome {
    max-width: none;
    width: 100%;
}

@media (max-width: 1100px) {
    .biome-selector-row {
        flex-wrap: wrap;
    }

    .biome-selector-row > .form-field {
        flex: 1 1 clamp(240px, 46vw, 360px);
    }
}

.form-field--events {
    min-width: clamp(200px, 25vw, 240px);
    position: relative;
    z-index: 2;
}

.event-selector-block {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    transform-origin: top center;
}

.event-selector-block:has(.interface-select[open]),
.form-field--events:has(.interface-select[open]) {
    z-index: 140;
}

.interface-select {
    position: relative;
    display: block;
}

.interface-select[open] {
    z-index: 120;
}

details[data-select="biome-time-dropdown"] .interface-select__menu {
    right: 0;
    left: auto;
    width: min(233px, calc(100vw - 32px));
    transform-origin: top right;
}

.parameter-console__module--environment .biome-selector-row > .form-field:has(.interface-select[open]) {
    position: relative;
    z-index: 150;
}

.interface-select__summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    min-height: 44px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    --button-background: linear-gradient(92deg, rgb(var(--accent-rgb) / 0.18), rgba(10, 20, 38, 0.92));
    --button-border-color: var(--accent-muted);
    list-style: none;
}

.interface-select__summary.form-field__input--event,
.form-field__input--event {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.interface-select__summary.form-field__input--placeholder,
.form-field__input--event.form-field__input--placeholder {
    color: var(--text-tertiary);
}

.interface-select__summary::-webkit-details-marker {
    display: none;
}

.interface-select__summary::marker {
    content: '';
    display: none;
}

.preset-toggle__summary:hover,
.preset-toggle__summary:focus-visible,
.interface-select__summary:hover,
.interface-select__summary:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgb(var(--accent-rgb) / 0.25);
    outline: none;
}

.interface-select__summary::after {
    content: '';
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border: 2px solid var(--accent);
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.form-field--events .interface-select__summary {
    width: 100%;
}

.form-field--events .interface-select__summary::after {
    margin-left: auto;
}

.interface-select__summary.form-field__input--placeholder::after {
    border-color: var(--text-tertiary);
}

.interface-select[open] .interface-select__summary::after {
    transform: rotate(-135deg);
}

.interface-select__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background:
        linear-gradient(var(--accent), var(--accent)) top left / var(--corner-size) var(--corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) top left / var(--corner-thickness) var(--corner-size) no-repeat,
        linear-gradient(var(--accent), var(--accent)) top right / var(--corner-size) var(--corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) top right / var(--corner-thickness) var(--corner-size) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom left / var(--corner-size) var(--corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom left / var(--corner-thickness) var(--corner-size) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom right / var(--corner-size) var(--corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom right / var(--corner-thickness) var(--corner-size) no-repeat,
        linear-gradient(175deg, rgba(12, 20, 38, 0.96), rgba(4, 10, 22, 0.98));
    background-repeat: no-repeat;
    border: 1px solid rgb(var(--accent-rgb) / 0.35);
    border-radius: 0;
    box-shadow: 0 -18px 38px rgba(4, 10, 24, 0.65);
    padding: 14px 16px;
    display: grid;
    gap: 10px;
    max-height: 290px;
    width: 233px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transform-origin: top left;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
}

details[data-select="vip-dropdown"] {
    position: relative;
    z-index: 60;
}

.form-field--events .interface-select__menu {
    left: 0;
    right: auto;
    transform-origin: top left;
    width: min(340px, calc(100vw - 32px));
    z-index: 160;
}

.interface-select[open] .interface-select__menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.interface-select[open].interface-select--booting .interface-select__menu {
    transition: none;
    animation: interfaceSelectMenuBoot 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.interface-select[open].interface-select--booting .interface-select__menu > .interface-select__option,
.interface-select[open].interface-select--booting .interface-select__menu > .interface-select__option-button {
    animation: interfaceSelectOptionBoot 230ms cubic-bezier(0.16, 1, 0.3, 1) 55ms both;
}

.interface-select--multi[open].interface-select--booting .interface-select__menu {
    animation-duration: 380ms;
}

.interface-select--multi[open].interface-select--booting .interface-select__menu > .interface-select__option:nth-child(-n + 4) {
    animation-delay: 70ms;
}

.interface-select--multi[open].interface-select--booting .interface-select__menu > .interface-select__option:nth-child(n + 5):nth-child(-n + 8) {
    animation-delay: 96ms;
}

.interface-select--multi[open].interface-select--booting .interface-select__menu > .interface-select__option:nth-child(n + 9) {
    animation-delay: 122ms;
}

.event-selector-block:has(.interface-select[open].interface-select--booting) {
    animation: eventContainerEngage 430ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.event-selector-block:has(.interface-select[open].interface-select--booting) .form-field__label {
    animation: eventLabelSignal 460ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.interface-select[open].interface-select--booting[data-motion-cycle="alternate"] .interface-select__menu {
    animation-name: interfaceSelectMenuBootReplay;
}

.interface-select[open].interface-select--booting[data-motion-cycle="alternate"] .interface-select__menu > .interface-select__option,
.interface-select[open].interface-select--booting[data-motion-cycle="alternate"] .interface-select__menu > .interface-select__option-button {
    animation-name: interfaceSelectOptionBootReplay;
}

.event-selector-block:has(.interface-select[open].interface-select--booting[data-motion-cycle="alternate"]) {
    animation-name: eventContainerEngageReplay;
}

.event-selector-block:has(.interface-select[open].interface-select--booting[data-motion-cycle="alternate"]) .form-field__label {
    animation-name: eventLabelSignalReplay;
}

@keyframes interfaceSelectMenuBoot {
    0% {
        opacity: 0;
        transform: translate3d(0, 9px, 0) scale3d(0.975, 0.76, 1);
    }

    52% {
        opacity: 1;
        transform: translate3d(0, -1px, 0) scale3d(1.004, 1.025, 1);
    }

    76% {
        transform: translate3d(0, 1px, 0) scale3d(0.998, 0.99, 1);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
}

@keyframes interfaceSelectMenuBootReplay {
    0% {
        opacity: 0;
        transform: translate3d(0, 9px, 0) scale3d(0.975, 0.76, 1);
    }

    52% {
        opacity: 1;
        transform: translate3d(0, -1px, 0) scale3d(1.004, 1.025, 1);
    }

    76% {
        transform: translate3d(0, 1px, 0) scale3d(0.998, 0.99, 1);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
}

@keyframes interfaceSelectOptionBoot {
    0% {
        opacity: 0;
        transform: translate3d(-7px, 4px, 0) scale3d(0.985, 0.985, 1);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
}

@keyframes interfaceSelectOptionBootReplay {
    0% {
        opacity: 0;
        transform: translate3d(-7px, 4px, 0) scale3d(0.985, 0.985, 1);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
}

@keyframes eventContainerEngage {
    0% {
        transform: translate3d(0, 3px, 0) scale3d(0.994, 0.994, 1);
    }

    48% {
        transform: translate3d(0, -1px, 0) scale3d(1.003, 1.003, 1);
    }

    100% {
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
}

@keyframes eventContainerEngageReplay {
    0% {
        transform: translate3d(0, 3px, 0) scale3d(0.994, 0.994, 1);
    }

    48% {
        transform: translate3d(0, -1px, 0) scale3d(1.003, 1.003, 1);
    }

    100% {
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
}

@keyframes eventLabelSignal {
    0% {
        opacity: 0.72;
        letter-spacing: 0.13em;
    }

    52% {
        opacity: 1;
        letter-spacing: 0.18em;
    }

    100% {
        opacity: 1;
        letter-spacing: 0.16em;
    }
}

@keyframes eventLabelSignalReplay {
    0% {
        opacity: 0.72;
        letter-spacing: 0.13em;
    }

    52% {
        opacity: 1;
        letter-spacing: 0.18em;
    }

    100% {
        opacity: 1;
        letter-spacing: 0.16em;
    }
}

body.quality-no-ui-animations .interface-select__menu,
body.quality-no-ui-animations .interface-select__menu > .interface-select__option,
body.quality-no-ui-animations .interface-select__menu > .interface-select__option-button,
body.quality-no-ui-animations .interface-select__summary::after,
body.quality-no-ui-animations .event-selector-block,
body.quality-no-ui-animations .event-selector-block .form-field__label {
    animation: none !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .interface-select__menu,
    .interface-select__menu > .interface-select__option,
    .interface-select__menu > .interface-select__option-button,
    .interface-select__summary::after,
    .event-selector-block,
    .event-selector-block .form-field__label {
        animation: none !important;
        transition: none !important;
    }
}

.interface-select__option {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    width: 100%;
}

.interface-select__option-label {
    flex: 1;
    display: block;
}

.interface-select__option--checkbox {
    position: relative;
    padding: 12px 14px;
    --button-background: linear-gradient(180deg, rgba(8, 14, 28, 0.72), rgba(4, 10, 22, 0.82));
    --button-border-color: rgba(95, 160, 230, 0.28);
    --button-accent: rgba(127, 227, 255, 0.38);
    box-shadow: inset 0 0 0 1px rgba(20, 36, 64, 0.35);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease,
        background-size 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.interface-select__option--checkbox::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(127, 227, 255, 0.2), transparent 48%),
        radial-gradient(circle at 80% 80%, rgba(120, 160, 255, 0.12), transparent 55%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.interface-select__option--checkbox:hover,
.interface-select__option--checkbox:focus-within {
    border-color: rgba(127, 227, 255, 0.5);
    box-shadow: inset 0 0 0 1px rgba(127, 227, 255, 0.22), 0 10px 22px rgba(5, 10, 24, 0.45);
    color: var(--text-primary);
}

.interface-select__option--checkbox:hover::before,
.interface-select__option--checkbox:focus-within::before {
    opacity: 1;
}

.interface-select__option--checkbox.interface-select__option--active {
    border-color: rgba(127, 227, 255, 0.68);
    background: linear-gradient(180deg, rgba(12, 22, 44, 0.92), rgba(6, 14, 32, 0.94));
    box-shadow: inset 0 0 0 1px rgba(127, 227, 255, 0.32), inset 0 0 22px rgba(127, 227, 255, 0.12),
        0 16px 32px rgba(4, 10, 24, 0.55);
    color: var(--accent);
    --corner-fill-size: 100%;
    --corner-line-thickness: 4px;
}

.interface-select__option--checkbox.interface-select__option--active::before {
    opacity: 1;
}

.interface-select__option--checkbox.interface-select__option--active .interface-select__option-label {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(127, 227, 255, 0.26);
}

.interface-select__option:hover {
    color: var(--text-primary);
}

.interface-select__option--checkbox input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    margin-right: 12px;
    border: 1px solid rgba(95, 160, 230, 0.45);
    background: rgba(6, 12, 24, 0.88);
    display: grid;
    place-items: center;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.interface-select__option--checkbox input[type="checkbox"]::after {
    content: '';
    width: 10px;
    height: 10px;
    clip-path: polygon(14% 44%, 0% 63%, 43% 100%, 100% 18%, 80% 0%, 40% 62%);
    background: transparent;
    transition: background 0.2s ease;
}

.interface-select__option--checkbox input[type="checkbox"]:checked {
    border-color: rgba(127, 227, 255, 0.8);
    background: rgba(20, 36, 64, 0.95);
    box-shadow: 0 0 14px rgba(127, 227, 255, 0.25);
}

.interface-select__option--checkbox input[type="checkbox"]:checked::after {
    background: var(--accent);
}

.interface-select__option--checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.interface-select__option span {
    flex: 1;
}

.interface-select--single .interface-select__menu {
    gap: 6px;
}

.interface-select__menu > [hidden] {
    display: none !important;
}

.interface-select__option-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    --button-background: rgba(6, 12, 24, 0.85);
    --button-border-color: rgba(95, 160, 230, 0.35);
    color: var(--text-secondary);
    font-size: 11px;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.interface-select__option-button:hover,
.interface-select__option-button:focus-visible {
    color: var(--text-primary);
    --button-background: rgba(30, 60, 110, 0.24);
    outline: none;
    --button-scale: 1.02;
    --button-raise: -1px;
    --button-corner-size: 14px;
    --corner-thickness: 3px;
}

.interface-select__option-button--active {
    --button-background: rgba(20, 36, 64, 0.95);
    --button-border-color: rgba(127, 227, 255, 0.4);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(127, 227, 255, 0.4);
}

.interface-select__option-button--disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.interface-select__option-button--condition {
    cursor: help;
}

.interface-select__option-button:active {
    --button-scale: 0.97;
    --button-raise: 0px;
}

.biome-option__icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(127, 227, 255, 0.35));
    transition: filter 0.2s ease, opacity 0.2s ease;
}

details[data-select="biome-dropdown"] .interface-select__summary .biome-option__icon {
    width: 28px;
    height: 28px;
}

.biome-option__icon--hidden {
    display: none;
}

.biome-option__label {
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
    text-transform: inherit;
    letter-spacing: inherit;
}

.interface-select__option-button--active .biome-option__icon {
    filter: drop-shadow(0 0 10px rgba(127, 227, 255, 0.45));
}

.interface-select__option-button--disabled .biome-option__icon,
.interface-select__option-button[disabled] .biome-option__icon {
    filter: grayscale(100%) brightness(0.55);
    opacity: 0.55;
}

.form-field--select select.form-field__input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background: linear-gradient(165deg, rgba(16, 28, 52, 0.88), rgba(4, 10, 22, 0.94));
    box-shadow: inset 0 0 18px rgba(60, 120, 200, 0.18);
    cursor: pointer;
}

.form-field__select-shell::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 18px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.form-field__select-shell--custom::after {
    content: none;
}

.form-field__select-shell .interface-select__summary {
    width: 100%;
    justify-content: space-between;
}

.form-field__select-shell .interface-select__summary::after {
    margin-left: auto;
}

#biome-dropdown.form-field__input {
    padding-right: 60px;
}

.form-field--select:focus-within .form-field__select-shell::after {
    border-color: var(--accent-strong);
    transform: translateY(-50%) rotate(225deg);
}

select.form-field__input option {
    background-color: #050913;
    color: var(--text-primary);
}

.form-field__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(127, 227, 255, 0.25);
}

.form-field--toggle {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.toggle {
    position: relative;
    --toggle-inset: 4px;
    --toggle-thumb-size: 24px;
    width: clamp(60px, 7.5vw, 74px);
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    --button-background: linear-gradient(96deg, rgba(16, 30, 52, 0.95), rgba(8, 16, 30, 0.92));
    --button-accent: rgba(127, 227, 255, 0.45);
    box-shadow: inset 0 0 12px rgba(100, 180, 255, 0.15);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.toggle:hover,
.toggle:focus-within {
    border-color: var(--accent);
    box-shadow: inset 0 0 18px rgba(127, 227, 255, 0.22), 0 0 0 2px rgba(127, 227, 255, 0.2);
}

.toggle__input {
    appearance: none;
    position: absolute;
    inset: 0;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.toggle__track {
    position: absolute;
    inset: var(--toggle-inset);
    border-radius: 0;
    background: rgba(12, 24, 40, 0.88);
    border: 1px solid rgba(127, 227, 255, 0.28);
    box-shadow: inset 0 0 12px rgba(127, 227, 255, 0.16);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.toggle:hover .toggle__track,
.toggle:focus-within .toggle__track {
    border-color: rgba(127, 227, 255, 0.55);
    box-shadow: inset 0 0 16px rgba(127, 227, 255, 0.24);
}

.toggle__thumb {
    position: absolute;
    width: var(--toggle-thumb-size);
    height: calc(100% - (var(--toggle-inset) * 2));
    border-radius: 0;
    background: linear-gradient(160deg, rgba(127, 227, 255, 0.95), rgba(98, 210, 255, 0.9));
    top: var(--toggle-inset);
    left: var(--toggle-inset);
    transition: left 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
}

.toggle:hover .toggle__thumb {
    background: linear-gradient(160deg, rgba(160, 240, 255, 0.96), rgba(120, 230, 255, 0.92));
    box-shadow: 0 10px 20px rgba(5, 15, 32, 0.55);
}

.toggle:active .toggle__thumb {
    transform: scale(0.96);
}

.toggle__input:focus-visible + .toggle__track {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.toggle__input:checked + .toggle__track {
    background: rgba(22, 42, 64, 0.92);
    border-color: rgba(127, 227, 255, 0.45);
    box-shadow: inset 0 0 16px rgba(127, 227, 255, 0.24);
}

.toggle__input:checked + .toggle__track + .toggle__thumb {
    left: calc(100% - var(--toggle-inset) - var(--toggle-thumb-size));
    background: linear-gradient(160deg, rgba(165, 255, 255, 0.95), rgba(127, 227, 255, 0.88));
}

.toggle--dev-biomes {
    width: clamp(68px, 8vw, 82px);
}

.credits-text {
    text-align: center;
}

.quick-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.control-section--luck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 10px 12px;
    padding: clamp(12px, 1.8vw, 16px);
}

.control-section--luck > .roll-console__module-heading,
.control-section--luck > .form-field--select,
.control-section--luck > #dave-luck-wrapper {
    grid-column: 1 / -1;
}

.control-section--luck > .form-field--toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    min-height: 48px;
    padding: 8px 10px;
    background: linear-gradient(180deg, rgba(8, 16, 30, 0.76), rgba(4, 10, 20, 0.86));
    border: 1px solid rgb(var(--accent-rgb) / 0.2);
    box-shadow: inset 0 0 12px rgb(var(--accent-rgb) / 0.12);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.control-section--luck > .form-field--toggle:hover,
.control-section--luck > .form-field--toggle:focus-within {
    border-color: rgb(var(--accent-rgb) / 0.46);
    background: linear-gradient(180deg, rgb(var(--accent-rgb) / 0.12), rgba(4, 10, 20, 0.9));
    box-shadow: inset 0 0 18px rgb(var(--accent-rgb) / 0.15), 0 0 14px rgb(var(--accent-rgb) / 0.08);
    transform: translateY(-1px);
}

.control-section--luck > .form-field--toggle:has(.toggle__input:checked) {
    border-color: rgba(158, 255, 170, 0.58);
    background:
        radial-gradient(circle at 0 50%, rgba(127, 255, 152, 0.14), transparent 46%),
        linear-gradient(180deg, rgba(10, 33, 27, 0.88), rgba(4, 17, 16, 0.92));
    box-shadow: inset 0 0 20px rgba(112, 255, 157, 0.12), 0 0 14px rgba(112, 255, 157, 0.08);
}

.control-section--luck > .form-field--toggle:has(.toggle__input:checked) .form-field__label {
    color: #caffd4;
}

.control-section--luck .form-field__label {
    white-space: nowrap;
    line-height: 1.3;
    font-size: clamp(10.5px, 1.2vw, 12px);
    letter-spacing: 0.12em;
}

.control-section--luck > .form-field--toggle .toggle {
    margin-left: 8px;
    flex-shrink: 0;
}

.control-section--run-dev,
.control-section--run-main {
    gap: 10px;
    padding: clamp(12px, 1.8vw, 16px);
}

.control-section--run-dev .form-field--toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "label toggle"
        "hint toggle";
    align-items: start;
    column-gap: 12px;
    row-gap: 4px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(8, 16, 30, 0.74), rgba(4, 10, 20, 0.86));
    border: 1px solid rgb(var(--accent-rgb) / 0.2);
    box-shadow: inset 0 0 12px rgb(var(--accent-rgb) / 0.12);
}

.control-section--run-dev .form-field__label {
    grid-area: label;
}

.control-section--run-dev .form-field--toggle > p {
    grid-area: hint;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1.45;
    color: var(--text-tertiary);
}

.control-section--run-dev .toggle {
    grid-area: toggle;
    align-self: center;
    flex-shrink: 0;
    margin-left: auto;
}

.control-section--run-main .form-field__combo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.control-section--run-main .form-field__combo .interface-button {
    min-height: 42px;
    padding-inline: 14px;
}

.potion-mode {
    display: grid;
    gap: 8px;
}

.potion-mode[hidden] {
    display: none;
}

.potion-mode__switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.potion-mode__button {
    min-height: 42px;
    justify-content: center;
    color: var(--text-secondary);
}

.potion-mode__button--active {
    --button-background: linear-gradient(135deg, rgb(var(--accent-rgb) / 0.25), rgba(8, 18, 36, 0.96));
    --button-border-color: rgb(var(--accent-rgb) / 0.72);
    color: var(--accent-strong);
    box-shadow: inset 0 0 18px rgb(var(--accent-rgb) / 0.16), 0 0 16px rgb(var(--accent-rgb) / 0.12);
}

.simulation-method {
    display: grid;
    gap: 12px;
}

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

.simulation-method__button {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 8px;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 10px 12px;
    justify-content: stretch;
    text-align: left;
    color: var(--text-secondary);
    line-height: 1.35;
    overflow: hidden;
}

.simulation-method__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: rgb(var(--accent-rgb) / 0.76);
    background: rgb(var(--accent-rgb) / 0.08);
    border: 1px solid rgb(var(--accent-rgb) / 0.24);
    box-shadow: inset 0 0 12px rgb(var(--accent-rgb) / 0.1);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.simulation-method__copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.simulation-method__copy strong {
    color: var(--text-primary);
    font-size: 11px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.simulation-method__copy small {
    color: var(--text-tertiary);
    font-size: 8px;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-transform: uppercase;
}

.simulation-method__indicator {
    width: 6px;
    height: 6px;
    background: rgb(var(--accent-rgb) / 0.2);
    box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.05);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.simulation-method__button--active {
    --button-background: linear-gradient(135deg, rgb(var(--accent-rgb) / 0.25), rgba(8, 18, 36, 0.96));
    --button-border-color: rgb(var(--accent-rgb) / 0.72);
    color: var(--accent-strong);
    box-shadow: inset 0 0 18px rgb(var(--accent-rgb) / 0.16), 0 0 16px rgb(var(--accent-rgb) / 0.12);
}

.simulation-method__button--active .simulation-method__icon {
    color: var(--accent-strong);
    border-color: rgb(var(--accent-rgb) / 0.62);
    background: rgb(var(--accent-rgb) / 0.16);
    box-shadow: inset 0 0 14px rgb(var(--accent-rgb) / 0.2), 0 0 12px rgb(var(--accent-rgb) / 0.13);
}

.simulation-method__button--active .simulation-method__copy strong {
    color: var(--accent-strong);
}

.simulation-method__button--active .simulation-method__indicator {
    background: var(--accent-strong);
    box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.13), 0 0 10px rgb(var(--accent-rgb) / 0.75);
    animation: roll-console-status-pulse 1.8s ease-in-out infinite;
}

.simulation-method__button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.roll-console__header {
    position: relative;
    padding-bottom: 16px;
}

.roll-console__eyebrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
    color: rgb(var(--accent-rgb) / 0.66);
    font-size: 8px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.roll-console__eyebrow span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.roll-console__eyebrow span:last-child {
    color: var(--text-tertiary);
}

.roll-console__module {
    --roll-console-corner-size: 12px;
    --roll-console-corner-thickness: 2px;
    position: relative;
    padding: 14px;
    background:
        linear-gradient(var(--accent), var(--accent)) top left / var(--roll-console-corner-size) var(--roll-console-corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) top left / var(--roll-console-corner-thickness) var(--roll-console-corner-size) no-repeat,
        linear-gradient(var(--accent), var(--accent)) top right / var(--roll-console-corner-size) var(--roll-console-corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) top right / var(--roll-console-corner-thickness) var(--roll-console-corner-size) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom left / var(--roll-console-corner-size) var(--roll-console-corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom left / var(--roll-console-corner-thickness) var(--roll-console-corner-size) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom right / var(--roll-console-corner-size) var(--roll-console-corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom right / var(--roll-console-corner-thickness) var(--roll-console-corner-size) no-repeat,
        linear-gradient(90deg, rgb(var(--accent-rgb) / 0.035) 1px, transparent 1px) 0 0 / 18px 18px,
        linear-gradient(0deg, rgb(var(--accent-rgb) / 0.025) 1px, transparent 1px) 0 0 / 18px 18px,
        linear-gradient(155deg, rgba(11, 23, 43, 0.92), rgba(4, 10, 22, 0.96));
    border: 1px solid rgb(var(--accent-rgb) / 0.23);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        inset 0 0 24px rgb(var(--accent-rgb) / 0.055);
}

.roll-console__module::before,
.roll-console__module::after {
    content: none;
}

.roll-console__module-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.roll-console__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    color: var(--accent-strong);
    background: rgb(var(--accent-rgb) / 0.1);
    border: 1px solid rgb(var(--accent-rgb) / 0.4);
    font-size: 9px;
    letter-spacing: 0.08em;
    box-shadow: inset 0 0 12px rgb(var(--accent-rgb) / 0.1);
}

.roll-console__module-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.roll-console__module-hint {
    color: var(--text-tertiary);
    font-size: 8px;
    letter-spacing: 0.07em;
    line-height: 1.45;
    text-transform: uppercase;
}

.roll-console__module-heading--compact {
    width: 100%;
}

.roll-console__armed {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: rgba(191, 255, 181, 0.76);
    font-size: 8px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.roll-console__armed-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    background: #aaff7a;
    box-shadow: 0 0 9px rgba(170, 255, 122, 0.78);
    animation: roll-console-status-pulse 1.8s ease-in-out infinite;
}

.roll-console__armed[data-state="rolling"] {
    color: var(--accent-strong);
}

.roll-console__armed[data-state="rolling"] .roll-console__armed-dot {
    background: var(--accent-strong);
    box-shadow: 0 0 9px rgb(var(--accent-rgb) / 0.82);
}

.roll-console__armed[data-state="paused"],
.roll-console__armed[data-state="cutscene"] {
    color: #ffe39b;
}

.roll-console__armed[data-state="paused"] .roll-console__armed-dot,
.roll-console__armed[data-state="cutscene"] .roll-console__armed-dot {
    background: #ffd76a;
    box-shadow: 0 0 9px rgba(255, 215, 106, 0.82);
}

.roll-console__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    margin-top: -4px;
    padding: 0 12px;
    text-align: center;
}

.roll-console__footer .bulletClass {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
}

.roll-console__footer .feed__bulletRest-label {
    position: relative;
    display: inline-block;
}

@keyframes roll-console-status-pulse {
    0%,
    100% { opacity: 0.58; transform: scale(0.86); }
    50% { opacity: 1; transform: scale(1); }
}

body.reduce-motion .simulation-method__indicator,
body.reduce-motion .roll-console__armed-dot,
body.quality-no-ui-animations .simulation-method__indicator,
body.quality-no-ui-animations .roll-console__armed-dot {
    animation: none !important;
}

[data-feature-boot] {
    --feature-boot-delay: 0ms;
    --feature-boot-duration: 400ms;
    --feature-boot-content-duration: 270ms;
    --feature-boot-content-delay: 72ms;
    --feature-boot-offset: 7px;
    --feature-boot-scale-x: 0.986;
    --feature-boot-scale-y: 0.84;
    --feature-boot-origin: center top;
    --feature-shutdown-duration: 300ms;
    --feature-shutdown-offset: -6px;
    position: relative;
    transform-origin: var(--feature-boot-origin);
}

[data-feature-boot="panel"] {
    --feature-boot-duration: 560ms;
    --feature-boot-content-duration: 360ms;
    --feature-boot-content-delay: 104ms;
    --feature-boot-offset: 12px;
    --feature-boot-scale-x: 0.982;
    --feature-boot-scale-y: 0.91;
    --feature-shutdown-duration: 410ms;
    --feature-shutdown-offset: -10px;
}

[data-feature-boot="compact"] {
    --feature-boot-duration: 340ms;
    --feature-boot-content-duration: 220ms;
    --feature-boot-content-delay: 54ms;
    --feature-boot-offset: 4px;
    --feature-boot-scale-x: 0.992;
    --feature-boot-scale-y: 0.74;
    --feature-shutdown-duration: 260ms;
    --feature-shutdown-offset: -4px;
}

[data-feature-boot="row"] {
    --feature-boot-duration: 400ms;
    --feature-boot-content-duration: 250ms;
    --feature-boot-content-delay: 68ms;
    --feature-boot-origin: left top;
    --feature-shutdown-duration: 310ms;
}

[data-feature-boot].feature-boot--active {
    overflow: clip;
    will-change: opacity, transform;
    animation: featureContainerBoot var(--feature-boot-duration) cubic-bezier(0.14, 0.82, 0.22, 1) var(--feature-boot-delay) both;
}

[data-feature-boot].feature-boot--active > * {
    will-change: opacity, transform;
    animation: featureContainerContent
        var(--feature-boot-content-duration)
        cubic-bezier(0.18, 0.78, 0.22, 1)
        calc(var(--feature-boot-delay) + var(--feature-boot-content-delay))
        both;
}

[data-feature-boot].feature-boot--active::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgb(var(--accent-rgb) / 0.64);
    background: linear-gradient(
        90deg,
        rgb(var(--accent-rgb) / 0.16),
        transparent 16%,
        transparent 84%,
        rgb(var(--accent-rgb) / 0.16)
    );
    box-shadow:
        inset 0 0 0 1px rgb(var(--accent-rgb) / 0.12),
        inset 0 0 24px rgb(var(--accent-rgb) / 0.16);
    opacity: 0;
    transform: scale3d(0.97, 0.64, 1);
    transform-origin: center;
    will-change: opacity, transform;
    animation: featureContainerFrame var(--feature-boot-duration) ease-out var(--feature-boot-delay) both;
}

[data-feature-boot].feature-boot--active::after {
    content: "";
    position: absolute;
    z-index: 4;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgb(var(--accent-rgb) / 0.08) 18%,
            rgb(var(--accent-rgb) / 0.48) 50%,
            rgb(var(--accent-rgb) / 0.08) 82%,
            transparent 100%
        ) center / 100% 1px no-repeat,
        linear-gradient(
            180deg,
            transparent 0%,
            transparent 40%,
            rgb(var(--accent-rgb) / 0.05) 45%,
            rgb(var(--accent-rgb) / 0.28) 50%,
            rgb(var(--accent-rgb) / 0.06) 55%,
            transparent 61%,
            transparent 100%
        );
    opacity: 0;
    transform: translate3d(0, -105%, 0);
    will-change: opacity, transform;
    animation: featureContainerSweep var(--feature-boot-duration) ease-out var(--feature-boot-delay) both;
}

@keyframes featureContainerBoot {
    0% {
        opacity: 0;
        transform: translate3d(0, var(--feature-boot-offset), 0)
            scale3d(var(--feature-boot-scale-x), var(--feature-boot-scale-y), 1);
    }

    18% {
        opacity: 0.28;
    }

    44% {
        opacity: 1;
        transform: translate3d(0, -1px, 0) scale3d(1.004, 1.018, 1);
    }

    58% {
        opacity: 0.9;
        transform: translate3d(0, 0, 0) scale3d(0.998, 0.995, 1);
    }

    76% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale3d(1.001, 1.004, 1);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
}

@keyframes featureContainerContent {
    0% {
        opacity: 0;
        transform: translate3d(0, 5px, 0) scale3d(0.992, 0.992, 1);
    }

    38% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
}

@keyframes featureContainerFrame {
    0% {
        opacity: 0;
        transform: scale3d(0.97, 0.64, 1);
    }

    32% {
        opacity: 0.82;
        transform: scale3d(1.004, 1.015, 1);
    }

    55% {
        opacity: 0.24;
        transform: scale3d(0.999, 0.997, 1);
    }

    74% {
        opacity: 0.58;
    }

    100% {
        opacity: 0;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes featureContainerSweep {
    0% {
        opacity: 0;
        transform: translate3d(0, -105%, 0);
    }

    24% {
        opacity: 0.82;
    }

    76% {
        opacity: 0.46;
    }

    100% {
        opacity: 0;
        transform: translate3d(0, 105%, 0);
    }
}

[data-feature-boot].feature-shutdown--active {
    overflow: clip;
    pointer-events: none;
    will-change: opacity, transform;
    animation:
        featureContainerShutdown
        var(--feature-shutdown-duration)
        cubic-bezier(0.55, 0.06, 0.68, 0.19)
        both;
}

[data-feature-boot].feature-shutdown--active > * {
    will-change: opacity, transform;
    animation:
        featureContainerContentShutdown
        var(--feature-shutdown-duration)
        cubic-bezier(0.55, 0.06, 0.68, 0.19)
        both;
}

[data-feature-boot].feature-shutdown--active::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgb(var(--accent-rgb) / 0.72);
    background: linear-gradient(
        90deg,
        rgb(var(--accent-rgb) / 0.18),
        transparent 18%,
        transparent 82%,
        rgb(var(--accent-rgb) / 0.18)
    );
    box-shadow:
        inset 0 0 0 1px rgb(var(--accent-rgb) / 0.16),
        inset 0 0 26px rgb(var(--accent-rgb) / 0.22);
    opacity: 0;
    transform-origin: center;
    will-change: opacity, transform;
    animation:
        featureContainerFrameShutdown
        var(--feature-shutdown-duration)
        ease-in
        both;
}

[data-feature-boot].feature-shutdown--active::after {
    content: "";
    position: absolute;
    z-index: 4;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgb(var(--accent-rgb) / 0.08) 18%,
            rgb(var(--accent-rgb) / 0.52) 50%,
            rgb(var(--accent-rgb) / 0.08) 82%,
            transparent 100%
        ) center / 100% 1px no-repeat,
        linear-gradient(
            180deg,
            transparent 0%,
            transparent 42%,
            rgb(var(--accent-rgb) / 0.08) 47%,
            rgb(var(--accent-rgb) / 0.34) 50%,
            rgb(var(--accent-rgb) / 0.08) 53%,
            transparent 58%,
            transparent 100%
        );
    opacity: 0;
    transform: translate3d(0, 105%, 0);
    will-change: opacity, transform;
    animation:
        featureContainerSweepShutdown
        var(--feature-shutdown-duration)
        ease-in
        both;
}

@keyframes featureContainerShutdown {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }

    24% {
        opacity: 1;
        transform: translate3d(0, 1px, 0) scale3d(1.002, 1.012, 1);
    }

    58% {
        opacity: 0.62;
        transform: translate3d(0, -2px, 0) scale3d(0.996, 0.74, 1);
    }

    100% {
        opacity: 0;
        transform: translate3d(0, var(--feature-shutdown-offset), 0) scale3d(0.978, 0.08, 1);
    }
}

@keyframes featureContainerContentShutdown {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }

    42% {
        opacity: 0.58;
        transform: translate3d(0, -1px, 0) scale3d(0.994, 0.97, 1);
    }

    100% {
        opacity: 0;
        transform: translate3d(0, -4px, 0) scale3d(0.986, 0.84, 1);
    }
}

@keyframes featureContainerFrameShutdown {
    0% {
        opacity: 0;
        transform: scale3d(1, 1, 1);
    }

    34% {
        opacity: 0.84;
        transform: scale3d(1.004, 0.94, 1);
    }

    100% {
        opacity: 0;
        transform: scale3d(0.96, 0.08, 1);
    }
}

@keyframes featureContainerSweepShutdown {
    0% {
        opacity: 0;
        transform: translate3d(0, 105%, 0);
    }

    28% {
        opacity: 0.78;
    }

    100% {
        opacity: 0;
        transform: translate3d(0, -105%, 0);
    }
}

body.quality-no-ui-animations [data-feature-boot].feature-boot--active,
body.quality-no-ui-animations [data-feature-boot].feature-boot--active::before,
body.quality-no-ui-animations [data-feature-boot].feature-boot--active::after,
body.quality-no-ui-animations [data-feature-boot].feature-boot--active > *,
body.quality-no-ui-animations [data-feature-boot].feature-shutdown--active,
body.quality-no-ui-animations [data-feature-boot].feature-shutdown--active::before,
body.quality-no-ui-animations [data-feature-boot].feature-shutdown--active::after,
body.quality-no-ui-animations [data-feature-boot].feature-shutdown--active > * {
    opacity: 1;
    transform: none;
    animation: none !important;
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    [data-feature-boot].feature-boot--active,
    [data-feature-boot].feature-boot--active::before,
    [data-feature-boot].feature-boot--active::after,
    [data-feature-boot].feature-boot--active > *,
    [data-feature-boot].feature-shutdown--active,
    [data-feature-boot].feature-shutdown--active::before,
    [data-feature-boot].feature-shutdown--active::after,
    [data-feature-boot].feature-shutdown--active > * {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}

.multi-potion-panel {
    display: grid;
    gap: 14px;
    padding: clamp(12px, 1.8vw, 16px);
    background: linear-gradient(180deg, rgb(var(--accent-rgb) / 0.1), rgba(4, 10, 20, 0.86));
    border: 1px solid rgb(var(--accent-rgb) / 0.26);
    box-shadow: inset 0 0 18px rgb(var(--accent-rgb) / 0.08);
}

.multi-potion-panel[hidden] {
    display: none;
}

.potion-single-control[hidden] {
    display: none !important;
}

.multi-potion-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.multi-potion-panel__title,
.multi-potion-panel__hint,
.multi-potion-panel__total {
    margin: 0;
}

.multi-potion-panel__title {
    color: var(--accent-strong);
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.multi-potion-panel__hint {
    max-width: 720px;
    margin-top: 6px;
    color: var(--text-tertiary);
    font-size: 11px;
    line-height: 1.5;
}

.multi-potion-panel__total {
    flex: 0 0 auto;
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.multi-potion-panel__total strong {
    color: var(--accent-strong);
}

.multi-potion-stack-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    background: rgba(4, 10, 20, 0.66);
    border: 1px solid rgb(var(--accent-rgb) / 0.22);
}

.multi-potion-stack-option__label {
    display: block;
    color: var(--text-primary);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.multi-potion-stack-option small {
    display: block;
    margin-top: 4px;
    color: var(--text-tertiary);
    font-size: 10px;
    line-height: 1.45;
}

.multi-potion-stack-summary {
    margin: 0;
    padding: 9px 11px;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.55;
    background: rgb(var(--accent-rgb) / 0.07);
    border-left: 2px solid rgb(var(--accent-rgb) / 0.62);
}

.multi-potion-stack-summary[hidden] {
    display: none;
}

.multi-potion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}

.multi-potion-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(82px, 0.36fr);
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 8px 10px;
    background: rgba(4, 10, 20, 0.66);
    border: 1px solid rgb(var(--accent-rgb) / 0.18);
}

.multi-potion-field > span {
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
}

.multi-potion-field small {
    display: block;
    margin-top: 3px;
    color: var(--text-tertiary);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.control-section--run-main .multi-potion-field__input {
    width: 100%;
    min-width: 0;
    padding: 8px 9px;
    text-align: right;
}

body.potion-mode--multiple #luck-preset-panel,
body.potion-mode--multiple #roll-preset-panel {
    opacity: 0.42;
    pointer-events: none;
}

body.potion-mode--multiple #device-buff-preset-panel .preset-button__actions {
    display: none;
}

#device-buff-preset-panel button.device-preset-button--selected,
#device-buff-preset-panel button.device-preset-button--selected:hover,
#device-buff-preset-panel button.device-preset-button--selected:focus-visible {
    --button-background: rgba(27, 65, 82, 0.96);
    --button-border-color: rgb(var(--accent-rgb) / 0.9);
    background: rgba(27, 65, 82, 0.96);
    border-color: rgb(var(--accent-rgb) / 0.9);
    color: var(--accent-strong);
    animation: none;
    box-shadow: none;
    transform: none;
}

.control-section--run-main .form-field__input:not(.interface-select__summary):not(.form-field__input--native) {
    padding: 10px 12px;
}

.control-section--run-main .interface-select__summary {
    min-height: 42px;
    padding: 10px 14px;
}

.control-section--run-main .quick-action-group {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
    gap: 8px;
}

.control-section--run-main .quick-action-group .interface-button {
    width: 100%;
    min-height: 42px;
    padding-inline: 12px;
    justify-content: center;
}

.parameter-console {
    --parameter-corner-size: 14px;
    --parameter-corner-thickness: 2px;
}

.parameter-console__header {
    position: relative;
    padding-bottom: 16px;
}

.parameter-console__eyebrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: rgb(var(--accent-rgb) / 0.7);
    font-size: 8px;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.parameter-console__eyebrow span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(184, 255, 207, 0.76);
}

.parameter-console__eyebrow span:last-child::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    background: #78ffab;
    box-shadow: 0 0 9px rgba(120, 255, 171, 0.74);
}

.control-section--run-dev.parameter-console__dev-access {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background:
        linear-gradient(90deg, rgba(178, 113, 255, 0.08), transparent 42%),
        linear-gradient(155deg, rgba(14, 18, 40, 0.94), rgba(5, 10, 22, 0.96));
    border: 1px solid rgba(178, 113, 255, 0.3);
    box-shadow: inset 0 0 18px rgba(178, 113, 255, 0.07);
}

.parameter-console__dev-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #d6b1ff;
    background: rgba(134, 73, 205, 0.14);
    border: 1px solid rgba(190, 132, 255, 0.38);
    box-shadow: inset 0 0 14px rgba(178, 113, 255, 0.12);
}

.control-section--run-dev.parameter-console__dev-access .form-field--toggle {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.control-section--run-dev.parameter-console__dev-access .form-field__label {
    color: #e0c7ff;
}

.parameter-console__workspace {
    gap: 12px;
    padding: clamp(12px, 2vw, 18px);
    background:
        linear-gradient(90deg, rgb(var(--accent-rgb) / 0.027) 1px, transparent 1px) 0 0 / 20px 20px,
        linear-gradient(0deg, rgb(var(--accent-rgb) / 0.023) 1px, transparent 1px) 0 0 / 20px 20px,
        linear-gradient(160deg, rgba(9, 19, 37, 0.88), rgba(3, 9, 20, 0.94));
}

.parameter-console__module {
    position: relative;
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: clamp(13px, 2vw, 17px);
    background:
        linear-gradient(var(--accent), var(--accent)) top left / var(--parameter-corner-size) var(--parameter-corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) top left / var(--parameter-corner-thickness) var(--parameter-corner-size) no-repeat,
        linear-gradient(var(--accent), var(--accent)) top right / var(--parameter-corner-size) var(--parameter-corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) top right / var(--parameter-corner-thickness) var(--parameter-corner-size) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom left / var(--parameter-corner-size) var(--parameter-corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom left / var(--parameter-corner-thickness) var(--parameter-corner-size) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom right / var(--parameter-corner-size) var(--parameter-corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom right / var(--parameter-corner-thickness) var(--parameter-corner-size) no-repeat,
        linear-gradient(155deg, rgba(10, 22, 41, 0.95), rgba(4, 10, 21, 0.98));
    border: 1px solid rgb(var(--accent-rgb) / 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        inset 0 0 24px rgb(var(--accent-rgb) / 0.055);
}

.parameter-console__module-header {
    display: grid;
    grid-template-columns: 28px 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding-bottom: 13px;
    border-bottom: 1px solid rgb(var(--accent-rgb) / 0.16);
}

.parameter-console__module-index {
    color: rgb(var(--accent-rgb) / 0.54);
    font-size: 8px;
    letter-spacing: 0.1em;
}

.parameter-console__module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--accent-strong);
    background: rgb(var(--accent-rgb) / 0.1);
    border: 1px solid rgb(var(--accent-rgb) / 0.38);
    box-shadow: inset 0 0 14px rgb(var(--accent-rgb) / 0.12);
}

.parameter-console__module-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.parameter-console__module-copy h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 12px;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.parameter-console__module-copy > span {
    color: var(--text-tertiary);
    font-size: 8px;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-transform: uppercase;
}

.parameter-console__module .potion-mode {
    gap: 9px;
}

.parameter-console__module .potion-mode > .form-field__label {
    color: rgb(var(--accent-rgb) / 0.72);
    font-size: 9px;
}

.parameter-console__module .potion-mode__switch {
    gap: 10px;
}

.parameter-console__module .potion-mode__button {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 7px;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: 10px 12px;
    justify-content: stretch;
    text-align: left;
    overflow: hidden;
}

.potion-mode__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: rgb(var(--accent-rgb) / 0.7);
    background: rgb(var(--accent-rgb) / 0.07);
    border: 1px solid rgb(var(--accent-rgb) / 0.22);
}

.potion-mode__copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.potion-mode__copy strong {
    color: var(--text-primary);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.potion-mode__copy small {
    overflow: hidden;
    color: var(--text-tertiary);
    font-size: 7px;
    letter-spacing: 0.07em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.potion-mode__indicator {
    width: 7px;
    height: 7px;
    border: 1px solid rgb(var(--accent-rgb) / 0.42);
    background: transparent;
}

.potion-mode__button--active .potion-mode__icon {
    color: var(--accent-strong);
    background: rgb(var(--accent-rgb) / 0.14);
    border-color: rgb(var(--accent-rgb) / 0.54);
    box-shadow: 0 0 12px rgb(var(--accent-rgb) / 0.12);
}

.potion-mode__button--active .potion-mode__indicator {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    box-shadow: 0 0 9px rgb(var(--accent-rgb) / 0.84);
}

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

.parameter-console__single-fields > .form-field {
    gap: 9px;
    min-width: 0;
    padding: 11px;
    background:
        linear-gradient(145deg, rgb(var(--accent-rgb) / 0.07), transparent 52%),
        rgba(3, 9, 20, 0.74);
    border: 1px solid rgb(var(--accent-rgb) / 0.19);
    box-shadow: inset 0 0 14px rgb(var(--accent-rgb) / 0.04);
}

.parameter-console__single-fields > .form-field:hover,
.parameter-console__single-fields > .form-field:focus-within {
    border-color: rgb(var(--accent-rgb) / 0.4);
    box-shadow: inset 0 0 18px rgb(var(--accent-rgb) / 0.08);
}

.parameter-console__field-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.parameter-console__field-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: rgb(var(--accent-rgb) / 0.78);
    background: rgb(var(--accent-rgb) / 0.08);
    border: 1px solid rgb(var(--accent-rgb) / 0.2);
}

.parameter-console__module--environment .biome-selector-row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.85fr));
    align-items: end;
    gap: 10px;
}

.parameter-console__module--environment .biome-selector-row > .form-field {
    min-width: 0;
    padding: 10px;
    background: rgba(3, 9, 20, 0.7);
    border: 1px solid rgb(var(--accent-rgb) / 0.17);
}

.parameter-console__module--environment .event-selector-block {
    padding: 10px;
    background: rgba(3, 9, 20, 0.7);
    border: 1px solid rgb(var(--accent-rgb) / 0.17);
}

.parameter-console__module--environment .form-field__label {
    color: rgb(var(--accent-rgb) / 0.72);
    font-size: 9px;
}

.parameter-console__module--environment details[data-select="biome-other-dropdown"] .interface-select__summary {
    min-width: 0;
    gap: 6px;
    padding: 10px 8px;
    font-size: 10px;
    letter-spacing: 0.12em;
    overflow: hidden;
}

.parameter-console__module--environment details[data-select="biome-other-dropdown"] .interface-select__summary .biome-option__icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
}

.parameter-console__module--environment details[data-select="biome-other-dropdown"] .interface-select__summary .biome-option__label {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.parameter-console__module--environment details[data-select="biome-other-dropdown"] .interface-select__summary::after {
    width: 9px;
    height: 9px;
    margin-left: 0;
}

.parameter-console .multi-potion-panel {
    background:
        linear-gradient(145deg, rgb(var(--accent-rgb) / 0.08), transparent 46%),
        rgba(3, 9, 20, 0.78);
    border-color: rgb(var(--accent-rgb) / 0.22);
    box-shadow: inset 0 0 18px rgb(var(--accent-rgb) / 0.055);
}

.parameter-console__module--actions .quick-action-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.parameter-console__module--actions .quick-action-group .interface-button {
    display: flex;
    grid-column: auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    padding: 10px 12px;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-align: center;
}

.parameter-console__module--actions .quick-action-group .interface-button:nth-child(n + 5) {
    grid-column: auto;
}

.parameter-console__module--actions .quick-action-group__utilities {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: inherit;
}

.environment-shortcut__icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.parameter-console__module--actions .quick-action-group .interface-button > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: rgb(var(--accent-rgb) / 0.76);
    background: rgb(var(--accent-rgb) / 0.08);
    border: 1px solid rgb(var(--accent-rgb) / 0.2);
    flex: 0 0 26px;
}

.parameter-console__module--actions .quick-action-group .interface-button > span {
    flex: 0 1 auto;
    min-width: 0;
    line-height: 1.35;
    text-align: center;
}

.parameter-console__module--actions .quick-action-group .interface-button > span > [class*="sigil-outline-"] {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.015em;
    line-height: 1.2;
    -webkit-text-stroke-width: 1.35px;
    white-space: nowrap;
}

.parameter-console__module--actions .quick-action-group .interface-button > span > .sigil-outline-radiant-forest {
    white-space: normal;
    -webkit-text-stroke-width: 0.2px;
    text-transform: none;
}

.parameter-console__module--actions .parameter-console__action--roe {
    --button-border-color: rgba(191, 143, 255, 0.42);
    --button-background: linear-gradient(145deg, rgba(101, 55, 154, 0.16), rgba(5, 11, 23, 0.94));
}

.parameter-console__module--actions .parameter-console__action--roe > i {
    color: #d5b2ff;
    background: rgba(132, 78, 195, 0.12);
    border-color: rgba(191, 143, 255, 0.3);
}

.parameter-console__module--actions .parameter-console__action--reset {
    --button-border-color: rgba(255, 116, 130, 0.36);
    --button-background: linear-gradient(145deg, rgba(115, 32, 45, 0.13), rgba(13, 7, 16, 0.94));
}

.parameter-console__module--actions .parameter-console__action--reset > i {
    color: #ffc1c7;
    background: rgba(115, 32, 45, 0.12);
    border-color: rgba(255, 116, 130, 0.28);
}

@media (max-width: 760px) {
    .control-section--luck {
        grid-template-columns: 1fr;
    }

    .control-section--run-dev .form-field--toggle {
        grid-template-columns: 1fr;
        grid-template-areas:
            "label"
            "hint"
            "toggle";
    }

    .control-section--run-dev .toggle {
        margin-left: 0;
    }

    .control-section--run-dev.parameter-console__dev-access {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .parameter-console__dev-icon {
        width: 36px;
        height: 36px;
    }

    .parameter-console__single-fields,
    .parameter-console__module--environment .biome-selector-row {
        grid-template-columns: 1fr;
    }

    .parameter-console__module--actions .quick-action-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .parameter-console__module--actions .quick-action-group > .interface-button {
        flex-direction: column;
        gap: 6px;
        padding: 10px 8px;
    }

    .parameter-console__module--actions .quick-action-group .interface-button,
    .parameter-console__module--actions .quick-action-group .interface-button:nth-child(n + 5) {
        grid-column: auto;
    }

    .control-section--run-main .form-field__combo {
        grid-template-columns: 1fr;
    }

    .control-section--run-main .form-field__combo .interface-button {
        width: 100%;
    }

    .potion-mode__switch {
        grid-template-columns: 1fr;
    }

    .simulation-method__switch {
        grid-template-columns: 1fr;
    }

    .roll-console__module-heading--compact {
        flex-wrap: wrap;
    }

    .roll-console__armed {
        margin-left: 40px;
    }

    .multi-potion-panel__header {
        flex-direction: column;
    }

    .multi-potion-stack-option {
        align-items: flex-start;
    }

    .multi-potion-grid {
        grid-template-columns: 1fr;
    }
}

.christmasClass {
    background: linear-gradient(135deg, #b30a0a 50%, #11cb00 50%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.plcClass {
    background: linear-gradient(90deg, #a39bff, #b0fffb, #a39bff);
    background-size: 300% 300%;
    animation: class-gradient 10s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.archangelClass {
    background: linear-gradient(90deg, #ffb134, #fff98a, #ffb134);
    background-size: 300% 300%;
    animation: class-gradient 5s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.singularityClass {
    background: linear-gradient(90deg, #ff5634, #461d00, #8e2600, #461d00, #ff5634);
    background-size: 300% 300%;
    animation: class-gradient 5s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pumpBloodClass {
    background: linear-gradient(90deg, #ff820d, #ffb168, #ff5b1a, #683200);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.oblivionClass {
    display: inline-block;
    background: linear-gradient(90deg, #25003f, #641aff, #d768ff, #f5d8ff, #8d20ff, #4a006e, #641aff, #25003f);
    background-size: 600% 600%;
    animation: oblivion-potion-gradient 1.4s linear infinite, oblivion-potion-pulse 1.05s ease-in-out infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: 0.1em;
    transform-origin: center;
}

@keyframes oblivion-potion-gradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 600% 50%;
    }
}

@keyframes oblivion-potion-pulse {
    0%,
    100% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 3px rgba(140, 32, 255, 0.82)) drop-shadow(0 0 8px rgba(73, 0, 126, 0.7));
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.55) drop-shadow(0 0 8px rgba(202, 102, 255, 1)) drop-shadow(0 0 18px rgba(115, 0, 255, 0.95));
    }
}

.heavenlyClass {
    background: linear-gradient(90deg, #e895ff, #ce46ff, #d16cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bloodClass {
    background: linear-gradient(90deg, #6b0000, #000000, #c61818, #6b0000);
    background-size: 300% 300%;
    animation: class-gradient 3.5s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bloodIIClass {
    display: inline-block;
    background: linear-gradient(90deg, #4a0000, #ff0000, #ff6b2c, #fff1b8, #ff1f1f, #850000, #ff0000, #4a0000);
    background-size: 600% 600%;
    animation: red-moon-ii-gradient 1.1s linear infinite, red-moon-ii-pulse 0.82s ease-in-out infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: 0.12em;
    transform-origin: center;
}

@keyframes red-moon-ii-gradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 600% 50%;
    }
}

@keyframes red-moon-ii-pulse {
    0%,
    100% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 3px rgba(255, 0, 0, 0.78)) drop-shadow(0 0 7px rgba(125, 0, 0, 0.6));
    }
    50% {
        transform: scale(1.12);
        filter: brightness(1.65) drop-shadow(0 0 7px rgba(255, 80, 20, 1)) drop-shadow(0 0 16px rgba(255, 0, 0, 0.95));
    }
}

body.quality-no-ui-animations .oblivionClass,
body.quality-no-ui-animations .bloodIIClass {
    animation: none !important;
}

.duneClass {
    background: linear-gradient(90deg, #d2a345, #ffd47d, #c68c18);
    background-size: 300% 300%;
    animation: class-gradient 3.5s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.preset-active-label {
    display: none;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid;
    border-color: rgba(255, 255, 255, 0.63);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.boundClass {
    background: linear-gradient(90deg, #5473ff, #2d33dd, #1aa0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.godlikePotionClass {
    background: linear-gradient(135deg, #fff700 0%, #fff700 33.33%, #00f2ff 33.33%, #00f2ff 66.66%, #ff0000 66.66%, #ff0000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.godlikeClass {
    background: linear-gradient(135deg, #10d657 0%, #14b9d5 33.33%, #1d31d1 50%, #150d71 66.66%, #862ad2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.changelog-font {
    font-family: "Audiowide";
}

.changelog-color {
    color: #00eaff;
}

.changelog-gradient {
    background: linear-gradient(90deg, #ff6767, #ffff5e, #58ff66, #58fff1, #4b90ff, #ff4be7);
    background-size: 300% 300%;
    animation: class-gradient 5.25s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.changelog-outline {
    position: relative;
    color: var(--text-secondary);
    z-index: 0;
}

.changelog-outline::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    -webkit-text-stroke: 4px #e1d6ff26;
    z-index: -1;
}

.changelog-effect {
    position: relative;
    display: inline-block;
    color: var(--text-secondary);
}

.changelog-effect__text {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 5px rgba(0, 190, 253, 0.45);
}

.changelog-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    background: #9deeff;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    box-shadow: 0 0 4px #00befd;
    animation: changelog-particle 1.8s ease-out infinite;
}

.changelog-particle:nth-of-type(1) {
    visibility: hidden;
}

.changelog-particle:nth-of-type(2) {
    --x: -30px;
    --y: -3px;
    --dx: -12px;
    --dy: -2px;
    animation-delay: 0s;
}

.changelog-particle:nth-of-type(3) {
    --x: -23px;
    --y: 7px;
    --dx: -10px;
    --dy: 7px;
    animation-delay: 0.07s;
}

.changelog-particle:nth-of-type(4) {
    --x: -17px;
    --y: -10px;
    --dx: -8px;
    --dy: -9px;
    animation-delay: 0.14s;
}

.changelog-particle:nth-of-type(5) {
    --x: -10px;
    --y: 10px;
    --dx: -5px;
    --dy: 11px;
    animation-delay: 0.21s;
}

.changelog-particle:nth-of-type(6) {
    --x: -2px;
    --y: -12px;
    --dx: -1px;
    --dy: -13px;
    animation-delay: 0.28s;
}

.changelog-particle:nth-of-type(7) {
    --x: 6px;
    --y: 9px;
    --dx: 4px;
    --dy: 11px;
    animation-delay: 0.35s;
}

.changelog-particle:nth-of-type(8) {
    --x: 13px;
    --y: -11px;
    --dx: 7px;
    --dy: -10px;
    animation-delay: 0.42s;
}

.changelog-particle:nth-of-type(9) {
    --x: 20px;
    --y: 8px;
    --dx: 9px;
    --dy: 8px;
    animation-delay: 0.49s;
}

.changelog-particle:nth-of-type(10) {
    --x: 27px;
    --y: -8px;
    --dx: 11px;
    --dy: -7px;
    animation-delay: 0.56s;
}

.changelog-particle:nth-of-type(11) {
    --x: 32px;
    --y: 4px;
    --dx: 12px;
    --dy: 4px;
    animation-delay: 0.63s;
}

.changelog-particle:nth-of-type(12) {
    --x: -34px;
    --y: -10px;
    --dx: -13px;
    --dy: -8px;
    animation-delay: 0.70s;
}

.changelog-particle:nth-of-type(13) {
    --x: 36px;
    --y: -9px;
    --dx: 13px;
    --dy: -8px;
    animation-delay: 0.77s;
}

.changelog-particle:nth-of-type(3n) {
    width: 2px;
    height: 2px;
    background: #ffffff;
}

.changelog-particle:nth-of-type(4n) {
    background: #00befd;
}

@keyframes changelog-particle {
    0% {
        transform:
            translate(
                calc(-50% + var(--x)),
                calc(-50% + var(--y))
            )
            scale(0);
        opacity: 0;
    }

    12% {
        transform:
            translate(
                calc(-50% + var(--x)),
                calc(-50% + var(--y))
            )
            scale(1.25);
        opacity: 1;
    }

    35% {
        transform:
            translate(
                calc(-50% + var(--x) + var(--dx) * 0.35),
                calc(-50% + var(--y) + var(--dy) * 0.35)
            )
            scale(1);
        opacity: 1;
    }

    70% {
        opacity: 0.55;
    }

    100% {
        transform:
            translate(
                calc(-50% + var(--x) + var(--dx)),
                calc(-50% + var(--y) + var(--dy))
            )
            scale(0.25);
        opacity: 0;
    }
}

.qbearClass {
    font-family: "Press Start 2P";
    text-transform: uppercase;
}

.allPotionsClass {
    background: linear-gradient(90deg, #ff6767, #ffff5e, #58ff66, #58fff1, #4b90ff, #ff4be7);
    background-size: 300% 300%;
    animation: class-gradient 5.25s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rarity-tier-challenged {
    background: linear-gradient(90deg, #000000, #585858, #ffffff, #838383, #000000);
    background-size: 300% 300%;
    animation: class-gradient 3.25s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rarity-tier-challenged-plus {
    background: linear-gradient(90deg, #16001f, #ffffff, #16001f, #0d0013);
    background-size: 300% 100%;
    animation: class-gradient 2.65s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.unobtainableClass {
    font-family: Sarpanch;
    font-weight: 700;
    filter: drop-shadow(1px 0 0 black) drop-shadow(0 1px 0 black) drop-shadow(-.5px 0 0 black) drop-shadow(0 -.5px 0 black);
    padding-top: auto;
    padding-bottom: auto;
    padding-left: auto;
    padding-right: auto;
    background-clip: text;
    color: transparent;
    animation: unobtainableTitle 1.2s linear infinite;
}

@keyframes unobtainableTitle {
    0% {
        background-image: linear-gradient(to right, #050403, #2b030a, #63040b, #2b030a, #050403);
    }
    4.54545% {
        background-image: linear-gradient(to right, #050403, #2b030a, #63040b, #2b030a, #050403);
    }
    9.09091% {
        background-image: linear-gradient(to right, #050403, #3b0102, #6b040b, #3b0102, #050403);
    }
    13.6364% {
        background-image: linear-gradient(to right, #13110d, #63040b, #9b0916, #63040b, #13110d);
    }
    18.1818% {
        background-image: linear-gradient(to right, #0c120c, #73040b, #a30d1b, #73040b, #0c120c);
    }
    22.7273% {
        background-image: linear-gradient(to right, #770313, #bb020b, #c30a1c, #bb020b, #770313);
    }
    27.2727% {
        background-image: linear-gradient(to right, #95010b, #c3020a, #d40315, #c3020a, #95010b);
    }
    31.8182% {
        background-image: linear-gradient(to right, #bb020b, #ed010b, #df051b, #ed010b, #bb020b);
    }
    36.3636% {
        background-image: linear-gradient(to right, #b3020b, #ed010b, #df051b, #ed010b, #b3020b);
    }
    40.9091% {
        background-image: linear-gradient(to right, #cb0314, #ed010b, #df051b, #ed010b, #cb0314);
    }
    45.4545% {
        background-image: linear-gradient(to right, #df051b, #ed010b, #df051b, #ed010b, #df051b);
    }
    50% {
        background-image: linear-gradient(to right, #df051b, #ed010b, #d3020b, #ed010b, #df051b);
    }
    54.5455% {
        background-image: linear-gradient(to right, #df0312, #e3010b, #bb020b, #e3010b, #df0312);
    }
    59.0909% {
        background-image: linear-gradient(to right, #ec0315, #ed010b, #b3020b, #ed010b, #ec0315);
    }
    63.6364% {
        background-image: linear-gradient(to right, #db030b, #b3020b, #73040b, #b3020b, #db030b);
    }
    68.1818% {
        background-image: linear-gradient(to right, #d30102, #73040b, #3b020a, #73040b, #d30102);
    }
    72.7273% {
        background-image: linear-gradient(to right, #cb0102, #7b0101, #3b020a, #7b0101, #cb0102);
    }
    77.2727% {
        background-image: linear-gradient(to right, #b3020b, #5b020b, #330102, #5b020b, #b3020b);
    }
    81.8182% {
        background-image: linear-gradient(to right, #95010b, #4b020a, #2b0a03, #4b020a, #95010b);
    }
    86.3636% {
        background-image: linear-gradient(to right, #4b020a, #1b0511, #1b0a04, #1b0511, #4b020a);
    }
    90.9091% {
        background-image: linear-gradient(to right, #4b020a, #1b0511, #1b0a04, #1b0511, #4b020a);
    }
    95.4545% {
        background-image: linear-gradient(to right, #42020a, #130304, #1b0a04, #130304, #42020a);
    }
    100% {
        background-image: linear-gradient(to right, #1b0a04, #0c1104, #1b0a04, #0c1104, #1b0a04);
    }
}

.crazyClass {
    background: linear-gradient(100deg, #ff6767, #ffff5e, #58ff66, #58fff1, #4b90ff, #ff4be7, #cf0000, #ffff00, #004d06, #00146f, #8f00a8, #e68200);
    background-size: 300% 300%;
    animation: class-gradient 5.25s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tutPotion {
    background: linear-gradient(90deg, #fff700, #fffd9d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.candyClass {
    background: linear-gradient(90deg, #ffe8c4, #ffb04f, #ffd04f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.popClass {
    background: linear-gradient(90deg, #ff3030, #ff5f5f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.insaneLuckPresetClass {
    background: linear-gradient(145deg, #ff0000, #ff0000, #ffff00, #ffff00, #1aff00, #1aff00, #00eaff, #00eaff,
                                        #006aff, #006aff, #aa00ff, #aa00ff, #ff00e1, #ff00e1, #ff0000, #ff0000);
    background-size: 300% 300%;
    animation: class-gradient 1s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subTitlesClass {
    background: linear-gradient(135deg, #ffffff, #e3eeff, #aab1ff, #7e96ff, #aab1ff, #e3eeff, #ffffff);
    background-size: 300% 300%;
    animation: class-gradient 5.25s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes class-gradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

.roll-warning {
    color: gray;
    font-size: xx-small;
    display: block;
}

.roll-high {
    color: #ff5e5e;
}

.roll-highest {
    color: #ff0000;
    text-shadow:
        0 0 4px rgba(200, 20, 20, 0.9),
        0 0 8px rgba(150, 0, 0, 0.75),
        1px 1px 0 rgba(60, 0, 0, 0.95),
        -1px 1px 0 rgba(60, 0, 0, 0.95),
        1px -1px 0 rgba(60, 0, 0, 0.95),
        -1px -1px 0 rgba(60, 0, 0, 0.95);
}

.class-outline {
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.95),
        0 0 8px rgba(255, 255, 255, 0.85),
        1px 1px 0 rgba(255, 255, 255, 0.98),
        -1px 1px 0 rgba(255, 255, 255, 0.98),
        1px -1px 0 rgba(255, 255, 255, 0.98),
        -1px -1px 0 rgba(255, 255, 255, 0.95);
}

.class-outline__low {
    color: #210000;
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.95),
        0 0 8px rgba(255, 255, 255, 0.85),
        1px 1px 0 rgba(255, 255, 255, 0.98),
        -1px 1px 0 rgba(255, 255, 255, 0.98),
        1px -1px 0 rgba(255, 255, 255, 0.98),
        -1px -1px 0 rgba(255, 255, 255, 0.95);
}

.class-outline__med {
    color: #4f0000;
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.95),
        0 0 8px rgba(255, 255, 255, 0.85),
        1px 1px 0 rgba(255, 255, 255, 0.98),
        -1px 1px 0 rgba(255, 255, 255, 0.98),
        1px -1px 0 rgba(255, 255, 255, 0.98),
        -1px -1px 0 rgba(255, 255, 255, 0.95);
}

.interface-button {
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 10px 14px;
    --button-background: linear-gradient(180deg, rgb(var(--accent-rgb) / 0.14), rgba(6, 12, 24, 0.85));
    --button-border-color: rgb(var(--accent-rgb) / 0.4);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.25s ease;
}

.interface-button:hover,
.interface-button:focus-visible {
    border-color: var(--accent);
    box-shadow: inset 0 0 16px rgb(var(--accent-rgb) / 0.22);
    --button-scale: 1.03;
    --button-raise: -1px;
    --button-corner-size: 16px;
    --corner-thickness: 3px;
}

.interface-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.interface-button:active {
    --button-scale: 0.97;
    --button-raise: 0px;
}

.interface-button--minor {
    min-width: 90px;
    --button-background: linear-gradient(180deg, rgb(var(--accent-rgb) / 0.12), rgba(10, 18, 34, 0.9));
}

.interface-button--ghost {
    --button-background: linear-gradient(180deg, rgb(var(--accent-rgb) / 0.08), rgba(10, 20, 36, 0.7));
}

.aura-directory-settings { display: grid; gap: 12px; margin-top: 24px; padding: 18px; border: 1px solid var(--surface-border); background: rgba(3, 7, 16, .4); }
.aura-directory-settings h3 { margin: 0; color: var(--accent-strong); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.aura-directory-settings output { color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.aura-directory-settings__limits { display: flex; justify-content: space-between; color: var(--text-secondary); font-size: 10px; margin-top: -10px; }
.aura-directory-settings p { margin: 0; color: var(--text-secondary); font-size: 11px; line-height: 1.6; }

.control-section--presets {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(12px, 2vw, 18px);
    background:
        linear-gradient(90deg, rgb(var(--accent-rgb) / 0.026) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(0deg, rgb(var(--accent-rgb) / 0.022) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(160deg, rgba(10, 20, 38, 0.82), rgba(4, 10, 22, 0.9));
}

.preset-console__header {
    position: relative;
    padding-bottom: 16px;
}

.preset-console__eyebrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
    padding-right: clamp(96px, 16vw, 150px);
    color: rgb(var(--accent-rgb) / 0.68);
    font-size: 8px;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.preset-console__eyebrow span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.preset-console__eyebrow span:last-child {
    color: var(--text-tertiary);
}

.preset-console__header .preset-signoff__name {
    top: 34px;
    right: 0;
    font-size: clamp(14px, 2vw, 20px);
    opacity: 0.68;
}

.preset-console__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.preset-console__tab {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 66px;
    padding: 10px 11px;
    color: var(--text-secondary);
    text-align: left;
    --button-background: linear-gradient(150deg, rgba(9, 19, 36, 0.94), rgba(4, 10, 22, 0.96));
    --button-border-color: rgb(var(--accent-rgb) / 0.25);
}

.preset-console__tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: rgb(var(--accent-rgb) / 0.72);
    background: rgb(var(--accent-rgb) / 0.08);
    border: 1px solid rgb(var(--accent-rgb) / 0.24);
    box-shadow: inset 0 0 12px rgb(var(--accent-rgb) / 0.1);
}

.preset-console__tab-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.preset-console__tab-copy strong {
    color: var(--text-primary);
    font-size: 10px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.preset-console__tab-copy small {
    overflow: hidden;
    color: var(--text-tertiary);
    font-size: 7px;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.preset-console__tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 22px;
    padding: 0 5px;
    color: var(--text-tertiary);
    background: rgb(var(--accent-rgb) / 0.07);
    border: 1px solid rgb(var(--accent-rgb) / 0.18);
    font-size: 8px;
}

.preset-console__tab--active {
    --button-background:
        radial-gradient(circle at 12% 0%, rgb(var(--accent-rgb) / 0.2), transparent 50%),
        linear-gradient(150deg, rgba(13, 31, 54, 0.97), rgba(5, 13, 27, 0.98));
    --button-border-color: rgb(var(--accent-rgb) / 0.72);
    box-shadow: inset 0 0 22px rgb(var(--accent-rgb) / 0.13), 0 0 16px rgb(var(--accent-rgb) / 0.1);
}

.preset-console__tab--active .preset-console__tab-icon {
    color: var(--accent-strong);
    border-color: rgb(var(--accent-rgb) / 0.58);
    background: rgb(var(--accent-rgb) / 0.15);
    box-shadow: inset 0 0 14px rgb(var(--accent-rgb) / 0.18), 0 0 12px rgb(var(--accent-rgb) / 0.12);
}

.preset-console__tab--active .preset-console__tab-copy strong,
.preset-console__tab--active .preset-console__tab-count {
    color: var(--accent-strong);
}

.preset-console__workspace {
    min-width: 0;
}

.preset-console__bank {
    --preset-bank-corner-size: 13px;
    --preset-bank-corner-thickness: 2px;
    gap: 14px;
    padding: clamp(13px, 2vw, 17px);
    background:
        linear-gradient(var(--accent), var(--accent)) top left / var(--preset-bank-corner-size) var(--preset-bank-corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) top left / var(--preset-bank-corner-thickness) var(--preset-bank-corner-size) no-repeat,
        linear-gradient(var(--accent), var(--accent)) top right / var(--preset-bank-corner-size) var(--preset-bank-corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) top right / var(--preset-bank-corner-thickness) var(--preset-bank-corner-size) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom left / var(--preset-bank-corner-size) var(--preset-bank-corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom left / var(--preset-bank-corner-thickness) var(--preset-bank-corner-size) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom right / var(--preset-bank-corner-size) var(--preset-bank-corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom right / var(--preset-bank-corner-thickness) var(--preset-bank-corner-size) no-repeat,
        linear-gradient(90deg, rgb(var(--accent-rgb) / 0.03) 1px, transparent 1px) 0 0 / 18px 18px,
        linear-gradient(0deg, rgb(var(--accent-rgb) / 0.026) 1px, transparent 1px) 0 0 / 18px 18px,
        linear-gradient(155deg, rgba(9, 19, 37, 0.96), rgba(3, 9, 20, 0.98));
    border: 1px solid rgb(var(--accent-rgb) / 0.24);
    box-shadow: inset 0 0 26px rgb(var(--accent-rgb) / 0.055);
    animation: preset-console-bank-enter 0.28s cubic-bezier(0.2, 0.76, 0.28, 1) both;
}

.preset-console__bank[hidden] {
    display: none;
}

.preset-console__bank-header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgb(var(--accent-rgb) / 0.16);
}

.preset-console__bank-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--accent-strong);
    background: rgb(var(--accent-rgb) / 0.1);
    border: 1px solid rgb(var(--accent-rgb) / 0.38);
    box-shadow: inset 0 0 14px rgb(var(--accent-rgb) / 0.12);
}

.preset-console__bank-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.preset-console__bank-copy h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.preset-console__bank-copy > span {
    color: var(--text-tertiary);
    font-size: 8px;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-transform: uppercase;
}

.preset-console__bank-badge {
    padding: 6px 8px;
    color: rgb(var(--accent-rgb) / 0.78);
    background: rgb(var(--accent-rgb) / 0.07);
    border: 1px solid rgb(var(--accent-rgb) / 0.2);
    font-size: 8px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.preset-collection {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2.5vw, 18px);
}

.preset-collection__title {
    position: relative;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 18px);
    font-size: clamp(11px, 1.5vw, 13px);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.preset-collection__title--compact {
    gap: clamp(6px, 1.1vw, 10px);
    font-size: clamp(10px, 1.2vw, 12px);
    letter-spacing: 0.18em;
}

.preset-collection__title--compact .preset-collection__title-divider {
    flex: 0 0 clamp(28px, 4vw, 48px);
}

.preset-collection__title-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.preset-collection__title-divider {
    flex: 1 1 60px;
    height: 1px;
    background: linear-gradient(90deg, rgba(127, 227, 255, 0), rgba(127, 227, 255, 0.55));
    transform: translateY(1px);
}

.preset-collection__title-divider--end {
    background: linear-gradient(90deg, rgba(127, 227, 255, 0.55), rgba(127, 227, 255, 0));
}

.preset-collection__title-text--sub {
    color: #8aa6dd;
    font-size: clamp(7px, 1vw, 9px);
}

.preset-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.preset-matrix--compact {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 9px;
}

.preset-matrix--compact button {
    padding-block: 10px;
    padding-inline: 11px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

.preset-matrix .preset-warning {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    padding: 4px 8px 0;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.72;
}

.preset-matrix .preset-warning::before {
    content: '';
}

.preset-matrix button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 10px 12px;
    --button-background:
        linear-gradient(155deg, rgb(var(--accent-rgb) / 0.055), transparent 52%),
        rgba(5, 12, 24, 0.9);
    --button-border-color: rgba(95, 160, 230, 0.35);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.25s ease;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.preset-matrix button.luck-preset-button--active {
    border-color: rgba(255, 226, 141, 0.85);
    box-shadow: inset 0 0 20px rgba(255, 214, 116, 0.35), 0 0 12px rgba(255, 220, 120, 0.4);
    --button-background: rgba(34, 28, 14, 0.9);
}

.preset-matrix #luck-preset-pump-kings-blood.luck-preset-button--active {
    --button-background: linear-gradient(110deg, rgba(86, 34, 0, 0.95), rgba(28, 12, 2, 0.95), rgba(112, 42, 0, 0.92));
    border-color: rgba(255, 137, 32, 0.95);
    box-shadow: inset 0 0 24px rgba(255, 125, 13, 0.46), 0 0 14px rgba(255, 118, 13, 0.68), 0 0 28px rgba(145, 64, 0, 0.58);
}

.preset-matrix #luck-preset-tutorial-potion.luck-preset-button--active {
    --button-background: linear-gradient(110deg, rgba(90, 78, 0, 0.94), rgba(28, 27, 4, 0.95), rgba(116, 104, 0, 0.92));
    border-color: rgba(255, 247, 64, 0.95);
    box-shadow: inset 0 0 24px rgba(255, 247, 0, 0.42), 0 0 14px rgba(255, 247, 64, 0.62), 0 0 28px rgba(180, 144, 0, 0.52);
}

.preset-matrix #luck-preset-oblivion {
    --button-background: linear-gradient(110deg, rgba(28, 0, 52, 0.94), rgba(8, 0, 18, 0.94), rgba(50, 0, 84, 0.92));
    --button-border-color: rgba(159, 64, 255, 0.72);
    box-shadow: inset 0 0 14px rgba(114, 0, 255, 0.24), 0 0 8px rgba(82, 0, 145, 0.42);
}

.preset-matrix #luck-preset-oblivion.luck-preset-button--active {
    --button-background: linear-gradient(110deg, rgba(76, 0, 138, 0.98), rgba(20, 0, 42, 0.98), rgba(111, 18, 166, 0.96));
    border-color: rgba(218, 145, 255, 1);
    box-shadow: inset 0 0 28px rgba(132, 26, 255, 0.66), 0 0 16px rgba(119, 0, 255, 0.92), 0 0 34px rgba(71, 0, 135, 0.82);
}

body:not(.reduce-motion):not(.quality-no-ui-animations) .preset-matrix #luck-preset-oblivion.luck-preset-button--active {
    animation: oblivion-potion-button-flare 1.1s ease-in-out infinite;
}

@keyframes oblivion-potion-button-flare {
    0%,
    100% {
        box-shadow: inset 0 0 22px rgba(132, 26, 255, 0.54), 0 0 12px rgba(119, 0, 255, 0.8), 0 0 22px rgba(71, 0, 135, 0.66);
    }
    50% {
        box-shadow: inset 0 0 34px rgba(190, 78, 255, 0.86), 0 0 22px rgba(144, 30, 255, 1), 0 0 46px rgba(103, 0, 255, 0.94);
    }
}

.preset-matrix #luck-preset-blood-i.luck-preset-button--active {
    border-color: rgba(255, 26, 26, 0.85);
    box-shadow: inset 0 0 20px rgba(255, 26, 26, 0.35), 0 0 12px rgba(127, 0, 0, 0.45);
}

.preset-matrix #luck-preset-blood-ii {
    --button-background: linear-gradient(110deg, rgba(38, 0, 0, 0.94), rgba(12, 0, 0, 0.94), rgba(62, 0, 0, 0.92));
    --button-border-color: rgba(255, 50, 35, 0.7);
    box-shadow: inset 0 0 14px rgba(255, 0, 0, 0.2), 0 0 8px rgba(155, 0, 0, 0.35);
}

.preset-matrix #luck-preset-blood-ii.luck-preset-button--active {
    --button-background: linear-gradient(110deg, rgba(92, 0, 0, 0.98), rgba(24, 0, 0, 0.98), rgba(128, 18, 0, 0.96));
    border-color: rgba(255, 135, 70, 1);
    box-shadow: inset 0 0 28px rgba(255, 38, 0, 0.62), 0 0 16px rgba(255, 0, 0, 0.9), 0 0 34px rgba(145, 0, 0, 0.78);
}

body:not(.reduce-motion):not(.quality-no-ui-animations) .preset-matrix #luck-preset-blood-ii.luck-preset-button--active {
    animation: red-moon-ii-button-flare 0.95s ease-in-out infinite;
}

@keyframes red-moon-ii-button-flare {
    0%,
    100% {
        box-shadow: inset 0 0 22px rgba(255, 38, 0, 0.5), 0 0 12px rgba(255, 0, 0, 0.78), 0 0 22px rgba(145, 0, 0, 0.62);
    }
    50% {
        box-shadow: inset 0 0 34px rgba(255, 95, 0, 0.82), 0 0 22px rgba(255, 30, 0, 1), 0 0 46px rgba(255, 0, 0, 0.9);
    }
}

.preset-matrix button.luck-preset-button--active .preset-active-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.preset-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.preset-button > button {
    width: 100%;
}

.preset-button__actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.preset-button:hover .preset-button__actions,
.preset-button:focus-within .preset-button__actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: presetAdjustmentsSlideIn 0.2s ease;
    transition: opacity 0.2s ease, visibility 0s;
}

.preset-button__action {
    min-width: 44px;
    height: 32px;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    --button-background: rgba(255, 255, 255, 0.08);
    --button-border-color: rgba(95, 160, 230, 0.7);
}

.preset-button__action--add {
    --button-background: rgba(66, 213, 255, 0.12);
}

.preset-button__action--subtract {
    --button-background: rgba(255, 120, 120, 0.12);
}

.preset-console .preset-button {
    display: block;
}

.preset-console .preset-button > button {
    min-height: 56px;
    height: 100%;
    padding-right: 12px;
    overflow: hidden;
    transition:
        padding-right 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.preset-button__label {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    line-height: 1.55;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

.preset-console .preset-button:hover > button,
.preset-console .preset-button:focus-within > button {
    padding-right: 82px;
}

.preset-console .preset-button__actions {
    position: absolute;
    top: 50%;
    right: 7px;
    bottom: auto;
    z-index: 7;
    display: grid;
    grid-template-columns: repeat(2, 30px);
    align-items: center;
    gap: 3px;
    padding: 3px;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 16, 29, 0.96), rgba(3, 9, 18, 0.98));
    border: 1px solid rgb(var(--accent-rgb) / 0.24);
    box-shadow: inset 0 0 12px rgb(var(--accent-rgb) / 0.07), 0 5px 12px rgba(0, 0, 0, 0.34);
    transform: translate(6px, -50%) scale(0.96);
    transition:
        opacity 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.preset-console .preset-button:hover .preset-button__actions,
.preset-console .preset-button:focus-within .preset-button__actions {
    opacity: 1;
    pointer-events: auto;
    border-color: rgb(var(--accent-rgb) / 0.48);
    box-shadow: inset 0 0 14px rgb(var(--accent-rgb) / 0.1), 0 7px 15px rgba(0, 0, 0, 0.4);
    animation: none;
    transform: translate(0, -50%) scale(1);
}

.preset-console .preset-button__action {
    min-width: 0;
    width: 30px;
    min-height: 0;
    height: 30px;
    padding: 0;
    border-radius: 0;
    font-size: 15px;
    --button-corner-size: 8px;
    --corner-thickness: 1px;
    --button-scale: 1;
    --button-raise: 0px;
}

.preset-console .preset-button__action--add {
    color: #b8ffcf;
    --button-accent: #78ffab;
    --button-border-color: rgba(120, 255, 171, 0.48);
    --button-background: linear-gradient(180deg, rgba(25, 83, 53, 0.78), rgba(8, 37, 25, 0.92));
}

.preset-console .preset-button__action--subtract {
    color: #ffc1c7;
    --button-accent: #ff8f9a;
    --button-border-color: rgba(255, 116, 130, 0.46);
    --button-background: linear-gradient(180deg, rgba(91, 34, 45, 0.78), rgba(42, 13, 21, 0.92));
}

.preset-console .preset-button__action:hover,
.preset-console .preset-button__action:focus-visible {
    --button-scale: 1;
    --button-raise: 0px;
    --button-corner-size: 10px;
    --corner-thickness: 2px;
}

body.potion-mode--multiple #device-buff-preset-panel .preset-button > button {
    padding-right: 11px;
}

@keyframes presetAdjustmentsSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

body.reduce-motion .preset-button__actions {
    transition: opacity 0.2s ease;
}

body.reduce-motion .preset-button:hover .preset-button__actions,
body.reduce-motion .preset-button:focus-within .preset-button__actions {
    animation: none;
}

.preset-matrix button:hover,
.preset-matrix button:focus-visible,
.preset-toggle__options button:hover,
.preset-toggle__options button:focus-visible {
    border-color: var(--accent);
    box-shadow: inset 0 0 16px rgba(127, 227, 255, 0.2);
    --button-scale: 1.03;
    --button-raise: -1px;
    --button-corner-size: 16px;
    --corner-thickness: 3px;
}

.preset-matrix button:focus-visible,
.preset-toggle__options button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.preset-matrix button:active,
.preset-toggle__options button:active {
    --button-scale: 0.97;
    --button-raise: 0px;
}

body:not(.reduce-motion):not(.quality-no-shakes) .luck-preset-button--shake[data-shake-tier="mild"]:hover,
body:not(.reduce-motion):not(.quality-no-shakes) .luck-preset-button--shake[data-shake-tier="mild"]:focus-visible {
    animation: luckPresetMildShake 0.62s ease-in-out infinite;
}

body:not(.reduce-motion):not(.quality-no-shakes) .luck-preset-button--shake[data-shake-tier="aggressive"]:hover,
body:not(.reduce-motion):not(.quality-no-shakes) .luck-preset-button--shake[data-shake-tier="aggressive"]:focus-visible {
    animation: luckPresetAggressiveShake 0.44s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
}

body:not(.reduce-motion):not(.quality-no-shakes) .luck-preset-button--shake[data-shake-tier="massive"]:hover,
body:not(.reduce-motion):not(.quality-no-shakes) .luck-preset-button--shake[data-shake-tier="massive"]:focus-visible {
    animation: luckPresetMassiveShake 0.44s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
}

body:not(.reduce-motion):not(.quality-no-shakes) .luck-preset-button--shake.luck-preset-button--pop,
body:not(.reduce-motion):not(.quality-no-shakes) .luck-preset-button--shake.luck-preset-button--pop:focus-visible {
    animation: luckPresetPop 0.68s cubic-bezier(0.18, 0.72, 0.27, 1);
    z-index: 3;
}

body:not(.reduce-motion):not(.quality-no-shakes) .luck-preset-button--shake.luck-preset-button--mega-pop,
body:not(.reduce-motion):not(.quality-no-shakes) .luck-preset-button--shake.luck-preset-button--mega-pop:focus-visible {
    animation: luckPresetMegaPop 0.9s cubic-bezier(0.18, 0.78, 0.24, 1.04);
    z-index: 4;
}

body:not(.reduce-motion):not(.quality-no-shakes) .luck-preset-button--shake.luck-preset-button--master-pop,
body:not(.reduce-motion):not(.quality-no-shakes) .luck-preset-button--shake.luck-preset-button--master-pop:focus-visible {
    animation: luckPresetMasterPop 0.9s cubic-bezier(0.18, 0.78, 0.24, 1.04);
    z-index: 4;
}

.preset-toggle {
    position: relative;
    border: 1px solid rgba(95, 160, 230, 0.35);
    background: rgba(6, 12, 24, 0.85);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.preset-toggle[open] {
    border-color: var(--accent);
    box-shadow: inset 0 0 16px rgba(127, 227, 255, 0.2);
}

.preset-toggle__summary {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    padding: 10px 36px 10px 12px;
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--text-primary);
    position: relative;
    --button-background: linear-gradient(92deg, rgba(15, 28, 52, 0.9), rgba(10, 20, 38, 0.92));
    --button-border-color: var(--accent-muted);
}

.preset-toggle__summary::-webkit-details-marker {
    display: none;
}

.preset-toggle__summary::marker {
    content: '';
    display: none;
}

.preset-toggle__summary::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 12px;
    height: 12px;
    border: 2px solid var(--accent);
    border-top: 0;
    border-left: 0;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.preset-toggle[open] .preset-toggle__summary::after {
    transform: translateY(-50%) rotate(-135deg);
}

.preset-toggle__title {
    font-weight: 600;
}

.preset-toggle__selection {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.preset-toggle__selection--placeholder {
    color: rgba(199, 219, 255, 0.48);
}

.preset-toggle__options {
    display: grid;
    gap: 8px;
    padding: 8px 12px 12px;
    border-top: 1px solid rgba(95, 160, 230, 0.35);
    background: rgba(4, 10, 22, 0.95);
}

.preset-toggle__options button {
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.14em;
    padding: 10px 12px;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.25s ease;
    --button-background: rgba(6, 12, 24, 0.85);
    --button-border-color: rgba(95, 160, 230, 0.35);
    width: 100%;
    text-align: left;
}

.preset-signoff {
    position: relative;
    margin-top: clamp(12px, 2vw, 20px);
    padding: clamp(12px, 2vw, 18px);
    min-height: clamp(82px, 9vw, 110px);
}

.preset-signoff__status {
    margin: 0;
    font-size: clamp(9px, 1.6vw, 12px);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(212, 224, 255, 0.82);
    text-align: left;
    max-width: clamp(500px, 36vw, 460px);
    position: absolute;
    left: 0;
    bottom: 0;
}

.preset-signoff__status-channel {
    color: #6f7aff;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-shadow: 0 0 8px rgba(111, 122, 255, 0.4);
}

.preset-signoff__status-message {
    line-height: 1.5;
    color: rgba(237, 241, 255, 0.88);
}

.preset-signoff__status .sigil-effect-pixelation {
    font-size: clamp(10px, 2.2vw, 12px);
}


.preset-signoff__status-trigger {
    cursor: pointer;
    user-select: none;
}

.preset-signoff__status-trigger:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 4px;
}


.preset-signoff__status-trigger .pixel-wave-letter {
    display: inline-block;
    animation: pixel-wave-letter-float 0.95s ease-in-out infinite;
    animation-delay: calc(var(--pixel-wave-index, 0) * 0.08s);
    will-change: transform;
}

@keyframes pixel-wave-letter-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-0.42em);
    }
}

.preset-signoff__secret-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.preset-signoff__secret-message {
    position: absolute;
    left: var(--secret-left, 0px);
    top: var(--secret-top, 0px);
    transform: translate(-50%, -100%);
    font-size: clamp(10px, 1.8vw, 14px);
    letter-spacing: 0.08em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

.preset-signoff__secret-message--above-trigger {
    z-index: 6;
    transform-origin: center bottom;
    filter: drop-shadow(0 0 8px rgba(111, 122, 255, 0.55));
    animation: preset-signoff-secret-bounce 1.55s cubic-bezier(0.22, 0.65, 0.2, 1) forwards;
    will-change: transform, opacity;
}

@keyframes preset-signoff-secret-bounce {
    0% {
        transform: translate(-50%, -86%) scale(0.72) rotate(-6deg);
        opacity: 0;
    }
    14% {
        opacity: 1;
        transform: translate(-50%, -126%) scale(1.18) rotate(8deg);
    }
    34% {
        transform: translate(-50%, -112%) scale(0.95) rotate(-5deg);
    }
    52% {
        transform: translate(-50%, -122%) scale(1.06) rotate(4deg);
    }
    70% {
        transform: translate(-50%, -114%) scale(1) rotate(-2deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -146%) scale(0.88) rotate(3deg);
        opacity: 0;
    }
}


.preset-signoff__name {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    background: linear-gradient(95deg, #000000 0%, #050505 24%, #f7f7f7 78%, #ffffff 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.32));
    white-space: nowrap;
    text-align: right;
    position: absolute;
    top: 0;
    right: 0;
}

@media (max-width: 600px) {
    .preset-signoff {
        padding: clamp(12px, 3vw, 18px) clamp(12px, 4vw, 20px);
        min-height: unset;
        display: flex;
        flex-direction: column;
        gap: clamp(12px, 3vw, 16px);
    }

    .preset-signoff__name,
    .preset-signoff__status {
        position: static;
    }

    .preset-signoff__name {
        align-self: flex-end;
    }

    .preset-signoff__status {
        max-width: none;
    }
}

.control-section--cta {
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(8, 14, 28, 0.82), rgba(4, 9, 20, 0.9));
    position: sticky;
    top: clamp(12px, 2vw, 18px);
    z-index: 12;
    isolation: isolate;
}

.control-section--cta.roll-console__module {
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    background:
        linear-gradient(var(--accent), var(--accent)) top left / var(--roll-console-corner-size) var(--roll-console-corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) top left / var(--roll-console-corner-thickness) var(--roll-console-corner-size) no-repeat,
        linear-gradient(var(--accent), var(--accent)) top right / var(--roll-console-corner-size) var(--roll-console-corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) top right / var(--roll-console-corner-thickness) var(--roll-console-corner-size) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom left / var(--roll-console-corner-size) var(--roll-console-corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom left / var(--roll-console-corner-thickness) var(--roll-console-corner-size) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom right / var(--roll-console-corner-size) var(--roll-console-corner-thickness) no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom right / var(--roll-console-corner-thickness) var(--roll-console-corner-size) no-repeat,
        linear-gradient(90deg, rgb(var(--accent-rgb) / 0.035) 1px, transparent 1px) 0 0 / 18px 18px,
        linear-gradient(0deg, rgb(var(--accent-rgb) / 0.025) 1px, transparent 1px) 0 0 / 18px 18px,
        linear-gradient(155deg, rgba(11, 23, 43, 0.94), rgba(4, 10, 22, 0.97));
}

.control-section--cta.control-section--cta--floating {
    position: fixed;
    top: clamp(12px, 2vw, 18px);
    left: var(--roll-cta-left, auto);
    width: var(--roll-cta-width, auto);
    max-width: var(--roll-cta-width, auto);
    z-index: 44;
    padding: 10px;
    gap: 8px;
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.62),
        0 0 0 1px rgb(var(--accent-rgb) / 0.16),
        inset 0 0 28px rgb(var(--accent-rgb) / 0.08);
    animation: roll-dock-enter 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.roll-trigger-dock-anchor {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    pointer-events: none;
}

.control-section--cta--floating .roll-console__step,
.control-section--cta--floating .roll-console__module-copy {
    display: none;
}

.control-section--cta--floating .roll-console__armed {
    margin-left: 0;
}

.roll-dock__parameters {
    display: none;
}

.control-section--cta--floating .roll-dock__parameters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    margin-left: auto;
    padding: 7px 10px;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.control-section--cta--floating .roll-trigger {
    padding: 14px 16px 21px;
    font-size: 17px;
}

@keyframes roll-dock-enter {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 620px) {
    .control-section--cta.control-section--cta--floating {
        top: max(10px, env(safe-area-inset-top));
        right: auto;
        bottom: auto;
        left: 50%;
        width: min(420px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        transform: translateX(-50%);
        animation-name: roll-dock-enter-mobile;
    }

    .control-section--cta--floating .roll-console__module-heading--compact {
        flex-wrap: nowrap;
    }

    .control-section--cta--floating .roll-dock__parameters span {
        display: none;
    }

    .control-section--cta--floating .roll-dock__parameters {
        flex: 0 0 34px;
        width: 34px;
        height: 30px;
        padding: 0;
    }

    .control-section--cta--floating .roll-trigger {
        padding: 12px 10px 19px;
        font-size: clamp(13px, 4vw, 16px);
        letter-spacing: 0.14em;
    }

    .control-section--cta--floating .roll-cancel {
        margin-top: 0;
        padding: 9px 10px;
        font-size: 11px;
    }
}

@keyframes roll-dock-enter-mobile {
    from {
        opacity: 0;
        transform: translate(-50%, -10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

body.reduce-motion .control-section--cta--floating,
body.quality-no-ui-animations .control-section--cta--floating {
    animation: none;
}

.roll-split-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
}

.roll-split-control--active {
    grid-template-columns: minmax(0, 1fr) clamp(56px, 19%, 76px);
}

.roll-split-control--active .roll-trigger {
    border-right-width: 0;
}

.roll-split-control--active .roll-trigger:hover,
.roll-split-control--active .roll-trigger:focus-visible {
    --button-scale: 1;
    --button-raise: 0px;
}

.roll-trigger {
    width: 100%;
    padding: 18px 20px 26px;
    font-family: inherit;
    font-size: 22px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #d9ff9d;
    --button-background: linear-gradient(180deg, rgba(10, 20, 6, 0.95), rgba(8, 18, 14, 0.92));
    --button-border-color: rgba(164, 255, 140, 0.55);
    --button-accent: rgba(164, 255, 140, 0.8);
    box-shadow: inset 0 0 24px rgba(120, 255, 150, 0.18), 0 16px 28px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.25s ease;
}

.roll-pause {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 14px;
    border: 1px solid rgba(164, 255, 140, 0.55);
    border-left-color: rgba(164, 255, 140, 0.32);
    border-radius: 0;
    font-family: inherit;
    font-size: 20px;
    line-height: 1;
    color: #d9ff9d;
    background: linear-gradient(180deg, rgba(10, 20, 6, 0.95), rgba(8, 18, 14, 0.92));
    box-shadow: inset 0 0 24px rgba(120, 255, 150, 0.14), 0 16px 28px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.roll-pause i,
.roll-pause svg {
    display: block;
    align-self: center;
    margin: auto;
    line-height: 1;
}

.roll-pause:hover,
.roll-pause:focus-visible {
    color: #efffd8;
    border-color: rgba(198, 255, 170, 0.8);
    box-shadow: inset 0 0 26px rgba(180, 255, 200, 0.22), 0 20px 34px rgba(0, 0, 0, 0.48);
}

.roll-pause:focus-visible {
    outline: 2px solid rgba(198, 255, 170, 0.8);
    outline-offset: 4px;
}

.roll-pause:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.roll-pause[hidden] {
    display: none;
}

.roll-pause--paused {
    color: #fff3a6;
    border-color: rgba(255, 224, 110, 0.7);
    background: linear-gradient(180deg, rgba(38, 30, 5, 0.96), rgba(24, 18, 4, 0.94));
}

.feed-follow-button {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 18;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(164, 255, 140, 0.72);
    color: #e6ffb9;
    background: linear-gradient(180deg, rgba(20, 42, 18, 0.96), rgba(7, 20, 16, 0.98));
    box-shadow:
        inset 0 0 18px rgba(120, 255, 150, 0.18),
        0 8px 24px rgba(0, 0, 0, 0.55),
        0 0 0 4px rgba(8, 18, 14, 0.42);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.feed-follow-button:hover,
.feed-follow-button:focus-visible {
    color: #ffffff;
    border-color: rgba(220, 255, 190, 0.96);
    box-shadow:
        inset 0 0 22px rgba(160, 255, 180, 0.25),
        0 10px 28px rgba(0, 0, 0, 0.62),
        0 0 0 5px rgba(164, 255, 140, 0.15);
    transform: translateY(-2px);
}

.feed-follow-button:focus-visible {
    outline: 2px solid rgba(220, 255, 190, 0.92);
    outline-offset: 4px;
}

.feed-follow-button:active {
    transform: translateY(1px);
}

.feed-follow-button i,
.feed-follow-button svg {
    display: block;
    font-size: 18px;
    line-height: 1;
}

.feed-follow-button[hidden] {
    display: none;
}

.changelog-control-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38em;
    padding: 0.16em 0.58em;
    border: 1px solid rgba(164, 255, 140, 0.48);
    color: #dcffac;
    background: rgba(12, 30, 18, 0.82);
    box-shadow:
        inset 0 0 10px rgba(117, 255, 138, 0.08),
        0 0 8px rgba(117, 255, 138, 0.08);
    font-size: 0.86em;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.25;
    white-space: nowrap;
}

.changelog-control-chip i,
.changelog-control-chip svg {
    font-size: 0.82em;
}

.feed-history {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgb(var(--accent-rgb) / 0.2);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.feed-history[hidden] {
    display: none;
}

.feed-history > span {
    flex: 1 1 140px;
    font-variant-numeric: tabular-nums;
}

.feed-history .interface-button {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.75rem;
}

.roll-feed-error {
    margin-top: 1rem;
    font-size: 0.75em;
    user-select: text;
}

.roll-feed-error summary {
    cursor: pointer;
}

.roll-feed-error pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: inherit;
}

.live-roll-feed__entry {
    display: block;
    padding-block: 2px;
    content-visibility: auto;
    contain-intrinsic-block-size: auto 42px;
}

.roll-feed__result-entry {
    display: block;
    content-visibility: auto;
    contain-intrinsic-block-size: auto 42px;
}

.roll-feed__results-list {
    display: block;
}

.roll-feed__result-entry[hidden],
.live-roll-feed__entry[hidden] {
    display: none;
}

.roll-feed-entry--offscreen,
.roll-feed-entry--offscreen * {
    animation-play-state: paused !important;
}

.live-roll-feed__entry + .live-roll-feed__entry {
    border-top: 1px solid rgb(var(--accent-rgb) / 0.08);
}

.live-roll-feed__summary {
    display: block;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgb(var(--accent-rgb) / 0.32);
}

.live-roll-feed__status {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.feed-search {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.feed-search__icon {
    position: absolute;
    left: 15px;
    color: var(--text-tertiary);
    pointer-events: none;
    z-index: 1;
}

#roll-preset-panel button:has(.roll-warning) {
    --button-border-color: rgba(255, 197, 92, 0.36);
    --button-background:
        radial-gradient(circle at 50% 0%, rgba(255, 190, 80, 0.09), transparent 62%),
        rgba(12, 12, 20, 0.92);
}

#roll-preset-panel button:has(.roll-highest) {
    --button-border-color: rgba(255, 105, 105, 0.52);
    --button-background:
        radial-gradient(circle at 50% 0%, rgba(255, 82, 82, 0.14), transparent 62%),
        rgba(20, 8, 13, 0.94);
}

@keyframes preset-console-bank-enter {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.reduce-motion .preset-console__bank,
body.quality-no-ui-animations .preset-console__bank {
    animation: none;
}

@media (max-width: 760px) {
    .preset-console__tabs {
        grid-template-columns: 1fr;
    }

    .preset-console__tab {
        min-height: 58px;
    }

    .preset-console__bank-header {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .preset-console__bank-badge {
        grid-column: 2;
        justify-self: start;
    }

    .preset-console__eyebrow {
        padding-right: 0;
    }

    .preset-console__eyebrow span:last-child {
        display: none;
    }

    .preset-console__header .preset-signoff__name {
        position: static;
        align-self: flex-end;
        margin-top: -24px;
    }
}

.feed-search__input {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px 10px 42px;
    border: 1px solid rgb(var(--accent-rgb) / 0.32);
    color: var(--text-primary);
    background: linear-gradient(180deg, rgba(8, 17, 34, 0.95), rgba(4, 10, 22, 0.98));
    box-shadow: inset 0 0 18px rgb(var(--accent-rgb) / 0.1);
    font: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feed-search__input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.9;
}

.feed-search__input:focus {
    border-color: var(--accent);
    box-shadow: inset 0 0 20px rgb(var(--accent-rgb) / 0.16), 0 0 0 2px rgb(var(--accent-rgb) / 0.18);
}

.feed-sort {
    min-width: 154px;
    min-height: 44px;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.feed-sort i,
.feed-sort svg {
    color: var(--accent);
}

.feed-sort[hidden] {
    display: none;
}

.rolling-settings__modal {
    width: min(620px, 92vw);
}

.rolling-settings__content {
    display: grid;
    gap: 14px;
}

.rolling-settings__field,
.rolling-settings__toggle-row,
.rolling-settings__filters {
    display: grid;
    gap: 8px;
    padding: 15px 16px;
    border: 1px solid rgb(var(--accent-rgb) / 0.26);
    background: linear-gradient(180deg, rgba(12, 24, 44, 0.9), rgba(5, 12, 26, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.rolling-settings__toggle-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.rolling-settings__toggle-row[hidden] {
    display: none;
}

.rolling-settings__toggle-copy,
.rolling-settings__filter-copy {
    display: grid;
    gap: 5px;
}

.rolling-settings__label {
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.rolling-settings__description {
    color: var(--text-secondary);
    font-size: 0.74rem;
    line-height: 1.45;
}

.rolling-settings__speed-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.rolling-settings__speed-value {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: right;
}

.rolling-settings__speed-presets {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 4px;
}

.rolling-settings__speed-preset {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 52px;
    padding: 8px 6px 11px;
    border: 1px solid rgb(var(--accent-rgb) / 0.24);
    color: var(--text-secondary);
    background:
        linear-gradient(180deg, rgb(var(--accent-rgb) / 0.1), transparent 58%),
        rgba(4, 12, 25, 0.88);
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.rolling-settings__speed-preset::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 9px;
    height: 9px;
    border-right: 1px solid rgb(var(--accent-rgb) / 0.42);
    border-bottom: 1px solid rgb(var(--accent-rgb) / 0.42);
    background: rgba(5, 14, 28, 0.96);
    transform: translateX(-50%) rotate(45deg);
}

.rolling-settings__speed-preset > span {
    color: var(--text-primary);
    font-size: clamp(0.62rem, 2.2vw, 0.74rem);
    font-weight: 700;
    letter-spacing: 0.055em;
    line-height: 1.2;
}

.rolling-settings__speed-preset > small {
    color: var(--text-tertiary);
    font-size: 0.62rem;
    letter-spacing: 0.04em;
}

.rolling-settings__speed-preset:hover,
.rolling-settings__speed-preset:focus-visible,
.rolling-settings__speed-preset[aria-pressed="true"] {
    border-color: rgb(var(--accent-rgb) / 0.7);
    color: var(--accent);
    background:
        radial-gradient(circle at 50% 115%, rgb(var(--accent-rgb) / 0.22), transparent 55%),
        linear-gradient(180deg, rgb(var(--accent-rgb) / 0.18), rgba(4, 14, 28, 0.96));
    box-shadow: inset 0 0 18px rgb(var(--accent-rgb) / 0.1), 0 7px 16px rgba(0, 0, 0, 0.28);
}

.rolling-settings__speed-preset[aria-pressed="true"] > small {
    color: var(--accent);
}

.rolling-settings__speed-preset:focus-visible {
    outline: 2px solid rgb(var(--accent-rgb) / 0.72);
    outline-offset: 2px;
}

.rolling-settings__speed-preset:disabled {
    cursor: not-allowed;
    opacity: 0.46;
}

@media (max-width: 520px) {
    .rolling-settings__speed-presets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rolling-settings__speed-preset:last-child {
        grid-column: 1 / -1;
    }
}

.rolling-settings__speed-input {
    --rolling-speed-progress: 11.91%;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    margin: 13px 0 2px;
    border: 1px solid rgb(var(--accent-rgb) / 0.38);
    background:
        linear-gradient(
            90deg,
            rgb(var(--accent-rgb) / 0.82) 0%,
            rgb(var(--accent-rgb) / 0.82) var(--rolling-speed-progress),
            rgba(16, 30, 50, 0.96) var(--rolling-speed-progress),
            rgba(16, 30, 50, 0.96) 100%
        );
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.rolling-settings__speed-input::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(220, 255, 235, 0.95);
    background: var(--accent);
    box-shadow: 0 0 0 5px rgb(var(--accent-rgb) / 0.16), 0 3px 10px rgba(0, 0, 0, 0.5);
}

.rolling-settings__speed-input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(220, 255, 235, 0.95);
    background: var(--accent);
    box-shadow: 0 0 0 5px rgb(var(--accent-rgb) / 0.16), 0 3px 10px rgba(0, 0, 0, 0.5);
}

.rolling-settings__speed-input:focus-visible {
    outline: 2px solid rgb(var(--accent-rgb) / 0.74);
    outline-offset: 7px;
}

.rolling-settings__speed-input:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.rolling-settings__speed-range {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-tertiary);
    font-size: 0.67rem;
    letter-spacing: 0.05em;
}

.rolling-settings__filters {
    gap: 12px;
}

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

.rolling-settings__filter-actions--single {
    grid-template-columns: minmax(0, 1fr);
}

#rollingCutscenePlaybackFiltersButton {
    grid-column: 1 / -1;
}

.rolling-settings__filter-actions .interface-button {
    justify-content: center;
    min-width: 0;
}

@media (max-width: 520px) {
    .rolling-settings__toggle-row,
    .rolling-settings__filter-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .rolling-settings__toggle-row .toggle {
        margin-top: 4px;
    }
}

.roll-trigger::after {
    content: attr(data-shortcut-label);
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: rgba(201, 255, 160, 0.75);
}

.roll-trigger:hover,
.roll-trigger:focus-visible {
    border-color: rgba(198, 255, 170, 0.8);
    box-shadow: inset 0 0 26px rgba(180, 255, 200, 0.22), 0 20px 34px rgba(0, 0, 0, 0.48);
    --button-scale: 1.04;
    --button-raise: -2px;
    --button-corner-size: 18px;
    --corner-thickness: 3px;
}

.roll-trigger:focus-visible {
    outline: 2px solid rgba(198, 255, 170, 0.8);
    outline-offset: 4px;
}

.roll-trigger:active {
    --button-scale: 0.97;
    --button-raise: 0px;
}

.roll-trigger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    --button-scale: 1;
    --button-raise: 0px;
}

.roll-cancel {
    width: 100%;
    margin-top: 10px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 15px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffe2e2;
    background: linear-gradient(180deg, rgba(74, 4, 4, 0.95), rgba(36, 0, 0, 0.92));
    border: 1px solid rgba(255, 118, 118, 0.55);
    box-shadow: inset 0 0 18px rgba(255, 112, 112, 0.24), 0 10px 20px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.25s ease;
}

.roll-cancel:hover,
.roll-cancel:focus-visible {
    border-color: rgba(255, 142, 142, 0.78);
    box-shadow: inset 0 0 20px rgba(255, 142, 142, 0.28), 0 14px 24px rgba(0, 0, 0, 0.48);
    transform: translateY(-1px) scale(1.02);
}

.roll-cancel:focus-visible {
    outline: 2px solid rgba(255, 142, 142, 0.78);
    outline-offset: 3px;
}

.roll-cancel:active {
    transform: translateY(0) scale(0.98);
}

.roll-cancel:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.interface-footer {
    width: min(1565px, 100%);
    margin: clamp(16px, 2vw, 24px) auto 0;
    text-align: center;
    padding-block: clamp(12px, 1.8vw, 18px);
}

.site-footer__text {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.footer-credits {
    margin-top: 10px;
}

.footer-credits__summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    padding-right: 18px;
    user-select: none;
}

.footer-credits__summary::-webkit-details-marker {
    display: none;
}

.footer-credits__summary::after {
    content: "\25BC";
    font-size: 10px;
    letter-spacing: normal;
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

.footer-credits[open] .footer-credits__summary::after {
    transform: rotate(180deg) translateY(1px);
}

.footer-credits__list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    column-count: 3;
    column-gap: 24px;
    color: var(--text-tertiary);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: none;
}

.footer-credits__item {
    break-inside: avoid;
    margin-bottom: 6px;
}

.footer-credits__item a {
    color: inherit;
    text-decoration: underline;
}

.footer-credits__item-inspired {
    list-style: none;
    color: #c1d7ff;
    font-size: 19px;
}

.footer-credits__ellipsis::after {
    content: "";
    display: inline-block;
    animation: footer-credits-ellipsis 1.2s steps(4, end) infinite;
}

@keyframes footer-credits-ellipsis {
    0%   { content: ""; }
    25%  { content: "."; }
    50%  { content: ".."; }
    75%  { content: "..."; }
    100% { content: ""; }
}

.cutscene-video {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    object-fit: cover;
    z-index: 1001;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #000;
}

@media (max-width: 900px) {
    .footer-credits__list {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .footer-credits__list {
        column-count: 1;
    }
}

@media (max-width: 640px) {
    .biome-selector-row {
        gap: 12px;
    }

    .biome-selector-row > .form-field,
    .form-field--events {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .form-field--events .interface-select__menu {
        width: min(100%, calc(100vw - 32px));
    }
}

.cinematic-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 14, 0.55);
    display: none;
    opacity: 0;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(6px);
}

.cinematic-overlay--first-person {
    background: radial-gradient(circle at center, rgba(4, 12, 24, 0.75), rgba(0, 0, 0, 0.9));
    backdrop-filter: none;
}

.cinematic-overlay__loading {
    display: none;
    position: relative;
    z-index: 1;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #eaf8ff;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(4, 12, 24, 0.88);
    border: 1px solid rgba(127, 227, 255, 0.45);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.cinematic-overlay--loading .cinematic-overlay__loading {
    display: flex;
}

.cinematic-overlay--loading {
    z-index: 1002;
}

.cinematic-overlay__spinner {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border: 2px solid rgba(234, 248, 255, 0.3);
    border-top-color: #7fe3ff;
    border-radius: 50%;
    animation: cinematic-loading-spin 0.8s linear infinite;
}

@keyframes cinematic-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.first-person-cutscene-active {
    cursor: pointer;
}

.skip-cinematic-controls {
    position: fixed;
    top: clamp(8px, 2vw, 16px);
    right: clamp(8px, 2vw, 16px);
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    max-width: calc(100vw - 16px);
    z-index: 1002;
}

.skip-cinematic-button {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
    padding: 12px 18px;
    --button-background: rgba(6, 12, 24, 0.9);
    color: var(--text-primary);
    --button-border-color: rgba(127, 227, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    display: none;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.25s ease;
}

.skip-cinematic-button:hover,
.skip-cinematic-button:focus-visible {
    border-color: var(--accent);
    --button-scale: 1.03;
    --button-raise: -1px;
}

.skip-cinematic-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip-cinematic-button:active {
    --button-scale: 0.97;
    --button-raise: 0px;
}

@media (max-width: 480px) {
    .skip-cinematic-controls {
        gap: 6px;
        max-width: calc(100vw - 12px);
    }

    .skip-cinematic-button {
        padding: 9px 10px;
        letter-spacing: 0.08em;
        font-size: 10px;
    }
}

.harvester-curse {
    position: fixed;
    inset: 0;
    padding: clamp(12px, 4vw, 24px);
    overflow: hidden;
    pointer-events: none;
    z-index: 1100;
}

.harvester-curse__card {
    position: absolute;
    min-width: 120px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: #ffe6e6;
    box-shadow: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 16px rgba(255, 72, 72, 0.5);
    transform: rotate(var(--harvester-tilt, 0deg));
    animation: harvester-rumble var(--harvester-rumble-speed, 0.12s) infinite alternate ease-in-out;
    animation-delay: var(--harvester-delay, 0ms);
}

.harvester-curse__line {
    display: block;
    width: 100%;
    text-align: center;
}

.harvester-curse__line--i {
    filter: drop-shadow(0 0 6px rgba(255, 80, 80, 0.55));
}

.harvester-curse__line--jux {
    color: #b3006b;
    text-shadow: 0 0 10px rgba(215, 0, 90, 0.8), 0 0 14px rgba(120, 0, 60, 0.7);
    animation: harvester-jux var(--harvester-jux-speed, 0.08s) infinite alternate ease-in-out;
    letter-spacing: 0.28em;
}

@keyframes harvester-rumble {
    from {
        transform: translate(-3px, -2px) rotate(var(--harvester-tilt, 0deg));
    }

    to {
        transform: translate(4px, 3px) rotate(calc(var(--harvester-tilt, 0deg) + 1deg));
    }
}

@keyframes harvester-jux {
    from {
        transform: translate(-2px, 1px) scale(1.05);
    }

    to {
        transform: translate(3px, -1px) scale(1.12);
    }
}

.flushed-troll-signature {
    position: fixed;
    inset: 0;
    padding: clamp(12px, 4vw, 24px);
    overflow: hidden;
    pointer-events: none;
    z-index: 1110;
}

.flushed-troll-signature__card {
    position: absolute;
    min-width: min(260px, 78vw);
    padding: 12px 16px;
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(24px, 5vw, 52px);
    transform: translate(-50%, -50%) rotate(var(--flushed-troll-tilt, 0deg));
    animation: flushed-troll-rumble var(--flushed-troll-rumble-speed, 0.12s) infinite alternate ease-in-out;
    animation-delay: var(--flushed-troll-delay, 0ms);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.55));
}

.flushed-troll-signature__text.sigil-effect-outline-glitch {
    display: inline-block;
    max-width: 100%;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.85);
}

@keyframes flushed-troll-rumble {
    from {
        transform: translate(calc(-50% - 3px), calc(-50% - 2px)) rotate(var(--flushed-troll-tilt, 0deg));
    }

    to {
        transform: translate(calc(-50% + 4px), calc(-50% + 3px)) rotate(calc(var(--flushed-troll-tilt, 0deg) + 1deg));
    }
}
.roll-trigger.roll-trigger--remember {
    color: #edb4f7;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    text-shadow: 0 0 14px #e291ef55;
    --button-background: linear-gradient(115deg, rgb(69 34 95 / .7), rgb(117 59 108 / .7), rgb(78 43 119 / .7), rgb(124 59 101 / .7), rgb(69 34 95 / .7));
    --button-border-color: #bd79c9;
    --button-accent: #e3a1ef;
    background: var(--button-background);
    background-size: 300% 300%;
    animation: remember-gradient 7s ease-in-out infinite;
}
.roll-trigger__memory {
    background: linear-gradient(110deg, #efb4f3, #c3a0f8, #f6b7dc, #efb4f3);
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: remember-gradient 5s ease-in-out infinite reverse;
}
@keyframes remember-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.roll-trigger--remember,
.roll-trigger--remember:hover,
.roll-trigger--remember:focus-visible {
    border-color: #bd79c9;
    box-shadow: inset 0 0 22px #c477db20, 0 0 16px #c16ada44, 0 12px 24px #0006;
}
.roll-trigger--remember:focus-visible { outline-color: #edb4f7; }
.roll-trigger--remember::after { color: #d3a3df; font-style: normal; }
.biome-buffs {
    position: fixed;
    left: 50%;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 90;
    max-width: calc(100vw - 24px);
    pointer-events: none;
}
.biome-buffs[hidden], .biome-buffs [hidden] { display: none; }
.biome-buff {
    display: flex;
    flex: 0 0 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 52px;
    height: 58px;
    padding: 4px;
    color: var(--text-primary);
    background: var(--surface-gradient);
    border: 1px solid var(--surface-border);
    border-radius: 0;
    box-shadow: 0 4px 18px #0008;
    font: inherit;
    cursor: pointer;
    pointer-events: auto;
}
.biome-buff img { object-fit: contain; }
.biome-buffs__reset { flex-basis: 82px; width: 82px; }
.biome-buffs__reset > i { font-size: 18px; }
.biome-buff span { font-size: 10px; line-height: 13px; font-weight: 700; }
.biome-buff .biome-buff__symbol { font-size: 26px; line-height: 28px; }
.biome-buff:hover, .biome-buff[aria-expanded="true"], .biome-buff:focus-visible { border-color: var(--accent-strong); background: var(--surface-overlay-gradient); }
.biome-buff:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.biome-buff--ready { box-shadow: 0 0 16px #c6a5ff99; border-color: #f0e3ff; }
.biome-buff--jade { color: #a4efc1; }
.biome-buff--kyawthuite { color: #f3c4e0; }
.biome-buff--twilight { color: #c4c1ff; }
.biome-buff--singularity { color: #ffe8b8; border-color: #ffc06788; background: #302314f2; }
.biome-buff--singularity:hover, .biome-buff--singularity[aria-expanded="true"] { border-color: #ffe8b8; background: #4a341d; }
.biome-buffs--singularity .biome-buffs__tooltip { color: #ffe8b8; border-color: #ffc06788; }
.biome-buffs__tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: min(360px, calc(100vw - 32px));
    box-sizing: border-box;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    padding: 16px;
    color: var(--text-primary);
    background: var(--surface-overlay-gradient);
    border: 1px solid var(--surface-border);
    border-radius: 0;
    box-shadow: 0 8px 28px #0009;
    font-size: 13px;
    line-height: 1.5;
    pointer-events: auto;
}
.biome-buffs__tooltip p { margin: 8px 0; }
.biome-buffs__tooltip small { color: var(--text-secondary); }
.biome-buffs[data-biome="anotherRealm"] { --dev-buff-rgb: 213 153 255; }
.biome-buffs[data-biome="mastermind"] { --dev-buff-rgb: 134 213 245; }
.biome-buffs[data-biome="fullMoon"] { --dev-buff-rgb: 255 128 144; }
.biome-buffs[data-biome="edict"] { --dev-buff-rgb: 245 226 182; }
.biome-buff--dev,
.biome-buffs[data-biome="anotherRealm"] .biome-buffs__tooltip,
.biome-buffs[data-biome="mastermind"] .biome-buffs__tooltip,
.biome-buffs[data-biome="fullMoon"] .biome-buffs__tooltip,
.biome-buffs[data-biome="edict"] .biome-buffs__tooltip {
    color: rgb(var(--dev-buff-rgb));
    border-color: rgb(var(--dev-buff-rgb) / 0.55);
}
.biome-buffs__source { font-size: 11px; color: var(--text-secondary); }
.biome-buffs__choices { display: grid; gap: 8px; margin: 12px 0; }
.biome-buffs__choices .interface-button { width: 100%; padding: 10px; white-space: normal; line-height: 1.5; }
.biome-buffs__choices [aria-pressed="true"] {
    color: rgb(var(--dev-buff-rgb));
    border-color: rgb(var(--dev-buff-rgb) / 0.8);
    background: rgb(var(--dev-buff-rgb) / 0.13);
    box-shadow: inset 3px 0 rgb(var(--dev-buff-rgb) / 0.8);
}
.biome-buffs__moons { list-style: none; display: grid; gap: 5px; margin: 12px 0; padding: 0; color: #a9a3b8; }
.radiant-moon--collected { color: #e4d6ff; }
.session-return {
    position: fixed;
    z-index: 1100;
    left: 50%;
    bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: min(410px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid var(--surface-border);
    background: var(--surface-overlay-gradient);
    box-shadow: 0 12px 36px #0008;
    box-sizing: border-box;
}
.session-return[hidden] { display: none; }
.session-return p { margin: 0 0 10px; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.session-return__actions { display: flex; align-items: stretch; gap: 8px; }
.session-return__actions > :first-child { flex: 1; min-width: 0; font-size: 12px; padding: 12px; }
.session-return__dismiss { flex: 0 0 40px; padding: 8px; font-size: 20px; }
body:has(.modal-overlay:not([hidden]), .cutscene-warning-overlay:not([hidden])) .session-return { visibility: hidden; pointer-events: none; }
.biome-buffs__refresh { width: 100%; margin-top: 4px; }
.biome-buffs__choices .interface-select__menu {
    position: relative;
    top: auto;
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    max-height: min(290px, 40dvh);
}
.radiant-moons {
    position: fixed;
    top: calc(22px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    padding: 20px 0;
    z-index: 92;
    pointer-events: none;
}
.radiant-moons[hidden] { display: none; }
.radiant-moons__sky {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vw, 22px);
    height: 46px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.radiant-moons__moon {
    width: 26px;
    height: 26px;
    color: #b9a2ff;
    animation: radiant-moon-sway 5s ease-in-out infinite;
    animation-delay: calc(var(--moon-index) * -0.28s);
}
.radiant-moons__moon:nth-child(2), .radiant-moons__moon:nth-child(6) { width: 30px; height: 30px; }
.radiant-moons__moon:nth-child(3), .radiant-moons__moon:nth-child(5) { width: 34px; height: 34px; }
.radiant-moons__moon:nth-child(4) { width: 42px; height: 42px; color: #9395ff; }
.radiant-moons__moon svg { display: block; width: 100%; height: 100%; overflow: visible; }
.radiant-moons__phase {
    opacity: 0;
    color: #b9a2ff;
    filter: drop-shadow(0 0 5px currentColor);
    transition: opacity 0.7s ease;
    animation: radiant-moon-color 12s ease-in-out infinite;
}
.radiant-moons__unrolled { fill: #0b0816; opacity: 1; transition: opacity 0.7s ease; }
.radiant-moons__moon--collected .radiant-moons__phase { opacity: 1; }
.radiant-moons__moon--collected .radiant-moons__unrolled { opacity: 0; }
@keyframes radiant-moon-sway {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-20px); }
    75% { transform: translateY(20px); }
}
@keyframes radiant-moon-color {
    0%, 50%, 100% { color: #b9a2ff; }
    16.667%, 83.333% { color: #8fbfff; }
    33.333%, 66.667% { color: #f0a8dc; }
}
.cinematic-overlay--blackout { background: #000; backdrop-filter: none; }
.cinematic-overlay--fading .cinematic-overlay__loading { display: none; }
.skip-cinematic-controls {
    top: 0;
    right: 0;
    padding: max(14px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 14px 14px;
    min-height: 70px;
    box-sizing: border-box;
}
.skip-cinematic-actions {
    display: flex;
    gap: 8px;
    transform: translateY(calc(-100% - 24px - env(safe-area-inset-top, 0px)));
    opacity: 0;
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.skip-cinematic-controls--open .skip-cinematic-actions,
.skip-cinematic-actions:focus-within,
.skip-cinematic-controls:has(.skip-cinematic-reveal:focus-visible) .skip-cinematic-actions {
    transform: translateY(0);
    opacity: 1;
}
.skip-cinematic-reveal { display: none; }
@media (hover: hover) and (pointer: fine) {
    .skip-cinematic-controls:hover .skip-cinematic-actions { transform: translateY(0); opacity: 1; }
}
@media (hover: none), (pointer: coarse) {
    .skip-cinematic-controls { padding-right: max(68px, calc(58px + env(safe-area-inset-right, 0px))); }
    .skip-cinematic-actions { flex-direction: column; align-items: flex-end; }
    .skip-cinematic-reveal {
        display: grid;
        place-items: center;
        position: absolute;
        top: max(10px, env(safe-area-inset-top, 0px));
        right: max(10px, env(safe-area-inset-right, 0px));
        width: 44px;
        height: 44px;
        padding: 10px;
        color: #e6ddf5;
        background: #141020aa;
        border: 1px solid #b39dc04d;
        opacity: 0.7;
        cursor: pointer;
        transition: opacity 0.2s ease;
    }
    .skip-cinematic-reveal[aria-expanded="true"], .skip-cinematic-reveal:focus-visible { opacity: 1; }
}
.app-notifications {
    position: fixed;
    top: max(18px, env(safe-area-inset-top, 0px));
    right: max(18px, env(safe-area-inset-right, 0px));
    z-index: 1200;
    display: grid;
    gap: 10px;
    width: min(310px, calc(100vw - 36px));
    pointer-events: none;
}
body:has(.skip-cinematic-controls[style*="flex"]) .app-notifications { top: calc(140px + env(safe-area-inset-top, 0px)); }
.app-notification {
    padding: 14px 16px;
    border: 1px solid #b6a0dc80;
    border-left: 3px solid #c4adf5;
    background: #1a142bf2;
    color: #f1eaff;
    box-shadow: 0 8px 24px #0006;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.3s ease;
}
.app-notification--visible { opacity: 1; transform: translateY(0); }
.audio-modal__shortcuts { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
@media (prefers-reduced-motion: reduce) {
    .radiant-moons__moon, .radiant-moons__phase, .roll-trigger--remember, .roll-trigger__memory { animation: none !important; }
    .skip-cinematic-actions, .app-notification, .radiant-moons__phase, .radiant-moons__unrolled { transition: none !important; }
}
body.reduce-motion .radiant-moons__moon,
body.reduce-motion .radiant-moons__phase,
body.reduce-motion .roll-trigger--remember,
body.reduce-motion .roll-trigger__memory,
body.quality-no-ui-animations .radiant-moons__moon,
body.quality-no-ui-animations .radiant-moons__phase,
body.quality-no-ui-animations .roll-trigger__memory { animation: none !important; }
body.quality-no-ui-animations .skip-cinematic-actions,
body.quality-no-ui-animations .app-notification { transition: none !important; }
@media (max-width: 360px) {
    .biome-buffs { gap: 5px; }
    .biome-buff { flex-basis: 48px; width: 48px; }
}
