/* ASTRONAUTENBAR · MIND FIST TOURNAMENT */

.philosophen-turnier-test-root,
.philosophen-turnier-test-page {
    min-height: 100%;
    background: #07090d;
}

.philosophen-turnier-test-page {
    --philosophen-amber: #f0a54d;
    --philosophen-amber-active: #ffd49a;
    --philosophen-line: rgba(240, 165, 77, .32);
    --philosophen-muted: rgba(240, 225, 196, .66);
    --duel-opponent: #f0a54d;
    --duel-player: #48c8ff;
    --duel-portrait-size: clamp(160px, 26vw, 240px);
    --hand-display-scale: 1.32;
    --olymp-desktop-offset: 190px;
    background:
        radial-gradient(ellipse at 50% 28%, rgba(240, 165, 77, .065), transparent 42%),
        linear-gradient(180deg, #07090d 0%, #090b10 55%, #050608 100%);
    overflow-x: hidden;
}

.philosophen-turnier-test-shell {
    width: min(900px, calc(100% - 24px));
}

.mind-fist-cover {
    position: fixed;
    z-index: 900;
    inset: 0;
    display: grid;
    overflow: hidden;
    place-items: center;
    background: #030407;
}

.mind-fist-cover[hidden] { display: none; }

.mind-fist-cover-art {
    position: relative;
    width: min(100vw, 66.6667dvh);
    height: min(100dvh, 150vw);
    aspect-ratio: 2 / 3;
}

.mind-fist-cover-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.mind-fist-cover-active { overflow: hidden; }
.mind-fist-cover-active .philosophen-turnier-test-shell { visibility: hidden; }

.philosophen-turnier-test {
    position: relative;
    isolation: isolate;
    padding: 20px 0 34px;
}

.philosophen-turnier-test::before {
    position: absolute;
    z-index: -1;
    inset: 92px 0 76px;
    content: "";
    pointer-events: none;
    opacity: .24;
    background: repeating-linear-gradient(180deg, rgba(255, 238, 207, .04) 0 1px, transparent 1px 4px);
}

.philosophen-turnier-test-title-region {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    text-align: left;
}

.philosophen-turnier-test-title-region h1 {
    margin: 0;
    color: rgba(240, 235, 222, .94);
    font-size: clamp(1.42rem, 4.6vw, 2.5rem);
    line-height: 1.14;
    letter-spacing: .085em;
    text-shadow: 0 0 4px rgba(255, 224, 163, .68), 0 0 12px rgba(240, 165, 77, .25);
}

.philosophen-turnier-test [hidden] {
    display: none !important;
}

.philosophen-turnier-test-screen {
    width: 100%;
}

.philosophen-turnier-test-screen > h2 {
    margin: 0 0 24px;
    color: rgba(247, 237, 218, .96);
    font-size: clamp(1.45rem, 4vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: .12em;
    text-align: center;
    text-shadow: 0 0 3px rgba(255, 236, 202, .62), 0 0 13px rgba(240, 165, 77, .20);
}

.philosophen-turnier-test-character-select > h2 {
    margin-bottom: 20px;
    font-size: clamp(.72rem, 1.7vw, .88rem);
    letter-spacing: .19em;
    animation: mindFistChoosePulse 2.8s steps(2, end) infinite;
}

.philosophen-turnier-test-character-select {
    padding: 18px 0 8px;
    text-align: center;
}

.philosophen-turnier-test-roster {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
}

.philosophen-turnier-test-character {
    display: grid;
    grid-template-rows: 1fr auto;
    justify-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 170px;
    padding: 7px 5px 9px;
    border: 1px solid transparent;
    border-radius: 0;
    outline: none;
    background: rgba(8, 10, 14, .28);
    color: rgba(240, 225, 196, .70);
    font: inherit;
    font-size: clamp(.6rem, 1.5vw, .72rem);
    line-height: 1.25;
    letter-spacing: .075em;
    cursor: pointer;
}

.philosophen-turnier-test-character img {
    display: block;
    width: min(100%, 132px);
    height: auto;
    align-self: end;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.philosophen-turnier-test-character:hover,
.philosophen-turnier-test-character:focus-visible {
    border-color: rgba(72, 200, 255, .54);
    color: rgba(222, 247, 255, .94);
    background: rgba(18, 46, 58, .34);
}

.philosophen-turnier-test-character.is-selected {
    border-color: var(--duel-player);
    background: rgba(13, 70, 96, .48);
    color: #dff8ff;
    text-shadow: 0 0 5px rgba(72, 200, 255, .54);
    box-shadow: inset 0 0 0 1px rgba(190, 240, 255, .22), 0 0 12px rgba(72, 200, 255, .30);
}

.philosophen-turnier-test-characteristic {
    min-height: 3.2em;
    max-width: 760px;
    margin: 16px auto 14px;
    color: rgba(214, 246, 255, .94);
    font-size: clamp(.82rem, 1.9vw, 1rem);
    line-height: 1.55;
    letter-spacing: .055em;
    text-align: center;
    text-shadow: 0 0 2px rgba(224, 250, 255, .70), 0 0 9px rgba(72, 200, 255, .35), 0 0 18px rgba(72, 200, 255, .12);
}

#philosophen-turnier-test-tournament-start:not(:disabled) {
    animation: philosophenTurnierStartReady 1.8s ease-in-out infinite;
}

.philosophen-turnier-test-character-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.philosophen-turnier-test-character-actions[hidden] { display: none; }

.philosophen-turnier-test-worldview {
    display: grid;
    min-height: 560px;
    padding: 38px 0 24px;
    align-content: center;
}

.philosophen-turnier-test-worldview > h2 {
    margin-bottom: clamp(30px, 5vw, 52px);
    font-size: clamp(1.12rem, 3vw, 1.62rem);
    animation: mindFistWorldviewQuestionBlink 2.8s steps(2, end) infinite;
}

.philosophen-turnier-test-worldview-choices {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(14px, 3vw, 30px);
}

.philosophen-turnier-test-worldview-choice {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 258px;
    overflow: hidden;
    padding: clamp(24px, 4vw, 40px) clamp(18px, 3vw, 30px);
    border: 1px solid;
    border-radius: 0;
    outline: none;
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s linear, color .18s linear, background-color .18s linear, box-shadow .18s linear;
}

.philosophen-turnier-test-worldview-choice::before {
    position: absolute;
    z-index: 0;
    inset: -14%;
    content: "";
    pointer-events: none;
}

.philosophen-turnier-test-worldview-choice[data-worldview="chance"] {
    border-color: rgba(224, 107, 216, .72);
    background: rgba(22, 7, 25, .88);
    color: #ffe4fb;
    box-shadow: inset 0 0 0 1px rgba(255, 182, 242, .08), inset 0 0 42px rgba(177, 55, 167, .08), 0 0 15px rgba(205, 74, 194, .12);
}

.philosophen-turnier-test-worldview-choice[data-worldview="chance"]::before {
    opacity: .62;
    background:
        radial-gradient(circle at 28% 34%, rgba(235, 103, 218, .22), transparent 24%),
        radial-gradient(circle at 72% 66%, rgba(126, 74, 190, .18), transparent 29%),
        repeating-linear-gradient(127deg, transparent 0 22px, rgba(255, 185, 236, .035) 23px, transparent 25px 49px);
    animation: mindFistChanceField 7.6s steps(10, end) infinite alternate;
}

.philosophen-turnier-test-worldview-choice[data-worldview="influence"] {
    border-color: rgba(82, 211, 228, .72);
    background: rgba(5, 20, 25, .9);
    color: #dffcff;
    box-shadow: inset 0 0 0 1px rgba(169, 245, 255, .08), inset 0 0 42px rgba(45, 174, 194, .08), 0 0 15px rgba(53, 191, 212, .12);
}

.philosophen-turnier-test-worldview-choice[data-worldview="influence"]::before {
    opacity: .62;
    background:
        radial-gradient(circle at 28% 34%, rgba(103, 218, 235, .22), transparent 24%),
        radial-gradient(circle at 72% 66%, rgba(74, 166, 190, .18), transparent 29%),
        repeating-linear-gradient(127deg, transparent 0 22px, rgba(185, 245, 255, .035) 23px, transparent 25px 49px);
    scale: -1 1;
    animation: mindFistChanceField 7.6s steps(10, end) infinite alternate;
}

.philosophen-turnier-test-worldview-choice > span {
    position: relative;
    z-index: 1;
    align-self: end;
    font-size: clamp(1.08rem, 2.7vw, 1.52rem);
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: .075em;
    text-shadow: 0 0 3px rgba(255, 239, 207, .66), 0 0 12px rgba(240, 165, 77, .30);
}

.philosophen-turnier-test-worldview-choice > small {
    position: relative;
    z-index: 1;
    align-self: start;
    margin-top: 20px;
    color: rgba(236, 227, 207, .76);
    font-size: clamp(.72rem, 1.6vw, .88rem);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: .075em;
    text-shadow: 0 0 8px rgba(240, 165, 77, .16);
}

.philosophen-turnier-test-worldview-or {
    display: grid;
    min-width: 42px;
    place-items: center;
    color: rgba(240, 225, 196, .58);
    font-size: .72rem;
    letter-spacing: .16em;
    text-shadow: 0 0 8px rgba(240, 165, 77, .18);
}

.philosophen-turnier-test-worldview-choice[data-worldview="chance"]:hover,
.philosophen-turnier-test-worldview-choice[data-worldview="chance"]:focus-visible,
.philosophen-turnier-test-worldview-choice[data-worldview="chance"][aria-pressed="true"] {
    border-color: rgba(255, 190, 246, .98);
    background-color: rgba(38, 9, 40, .96);
    color: #fff5fe;
    box-shadow: inset 0 0 0 1px rgba(255, 213, 249, .28), inset 0 0 48px rgba(214, 72, 200, .15), 0 0 22px rgba(225, 91, 211, .34);
}

.philosophen-turnier-test-worldview-choice[data-worldview="influence"]:hover,
.philosophen-turnier-test-worldview-choice[data-worldview="influence"]:focus-visible,
.philosophen-turnier-test-worldview-choice[data-worldview="influence"][aria-pressed="true"] {
    border-color: rgba(185, 249, 255, .98);
    background-color: rgba(7, 36, 43, .96);
    color: #f2feff;
    box-shadow: inset 0 0 0 1px rgba(208, 251, 255, .27), inset 0 0 48px rgba(49, 192, 211, .14), 0 0 22px rgba(72, 213, 231, .32);
}

.philosophen-turnier-test-worldview-choice:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 3px;
}

.philosophen-turnier-test-worldview-choice[aria-pressed="true"]::before {
    opacity: .8;
}

.philosophen-turnier-test-round-intro {
    min-height: 560px;
    padding: 32px 0 12px;
    text-align: center;
}

.philosophen-turnier-test-round-intro > h2 {
    margin-bottom: 34px;
    font-size: clamp(2.4rem, 7vw, 4.4rem);
    animation: mindFistRoundTitleBlink 2.2s steps(2, end) infinite;
}

.philosophen-turnier-test-intro-duel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
    align-items: start;
}

