/* ---------- Startbildschirm im Stil der Java Edition (menu.js) ----------
   GUI-Maßstab 2: ein GUI-Pixel = 2 CSS-Pixel, Schrift 16px = 8 Schriftpixel. */
@font-face { font-family: 'BlockWelt Pixel'; src: url(fonts/blockwelt.woff2) format('woff2'); font-display: block; }
#menu, #loading, #splash, #help, #pause, #death, #kicked, #glerror, #relock, #credits {
  --px: 'BlockWelt Pixel', 'Courier New', monospace;
  font-family: var(--px); font-size: 16px; line-height: 18px;
  -webkit-font-smoothing: none; font-smooth: never;
  color: #fff;
}

/* Panorama: Würfel aus 6 Bildern, Kamera in der Mitte, dreht sich langsam */
#pano { position: fixed; inset: 0; z-index: 19; overflow: hidden; background: #000; perspective: var(--persp, 600px); display: none; }
#pano.on { display: block; }
#pano .cube { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: translateZ(var(--persp, 600px)) rotateX(-6deg) rotateY(0deg); animation: panospin 300s linear infinite; }
#pano img { position: absolute; width: 2048px; height: 2048px; left: -1024px; top: -1024px; backface-visibility: hidden; opacity: 0; transition: opacity 1.2s; user-select: none; -webkit-user-drag: none; }
#pano.loaded img { opacity: 1; }
#pano img[data-f="0"] { transform: translateZ(-1023px); }
#pano img[data-f="1"] { transform: rotateY(-90deg) translateZ(-1023px); }
#pano img[data-f="2"] { transform: rotateY(180deg) translateZ(-1023px); }
#pano img[data-f="3"] { transform: rotateY(90deg) translateZ(-1023px); }
#pano img[data-f="4"] { transform: rotateX(-90deg) translateZ(-1023px); }
#pano img[data-f="5"] { transform: rotateX(90deg) translateZ(-1023px); }
@keyframes panospin { to { transform: translateZ(var(--persp, 600px)) rotateX(-6deg) rotateY(360deg); } }
#pano.blur { filter: blur(6px); }
#pano.paused .cube { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { #pano .cube { animation: none; } }

#menu { display: block; background: none; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
[hidden] { display: none !important; }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; }
/* Untermenüs: verschwommenes Panorama, abgedunkelt */
.scr:not(.title) { background: rgba(0, 0, 0, .45); }
.title::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(0,0,0,.45) 100%); }

