:root {
    --t3dd26-dark: #1e1e1e;
    --t3dd26-white: #ffffff;
    --t3dd26-primary: #f18518;
    --t3dd26-secondary: #38a4ff;
    --t3dd26-tertiary: #9d64ff;
    --t3dd26-quaternary: #f8c17f;
    --t3dd26-lcars-red: #cd6567;
    --t3dd26-lcars-peach: #fecb96;
    --t3dd26-lcars-purple: #d296ce;
    --t3dd26-lcars-orange: #ff9964;
    --t3dd26-vote-positive: #35d07f;
    --t3dd26-vote-positive-hover: #68e3a3;
    --t3dd26-vote-negative: #e94b57;
    --t3dd26-vote-negative-hover: #f1757e;
}

html:has(body.t3dd26-theme),
body.t3dd26-theme {
    background: var(--t3dd26-dark);
    color: var(--t3dd26-white);
}

body.t3dd26-theme .navbar {
    background-color: var(--t3dd26-dark) !important;
    border-bottom: 2px solid var(--t3dd26-primary);
}

body.t3dd26-theme .navbar-brand-logo-normal {
    width: min(385px, 75vw);
    height: auto;
}

body.t3dd26-theme .navbar-toggler {
    border-color: var(--t3dd26-quaternary);
}

body.t3dd26-theme .navbar-toggler-icon {
    filter: invert(1);
}

body.t3dd26-theme .nav-link,
body.t3dd26-theme a:not(.btn) {
    color: var(--t3dd26-secondary);
}

body.t3dd26-theme .nav-link:hover,
body.t3dd26-theme a:not(.btn):hover {
    color: var(--t3dd26-quaternary);
}

body.t3dd26-theme h1,
body.t3dd26-theme h2,
body.t3dd26-theme h3,
body.t3dd26-theme h4,
body.t3dd26-theme h5,
body.t3dd26-theme h6 {
    color: var(--t3dd26-primary);
    font-weight: 300;
}

body.t3dd26-theme .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--t3dd26-white);
    --bs-table-border-color: var(--t3dd26-lcars-red);
    color: var(--t3dd26-white);
}

body.t3dd26-theme .form-control {
    color: var(--t3dd26-white);
    background-color: #2a2a2a;
    border-color: var(--t3dd26-lcars-red);
}

body.t3dd26-theme .btn-primary {
    color: var(--t3dd26-dark);
    background-color: var(--t3dd26-primary);
    border-color: var(--t3dd26-primary);
}

body.t3dd26-theme .btn-primary:hover {
    background-color: var(--t3dd26-quaternary);
    border-color: var(--t3dd26-quaternary);
}

body.t3dd26-theme .btn-vote {
    border-radius: 3rem;
    box-shadow: 0 0 24px rgb(0 0 0 / 35%);
}

body.t3dd26-theme .btn-vote.btn-like {
    background-color: var(--t3dd26-vote-positive);
    border-color: var(--t3dd26-vote-positive-hover);
}

body.t3dd26-theme .btn-vote.btn-like:hover {
    background-color: var(--t3dd26-vote-positive-hover);
}

body.t3dd26-theme .btn-vote.btn-like svg {
    fill: var(--t3dd26-dark);
}

body.t3dd26-theme .btn-vote.btn-neutral {
    background-color: var(--t3dd26-secondary);
    border-color: var(--t3dd26-lcars-peach);
}

body.t3dd26-theme .btn-vote.btn-neutral:hover {
    background-color: var(--t3dd26-lcars-peach);
}

body.t3dd26-theme .btn-vote.btn-neutral svg {
    fill: var(--t3dd26-dark);
}

body.t3dd26-theme .btn-vote.btn-dislike {
    background-color: var(--t3dd26-vote-negative);
    border-color: var(--t3dd26-vote-negative-hover);
}

body.t3dd26-theme .btn-vote.btn-dislike:hover {
    background-color: var(--t3dd26-vote-negative-hover);
}

body.t3dd26-theme .btn-vote.btn-dislike svg {
    fill: var(--t3dd26-dark);
}

body.t3dd26-theme .alert h1 {
    font-weight: 600;
}

/* Session voting kiosk */
body.t3dd26-theme:has(.btn-vote) {
    min-height: 100vh;
    overflow: hidden;
    background: #111114;
    text-transform: uppercase;
    letter-spacing: .08em;
}

body.t3dd26-theme:has(.btn-vote) > .navbar {
    position: relative;
    min-height: 112px;
    margin: 0 4vw !important;
    padding: 14px 2vw 12px clamp(150px, 17vw, 220px);
    border: 0;
    background: #111114 !important;
}

body.t3dd26-theme:has(.btn-vote) > .navbar::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: clamp(130px, 14vw, 182px);
    height: 3px;
    background: #f28c28;
}

body.t3dd26-theme:has(.btn-vote) > .navbar::after {
    content: "SESSION FEEDBACK";
    margin-left: auto;
    color: #f28c28;
    font-size: clamp(.72rem, 1.3vw, 1rem);
    font-weight: 700;
    letter-spacing: .28em;
}

body.t3dd26-theme:has(.btn-vote) > .navbar .container-fluid {
    display: contents;
}

body.t3dd26-theme:has(.btn-vote) > .navbar .p-3 {
    position: absolute;
    left: clamp(130px, 14vw, 182px);
    padding: 0 !important;
}

