@font-face { font-family: 'Pixelify'; src: url('/fonts/pixelify.woff2') format('woff2'); font-display: block; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #07060c; overflow: hidden; font-family: 'Pixelify', monospace; color: #f2ead8; }
body { display: block; }
#game { image-rendering: pixelated; image-rendering: crisp-edges; display: block; touch-action: none; cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'><path d='M1 1h2v1h1v1h1v1h1v1h1v1h1v1h1v1h1v2H7v1h1v1h1v2H7v-1H6v-1H5v1H4v1H1z' fill='%2315101f'/><path d='M2 3h1v1h1v1h1v1h1v1h1v1h1v1H6v1h1v1h1v1H7v-1H6V9H5v1H4v1H2z' fill='%23f2ead8'/></svg>") 1 1, default; }
.win { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(7,6,12,.55); z-index: 5; }
.win[hidden] { display: none; }
.panel { width: 320px; max-width: 92vw; padding: 22px 22px 18px; background: #e8dcc0; color: #3a2414; border: 4px solid #15101f; box-shadow: inset 0 0 0 3px #c9a46a, inset 0 0 0 6px #e8dcc0, inset 0 0 0 7px #a87e4a, 0 8px 0 #000a; image-rendering: pixelated;
  background-image: radial-gradient(#d8c79e 1px, transparent 1px), radial-gradient(#f0e6cc 1px, transparent 1px); background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 4px; }
.panel.wide { width: 860px; max-height: 92vh; overflow: auto; }
h1 { margin: 0 0 14px; text-align: center; font-size: 40px; letter-spacing: 2px; color: #ffd36b; text-shadow: 3px 0 #15101f, -3px 0 #15101f, 0 3px #15101f, 0 -3px #15101f, 3px 3px #15101f, 0 6px #c86a1e; }
h2 { margin: 0 0 10px; font-size: 22px; } h3 { margin: 18px 0 6px; font-size: 16px; color: #a63a48; }
label { display: block; margin: 10px 0; font-size: 15px; }
input, textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; font: 16px 'Pixelify', monospace; color: #3a2414; background: #f6eedb; border: 3px solid #15101f; outline: none; border-radius: 0; }
input:focus, textarea:focus { background: #fff8e8; box-shadow: 0 0 0 2px #ffd36b; }
textarea { height: 150px; font: 13px monospace; }
button { font: 16px 'Pixelify', monospace; padding: 7px 14px; color: #f2ead8; background: #6b4428; border: 3px solid #15101f; box-shadow: inset 0 -3px 0 #3a2414, inset 0 2px 0 #a0704a; cursor: pointer; border-radius: 0; }
button.red { background: #a63a48; box-shadow: inset 0 -3px 0 #5a1c28, inset 0 2px 0 #e2575f; }
button:active { transform: translateY(1px); box-shadow: none; }
.row { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.row.top { justify-content: space-between; margin-top: 0; }
.err { color: #a63a48; min-height: 18px; font-size: 14px; }
.hint { font-size: 13px; color: #6b4428; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 4px 6px; border-bottom: 2px solid #c9a46a; }
td button { font-size: 12px; padding: 3px 7px; margin: 1px; }
pre { max-height: 200px; overflow: auto; background: #f6eedb; border: 2px solid #15101f; padding: 8px; font-size: 12px; white-space: pre-wrap; }
@font-face { font-family: 'RelikraSans'; src: url('/fonts/sans-500.woff2') format('woff2'); font-weight: 500; font-display: block; }
@font-face { font-family: 'RelikraSans'; src: url('/fonts/sans-700.woff2') format('woff2'); font-weight: 700; font-display: block; }
.panel, input, button, textarea, table { font-family: 'RelikraSans', sans-serif !important; }

/* ---------- Verwaltung: Seitenleiste + Inhalt, dunkles Holz/Stein wie im Spiel ---------- */
#admin { position: fixed; inset: 0; z-index: 10; background: #0b0912; font-family: 'RelikraSans', sans-serif; color: #e9e2d0; }
#admin[hidden] { display: none; }
.adm { display: grid; grid-template-columns: 230px 1fr; height: 100%; }
.adm aside { background: linear-gradient(#1a1220, #120d18); border-right: 3px solid #2c1a0e; box-shadow: inset -1px 0 0 #4a2e1a; display: flex; flex-direction: column; padding: 18px 12px; }
.adm .brand { padding: 4px 10px 18px; border-bottom: 2px solid #2c1a0e; margin-bottom: 12px; }
.adm .brand b { display: block; font-family: 'Pixelify', monospace; font-size: 28px; letter-spacing: 2px; color: #ffd36b; text-shadow: 2px 0 #15101f, -2px 0 #15101f, 0 2px #15101f, 0 -2px #15101f, 0 4px #c86a1e; }
.adm .brand span { font-size: 13px; color: #8a82a8; letter-spacing: 1px; text-transform: uppercase; }
.adm nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.adm nav button, .adm .ad-back { all: unset; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: #b8b0cc; font-size: 15px; cursor: pointer; }
.adm nav button i { font-style: normal; width: 22px; text-align: center; color: #8a82a8; }
.adm nav button em { margin-left: auto; font-style: normal; font-size: 12px; background: #241e34; color: #b8b0cc; padding: 1px 8px; border-radius: 10px; }
.adm nav button:hover { background: #1f1a2c; color: #f2ead8; }
.adm nav button.on { background: linear-gradient(#7a5234, #5c3c24); color: #fff2c0; box-shadow: inset 0 1px 0 #a0704a, 0 1px 0 #07060c; }
.adm nav button.on i { color: #ffd36b; }
.adm .ad-back { justify-content: center; border: 2px solid #2c1a0e; background: #1a1220; }
.adm .ad-back:hover { background: #241a2c; color: #fff; }
.adm main { overflow: auto; padding: 0 28px 40px; }
.adm header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 18px 0 14px; background: linear-gradient(#0b0912 80%, transparent); }
.adm header h2 { margin: 0; font-size: 24px; color: #f2ead8; flex: 0 0 auto; }
.adm header input { all: unset; flex: 0 1 320px; padding: 8px 14px; border-radius: 8px; background: #16121f; border: 1px solid #2e2844; color: #f2ead8; font-size: 14px; }
.adm header input:focus { border-color: #a0704a; }
#ad-save { margin-left: auto; display: flex; gap: 8px; align-items: center; } #ad-save span { color: #ffd36b; font-size: 13px; }
.adm button { font-family: 'RelikraSans', sans-serif !important; font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 6px; color: #f2ead8; background: linear-gradient(#6b4428, #4e301c); border: 1px solid #1a0e08; box-shadow: inset 0 1px 0 #a0704a; cursor: pointer; }
.adm button:hover { filter: brightness(1.15); }
.adm button.gold { background: linear-gradient(#c08a3a, #8a5a1a); box-shadow: inset 0 1px 0 #ffd36b; color: #fff8e0; }
.adm button.red { background: linear-gradient(#a63a48, #6a2230); box-shadow: inset 0 1px 0 #e2575f; }
.adm button.sm { padding: 3px 9px; font-size: 12px; }
.adm .card { background: #15111e; border: 1px solid #2e2844; border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 2px 0 #07060c, inset 0 1px 0 #241e34; position: relative; }
.adm .card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 12px 12px 0 0; background: linear-gradient(90deg, #4e301c, #7a5234, #4e301c); opacity: .8; }
.adm .card.flat { padding: 6px 4px; } .adm .card.flat::before { display: none; }
.adm .card.empty { color: #6b6386; text-align: center; padding: 40px 18px; }
.adm .ch { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; } .adm .ch h3 { margin: 0; font-size: 17px; color: #f2ead8; display: flex; align-items: center; gap: 8px; } .adm .ch small { color: #6b6386; font-size: 12px; }
.adm .ch button { margin-left: auto; }
.adm .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.adm .tiles.small { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.adm .tile { background: #15111e; border: 1px solid #2e2844; border-radius: 10px; padding: 14px 16px; border-left: 4px solid #7a5234; }
.adm .tile b { display: block; font-size: 26px; color: #f2ead8; } .adm .tile span { font-size: 12px; color: #8a82a8; text-transform: uppercase; letter-spacing: .5px; }
.adm .tiles.small .tile b { font-size: 19px; }
.adm .tile.green { border-left-color: #2fa77a; } .adm .tile.green b { color: #5fd39a; } .adm .tile.gold { border-left-color: #e0a82e; } .adm .tile.gold b { color: #ffd36b; } .adm .tile.pink { border-left-color: #c2508a; } .adm .tile.pink b { color: #f28dc2; }
.adm .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .adm .grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; align-items: start; } .adm .grid2 .card { margin: 0; }
.adm .split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 16px; align-items: start; } .adm #ad-edit { position: sticky; top: 70px; }
.adm table { width: 100%; border-collapse: collapse; font-size: 14px; font-family: 'RelikraSans', sans-serif !important; }
.adm th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #6b6386; padding: 8px 10px; border-bottom: 1px solid #2e2844; font-weight: 700; }
.adm th.sort { cursor: pointer; } .adm th.sort:hover, .adm th.on { color: #ffd36b; } .adm th.on::after { content: ' ▾'; }
.adm td { padding: 7px 10px; border-bottom: 1px solid #1d1828; vertical-align: middle; }
.adm tr.click { cursor: pointer; } .adm tr.click:hover td { background: #1c1728; } .adm tr.sel td { background: #2a2033; }
.adm .r { text-align: right; } .adm .gold { color: #ffd36b; } .adm .muted { color: #6b6386; font-size: 13px; }
.adm .ic { width: 20px; height: 20px; image-rendering: pixelated; vertical-align: middle; margin-right: 8px; }
.adm .tag { font-size: 11px; padding: 1px 7px; border-radius: 9px; background: #2e2844; color: #b8b0cc; font-weight: 700; } .adm .tag.red { background: #4a1820; color: #ff9aa0; } .adm .tag.gold { background: #3a2a10; color: #ffd36b; }
.adm .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5fd39a; margin-right: 7px; box-shadow: 0 0 6px #5fd39a; }
.adm .moddot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ffd36b; }
.adm .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.adm .chip { background: #16121f; border: 1px solid #2e2844; box-shadow: none; color: #b8b0cc; font-weight: 500; border-radius: 20px; padding: 5px 14px; }
.adm .chip.on { background: linear-gradient(#7a5234, #5c3c24); color: #fff2c0; border-color: #1a0e08; }
.adm .fld { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed #241e34; }
.adm .fld label { font-size: 14px; color: #b8b0cc; display: flex; align-items: center; gap: 6px; margin: 0; } .adm .fld.mod label { color: #ffd36b; } .adm .fld.mod label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ffd36b; }
.adm .fld input, .adm .fld select, .adm .fld textarea, .adm .acts input, .adm .acts select, .adm textarea#ad-raw { all: unset; box-sizing: border-box; width: 100%; padding: 6px 10px; border-radius: 6px; background: #0e0b16; border: 1px solid #2e2844; color: #f2ead8; font-size: 14px; font-family: 'RelikraSans', sans-serif; }
.adm .fld textarea, .adm textarea#ad-raw { white-space: pre-wrap; font-family: monospace; font-size: 12px; } .adm textarea#ad-raw { min-height: 320px; }
.adm .fld input:focus, .adm .fld select:focus, .adm .fld textarea:focus { border-color: #a0704a; } .adm .fld input[readonly] { color: #6b6386; } .adm .bad { border-color: #e2575f !important; }
.adm .multi { display: flex; gap: 6px; align-items: center; } .adm .multi span { color: #6b6386; }
.adm .reset { all: unset; cursor: pointer; color: #8a82a8; font-size: 14px; padding: 0 4px; } .adm .reset:hover { color: #ffd36b; }
.adm .sw { position: relative; display: inline-block; width: 40px; height: 22px; } .adm .sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.adm .sw span { position: absolute; inset: 0; border-radius: 11px; background: #2e2844; cursor: pointer; } .adm .sw span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #8a82a8; transition: .15s; }
.adm .sw input:checked + span { background: #7a5234; } .adm .sw input:checked + span::after { left: 21px; background: #ffd36b; }
.adm .pick { display: flex; flex-wrap: wrap; gap: 5px; max-height: 220px; overflow: auto; grid-column: span 2; } .adm .fld:has(.pick) { grid-template-columns: 1fr; }
.adm .pick label { display: flex; align-items: center; padding: 3px 9px 3px 4px; border-radius: 6px; background: #0e0b16; border: 1px solid #2e2844; font-size: 13px; cursor: pointer; color: #8a82a8; } .adm .pick label.on { border-color: #a0704a; color: #f2ead8; background: #241a14; } .adm .pick input { display: none; } .adm .pick .ic { width: 16px; height: 16px; margin-right: 5px; }
.adm .row { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; } .adm .row .muted { flex: 1; }
.adm ul.log { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; } .adm ul.log.big { max-height: none; }
.adm ul.log li { padding: 6px 0; border-bottom: 1px solid #1d1828; font-size: 14px; color: #b8b0cc; } .adm ul.log time { color: #6b6386; font-size: 12px; margin-right: 10px; display: inline-block; min-width: 46px; } .adm ul.log b { color: #f2ead8; margin-right: 4px; }
.adm pre { max-height: 400px; overflow: auto; background: #0e0b16; border: 1px solid #2e2844; border-radius: 8px; color: #b8b0cc; font-size: 11px; }
#ad-drawer { position: fixed; inset: 0; background: rgba(7,6,12,.55); z-index: 3; display: flex; justify-content: flex-end; } #ad-drawer[hidden] { display: none; }
.adm .drawer { width: min(640px, 94vw); height: 100%; overflow: auto; background: #120e19; border-left: 3px solid #2c1a0e; box-shadow: -10px 0 30px #000a; padding: 22px 24px; }
.adm .drawer h4 { margin: 16px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: #8a82a8; }
.adm .acts { display: grid; gap: 8px; margin: 14px 0; } .adm .acts .grp { display: grid; grid-template-columns: 110px 1fr auto auto; gap: 6px; align-items: center; } .adm .acts label { font-size: 13px; color: #b8b0cc; margin: 0; }
.adm ul.items { list-style: none; margin: 0; padding: 0; } .adm ul.items.scroll { max-height: 360px; overflow: auto; } .adm ul.items li { display: flex; align-items: center; gap: 4px; padding: 4px 0; border-bottom: 1px solid #1d1828; font-size: 14px; } .adm ul.items li button { margin-left: auto; } .adm ul.items small { color: #f28dc2; }
.adm .danger { border-top: 1px solid #2e2844; padding-top: 14px; margin-top: 18px; }
#ad-note { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 30px); opacity: 0; transition: .2s; background: #1f3a2c; color: #c8f5dc; border: 1px solid #2fa77a; padding: 10px 18px; border-radius: 8px; z-index: 20; font-size: 14px; pointer-events: none; }
#ad-note.show { opacity: 1; transform: translate(-50%, 0); } #ad-note.bad { background: #3a1820; color: #ffb0b5; border-color: #a63a48; }
@media (max-width: 900px) { .adm { grid-template-columns: 1fr; } .adm aside { display: none; } .adm .cols, .adm .split { grid-template-columns: 1fr; } }
#ad-watch { position: fixed; inset: 0; z-index: 4; background: rgba(7,6,12,.7); display: flex; align-items: center; justify-content: center; }
.adm .watch { background: #120e19; border: 3px solid #2c1a0e; border-radius: 12px; padding: 16px 18px; box-shadow: 0 10px 40px #000c; max-width: 96vw; }
.adm .watch canvas { display: block; width: min(1200px, 90vw); aspect-ratio: 400/225; image-rendering: pixelated; border-radius: 6px; border: 1px solid #2e2844; background: #050409; }
.adm .watch .ch small { color: #b8b0cc; font-size: 13px; } .adm #aw-bar { margin-top: 10px; display: flex; gap: 6px; align-items: center; } .adm #aw-bar .slot { display: inline-block; width: 20px; height: 20px; border: 1px solid #2e2844; border-radius: 4px; }

/* ---------- Anmelden / Registrieren ---------- */
  border: 4px solid #4e301c; box-shadow: inset 0 0 0 1px #1a0e08, inset 0 2px 0 #8a5c3a33, 0 0 0 1px #1a0e08, 0 10px 30px #000c; position: relative; }

/* ---------- Menü: Profil, Freunde, Einstellungen, Konto ---------- */
#menu { position: fixed; inset: 0; z-index: 8; font-family: 'RelikraSans', sans-serif; color: #e9e2d0; } #menu[hidden] { display: none; }
#menu .mwrap { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: flex-end; padding: 56px 18px 18px; }
#menu .mbox { width: 520px; max-width: 96vw; max-height: calc(100vh - 80px); display: flex; flex-direction: column; background: linear-gradient(#17121f, #0f0c16); border: 4px solid #4e301c; border-radius: 10px; box-shadow: inset 0 0 0 1px #1a0e08, 0 12px 40px #000d; position: relative; }
#menu .mhead { display: flex; align-items: center; gap: 8px; padding: 10px 12px 0 14px; border-bottom: 1px solid #2e2844; }
#menu .mtabs { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
#menu .mtabs button { all: unset; cursor: pointer; padding: 10px 12px 9px; font-weight: 700; font-size: 14px; color: #8a82a8; border-bottom: 3px solid transparent; margin-bottom: -1px; }
#menu .mtabs button.on { color: #ffd36b; border-bottom-color: #c08a3a; } #menu .mtabs button:hover { color: #f2ead8; }
#menu .mtabs em { font-style: normal; background: #a63a48; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
#menu .mtabs .adm-l { color: #c08a3a; }
#menu .x { all: unset; cursor: pointer; font-size: 13px; color: #8a82a8; padding: 6px 8px; } #menu .x:hover { color: #fff; }
#menu .mbody { padding: 14px 18px 18px; overflow: auto; }
#menu h2 { margin: 0; font-size: 22px; color: #f2ead8; } #menu h3 { margin: 18px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: #8a82a8; } #menu h3.red { color: #e2575f; }
#menu .muted { color: #8a82a8; font-size: 13px; margin: 4px 0; }
#menu .prof { display: flex; gap: 16px; align-items: center; } #menu .hero { width: 72px; image-rendering: pixelated; background: radial-gradient(#3a2a50, transparent 70%); border-radius: 8px; padding: 4px; }
#menu .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; } #menu .stats div { background: #0a0812; border: 1px solid #2e2844; border-radius: 6px; padding: 6px 8px; } #menu .stats b { display: block; font-size: 17px; color: #f2ead8; } #menu .stats span { font-size: 11px; color: #8a82a8; text-transform: uppercase; }
#menu .opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #1d1828; cursor: pointer; } #menu .opt b { display: block; font-size: 14px; } #menu .opt small { display: block; color: #6b6386; font-size: 12px; margin-top: 2px; }
#menu .sw { position: relative; width: 42px; height: 24px; flex: 0 0 auto; } #menu .sw input { opacity: 0; position: absolute; } #menu .sw i { position: absolute; inset: 0; border-radius: 12px; background: #2e2844; transition: .15s; } #menu .sw i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #8a82a8; transition: .15s; }
#menu .sw input:checked + i { background: #7a5234; } #menu .sw input:checked + i::after { left: 21px; background: #ffd36b; }
#menu input:not([type=checkbox]):not([type=range]), #menu select { all: unset; box-sizing: border-box; padding: 9px 12px; border-radius: 7px; background: #0a0812; border: 1px solid #2e2844; color: #f2ead8; font-size: 14px; font-family: 'RelikraSans', sans-serif; } #menu input:focus, #menu select:focus { border-color: #c08a3a; }
#menu input[type=range] { width: 180px; accent-color: #c08a3a; }
#menu button.go, #menu button.red, #menu .mbody > button, #menu .act button, #menu form button { font-family: 'RelikraSans', sans-serif !important; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 7px; color: #f2ead8; border: 1px solid #1a0e08; background: linear-gradient(#6b4428, #4e301c); box-shadow: inset 0 1px 0 #a0704a; cursor: pointer; }
#menu button.go { background: linear-gradient(#c08a3a, #8a5a1a); box-shadow: inset 0 1px 0 #ffd36b; } #menu button.red { background: linear-gradient(#a63a48, #6a2230); box-shadow: inset 0 1px 0 #e2575f; } #menu button.sm { padding: 4px 10px; font-size: 12px; }
#menu .add { display: flex; gap: 8px; } #menu .add input { flex: 1; } #menu form.grid { display: grid; gap: 8px; }
#menu ul.fl { list-style: none; margin: 0; padding: 0; } #menu ul.fl li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #1d1828; } #menu ul.fl .act { margin-left: auto; display: flex; gap: 6px; }
#menu .st { width: 9px; height: 9px; border-radius: 50%; background: #3a3456; flex: 0 0 auto; } #menu .st.on { background: #5fd39a; box-shadow: 0 0 6px #5fd39a; }
#menu ul.keys { list-style: none; padding: 0; margin: 0; font-size: 14px; color: #b8b0cc; } #menu ul.keys li { padding: 5px 0; } #menu kbd { background: #241e34; border: 1px solid #3a3456; border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; font-size: 12px; color: #f2ead8; }
#menu .mmsg { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); opacity: 0; transition: .2s; background: #1f3a2c; color: #c8f5dc; border: 1px solid #2fa77a; padding: 8px 14px; border-radius: 8px; font-size: 13px; white-space: nowrap; pointer-events: none; }
#menu .mmsg.show { opacity: 1; } #menu .mmsg.bad { background: #3a1820; color: #ffb0b5; border-color: #a63a48; }
/* Anmelden: Zusatz, Passwort vergessen, Konto-Schranke */
#menu .okc { color: #5fd39a; } #menu .bad { color: #e2575f; } #menu .btnl, .adm .btnl { display: inline-block; text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 7px; color: #f2ead8; border: 1px solid #1a0e08; background: linear-gradient(#4a4466, #3a3554); }
#menu .legal-l { font-size: 13px; margin-top: 12px; } #menu .legal-l a { color: #b8b0cc; }
.adm textarea.legal { all: unset; box-sizing: border-box; display: block; width: 100%; min-height: 260px; padding: 10px 12px; border-radius: 8px; background: #0e0b16; border: 1px solid #2e2844; color: #e9e2d0; font: 14px/1.5 'RelikraSans', sans-serif; white-space: pre-wrap; }
.adm .chk2 { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #b8b0cc; } .adm .fld small { font-size: 12px; }

/* ================= Sign in / sign up / account gate ================= */
#login, #gate2 { position: fixed; inset: 0; z-index: 7; display: flex; align-items: flex-end; justify-content: center; padding: 0 12px 6vh; background: transparent; font-family: 'RelikraSans', sans-serif; color: #e9e2d0; overflow-y: auto; }
#gate2 { align-items: center; padding-bottom: 0; background: rgba(7,6,12,.35); }
#login[hidden], #gate2[hidden] { display: none; }
.auth { position: relative; width: 600px; max-width: 100%; animation: authIn .55s cubic-bezier(.2, 1.35, .45, 1) both; }
@keyframes authIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sk-panel { background-size: 100% 100% !important; background-repeat: no-repeat; image-rendering: pixelated; }
.sk-btn { all: unset; box-sizing: border-box; position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer; background-image: var(--bg); background-size: 100% 100%; image-rendering: pixelated;
  font-family: 'RelikraSans', sans-serif; font-weight: 700; color: #f2ead8; text-shadow: 0 2px 0 #1a0e08, 2px 0 0 #1a0e08, -2px 0 0 #1a0e08, 0 -1px 0 #1a0e08; letter-spacing: .3px; transition: transform .08s; user-select: none; }
.sk-btn:hover { background-image: var(--bgh, var(--bg)); color: #fff2c0; }
.sk-btn:active { transform: translateY(2px); }
.sk-btn:focus-visible { outline: 2px dashed #ffd36b; outline-offset: 3px; }
.sk-btn[disabled] { opacity: .65; cursor: default; }
.sk-btn.busy span { visibility: hidden; } .sk-btn.busy::after { content: ''; position: absolute; width: 8px; height: 8px; background: #fff2c0; box-shadow: 14px 0 #fff2c0, -14px 0 #fff2c0; animation: dots .9s steps(3) infinite; }
@keyframes dots { 0% { box-shadow: 14px 0 #fff2c099, -14px 0 #fff2c0; background: #fff2c099; } 33% { box-shadow: 14px 0 #fff2c099, -14px 0 #fff2c099; background: #fff2c0; } 66% { box-shadow: 14px 0 #fff2c0, -14px 0 #fff2c099; background: #fff2c099; } }
/* tabs: two wooden signs, the active one lighter and hanging a bit lower */
.atabs { display: flex; justify-content: center; gap: 14px; height: 40px; margin-bottom: -6px; position: relative; z-index: 2; }
.atabs .tab { width: 170px; height: 34px; font-size: 15px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 50% -30px; }
.atabs .tab.on { transform: translateY(6px); color: #fff8e0; }
.atabs .tab::before, .atabs .tab::after { content: ''; position: absolute; top: -40px; width: 3px; height: 40px; background: repeating-linear-gradient(#9aa0b8 0 3px, #4a4e66 3px 6px); }
.atabs .tab::before { left: 22px; } .atabs .tab::after { right: 22px; }
.atabs .tab.swing { animation: swing .6s ease-out; }
@keyframes swing { 0% { rotate: 0deg; } 25% { rotate: 2.2deg; } 55% { rotate: -1.4deg; } 80% { rotate: .6deg; } 100% { rotate: 0deg; } }
.aframe { position: relative; padding: 26px 30px 22px; transition: height .25s; }
.auth h3 { margin: 0 0 4px; font-size: 19px; color: #ffd36b; letter-spacing: .3px; }
.auth .hint2, .auth p { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: #b8b0cc; }
.auth .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.auth .grid.one { grid-template-columns: 1fr; }
.auth .f { display: block; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #a89a7c; }
.auth input:not([type=checkbox]) { all: unset; box-sizing: border-box; display: block; width: 100%; height: 40px; margin-top: 6px; padding: 0 12px; background: #0b0913; color: #f2ead8; font: 500 16px 'RelikraSans', sans-serif; letter-spacing: 0; text-transform: none;
  box-shadow: inset 3px 3px 0 #050409, inset -3px -3px 0 #251f36, 0 0 0 2px #1a0e08; transition: box-shadow .15s, background .15s; }
.auth input::placeholder { color: #5a5274; }
.auth input:hover { background: #100d1a; }
.auth input:focus { background: #120e1d; box-shadow: inset 3px 3px 0 #050409, inset -3px -3px 0 #251f36, 0 0 0 2px #c08a3a, 0 0 0 5px #c08a3a33; }
.auth input.bad { box-shadow: inset 3px 3px 0 #050409, inset -3px -3px 0 #251f36, 0 0 0 2px #e2575f; animation: shake .35s; }
.auth .pw { position: relative; display: block; } .auth .pw input { padding-right: 44px; }
.auth .eye { all: unset; position: absolute; right: 6px; top: calc(50% + 3px); translate: 0 -50%; width: 32px; height: 28px; cursor: pointer; image-rendering: pixelated; opacity: .55;
  background: no-repeat center/24px 14px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='7' shape-rendering='crispEdges'><path fill='%23cdbf9e' d='M3 0h6v1h2v1h1v3h-1v1h-2v1H3V6H1V5H0V2h1V1h2z'/><path fill='%230b0913' d='M4 1h4v1h1v3H8v1H4V5H3V2h1z'/><path fill='%23cdbf9e' d='M5 2h2v3H5z'/></svg>"); }
.auth .eye:hover, .auth .eye.on { opacity: 1; }
.auth .eye.on { filter: sepia(1) saturate(4) hue-rotate(5deg); }
.auth .strength { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; height: 12px; }
.auth .strength i { display: flex; gap: 4px; flex: 1; }
.auth .strength b { flex: 1; height: 5px; background: #221c31; box-shadow: 0 0 0 1px #07060c; transition: background .2s; }
.auth .strength span { min-width: 90px; text-align: right; font-size: 12px; color: #8a82a8; }
.auth .line { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 14px; color: #c9c0d8; }
.auth .line a, .auth a { color: #ffd36b; text-decoration: none; border-bottom: 1px solid #ffd36b55; } .auth a:hover { border-bottom-color: #ffd36b; }
.auth .ck { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; line-height: 1.35; }
.auth .ck input { position: absolute; opacity: 0; pointer-events: none; }
.auth .ck .box { flex: 0 0 auto; width: 18px; height: 18px; background: #0b0913; box-shadow: inset 2px 2px 0 #050409, inset -2px -2px 0 #2b2440, 0 0 0 2px #1a0e08; image-rendering: pixelated; transition: background .12s; }
.auth .ck:hover .box { box-shadow: inset 2px 2px 0 #050409, inset -2px -2px 0 #2b2440, 0 0 0 2px #8a6a3a; }
.auth .ck input:focus-visible + .box { box-shadow: 0 0 0 2px #ffd36b; }
.auth .ck input:checked + .box { background: #0b0913 no-repeat center/12px 10px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='5' shape-rendering='crispEdges'><path fill='%23ffd36b' d='M5 0h1v2H5v1H4v1H3v1H2V4H1V3H0V2h1v1h1v1h1V3h1V1h1z'/></svg>"); animation: pop .18s; }
.auth .ck input.bad + .box { box-shadow: inset 2px 2px 0 #050409, 0 0 0 2px #e2575f; animation: shake .35s; }
@keyframes pop { 50% { transform: scale(1.25); } }
@keyframes shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.auth .err { min-height: 20px; margin: 10px 0 6px; font-size: 14px; color: #ff9aa0; text-align: center; }
.auth .err:not(:empty)::before { content: '! '; font-weight: 700; color: #e2575f; }
.auth .err .ok, .auth .ok { color: #8fe6b8; } .auth .err:has(.ok)::before { content: ''; }
.auth .go { width: 100%; height: 46px; font-size: 18px; }
.auth .btns { display: flex; gap: 12px; } .auth .btns .sk-btn { flex: 1; height: 44px; font-size: 16px; } .auth .btns .l-back { flex: 0 0 34%; }
.auth .legal { display: flex; justify-content: center; gap: 18px; margin-top: 12px; font-size: 12px; }
.auth .legal a { color: #8a82a8; border: 0; } .auth .legal a:hover { color: #f2ead8; }
#login .reg-only { display: none !important; } #login.reg .reg-only { display: block !important; } #login.reg .line.reg-only, #login.reg .strength.reg-only { display: flex !important; } #login.reg .in-only { display: none !important; }
#login.reg .reg-only { animation: fieldIn .3s ease-out both; }
@keyframes fieldIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
#gate2 .aframe { padding: 26px 30px 20px; } #gate2 .auth { width: 460px; }
#gate2 .btns { flex-wrap: wrap; } #gate2 .btns .sk-btn { flex: 1 1 40%; height: 42px; font-size: 15px; }
#gate2 .out { display: block; margin: 14px auto 0; text-align: center; font-size: 13px; }
@media (max-width: 560px) { .auth .grid { grid-template-columns: 1fr; } .atabs .tab { width: 46%; font-size: 14px; } .aframe { padding: 22px 18px 18px; } }
@media (max-height: 700px) { #login { padding-bottom: 2vh; } .aframe { padding-top: 20px; padding-bottom: 16px; } .auth .grid { gap: 8px 14px; } .auth input:not([type=checkbox]) { height: 36px; } }

/* notice-board frame: two posts standing on the ground, a beam on top, the signs hang from the beam on chains */
#login .auth { padding-top: 20px; }
#login .abeam { position: absolute; top: 0; left: -26px; right: -26px; height: 20px; z-index: 3; pointer-events: none; cursor: default; }
#login .apost { position: absolute; top: 8px; bottom: calc(-6vh - 4px); width: 16px; z-index: 0; background-size: 100% 100%; image-rendering: pixelated; }
#login .apost.l { left: -18px; } #login .apost.r { right: -18px; }
#login .atabs { height: 46px; margin-top: 0; padding-top: 10px; }
#login .atabs .tab::before, #login .atabs .tab::after { top: -12px; height: 12px; }
#login .atabs .tab.on::before, #login .atabs .tab.on::after { top: -18px; height: 18px; }
#login .atabs .tab { transform-origin: 50% -12px; }
#login .aframe { z-index: 1; }
@media (max-height: 700px) { #login .apost { bottom: calc(-2vh - 4px); } }
#login .auth { padding-top: 28px; }
#login .abeam { height: 30px; left: -34px; right: -34px; }
#login .apost { width: 20px; top: 12px; } #login .apost.l { left: -22px; } #login .apost.r { right: -22px; }
#login .atabs { padding-top: 12px; height: 48px; }
#login .atabs .tab::before, #login .atabs .tab::after { top: -14px; height: 14px; }
#login .atabs .tab.on::before, #login .atabs .tab.on::after { top: -20px; height: 20px; }