.philosophen-turnier-test-intro-side {
    display: grid;
    grid-template-rows: 240px auto minmax(2.5em, auto) auto;
    align-content: start;
    justify-items: center;
    min-width: 0;
    min-height: 318px;
}

.philosophen-turnier-test-intro-portrait-stage {
    position: relative;
    display: grid;
    width: min(100%, 240px);
    height: 240px;
    align-items: end;
    justify-items: center;
}

.philosophen-turnier-test-intro-side img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.philosophen-turnier-test-search {
    position: absolute;
    z-index: 2;
    top: -18px;
    left: 50%;
    display: flex;
    width: max-content;
    max-width: 100%;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    color: rgba(255, 225, 180, .82);
    font-size: .66rem;
    letter-spacing: .09em;
    text-shadow: 0 0 7px rgba(240, 165, 77, .35);
    transform: translateX(-50%);
}

.philosophen-turnier-test-search span {
    color: var(--duel-opponent);
    font-size: 1.2rem;
    letter-spacing: .12em;
    animation: philosophenTurnierSearchPulse 1s steps(3, end) infinite;
}

.philosophen-turnier-test-intro-opponent.is-searching img.is-scanning {
    animation: philosophenTurnierCandidateScan .3s steps(2, end) both;
}

.philosophen-turnier-test-intro-opponent.is-locked img {
    animation: philosophenTurnierCandidateLock .46s cubic-bezier(.2, .78, .22, 1) both;
}

