@import url("https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap");


/* =========================================================
   YEAR WE GO AGAIN
   GLOBAL DESIGN SYSTEM
   ========================================================= */

:root {

    --ywga-blue: #00172b;
    --ywga-yellow: #ffde02;
    --ywga-white: #ffffff;

    --ywga-font:
        "Silkscreen",
        monospace;

}


/* =========================================================
   RESET / BASIS
   ========================================================= */

* {
    box-sizing: border-box;
}


html {
    margin: 0;
    padding: 0;
}


body {
    margin: 0;

    min-height: 100vh;

    background:
        var(--ywga-blue);

    color:
        var(--ywga-white);

    font-family:
        var(--ywga-font);

    font-weight: 400;
}


button,
input,
textarea,
select {
    font-family:
        var(--ywga-font);
}


button {
    border-radius: 0;
}


button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}


[hidden] {
    display: none !important;
}


img {
    max-width: 100%;
}


.pixel-art {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}


/* =========================================================
   ALLGEMEINE TYPOGRAFIE
   ========================================================= */

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}


h1 {
    margin: 0 0 18px;

    color:
        var(--ywga-white);

    font-size:
        clamp(2.4rem, 7vw, 5rem);

    font-weight: 400;

    line-height: 1;
}


h2,
h3 {
    color:
        var(--ywga-white);

    font-weight: 400;
}


.eyebrow {
    margin:
        0
        0
        12px;

    color:
        var(--ywga-yellow);

    font-size:
        0.9rem;

    font-weight: 400;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;
}

.blinking-line {
  display: inline-block;
  animation: blink 1s linear infinite;
  color: transparent;
}


/* =========================================================
   GEMEINSAME SEITENBREITE
   INDEX / ADMIN
   ========================================================= */

.container {
    width:
        min(90%, 820px);

    margin:
        0 auto;

    padding:
        55px 0 80px;
}


.page-header {
    margin-bottom:
        42px;

    text-align:
        center;
}


.page-header > p:last-child {
    color:
        var(--ywga-white);

    font-size:
        1rem;
}


#status {
    margin-bottom:
        28px;

    text-align:
        center;

    color:
        var(--ywga-yellow);
}


/* =========================================================
   FRAGEN / TEILNEHMERSEITE
   ========================================================= */

#questions {
    display:
        grid;

    gap:
        22px;
}


.question {
    position:
        relative;

    padding:
        26px;

    border:
        3px solid
        var(--ywga-white);

    border-radius:
        0;

    background:
        var(--ywga-blue);

    box-shadow:
        none;
}


.question-number {
    display:
        block;

    margin-bottom:
        10px;

    color:
        var(--ywga-yellow);

    font-size:
        0.78rem;

    font-weight:
        400;
}


.question h2 {
    margin:
        0;

    color:
        var(--ywga-white);

    font-size:
        1.28rem;

    line-height:
        1.3;
}


.question-type {
    margin:
        12px 0 0;

    color:
        var(--ywga-yellow);

    font-size:
        0.78rem;
}


.question label {
    display:
        block;
}


/* =========================================================
   INPUTS
   ========================================================= */

.answer-input,
.spotify-url-input {
    width:
        100%;

    margin-top:
        20px;

    padding:
        16px;

    border:
        3px solid
        var(--ywga-white);

    border-radius:
        0;

    outline:
        none;

    background:
        var(--ywga-white);

    color:
        var(--ywga-blue);

    font:
        inherit;

    font-size:
        0.95rem;
}


.answer-input::placeholder,
.spotify-url-input::placeholder {
    color:
        rgba(0, 23, 43, 0.45);
}


.answer-input:focus,
.spotify-url-input:focus {
    border-color:
        var(--ywga-yellow);

    outline:
        3px solid
        var(--ywga-yellow);

    outline-offset:
        3px;
}


.answer-input:disabled,
.spotify-url-input:disabled {
    opacity:
        0.65;
}


textarea.answer-input {
    min-height:
        130px;

    resize:
        vertical;
}


.field-hint {
    margin:
        10px 0 0;

    color:
        var(--ywga-white);

    font-size:
        0.72rem;

    line-height:
        1.5;

    opacity:
        0.72;
}


/* =========================================================
   HAUPTBUTTONS
   ========================================================= */

#saveButton,
#finalSubmitButton,
#submitVoteButton,
.join-card button,
.tmdb-search-button,
.book-upload-button,
.person-upload-button {

    border:
        0;

    border-radius:
        0;

    background:
        var(--ywga-yellow);

    color:
        var(--ywga-blue);

    font:
        inherit;

    font-weight:
        400;

    cursor:
        pointer;

    transition:
        background 0.12s ease,
        color 0.12s ease;
}


#saveButton:hover,
#finalSubmitButton:hover,
#submitVoteButton:hover,
.join-card button:hover,
.tmdb-search-button:hover,
.book-upload-button:hover,
.person-upload-button:hover {

    background:
        var(--ywga-white);

    color:
        var(--ywga-blue);
}


#saveButton {
    display:
        block;

    width:
        100%;

    margin-top:
        35px;

    padding:
        18px 25px;

    font-size:
        1rem;
}


#saveStatus {
    min-height:
        24px;

    margin-top:
        20px;

    color:
        var(--ywga-yellow);

    text-align:
        center;
}


/* =========================================================
   JOIN / NAME EINGEBEN
   ========================================================= */

.join-card {
    padding:
        30px;

    border:
        3px solid
        var(--ywga-white);

    border-radius:
        0;

    background:
        var(--ywga-blue);

    box-shadow:
        none;
}


.join-card h2 {
    margin-top:
        0;
}