body.t3dd26-theme:has(.btn-vote) > .navbar .navbar-brand-logo-normal {
    width: clamp(170px, 18vw, 235px);
    max-height: 78px;
}

body.t3dd26-theme:has(.btn-vote) > .container-fluid {
    height: calc(100vh - 112px);
    padding: 0 4vw 3vh;
}

body.t3dd26-theme > .container-fluid > .vote-wrapper:has(.btn-vote) {
    position: relative;
    height: 100%;
    padding-left: clamp(112px, 13vw, 170px);
}

body.t3dd26-theme > .container-fluid > .vote-wrapper:has(.btn-vote)::before {
    content: "";
    position: absolute;
    top: -112px;
    right: auto;
    bottom: 0;
    left: 0;
    width: clamp(82px, 9.5vw, 125px);
    border-radius: 38px 0 0 38px;
    background:
        linear-gradient(to bottom,
            #f28c28 0 31%,
            #111114 31% 32.5%,
            #c9a86a 32.5% 49%,
            #111114 49% 50.5%,
            #9c7bb9 50.5% 67%,
            #111114 67% 68.5%,
            #f28c28 68.5% 100%);
    animation: lcars-panel-pulse 7s ease-in-out infinite;
}

body.t3dd26-theme > .container-fluid > .vote-wrapper:has(.btn-vote)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: clamp(112px, 13vw, 170px);
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(to right,
        #c9a86a 0 49%,
        #111114 49% 50%,
        #f28c28 50% 67%,
        #111114 67% 68%,
        #9c7bb9 68% 100%);
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) > .vote-wrapper {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    padding: clamp(28px, 4vh, 44px) 0 34px !important;
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) .text-center {
    padding-bottom: clamp(30px, 4.5vh, 48px) !important;
    text-align: left !important;
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) h1 {
    margin-bottom: clamp(16px, 2.5vh, 26px);
    color: #c9a86a;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) h2 {
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: #f3f0ea;
    font-size: clamp(2.15rem, 4.3vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: .035em;
    text-overflow: ellipsis;
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) .d-flex {
    align-self: start;
    gap: clamp(32px, 4vw, 56px);
    height: min(42vh, 340px) !important;
    min-height: 0;
    padding-bottom: 22px;
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) .btn-vote {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 8px;
    width: auto;
    height: 100%;
    min-height: 0;
    margin: 0 !important;
    padding: clamp(22px, 3vh, 38px) !important;
    border-width: 0;
    border-style: solid;
    box-shadow: none;
    transition: filter 120ms ease, transform 120ms ease;
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) .btn-vote::after {
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    font-weight: 900;
    letter-spacing: .2em;
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) .btn-vote:active {
    filter: brightness(1.3);
    transform: scale(.97);
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) .btn-vote:focus-visible {
    outline: 5px solid #f3f0ea;
    outline-offset: 5px;
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) .btn-vote.disabled {
    pointer-events: none;
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) .btn-vote svg {
    width: min(48%, 190px);
    height: min(62%, 220px);
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) .btn-like {
    border-radius: 28px 8px 8px 8px;
    background: #2fce7c;
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) .btn-like:hover {
    background: #2fce7c;
    filter: brightness(1.08);
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) .btn-like::after {
    content: "GUT";
    color: #0a3d22;
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) .btn-like svg {
    fill: #0a3d22;
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) .btn-dislike {
    border-radius: 8px 8px 8px 28px;
    background: #e8484f;
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) .btn-dislike:hover {
    background: #e8484f;
    filter: brightness(1.08);
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) .btn-dislike::after {
    content: "SCHLECHT";
    color: #4a0e12;
}

body.t3dd26-theme .vote-wrapper:has(.btn-vote) .btn-dislike svg {
    fill: #4a0e12;
}

body.t3dd26-theme:has(.btn-vote) .success-message {
    inset: 18px 24px auto auto;
    z-index: 2000;
    width: min(580px, calc(100vw - 48px));
    margin: 0 !important;
    background: transparent;
    pointer-events: none;
}

body.t3dd26-theme:has(.btn-vote) .success-message .alert {
    width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 28px 8px 8px 28px;
    background: #9c7bb9;
    box-shadow: 0 10px 30px rgb(0 0 0 / 45%);
}

body.t3dd26-theme:has(.btn-vote) .success-message .alert-inner {
    padding: 22px 30px !important;
}

body.t3dd26-theme:has(.btn-vote) .success-message h1 {
    margin: 0;
    color: #111114;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: .06em;
}

body.t3dd26-theme:has(.btn-vote) .success-message h1::after {
    content: " 🖖";
    font-size: 1.35em;
}

@keyframes lcars-panel-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .88; }
}

@media (max-height: 680px) {
    body.t3dd26-theme:has(.btn-vote) > .navbar {
        min-height: 88px;
    }

    body.t3dd26-theme:has(.btn-vote) > .container-fluid {
        height: calc(100vh - 88px);
    }

    body.t3dd26-theme > .container-fluid > .vote-wrapper:has(.btn-vote)::before {
        top: -88px;
    }

    body.t3dd26-theme .vote-wrapper:has(.btn-vote) .d-flex {
        height: min(40vh, 280px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.t3dd26-theme > .container-fluid > .vote-wrapper:has(.btn-vote)::before {
        animation: none;
    }
}