.philosophen-turnier-test-role {
    margin-top: 8px;
    color: var(--philosophen-muted);
    font-size: .68rem;
    letter-spacing: .14em;
}

.philosophen-turnier-test-intro-name {
    margin-top: 5px;
    font-size: clamp(1.15rem, 3vw, 1.7rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: .055em;
}

.philosophen-turnier-test-intro-opponent .philosophen-turnier-test-intro-name {
    color: var(--duel-opponent);
    text-shadow: 0 0 2px rgba(255, 228, 178, .72), 0 0 10px rgba(240, 165, 77, .34);
}

.philosophen-turnier-test-intro-player .philosophen-turnier-test-intro-name {
    color: var(--duel-player);
    text-shadow: 0 0 2px rgba(209, 246, 255, .74), 0 0 10px rgba(72, 200, 255, .34);
}

.philosophen-turnier-test-intro-versus {
    align-self: start;
    margin-top: 112px;
    color: rgba(247, 231, 201, .74);
    font-size: 1.15rem;
    letter-spacing: .14em;
    text-align: center;
}

.philosophen-turnier-test-wisdom {
    width: min(100%, 620px);
    min-height: 1.5em;
    margin: 20px auto 18px;
    color: #f7e7c9;
    font-size: clamp(.86rem, 2.2vw, 1.08rem);
    line-height: 1.45;
    letter-spacing: .075em;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .94), 0 0 8px rgba(240, 165, 77, .24);
}

.philosophen-turnier-test-intro-wisdom {
    width: min(100%, 760px);
    min-height: 3.7em;
    margin: 22px auto 22px;
    color: #ffc77e;
    font-size: clamp(1rem, 2.4vw, 1.22rem);
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: .055em;
    text-align: center;
    text-shadow: 0 0 2px rgba(255, 231, 194, .68), 0 0 9px rgba(240, 165, 77, .38), 0 0 18px rgba(240, 165, 77, .13);
}

.philosophen-turnier-test-round-intro > .philosophen-turnier-test-control {
    display: grid;
    margin: 0 auto;
    place-items: center;
}

.philosophen-turnier-test-winner,
.philosophen-turnier-test-end-screen {
    min-height: 570px;
    padding: 38px 0 20px;
    text-align: center;
}

.philosophen-turnier-test-winner-portrait {
    display: block;
    width: min(62vw, 300px);
    height: auto;
    margin: 0 auto;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 14px rgba(240, 165, 77, .16));
}

.philosophen-turnier-test-winner-name {
    display: block;
    margin-top: 10px;
    color: var(--philosophen-amber-active);
    font-size: clamp(1.55rem, 4.8vw, 2.65rem);
    font-weight: 400;
    letter-spacing: .075em;
    text-shadow: 0 0 2px rgba(255, 236, 202, .75), 0 0 12px rgba(240, 165, 77, .32);
}

.philosophen-turnier-test-winner .philosophen-turnier-test-wisdom {
    width: min(100%, 760px);
    min-height: 3.7em;
    margin: 24px auto 28px;
    color: #f7e7c9;
    font-size: clamp(1.08rem, 2.8vw, 1.38rem);
    font-weight: 600;
    line-height: 1.58;
    text-align: center;
    text-shadow: 0 0 2px rgba(255, 231, 194, .70), 0 0 10px rgba(240, 165, 77, .32);
}

.philosophen-turnier-test-winner[data-winner-side="player"] .philosophen-turnier-test-winner-name {
    color: var(--duel-player);
    text-shadow: 0 0 2px rgba(209, 246, 255, .78), 0 0 12px rgba(72, 200, 255, .36);
}

.philosophen-turnier-test-winner[data-tournament-complete="true"] {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto minmax(250px, 1fr) auto auto auto;
    align-items: start;
    min-height: 0;
    aspect-ratio: 1448 / 1086;
    padding: clamp(22px, 3.5vw, 38px) clamp(14px, 4vw, 42px) clamp(20px, 3vw, 30px);
    overflow: hidden;
    background: #050608 url("/images/programme/mind-fist/mind-fist-winner-background.png") center top / contain no-repeat;
}

.philosophen-turnier-test-winner[data-tournament-complete="true"]::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: "";
    pointer-events: none;
    background: rgba(3, 5, 12, .30);
}