.join-card label {
    display:
        block;

    margin:
        25px 0 8px;

    color:
        var(--ywga-yellow);

    font-weight:
        400;
}


.join-card input {
    width:
        100%;

    padding:
        16px;

    border:
        3px solid
        var(--ywga-white);

    border-radius:
        0;

    background:
        var(--ywga-white);

    color:
        var(--ywga-blue);

    font:
        inherit;

    font-size:
        0.95rem;
}


.join-card button {
    width:
        100%;

    margin-top:
        20px;

    padding:
        16px;
}


#joinStatus {
    min-height:
        24px;

    color:
        var(--ywga-yellow);

    text-align:
        center;
}


/* =========================================================
   WILLKOMMEN / PERSÖNLICHER LINK
   ========================================================= */

.welcome {
    margin-bottom:
        25px;

    color:
        var(--ywga-yellow);

    text-align:
        center;

    font-size:
        1.05rem;
}


.access-card {
    margin-bottom:
        30px;

    padding:
        24px;

    border:
        3px solid
        var(--ywga-white);

    border-radius:
        0;

    background:
        var(--ywga-blue);
}


.access-title {
    margin:
        0 0 8px;

    color:
        var(--ywga-yellow);

    font-weight:
        400;
}


.access-info {
    margin:
        0 0 18px;

    color:
        var(--ywga-white);

    font-size:
        0.78rem;

    line-height:
        1.5;

    opacity:
        0.78;
}


.access-link-row {
    display:
        flex;

    gap:
        10px;
}


#personalLink {
    min-width:
        0;

    flex:
        1;

    padding:
        12px;

    border:
        3px solid
        var(--ywga-white);

    border-radius:
        0;

    background:
        var(--ywga-white);

    color:
        var(--ywga-blue);

    font:
        inherit;

    font-size:
        0.72rem;
}


#copyLinkButton {
    padding:
        12px 16px;

    border:
        0;

    border-radius:
        0;

    background:
        var(--ywga-yellow);

    color:
        var(--ywga-blue);

    font:
        inherit;

    font-weight:
        400;

    cursor:
        pointer;
}


#copyLinkButton:hover {
    background:
        var(--ywga-white);
}


#copyStatus {
    min-height:
        20px;

    margin:
        10px 0 0;

    color:
        var(--ywga-yellow);

    font-size:
        0.72rem;
}


/* =========================================================
   PROGRESS
   ========================================================= */

.progress-card {
    margin-bottom:
        25px;

    padding:
        20px;

    border:
        3px solid
        var(--ywga-white);

    border-radius:
        0;

    background:
        var(--ywga-blue);

    box-shadow:
        none;
}


.progress-text {
    display:
        flex;

    justify-content:
        space-between;

    gap:
        20px;

    margin-bottom:
        12px;
}


#progressPercent {
    color:
        var(--ywga-yellow);
}


.progress-bar {
    width:
        100%;

    height:
        12px;

    overflow:
        hidden;

    border:
        2px solid
        var(--ywga-white);

    border-radius:
        0;

    background:
        var(--ywga-blue);
}


#progressBarFill {
    width:
        0%;

    height:
        100%;

    background:
        var(--ywga-yellow);

    border-radius:
        0;

    transition:
        width 0.25s ease;
}


/* =========================================================
   ENDGÜLTIG ABGEBEN
   ========================================================= */

.final-submit-area {
    margin-top:
        35px;

    padding-top:
        30px;

    border-top:
        3px solid
        var(--ywga-white);
}


#finalSubmitButton {
    width:
        100%;

    padding:
        18px 25px;
}


#finalSubmitStatus {
    min-height:
        24px;

    margin-top:
        15px;

    color:
        var(--ywga-yellow);

    text-align:
        center;
}


#submittedMessage {
    margin-top:
        30px;

    padding:
        30px;

    border:
        3px solid
        var(--ywga-yellow);

    border-radius:
        0;

    background:
        var(--ywga-blue);

    color:
        var(--ywga-white);

    text-align:
        center;
}


/* =========================================================
   ADMIN / TEILNEHMERSTATUS
   ========================================================= */

#participantList {
    display:
        grid;

    gap:
        15px;
}


.participant-card {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        25px;

    padding:
        22px 25px;

    border:
        3px solid
        var(--ywga-white);

    border-radius:
        0;

    background:
        var(--ywga-blue);

    box-shadow:
        none;
}


.participant-card h2 {
    margin:
        0 0 6px;

    color:
        var(--ywga-white);
}


.participant-card p {
    margin:
        0;

    color:
        var(--ywga-yellow);

    font-size:
        0.78rem;
}


/* =========================================================
   TMDB / BUCHSUCHE
   ========================================================= */

.tmdb-search-block {
    display:
        grid;

    grid-template-columns:
        1fr auto;

    gap:
        10px;

    align-items:
        center;
}


.tmdb-search-block > .answer-input {
    min-width:
        0;
}


.tmdb-search-button {
    align-self:
        stretch;

    padding:
        0 22px;

    white-space:
        nowrap;
}


.tmdb-search-button:disabled {
    cursor:
        wait;
}


.tmdb-search-block > .field-hint,
.tmdb-selected,
.tmdb-results,
.book-upload-area {

    grid-column:
        1 / -1;
}


.tmdb-results {
    display:
        grid;

    gap:
        10px;

    margin-top:
        6px;
}


.tmdb-result {
    width:
        100%;

    display:
        grid;

    grid-template-columns:
        72px 1fr;

    gap:
        16px;

    align-items:
        center;

    padding:
        10px;

    border:
        3px solid
        var(--ywga-white);

    border-radius:
        0;

    background:
        var(--ywga-blue);

    color:
        var(--ywga-white);

    text-align:
        left;

    font:
        inherit;

    cursor:
        pointer;
}