/* ---------- Knöpfe ---------- */
.mcb {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 400px; max-width: 100%; height: 40px; padding: 0 8px 2px; margin: 0;
  font: 16px/18px var(--px); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; text-decoration: none; white-space: nowrap; overflow: hidden;
  background: #6f6f6f var(--btex, none); background-size: 64px 64px; image-rendering: pixelated;
  border: 2px solid #000; border-radius: 0; cursor: pointer; outline: none;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.28), inset -2px -4px 0 rgba(0,0,0,.32);
}
.mcb:hover, .mcb:focus-visible { border-color: #fff; }
.mcb:disabled { color: #a0a0a0; background: #2c2c2c; box-shadow: inset 2px 2px 0 rgba(255,255,255,.06), inset -2px -4px 0 rgba(0,0,0,.3); cursor: default; border-color: #000; }
.mcb.icon { width: 40px; padding: 0; }
.mcb.icon canvas { width: 24px; height: 24px; image-rendering: pixelated; }
.mcb.half { width: 196px; }
.w72 { width: 144px; } .w100 { width: 196px; } .w150 { width: 300px; } .w200 { width: 400px; } .w210 { width: 420px; } .w208 { width: 416px; } .w308 { width: 616px; }

/* Textfelder */
.mct { height: 40px; max-width: 100%; padding: 0 8px; font: 16px/18px var(--px); color: #e0e0e0; background: #000; border: 2px solid #a0a0a0; border-radius: 0; outline: none; user-select: text; -webkit-user-select: text; }
.mct:focus { border-color: #fff; color: #fff; }
.mct::placeholder { color: #707070; }

/* Schieberegler (Java: dunkle Bahn + Knopf als Griff) */
.mcs { position: relative; width: 300px; max-width: 100%; height: 40px; background: #2c2c2c; border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255,255,255,.08), inset -2px -2px 0 rgba(0,0,0,.4); cursor: pointer; touch-action: none; }
.mcs:hover, .mcs:focus-visible { border-color: #fff; outline: none; }
.mcs i { position: absolute; top: -2px; bottom: -2px; width: 16px; margin-left: -8px; background: #6f6f6f var(--btex, none); background-size: 64px 64px; border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255,255,255,.28), inset -2px -4px 0 rgba(0,0,0,.32); }
.mcs:hover i { border-color: #fff; }
.mcs span { position: absolute; inset: 0; display: grid; place-items: center; text-shadow: 2px 2px 0 #3f3f3f; pointer-events: none; padding-bottom: 2px; }

/* ---------- Titelbildschirm ---------- */
.title .logo { position: absolute; left: 50%; top: 60px; transform: translateX(-50%); width: 548px; max-width: calc(100vw - 24px); }
#logo { display: block; max-width: 100%; height: auto; margin: 0 auto; image-rendering: pixelated; }
#edition { display: block; max-width: 62%; height: auto; margin: -3.3% auto 0; image-rendering: pixelated; position: relative; }
#splashtext { position: absolute; left: 82%; top: 78%; color: #ff0; text-shadow: 2px 2px 0 #3f3f00; white-space: nowrap; transform-origin: center; transform: translate(-50%, -50%) rotate(-20deg) scale(var(--ss, 1.8)); animation: splashpulse .5s ease-in-out infinite alternate; pointer-events: none; }
@keyframes splashpulse { from { scale: var(--sp, 1); } to { scale: calc(var(--sp, 1) * .945); } }
.tbtns { position: absolute; left: 50%; transform: translateX(-50%); top: max(calc(25% + 96px), 260px); display: flex; flex-direction: column; gap: 8px; width: 400px; max-width: calc(100vw - 32px); }
.tbtns > .mcb { width: 100%; }
.tbtns .mcb[data-go="parkour"] { margin-bottom: 16px; }
/* Parkour: Stufenwahl (7 Knöpfe in den Stufenfarben) */
.pklv { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pklv .mcb { width: 40px; min-width: 0; padding: 0; position: relative; }
.pklv .mcb::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 3px; height: 3px; background: var(--lc); }
.pklv .mcb.on { outline: 2px solid #fff; outline-offset: 0; }
.pklvname { min-height: 18px; text-shadow: 2px 2px 0 #3f3f3f; }
.mggen { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; max-width: 720px; margin: 0 auto; }
.mggen .mcb { width: auto; min-width: 0; padding: 0 10px; font-size: 14px; }
.mggen .mcb.on { outline: 2px solid #fff; outline-offset: 0; }
.entry .tx .stars { color: #ffd84a; letter-spacing: 2px; }
.trow { display: flex; gap: 8px; justify-content: space-between; }
.trow .half { flex: 1; width: auto; }
.trow .icon { flex: none; }
.corner { position: absolute; bottom: 4px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; font: 16px/18px var(--px); }
.corner.l { left: 4px; }
.corner.r { right: 4px; background: none; border: 0; padding: 0; cursor: pointer; }
.corner.r:hover { text-decoration: underline; }
.title .tbtns, .title .logo, .title .corner { opacity: 0; transition: opacity .8s; }
.title.in .tbtns, .title.in .logo, .title.in .corner { opacity: 1; }

/* ---------- Untermenüs: Kopf, Liste, Fuß ---------- */
.scr > header { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 16px 10px; }
.scr > header h2 { margin: 0; font: 16px/18px var(--px); text-shadow: 2px 2px 0 #3f3f3f; font-weight: normal; }
.scr > header .mct { width: 400px; }
.scr > header .intro { margin: 0; color: #a0a0a0; text-align: center; max-width: 640px; text-shadow: 2px 2px 0 #282828; }
.list, .form { flex: 1; min-height: 0; overflow-y: auto; background: rgba(0,0,0,.35); border-top: 2px solid rgba(0,0,0,.55); border-bottom: 2px solid rgba(255,255,255,.18); box-shadow: inset 0 2px 0 rgba(255,255,255,.18), 0 2px 0 rgba(0,0,0,.55);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 16px; scrollbar-width: thin; scrollbar-color: #808080 #000; }
.list::-webkit-scrollbar, .form::-webkit-scrollbar { width: 12px; background: #000; }
.list::-webkit-scrollbar-thumb, .form::-webkit-scrollbar-thumb { background: #808080; border-right: 2px solid #c0c0c0; border-bottom: 2px solid #c0c0c0; }
.scr > footer { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 16px 16px; }
.frow { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 100%; }
.frow .mct { width: 300px; }

/* Listeneinträge (Weltauswahl / Serverliste) */
.entry { position: relative; width: 540px; max-width: 100%; min-height: 72px; display: flex; gap: 6px; padding: 4px; border: 2px solid transparent; cursor: pointer; flex: none; outline: none; }
.entry:hover { background: rgba(255,255,255,.06); }
.entry.sel { border-color: #fff; background: #000; }
.entry .ic { position: relative; flex: none; width: 64px; height: 64px; image-rendering: pixelated; }
.entry .ic canvas { width: 64px; height: 64px; image-rendering: pixelated; display: block; }
.entry .ic .go { position: absolute; inset: 0; display: none; place-items: center; background: rgba(160,160,160,.55); }
.entry .ic .go::after { content: ''; border-left: 18px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; filter: drop-shadow(2px 2px 0 #3f3f3f); }
.entry:hover .ic .go, .entry.sel .ic .go { display: grid; }
.entry .tx { flex: 1; min-width: 0; padding-top: 2px; }
.entry .tx div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 18px; margin-bottom: 4px; }
.entry .tx .n { color: #fff; }
.entry .tx .g { color: #808080; }
.entry .tx .o { color: #55ff55; }
.entry .tx .y { color: #ffff55; }
.entry .tx .r { color: #ff5555; }
.entry .side { flex: none; text-align: right; color: #808080; padding-top: 2px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.entry .side canvas { width: 20px; height: 16px; image-rendering: pixelated; }
.empty { color: #a0a0a0; padding: 24px; text-align: center; text-shadow: 2px 2px 0 #282828; }
.uentry { min-height: 52px; }
.uentry .ic, .uentry .ic canvas { width: 40px; height: 40px; }

/* Bestenliste */
.scorehead { margin: 14px 0 4px; font-weight: normal; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.scorebest { color: #ffff55; margin-bottom: 4px; text-shadow: 2px 2px 0 #3f3f3f; }
.scoretab { width: 600px; max-width: 100%; border-collapse: collapse; }
.scoretab th { color: #a0a0a0; font-weight: normal; text-align: left; padding: 6px 8px; }
.scoretab td { padding: 6px 8px; text-shadow: 2px 2px 0 #3f3f3f; }
.scoretab tr.me td { color: #ffff55; }

/* Formulare (Neue Welt, Optionen) */
.form { justify-content: flex-start; padding-top: 20px; gap: 8px; }
.form .tabpage { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.lbl { color: #a0a0a0; align-self: center; width: 416px; max-width: 100%; text-shadow: 2px 2px 0 #282828; margin-top: 6px; }
#menu .hint { color: #a0a0a0; width: 420px; max-width: 100%; text-align: left; text-shadow: 2px 2px 0 #282828; }
#menu .hint.desc { margin-bottom: 8px; color: #a0a0a0; text-align: left; white-space: normal; }
.form .mct.w208 { width: 416px; } .form .mct.w308 { width: 420px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 300px); gap: 8px 20px; max-width: 100%; }
.grid2 .mcb, .grid2 .mcs { width: 300px; max-width: 100%; }
#menu .tabs { flex-direction: row !important; justify-content: center; gap: 0 !important; padding: 0 16px !important; height: 52px; align-items: flex-end !important; }
#menu .tab { width: 260px; height: 44px; font: 16px/18px var(--px); color: #a0a0a0; text-shadow: 2px 2px 0 #282828; background: rgba(0,0,0,.4); border: 2px solid #000; border-bottom: 0; cursor: pointer; padding-bottom: 2px; }
#menu .tab:hover { color: #fff; }
#menu .tab.on { color: #fff; background: rgba(255,255,255,.1); border-color: #a0a0a0; text-shadow: 2px 2px 0 #3f3f3f; }

/* Bestätigung */
.confirm { justify-content: center; align-items: center; }
.cbox { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 16px; text-align: center; }
.cbox h2 { font: 16px/18px var(--px); margin: 0; text-shadow: 2px 2px 0 #3f3f3f; font-weight: normal; }
.cbox p { margin: 0; color: #a0a0a0; text-shadow: 2px 2px 0 #282828; max-width: 640px; }

.toast { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 5; max-width: calc(100vw - 32px); padding: 10px 14px; background: rgba(16,0,16,.94); border: 2px solid #5000aa; outline: 2px solid #100010; color: #ff5555; text-shadow: 2px 2px 0 #3f1515; }

/* ---------- Ladebildschirm „Mojang“-Stil: rot mit weißem Schriftzug ---------- */
#splash { position: fixed; inset: 0; z-index: 70; background: #ef323d; display: flex; align-items: center; justify-content: center; transition: opacity .6s; }
#splash.out { opacity: 0; pointer-events: none; }
.sbox { display: flex; flex-direction: column; align-items: center; gap: 0; width: min(560px, 86vw); }
.slogo { font: 96px/96px var(--px); color: #fff; letter-spacing: 4px; white-space: nowrap; }
.ssub { font: 32px/32px var(--px); color: #fff; margin-top: 16px; letter-spacing: 6px; }
.sbar { width: 100%; height: 20px; border: 2px solid #fff; padding: 2px; margin-top: 64px; }
.sbar i { display: block; height: 100%; width: 0; background: #fff; transition: width .15s; }
#splashmsg { margin-top: 18px; min-height: 18px; color: #fff; text-align: center; }
#splashretry { margin-top: 14px; }
@media (max-width: 640px) { .slogo { font-size: 48px; line-height: 48px; letter-spacing: 2px; } .ssub { font-size: 16px; margin-top: 10px; } .sbar { margin-top: 40px; } }

/* ---------- Welt laden (Java: Panorama verschwommen + Text + Chunk-Raster) ---------- */
#loading { background: rgba(0,0,0,.45); z-index: 20; }
.ldbox { display: flex; flex-direction: column; align-items: center; gap: 12px; }
#loadtitle { text-shadow: 2px 2px 0 #3f3f3f; text-align: center; max-width: 90vw; }
#loadsub { color: #a0a0a0; text-shadow: 2px 2px 0 #282828; min-height: 18px; }
#chunkgrid { width: 120px; height: 120px; image-rendering: pixelated; margin-top: 18px; }

/* ---------- Ingame-Bildschirme (Spielmenü, Tod, Verbindung, Hilfe) ---------- */
/* Alte .btn-Knöpfe (Apokalypse, Abspann, Fehlerseiten) sehen aus wie Java-Knöpfe */
.btn, .btn.secondary {
  display: flex; align-items: center; justify-content: center; width: 400px; max-width: 100%; height: 40px; margin: 0 auto; padding: 0 8px 2px;
  font: 16px/18px var(--px, 'BlockWelt Pixel'), monospace; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; white-space: nowrap; overflow: hidden;
  background: #6f6f6f var(--btex, none); background-size: 64px 64px; image-rendering: pixelated;
  border: 2px solid #000; border-radius: 0; cursor: pointer; outline: none;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.28), inset -2px -4px 0 rgba(0,0,0,.32);
}
.btn:hover, .btn:focus-visible { background: #6f6f6f var(--btex, none); background-size: 64px 64px; border-color: #fff; }
.menubox h2 { font: 16px/18px var(--px); font-weight: normal; text-shadow: 2px 2px 0 #3f3f3f; }

/* Spielmenü: Welt verschwommen + abgedunkelt (wie Java 1.21) */
#pause { background: linear-gradient(rgba(16,16,16,.70), rgba(16,16,16,.80)); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); cursor: default; align-items: stretch; justify-content: stretch; }
#pause .pscr { position: absolute; inset: 0; display: flex; flex-direction: column; }
#pause .pmain { align-items: center; }
#pause .pmain h2 { margin: 0; position: absolute; top: max(4vh, 32px); font: 16px/18px var(--px); text-shadow: 2px 2px 0 #3f3f3f; font-weight: normal; }
#pause .pbtns { position: absolute; top: max(calc(25% + 16px), 84px); left: 50%; transform: translateX(-50%); width: 408px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; gap: 8px; }
#pause .pbtns > .mcb { width: 100%; }
#pause .prow { display: flex; gap: 8px; }
#pause .prow .mcb { flex: 1; width: auto; min-width: 0; }
#pause #apocrestart { margin-top: 16px; }
#pause #apocrestart + #leave { margin-top: 0; }
#pause #leave { margin-top: 16px; }
#pause .pausenote { position: absolute; bottom: 6px; left: 0; right: 0; margin: 0; text-align: center; color: #a0a0a0; text-shadow: 2px 2px 0 #282828; padding: 0 16px; }
#pause .scr, #pause .pscr > header { background: none; }
#pause .pscr > header { flex: none; display: flex; justify-content: center; padding: 14px 16px 10px; }
#pause .pscr > header h2 { margin: 0; font: 16px/18px var(--px); text-shadow: 2px 2px 0 #3f3f3f; font-weight: normal; }
#pause .pscr > footer { flex: none; display: flex; justify-content: center; padding: 14px 16px 16px; }
#pause .grid2 .wide { grid-column: 1 / -1; width: 100%; }
#pause a.mcb { box-sizing: border-box; }

/* Tastenbelegung */
.keylist { display: flex; flex-direction: column; gap: 4px; width: 640px; max-width: 100%; }
.krow { display: flex; align-items: center; gap: 8px; }
.krow .kname { flex: 1; min-width: 0; text-shadow: 2px 2px 0 #3f3f3f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.krow .kbtn { width: 200px; flex: none; }
.krow .kreset { width: 150px; flex: none; }
.kwait { color: #ffff55; text-shadow: 2px 2px 0 #3f3f15; }
.kclash { color: #ff5555; text-shadow: 2px 2px 0 #3f1515; }

/* Todesbildschirm: roter Verlauf, große Überschrift */
#death { background: linear-gradient(rgba(80,0,0,.38), rgba(160,48,48,.63)); align-items: flex-start; }
#death .menubox { background: none; border: 0; padding: max(11vh, 60px) 16px 16px; max-width: 100vw; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; overflow: visible; }
#death h2 { font: 32px/36px var(--px); margin: 0 0 20px; color: #fff !important; text-shadow: 4px 4px 0 #3f3f3f; }
#deathscore { margin: 0; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
#deathscore:empty { display: none; }
#deathscore span { color: #ffff55; text-shadow: 2px 2px 0 #3f3f15; }
#deathinfo { margin: 4px 0 max(7vh, 32px); color: #a0a0a0; text-shadow: 2px 2px 0 #3f3f3f; max-width: 640px; text-align: center; }
#deathinfo b { font-weight: normal; }
#death .btn { margin: 0; }

/* Verbindung getrennt / WebGL-Fehler: dunkler Erdboden-Hintergrund wie Java */
#kicked, #glerror { background: #000 var(--dirt, none); background-size: 64px 64px; image-rendering: pixelated; }
#kicked .menubox, #glerror .menubox { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
#kicked h2 { margin: 0; color: #a0a0a0; }
#kicked p { margin: 0 0 24px; text-shadow: 2px 2px 0 #3f3f3f; max-width: 640px; }
#glerror .menubox { align-items: stretch; background: rgba(0,0,0,.55); border: 2px solid #000; outline: 2px solid #a0a0a0; padding: 16px 20px; }
#glerror h2 { margin: 0; color: #ff5555 !important; }
#glerror ol, #glerror p { margin: 0; color: #e0e0e0; text-shadow: 2px 2px 0 #282828; }
#glerror b { font-weight: normal; color: #fff; }
#glerror code { background: #000; color: #ffff55; text-shadow: none; }

/* Weiterspielen-Hinweis: Java-Schrift auf dunklem Balken */
#relock { background: rgba(0,0,0,.25); }
#relock .relockbox { border-radius: 0; font: 16px/18px var(--px); background: rgba(0,0,0,.6); border: 0; box-shadow: none; padding: 10px 16px 12px; text-shadow: 2px 2px 0 #3f3f3f; }

/* Abspann */
#credits h1, #credits h2, #credits p { font-weight: normal; }
#creditsskip { width: 200px; }

/* Tastenhilfe-Tabelle */
#help .menubox { background: rgba(0,0,0,.75); border: 2px solid #000; outline: 2px solid #a0a0a0; text-align: left; }
#help h2 { margin: 0 0 12px; text-align: center; }
#help table { font: 16px/18px var(--px); }
#help td { border-bottom: 2px solid rgba(255,255,255,.08); padding: 4px 10px; text-shadow: 2px 2px 0 #282828; }
#help td:first-child { color: #ffff55; text-shadow: 2px 2px 0 #3f3f15; }
#help .small { color: #a0a0a0; font-size: 16px; text-shadow: 2px 2px 0 #282828; }

@media (max-width: 640px) {
  .frow { width: 100%; }
  .scr > footer .w150, .scr > footer .w100, .scr > footer .w200 { width: 100%; }
  .scr > footer .w72 { width: calc(50% - 4px); }
  .frow .mct { width: 100%; }
  .grid2 { grid-template-columns: 1fr; }
  .title .logo { top: 32px; }
  #splashtext { left: 70%; top: 92%; --sp: .7; }
  .tbtns { top: max(calc(25% + 60px), 200px); }
  .entry .side { display: none; }
  .corner.r { bottom: 26px; left: 4px; right: auto; }
  .scr > header .intro { display: none; }
  .pklv .mcb { width: 34px; }
  #pause .pbtns { top: 64px; }
  .krow .kbtn { width: 150px; } .krow .kreset { width: 44px; font-size: 0; } .krow .kreset::after { content: '↺'; font-size: 16px; }
  #death h2 { font-size: 24px; }
}
@media (max-height: 560px) { .title .logo { top: 12px; width: 400px; } .tbtns { top: 150px; } }

/* ---------- Ganze Oberfläche in der Pixelschrift (HUD, Chat, Inventar, Fenster) ---------- */
:root { --font: 'BlockWelt Pixel', 'Courier New', monospace; }
body { font-synthesis: none; -webkit-font-smoothing: none; }
.slot .cnt { font: 16px/14px var(--font); right: 3px; bottom: 3px; }
#itemname { font-weight: normal; }
#debug { font: 16px/18px var(--font); left: 2px; top: 2px; background: rgba(80,80,80,.56); padding: 2px 4px 0; color: #e0e0e0; }
#coords { font: 16px/18px var(--font); }
#chatlog div { font-size: 16px; line-height: 18px; }
#chatinput { font: 16px/18px var(--font); }
#tooltip { font: 16px/18px var(--font); border-color: #25015b; outline: 2px solid #100010; }
/* Knöpfe in den Ingame-Fenstern (Sortieren, Anzahl, Reiter …) als Java-Knöpfe */
.tab { font: 16px/18px var(--font); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; background: #6f6f6f var(--btex, none); background-size: 64px 64px; border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255,255,255,.28), inset -2px -4px 0 rgba(0,0,0,.32); padding: 4px 10px 6px; }
.tab:hover { background: #6f6f6f var(--btex, none); background-size: 64px 64px; border-color: #fff; }
.tab:disabled { color: #a0a0a0; background: #2c2c2c; box-shadow: none; }

/* Android-App (android/): Download-Hinweis nur im Android-Browser, nicht in der App selbst */
.corner.apk { top: 4px; bottom: auto; left: 4px; color: #ffff55; text-shadow: 2px 2px 0 #3f3f15; text-decoration: none; padding: 6px 8px; background: rgba(0,0,0,.45); border: 2px solid #000; }
.corner.apk[hidden] { display: none; }
/* sehr niedrige Querformat-Handys (≤420 px hoch): Logo kleiner, Knöpfe enger, alles sichtbar */
@media (max-height: 420px) {
  .title .logo { top: 6px; width: 330px; }
  .tbtns { top: 100px; gap: 5px; }
  .tbtns .mcb { height: 34px; }
  #pause section.pmain h2 { top: calc(6px + env(safe-area-inset-top)); }
  #pause section.pmain .pbtns { top: calc(28px + env(safe-area-inset-top)); gap: 4px; }
  #pause section.pmain .pbtns .mcb { height: 32px; }
  #pause section.pmain #leave, #pause section.pmain #apocrestart { margin-top: 6px; }
  #pause section.pmain .pausenote { display: none; }
}