.philosophen-turnier-test-winner[data-tournament-complete="true"] > * {
    position: relative;
    z-index: 1;
}

.philosophen-turnier-test-winner[data-tournament-complete="true"] > h2 {
    margin: 0;
    color: #fff0cb;
    font-size: clamp(1.65rem, 4.8vw, 3rem);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .96), 0 0 8px rgba(255, 223, 150, .68), 0 0 18px rgba(240, 165, 77, .34);
}

.philosophen-turnier-test-winner[data-tournament-complete="true"] .philosophen-turnier-test-winner-portrait {
    align-self: end;
    width: min(23vw, 205px);
    margin: 0 auto;
    filter: drop-shadow(0 0 9px rgba(0, 0, 0, .9)) drop-shadow(0 0 12px rgba(72, 200, 255, .16));
}

.philosophen-turnier-test-winner[data-tournament-complete="true"] .philosophen-turnier-test-winner-name {
    margin-top: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .98), 0 0 10px rgba(72, 200, 255, .44), 0 0 22px rgba(72, 200, 255, .22);
}

.philosophen-turnier-test-winner[data-tournament-complete="true"] .philosophen-turnier-test-wisdom {
    width: min(100%, 700px);
    min-height: 0;
    margin: 16px auto 18px;
    padding: 8px 18px;
    color: #ffedcf;
    font-size: clamp(1rem, 2.55vw, 1.25rem);
    font-weight: 650;
    line-height: 1.52;
    background: linear-gradient(180deg, transparent 0%, rgba(3, 5, 10, .34) 18%, rgba(3, 5, 10, .38) 82%, transparent 100%);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .99), 0 0 3px rgba(255, 232, 187, .54), 0 0 10px rgba(240, 165, 77, .25);
}

.philosophen-turnier-test-winner[data-tournament-complete="true"] .philosophen-turnier-test-end-actions {
    margin-top: auto;
}

.philosophen-turnier-test-winner > .philosophen-turnier-test-control {
    display: grid;
    margin: 0 auto;
    place-items: center;
}

.philosophen-turnier-test-end-screen {
    display: grid;
    align-content: center;
    justify-items: center;
}

.philosophen-turnier-test-end-screen > h2 {
    font-size: clamp(2.7rem, 8vw, 5.4rem);
}

.philosophen-turnier-test-end-screen > p {
    max-width: 660px;
    margin: 0 auto 28px;
    color: rgba(247, 231, 201, .90);
    font-size: clamp(.9rem, 2.5vw, 1.18rem);
    line-height: 1.65;
    letter-spacing: .07em;
}

.philosophen-turnier-test-end-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.philosophen-turnier-test-arena {
    position: relative;
    isolation: isolate;
}

.philosophen-turnier-test-arena::before {
    position: absolute;
    z-index: 0;
    inset: -18px -5% -12px;
    content: "";
    pointer-events: none;
    opacity: .62;
    background:
        linear-gradient(90deg, #07090d 0%, transparent 17%, transparent 83%, #07090d 100%),
        linear-gradient(180deg, #07090d 0%, transparent 13%, transparent 84%, #07090d 100%),
        url("/images/programme/philosophen-turnier/background/olymp.png") center top / 85% auto no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 86%, transparent 100%);
    transform: translateY(var(--olymp-desktop-offset));
}

.philosophen-turnier-test-participants {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    width: 100%;
    margin: 0 0 clamp(18px, 3vw, 26px);
}

.philosophen-turnier-test-participant {
    display: flex;
    position: relative;
    z-index: 1;
    isolation: isolate;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.philosophen-turnier-test-participant::before {
    position: absolute;
    z-index: -1;
    inset: -12% -28% 12%;
    content: "";
    pointer-events: none;
    background: radial-gradient(ellipse at center 44%, rgba(5, 5, 8, .88) 0%, rgba(5, 5, 8, .60) 44%, rgba(5, 5, 8, .17) 69%, transparent 84%);
}

.philosophen-turnier-test-opponent-participant { align-items: flex-start; }
.philosophen-turnier-test-player-participant { align-items: flex-end; }

.philosophen-turnier-test-portrait {
    display: block;
    width: var(--duel-portrait-size);
    height: calc(var(--duel-portrait-size) * 1.021739);
    object-fit: contain;
    object-position: center bottom;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 5px rgba(240, 165, 77, .10));
}

.philosophen-turnier-test-participant-label {
    display: grid;
    gap: 4px;
    width: var(--duel-portrait-size);
    color: var(--philosophen-muted);
    font-size: clamp(.64rem, 1.6vw, .74rem);
    letter-spacing: .13em;
    line-height: 1.1;
}

.philosophen-turnier-test-opponent-participant .philosophen-turnier-test-participant-label,
.philosophen-turnier-test-player-participant .philosophen-turnier-test-participant-label { text-align: center; }

.philosophen-turnier-test-opponent-participant .philosophen-turnier-test-participant-label span { color: color-mix(in srgb, var(--duel-opponent) 72%, var(--philosophen-muted)); }
.philosophen-turnier-test-player-participant .philosophen-turnier-test-participant-label span { color: color-mix(in srgb, var(--duel-player) 72%, var(--philosophen-muted)); }

.philosophen-turnier-test-participant-label strong {
    font-size: clamp(1.28rem, 2.8vw, 1.65rem);
    font-weight: 400;
    letter-spacing: .055em;
}

.philosophen-turnier-test-opponent-participant .philosophen-turnier-test-participant-label strong {
    color: var(--duel-opponent);
    text-shadow: 0 0 1px rgba(255, 228, 178, .78), 0 0 7px rgba(240, 165, 77, .48), 0 0 16px rgba(240, 165, 77, .18);
}

.philosophen-turnier-test-player-participant .philosophen-turnier-test-participant-label strong {
    color: var(--duel-player);
    text-shadow: 0 0 1px rgba(209, 246, 255, .82), 0 0 7px rgba(72, 200, 255, .48), 0 0 16px rgba(72, 200, 255, .18);
}

.philosophen-turnier-test-duel-comment {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(27vw, 260px);
    margin: 0;
    z-index: 3;
    color: #f7e7c9;
    font-size: clamp(1.25rem, 2.7vw, 1.68rem);
    font-weight: 600;
    letter-spacing: .065em;
    line-height: 1.42;
    opacity: 1;
    text-align: center;
    -webkit-mask-image: none;
    mask-image: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .96), 0 0 2px rgba(255, 244, 215, .74), 0 0 10px rgba(240, 165, 77, .28), 0 0 20px rgba(240, 165, 77, .12);
    transform: translate(-50%, -50%);
}