.tmdb-result:hover {
    border-color:
        var(--ywga-yellow);

    color:
        var(--ywga-yellow);
}


.tmdb-result-poster {
    width:
        72px;

    height:
        108px;

    display:
        block;

    object-fit:
        cover;

    border-radius:
        0;

    image-rendering:
        auto;
}


.tmdb-no-poster {
    width:
        72px;

    height:
        108px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        6px;

    border:
        2px solid
        var(--ywga-white);

    background:
        var(--ywga-blue);

    color:
        var(--ywga-white);

    font-size:
        0.6rem;

    text-align:
        center;
}


.tmdb-result-text {
    display:
        flex;

    flex-direction:
        column;

    gap:
        7px;

    min-width:
        0;
}


.tmdb-result-text strong {
    font-size:
        0.92rem;

    line-height:
        1.3;
}


.tmdb-result-text span {
    color:
        var(--ywga-yellow);

    font-size:
        0.7rem;
}


.tmdb-selected {
    margin-top:
        5px;
}


.tmdb-selected:empty {
    display:
        none;
}


.tmdb-selected-card {
    display:
        grid;

    grid-template-columns:
        80px 1fr;

    gap:
        16px;

    align-items:
        center;

    padding:
        12px;

    border:
        3px solid
        var(--ywga-yellow);

    border-radius:
        0;

    background:
        var(--ywga-blue);
}


.tmdb-selected-card img {
    width:
        80px;

    height:
        120px;

    display:
        block;

    object-fit:
        cover;

    border-radius:
        0;
}


.tmdb-selected-card > div {
    display:
        flex;

    flex-direction:
        column;

    gap:
        7px;
}


.tmdb-selected-card strong {
    color:
        var(--ywga-white);

    font-size:
        0.88rem;

    line-height:
        1.3;
}


.tmdb-selected-card span:not(.tmdb-selected-label) {
    color:
        var(--ywga-yellow);

    font-size:
        0.7rem;
}


.tmdb-selected-label {
    width:
        fit-content;

    padding:
        5px 8px;

    background:
        var(--ywga-yellow);

    color:
        var(--ywga-blue);

    font-size:
        0.58rem;

    font-weight:
        400;

    text-transform:
        uppercase;
}


.tmdb-error {
    grid-column:
        1 / -1;

    margin:
        0;

    color:
        var(--ywga-yellow);

    font-size:
        0.72rem;
}


/* =========================================================
   BUCH-/FOTO-UPLOAD
   ========================================================= */

.book-upload-area,
.person-upload-area {
    display:
        grid;

    gap:
        10px;

    margin-top:
        12px;
}


.book-upload-button,
.person-upload-button {
    width:
        fit-content;

    padding:
        12px 18px;
}


.book-upload-preview:empty,
.person-upload-preview:empty {
    display:
        none;
}


.uploaded-cover-card {
    display:
        flex;

    align-items:
        center;

    gap:
        16px;

    padding:
        12px;

    border:
        3px solid
        var(--ywga-yellow);

    border-radius:
        0;

    background:
        var(--ywga-blue);
}


.uploaded-cover-card img {
    width:
        90px;

    height:
        125px;

    object-fit:
        cover;

    border-radius:
        0;
}


.uploaded-cover-card > div {
    display:
        flex;

    flex-direction:
        column;

    gap:
        7px;
}


.uploaded-cover-card strong {
    color:
        var(--ywga-white);

    font-size:
        0.8rem;
}


.uploaded-cover-card span {
    color:
        var(--ywga-yellow);

    font-size:
        0.68rem;

    line-height:
        1.4;
}


/* =========================================================
   VOTE.HTML
   ========================================================= */

.vote-container {
    width:
        min(92%, 650px);

    margin:
        0 auto;

    padding:
        42px 0 70px;
}


.vote-container .page-header {
    margin-bottom:
        32px;
}


.vote-card {
    padding:
        28px;

    border:
        3px solid
        var(--ywga-white);

    border-radius:
        0;

    background:
        var(--ywga-blue);

    box-shadow:
        none;

    text-align:
        center;
}


#voteQuestion {
    margin:
        0 0 14px;

    color:
        var(--ywga-yellow);

    font-size:
        0.82rem;

    line-height:
        1.4;

    text-transform:
        uppercase;
}


#voteAnswer {
    margin:
        0 0 35px;

    color:
        var(--ywga-white);

    font-size:
        clamp(1.7rem, 7vw, 2.5rem);

    font-weight:
        400;

    line-height:
        1.2;
}


.vote-prompt {
    color:
        var(--ywga-yellow);

    font-weight:
        400;
}


.vote-hint {
    margin-top:
        8px;

    color:
        var(--ywga-white);

    font-size:
        0.68rem;

    opacity:
        0.7;
}


#voteOptions {
    display:
        grid;

    gap:
        10px;

    margin-top:
        22px;
}


.vote-option {
    width:
        100%;

    padding:
        17px;

    border:
        3px solid
        var(--ywga-white);

    border-radius:
        0;

    background:
        var(--ywga-blue);

    color:
        var(--ywga-white);

    font:
        inherit;

    font-weight:
        400;

    cursor:
        pointer;
}


.vote-option:hover {
    border-color:
        var(--ywga-yellow);

    color:
        var(--ywga-yellow);
}


.vote-option.selected {
    border-color:
        var(--ywga-yellow);

    background:
        var(--ywga-yellow);

    color:
        var(--ywga-blue);
}


#submitVoteButton {
    width:
        100%;

    margin-top:
        20px;

    padding:
        17px;
}


#submitVoteButton:disabled {
    opacity:
        0.35;
}


