/* skin.css — Spiel-Look für HUD und Fenster (UI-Umbau, Wunsch Jens 30.10.2026).
 *
 * Wird als LETZTE Stildatei geladen und legt sich über ui.css, ui-holo*.css und windows.css.
 * Wer den alten Look zurück will, entfernt nur die eine Zeile in index.html.
 *
 * Bausteine:
 *   Schrift   Lilita One (Logo) für Titel, Zahlen, Knöpfe · Exo 2 für Text
 *   Platte    Metallrahmen mit Nieten (art/ui/plate.png, 9-Slice) für HUD-Teile und Fenster
 *   Taste     Metalltaste mit Pixel-Symbol, Lampe für AN/AUS
 *   Balken    dunkle Rinne, Glanzkante, feine Teilung, Zahl in Lilita
 *   Akzent    --acc je Bereich (Raffinerie Orange …), sonst Cyan
 * Beide Schriften liegen auf dem eigenen Server, Lizenz SIL OFL 1.1 (assets/fonts/OFL-*.txt). */

@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 500; font-display: swap;
    src: url(../assets/fonts/exo-2-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 600; font-display: swap;
    src: url(../assets/fonts/exo-2-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 700; font-display: swap;
    src: url(../assets/fonts/exo-2-latin-700-normal.woff2) format('woff2'); }

:root {
    --sk-navy: #1c1f4c;          /* Dunkelblau aus dem Logo */
    --sk-deep: #0d1030;
    --sk-panel: #161a36;
    --sk-card: #1d2342;
    --sk-card2: #151a33;
    --sk-line: #2c3560;
    --sk-steel: #4a5578;
    --sk-steel-hi: #8a96c4;
    --sk-text: #e9ecff;
    --sk-dim: #9aa3c8;
    --sk-gold: #ffd166;
    --acc: #39d7ff;              /* Akzent je Bereich, Standard Cyan */
    --sk-disp: 'Lilita One', 'Arial Rounded MT Bold', 'Arial Black', sans-serif;
    --sk-body: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
}

html, body { font-family: var(--sk-body); font-weight: 600; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font-family: inherit; }

/* Titel mit Logo-Rand (dunkelblau, ringsum) */
.sk-logo, #place-name, #winbox h2#win-title {
    font-family: var(--sk-disp); font-weight: 400;
    text-shadow: 2px 0 var(--sk-navy), -2px 0 var(--sk-navy), 0 2px var(--sk-navy), 0 -2px var(--sk-navy),
                 2px 2px var(--sk-navy), -2px 2px var(--sk-navy), 2px -2px var(--sk-navy), -2px -2px var(--sk-navy),
                 0 4px 0 rgba(0, 0, 0, .45);
}

/* ── Platte (Metallrahmen mit Nieten) ── */
/* Gemeinsamer Rahmen (06.11.2026): .win-frame = JEDES Fenster (#winbox, Laden, Willkommen, Nachfragen),
   .hud-panel = die Kästen oben (Ort, Auftrag). Neue Fenster bekommen nur die Klasse, nie eigene Rahmen-Regeln.
   :is(#place, …) / :is(#welcome .win, …) halten die Gewichtung so hoch wie die alten id-Regeln in
   ui-holo*.css — sonst gewinnen dort Glas-Rahmen (Prüfung 06.11.: Rahmen fehlte). */
#bar, :is(#place, .hud-panel), :is(#welcome .win, .win-frame) {
    border: 18px solid transparent;
    border-image: url(../art/ui/plate.png) 34 fill / 18px stretch;
    image-rendering: pixelated;
    background: none; border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .45));
}
#bar::before, #bar::after { display: none; }

/* ── Balken ── */
.pbar {
    background: #0a0c22; border: 2px solid #05061a; border-radius: 3px;
    box-shadow: inset 0 2px 0 rgba(0, 0, 0, .6), 0 0 0 2px var(--sk-line);
}
.pbar > i { position: relative; border-radius: 1px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22); }
.pbar > i::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 32%;
    background: rgba(255, 255, 255, .32); pointer-events: none; }