.philosophen-turnier-test-score {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: baseline;
    gap: .28em;
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 4.3rem);
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .92);
    transform: translate(-50%, -50%);
}

.philosophen-turnier-test-score[hidden] { display: none; }
.philosophen-turnier-test-score-opponent { color: var(--duel-opponent); text-shadow: 0 0 2px rgba(255, 228, 178, .72), 0 0 10px rgba(240, 165, 77, .30); }
.philosophen-turnier-test-score-separator { color: var(--philosophen-muted); text-shadow: 0 0 7px rgba(255, 232, 190, .16); }
.philosophen-turnier-test-score-player { color: var(--duel-player); text-shadow: 0 0 2px rgba(209, 246, 255, .72), 0 0 10px rgba(72, 200, 255, .30); }

.philosophen-turnier-test-duel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(92px, 160px) minmax(0, 1fr);
    align-items: center;
    min-height: clamp(184px, 28vw, 254px);
    background: radial-gradient(ellipse at center, rgba(240, 165, 77, .075), transparent 60%);
}

.philosophen-turnier-test-hand-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.philosophen-turnier-test-opponent-zone {
    grid-column: 1;
    align-items: flex-start;
}

.philosophen-turnier-test-player-zone {
    grid-column: 3;
    align-items: flex-end;
}

.philosophen-turnier-test-hand-frame {
    position: relative;
    --hand-crop-top: 9.57%;
    --hand-crop-left: 0;
    --hand-crop-width: 100%;
    --hand-display-scale: inherit;
    width: min(100%, clamp(150px, 25vw, 226px));
    aspect-ratio: 1;
}

.philosophen-turnier-test-hand {
    position: absolute;
    display: block;
    top: var(--hand-crop-top);
    left: var(--hand-crop-left);
    width: var(--hand-crop-width);
    max-width: none;
    height: auto;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 7px rgba(240, 165, 77, .13));
    transform: translateY(0) scale(var(--hand-display-scale));
    transform-origin: center;
    will-change: transform;
}

/*
 * Die gelieferten PNGs sind Alpha-Crops aus einem gemeinsamen 418 × 418-Spritefeld.
 * Der Frame rekonstruiert dieses Feld: Die Handfläche skaliert dadurch einheitlich,
 * während Finger je nach Geste unterschiedlich weit in den Duellraum reichen dürfen.
 */
.philosophen-turnier-test-hand-frame[data-gesture="rock"] .philosophen-turnier-test-hand {
    --hand-crop-top: 9.57%;
}

.philosophen-turnier-test-hand-frame[data-gesture="scissors"] .philosophen-turnier-test-hand {
    --hand-crop-top: 7.42%;
}

.philosophen-turnier-test-opponent-frame[data-gesture="paper"] .philosophen-turnier-test-hand {
    --hand-crop-top: 7.90%;
    --hand-crop-width: 95.45%;
}

.philosophen-turnier-test-player-frame[data-gesture="paper"] .philosophen-turnier-test-hand {
    --hand-crop-top: 7.90%;
    --hand-crop-left: 4.55%;
    --hand-crop-width: 95.45%;
}

.philosophen-turnier-test-hand-frame[data-hand-gender="female"][data-gesture="rock"] .philosophen-turnier-test-hand {
    --hand-crop-top: 8.85%;
}

.philosophen-turnier-test-hand-frame[data-hand-gender="female"][data-gesture="scissors"] .philosophen-turnier-test-hand {
    --hand-crop-top: 11.24%;
}

.philosophen-turnier-test-opponent-frame[data-hand-gender="female"][data-gesture="paper"] .philosophen-turnier-test-hand {
    --hand-crop-top: 7.42%;
    --hand-crop-left: 0;
    --hand-crop-width: 96.65%;
}

.philosophen-turnier-test-player-frame[data-hand-gender="female"][data-gesture="paper"] .philosophen-turnier-test-hand {
    --hand-crop-top: 7.42%;
    --hand-crop-left: 3.35%;
    --hand-crop-width: 96.65%;
}

.philosophen-turnier-test[data-phase="countdown"] .philosophen-turnier-test-hand-frame.is-counting .philosophen-turnier-test-hand {
    animation: philosophenTurnierFistBeat .72s steps(3, end) infinite;
}

.philosophen-turnier-test[data-phase="reveal"] #philosophen-turnier-test-opponent-hand {
    animation: philosophenTurnierOpponentReveal .44s cubic-bezier(.2, .78, .22, 1) both;
}

.philosophen-turnier-test[data-phase="reveal"] #philosophen-turnier-test-player-hand {
    animation: philosophenTurnierPlayerReveal .44s cubic-bezier(.2, .78, .22, 1) both;
}