#voteMessage {
    min-height:
        24px;

    margin-top:
        20px;

    color:
        var(--ywga-yellow);

    font-size:
        0.75rem;

    line-height:
        1.4;
}


/* =========================================================
   GEMEINSAME ERGEBNIS- UND SCOREBOARD-KLASSEN
   ========================================================= */

#resultsArea {
    width:
        min(100%, 900px);

    margin:
        35px auto 0;

    padding-top:
        25px;

    border-top:
        3px solid
        var(--ywga-white);
}


#resultsArea h3 {
    margin-top:
        0;

    color:
        var(--ywga-yellow);
}


#roundResults {
    display:
        grid;

    gap:
        10px;

    margin-top:
        18px;
}


.result-row {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        20px;

    padding:
        14px 18px;

    border-radius:
        0;

    background:
        var(--ywga-white);

    color:
        var(--ywga-blue);

    text-align:
        left;
}


#roundScore {
    margin:
        22px 0 0;

    color:
        var(--ywga-yellow);

    font-size:
        0.9rem;

    font-weight:
        400;
}


#scoreboardArea {
    width:
        min(100%, 900px);

    margin:
        35px auto 0;

    padding-top:
        25px;

    border-top:
        3px solid
        var(--ywga-white);
}


#scoreboardArea h3 {
    margin-top:
        0;

    color:
        var(--ywga-yellow);
}


#scoreboard {
    display:
        grid;

    gap:
        10px;

    margin-top:
        18px;
}


.scoreboard-row {
    display:
        grid;

    grid-template-columns:
        45px
        1fr
        auto;

    align-items:
        center;

    gap:
        15px;

    padding:
        14px 18px;

    border-radius:
        0;

    background:
        var(--ywga-white);

    color:
        var(--ywga-blue);

    text-align:
        left;
}


.scoreboard-place,
.scoreboard-points {
    font-weight:
        400;
}


.vote-progress {
    margin:
        30px 0 0;

    color:
        var(--ywga-white);

    font-size:
        0.95rem;

    font-weight:
        400;
}


/* =========================================================
   SPOTIFY ALLGEMEIN
   ========================================================= */

.spotify-player-area {
    width:
        min(100%, 720px);

    margin:
        28px auto 0;
}


.spotify-player-area iframe {
    display:
        block;

    width:
        100%;

    border:
        0;

    border-radius:
        12px;
}


/* =========================================================
   =========================================================
   PLAY.HTML / TV DESIGN
   =========================================================
   ========================================================= */

body.play-page {

    width:
        100vw;

    height:
        100vh;

    height:
        100dvh;

    min-height:
        0;

    overflow:
        hidden;

    background-color:
        var(--ywga-blue);

    background-image:
        url("../images/ywga_globus.png"),
        url("../images/ywga_stern.png"),
        url("../images/ywga_stern.png");

    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat;

    background-position:
        left 3.5vw top 4vh,
        right 4vw top 5vh,
        right 17vw bottom 2.5vh;

    background-size:
        clamp(70px, 6vw, 105px) auto,
        clamp(42px, 4vw, 68px) auto,
        clamp(42px, 4vw, 64px) auto;
}


/* Cursor unten rechts */

.play-page .play-container::after {

    content:
        "";

    position:
        absolute;

    right:
        clamp(8px, 1vw, 20px);

    bottom:
        clamp(25px, 3vh, 45px);

    width:
        clamp(70px, 6vw, 108px);

    aspect-ratio:
        0.72;

    background:
        url("../images/ywga_mauszeiger.png")
        center / contain
        no-repeat;

    image-rendering:
        pixelated;

    pointer-events:
        none;

    z-index:
        30;
}


/* =========================================================
   PLAY – GANZER SCREEN
   ========================================================= */

.play-page .play-container {

    position:
        relative;

    z-index:
        1;

    width:
        100%;

    height:
        100%;

    margin:
        0;

    padding:
        clamp(22px, 2.5vh, 32px)
        clamp(65px, 4.2vw, 85px)
        0;

    display:
        grid;

    grid-template-rows:
        clamp(105px, 14vh, 145px)
        minmax(0, 1fr)
        clamp(70px, 8vh, 85px);

    gap:
        0;

    overflow:
        hidden;

    text-align:
        center;
}


/* =========================================================
   PLAY HEADER
   ========================================================= */

.play-page .play-header {

    margin:
        0;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;
}


.play-page .play-header .eyebrow {

    margin:
        0;

    color:
        var(--ywga-yellow);

    font-size:
        clamp(20px, 2.1vw, 36px);

    font-weight:
        400;

    line-height:
        1;

    letter-spacing:
        0.04em;
}


.play-page #roundLabel {

    margin:
        clamp(7px, 0.8vh, 12px)
        0
        0;

    color:
        var(--ywga-yellow);

    font-size:
        clamp(38px, 4vw, 68px);

    font-weight:
        400;

    line-height:
        0.95;

    text-transform:
        uppercase;
}


/* =========================================================
   PLAY CARDS = TERMINAL-FRAME
   ========================================================= */

.play-page .play-card {

    position:
        relative;

    width:
        100%;

    height:
        100%;

    min-height:
        0;

    margin:
        0;

    padding:
        clamp(22px, 2.3vh, 32px)
        clamp(26px, 2vw, 40px)
        clamp(24px, 2.5vh, 34px);

    overflow:
        hidden;

    border:
        clamp(4px, 0.3vw, 6px)
        solid
        var(--ywga-white);

    border-radius:
        0;

    background-color:
        var(--ywga-blue);

    box-shadow:
        none;
}


/* =========================================================
   STARTSCREEN
   ========================================================= */

