/* =====================================================================
 * Der Einarmige Koch - siehe koch.js und koch-grafik.js
 *
 * Alles steht in `.k-tisch`, 742 x 542 Pixel gross (das Fenster des
 * Spielmodus unter der Kopfzeile). Masse und Stellen sind fest - der Tisch
 * ist ein Bild, kein Layout, das sich anpasst.
 * ===================================================================== */

.k-buehne {
    position: absolute;
    inset: 0;
}

.k-tisch {
    position: absolute;
    inset: 0;
    overflow: hidden;
    font-family: Muli, Verdana, sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

/* ---- Die Gewinntabelle links ------------------------------------------ */

.k-tabelle {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 152px;
    height: 514px;
    padding: 12px 10px 10px;
    border: 1px solid rgba(233, 200, 107, .38);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(10, 22, 54, .86), rgba(4, 10, 26, .9));
    box-shadow: 0 10px 26px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.k-tabelle h4 {
    margin: 0 0 8px;
    color: #e9c86b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
    text-align: center;
    text-transform: uppercase;
}

.k-preise {
    margin: 0;
    padding: 0;
    list-style: none;
}

.k-preise li {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 41px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.k-preise img,
.k-jackpotzeile img {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}

.k-preisname {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #cfdcf5;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.15;
}

.k-preise b {
    color: #ffd45a;
    font-size: 15px;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 190, 60, .55);
}

.k-trost {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 8px;
    color: #cfdcf5;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.k-trost img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

.k-trost span {
    margin-left: 4px;
}

.k-jackpotzeile {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px;
    border: 1px solid rgba(255, 130, 220, .6);
    border-radius: 12px;
    background: radial-gradient(120px 60px at 30% 40%, rgba(255, 90, 200, .28), rgba(255, 90, 200, .05));
    box-shadow: 0 0 18px rgba(255, 90, 200, .3);
}

.k-jackpotzeile span {
    display: flex;
    flex-direction: column;
    color: #ffd8f4;
    font-size: 11px;
    line-height: 1.25;
}

.k-jackpotzeile small {
    color: #ffb6e6;
    font-size: 10px;
}

.k-tabellenfuss {
    margin: 12px 0 0;
    color: #8fa3c8;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
}

/* ---- Die Maschine ------------------------------------------------------ */

.k-maschine {
    position: absolute;
    left: 178px;
    top: 14px;
    width: 440px;
    height: 514px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 28px;
    background:
        linear-gradient(168deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 24%),
        linear-gradient(145deg, #2a3f6c 0%, #0e1a38 42%, #1a2b52 100%);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, .65),
        inset 0 2px 0 rgba(255, 255, 255, .3),
        inset 0 -4px 10px rgba(0, 0, 0, .55),
        0 0 0 3px rgba(233, 200, 107, .28);
}

/* Die Gluehbirnen oben: zwei Reihen, die abwechselnd leuchten. */
.k-lichter {
    position: absolute;
    left: 26px;
    right: 26px;
    top: 4px;
    height: 10px;
    background: radial-gradient(circle at 50% 50%, #ffe08a 0 2.6px, rgba(255, 190, 60, .45) 3.4px, transparent 5px) 0 0 / 22px 10px repeat-x;
}

.k-lichter-a { animation: k-blinkA 1.1s steps(1) infinite; }
.k-lichter-b { left: 37px; animation: k-blinkB 1.1s steps(1) infinite; }

@keyframes k-blinkA { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes k-blinkB { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.k-dreht .k-lichter-a,
.k-dreht .k-lichter-b {
    animation-duration: .32s;
}

.k-schild {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 18px;
    height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(233, 200, 107, .55);
    border-radius: 12px;
    background: linear-gradient(180deg, #0d1c42, #050c22);
    box-shadow: inset 0 0 18px rgba(38, 120, 255, .28), 0 2px 8px rgba(0, 0, 0, .5);
}

.k-name {
    background: linear-gradient(180deg, #fff6c8 0%, #ffd24a 48%, #d9861a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
    filter: drop-shadow(0 0 8px rgba(255, 190, 60, .5));
}

.k-schild small {
    margin-top: 2px;
    color: #8db4ff;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
}

.k-jackpot {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(255, 110, 210, .55);
    border-radius: 10px;
    background: linear-gradient(180deg, #14061f, #08020f);
    box-shadow: inset 0 0 16px rgba(255, 60, 190, .28), 0 0 16px rgba(255, 60, 190, .22);
}

.k-etikett {
    color: #ff7fd5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .28em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 90, 200, .9);
}

.k-betrag {
    min-width: 96px;
    color: #ffe27a;
    font-size: 27px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-shadow: 0 0 14px rgba(255, 190, 60, .85);
}

.k-einheit {
    color: #ffc9ee;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Der Rahmen ums Walzenfenster: gebuerstetes Gold. */
.k-rahmen {
    position: absolute;
    left: 10px;
    top: 118px;
    width: 420px;
    height: 296px;
    padding: 10px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, #fff2b0 0%, #e0a92e 22%, #8a5a12 48%, #f6d466 70%, #b07a1c 100%);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, .6),
        inset 0 2px 2px rgba(255, 255, 255, .55),
        inset 0 -3px 6px rgba(70, 40, 4, .7);
}

.k-fenster {
    width: 400px;
    height: 276px;
    overflow: hidden;
    border-radius: 9px;
    background: #050d22;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .7), inset 0 0 26px rgba(0, 0, 0, .9);
}

.k-fenster canvas {
    display: block;
}

.k-anzeigen {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 422px;
    height: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.k-anz {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 9px;
    background: linear-gradient(180deg, #030814, #071230);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .8);
}

.k-anz small {
    color: #7f95c2;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.k-anz b {
    color: #8dffb4;
    font-size: 18px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(80, 255, 150, .7);
}

.k-anz-gewinn b {
    color: #ffd45a;
    text-shadow: 0 0 10px rgba(255, 190, 60, .7);
    transition: transform .18s;
}

.k-anz-gewinn b.k-blitz {
    transform: scale(1.18);
    color: #fff3b8;
}

.k-bedienung {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 460px;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.k-einsatz {
    display: flex;
    gap: 7px;
}

.k-einsatz button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #34497c, #0e1a3a 70%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
    color: #dbe6ff;
    font: 800 14px/1 Muli, Verdana, sans-serif;
    cursor: pointer;
    transition: transform .12s, border-color .15s, box-shadow .15s;
}

.k-einsatz button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(255, 220, 120, .8);
}

.k-einsatz button.k-an {
    border-color: #ffd45a;
    background: radial-gradient(circle at 35% 30%, #ffe89a, #d59a26 72%);
    box-shadow: 0 0 14px rgba(255, 200, 70, .7), inset 0 1px 0 rgba(255, 255, 255, .6);
    color: #3a2402;
}

.k-einsatz button:disabled,
.k-drehen:disabled {
    cursor: default;
    opacity: .6;
}

.k-drehen {
    flex: 1;
    height: 46px;
    border: 2px solid #fff3b0;
    border-radius: 23px;
    background: linear-gradient(180deg, #ffe99a 0%, #f2b93a 45%, #c47f10 100%);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, .55),
        0 0 22px rgba(255, 190, 60, .35),
        inset 0 2px 0 rgba(255, 255, 255, .75),
        inset 0 -3px 5px rgba(120, 60, 0, .45);
    color: #3a2402;
    font: 800 19px/1 Muli, Verdana, sans-serif;
    letter-spacing: .2em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .1s, filter .15s;
}

.k-drehen:hover:not(:disabled) {
    filter: brightness(1.08);
}

.k-drehen:active:not(:disabled) {
    transform: translateY(2px);
}

/* ---- Hebel, Effekte, Meldungen ------------------------------------------- */

.k-hebel {
    position: absolute;
    left: 574px;
    top: 80px;
    width: 168px;
    height: 380px;
    cursor: grab;
    touch-action: none;
}

.k-hebel.k-gezogen {
    cursor: grabbing;
}

.k-fx {
    position: absolute;
    left: 0;
    top: 0;
    width: 742px;
    height: 542px;
    pointer-events: none;
}

.k-meldung {
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 8;
    max-width: 560px;
    padding: 8px 18px;
    border: 1px solid rgba(233, 200, 107, .7);
    border-radius: 18px;
    background: rgba(6, 14, 36, .95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .55);
    color: #ffe9a8;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transform: translateX(-50%);
}

.k-meldung[hidden] {
    display: none;
}

.k-meldung-fehler {
    border-color: rgba(255, 100, 120, .8);
    color: #ffc2cb;
}

/* ---- Regeln und Bestenliste ------------------------------------------------ */

.k-blatt {
    position: absolute;
    inset: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(233, 200, 107, .5);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(8, 18, 46, .985), rgba(3, 8, 22, .985));
    box-shadow: 0 16px 50px rgba(0, 0, 0, .7);
}

.k-blatt[hidden] {
    display: none;
}

.k-blattkopf {
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.k-blattkopf h3 {
    margin: 0;
    color: #ffd45a;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.k-zu {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #b9c9ea;
    font-size: 26px;
    line-height: 30px;
    cursor: pointer;
}

.k-zu:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.k-blattkoerper {
    flex: 1;
    padding: 14px 20px 18px;
    overflow-y: auto;
    color: #d6e1f7;
    font-size: 13px;
    line-height: 1.5;
}

.k-blattkoerper h4 {
    margin: 14px 0 4px;
    color: #e9c86b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.k-blattkoerper p {
    margin: 0 0 6px;
}

.k-blattkoerper b {
    color: #fff;
}

.k-schritte {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: schritt;
}

.k-schritte li {
    position: relative;
    margin: 0 0 7px;
    padding-left: 34px;
    counter-increment: schritt;
}

.k-schritte li::before {
    content: counter(schritt);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffe89a, #d59a26);
    color: #3a2402;
    font-size: 13px;
    font-weight: 800;
    line-height: 24px;
    text-align: center;
}

.k-linienbild {
    display: flex;
    gap: 14px;
    margin: 10px 0 2px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    overflow-x: auto;
}

.k-linienbild figure {
    margin: 0;
    text-align: center;
}

.k-linienbild figcaption {
    margin-top: 2px;
    color: #9db2d8;
    font-size: 10px;
}

.k-gross {
    display: block;
    width: 100%;
    margin-top: 12px;
    height: 44px;
    border: 2px solid #fff3b0;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffe99a, #f2b93a 50%, #c47f10);
    color: #3a2402;
    font: 800 15px/1 Muli, Verdana, sans-serif;
    letter-spacing: .06em;
    cursor: pointer;
}

.k-siegerreihe {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.k-sieger {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    border: 1px solid rgba(233, 200, 107, .5);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 200, 70, .16), rgba(255, 200, 70, .04));
}

.k-sieger small {
    color: #e9c86b;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.k-sieger b {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.k-sieger span {
    color: #8dffb4;
    font-size: 12px;
    font-weight: 800;
}

.k-sieger-leer {
    opacity: .55;
}

.k-reiter {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.k-reiter button {
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    color: #d6e1f7;
    font: 800 12px/1 Muli, Verdana, sans-serif;
    cursor: pointer;
}

.k-reiter button.k-an {
    border-color: #ffd45a;
    background: linear-gradient(180deg, #ffe89a, #d59a26);
    color: #3a2402;
}

.k-tabelle2 {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.k-tabelle2 th {
    padding: 4px 8px;
    color: #8fa3c8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-align: left;
    text-transform: uppercase;
}

.k-tabelle2 td {
    padding: 6px 8px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.k-tabelle2 .k-zahl {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.k-tabelle2 th:nth-child(n+3) {
    text-align: right;
}

.k-platz {
    width: 32px;
    color: #ffd45a;
    font-weight: 800;
}

.k-plus {
    color: #8dffb4;
    font-weight: 800;
}

.k-minus {
    color: #ff9aa8;
}

.k-ich td {
    background: rgba(38, 194, 247, .16);
}

.k-meins {
    margin: 12px 0 4px !important;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
}

.k-zuletzt {
    color: #8fa3c8;
    font-size: 12px;
}

.k-leer {
    padding: 22px 0;
    color: #8fa3c8;
    text-align: center;
}