.pbar > i::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(0, 0, 0, .16) 10px 12px); }
.pbar > span { font-family: var(--sk-disp); font-weight: 400; letter-spacing: .3px; color: #fff;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }

/* ── HUD unten ── */
#bar { padding: 4px 6px; gap: 12px; }
#bar-char { flex-direction: row; align-items: center; gap: 12px; flex-basis: 330px; }
#bc-por { position: relative; flex: none; width: 84px; height: 84px; border-radius: 6px;
    background: #0a0c22; border: 3px solid #05061a;
    box-shadow: 0 0 0 3px #ff8a2a, 0 0 14px rgba(255, 138, 42, .45); }
#bc-por img { display: block; width: 100%; height: 100%; border-radius: 3px; image-rendering: pixelated; }
#bc-por b { position: absolute; left: -12px; bottom: -12px; width: 42px; height: 42px;
    display: grid; place-items: center;
    font: 400 20px var(--sk-disp); color: #fff;
    background: linear-gradient(#ffd166, #ff8a2a);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    text-shadow: 1px 1px 0 #5a2a00, -1px -1px 0 #5a2a00, 1px -1px 0 #5a2a00, -1px 1px 0 #5a2a00; }
.bc-stats { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bc-name { font: 400 20px var(--sk-disp); letter-spacing: 1px; color: var(--sk-text); line-height: 1; }
.bc-row { display: flex; align-items: center; gap: 6px; }
.bc-row .pbar { flex: 1; min-width: 0; }
.bc-sym { flex: none; width: 18px; text-align: center; font: 400 17px var(--sk-disp); font-style: normal; line-height: 1; }
.bc-sym.hp { color: #ff5a6a; }
.bc-sym.en { color: #39d7ff; }
.bc-sym.xp { color: #b98aff; }
#bar-char .pbar { height: 20px; }
#bar-char .pbar.xp { height: 14px; }
#bar-char .pbar.xp > span { font-size: 11px; }

#bar .ico {
    background: linear-gradient(#56618a, #3a4466 55%, #2c3453);
    border: 2px solid #0a0c22; border-radius: 6px;
    box-shadow: inset 0 2px 0 var(--sk-steel-hi), inset 0 -4px 0 #20263f, 0 4px 0 #000;
    color: var(--sk-text); transform: none;
}
#bar .ico:hover { background: linear-gradient(#66729e, #46507a 55%, #343d60); border-color: #0a0c22; transform: none; }
#bar .ico:active { transform: translateY(2px); box-shadow: inset 0 2px 0 var(--sk-steel-hi), inset 0 -2px 0 #20263f, 0 2px 0 #000; }
#bar .ico.on { background: linear-gradient(#5a7aa8, #3d5a86 55%, #2c4266); border-color: #0a0c22;
    box-shadow: inset 0 2px 0 #a8c8ff, inset 0 -4px 0 #20304f, 0 4px 0 #000, 0 0 12px rgba(57, 215, 255, .35); }
#bar .ico span { font: 400 14px var(--sk-disp); letter-spacing: .4px; color: var(--sk-text); }
#bar .ico i, #bar .ico.on i { text-shadow: none; }
.ico-img { filter: drop-shadow(0 2px 0 #000); }
/* AN/AUS als Lampe statt Schildchen */
#bar .ico.auto em { font-size: 0; padding: 0; width: 11px; height: 11px; border-radius: 50%;
    top: 6px; right: 6px; border: 1px solid #052; background: #5be08a;
    box-shadow: 0 0 8px #5be08a, inset 0 -2px 0 #2a8a4a; }
#bar .ico.auto.off em { background: #3a1c22; border-color: #000; box-shadow: inset 0 -2px 0 #1a080c; }

/* ── Ortsschild, Auftrag, Geldbeutel ── */
#place { padding: 0 10px 2px; }
#place-name { color: #fff; letter-spacing: 2px; }
#place-prog { font-family: var(--sk-body); color: var(--sk-dim); }
#place .pbar > i { background: linear-gradient(90deg, #ff6a1a, #ffd166); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22); }
#quest { padding: 2px 6px; }
.q-title { font-family: var(--sk-body); font-weight: 700; color: var(--sk-text); }
.q-prog { font: 400 15px var(--sk-disp); color: var(--sk-gold); }
.q-reward { color: var(--sk-dim); }
.q-claim { font: 400 15px var(--sk-disp); letter-spacing: .5px; color: #2a1600;
    background: linear-gradient(#ffe08a, #ffb72e); border: 2px solid #5a3200; border-radius: 5px;
    box-shadow: inset 0 -3px 0 #c97d00, 0 3px 0 #000; }
.q-claim:hover { background: linear-gradient(#ffeaa8, #ffc24a); }
.q-claim.ready::after { box-shadow: 0 0 20px 3px rgba(255, 200, 80, .7); }
#wallet { background: none; border: 0; box-shadow: none; gap: 8px; }
#wallet .wal { background: var(--sk-deep); border: 2px solid #05061a; border-radius: 6px;
    box-shadow: 0 0 0 2px var(--sk-steel), 0 4px 0 #000; padding: 4px 10px 4px 6px; }
#wallet .wal b { font: 400 18px var(--sk-disp); letter-spacing: .3px; }

/* ── Fenster ── */
#winbox {
    --w-card: var(--sk-card);
    --w-line: var(--sk-line);
    --w-line2: rgba(120, 140, 200, .16);
    --w-text: var(--sk-text);
    --w-dim: var(--sk-dim);
    --w-acc: var(--acc);
    padding: 6px 12px 12px;
}
#winbox h2#win-title { font-size: 30px; letter-spacing: 2px; color: #fff;
    border-bottom: 2px solid color-mix(in srgb, var(--acc) 35%, transparent);
    padding-bottom: 10px; margin: 2px 56px 14px 0; }
#winbox #win-close { top: 2px; right: 2px; width: 44px; height: 44px; font: 400 22px var(--sk-disp);
    color: #fff; background: linear-gradient(#6a2436, #3a1020); border: 2px solid #000; border-radius: 6px;
    box-shadow: inset 0 2px 0 #b04a5e, 0 3px 0 #000; }
#winbox #win-close:hover { background: linear-gradient(#80304a, #4a1428); color: #fff; }
#winbox :is(.card, .pet-stats, .tal-info) {
    background: linear-gradient(var(--sk-card), var(--sk-card2));
    border: 2px solid #05061a; border-radius: 8px;
    box-shadow: inset 0 2px 0 rgba(120, 140, 210, .22), 0 3px 0 rgba(0, 0, 0, .55);
}
#winbox :is(.card-title, .sec) { font-family: var(--sk-disp); font-weight: 400; letter-spacing: .6px; }
#winbox .card-title { font-size: 19px; }
#winbox .sec { color: var(--acc); }
/* Hauptknopf: Gold, gedrückt wirkt er wie eine echte Taste */
#winbox .btn {
    font-family: var(--sk-disp); font-weight: 400; letter-spacing: .5px; color: #2a1600;
    background: linear-gradient(#ffe08a, #ffb72e); border: 2px solid #5a3200; border-radius: 6px;
    box-shadow: inset 0 -3px 0 #c97d00, inset 0 2px 0 rgba(255, 255, 255, .45), 0 3px 0 #000;
}
#winbox .btn:hover:not(:disabled) { background: linear-gradient(#ffeaa8, #ffc24a); }
#winbox .btn:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 -1px 0 #c97d00, 0 1px 0 #000; }
#winbox .btn:disabled { color: #7d86ad; background: #232a48; border-color: #05061a; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06); }
#winbox :is(.btn.ghost, .btn.mini, .pbtn) {
    font-family: var(--sk-disp); font-weight: 400; letter-spacing: .4px; color: var(--sk-text);
    background: linear-gradient(#4a5578, #2c3453); border: 2px solid #05061a; border-radius: 6px;
    box-shadow: inset 0 2px 0 rgba(160, 175, 230, .45), 0 3px 0 #000;
}
#winbox :is(.btn.ghost, .btn.mini, .pbtn):hover:not(:disabled) { color: #fff; background: linear-gradient(#5a6690, #36406a); }
#winbox .pbtn.sel { color: #fff; background: linear-gradient(#3d6fa8, #244a7a); }
#winbox .btn.buy { color: #e6fbff; background: linear-gradient(#1f6fa0, #124a70); border: 2px solid #05061a;
    box-shadow: inset 0 2px 0 rgba(140, 230, 255, .5), 0 3px 0 #000; }
#winbox :is(.btn.buy:disabled, .btn.buy.short) { color: #ff9b8a; background: #2a1f30; border-color: #05061a; box-shadow: none; }
#winbox .seg { border: 2px solid #05061a; border-radius: 6px; box-shadow: 0 3px 0 #000; }
#winbox .seg > .btn { font-family: var(--sk-disp); color: var(--sk-text); background: linear-gradient(#4a5578, #2c3453);
    border: 0; box-shadow: inset 0 2px 0 rgba(160, 175, 230, .35); }
#winbox .seg > .btn + .btn { border-left: 2px solid #05061a; }
#winbox .seg > .btn.gold { color: #2a1600; background: linear-gradient(#ffe08a, #ffb72e); }
#winbox :is(.ord-switch, .ord-tabs) .btn.gold { color: #fff; background: linear-gradient(#3d6fa8, #244a7a); border: 2px solid #05061a; }

/* ── Größen ── */
@media (min-width: 761px) and (max-width: 1200px) {
    #bar-char { flex-basis: 270px; }
    #bc-por { width: 70px; height: 70px; }
    #bar .ico span { font-size: 12px; }
}
@media (min-width: 761px) and (max-width: 900px) {
    #bar-char { flex-basis: 230px; }
    #bc-por { width: 58px; height: 58px; }
    #bc-por b { width: 34px; height: 34px; font-size: 16px; left: -8px; bottom: -8px; }
}
@media (max-width: 760px) and (orientation: portrait) {
    #bar, :is(#place, .hud-panel), #winbox.win-frame { border-width: 12px; border-image-width: 12px; }
    #bar-char { flex: none; }   /* Leiste ist hier gestapelt: flex-basis wäre die HÖHE */
    #auto-pair { flex: none; }
    #bc-por { width: 56px; height: 56px; }
    #bc-por b { width: 30px; height: 30px; font-size: 14px; left: -8px; bottom: -8px; }
    #bar .ico span { font-size: 11px; }
    #winbox h2#win-title { font-size: 24px; }
}
@media (orientation: landscape) and (max-height: 540px) {
    #bar, :is(#place, .hud-panel), #winbox.win-frame { border-width: 10px; border-image-width: 10px; }
    #bar { padding: 0 2px; }
    #bar-char { flex-basis: 190px; gap: 8px; }
    #bc-por { width: 40px; height: 40px; box-shadow: 0 0 0 2px #ff8a2a; border-width: 2px; }
    #bc-por b { width: 24px; height: 24px; font-size: 12px; left: -7px; bottom: -7px; }
    .bc-name { font-size: 14px; }
    .bc-stats { gap: 3px; }
    .bc-sym { width: 12px; font-size: 11px; }
    #bar-char .pbar, #bar-char .pbar.xp { height: 13px; }
    #bar-char .pbar > span { font-size: 9px; }
    #bar .ico span { font-size: 9px; }
    #bar .ico.auto em { width: 8px; height: 8px; top: 3px; right: 3px; }
    #winbox h2#win-title { font-size: 20px; }
}

/* ── Akzentfarbe je Bereich (#winbox[data-win]) ── */
#winbox[data-win="refine"], #winbox[data-win="shredder"] { --acc: #ff8a2a; }
#winbox[data-win="orders"] { --acc: #ffd166; }
#winbox[data-win="talents"] { --acc: #b98aff; }
#winbox[data-win="bag"], #winbox[data-win="depot"] { --acc: #5be08a; }

/* ── Öfen als Kacheln (facility.js ovenRow) ── */
.oven-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin: 12px 0 8px; }
.oven { position: relative; min-height: 128px; border-radius: 8px; border: 2px solid #05061a;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding: 10px 6px 22px; text-align: center;
    background: linear-gradient(#3b2a2a, #1d1416); box-shadow: inset 0 2px 0 #6a4a40, 0 3px 0 #000; }
.oven-mouth { width: 66px; height: 52px; flex: none; border-radius: 33px 33px 6px 6px;
    display: grid; place-items: center;
    background: radial-gradient(circle at 50% 85%, #3a2c2c, #1a1214 75%); box-shadow: inset 0 0 0 3px #0a0606; }
.oven.on .oven-mouth { background: radial-gradient(circle at 50% 80%, #fff3b0, #ffb020 30%, #ff5a10 60%, #5a1200 100%);
    box-shadow: inset 0 0 0 3px #1a0a06, 0 0 16px rgba(255, 122, 42, .75); }
/* Hitze (Wunsch Jens 31.10.2026, „nichts Übertriebenes"): Die Glut flackert leicht,
   über der Öffnung steigt ein schwacher Hitzeschleier auf. Nur opacity/transform,
   je Ofen versetzt, damit nicht alle im Gleichtakt pulsieren. */
.oven.on .oven-mouth { position: relative; }
.oven.on .oven-mouth::before { content: ''; position: absolute; inset: 3px; border-radius: inherit; pointer-events: none;
    background: radial-gradient(circle at 50% 85%, rgba(255, 245, 190, .55), rgba(255, 150, 40, 0) 70%);
    animation: oven-flicker 2.3s ease-in-out infinite; }
.oven.on .oven-mouth::after { content: ''; position: absolute; left: 14%; right: 14%; top: -14px; height: 22px; pointer-events: none;
    border-radius: 50%; background: radial-gradient(ellipse at 50% 100%, rgba(255, 170, 80, .30), rgba(255, 170, 80, 0) 70%);
    filter: blur(3px); animation: oven-haze 3.1s ease-in-out infinite; }
.oven.on:nth-child(3n+2) .oven-mouth::before { animation-delay: -.8s; }
.oven.on:nth-child(3n+3) .oven-mouth::before { animation-delay: -1.5s; }
.oven.on:nth-child(2n) .oven-mouth::after { animation-delay: -1.4s; }
@keyframes oven-flicker { 0%, 100% { opacity: .55; } 18% { opacity: .9; } 37% { opacity: .6; } 55% { opacity: 1; } 74% { opacity: .7; } }
@keyframes oven-haze { 0% { opacity: 0; transform: translateY(6px) scaleX(.85); } 35% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-8px) scaleX(1.1); } }
@media (prefers-reduced-motion: reduce) { .oven.on .oven-mouth::before, .oven.on .oven-mouth::after { animation: none; } }
.oven-mouth img, .oven-mouth .mat-ico { position: relative; z-index: 1; width: 36px; height: 36px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 #000); }
.oven-name { font: 400 13px var(--sk-disp); letter-spacing: .3px; margin-top: 6px; line-height: 1.15; color: var(--sk-text); }
.oven.idle .oven-name { color: var(--sk-dim); }
.oven-bar.pbar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 9px; box-shadow: none; }
.oven-bar.pbar > i { background: linear-gradient(90deg, #c2410c, #ffd166);
    width: 100%; transition: none; clip-path: inset(0 100% 0 0); }
.oven.buy { justify-content: center; padding: 8px 6px; background: linear-gradient(#25304f, #151a30);
    border: 2px dashed rgba(57, 215, 255, .55); box-shadow: inset 0 2px 0 #4a5a8a, 0 3px 0 #000; }
.oven-plus { font: 400 34px var(--sk-disp); color: #39d7ff; line-height: 1; }
.oven.buy .btn.buy { margin-top: 4px; min-height: 30px; padding: 3px 10px; }
.oven.buy .oven-name { font: 600 11px var(--sk-body); color: var(--sk-dim); }
.oven.next { justify-content: center; padding: 8px 6px; background: #101225; box-shadow: inset 0 2px 0 #222844, 0 3px 0 #000; }
.oven-lock { font-size: 26px; filter: grayscale(.6); opacity: .8; }
.oven.next .oven-name { color: #6a7299; }
@media (max-width: 760px) { .oven-row { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
    .oven { min-height: 112px; } .oven-mouth { width: 54px; height: 44px; } .oven-mouth img, .oven-mouth .mat-ico { width: 30px; height: 30px; } }

/* ── Karten-Kacheln in Fenstern (Aufträge in Raffinerie/Schredder, Brennplätze, Drohnen …) ── */
#winbox .slot { border: 2px solid #05061a; border-radius: 8px;
    background: linear-gradient(#232a48, #171c34); box-shadow: inset 0 2px 0 rgba(120, 140, 210, .25), 0 3px 0 #000; }
#winbox .slot.on { border-color: #05061a; background: linear-gradient(#2a3256, #1a2040);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--acc) 70%, transparent), inset 0 3px 0 rgba(255, 255, 255, .12), 0 3px 0 #000; }
#winbox .slot.on:hover { background: linear-gradient(#303a62, #1e2548); }
#winbox .slot.empty, #winbox .slot.locked { background: #101327; border: 2px dashed #2c3560; box-shadow: none; }
#winbox .slot-badge { font: 400 11px var(--sk-disp); letter-spacing: 1px; color: var(--acc); }
#winbox .slot-name { font: 400 18px var(--sk-disp); letter-spacing: .4px; }
#winbox .slot .bar, #winbox .slot-bar { background: #0a0c22; border: 2px solid #05061a; border-radius: 3px; }
#winbox .slot .bar > i, #winbox .smelt-fill { background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 60%, #000), var(--acc)); }
/* Rezept-Symbol größer, in einem dunklen Kästchen */
#winbox .refine-rec-main .mod-ico-sm { width: 40px; height: 40px; padding: 3px; border-radius: 6px;
    background: #0a0c22; box-shadow: 0 0 0 2px #2c3560; image-rendering: pixelated; }
#winbox .refine-rec-main .lbl { font: 400 17px var(--sk-disp); letter-spacing: .3px; }
/* Anlagen-Fenster breiter, damit alle Öfen in eine Reihe passen */
#winbox:is([data-win="refine"], [data-win="shredder"]) { width: min(1040px, 96vw); }

/* ── Auftragsleiste rechts (widgets/orderTrack.js): leicht und modern, ohne Nietenrahmen — sie
   ist hoch und soll die Szene nicht zudecken. Fertig = grüner Rand mit Haken. ── */
#ordertrack { gap: 6px; }
#ordertrack .ot-head, #ordertrack .ot-row, #ordertrack .ot-warn {
    background: linear-gradient(rgba(26, 31, 70, .9), rgba(12, 14, 38, .9));
    border: 1px solid rgba(150, 170, 240, .22); border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .07);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#ordertrack .ot-head { font: 400 14px var(--sk-disp); letter-spacing: .4px; color: var(--sk-text); padding: 7px 12px; }
#ordertrack .ot-head .ot-cnt { font-weight: 400; color: var(--sk-gold); }
#ordertrack .ot-head .ot-rdy { color: #7ff0a4; }
#ordertrack .ot-row { display: flex; align-items: center; gap: 9px; padding: 6px 9px 6px 6px; position: relative;
    border: 2px solid rgba(255, 110, 80, .75); }   /* offen = rot umrandet, fertig = grün (Jens 30.10.2026) */
#ordertrack .ot-row.rdy { border: 2px solid #4fd283; padding: 6px 9px 6px 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4), 0 0 12px rgba(79, 210, 131, .25); }
#ordertrack .ot-row[data-item]:hover { border-color: #ff9a7a; }
#ordertrack .ot-row.rdy[data-item]:hover { border-color: #7ff0a4; }
#ordertrack .ot-ico { position: relative; flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
    background: rgba(5, 6, 20, .65); box-shadow: inset 0 0 0 1px rgba(150, 170, 240, .18); }
#ordertrack .ot-ico img, #ordertrack .ot-ico .mat-ico { width: 24px; height: 24px; image-rendering: pixelated; }
#ordertrack .ot-main { flex: 1; min-width: 0; }
#ordertrack .ot-line { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
#ordertrack .ot-name { font: 400 14px var(--sk-disp); letter-spacing: .3px; color: var(--sk-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ordertrack .ot-n { font: 600 11px var(--sk-body); color: var(--sk-dim); margin-left: 4px; font-style: normal; }
#ordertrack .ot-cnt { flex: none; font: 400 14px var(--sk-disp); color: #ff9a7a; }
#ordertrack .ot-cnt small { font-size: 11px; color: var(--sk-dim); }
#ordertrack .ot-row.rdy .ot-cnt { color: #7ff0a4; }
#ordertrack .ot-bar { height: 5px; margin-top: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
#ordertrack .ot-bar > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ff7a52, #ffb27a); }
#ordertrack .ot-row.rdy .ot-bar > i { background: linear-gradient(90deg, #36b56a, #8ff5b4); }
#ordertrack .ot-src { margin-top: 4px; font: 600 11px var(--sk-body); color: var(--sk-dim);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ordertrack .ot-ok { position: absolute; top: -5px; right: -5px; width: 17px; height: 17px; border-radius: 50%;
    display: grid; place-items: center; font: 400 12px/1 var(--sk-disp); color: #062a14;
    background: linear-gradient(#9ff5bd, #46c97a); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
#ordertrack .ot-give { font: 400 14px var(--sk-disp); letter-spacing: .4px; color: #062a14;
    background: linear-gradient(#9ff5bd, #46c97a); border: 0; border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .5); }
#ordertrack .ot-give:disabled { color: #5a7a68; background: #1a2a28; box-shadow: none; }
#ordertrack .ot-warn { color: #ffb59e; border-color: rgba(255, 120, 90, .55); }

/* ── Fähigkeiten neben Mara (widgets/buffBar.js): Zustände (Farben, Abklingzeit) bleiben,
   nur Rahmen und Zahl im Spiel-Look. ── */
#buffbar .sk { border-radius: 8px; border-width: 3px; }
#buffbar .sk:not(.ready):not(.on):not(.gold) { border-color: #05061a; box-shadow: 0 0 0 2px var(--sk-steel), 0 3px 0 #000; }
#buffbar .sk-n { font: 400 22px/1 var(--sk-disp);
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 2px 0 #000; }

/* ── Schild über Gebäuden/Portal (#prompt) ── */
#prompt { background: rgba(13, 16, 48, .94); border: 2px solid #05061a; border-radius: 6px;
    box-shadow: 0 0 0 2px var(--sk-steel), 0 4px 0 #000; padding: 7px 16px; }
#prompt b { font: 400 20px var(--sk-disp); letter-spacing: .6px; color: #fff; text-shadow: 0 2px 0 var(--sk-navy); }
#prompt span { font-family: var(--sk-body); color: var(--sk-dim); }
#prompt.float::after { border-top-color: var(--sk-steel); }

/* ── Kleine Fenster (shell/dialog.js .ask-card, Gast-Angebot), Rückkehr (#welcome), Laden (#loading) ── */
.ask-card, #welcome .win, #loading .win {   /* Rahmen kommt von .win-frame (oben) */
    border-radius: 0; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .5)); color: var(--sk-text); padding: 6px 12px 12px;
}
.ask-card .card-head { border-bottom: 2px solid rgba(57, 215, 255, .3); padding-bottom: 8px; }
.ask-card .card-title { font: 400 22px var(--sk-disp); letter-spacing: .6px; color: #fff; text-shadow: 0 2px 0 var(--sk-navy); }
.ask-card .ask-text { color: var(--sk-text); font-size: 15px; line-height: 1.55; }
#welcome h2, #loading h2 { font: 400 30px var(--sk-disp); letter-spacing: 1.5px; color: #fff;
    text-shadow: 2px 0 var(--sk-navy), -2px 0 var(--sk-navy), 0 2px var(--sk-navy), 0 -2px var(--sk-navy),
                 2px 2px var(--sk-navy), -2px 2px var(--sk-navy), 2px -2px var(--sk-navy), -2px -2px var(--sk-navy), 0 4px 0 rgba(0, 0, 0, .45); }
#welcome .sub, #loading .sub { color: var(--sk-dim); }
#welcome .wc-line { font-size: 16px; }
#welcome .wc-line b { color: var(--sk-gold); }
#welcome .wc-sec { font: 400 13px var(--sk-disp); letter-spacing: 1.5px; opacity: 1; color: var(--sk-dim); }
#welcome .wc-chip { background: linear-gradient(#232a48, #171c34); border: 2px solid #05061a; border-radius: 6px;
    box-shadow: 0 0 0 2px var(--sk-line), 0 3px 0 #000; }
#welcome .wc-chip b { font: 400 17px var(--sk-disp); color: #fff; }
#welcome .wc-chip.gear { box-shadow: 0 0 0 2px #8a6a20, 0 3px 0 #000; }

/* Knöpfe in diesen Fenstern wie in #winbox */
:is(.ask-card, #welcome) :is(.btn.gold, .pbtn.ok, .btn:not(.ghost):not(.mini):not(.buy):not(.danger)),
#welcome .pbtn.ok {
    font: 400 18px var(--sk-disp); letter-spacing: .8px; color: #2a1600;
    background: linear-gradient(#ffe08a, #ffb72e); border: 2px solid #5a3200; border-radius: 6px;
    box-shadow: inset 0 -3px 0 #c97d00, inset 0 2px 0 rgba(255, 255, 255, .45), 0 3px 0 #000;
}
:is(.ask-card, #welcome) :is(.btn.gold, .pbtn.ok):hover:not(:disabled) { background: linear-gradient(#ffeaa8, #ffc24a); color: #2a1600; }
.ask-card .btn.ghost, .ask-card .guest-later {
    font: 400 16px var(--sk-disp); letter-spacing: .5px; color: var(--sk-text);
    background: linear-gradient(#4a5578, #2c3453); border: 2px solid #05061a; border-radius: 6px;
    box-shadow: inset 0 2px 0 rgba(160, 175, 230, .45), 0 3px 0 #000; }
.ask-card .btn.danger { font: 400 16px var(--sk-disp); color: #fff; background: linear-gradient(#d8584a, #a02c22);
    border: 2px solid #3a0a06; border-radius: 6px; box-shadow: inset 0 2px 0 rgba(255, 200, 190, .45), 0 3px 0 #000; }
.ask-card .btn.buy, .guest-offer .btn:not(.ghost):not(.guest-later) { font-family: var(--sk-disp); }

/* Eingabefelder überall */
.field, .auth-start .field {
    font-family: var(--sk-body); font-weight: 600; color: var(--sk-text);
    background: #0a0c22; border: 2px solid #05061a; border-radius: 6px;
    box-shadow: 0 0 0 2px var(--sk-steel), inset 0 2px 0 rgba(0, 0, 0, .5);
}
.field:focus, .auth-start .field:focus { border-color: #05061a; box-shadow: 0 0 0 2px var(--sk-gold), inset 0 2px 0 rgba(0, 0, 0, .5); }
.field::placeholder { color: #6f78a0; }

/* ── Startbildschirm ── */
#start-sub { font: 400 22px var(--sk-disp); letter-spacing: 10px; color: var(--sk-gold);
    text-shadow: 2px 2px 0 var(--sk-navy), -2px -2px 0 var(--sk-navy), 2px -2px 0 var(--sk-navy), -2px 2px 0 var(--sk-navy), 0 4px 0 rgba(0, 0, 0, .5); }
#start-tagline, #start-info { text-shadow: 0 1px 2px #000, 0 0 8px rgba(0, 0, 0, .85); }
#start-info { font-weight: 600; }
.mbtn {
    font: 400 26px var(--sk-disp); letter-spacing: 2px; color: #2a1600;
    background: linear-gradient(#ffe08a, #ffb72e); border: 3px solid #5a3200; border-radius: 8px;
    box-shadow: inset 0 -5px 0 #c97d00, inset 0 3px 0 rgba(255, 255, 255, .5), 0 5px 0 #000, 0 0 24px rgba(255, 190, 60, .35);
    padding: 14px 46px;
}
.mbtn:hover { background: linear-gradient(#ffeaa8, #ffc24a); }
.mbtn:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 -2px 0 #c97d00, 0 2px 0 #000; }
.mbtn.ghost { font-size: 18px; letter-spacing: 1.5px; color: var(--sk-text);
    background: linear-gradient(#4a5578, #2c3453); border-color: #05061a;
    box-shadow: inset 0 -4px 0 #20263f, inset 0 2px 0 rgba(160, 175, 230, .5), 0 4px 0 #000; }
.mbtn.ghost:hover { color: #fff; background: linear-gradient(#5a6690, #36406a); }
#start-legal a, #start-version { font-family: var(--sk-body); }
/* Anmeldeformular im kleinen Fenster (authForm.js, Fenster-Variante: .pbtn / .pbtn.ghost) */
.ask-card .pbtn:not(.ghost) { font: 400 19px var(--sk-disp); letter-spacing: .6px; color: #2a1600; text-align: center;
    background: linear-gradient(#ffe08a, #ffb72e); border: 2px solid #5a3200; border-radius: 6px;
    box-shadow: inset 0 -3px 0 #c97d00, inset 0 2px 0 rgba(255, 255, 255, .45), 0 3px 0 #000; }
.ask-card .pbtn:not(.ghost):hover:not(:disabled) { background: linear-gradient(#ffeaa8, #ffc24a); color: #2a1600; }
.ask-card .pbtn.ghost { font: 400 16px var(--sk-disp); color: var(--sk-text); text-align: center;
    background: linear-gradient(#4a5578, #2c3453); border: 2px solid #05061a; border-radius: 6px;
    box-shadow: inset 0 2px 0 rgba(160, 175, 230, .45), 0 3px 0 #000; }
.ask-card .auth-note, .ask-card .hint:not(.ask-text) { color: var(--sk-dim); }

/* ── Kurzer Hinweis mit „?“ (widgets/help.js) ── */
.help-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.help-short { flex: 0 1 auto; }
.help-q { flex: none; width: 22px; height: 22px; padding: 0; border-radius: 50%;
    display: inline-grid; place-items: center; font: 400 14px/1 var(--sk-disp); color: var(--sk-text); cursor: pointer;
    background: linear-gradient(#4a5578, #2c3453); border: 2px solid #05061a; box-shadow: 0 2px 0 #000; }
.help-q:hover, .help-q.on { color: #2a1600; background: linear-gradient(#ffe08a, #ffb72e); border-color: #5a3200; }
.help-long { flex-basis: 100%; margin-top: 2px; padding: 8px 10px; border-radius: 6px; line-height: 1.5;
    color: var(--sk-text); background: rgba(10, 12, 34, .7); box-shadow: inset 0 0 0 1px rgba(150, 170, 240, .18); }
.help-long[hidden] { display: none; }

/* ── Hinweis „Neue Version" und „Bosskiste erhalten" (shell/appUpdate.js, chestReveal.js) im Spiel-Look ── */
#app-update, #chest-ready {
    background: linear-gradient(#232a52, #12152e); color: var(--sk-text); border: 2px solid #05061a; border-radius: 8px;
    box-shadow: 0 0 0 2px #ffd447, 0 0 18px rgba(255, 212, 71, .35), 0 4px 0 #000;
    font: 600 15px/1.35 var(--sk-body); padding: 10px 14px; }
#app-update .app-update-text { flex-basis: 100%; text-align: center; font: 400 18px var(--sk-disp); letter-spacing: .4px; color: #fff; text-shadow: 0 2px 0 var(--sk-navy); }
:is(#app-update, #chest-ready) .btn.gold {
    font: 400 16px var(--sk-disp); letter-spacing: .6px; color: #2a1600;
    background: linear-gradient(#ffe08a, #ffb72e); border: 2px solid #5a3200; border-radius: 6px;
    box-shadow: inset 0 -3px 0 #c97d00, inset 0 2px 0 rgba(255, 255, 255, .45), 0 3px 0 #000; }
:is(#app-update, #chest-ready) .btn.ghost {
    font: 400 15px var(--sk-disp); letter-spacing: .4px; color: var(--sk-text);
    background: linear-gradient(#4a5578, #2c3453); border: 2px solid #05061a; border-radius: 6px; box-shadow: 0 3px 0 #000; }

/* Knopf „Seltenheit ↑" / „Höchste Seltenheit" auf den Werkzeugkarten: Die Spielschrift ist
   breiter als die alte, „Höchste Seltenheit" lief über den Knopf hinaus (Fund Jens 01.11.2026).
   Darf umbrechen, Text immer innerhalb. */
#winbox .merge-btn { white-space: normal; overflow-wrap: anywhere; min-width: 0; max-width: 100%;
    font-size: 14px; letter-spacing: .2px; line-height: 1.15; padding: 6px 6px; }

/* Kistenstücke (♛, Wunsch Jens 01.11.2026): violetter Innenrahmen und Krone oben links
   (02.11.2026: oben mittig stieß das Kronen-Bild an die Seltenheits-Punkte rechts). */
.gear-tile.boss { box-shadow: inset 0 0 0 2px rgba(200, 140, 255, .85), inset 0 0 14px rgba(170, 90, 255, .35); }
.gear-tile em.bossmark { position: absolute; top: 3px; left: 4px; font-style: normal;
    font-size: 13px; line-height: 1; color: #e2b8ff; }
#winbox .boss-tag { color: #e2b8ff; font-weight: 700; }
/* Kronen-Bild (art/ui/boss_crown.png, 02.11.2026). Das Leuchten dahinter malt der Code:
   zwei violette Schatten um die Umrisse. Höhe folgt der Schrift. */
.boss-crown { height: 1.05em; width: auto; vertical-align: -.16em; margin-right: .3em; image-rendering: pixelated;
    filter: drop-shadow(0 0 2px rgba(200, 130, 255, .95)) drop-shadow(0 0 5px rgba(170, 90, 255, .7)); }
.gear-tile em.bossmark .boss-crown { height: 13px; margin: 0; vertical-align: top; }

/* Schalter „Automatisch aufsteigen“ im Ortsschild der Boss-Kammer (02.11.2026). */
#boss-climb {
    display: block; margin: 2px auto 4px; padding: 3px 12px;
    font: 700 12px var(--sk-body); letter-spacing: 1px; color: #1a1206;
    background: linear-gradient(#ffd166, #f0a830); border: 2px solid #000; border-radius: 999px;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); cursor: pointer; white-space: nowrap;
}
@media (max-width: 600px) { #boss-climb { font-size: 10px; padding: 2px 10px; margin: 1px auto 3px; } }
#boss-climb.off { color: #e8eef5; background: linear-gradient(#3a4656, #273140); }
#boss-climb[hidden] { display: none; }