.play-page #startScreen {

    padding-top:
        clamp(90px, 11vh, 125px);

    background-image:
        url("../images/ywga_dino-pixel.png"),
        url("../images/ywga_gluehbirne.png");

    background-repeat:
        no-repeat,
        no-repeat;

    background-position:
        left 1vw bottom 0,
        right 3vw top 22%;

    background-size:
        clamp(220px, 20vw, 350px) auto,
        clamp(90px, 8vw, 145px) auto;
}


/* Prompt + obere Linie */

.play-page #startScreen::before {

    content:
        ">";

    position:
        absolute;

    top:
        clamp(22px, 2.5vh, 32px);

    left:
        clamp(24px, 2vw, 38px);

    right:
        clamp(24px, 2vw, 38px);

    padding-bottom:
        clamp(12px, 1.5vh, 20px);

    border-bottom:
        clamp(4px, 0.3vw, 6px)
        solid
        var(--ywga-white);

    color:
        var(--ywga-white);

    font-size:
        clamp(28px, 2.4vw, 42px);

    line-height:
        1;

    text-align:
        left;
}


.play-page #startScreen > h1 {

    width:
        min(880px, 72%);

    margin:
        auto;

    color:
        var(--ywga-white);

    font-size:
        clamp(64px, 7.2vw, 130px);

    font-weight:
        400;

    line-height:
        1;

    letter-spacing:
        0.03em;

    text-transform:
        uppercase;
}


.play-page #startScreen > p:not(#prepareStatus) {

    margin:
        clamp(26px, 3vh, 38px)
        auto;

    color:
        var(--ywga-white);

    font-size:
        clamp(20px, 2vw, 34px);

    line-height:
        1.3;

    text-transform:
        uppercase;
}


.play-page #prepareButton {

    width:
        min(650px, 50%);

    padding:
        clamp(14px, 1.8vh, 22px)
        clamp(25px, 3vw, 50px);

    border:
        0;

    border-radius:
        0;

    background:
        var(--ywga-yellow);

    color:
        var(--ywga-blue);

    font-size:
        clamp(28px, 3vw, 50px);

    font-weight:
        400;

    line-height:
        1;

    cursor:
        pointer;
}


.play-page #prepareButton:hover {

    background:
        var(--ywga-white);
}


.play-page #prepareStatus {

    min-height:
        24px;

    margin:
        18px 0 0;

    color:
        var(--ywga-yellow);

    font-size:
        clamp(13px, 1.2vw, 20px);
}


/* =========================================================
   RUNDENSCREEN
   ========================================================= */

.play-page #roundScreen {

    display:
        grid;

    grid-template-columns:
        1fr;

    grid-template-rows:
        auto
        minmax(0, 1fr)
        auto;

    align-content:
        stretch;
    
    position: relative;

    min-height: 0;
    height: 100%;

    padding:
        clamp(28px, 3vh, 42px)
        clamp(34px, 3vw, 46px)
        clamp(150px, 18vh, 185px);

    overflow: hidden;
}


/* =========================================================
   FRAGE OBEN
   ========================================================= */

.play-page #questionTitle {

    grid-column:
        1;

    grid-row:
        1;

    width:
        100%;

    min-height:
        clamp(60px, 8vh, 88px);

    margin:
        0;

    padding:
        0
        clamp(4px, 0.4vw, 8px)
        clamp(14px, 1.6vh, 22px);

    display:
        flex;

    align-items:
        center;

    gap:
        clamp(20px, 2vw, 36px);

    border-bottom:
        clamp(4px, 0.3vw, 6px)
        solid
        var(--ywga-white);

    color:
        var(--ywga-yellow);

    font-size:
        clamp(28px, 3vw, 50px);

    font-weight:
        400;

    line-height:
        1;

    letter-spacing:
        0.02em;

    text-align:
        left;

    text-transform:
        uppercase;
}


.play-page #questionTitle::before {

    content:
        ">";

    flex:
        none;

    color:
        var(--ywga-white);
}


/* =========================================================
   NORMALE ANTWORT
   ========================================================= */

.play-page #answerText {

    grid-column:
        1;

    grid-row:
        2;

    align-self:
        center;

    justify-self:
        center;

    width:
        min(92%, 1450px);

    margin:
        0;

    color:
        var(--ywga-white);

    font-size:
        clamp(62px, 5.6vw, 108px);

    font-weight:
        400;

    line-height:
        1.16;

    letter-spacing:
        0.015em;

    text-align:
        center;

    text-wrap:
        balance;
}


/* =========================================================
   STIMMENZÄHLER
   ========================================================= */

.play-page #voteProgress {

    position: absolute;

    left:
        clamp(38px, 3vw, 54px);

    bottom:
        clamp(34px, 4vh, 52px);

    margin: 0;

    color:
        var(--ywga-white);

    font-size:
        clamp(18px, 1.45vw, 26px);

    font-weight: 400;

    line-height: 1.35;

    text-align: left;

    text-transform: uppercase;

    white-space: nowrap;

    z-index: 4;
}


/* =========================================================
   PLAY BUTTONS
   ========================================================= */

.play-page .play-controls {
    position: absolute;

    right: clamp(34px, 3vw, 46px);
    bottom: clamp(28px, 3.5vh, 44px);

    margin: 0;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    z-index: 4;
}


.play-page .play-controls button {

    min-width: clamp(260px, 23vw, 460px);

    margin:
        0;

    padding:
        clamp(13px, 1.5vh, 19px)
        clamp(24px, 3vw, 50px);

    border:
        0;

    border-radius:
        0;

    background:
        var(--ywga-yellow);

    color:
        var(--ywga-blue);

    font-size:
        clamp(20px, 2vw, 34px);

    font-weight:
        400;

    line-height:
        1;

    cursor:
        pointer;
}