.philosophen-turnier-test-status {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    width: min(38%, 340px);
    height: 3.8rem;
    place-items: center;
    padding: 8px;
    color: var(--philosophen-amber-active);
    font-size: clamp(3rem, 8vw, 5.2rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .08em;
    text-align: center;
    text-shadow: 0 0 2px rgba(255, 237, 198, .82), 0 0 8px rgba(255, 221, 163, .52), 0 0 16px rgba(240, 165, 77, .26);
    transform: translate(-50%, -50%);
    contain: layout;
}

.philosophen-turnier-test-status > span { grid-area: 1 / 1; }

.philosophen-turnier-test-status span:empty { display: none; }

.philosophen-turnier-test-result {
    max-width: 100%;
    font-size: clamp(1.28rem, 3.6vw, 2rem);
    font-weight: 700;
    line-height: 1.22;
    overflow-wrap: normal;
    white-space: nowrap;
}

.philosophen-turnier-test[data-phase="ready"] .philosophen-turnier-test-result {
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    letter-spacing: .12em;
    animation: philosophenTurnierReadyPulse .82s steps(2, end) infinite;
}

.philosophen-turnier-test-actions {
    display: flex;
    justify-content: center;
    min-height: 48px;
    margin: clamp(18px, 3vw, 24px) 0 12px;
}

.philosophen-turnier-test-control,
.philosophen-turnier-test-choice {
    border: 1px solid rgba(255, 190, 101, .88);
    border-radius: 0;
    background: rgba(3, 5, 8, .95);
    color: #ffebc8;
    font: inherit;
    font-weight: 700;
    letter-spacing: .11em;
    cursor: pointer;
    text-shadow: 0 0 4px rgba(255, 224, 170, .32);
    box-shadow: inset 0 0 0 1px rgba(255, 220, 163, .13), 0 0 9px rgba(240, 165, 77, .12);
}

.philosophen-turnier-test-control {
    display: inline-grid;
    min-width: 180px;
    min-height: 48px;
    padding: 12px 20px;
    place-items: center;
    font-size: .88rem;
    line-height: 1.2;
    text-decoration: none;
}

.philosophen-turnier-test-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 540px);
    margin: 0 auto;
}

.philosophen-turnier-test-choice {
    min-height: 50px;
    padding: 11px 8px;
    color: rgba(255, 238, 209, .94);
    font-size: clamp(.7rem, 2.2vw, .83rem);
}

.philosophen-turnier-test-choice.is-selected {
    border-color: #a7eaff;
    background: rgba(10, 83, 116, .88);
    color: #f1fcff;
    text-shadow: 0 0 3px rgba(226, 250, 255, .78), 0 0 10px rgba(72, 200, 255, .62);
    box-shadow: inset 0 0 0 1px rgba(210, 247, 255, .34), 0 0 16px rgba(72, 200, 255, .44);
    transform: translateY(-2px) scale(1.025);
}

.philosophen-turnier-test-choice:disabled {
    cursor: default;
    opacity: .72;
}

.mind-fist-boardcomputer {
    width: 100%;
    margin: 46px 0 0;
    padding: 28px 30px 24px;
    color: var(--legal-system-narration);
}

.mind-fist-boardcomputer > :not(.machine-ghost) {
    position: relative;
    z-index: 1;
}

.mind-fist-boardcomputer-message {
    color: var(--legal-system-narration);
    font-size: var(--font-system);
    line-height: 1.9;
    letter-spacing: .035em;
    text-shadow: 0 0 3px rgba(255, 151, 221, .3), 0 0 9px rgba(255, 79, 216, .18);
}

.mind-fist-boardcomputer-message.is-activity {
    animation: mindFistBoardcomputerMessage .8s ease-out both;
}

.mind-fist-boardcomputer.is-activity {
    animation: mindFistBoardcomputerSector 1.2s ease-out both;
}

.philosophen-turnier-test-control:disabled {
    cursor: default;
    opacity: .48;
}

.philosophen-turnier-test-control:not(:disabled):hover,
.philosophen-turnier-test-choice:not(:disabled):hover,
.philosophen-turnier-test-control:focus-visible,
.philosophen-turnier-test-choice:focus-visible {
    border-color: rgba(255, 218, 160, .94);
    color: #ffe4b8;
    outline: none;
    background: rgba(23, 15, 8, .96);
    text-shadow: 0 0 3px rgba(255, 240, 211, .72), 0 0 10px rgba(240, 165, 77, .40);
    box-shadow: inset 0 0 0 1px rgba(255, 220, 163, .24), 0 0 15px rgba(240, 165, 77, .30);
}

@keyframes philosophenTurnierSearchPulse {
    0%, 100% { opacity: .34; }
    50% { opacity: 1; }
}

@keyframes mindFistChoosePulse {
    0%, 100% { opacity: .58; }
    50% { opacity: 1; }
}

@keyframes mindFistRoundTitleBlink {
    0%, 100% { opacity: .58; }
    50% { opacity: 1; }
}

@keyframes mindFistWorldviewQuestionBlink {
    0%, 100% { opacity: .64; }
    50% { opacity: 1; }
}

@keyframes mindFistChanceField {
    0% { transform: translate3d(-2%, 1%, 0) rotate(-.35deg); }
    45% { transform: translate3d(2%, -1.5%, 0) rotate(.25deg); }
    100% { transform: translate3d(-1%, -2%, 0) rotate(-.15deg); }
}