.play-page .play-controls button:hover {

    background:
        var(--ywga-white);
}


/* =========================================================
   FILM / SERIE / BUCH / CELEBRITY
   ========================================================= */

.play-page
#roundScreen:has(#tmdbMediaArea:not([hidden])) {

    grid-template-columns:
        minmax(310px, 0.8fr)
        minmax(0, 1.4fr);

    grid-template-rows:
        auto
        minmax(0, 1fr)
        auto;

    column-gap:
        clamp(55px, 5vw, 105px);
}


.play-page
#roundScreen:has(#tmdbMediaArea:not([hidden]))
#questionTitle {

    grid-column:
        1 / -1;
}


.play-page
#roundScreen:has(#tmdbMediaArea:not([hidden]))
#tmdbMediaArea {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: center;
    margin-top:clamp(24px, 3vh, 40px);
    margin-bottom: 0;
}


.play-page
#roundScreen:has(#tmdbMediaArea:not([hidden]))
.tmdb-poster {

    display:
        block;

    width:
        auto;

    max-width:
        min(430px, 29vw);

    max-height:
        48vh;

    object-fit:
        contain;

    border-radius:
        5px;

    box-shadow:
        none;
}


.play-page
#roundScreen:has(#tmdbMediaArea:not([hidden]))
#answerText {

    grid-column:
        2;

    grid-row:
        2;

    align-self:
        center;

    justify-self:
        start;

    width:
        min(100%, 850px);

    font-size:
        clamp(70px, 6vw, 116px);

    line-height:
        1.08;

    text-align:
        left;
}


.play-page
#roundScreen:has(#tmdbMediaArea:not([hidden]))
#voteProgress {

    grid-column:
        1;

    grid-row:
        3;
}


.play-page
#roundScreen:has(#tmdbMediaArea:not([hidden]))
.play-controls {

    grid-column:
        2;

    grid-row:
        3;
}


/* =========================================================
   SPOTIFY-RUNDE
   ========================================================= */

.play-page
#roundScreen:has(#spotifyPlayerArea:not([hidden]))
#answerText {

    display:
        none;
}


.play-page
#roundScreen:has(#spotifyPlayerArea:not([hidden]))
#spotifyPlayerArea {

    grid-column:
        1;

    grid-row:
        2;

    align-self:
        center;

    justify-self:
        center;

    width:
        min(980px, 75vw);

    margin:
        0;
}


.play-page
#roundScreen:has(#spotifyPlayerArea:not([hidden]))
#spotifyPlayerArea iframe {

    display:
        block;

    width:
        100%;

    height:
        clamp(210px, 28vh, 310px);

    border:
        0;

    border-radius:
        18px;
}


/* =========================================================
   AUFLÖSUNG
   ========================================================= */

.play-page #revealArea {

    grid-column:
        1 / -1;

    grid-row:
        2;

    align-self:
        center;

    justify-self:
        center;

    width:
        100%;

    margin:
        0;

    padding:
        0;

    border:
        0;

    text-align:
        center;
}


.play-page #revealArea p {

    margin:
        0
        0
        clamp(20px, 2vh, 30px);

    color:
        var(--ywga-yellow);

    font-size:
        clamp(28px, 3vw, 50px);

    font-weight:
        400;

    line-height:
        1;

    text-transform:
        uppercase;
}


.play-page #correctPerson {

    margin:
        0;

    color:
        var(--ywga-white);

    font-size:
        clamp(80px, 7vw, 140px);

    font-weight:
        400;

    line-height:
        1;

    text-transform:
        uppercase;

    text-wrap:
        balance;
}


/* Altes Medium nach Auflösung entfernen */

.play-page
#roundScreen:has(#revealArea:not([hidden]))
#answerText,

.play-page
#roundScreen:has(#revealArea:not([hidden]))
#tmdbMediaArea,

.play-page
#roundScreen:has(#revealArea:not([hidden]))
#spotifyPlayerArea,

.play-page
#roundScreen:has(#revealArea:not([hidden]))
#voteProgress {

    display:
        none !important;
}


/* =========================================================
   ERGEBNIS NACH AUFLÖSUNG
   ========================================================= */

.play-page
#roundScreen:has(#revealArea:not([hidden])) {

    grid-template-columns:
        1fr;

    grid-template-rows:
        auto
        minmax(0, 1fr)
        auto
        auto;
}


.play-page
#roundScreen:has(#revealArea:not([hidden]))
#resultsArea {

    grid-column:
        1;

    grid-row:
        3;

    width:
        100%;

    margin:
        0;

    padding:
        0;

    border:
        0;
}


.play-page
#roundScreen:has(#revealArea:not([hidden]))
#scoreboardArea {
    grid-column: 1;
    grid-row: 4;
    width: 100%;
    margin: 0;
    margin-bottom: clamp(70px, 8vh, 100px);
    padding: 0;
    border: 0;
    position: relative;
    z-index: 2;
}


.play-page
#roundScreen:has(#revealArea:not([hidden]))
#resultsArea h3,

.play-page
#roundScreen:has(#revealArea:not([hidden]))
#scoreboardArea h3 {

    margin:
        0
        0
        12px;

    color:
        var(--ywga-white);

    font-size:
        clamp(17px, 1.6vw, 27px);

    font-weight:
        400;

    text-align:
        left;

    text-transform:
        uppercase;
}


.play-page
#roundScreen:has(#revealArea:not([hidden]))
#roundResults,

.play-page
#roundScreen:has(#revealArea:not([hidden]))
#scoreboard {

    display:
        grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap:
        10px;

    margin:
        0;
}


.play-page
#roundScreen:has(#revealArea:not([hidden]))
.result-row,

.play-page
#roundScreen:has(#revealArea:not([hidden]))
.scoreboard-row {

    display: block;

    min-width: 0;

    padding:
        12px 16px;

    border: 0;
    border-radius: 0;

    background:
        var(--ywga-white);

    color:
        var(--ywga-blue);

    text-align: left;
}


.play-page
#roundScreen:has(#revealArea:not([hidden]))
.scoreboard-main {

    display: grid;

    grid-template-columns:
        auto
        1fr
        auto;

    align-items: center;

    gap:
        clamp(8px, 0.8vw, 14px);
}


.play-page
#roundScreen:has(#revealArea:not([hidden]))
.scoreboard-place {

    font-size:
        clamp(14px, 1.15vw, 19px);

    font-weight: 400;
}


.play-page
#roundScreen:has(#revealArea:not([hidden]))
.scoreboard-name {

    min-width: 0;

    overflow: hidden;

    font-size:
        clamp(14px, 1.15vw, 19px);

    font-weight: 400;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.play-page
#roundScreen:has(#revealArea:not([hidden]))
.scoreboard-points {

    font-size:
        clamp(12px, 1vw, 17px);

    font-weight: 400;

    white-space: nowrap;
}


.play-page
#roundScreen:has(#revealArea:not([hidden]))
.scoreboard-tip {

    margin-top:
        7px;

    padding-top:
        5px;

    border-top:
        2px solid
        rgba(0, 23, 43, 0.15);

    font-size:
        clamp(9px, 0.8vw, 14px);

    line-height: 1.3;

    text-transform: uppercase;
}


.play-page
#roundScreen:has(#revealArea:not([hidden]))
#roundScore {

    margin:
        10px 0 0;

    color:
        var(--ywga-white);

    font-size:
        clamp(12px, 1.1vw, 18px);
}


.play-page
#roundScreen:has(#revealArea:not([hidden]))
.play-controls {

    position:
        absolute;

    right:
        clamp(24px, 2vw, 38px);

    bottom:
        clamp(22px, 2.5vh, 34px);

    z-index:
        5;
}


/* Herz links unten bei Ergebnis */

.play-page
#roundScreen:has(#revealArea:not([hidden]))::after {

    content:
        "";

    position:
        absolute;

    left:
    clamp(25px, 2.5vw, 45px);

    bottom:
    clamp(18px, 2vh, 28px);

    width:
    clamp(48px, 4.5vw, 78px);

    z-index: 1;

    aspect-ratio:
        1;

    background:
        url("../images/ywga_herz.png")
        center / contain
        no-repeat;

    image-rendering:
        pixelated;

    pointer-events:
        none;
}


/* =========================================================
   FINALE
   ========================================================= */

.play-page
#roundScreen:has(#revealButton[hidden]):has(#nextButton[hidden]) {

    grid-template-columns: 1fr;

    grid-template-rows:
        auto
        minmax(0, 1fr)
        auto;

    padding-bottom:
        clamp(85px, 10vh, 110px);
}


/* -----------------------------------------
   Obere Zeile:
   > GEWONNEN HAT ...
   ----------------------------------------- */

.play-page
#roundScreen:has(#revealButton[hidden]):has(#nextButton[hidden])
#questionTitle {

    grid-column: 1;
    grid-row: 1;

    font-size:
        clamp(28px, 3vw, 50px);

    font-weight: 400;
}


/* -----------------------------------------
   Gewinner
   ----------------------------------------- */

.play-page
#roundScreen:has(#revealButton[hidden]):has(#nextButton[hidden])
#answerText {

    display: flex !important;

    grid-column: 1;
    grid-row: 2;

    align-self: center;
    justify-self: center;

    width: 100%;
    max-width: 1500px;

    margin:
        clamp(20px, 2vh, 30px)
        0
        clamp(20px, 3vh, 38px);

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap:
        clamp(18px, 2vh, 28px);

    color:
        var(--ywga-white);

    text-align: center;

    text-transform: uppercase;
}


/* Gewinnername */

.play-page
.final-winner-name {

    display: block;

    font-size:
        clamp(68px, 6.8vw, 132px);

    font-weight: 400;

    line-height: 1;

    text-wrap: balance;
}


/* Punkte unter dem Gewinner */

.play-page
.final-winner-score {

    display: block;

    font-size:
        clamp(34px, 3.5vw, 62px);

    font-weight: 400;

    line-height: 1;
}


/* -----------------------------------------
   Finale Punktzahl
   ----------------------------------------- */

.play-page
#roundScreen:has(#revealButton[hidden]):has(#nextButton[hidden])
#scoreboardArea {

    grid-column: 1;
    grid-row: 3;

    width: 100%;

    margin: 0;

    padding:
        0
        0
        clamp(55px, 7vh, 80px);

    border: 0;
}


/* Überschrift */

.play-page
#roundScreen:has(#revealButton[hidden]):has(#nextButton[hidden])
#scoreboardArea h3 {

    margin:
        0
        0
        clamp(14px, 1.5vh, 22px);

    color:
        var(--ywga-white);

    font-size:
        clamp(18px, 1.8vw, 30px);

    font-weight: 400;

    text-align: left;

    text-transform: uppercase;
}


/* 4 Spalten wie in deiner Vorlage */

.play-page
#roundScreen:has(#revealButton[hidden]):has(#nextButton[hidden])
#scoreboard {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap:
        clamp(8px, 0.8vw, 12px);

    width: 100%;

    margin: 0;
}


/* Rankingbox */