@keyframes mindFistBoardcomputerMessage {
    0% { opacity: .35; transform: translateY(3px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes mindFistBoardcomputerSector {
    0% { border-color: rgba(255, 79, 216, .2); }
    38% { border-color: rgba(255, 208, 242, .75); }
    100% { border-color: var(--legal-system-line); }
}

@keyframes philosophenTurnierCandidateScan {
    0% { opacity: .34; transform: translateY(3px); filter: brightness(1.3); }
    100% { opacity: .82; transform: translateY(0); filter: brightness(.88); }
}

@keyframes philosophenTurnierCandidateLock {
    0% { opacity: .56; filter: brightness(1.55) drop-shadow(0 0 12px rgba(240, 165, 77, .45)); transform: scale(.975); }
    100% { opacity: 1; filter: brightness(1) drop-shadow(0 0 3px rgba(240, 165, 77, .16)); transform: scale(1); }
}

@keyframes philosophenTurnierReadyPulse {
    0%, 100% { opacity: .64; text-shadow: 0 0 2px rgba(255, 237, 198, .72), 0 0 8px rgba(255, 221, 163, .34); }
    50% { opacity: 1; text-shadow: 0 0 3px rgba(255, 244, 218, .96), 0 0 13px rgba(255, 221, 163, .72), 0 0 24px rgba(240, 165, 77, .38); }
}

@keyframes philosophenTurnierHandCue {
    0% { filter: brightness(1.55); }
    100% { filter: brightness(1); }
}

.philosophen-turnier-test[data-phase="countdown"] .philosophen-turnier-test-opponent-frame.is-feinting {
    animation: philosophenTurnierHandCue .2s steps(2, end) both;
}

.philosophen-turnier-test[data-phase="countdown"] .philosophen-turnier-test-opponent-frame.is-returning .philosophen-turnier-test-hand {
    animation: philosophenTurnierHintReturn .24s steps(3, end);
}

@keyframes philosophenTurnierHintReturn {
    0% { opacity: .72; filter: brightness(1.34) drop-shadow(0 0 9px rgba(240, 165, 77, .32)); transform: translateY(-5px) scale(var(--hand-display-scale)); }
    100% { opacity: 1; filter: drop-shadow(0 0 7px rgba(240, 165, 77, .13)); transform: translateY(0) scale(var(--hand-display-scale)); }
}

@keyframes philosophenTurnierStartReady {
    0%, 100% {
        border-color: rgba(255, 190, 101, .88);
        box-shadow: inset 0 0 0 1px rgba(255, 220, 163, .13), 0 0 9px rgba(240, 165, 77, .14);
    }
    50% {
        border-color: rgba(210, 246, 255, .96);
        background: rgba(7, 46, 63, .96);
        color: #f1fcff;
        text-shadow: 0 0 3px rgba(226, 250, 255, .80), 0 0 10px rgba(72, 200, 255, .56);
        box-shadow: inset 0 0 0 1px rgba(210, 247, 255, .30), 0 0 18px rgba(72, 200, 255, .40);
    }
}

@keyframes philosophenTurnierFistBeat {
    0%, 100% { transform: translateY(-12px) scale(var(--hand-display-scale)); }
    48% { transform: translateY(13px) scale(var(--hand-display-scale)); }
}

@keyframes philosophenTurnierOpponentReveal {
    0% { transform: translateX(0) scale(var(--hand-display-scale)); }
    58% { transform: translateX(28px) scale(var(--hand-display-scale)); }
    100% { transform: translateX(0) scale(var(--hand-display-scale)); }
}

@keyframes philosophenTurnierPlayerReveal {
    0% { transform: translateX(0) scale(var(--hand-display-scale)); }
    58% { transform: translateX(-28px) scale(var(--hand-display-scale)); }
    100% { transform: translateX(0) scale(var(--hand-display-scale)); }
}

@keyframes philosophenTurnierCountdownPop {
    0% { opacity: 0; transform: scale(.72); }
    45% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

.philosophen-turnier-test-countdown.is-popping {
    display: block;
    animation: philosophenTurnierCountdownPop .42s cubic-bezier(.2, .78, .22, 1) both;
}

.philosophen-turnier-test[data-state="paused"] * {
    animation-play-state: paused !important;
}

@media (max-width: 560px) {
    .philosophen-turnier-test-page { --duel-portrait-size: clamp(140px, 38vw, 150px); }

    .philosophen-turnier-test { padding-top: 16px; }

    .philosophen-turnier-test-screen > h2 { margin-bottom: 18px; }

    .philosophen-turnier-test-character-select { padding-top: 10px; }

    .philosophen-turnier-test-roster {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 0;
    }

    .philosophen-turnier-test-character {
        min-height: 142px;
        padding: 5px 3px 7px;
        font-size: .61rem;
    }

    .philosophen-turnier-test-character img { width: min(100%, 112px); }

    .philosophen-turnier-test-characteristic {
        margin: 13px auto 12px;
        font-size: .76rem;
        line-height: 1.48;
    }

    .philosophen-turnier-test-character-actions { gap: 7px; }
    .philosophen-turnier-test-character-actions .philosophen-turnier-test-control {
        min-width: 0;
        width: 50%;
        padding-inline: 8px;
        font-size: .72rem;
    }

    .philosophen-turnier-test-worldview {
        min-height: 0;
        padding: 22px 0 18px;
    }

    .philosophen-turnier-test-worldview > h2 {
        margin-bottom: 25px;
        font-size: clamp(1.06rem, 5vw, 1.25rem);
    }

    .philosophen-turnier-test-worldview-choices {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .philosophen-turnier-test-worldview-choice {
        min-height: 178px;
        padding: 23px 16px;
    }

    .philosophen-turnier-test-worldview-choice > span { font-size: clamp(.96rem, 5vw, 1.18rem); }
    .philosophen-turnier-test-worldview-choice > small { margin-top: 14px; font-size: clamp(.66rem, 3.25vw, .77rem); }
    .philosophen-turnier-test-worldview-or { min-height: 16px; }

    .philosophen-turnier-test-round-intro {
        min-height: 480px;
        padding-top: 22px;
    }

    .philosophen-turnier-test-round-intro > h2 {
        margin-bottom: 22px;
        font-size: 2.7rem;
    }

    .philosophen-turnier-test-intro-duel {
        grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
    }

    .philosophen-turnier-test-intro-side { min-height: 224px; }

    .philosophen-turnier-test-intro-side {
        grid-template-rows: 145px auto minmax(3em, auto) auto;
    }

    .philosophen-turnier-test-intro-portrait-stage {
        width: min(100%, 145px);
        height: 145px;
    }

    .philosophen-turnier-test-search {
        top: -14px;
        font-size: .56rem;
        letter-spacing: .035em;
    }

    .philosophen-turnier-test-intro-name {
        font-size: clamp(.8rem, 4vw, 1.05rem);
        letter-spacing: .025em;
    }

    .philosophen-turnier-test-intro-versus { font-size: .8rem; }

    .philosophen-turnier-test-intro-versus { margin-top: 67px; }

    .philosophen-turnier-test-wisdom {
        margin: 15px auto;
        font-size: .78rem;
    }

    .philosophen-turnier-test-intro-wisdom {
        width: 100%;
        min-height: 4.4em;
        margin: 18px auto;
        font-size: clamp(.92rem, 4.2vw, 1.05rem);
        line-height: 1.5;
    }

    .philosophen-turnier-test-winner,
    .philosophen-turnier-test-end-screen {
        min-height: 470px;
        padding-top: 22px;
    }

    .philosophen-turnier-test-winner-portrait { width: min(70vw, 235px); }

    .philosophen-turnier-test-winner[data-tournament-complete="true"] {
        grid-template-rows: auto minmax(230px, 1fr) auto auto auto;
        min-height: 700px;
        aspect-ratio: auto;
        padding: 22px 14px 24px;
        background-size: auto 700px;
    }

    .philosophen-turnier-test-winner[data-tournament-complete="true"] .philosophen-turnier-test-winner-portrait {
        width: min(46vw, 178px);
    }

    .philosophen-turnier-test-winner[data-tournament-complete="true"] .philosophen-turnier-test-wisdom {
        width: min(100%, 340px);
        margin: 14px auto 18px;
        padding: 8px 12px;
        font-size: clamp(.96rem, 4.25vw, 1.1rem);
    }

    .philosophen-turnier-test-winner .philosophen-turnier-test-wisdom {
        min-height: 4.4em;
        margin: 18px auto 22px;
        font-size: clamp(1rem, 4.5vw, 1.16rem);
    }

    .philosophen-turnier-test-end-actions {
        width: 100%;
        gap: 8px;
    }

    .philosophen-turnier-test-end-actions .philosophen-turnier-test-control {
        min-width: 0;
        width: 50%;
        padding-inline: 10px;
    }

    .mind-fist-boardcomputer {
        margin-top: 32px;
        padding: 24px 16px 22px;
    }

    .philosophen-turnier-test-duel {
        grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
        min-height: 166px;
    }

    .philosophen-turnier-test-participants { margin-bottom: 18px; }

    .philosophen-turnier-test-arena::before {
        inset: -12px -3% -8px;
        background-size: 100% 100%, 100% 100%, auto 88%;
        background-position: center, center, center 62%;
        transform: translateY(0);
    }

    .philosophen-turnier-test-participant { gap: 5px; }

    .philosophen-turnier-test-participant-label { letter-spacing: .1em; }

    .philosophen-turnier-test-duel-comment {
        position: static;
        grid-column: 1 / -1;
        width: min(100%, 260px);
        margin: 13px auto 0;
        font-size: 1.12rem;
        transform: none;
    }

    .philosophen-turnier-test-hand-frame { width: min(100%, clamp(142px, 38vw, 150px)); }

    .philosophen-turnier-test-status { width: 42%; height: 3.2rem; padding: 3px; font-size: clamp(3rem, 14vw, 3.65rem); }

    .philosophen-turnier-test-result { font-size: clamp(.8rem, 4vw, 1.02rem); letter-spacing: .035em; }

    .philosophen-turnier-test-score { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .philosophen-turnier-test[data-phase="countdown"] .philosophen-turnier-test-hand-frame.is-counting .philosophen-turnier-test-hand,
    .philosophen-turnier-test[data-phase="reveal"] .philosophen-turnier-test-hand,
    .philosophen-turnier-test-countdown.is-popping,
    .philosophen-turnier-test-search span,
    .philosophen-turnier-test-character-select > h2,
    .philosophen-turnier-test-round-intro > h2,
    .philosophen-turnier-test-worldview > h2,
    .philosophen-turnier-test-worldview-choice,
    .philosophen-turnier-test-worldview-choice::before,
    .philosophen-turnier-test-intro-opponent.is-searching img.is-scanning,
    .philosophen-turnier-test-intro-opponent.is-locked img,
    .philosophen-turnier-test[data-phase="ready"] .philosophen-turnier-test-result,
    .philosophen-turnier-test[data-phase="countdown"] .philosophen-turnier-test-opponent-frame.is-feinting,
    .philosophen-turnier-test[data-phase="countdown"] .philosophen-turnier-test-opponent-frame.is-returning .philosophen-turnier-test-hand,
    #philosophen-turnier-test-tournament-start:not(:disabled),
    .mind-fist-boardcomputer-message.is-activity,
    .mind-fist-boardcomputer.is-activity { animation: none !important; transition: none !important; }

    .philosophen-turnier-test-choice.is-selected { transform: none; }
}