.play-page
#roundScreen:has(#revealButton[hidden]):has(#nextButton[hidden])
.scoreboard-row {

    display: block;

    min-width: 0;

    padding:
        clamp(13px, 1.4vh, 18px)
        clamp(14px, 1.2vw, 20px);

    border: 0;
    border-radius: 0;

    background:
        var(--ywga-white);

    color:
        var(--ywga-blue);

    text-align: left;
}


/* Falls du schon die neue Ranking-Struktur
   mit scoreboard-main verwendest */

.play-page
#roundScreen:has(#revealButton[hidden]):has(#nextButton[hidden])
.scoreboard-main {

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap:
        clamp(8px, 0.8vw, 14px);
}


.play-page
#roundScreen:has(#revealButton[hidden]):has(#nextButton[hidden])
.scoreboard-place {

    font-size:
        clamp(13px, 1.2vw, 20px);

    font-weight: 400;

    white-space: nowrap;
}


.play-page
#roundScreen:has(#revealButton[hidden]):has(#nextButton[hidden])
.scoreboard-name {

    min-width: 0;

    overflow: hidden;

    font-size:
        clamp(13px, 1.2vw, 20px);

    font-weight: 400;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.play-page
#roundScreen:has(#revealButton[hidden]):has(#nextButton[hidden])
.scoreboard-points {

    font-size:
        clamp(12px, 1vw, 17px);

    font-weight: 400;

    white-space: nowrap;
}


/* Im Finale niemals Tippzeilen */

.play-page
#roundScreen:has(#revealButton[hidden]):has(#nextButton[hidden])
.scoreboard-tip {

    display: none;
}


/* -----------------------------------------
   Herz links unten
   ----------------------------------------- */

.play-page
#roundScreen:has(#revealButton[hidden]):has(#nextButton[hidden])::after {

    content: "";

    position: absolute;

    left:
        clamp(25px, 2.5vw, 45px);

    bottom:
        clamp(20px, 2.5vh, 35px);

    width:
        clamp(55px, 5vw, 90px);

    aspect-ratio: 1;

    background:
        url("../images/ywga_herz.png")
        center / contain
        no-repeat;

    image-rendering: pixelated;

    pointer-events: none;
}

/* =========================================================
   PLAY FOOTER / RESTART
   ========================================================= */

.play-page .host-game-tools {

    min-height: 0;

    margin: 0;

    display: flex;

    align-items: center;

    gap: 18px;

    padding:
        clamp(12px, 1.5vh, 18px)
        0
        clamp(16px, 2vh, 24px);

    text-align: left;
}


.play-page #resetGameButton {
    margin:0;
    padding:0;
    border:0;
    border-radius:0;
    background: transparent;
    color: var(--ywga-yellow);
    font-size: clamp(16px, 1.5vw, 25px);
    line-height: 1.25;
    font-weight: 400;
    cursor: pointer;
}


.play-page #resetGameButton:hover {

    color:
        var(--ywga-white);
}


.play-page #playStatus {

    margin:
        0;

    color:
        var(--ywga-yellow);

    font-size:
        clamp(13px, 1.25vw, 21px);

    line-height:
        1.2;
}


/* =========================================================
   RESPONSIVE – ALLGEMEIN / HANDY
   ========================================================= */

@media (max-width: 700px) {

    .container {

        width:
            min(92%, 620px);

        padding:
            35px 0 55px;
    }


    .page-header {

        margin-bottom:
            30px;
    }


    .question {

        padding:
            20px;
    }


    .question h2 {

        font-size:
            1.05rem;
    }


    .access-link-row {

        flex-direction:
            column;
    }


    #copyLinkButton {

        width:
            100%;
    }


    .participant-card {

        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .tmdb-search-block {

        grid-template-columns:
            1fr;
    }


    .tmdb-search-button {

        grid-column:
            1;

        min-height:
            48px;

        padding:
            14px 18px;
    }


    .tmdb-search-block > .field-hint,
    .tmdb-selected,
    .tmdb-results,
    .book-upload-area {

        grid-column:
            1;
    }


    .tmdb-result {

        grid-template-columns:
            65px 1fr;
    }


    .tmdb-result-poster {

        width:
            65px;

        height:
            98px;
    }


    .tmdb-no-poster {

        width:
            65px;

        height:
            98px;
    }


    .vote-container {

        width:
            92%;

        padding:
            30px 0 50px;
    }


    .vote-card {

        padding:
            22px;
    }


    .result-row {

        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            8px;
    }


    .scoreboard-row {
        grid-template-columns:
            35px
            1fr
            auto;

        gap:
            10px;

        padding:
            12px;
    }

}


/* =========================================================
   PLAY – KLEINERE LAPTOP-HÖHEN
   ========================================================= */

@media (max-height: 800px) {

    .play-page .play-container {

        grid-template-rows:
        clamp(105px, 14vh, 145px)
        minmax(0, 1fr)
        clamp(88px, 9vh, 105px);
        
        padding-top: 12px;
        }


    .play-page #roundLabel {

        font-size:
            clamp(30px, 3.3vw, 50px);
    }


    .play-page #questionTitle {

        min-height:
            54px;

        font-size:
            clamp(24px, 2.5vw, 42px);
    }


    .play-page #answerText {

        font-size:
            clamp(50px, 5vw, 85px);
    }


    .play-page
    #roundScreen:has(#tmdbMediaArea:not([hidden]))
    .tmdb-poster {

        max-height:
            45vh;
    }


    .play-page
    #roundScreen:has(#tmdbMediaArea:not([hidden]))
    #answerText {

        font-size:
            clamp(55px, 5.4vw, 90px);
    }


    .play-page #correctPerson {

        font-size:
            clamp(64px, 6vw, 105px);
    }

}