/* style.css — het uiterlijk van menu's, de HUD en de inventaris, zoveel mogelijk zoals Minecraft Bedrock */
:root {
  --s: 2;                 /* GUI-schaal (wordt door de instellingen veranderd) */
  --slot: calc(18px * var(--s));
  --bg: #48494a;          /* achtergrond van pagina's */
  --bg-dark: #313233;     /* zijbalk en kopbalk */
  --bg-deep: #1e1e1f;
  --line: #1e1e1f;
  --btn: #d0d1d4;         /* lichtgrijze Bedrock-knop */
  --btn-hi: #e6e8eb;
  --btn-lo: #58585a;
  --green: #3c8527;
  --green-hi: #4c9d33;
  --green-lo: #1d4d13;
  --red: #c33636;
  --panel: #c6c6c6;
  --text: #fff;
  --chatbg: 0.5;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: var(--text); font-family: 'BlockWorld Pixel', 'Consolas', monospace; font-size: 16px; line-height: 1.125; -webkit-font-smoothing: none; font-smooth: never; user-select: none; -webkit-user-select: none; touch-action: none; }
canvas#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
input, select, button { font-family: inherit; font-size: inherit; }
h2 { margin: 0 0 10px; font-weight: normal; font-size: 24px; }
h3 { margin: 14px 0 6px; font-weight: normal; font-size: 24px; color: #fff; }
p { margin: 6px 0; line-height: 1.15; }
b { font-weight: normal; color: #ffe066; }
.hint { color: #b0b0b0; font-size: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; }

/* ---------- knoppen (Bedrock: lichtgrijs met donkere tekst, groen = belangrijk) ---------- */
.bbtn { position: relative; background: var(--btn); color: #1e1e1f; border: 2px solid var(--line); box-shadow: inset 0 -4px 0 var(--btn-lo), inset 2px 2px 0 #fff8; padding: 6px 16px 10px; cursor: pointer; min-width: 110px; text-align: center; line-height: 1; }
.bbtn:hover { background: var(--btn-hi); }
.bbtn:active, .bbtn.down { box-shadow: inset 0 2px 0 var(--btn-lo); padding: 9px 16px 7px; }
.bbtn.green { background: var(--green); color: #fff; box-shadow: inset 0 -4px 0 var(--green-lo), inset 2px 2px 0 #fff4; text-shadow: 2px 2px 0 #0006; }
.bbtn.green:hover { background: var(--green-hi); }
.bbtn.red { background: var(--red); color: #fff; box-shadow: inset 0 -4px 0 #6b1414, inset 2px 2px 0 #fff4; }
.bbtn.big { font-size: 24px; padding: 9px 16px 14px; }
.bbtn.big:active { padding: 12px 16px 11px; }
.bbtn.wide { width: 100%; }
.bbtn:disabled { background: #8e8f91; color: #4a4a4a; cursor: not-allowed; box-shadow: inset 0 -4px 0 #5e5e60; }
.bbtn .ic { width: 26px; height: 26px; vertical-align: middle; margin: -4px 8px 0 0; display: inline-block; }
.ic img, .ic canvas { width: 100%; height: 100%; image-rendering: pixelated; }

/* ---------- menu's ---------- */
#menu { position: fixed; inset: 0; z-index: 20; }
#menu.off { display: none; }
#menu-bg { position: absolute; inset: 0; background: linear-gradient(#0006, #000a), repeating-conic-gradient(#6b4a2a 0 25%, #7a5632 0 50%) 0 0 / 64px 64px; transition: opacity 1.2s; }
#menu.pano #menu-bg { opacity: 0; }
#menu .screen.page { background: var(--bg); }
#menu.pano #scr-message, #menu.pano #scr-loading { background: #0006; }
#menu.ingame #menu-bg { background: #0009; opacity: 1; }
.screen { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; overflow: auto; }
.screen.on { display: flex; }
#overlay { position: fixed; inset: 0; z-index: 15; background: #0008; }
#overlay .screen { background: transparent; }

/* logo: letters met een steen-structuur, zoals het echte logo */
.logo { display: flex; justify-content: center; line-height: 0; }
.logo-canvas { display: block; max-width: 92vw; height: auto; image-rendering: pixelated; filter: drop-shadow(0 8px 12px #0008); }
.logo.small .logo-canvas { max-width: 70vw; }
.logo-wrap { position: relative; margin-bottom: 8px; }
.edition { display: none; }
.splash { position: absolute; right: -40px; bottom: 4px; font-size: 24px; color: #ffff55; transform: rotate(-18deg); text-shadow: 2px 2px 0 #3f3f00; animation: pulse 0.45s ease-in-out infinite alternate; white-space: nowrap; }
@keyframes pulse { to { transform: rotate(-18deg) scale(1.08); } }
.title-col { display: flex; flex-direction: column; gap: 8px; width: min(400px, 90vw); margin-top: 24px; }
.title-row { display: flex; gap: 8px; }
.title-row .bbtn { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; }
.title-row .bbtn .ic { width: 24px; height: 24px; flex: none; }
.profile-btn { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 10px; align-items: center; background: #0007; border: 2px solid #ffffff30; color: #fff; padding: 6px 14px 6px 8px; cursor: pointer; text-align: left; }
.profile-btn:hover { background: #000a; border-color: #fff8; }
.profile-btn small { display: block; color: #bbb; font-size: 16px; }
#who-skin canvas { width: 36px; height: 54px; image-rendering: pixelated; display: block; }
.version { position: absolute; right: 12px; bottom: 10px; color: #ddd; text-shadow: 2px 2px 0 #000; }

/* pagina met kopbalk (Spelen, Instellingen, Nieuwe wereld...) */
.screen.page { justify-content: flex-start; padding: 0; gap: 0; background: var(--bg); }
.header { flex: none; width: 100%; height: 52px; background: var(--bg-dark); border-bottom: 3px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 8px; font-size: 24px; box-shadow: 0 2px 0 #5a5b5c inset; }
.header > i { width: 44px; }
.hbtn { width: 44px; height: 38px; background: var(--btn); color: #1e1e1f; border: 2px solid var(--line); box-shadow: inset 0 -4px 0 var(--btn-lo); cursor: pointer; font-size: 16px; padding: 0 0 3px; }
.hbtn:hover { background: var(--btn-hi); }
.hbtn:active { box-shadow: inset 0 2px 0 var(--btn-lo); }
.page-body { flex: 1; width: 100%; min-height: 0; overflow: auto; padding: 14px 18px; }
.page-body.split { display: flex; padding: 0; overflow: hidden; }
.side { flex: none; width: min(300px, 38vw); background: var(--bg-dark); border-right: 3px solid var(--line); padding: 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.side-head { color: #b0b0b0; font-size: 16px; margin: 12px 4px 2px; }
.side-item { background: transparent; border: 2px solid transparent; color: #fff; text-align: left; padding: 8px 12px; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.side-item:hover { background: #ffffff14; }
.side-item.on { background: #ffffff1c; border-color: #fff; }
.side-item .ic { width: 24px; height: 24px; }
.content { flex: 1; overflow-y: auto; padding: 16px 22px 30px; }
.content > .sec { display: none; max-width: 820px; }
.content > .sec.on { display: block; }
.content h2 { border-bottom: 2px solid #5f6062; padding-bottom: 6px; }

/* invulvelden */
.field { display: block; width: 100%; background: var(--bg-deep); color: #fff; border: 2px solid #8b8b8b; padding: 7px 10px; outline: none; margin: 4px 0 8px; }
.field:focus { border-color: #fff; }
.lbl { display: block; margin: 14px 0 2px; color: #ddd; }
.lbl small { color: #999; }

/* keuzeknoppen naast elkaar (spelmodus, moeilijkheid) */
.seg { display: flex; gap: 0; margin: 4px 0 8px; }
.seg button { flex: 1; background: var(--btn); color: #1e1e1f; border: 2px solid var(--line); margin-left: -2px; box-shadow: inset 0 -4px 0 var(--btn-lo); padding: 8px 6px 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.seg button:first-child { margin-left: 0; }
.seg button:hover { background: var(--btn-hi); }
.seg button.on { background: var(--green); color: #fff; box-shadow: inset 0 -4px 0 var(--green-lo); text-shadow: 2px 2px 0 #0006; position: relative; z-index: 1; }
.seg button small { font-size: 16px; opacity: 0.8; line-height: 1; }
.seg button .ic { width: 34px; height: 34px; }
.seg.small button { padding: 6px 4px 10px; }
.seg.small button small { display: none; }

/* schakelaar (Bedrock-toggle) */
.opts { margin-top: 6px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 2px; border-bottom: 2px solid #3d3e3f; cursor: pointer; }
.opt small { display: block; color: #a8a8a8; font-size: 16px; line-height: 1.05; }
.opt.disabled { opacity: 0.45; cursor: not-allowed; }
.tg { flex: none; width: 60px; height: 30px; background: #1e1e1f; border: 2px solid var(--line); box-shadow: inset 0 0 0 2px #5a5a5c; position: relative; transition: background .12s; }
.tg::after { content: ''; position: absolute; top: -4px; left: -2px; width: 26px; height: 34px; background: var(--btn); border: 2px solid var(--line); box-shadow: inset 0 -4px 0 var(--btn-lo); transition: left .12s; }
.opt.on .tg { background: var(--green); box-shadow: inset 0 0 0 2px #6abf4b; }
.opt.on .tg::after { left: 32px; }

/* schuifbalk */
.sl { padding: 8px 2px 12px; border-bottom: 2px solid #3d3e3f; }
.sl .top { display: flex; justify-content: space-between; margin-bottom: 6px; }
.sl .top b { color: #fff; }
.sl input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; margin: 0; }
.sl input[type=range]::-webkit-slider-runnable-track { height: 10px; border: 2px solid var(--line); background: linear-gradient(90deg, var(--green) var(--p, 50%), #1e1e1f var(--p, 50%)); }
.sl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 28px; margin-top: -11px; background: var(--btn); border: 2px solid var(--line); box-shadow: inset 0 -4px 0 var(--btn-lo); }
.sl input[type=range]::-moz-range-track { height: 8px; border: 2px solid var(--line); background: #1e1e1f; }
.sl input[type=range]::-moz-range-progress { height: 8px; background: var(--green); }
.sl input[type=range]::-moz-range-thumb { width: 16px; height: 26px; border-radius: 0; background: var(--btn); border: 2px solid var(--line); }

/* toetsen veranderen */
.keyrow { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px; border-bottom: 2px solid #3d3e3f; }
.keyrow .bbtn { min-width: 150px; }
.keyrow .bbtn.wait { background: #ffe066; }

/* Spelen: tabbladen */
.tabbar { flex: none; width: 100%; display: flex; justify-content: center; gap: 0; background: var(--bg-dark); border-bottom: 3px solid var(--line); padding-top: 6px; }
.ptab { background: transparent; border: none; color: #ccc; padding: 6px 34px 10px; cursor: pointer; border-bottom: 4px solid transparent; font-size: 24px; }
.ptab:hover { color: #fff; }
.ptab.on { color: #fff; border-bottom-color: #fff; }
.page-body.play { max-width: 900px; margin: 0 auto; }
.tabpage { display: none; }
.tabpage.on { display: block; }
.create-btn { width: 100%; display: flex; align-items: center; gap: 16px; background: var(--btn); color: #1e1e1f; border: 2px solid var(--line); box-shadow: inset 0 -5px 0 var(--btn-lo); padding: 10px 14px 14px; cursor: pointer; text-align: left; }
.create-btn:hover { background: var(--btn-hi); }
.create-btn b { color: #1e1e1f; font-size: 24px; display: block; }
.create-btn small { color: #555; font-size: 16px; }
.create-btn .plus { width: 54px; height: 54px; background: var(--green); color: #fff; font-size: 48px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--line); box-shadow: inset 0 -4px 0 var(--green-lo); padding-bottom: 6px; }
.list-head { margin: 18px 0 6px; color: #ddd; }
#world-list, #friend-list { display: flex; flex-direction: column; gap: 6px; }
.world { display: flex; align-items: center; gap: 12px; background: var(--bg-dark); border: 2px solid var(--line); box-shadow: inset 0 0 0 2px #444546; padding: 8px 10px; cursor: pointer; }
.world:hover { background: #3c3d3e; box-shadow: inset 0 0 0 2px #fff; }
.world .wicon { width: 96px; height: 54px; flex: none; border: 2px solid var(--line); background: #6a9a3a center / cover; image-rendering: pixelated; display: flex; align-items: center; justify-content: center; }
.world .wicon img { width: 40px; height: 40px; }
.world .info { flex: 1; min-width: 0; }
.world .name { font-size: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.world .meta { color: #aaa; font-size: 16px; }
.world .online { color: #55ff55; }
.world .bbtn { min-width: 46px; padding-left: 10px; padding-right: 10px; }
.empty { color: #aaa; text-align: center; padding: 20px; }
.panel-dark { background: var(--bg-dark); border: 2px solid var(--line); box-shadow: inset 0 0 0 2px #444546; padding: 16px 18px; }
.code-box { text-align: center; }
.code-box p { max-width: 560px; margin: 6px auto; }
.code-inputs { display: flex; justify-content: center; gap: 8px; margin: 18px 0; }
.code-inputs input { width: 58px; height: 70px; text-align: center; font-size: 48px; text-transform: uppercase; background: var(--bg-deep); color: #fff; border: 2px solid #8b8b8b; outline: none; padding: 0; }
.code-inputs input:focus { border-color: #fff; box-shadow: 0 0 0 2px #fff; }
.code-box .bbtn.wide { max-width: 380px; }

/* nieuwe wereld */
#presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; margin: 4px 0 6px; }
.preset { background: var(--bg-dark); border: 2px solid var(--line); box-shadow: inset 0 0 0 2px #444546; padding: 6px 10px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.preset:hover { box-shadow: inset 0 0 0 2px #aaa; }
.preset.on { box-shadow: inset 0 0 0 2px #fff; background: #2f4a25; }
.preset img { width: 38px; height: 38px; flex: none; }
.preset .pn { font-size: 16px; }
.preset .pd { color: #aaa; font-size: 16px; line-height: 1; }

/* profiel */
.profile { display: flex; gap: 20px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.profile-left { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 220px; }
#skin-preview canvas { width: 160px; height: 240px; image-rendering: pixelated; filter: drop-shadow(0 10px 6px #0008); }
.profile-right { width: min(520px, 92vw); }
#skin-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 16px; }
.skin { width: 56px; height: 84px; border: 2px solid var(--line); box-shadow: inset 0 0 0 2px #444546; cursor: pointer; background: #252627; image-rendering: pixelated; padding: 4px; }
.skin:hover { box-shadow: inset 0 0 0 2px #aaa; }
.skin.on { box-shadow: inset 0 0 0 3px #fff; background: #2f4a25; }

/* meldingen en laden */
.dialog { width: min(560px, 94vw); background: var(--bg); border: 3px solid var(--line); box-shadow: inset 0 0 0 2px #6a6b6c; }
.dlg-head { background: var(--bg-dark); padding: 8px 14px; text-align: center; font-size: 24px; border-bottom: 3px solid var(--line); }
.dlg-body { padding: 14px 18px 18px; }
.dlg-body ol { margin: 6px 0 0 22px; padding: 0; line-height: 1.3; }
.dlg-body .bbtn { margin-top: 14px; }
.loading-box { width: min(520px, 90vw); text-align: center; }
.bar { height: 16px; background: #1e1e1f; border: 2px solid var(--line); box-shadow: inset 0 0 0 2px #444; margin: 10px 0; }
#loading-bar { height: 100%; width: 0; background: var(--green-hi); transition: width .2s; }
.help p { max-width: 900px; margin: 0 0 14px; line-height: 1.4; }

/* pauze (Bedrock: knoppen in het midden, Uitnodigen rechtsboven, spelers links) */
.pause-title { font-size: 32px; text-shadow: 2px 2px 0 #000a; margin-top: -40px; }
#overlay #scr-pause { background: rgba(0, 0, 0, 0.42); }
.invite-btn { position: absolute; right: 18px; top: 16px; }
.invite-ic { width: 20px; height: 16px; margin-right: 8px; vertical-align: -2px; }
.pause-players { position: absolute; right: 18px; top: 64px; width: min(260px, 30vw); max-height: 60vh; overflow-y: auto; padding: 8px 10px; }
.pause-skin { position: absolute; left: 6vw; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.ps-name { font-size: 20px; text-shadow: 2px 2px 0 #000a; }
.ps-fig canvas { width: min(120px, 12vw); height: auto; aspect-ratio: 8 / 12; image-rendering: pixelated; filter: drop-shadow(4px 6px 0 #0006); }
.pp-head { color: #ccc; border-bottom: 2px solid #5a5a5c; margin-bottom: 4px; padding-bottom: 2px; }
.pp { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.pp canvas { width: 16px; height: 24px; image-rendering: pixelated; }
.pp .tag { color: #ffe066; font-size: 16px; margin-left: auto; }
.death-title { font-size: 48px; color: #fff; text-shadow: 3px 3px 0 #3f0000; }
#scr-death { background: #6e0d0d70 !important; }

/* uitnodigen */
.invite { text-align: center; max-width: 760px; margin: 0 auto; }
.invite .row { justify-content: center; }
.code-show { display: flex; justify-content: center; gap: 8px; margin: 12px 0; }
.code-show span { width: 64px; height: 80px; font-size: 48px; display: flex; align-items: center; justify-content: center; background: var(--bg-deep); border: 2px solid #8b8b8b; color: #fff; }
#invite-urls div { font-size: 24px; color: #ffe066; margin: 4px 0; user-select: text; -webkit-user-select: text; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#crosshair { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; mix-blend-mode: difference; }
#crosshair::before, #crosshair::after { content: ''; position: absolute; background: #ddd; }
#crosshair::before { left: 10px; top: 0; width: 2px; height: 22px; }
#crosshair::after { top: 10px; left: 0; height: 2px; width: 22px; }
#vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, #0004 100%); }
#hurt-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, #b0000090 100%); opacity: 0; }
#water-overlay { position: absolute; inset: 0; background: #1438a050; display: none; }
#sleep-overlay { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity 2s; }
/* Bedrock: positie en chat staan linksboven */
#topleft { position: absolute; left: 8px; top: 6px; width: min(560px, 62vw); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
#coords, #fps { text-shadow: 2px 2px 0 #000a; background: #0006; padding: 0 6px; display: none; }
#chat-log { display: flex; flex-direction: column; align-items: flex-start; max-height: 50vh; overflow: hidden; justify-content: flex-end; margin-top: 2px; }
.chat-line { background: rgba(0, 0, 0, var(--chatbg)); padding: 1px 8px; text-shadow: 2px 2px 0 #222; transition: opacity 1s; word-wrap: break-word; max-width: 100%; }
.chat-line.old { opacity: 0; }
body.chat-open .chat-line.old { opacity: 1; }
#chat { position: absolute; left: 0; right: 0; bottom: 0; display: none; pointer-events: auto; }
#chat.open { display: block; }
.chat-bar { display: flex; gap: 6px; padding: 6px 8px; background: #000a; }
#chat-input { flex: 1; background: var(--bg-deep); color: #fff; border: 2px solid #8b8b8b; padding: 6px 10px; outline: none; }
#chat-send { min-width: 60px; }
#chat-suggest { display: none; margin: 0 8px; max-width: 720px; background: #000c; border: 2px solid #555; padding: 4px 0; font-size: 15px; }
#chat-suggest .cs-row { display: flex; gap: 12px; padding: 3px 10px; cursor: pointer; color: #ddd; }
#chat-suggest .cs-row b { font-weight: normal; color: #fff; white-space: nowrap; }
#chat-suggest .cs-row span { color: #9a9a9a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#chat-suggest .cs-row.on, #chat-suggest .cs-row:hover { background: #ffffff1a; }
#chat-suggest .cs-row.on b { color: #ffe066; }
#chat-suggest .cs-more { padding: 2px 10px; color: #888; }
body.chat-open #bottom { visibility: hidden; }
#debug { position: absolute; left: 8px; top: 6px; white-space: pre; font-size: 16px; text-shadow: 1px 1px 0 #000; display: none; background: #0008; padding: 4px 8px; line-height: 1.05; z-index: 2; }
#title-text { position: absolute; left: 0; right: 0; top: 28%; text-align: center; font-size: 64px; text-shadow: 4px 4px 0 #3f3f3f; opacity: 0; transition: opacity .4s; }
#boss-bar { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); text-align: center; text-shadow: 2px 2px 0 #222; pointer-events: none; }
#boss-bar .boss-name { margin-bottom: 4px; }
#boss-bar .boss-track { width: min(364px, 80vw); height: 10px; background: #3a1036; border: 2px solid #111; box-shadow: inset 0 0 0 1px #000; }
#boss-bar .boss-fill { height: 100%; width: 100%; background: #e43cdc; transition: width .3s; }
#action-text { position: absolute; left: 0; right: 0; bottom: calc(var(--slot) + 120px); text-align: center; text-shadow: 2px 2px 0 #222; opacity: 0; transition: opacity .3s; }
#bottom { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
#held-name { text-shadow: 2px 2px 0 #3f3f3f; height: 28px; transition: opacity .5s; background: #0005; padding: 0 8px; }
#held-name:empty { background: none; }
#stats { display: flex; justify-content: space-between; width: calc(var(--slot) * 9 + 8px); align-items: flex-end; }
.icon-row { display: flex; height: calc(9px * var(--s)); margin-bottom: calc(1px * var(--s)); }
.icon-row.right { flex-direction: row-reverse; }
.icon-row img { width: calc(9px * var(--s)); height: calc(9px * var(--s)); margin-right: calc(-1px * var(--s)); image-rendering: pixelated; }
.icon-row.right img { margin-right: 0; margin-left: calc(-1px * var(--s)); }
#mount-hearts { display: none; flex-direction: column-reverse; }
#xp.jump #xp-fill { background: linear-gradient(#ffe070, #e0a020); }
#xp.jump #xp-level { display: none; }
#hearts.low img { animation: shake .3s infinite; }
@keyframes shake { 50% { transform: translateY(calc(-1px * var(--s))); } }
#xp { position: relative; width: calc(var(--slot) * 9 + 8px); height: calc(5px * var(--s)); background: #222; border: calc(1px * var(--s)) solid #000; margin: calc(1px * var(--s)) 0 calc(2px * var(--s)); }
#xp-fill { height: 100%; width: 0; background: linear-gradient(#a8ff4a, #4ac81a); }
#xp-level { position: absolute; left: 0; right: 0; top: calc(-12px * var(--s)); text-align: center; color: #80ff20; text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000; font-size: calc(8px * var(--s)); }
/* Bedrock-hotbar: donkere doorzichtige vakjes, gekozen vakje met dikke lichte rand */
#hotbar { display: flex; background: #0009; border: calc(1px * var(--s)) solid #000c; padding: 0; pointer-events: auto; position: relative; }
#hotbar .slot { background: #0000; border: calc(1px * var(--s)) solid #6a6a6a80; box-shadow: none; }
#hotbar .slot.sel { outline: calc(2px * var(--s)) solid #e6e6e6; outline-offset: calc(-1px * var(--s)); box-shadow: 0 0 0 calc(1px * var(--s)) #000, inset 0 0 0 calc(1px * var(--s)) #000; z-index: 1; background: #ffffff18; }
.c-yellow { color: #ffff55; } .c-gray { color: #aaaaaa; } .c-red { color: #ff5555; } .c-light_purple { color: #ff55ff; } .c-white { color: #fff; } .c-green { color: #55ff55; } .c-aqua { color: #55ffff; } .c-gold { color: #ffaa00; }
#player-list { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); background: var(--bg-dark); border: 2px solid var(--line); box-shadow: inset 0 0 0 2px #444546; padding: 8px 18px; display: none; min-width: 280px; text-align: left; }
#player-list .pp-head { text-align: center; }

/* ---------- vakjes ---------- */
.slot { width: var(--slot); height: var(--slot); position: relative; background: #8b8b8b; border: calc(1px * var(--s)) solid; border-color: #373737 #fff #fff #373737; flex: none; }
.slot:hover { background: #a2a2a2; }
.slot .icon { position: absolute; left: 6%; top: 6%; width: 88%; height: 88%; pointer-events: none; }
.slot .icon2d { image-rendering: pixelated; image-rendering: crisp-edges; }
.slot .count { position: absolute; right: calc(1px * var(--s)); bottom: calc(-2px * var(--s)); font-size: calc(8px * var(--s)); color: #fff; text-shadow: calc(1px * var(--s)) calc(1px * var(--s)) 0 #3f3f3f; pointer-events: none; }
.slot .dur { position: absolute; left: 12%; right: 12%; bottom: 10%; height: calc(2px * var(--s)); background: #000; pointer-events: none; }
.slot .dur div { height: 50%; }
#cursor-item { position: fixed; z-index: 40; pointer-events: none; background: none !important; border: none !important; transform: translate(-50%, -50%); }
/* Bedrock-tooltip: donker vlak, geen paarse rand */
#tooltip { position: fixed; z-index: 41; pointer-events: none; display: none; background: #101010e8; border: 2px solid #000; box-shadow: inset 0 0 0 2px #3a3a3a; padding: 4px 10px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; line-height: 1.1; }
.tt-blue { color: #5555ff; } .tt-gray { color: #aaa; } .tt-dark { color: #555; } .tt-green { color: #55ff55; }

/* ---------- inventaris (Bedrock: venster met titelbalk en X, links receptenboek of creatief, rechts jij) ---------- */
#gui { position: fixed; inset: 0; z-index: 12; background: #000a; display: flex; align-items: center; justify-content: center; }
.panel { background: var(--panel); color: #3f3f3f; border: calc(2px * var(--s)) solid; border-color: #fff #555 #555 #fff; box-shadow: 0 0 0 calc(1px * var(--s)) #000; position: relative; max-height: 98vh; max-width: 99vw; padding: 0; display: flex; flex-direction: column; }
.win-head { display: flex; align-items: center; justify-content: center; height: calc(15px * var(--s)); position: relative; font-size: calc(8px * var(--s)); color: #404040; flex: none; }
.win-x { position: absolute; right: calc(2px * var(--s)); top: calc(2px * var(--s)); width: calc(12px * var(--s)); height: calc(12px * var(--s)); background: #c34040; border: calc(1px * var(--s)) solid #000; box-shadow: inset 0 calc(-2px * var(--s)) 0 #7a1c1c, inset calc(1px * var(--s)) calc(1px * var(--s)) 0 #ff8a8a; color: #fff; font-size: calc(8px * var(--s)); line-height: 1; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.win-x:hover { background: #dd5050; }
.win-body { display: flex; gap: calc(4px * var(--s)); padding: 0 calc(6px * var(--s)) calc(6px * var(--s)); min-height: 0; }
.win-left { display: flex; min-height: 0; }
.win-right { display: flex; flex-direction: column; }
.gui-title, .gui-sub { font-size: calc(8px * var(--s)); color: #404040; margin: 0 0 calc(3px * var(--s)); }
.gui-sub { margin-top: calc(5px * var(--s)); }
.gui-area { display: flex; align-items: center; gap: calc(8px * var(--s)); justify-content: center; min-height: calc(var(--slot) * 3.2); }
.grid9 { display: grid; grid-template-columns: repeat(9, var(--slot)); }
.cgrid3 { display: grid; grid-template-columns: repeat(3, var(--slot)); }
.grid5 { display: grid; grid-template-columns: repeat(5, var(--slot)); }
.cgrid2 { display: grid; grid-template-columns: repeat(2, var(--slot)); }
.craft { display: flex; align-items: center; gap: calc(6px * var(--s)); }
.arrow { width: calc(22px * var(--s)); height: calc(15px * var(--s)); position: relative; background: #8b8b8b; clip-path: polygon(0 35%, 60% 35%, 60% 0, 100% 50%, 60% 100%, 60% 65%, 0 65%); }
.arrow.prog .prog-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; }
.slot.big { width: calc(var(--slot) * 1.4); height: calc(var(--slot) * 1.4); }
.gap { height: calc(4px * var(--s)); }
.armor-col { display: flex; flex-direction: column; }
.doll { width: calc(52px * var(--s)); height: calc(72px * var(--s)); background: #000; border: calc(1px * var(--s)) solid; border-color: #373737 #fff #fff #373737; display: flex; align-items: center; justify-content: center; }
.doll canvas { image-rendering: pixelated; height: 92%; }
.furnace { display: flex; align-items: center; gap: calc(10px * var(--s)); }
.f-left { display: flex; flex-direction: column; align-items: center; gap: calc(2px * var(--s)); }
.flame { width: calc(14px * var(--s)); height: calc(14px * var(--s)); background: #8b8b8b; position: relative; clip-path: polygon(50% 0, 80% 40%, 100% 70%, 75% 100%, 25% 100%, 0 70%, 20% 40%); }
.flame-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(#ffd84a, #ff6a1e); }

/* zijtabbladen (Bedrock: verticale tabjes links van het receptenboek/creatief) */
.vtabs { display: flex; flex-direction: column; gap: calc(1px * var(--s)); margin-right: calc(-1px * var(--s)); z-index: 1; }
.vtab { width: calc(24px * var(--s)); height: calc(24px * var(--s)); background: #8b8b8b; border: calc(1px * var(--s)) solid #000; border-right: none; box-shadow: inset calc(1px * var(--s)) calc(1px * var(--s)) 0 #bbb, inset 0 calc(-2px * var(--s)) 0 #555; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.vtab:hover { background: #a6a6a6; }
.vtab.on { background: var(--panel); width: calc(26px * var(--s)); box-shadow: inset calc(1px * var(--s)) calc(1px * var(--s)) 0 #fff; }
.vtab .icon { width: 70%; height: 70%; }
.vtab .icon2d { image-rendering: pixelated; }
.book { background: #9a9a9a; border: calc(1px * var(--s)) solid; border-color: #373737 #fff #fff #373737; padding: calc(3px * var(--s)); display: flex; flex-direction: column; width: calc(var(--slot) * 6 + 10px * var(--s)); }
.book-title { font-size: calc(8px * var(--s)); color: #fff; text-shadow: 1px 1px 0 #333; margin-bottom: calc(2px * var(--s)); display: flex; justify-content: space-between; align-items: center; }
.book-title label { font-size: calc(8px * var(--s)); display: flex; align-items: center; gap: 3px; cursor: pointer; }
.recipes { display: grid; grid-template-columns: repeat(6, var(--slot)); grid-auto-rows: var(--slot); align-content: start; overflow-y: auto; overflow-x: hidden; gap: calc(1px * var(--s)); flex: 1; min-height: calc(var(--slot) * 4); }
.recipe { width: var(--slot); height: var(--slot); background: #c66; border: calc(1px * var(--s)) solid #8a3a3a; position: relative; cursor: default; }
.recipe.ok { background: #8b8b8b; border-color: #373737 #fff #fff #373737; cursor: pointer; }
.recipe.ok:hover { background: #b5b5b5; }
.recipe .icon { width: 86%; height: 86%; position: absolute; left: 7%; top: 7%; }
.recipe .icon2d { image-rendering: pixelated; }
.recipe .count { position: absolute; right: 2px; bottom: -3px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; font-size: calc(8px * var(--s)); }
.book .empty { color: #444; grid-column: 1 / -1; font-size: calc(8px * var(--s)); padding: 8px 4px; }
.search { width: 100%; background: #000; color: #fff; border: calc(1px * var(--s)) solid #555; padding: 3px 6px; margin-bottom: calc(3px * var(--s)); outline: none; font-size: calc(8px * var(--s)); }
.creative-grid { overflow-y: auto; overflow-x: hidden; grid-template-columns: repeat(9, var(--slot)); width: calc(var(--slot) * 9 + 14px); max-height: calc(var(--slot) * 7); align-content: start; }
.hot-row { display: flex; gap: calc(4px * var(--s)); align-items: center; }
.trash-row { display: flex; justify-content: flex-end; margin-top: 4px; }
.slot.trash { background: #8b8b8b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4h8v10H4zM3 3h10v1H3zM6 2h4v1H6z' fill='%23555'/%3E%3C/svg%3E") center/70% no-repeat; }
.armor-slot:empty::after { content: ''; position: absolute; inset: 15%; opacity: 0.35; background: center / contain no-repeat; }

/* ---------- aanraakscherm ---------- */
#touch-ui { position: absolute; inset: 0; display: none; }
body.touch #touch-ui { display: block; }
.tbtn { position: absolute; width: 64px; height: 64px; background: #ffffff30; border: 2px solid #ffffff60; pointer-events: auto; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; }
.tbtn.on { background: #ffffff70; }

@media (max-width: 700px) {
  .side { width: 130px; }
  .side-item { padding: 6px; font-size: 16px; }
  .pause-players { display: none; }
  .pause-skin { display: none; }
}
/* lijsten vullen de hoogte van het venster (maar maken het niet groter) */
.book .creative-grid { flex: 1 1 0; height: 0; max-height: none; min-height: calc(var(--slot) * 3); }
/* Bedrock creatief: tabbladen bovenaan, groepen die open- en dichtklappen */
.creative-col { display: flex; flex-direction: column; height: 100%; }
.creative-col .book { flex: 1 1 0; min-height: 0; }
.htabs { display: flex; gap: calc(1px * var(--s)); margin-bottom: calc(-1px * var(--s)); z-index: 1; }
.htab { flex: 1; height: calc(22px * var(--s)); background: #8b8b8b; border: calc(1px * var(--s)) solid #000; border-bottom: none; box-shadow: inset calc(1px * var(--s)) calc(1px * var(--s)) 0 #bbb, inset 0 calc(-2px * var(--s)) 0 #555; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.htab:hover { background: #a6a6a6; }
.htab.on { background: #9a9a9a; height: calc(24px * var(--s)); margin-top: calc(-2px * var(--s)); box-shadow: inset calc(1px * var(--s)) calc(1px * var(--s)) 0 #fff; }
.htab.search-tab { flex: 0 0 calc(24px * var(--s)); }
.htab .icon { width: calc(16px * var(--s)); height: calc(16px * var(--s)); }
.htab .icon2d { image-rendering: pixelated; }
.slot.grp-head { position: relative; cursor: pointer; }
.slot.grp-head .grp-mark { position: absolute; right: calc(1px * var(--s)); top: calc(0px * var(--s)); font-size: calc(8px * var(--s)); line-height: 1; color: #fff; text-shadow: calc(1px * var(--s)) calc(1px * var(--s)) 0 #3f3f3f; pointer-events: none; }
.slot.grp-head.open { background: #b0b0b0; }
.slot.grp-item { background: #7c7c7c; }
.recipes { flex: 1 1 0; height: 0; }
.book-title input { width: calc(8px * var(--s)); height: calc(8px * var(--s)); margin: 0; accent-color: #3c8527; }
#overlay .screen.page { background: var(--bg); }

/* ---------- tweede hand, effecten, brouwstandaard ---------- */
#hotbar .slot.offhand { position: absolute; right: calc(100% + 6px * var(--s)); top: -1px; background: #0009; border: calc(1px * var(--s)) solid #000c; }
#effects { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
#effects .eff { background: #000a; color: #fff; padding: 3px 8px 3px 4px; font-size: 16px; display: flex; align-items: center; gap: 6px; border: 1px solid #ffffff30; text-shadow: 1px 1px 0 #222; }
#effects .eff i { width: 14px; height: 14px; display: inline-block; border: 1px solid #000; box-shadow: inset 1px 1px 0 #fff6, inset -1px -1px 0 #0006; }
#effects .eff span { color: #ccc; }
#effects .eff.ending { animation: effblink 1s steps(2) infinite; }
@keyframes effblink { 50% { opacity: 0.45; } }
.armor-schild:empty::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 2h10v7l-5 5-5-5z' fill='%23333'/%3E%3C/svg%3E"); }
.brew { display: flex; align-items: flex-start; gap: calc(10px * var(--s)); }
.brew-fuel { display: flex; flex-direction: column; align-items: center; gap: calc(4px * var(--s)); }
.brew-fuelbar { width: calc(18px * var(--s)); height: calc(4px * var(--s)); background: #444; position: relative; }
.brew-fuelbar .flame-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; height: auto; background: #ff9a2a; }
.brew-mid { display: flex; flex-direction: column; align-items: center; gap: calc(4px * var(--s)); }
.brew-prog { width: calc(9px * var(--s)); height: calc(26px * var(--s)); background: #6a6a6a; position: relative; }
.brew-prog .prog-fill { position: absolute; left: 0; right: 0; top: 0; height: 0; background: #fff; }
.brew-bottles { display: flex; gap: calc(4px * var(--s)); }
.brew-bottle:empty::after { content: ''; position: absolute; inset: 18%; opacity: 0.35; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 1h4v4l3 3v6l-1 1H4l-1-1V8l3-3z' fill='%23333'/%3E%3C/svg%3E"); }
#tooltip b.r-common { color: #fff; } #tooltip b.r-uncommon { color: #ffff55; } #tooltip b.r-rare { color: #55ffff; } #tooltip b.r-epic { color: #ff55ff; }
/* ---- bord bewerken (Bedrock: "Edit Sign Message") ---- */
#sign-edit { position: fixed; inset: 0; background: #0009; display: flex; align-items: center; justify-content: center; z-index: 40; }
#sign-edit.hidden { display: none; }
.sign-box { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sign-title { color: #fff; font-size: 24px; text-shadow: 2px 2px 0 #3f3f3f; }
.sign-board { --wood: #b08f55; width: min(560px, 90vw); padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; border: 4px solid #0006;
  background: repeating-linear-gradient(0deg, var(--wood) 0 22px, color-mix(in srgb, var(--wood) 82%, #000) 22px 25px); box-shadow: 0 8px 0 #0005; position: relative; }
.sign-board::after { content: ''; position: absolute; left: calc(50% - 14px); bottom: -64px; width: 28px; height: 60px; background: color-mix(in srgb, var(--wood) 70%, #000); }
.sign-board.hanging::after { display: none; }
.sign-board.hanging { width: min(460px, 90vw); }
.sign-board input { background: transparent; border: none; outline: none; text-align: center; font-size: 32px; height: 40px; color: #000; caret-color: #000; }
.sign-board input:focus { background: #0001; }
.sign-board[data-wood="spruce"] { --wood: #7a5a34; } .sign-board[data-wood="birch"] { --wood: #d2bf86; } .sign-board[data-wood="jungle"] { --wood: #b07a52; }
.sign-board[data-wood="acacia"] { --wood: #b0603a; } .sign-board[data-wood="dark_oak"] { --wood: #4a3018; } .sign-board[data-wood="mangrove"] { --wood: #7a3030; }
.sign-board[data-wood="cherry"] { --wood: #e0b0a8; } .sign-board[data-wood="bamboo"] { --wood: #d8c060; } .sign-board[data-wood="crimson"] { --wood: #6a3048; }
.sign-board[data-wood="warped"] { --wood: #2a7a70; } .sign-board[data-wood="pale_oak"] { --wood: #e8e0d8; }
#sign-edit .bbtn.wide { min-width: 280px; margin-top: 48px; }
#death-score { display: none; }

/* ---------- betoveringstafel, aambeeld, slijpsteen, steenzaag ---------- */
.slot .glint { position: absolute; inset: calc(2px * var(--s, 2)); pointer-events: none; background: linear-gradient(115deg, transparent 20%, rgba(190, 110, 255, 0.55) 35%, rgba(255, 190, 255, 0.35) 45%, transparent 60%) 0 0 / 300% 300%;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; animation: glint 3.2s linear infinite; mix-blend-mode: screen; }
@keyframes glint { from { background-position: 100% 100%; } to { background-position: 0% 0%; } }
.ench { display: flex; gap: calc(8px * var(--s)); align-items: stretch; padding: calc(4px * var(--s)) 0; }
.ench-left { display: flex; flex-direction: column; align-items: center; gap: calc(4px * var(--s)); }
.ench-book { width: calc(36px * var(--s)); height: calc(24px * var(--s)); image-rendering: pixelated;
  background: linear-gradient(90deg, #6b3d1e 0 8%, #e9e1c9 8% 48%, #6b3d1e 48% 52%, #e9e1c9 52% 92%, #6b3d1e 92%); border: calc(1px * var(--s)) solid #3a2210; }
.ench-slots { display: flex; gap: calc(2px * var(--s)); }
.lapis-slot:empty::before { content: ''; position: absolute; inset: 22%; background: #2a3f8a55; clip-path: polygon(50% 0, 100% 40%, 80% 100%, 20% 100%, 0 40%); }
.ench-list { display: flex; flex-direction: column; gap: calc(2px * var(--s)); flex: 1; min-width: calc(108px * var(--s)); }
.ench-opt { display: flex; height: calc(19px * var(--s)); border: calc(1px * var(--s)) solid #1e1e1f; background: #8b8b8b; cursor: default; }
.ench-opt.ok { background: #6f5d9c; cursor: pointer; } .ench-opt.ok:hover { background: #8a76c0; }
.ench-opt.no { background: #5a5a5a; } .ench-opt.off { background: #8b8b8b; }
.eo-cost { width: calc(19px * var(--s)); display: flex; align-items: center; justify-content: center; gap: 1px; background: #00000030; font-size: calc(8px * var(--s)); color: #80ff20; text-shadow: 1px 1px 0 #000; position: relative; }
.ench-opt.no .eo-cost { color: #a0a0a0; }
.eo-lapis { position: absolute; left: 1px; top: 1px; width: calc(5px * var(--s)); height: calc(5px * var(--s)); background: #2f55c8; clip-path: polygon(50% 0, 100% 40%, 80% 100%, 20% 100%, 0 40%); }
.eo-text { flex: 1; overflow: hidden; white-space: nowrap; font-size: calc(7px * var(--s)); line-height: calc(9px * var(--s)); padding: 1px 3px; color: #685e4a; font-family: 'Segoe UI Symbol', 'Gadugi', sans-serif; white-space: normal; }
.ench-opt.ok .eo-text { color: #d8cfa8; } .ench-opt.ok:hover .eo-text { color: #ffff80; }
.anvil { display: flex; flex-direction: column; gap: calc(4px * var(--s)); align-items: flex-start; padding: calc(4px * var(--s)) 0; }
.anvil-name { width: calc(110px * var(--s)); font: inherit; font-size: calc(8px * var(--s)); padding: calc(2px * var(--s)) calc(3px * var(--s)); background: #000; color: #fff; border: calc(1px * var(--s)) solid #a0a0a0; }
.anvil-name:disabled { background: #333; color: #777; }
.anvil-row { display: flex; align-items: center; gap: calc(4px * var(--s)); }
.anvil-plus { font-size: calc(12px * var(--s)); color: #555; }
.anvil-cost { font-size: calc(8px * var(--s)); min-height: calc(10px * var(--s)); text-shadow: 1px 1px 0 #0004; }
.anvil-cost.ok { color: #3a9d23; } .anvil-cost.no { color: #c83737; }
.grind { display: flex; align-items: center; gap: calc(6px * var(--s)); padding: calc(4px * var(--s)) 0; }
.grind-in { display: flex; flex-direction: column; gap: calc(2px * var(--s)); }
.cutter { display: flex; align-items: center; gap: calc(6px * var(--s)); padding: calc(4px * var(--s)) 0; }
.cut-list { display: grid; grid-template-columns: repeat(4, calc(18px * var(--s))); grid-auto-rows: calc(18px * var(--s)); gap: 1px; width: calc(76px * var(--s)); height: calc(56px * var(--s)); overflow-y: auto; background: #8b8b8b; border: calc(1px * var(--s)) solid #373737; padding: 1px; }
.cut-opt { position: relative; background: #c6c6c6; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cut-opt.on { background: #6f9b5a; } .cut-opt:hover { background: #e0e0e0; }
.cut-opt .icon { width: 80%; height: 80%; }
.cut-opt .count { font-size: calc(6px * var(--s)); }
.eo-cost b { color: inherit; }

/* vlammen onderaan het scherm als je brandt (zoals in Minecraft: links en rechts) */
#hud #portal-overlay { position: fixed; inset: 0; width: auto; height: auto; pointer-events: none; z-index: 3; background:
  radial-gradient(ellipse at 30% 40%, rgba(190, 80, 255, 0.9), transparent 60%), radial-gradient(ellipse at 70% 65%, rgba(120, 20, 220, 0.9), transparent 55%), rgba(95, 20, 170, 0.75);
  animation: portalSwirl 2.2s linear infinite; }
@keyframes portalSwirl { 0% { background-position: 0 0, 0 0, 0 0; filter: hue-rotate(0deg); } 50% { filter: hue-rotate(-18deg); } 100% { filter: hue-rotate(0deg); } }
#hud #fire-overlay { position: fixed; inset: auto 0 0 0; top: auto; width: auto; height: 50vh; pointer-events: none; z-index: 3; opacity: 0.9; display: block; }
#hud #fire-overlay > div { position: absolute; bottom: -4vh; top: auto; width: 50vh; height: 50vh; background-size: 100% 100%; image-rendering: pixelated; }
#hud #fire-overlay > div:first-child { left: -6vh; right: auto; transform: rotate(6deg); }
#hud #fire-overlay > div:last-child { right: -6vh; left: auto; transform: scaleX(-1) rotate(6deg); }

/* handelen met dorpelingen */
.gui-trade .win-left { width: calc(var(--s) * 118px); }
.trade-list { height: calc(var(--s) * 166px); overflow-y: auto; display: flex; flex-direction: column; gap: calc(var(--s) * 2px); padding: calc(var(--s) * 2px); background: #8b8b8b; border: calc(var(--s) * 1px) solid #373737; border-right-color: #fff; border-bottom-color: #fff; }
.trade-tier { font-size: calc(var(--s) * 7px); color: #3f3f3f; text-align: center; padding: calc(var(--s) * 2px) 0 0; }
.trade-tier.locked { color: #5a5a5a; opacity: 0.8; }
.trade-tier .lock { display: inline-block; width: calc(var(--s) * 6px); height: calc(var(--s) * 6px); margin-left: calc(var(--s) * 3px); background: #5a5a5a; border-radius: calc(var(--s) * 1px) calc(var(--s) * 1px) 0 0; vertical-align: middle; }
.trade-row { display: flex; align-items: center; gap: calc(var(--s) * 2px); padding: calc(var(--s) * 2px); background: #c6c6c6; border: calc(var(--s) * 1px) solid #fff; border-right-color: #555; border-bottom-color: #555; cursor: pointer; }
.trade-row:hover { background: #d8d8ff; }
.trade-row.on { background: #b8c8a0; border-color: #e8ffe0 #3f5a2a #3f5a2a #e8ffe0; }
.trade-row.sold { filter: grayscale(0.8); opacity: 0.7; }
.trade-cost { display: flex; gap: calc(var(--s) * 1px); }
.trade-row .tslot { width: calc(var(--s) * 18px); height: calc(var(--s) * 18px); pointer-events: none; }
.trade-row .tslot.none { visibility: hidden; }
.trade-arrow { width: calc(var(--s) * 10px); height: calc(var(--s) * 9px); background: #8b8b8b; clip-path: polygon(0 30%, 55% 30%, 55% 0, 100% 50%, 55% 100%, 55% 70%, 0 70%); }
.trade-arrow.x { background: #c82020; clip-path: polygon(15% 0, 50% 35%, 85% 0, 100% 15%, 65% 50%, 100% 85%, 85% 100%, 50% 65%, 15% 100%, 0 85%, 35% 50%, 0 15%); }
.trade { display: flex; flex-direction: column; align-items: center; gap: calc(var(--s) * 6px); padding: calc(var(--s) * 4px) 0; }
.trade-level { display: flex; flex-direction: column; align-items: center; gap: calc(var(--s) * 2px); }
.trade-lname { font-size: calc(var(--s) * 8px); color: #3f3f3f; }
.trade-xp { width: calc(var(--s) * 100px); height: calc(var(--s) * 5px); background: #2a2a2a; border: calc(var(--s) * 1px) solid #000; }
.trade-xp-fill { height: 100%; background: #7cd84a; }
.trade-row-big { display: flex; align-items: center; gap: calc(var(--s) * 4px); }

/* weefgetouw */
.loom { display: flex; align-items: center; gap: calc(6px * var(--s)); padding: calc(4px * var(--s)) 0; }
.loom-in { display: flex; flex-direction: column; align-items: center; gap: calc(3px * var(--s)); }
.loom-row { display: flex; gap: calc(2px * var(--s)); }
.loom-list { grid-template-columns: repeat(4, calc(14px * var(--s))); grid-auto-rows: calc(24px * var(--s)); width: calc(64px * var(--s)); height: calc(60px * var(--s)); }
.loom-opt canvas { width: 50%; height: 84%; image-rendering: pixelated; box-shadow: 0 0 0 1px #373737; }
.loom-right { display: flex; flex-direction: column; align-items: center; gap: calc(3px * var(--s)); }
.loom-prev { width: calc(20px * var(--s)); height: calc(40px * var(--s)); background: #8b8b8b; border: calc(1px * var(--s)) solid #373737; }
.loom-prev canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.slot.ghost::before { content: ''; position: absolute; inset: 14%; background: var(--ghost) center / contain no-repeat; opacity: 0.3; image-rendering: pixelated; filter: grayscale(1); pointer-events: none; }
.slot.ghost:not(:empty)::before { display: none; }

/* account */
.login-box { width: min(440px, 94vw); }
.login-tabs { display: flex; border-bottom: 3px solid var(--line); }
.ltab { flex: 1; background: var(--bg-dark); color: #ccc; border: 0; padding: 10px; font: inherit; font-size: 20px; cursor: pointer; }
.ltab.on { background: var(--bg); color: #fff; }
.login-box label { display: block; margin: 10px 0 4px; color: #ddd; }
.login-box .field { width: 100%; box-sizing: border-box; }
.login-box:not(.register) .reg-only { display: none; }
.acc-err { color: #ff6a6a; min-height: 22px; margin: 8px 0; }
/* character creator */
.char { display: flex; gap: 20px; align-items: stretch; justify-content: center; flex-wrap: wrap; }
.char-left { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 240px; }
#char-view { width: 240px; height: 340px; cursor: grab; background: radial-gradient(ellipse 34% 5% at 50% 93%, #0007 60%, transparent 100%); }
#char-view canvas { width: 100%; height: 100%; display: block; }
.char-name { font-size: 24px; margin-top: 6px; }
.char-right { width: min(560px, 94vw); display: flex; flex-direction: column; }
.char-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.char-tabs .ctab { background: #48494a; color: #ddd; border: 2px solid var(--line); padding: 6px 10px; font: inherit; font-size: 16px; cursor: pointer; }
.char-tabs .ctab.on { background: #6f9b5a; color: #fff; }
.char-opts { flex: 1; overflow-y: auto; max-height: 46vh; }
.char-opts h4 { margin: 8px 0 4px; color: #ccc; font-weight: normal; }
.copt-row { display: flex; flex-wrap: wrap; gap: 6px; }
.copt { min-width: 44px; height: 44px; border: 2px solid var(--line); background: #2b2c2d; color: #ddd; font: inherit; font-size: 15px; cursor: pointer; padding: 0 8px; box-shadow: inset 0 0 0 2px #444546; }
.copt:hover { box-shadow: inset 0 0 0 2px #aaa; }
.copt.on { box-shadow: inset 0 0 0 3px #fff; background: #2f4a25; }
.copt.col { width: 40px; min-width: 40px; height: 40px; padding: 0; }
.copt canvas { width: 44px; height: 66px; image-rendering: pixelated; display: block; }
.copt.preset { height: auto; padding: 4px; }
.char-bottom { margin-top: 10px; }
.acc-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #bbb; margin-bottom: 8px; }
.acc-line .bbtn { min-width: 0; padding: 4px 10px 8px; }
.name-line .field { width: 100%; box-sizing: border-box; }
.admin-badge { color: #ffd84a; }

/* Super Admin */
.win-admin { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); background: #5a4a10; color: #ffd84a; border: 2px solid #1e1e1f; box-shadow: inset 0 -3px 0 #3a2e08; font: inherit; font-size: 16px; padding: 2px 10px 5px; cursor: pointer; }
.win-admin.on { background: #ffd84a; color: #3a2e08; box-shadow: inset 0 -3px 0 #b0901a; }
.admin { gap: calc(3px * var(--s)); overflow-y: auto; }
.admin-title { color: #ffe27a; }
.admin-tools { display: flex; flex-direction: column; gap: calc(2px * var(--s)); }
.admin-tile { display: flex; align-items: center; gap: calc(3px * var(--s)); background: #c6c6c6; border: calc(1px * var(--s)) solid; border-color: #fff #555 #555 #fff; padding: calc(2px * var(--s)); cursor: help; }
.admin-tile:hover { background: #d4d4d4; }
.admin-ic { flex: none; width: calc(var(--slot) - 2px * var(--s)); height: calc(var(--slot) - 2px * var(--s)); background: #8b8b8b; border: calc(1px * var(--s)) solid; border-color: #373737 #fff #fff #373737; display: flex; align-items: center; justify-content: center; }
.admin-ic img { width: 80%; height: 80%; image-rendering: pixelated; }
.admin-tx { flex: 1; min-width: 0; }
.admin-tx b { display: block; font-weight: normal; font-size: calc(8px * var(--s)); color: #2a2a2a; line-height: 1.1; }
.admin-tx small { display: block; font-size: calc(6px * var(--s)); line-height: 1.2; color: #555; }
.admin-sel { background: #c6c6c6; border: calc(1px * var(--s)) solid; border-color: #fff #555 #555 #fff; padding: calc(3px * var(--s)); display: flex; flex-direction: column; gap: calc(2px * var(--s)); }
.admin-sub { font-size: calc(7px * var(--s)); color: #2a2a2a; }
.admin-info { font-size: calc(6px * var(--s)); line-height: 1.3; color: #2a2a2a; }
.admin-info .c1 { color: #a82a2a; } .admin-info .c2 { color: #1a6a9a; }
.admin-fill { display: flex; align-items: center; gap: calc(3px * var(--s)); font-size: calc(6px * var(--s)); color: #2a2a2a; }
.admin-btns { display: grid; grid-template-columns: 1fr 1fr; gap: calc(1px * var(--s)); flex: 1; }
.admin-btns .bbtn, .admin-get { min-width: 0; padding: calc(1px * var(--s)) calc(3px * var(--s)) calc(3px * var(--s)); font-size: calc(6px * var(--s)); }
.admin-get { flex: none; }
.admin-hint { font-size: calc(6px * var(--s)); color: #333; text-align: center; margin-top: auto; }

/* The Breaker: uitleg en hoeken boven de hotbar */
#breaker-bar { background: #000a; border: calc(1px * var(--s)) solid #000; padding: calc(3px * var(--s)) calc(6px * var(--s)); margin-bottom: calc(4px * var(--s));
  font-size: calc(7px * var(--s)); line-height: 1.5; color: #ddd; text-align: center; white-space: nowrap; text-shadow: calc(1px * var(--s)) calc(1px * var(--s)) 0 #000; }
#breaker-bar .bb-title { color: #ffd84a; }
#breaker-bar .bb-c1 { color: #ff6a6a; } #breaker-bar .bb-c2 { color: #6ad8ff; }
#breaker-bar .bb-k { color: #fff; background: #ffffff22; padding: 0 calc(2px * var(--s)); }
#breaker-bar img { width: calc(9px * var(--s)); height: calc(9px * var(--s)); image-rendering: pixelated; vertical-align: middle; }

/* ---------- Launch: aftellen tot de game uitkomt ---------- */
.admin-launch { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; background: #e8c84a; }
.admin-launch:hover { background: #f4d860; }
.admin-launch .ic { width: 24px; height: 24px; }
.admin-panel-btn { background: #7ab8ff; }
.admin-panel-btn:hover { background: #9accff; }
/* Admin-scherm */
.ad-wrap { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.ad-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ad-tile { background: #1e1e1e; border: 2px solid #4a4a4a; padding: 10px 14px; }
.ad-tile b { display: block; font-size: 30px; color: #fff; line-height: 1.1; }
.ad-tile small { color: #b8b8b8; font-size: 14px; }
.ad-card { background: #1e1e1e; border: 2px solid #4a4a4a; padding: 12px 14px; }
.ad-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; color: #fff; font-size: 18px; }
.ad-card-head .field { max-width: 260px; margin: 0; }
.ad-range { display: flex; gap: 4px; }
.ad-range button { background: #3a3a3a; color: #ddd; border: 2px solid #5a5a5a; padding: 4px 10px; font: inherit; font-size: 14px; cursor: pointer; }
.ad-range button.on { background: #e8e8e8; color: #111; border-color: #fff; }
.ad-chart-box { position: relative; height: 260px; }
.ad-chart-box canvas { width: 100%; height: 100%; display: block; }
.hbtn.ad-refresh { width: auto; padding: 0 10px 3px; }
.ad-tip { position: absolute; display: none; pointer-events: none; background: #000d; border: 1px solid #777; color: #fff; padding: 4px 8px; font-size: 14px; white-space: nowrap; }
.ad-table-wrap { max-height: 420px; overflow: auto; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 15px; color: #ddd; }
.ad-table th { text-align: left; color: #aaa; font-weight: normal; position: sticky; top: 0; background: #1e1e1e; padding: 4px 8px; border-bottom: 2px solid #4a4a4a; }
.ad-table td { padding: 5px 8px; border-bottom: 1px solid #333; white-space: nowrap; }
.ad-table td.mail { color: #aaa; }
.ad-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #777; margin-right: 6px; }
.ad-dot.on { background: #5ad85a; }
.ad-star { color: #ffd84a; margin-left: 4px; }
.launch-ribbon { display: none; position: absolute; top: 0; left: 0; right: 0; background: #e8c84ae6; color: #2a2000; text-align: center; padding: 6px 10px 8px; border-bottom: 3px solid #6a5400; z-index: 2; }
.launch-scr { overflow: hidden; background: linear-gradient(#070b22, #1a2560 60%, #2c3c88); }
.launch-scr[data-theme=sunset] { background: linear-gradient(#2a1450, #a8386a 45%, #f08a3a 75%, #ffd06a); }
.launch-scr[data-theme=nether] { background: radial-gradient(ellipse at 50% 120%, #c8401a, #5a0e0e 55%, #1e0606); }
.launch-scr[data-theme=end] { background: radial-gradient(ellipse at 50% 40%, #3a1a5a, #12081e 65%, #050208); }
.launch-scr[data-theme=ocean] { background: linear-gradient(#0a5a8a, #0a3a6a 50%, #04182e); }
.launch-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.launch-fx i { position: absolute; background: #fff; animation: ln-twinkle 4s ease-in-out infinite alternate; }
.launch-scr[data-theme=nether] .launch-fx i { background: #ffb040; box-shadow: 0 0 6px #ff7020; animation-name: ln-rise; animation-timing-function: linear; }
.launch-scr[data-theme=end] .launch-fx i { background: #e8b8ff; box-shadow: 0 0 6px #b070ff; }
.launch-scr[data-theme=ocean] .launch-fx i { background: transparent; border: 2px solid #bfeaffaa; animation-name: ln-rise; animation-timing-function: linear; }
.ln-sun { position: absolute; left: 50%; bottom: 8%; width: 220px; height: 220px; margin-left: -110px; background: #ffe680; box-shadow: 0 0 80px 30px #ffb04a88; animation: ln-sun 6s ease-in-out infinite alternate; }
@keyframes ln-twinkle { from { opacity: 0.15; } to { opacity: 1; } }
@keyframes ln-rise { from { transform: translateY(30vh); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-110vh); opacity: 0; } }
@keyframes ln-sun { from { transform: translateY(0); } to { transform: translateY(-14px); } }
.launch-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 0 12px; }
.launch-title { font-size: clamp(40px, 9vw, 96px); color: #fff; text-shadow: 5px 5px 0 #3a3a3a, 0 0 30px #ffffff55; letter-spacing: 2px; line-height: 1; }
.launch-text { font-size: clamp(20px, 3vw, 30px); color: #ffff9a; text-shadow: 2px 2px 0 #000a; }
.launch-timer { display: flex; gap: clamp(6px, 2vw, 18px); margin-top: 6px; }
.launch-timer .lt { background: #000a; border: 3px solid #fff; box-shadow: inset 0 -6px 0 #0008, 0 6px 0 #0006; padding: 10px 0 8px; width: clamp(70px, 17vw, 150px); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.launch-timer .lt b { font-size: clamp(36px, 8vw, 84px); line-height: 1; color: #fff; text-shadow: 4px 4px 0 #3f3f3f; }
.launch-timer .lt small { color: #ccc; font-size: clamp(14px, 1.8vw, 18px); }
.launch-timer.soon .lt { border-color: #ffff55; animation: ln-pulse 0.5s ease-in-out infinite alternate; }
@keyframes ln-pulse { to { transform: scale(1.06); } }
.launch-timer.soon .lt b { color: #ffff55; }
.launch-date { color: #ddd; text-shadow: 2px 2px 0 #000; }
.launch-done { display: none; font-size: clamp(40px, 8vw, 90px); color: #55ff55; text-shadow: 5px 5px 0 #154015; }
.launch-done.on { display: block; }
.launch-done.boom { animation: ln-boom 0.6s ease-out; }
@keyframes ln-boom { from { transform: scale(0.2); opacity: 0; } 70% { transform: scale(1.15); } to { transform: scale(1); opacity: 1; } }
.launch-foot { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; gap: 10px; justify-content: center; align-items: center; color: #ddd; text-shadow: 2px 2px 0 #000; flex-wrap: wrap; }
.confetti { position: absolute; top: -12px; width: 10px; height: 14px; animation: ln-fall 2.4s linear forwards; }
@keyframes ln-fall { from { transform: translateY(0) rotate(0); } to { transform: translateY(110vh) rotate(720deg); } }
.lc-wrap { max-width: 760px; margin: 0 auto; }
.lc-status { background: var(--bg-deep); border: 2px solid #8b8b8b; padding: 10px 12px; margin-bottom: 6px; color: #bbb; }
.lc-status.on { border-color: #e8c84a; color: #ffe680; }
.lc-when { display: flex; gap: 8px; }
.lc-when .field { color-scheme: dark; }
.lc-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.lc-quick .bbtn { min-width: 0; }
.lc-sw { display: block; width: 44px; height: 26px; border: 2px solid #1e1e1f; }
.sw-night { background: linear-gradient(#070b22, #2c3c88); }
.sw-sunset { background: linear-gradient(#a8386a, #ffd06a); }
.sw-nether { background: linear-gradient(#5a0e0e, #c8401a); }
.sw-end { background: radial-gradient(#3a1a5a, #050208); }
.sw-ocean { background: linear-gradient(#0a5a8a, #04182e); }
.lc-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.lc-btns .bbtn { flex: 1; min-width: 150px; }
.lc-btns .bbtn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- shader packs (mods) ---------- */
.shader-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.card-search { width: 100%; box-sizing: border-box; margin: 0; }
.card-none { text-align: center; }
#boom-flash { position: fixed; inset: 0; background: #fff6e0; opacity: 0; pointer-events: none; z-index: 40; }
.shader-card { display: flex; align-items: center; gap: 14px; padding: 8px; background: #3a3b3c; border: 2px solid var(--line); box-shadow: inset 0 -4px 0 #2a2b2c; cursor: pointer; }
.shader-card:hover { background: #46474a; }
.shader-card.on { border-color: #fff; background: #2f4a28; box-shadow: inset 0 -4px 0 var(--green-lo); }
.shader-card.disabled { cursor: default; opacity: 0.75; }
.shader-txt { flex: 1; min-width: 0; }
.shader-txt b { display: block; margin-bottom: 4px; }
.shader-txt small { display: block; color: #bbb; font-size: 16px; line-height: 1.05; }
.shader-check { flex: none; width: 70px; color: #7fe060; text-align: right; }
.shader-pv { flex: none; width: 128px; height: 72px; border: 2px solid #111; position: relative; overflow: hidden; image-rendering: pixelated; }
.pv-none { background: linear-gradient(#7ab0ff 0 55%, #5ea33a 55% 64%, #8a5a33 64%); }
.pv-realistic { background: radial-gradient(circle at 74% 26%, #fffbe0 0 5%, #ffe08a 8%, #ffc06a00 30%), repeating-conic-gradient(from 200deg at 74% 26%, #fff4 0 3deg, #fff0 3deg 11deg), linear-gradient(#3a78d8 0 22%, #8ab8f0 46%, #2f6a2a 46% 55%, #1e4a7a 55% 62%, #6aa8e0 62% 66%, #1a3a6a 66%); }
.pv-realistic::after { content: ''; position: absolute; left: 10px; top: 14px; width: 22px; height: 26px; background: #1e4a1a; box-shadow: 18px 8px 0 -4px #2a5a22, 30px 22px 0 -6px #0006; }
.mod-pv { display: none; }
/* mods: kaartje met plaatje en schakelaar */
.mod-pic { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.mod-card .shader-pv { width: 160px; height: 90px; }
.mod-switch { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #bbb; font-size: 16px; }
.mod-card.on .mod-switch { color: #7fe060; }
.mod-card.on .tg { background: var(--green); box-shadow: inset 0 0 0 2px #6abf4b; }
.mod-card.on .tg::after { left: 32px; }
@media (max-width: 640px) { .mod-card .shader-pv { width: 112px; height: 63px; } .mod-switch { width: 62px; } }
/* nieuwe shader: Fantasy Dreams */
.pv-fantasy { background: radial-gradient(circle at 70% 30%, #fff6fb 0 5%, #ffc2e6 9%, #ff9ad600 34%), radial-gradient(circle at 20% 80%, #b8f8ff66 0 6%, #0000 16%), linear-gradient(#5a3aa8 0 18%, #c86ad8 40%, #ffb0c8 50%, #3aa86a 50% 58%, #2a7a9a 58% 64%, #8ae0f0 64% 67%, #3a5aa8 67%); }
.pv-fantasy::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 14% 30%, #fff 0 1px, #0000 2px), radial-gradient(circle at 40% 18%, #fff 0 1px, #0000 2px), radial-gradient(circle at 54% 40%, #fffbb0 0 1.5px, #0000 3px), radial-gradient(circle at 86% 62%, #fffbb0 0 1.5px, #0000 3px), radial-gradient(circle at 30% 70%, #fffbb0 0 1.5px, #0000 3px); }
.admin-head { display: flex; align-items: center; gap: calc(3px * var(--s)); font-size: calc(8px * var(--s)); color: #ffe27a; text-shadow: 1px 1px 0 #333; }
.admin-back { min-width: 0; padding: 0 calc(3px * var(--s)) calc(2px * var(--s)); font-size: calc(6px * var(--s)); }
.admin-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(1px * var(--s)); }
.admin-seg .bbtn { min-width: 0; padding: calc(1px * var(--s)) 0 calc(3px * var(--s)); font-size: calc(6px * var(--s)); }
.admin-seg .bbtn.on { background: #3c8527; color: #fff; box-shadow: inset 0 -3px 0 #1d4d13; }
.admin-toggle { display: flex; align-items: center; gap: calc(3px * var(--s)); font-size: calc(6px * var(--s)); color: #2a2a2a; cursor: pointer; }
.admin-toggle i { flex: none; width: calc(12px * var(--s)); height: calc(6px * var(--s)); background: #555; border: calc(1px * var(--s)) solid #1e1e1f; position: relative; }
.admin-toggle i::after { content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 100%; background: #ddd; }
.admin-toggle.on i { background: #3c8527; }
.admin-toggle.on i::after { left: 50%; }

/* ---------- mod Minimap ---------- */
#minimap { position: absolute; top: 10px; right: 10px; width: calc(64px * var(--s)); display: none; }
#minimap canvas:first-child { display: none; }
#minimap canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; border: 3px solid #1e1e1f; box-shadow: inset 0 0 0 2px #8b8b8b, 0 0 0 2px #c6c6c6; background: #18181c; image-rendering: pixelated; }
#minimap .mm-coords { margin-top: 3px; text-align: center; color: #fff; font-size: 14px; text-shadow: 2px 2px 0 #000a; background: #0006; }
body.minimap-on #effects { top: calc(64px * var(--s) + 40px); }

/* ---------- mod SecurityCraft: door een camera kijken ---------- */
#cctv { position: fixed; inset: 0; z-index: 6; pointer-events: none; display: none; color: #e8ffe8; text-shadow: 2px 2px 0 #000; font-size: 20px; }
body.cctv-on canvas#game, body.cctv-on #game { filter: saturate(0.55) contrast(1.15) brightness(1.05) sepia(0.15); }
body.cctv-on #hud { opacity: 0; }
.cctv-scan { position: absolute; inset: 0; background: repeating-linear-gradient(#0000 0 2px, #0003 2px 4px), radial-gradient(ellipse at center, #0000 55%, #000a 100%); }
.cctv-top, .cctv-bottom { position: absolute; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: center; }
.cctv-top { top: 18px; } .cctv-bottom { bottom: 18px; font-size: 16px; }
.cctv-rec { color: #ff6060; display: flex; align-items: center; gap: 8px; }
.cctv-rec i { width: 14px; height: 14px; border-radius: 50%; background: #ff2020; animation: effblink 1.2s steps(2) infinite; }
.cctv-hint { color: #c8e8c8; }
.cctv-q { position: absolute; display: none; padding: 2px 8px; font-size: 16px; background: #0008; border: 2px solid #0000; }
.cctv-q.on { border-color: #ff5050; color: #fff; }
.cctv-noise { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 40px; color: #fff;
  background: repeating-radial-gradient(circle at 30% 40%, #444 0 1px, #999 1px 2px, #222 2px 3px), #333; animation: cctvnoise .15s steps(3) infinite; }
.cctv-noise small { font-size: 18px; color: #ddd; }
@keyframes cctvnoise { 0% { background-position: 0 0; } 33% { background-position: 7px 3px; } 66% { background-position: -5px 6px; } }

/* ---------- mod Better Combat ---------- */
#combat-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
.dmg-num { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 5; font-size: 22px; color: #fff; text-shadow: 2px 2px 0 #000, -1px -1px 0 #000; white-space: nowrap; }
.dmg-num.me { color: #ffd84a; }
.dmg-num.big { font-size: 30px; color: #ff6a4a; }
#combo-text { position: fixed; left: 50%; top: 56%; transform: translateX(-50%); pointer-events: none; z-index: 5; color: #ffe066; font-size: 24px; text-shadow: 2px 2px 0 #000; opacity: 0; }
#combo-text.pop { animation: combopop .7s ease-out; }
@keyframes combopop { 0% { opacity: 1; transform: translateX(-50%) scale(1.6); } 30% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) translateY(-14px); } }
.mods-on { font-size: calc(5px * var(--s)); color: #3a3a3a; margin: 0 0 calc(2px * var(--s)); line-height: 1.1; }

/* ---------- servers ---------- */
.server-top { padding: 12px 16px; margin-bottom: 10px; }
.server-top h2 { margin: 0 0 4px; }
.server-top p { margin: 0; color: #ccc; }
.world.server .srv-tag { display: inline-block; margin-left: 8px; padding: 1px 5px; font-size: 11px; background: #3c8527; color: #fff; border: 1px solid #1e4a12; vertical-align: middle; }
.world.server .motd { color: #e8e8a0; }
.srv-players { display: flex; flex-direction: column; align-items: center; min-width: 56px; margin-right: 8px; color: #aaa; }
.srv-players b { font-size: 16px; }
.srv-players.on b { color: #7cfc4a; }
.srv-players small { font-size: 11px; }

/* mod Morph: kies een dier (B) */
#morph-menu { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: #0008; }
#morph-menu .mo-box { background: var(--panel); color: #3f3f3f; border: 3px solid; border-color: #fff #555 #555 #fff; box-shadow: 0 0 0 2px #000; width: min(760px, 94vw); max-height: 86vh; display: flex; flex-direction: column; padding: 12px; box-sizing: border-box; }
#morph-menu .mo-title { font-size: 24px; text-align: center; margin-bottom: 8px; }
#morph-menu .mo-search { background: #000; color: #fff; border: 2px solid #a0a0a0; padding: 6px 8px; margin-bottom: 8px; outline: none; }
#morph-menu .mo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; overflow-y: auto; min-height: 0; }
#morph-menu .mo-btn { display: flex; align-items: center; gap: 6px; background: #8b8b8b; color: #fff; border: 2px solid; border-color: #c6c6c6 #3a3a3a #3a3a3a #c6c6c6; padding: 4px 6px; cursor: pointer; text-align: left; text-shadow: 2px 2px 0 #3f3f3f; min-height: 36px; }
#morph-menu .mo-btn:hover { background: #a0a8d8; }
#morph-menu .mo-btn.on { background: #5aa05a; }
#morph-menu .mo-btn img { width: 24px; height: 24px; image-rendering: pixelated; flex: none; }
#morph-menu .mo-hint { margin-top: 8px; text-align: center; font-size: 14px; color: #555; }
#morph-menu .mo-info { min-height: 36px; margin-top: 8px; padding: 6px 8px; background: #0002; font-size: 15px; color: #303030; line-height: 1.2; }
#morph-menu .mo-info b { color: #000; font-weight: normal; }
#hearts { position: relative; }
#hearts .hp-num { position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin-right: 6px; color: #fff; text-shadow: 2px 2px 0 #3f0000; font-size: calc(9px * var(--s)); white-space: nowrap; }

/* echte 3D-plaatjes (modpics3d.js) */
.mod-pic.smooth { image-rendering: auto; }
.shader-pv.has3d { background: #000; }
.shader-pv.has3d::after { display: none; }

/* startmelding (tips.js) */
#tips-menu { position: fixed; inset: 0; z-index: 61; display: none; align-items: center; justify-content: center; background: #0009; }
#tips-menu .tp-box { background: var(--panel); color: #3f3f3f; border: 3px solid; border-color: #fff #555 #555 #fff; box-shadow: 0 0 0 2px #000; width: min(640px, 94vw); max-height: 90vh; display: flex; flex-direction: column; padding: 14px; box-sizing: border-box; }
#tips-menu .tp-title { font-size: 26px; text-align: center; margin-bottom: 10px; color: #303030; }
#tips-menu .tp-list { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
#tips-menu .tp-row { display: grid; grid-template-columns: 130px 1fr; gap: 2px 10px; align-items: center; padding: 6px 8px; background: #0001; font-size: 15px; line-height: 1.35; }
#tips-menu .tp-row.tp-hot { background: #f6d84a55; border: 2px solid #c9a21a; }
#tips-menu .tp-name { color: #000; }
#tips-menu .tp-note { grid-column: 2; color: #a01818; font-size: 14px; }
#tips-menu kbd { display: inline-block; min-width: 18px; padding: 1px 6px; margin: 0 2px; background: #6b6b6b; color: #fff; border: 2px solid; border-color: #9a9a9a #2e2e2e #2e2e2e #9a9a9a; font: inherit; font-size: 14px; text-align: center; text-shadow: 1px 1px 0 #2e2e2e; }
#tips-menu .tp-hide { margin-top: 10px; font-size: 15px; display: flex; gap: 6px; align-items: center; cursor: pointer; }
#tips-menu .tp-ok { margin-top: 10px; background: #8b8b8b; color: #fff; border: 2px solid; border-color: #c6c6c6 #3a3a3a #3a3a3a #c6c6c6; padding: 10px; font: inherit; font-size: 18px; cursor: pointer; text-shadow: 2px 2px 0 #3f3f3f; }
#tips-menu .tp-ok:hover { background: #a0a8d8; }
@media (max-width: 520px) { #tips-menu .tp-row { grid-template-columns: 1fr; } #tips-menu .tp-note { grid-column: 1; } }

/* account-level */
.who-lvl { font-weight: bold; }
.who-bar { display: block; width: 90px; height: 5px; background: #0008; border: 1px solid #ffffff40; margin-top: 3px; }
.who-bar i { display: block; height: 100%; background: linear-gradient(#9cff6a, #4fc22a); }
.pp-lvl { min-width: 22px; text-align: right; font-weight: bold; }
#lvl-toast { position: fixed; left: 50%; top: 22%; transform: translate(-50%, 0); text-align: center; pointer-events: none; z-index: 60; opacity: 0; text-shadow: 3px 3px 0 #000a; color: #fff; }
#lvl-toast small { display: block; font-size: 26px; color: #ffe27a; letter-spacing: 3px; }
#lvl-toast b { display: block; font-size: 64px; line-height: 1; }
#lvl-toast.show { animation: lvlpop 3.2s ease-out forwards; }
@keyframes lvlpop { 0% { opacity: 0; transform: translate(-50%, 10px) scale(0.6); } 10% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 18% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -14px); } }
/* mod Pets: het Pets-menu (zelfde stijl als het Morph-menu) */
#pet-menu { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: #0008; }
#pet-menu .pe-box { background: var(--panel); color: #3f3f3f; border: 3px solid; border-color: #fff #555 #555 #fff; box-shadow: 0 0 0 2px #000; width: min(720px, 94vw); max-height: 88vh; display: flex; flex-direction: column; padding: 12px; box-sizing: border-box; }
#pet-menu .pe-title { font-size: 24px; text-align: center; margin-bottom: 4px; }
#pet-menu .pe-now { text-align: center; color: #204a20; margin-bottom: 8px; font-size: 18px; }
#pet-menu .pe-row { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
#pet-menu .pe-name { flex: 1; min-width: 140px; background: #000; color: #fff; border: 2px solid #a0a0a0; padding: 6px 8px; outline: none; font: inherit; }
#pet-menu button { background: #8b8b8b; color: #fff; border: 2px solid; border-color: #c6c6c6 #3a3a3a #3a3a3a #c6c6c6; padding: 4px 10px; cursor: pointer; text-shadow: 2px 2px 0 #3f3f3f; font: inherit; }
#pet-menu button:hover:not(:disabled) { background: #a0a8d8; }
#pet-menu button.on { background: #5aa05a; }
#pet-menu button:disabled { opacity: 0.45; cursor: default; }
#pet-menu .pe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 4px; overflow-y: auto; min-height: 0; }
#pet-menu .pe-btn { display: flex; align-items: center; gap: 6px; text-align: left; min-height: 36px; padding: 4px 6px; }
#pet-menu .pe-btn img { width: 24px; height: 24px; image-rendering: pixelated; flex: none; }
#pet-menu .pe-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
#pet-menu .pe-hint { margin-top: 8px; text-align: center; font-size: 14px; color: #555; }
@media (max-width: 520px) { #pet-menu .pe-acts { grid-template-columns: repeat(2, 1fr); } }

/* Item Shop */
#nuke-flash { position: fixed; inset: 0; background: #fff8e0; pointer-events: none; z-index: 60; opacity: 0; visibility: hidden; }
#nuke-flash.go { visibility: visible; animation: nukeflash 2.6s ease-out forwards; }
@keyframes nukeflash { 0% { filter: brightness(1.4); } 15% { background: #fff; } 100% { opacity: 0; } }
.shop-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 8px 18px; background: var(--bg-dark); border-bottom: 3px solid var(--line); }
.shop-stars { font-size: 24px; color: #ffe066; text-shadow: 2px 2px 0 #0008; }
.shop-lvl { font-size: 20px; font-weight: bold; }
.shop-hint { color: #bbb; font-size: 16px; flex: 1; min-width: 200px; }
.shop-err { color: #ff6a6a; width: 100%; min-height: 0; }
.shop-err:empty { display: none; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.shop-card { background: var(--bg-deep); border: 2px solid #5f6062; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.shop-card.own { border-color: #8b8b8b; }
.shop-card.on { border-color: #6ad04a; box-shadow: 0 0 0 2px #2a6a1a inset; }
.shop-card .sc-pic { width: 64px; height: 64px; image-rendering: pixelated; background: #0003; }
.shop-card .sc-name { font-size: 18px; color: #fff; }
.shop-card .sc-desc { font-size: 14px; color: #aaa; flex: 1; line-height: 1.15; }
.shop-card .sc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.shop-card .sc-price { color: #ffe066; font-size: 18px; }
.shop-card .sc-lock { color: #ff9a6a; font-size: 14px; }
.shop-card .bbtn { min-width: 0; padding: 4px 12px 8px; }
.shop-card .bbtn:disabled { opacity: 0.45; cursor: not-allowed; }
.copt.locked { border-style: dashed; border-color: #b08a2a; color: #e8d090; }
.copt.locked.on { border-style: solid; border-color: #ffd040; }
.copt .lk { font-size: 12px; color: #ffd040; }
.char-lock { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.char-lock .cl-stars { color: #ffd040; font-size: 16px; }
.char-lock .cl-row { display: flex; gap: 10px; align-items: center; background: rgba(0,0,0,0.35); padding: 4px 10px; border: 2px solid #b08a2a; }
.char-lock .cl-name { color: #fff; }
.char-lock .cl-why { color: #ff8a8a; font-size: 14px; }
.char-lock .bbtn { height: 30px; font-size: 15px; padding: 0 10px; }

/* ---------- 2B5 SMP ---------- */
#smp-badge { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); display: flex; gap: 6px; align-items: center; pointer-events: none; text-shadow: 2px 2px 0 #222; font-size: 18px; white-space: nowrap; }
#smp-badge span { padding: 2px 8px; background: rgba(0, 0, 0, 0.45); border: 2px solid rgba(0, 0, 0, 0.6); }
#smp-badge .smp-team { color: #fff; font-weight: bold; }
#smp-badge .smp-lobby { background: #c89a1e; color: #fff; }
#smp-badge .smp-wall.open { color: #ffd23c; }
#smp-badge .smp-hint { color: #ffe9a0; }
#smp-badge .smp-timer { color: #ffd23c; }
#cw-smp-timer .row { display: flex; gap: 8px; align-items: center; }
#cw-smp-timer .field { width: 90px; }
#smp-banner { position: absolute; left: 0; right: 0; top: 22%; text-align: center; pointer-events: none; opacity: 0; }
#smp-banner .sb-title { font-size: 72px; color: #fff; text-shadow: 5px 5px 0 #222; letter-spacing: 2px; }
#smp-banner .sb-sub { font-size: 26px; color: #eee; text-shadow: 2px 2px 0 #222; margin-top: 4px; }
#smp-banner.on { animation: smpBanner 4.5s ease-out forwards; }
@keyframes smpBanner { 0% { opacity: 0; transform: scale(1.6); } 8% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
#rules-box { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.55); pointer-events: auto; z-index: 30; }
#rules-box.on { display: flex; }
#rules-box .rules-panel { width: min(460px, calc(100vw - 32px)); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
#rules-box .rules-head { font-size: 26px; text-align: center; color: #ffd23c; }
#rules-text .rule { padding: 6px 10px; background: rgba(255, 255, 255, 0.06); border-left: 4px solid #ffd23c; margin-bottom: 4px; word-wrap: break-word; }
.chat-team { font-weight: bold; }
.smp-note { margin: 8px 0; padding: 10px 12px; color: #fff; line-height: 1.35; border: 2px solid #111; background: linear-gradient(90deg, #1d4f8a, #3a3a46 50%, #8a2626); }
.smp-note b { color: #ffd23c; }
.smp-note .n { color: #8fc8ff; font-weight: bold; }
.smp-note .s { color: #ff9a8a; font-weight: bold; }
.field.area { resize: vertical; min-height: 70px; font-family: inherit; line-height: 1.3; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.icon-pick .ipick { width: 44px; height: 44px; padding: 6px; background: #3a3a3a; border: 2px solid #1e1e1e; cursor: pointer; }
.icon-pick .ipick img { width: 100%; height: 100%; }
.icon-pick .ipick.on { background: #3c8527; border-color: #fff; }
.world.server .srv-tag.smp { background: linear-gradient(90deg, #2a6fd0, #c83a3a); border-color: #111; }
.smp-info { display: grid; gap: 4px; margin: 8px 0; }
.smp-info > div { display: flex; justify-content: space-between; padding: 6px 10px; background: rgba(0, 0, 0, 0.25); }
.smp-player { display: flex; align-items: center; gap: 6px; padding: 4px 6px; background: rgba(0, 0, 0, 0.2); margin-bottom: 4px; flex-wrap: wrap; }
.smp-player .nm { flex: 1; min-width: 90px; }
.smp-player .wh { color: #aaa; font-size: 14px; min-width: 50px; }
.smp-player .bbtn { padding: 2px 10px; min-width: 0; }
@media (max-width: 600px) { #smp-banner .sb-title { font-size: 44px; } #smp-banner .sb-sub { font-size: 18px; } #smp-badge { font-size: 14px; } }
.smp-player .smp-cur { padding: 2px 10px; color: #fff; border: 2px solid #111; text-shadow: 1px 1px 0 #222; }

/* The Unbreakable Everything: regenboognaam */
#tooltip b.r-rainbow { background: linear-gradient(90deg, #ff5555, #ffaa00, #ffff55, #55ff55, #55ffff, #5577ff, #ff55ff, #ff5555); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbowName 2s linear infinite; }
@keyframes rainbowName { to { background-position: 200% 0; } }
.admin-tile.rainbow-tile { background: linear-gradient(90deg, #f6b5b5, #f6dcb0, #f4f4b0, #c0f0c0, #b8eef0, #c0c8f6, #f0c0f0); }
/* Admin-scherm: Build Things (2B5 SMP lobby) */
#ad-smps { display: flex; flex-direction: column; gap: 6px; }
.ad-smp { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, 0.25); border: 2px solid #1e1e1f; padding: 6px 8px; }
.ad-smp img { width: 32px; height: 32px; image-rendering: pixelated; }
.ad-smp-tx { flex: 1; min-width: 0; }
.ad-smp-tx b { display: block; font-weight: normal; font-size: 16px; }
.ad-smp-tx small { display: block; color: #bbb; font-size: 12px; }
.ad-none { color: #ccc; }
/* 2B5 SMP: aftellen en openen (/serion) */
#smp-banner.count .sb-title { font-size: 120px; }
#smp-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
#smp-flash.on { animation: smpFlash 1.6s ease-out; }
@keyframes smpFlash { 0% { opacity: 0.95; } 100% { opacity: 0; } }

/* Loser's Island: de winnaar kiest een team */
.arena-pick { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 60; padding: 18px 22px; text-align: center;
  background: rgba(20, 20, 26, 0.92); border: 3px solid #ffd23c; color: #fff; max-width: calc(100vw - 32px); }
.arena-pick .ap-title { font-size: 30px; color: #ffd23c; margin-bottom: 4px; }
.arena-pick .ap-sub { margin-bottom: 14px; color: #ddd; }
.arena-pick .ap-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.arena-pick .ap-north { background: #2a5a9a; }
.arena-pick .ap-south { background: #9a2a2a; }

/* Start Items (server maken) */
.start-list { margin: 6px 0; }
.start-row { display: flex; align-items: center; gap: 10px; padding: 4px 6px; background: rgba(0, 0, 0, 0.25); margin-bottom: 3px; }
.start-row img { width: 24px; height: 24px; image-rendering: pixelated; }
.start-row .sn { flex: 1; }
.start-add { display: flex; gap: 8px; flex-wrap: wrap; }
.start-add #cw-start-item { flex: 1; min-width: 160px; }
.start-add #cw-start-n { width: 80px; }
.field.bad { border-color: #ff5555; }

/* M = de grote kaart */
#bigmap { position: fixed; inset: 0; z-index: 40; display: none; background: rgba(8, 8, 12, 0.92); }
#bigmap canvas { position: absolute; inset: 0 0 40px 0; width: 100%; height: calc(100% - 40px); }
#bigmap .bm-info { position: absolute; left: 16px; right: 16px; bottom: 10px; text-align: center; color: #ddd; font-size: 16px; }

/* Get Your Own Update: ideeën */
.ideas-body { max-width: 820px; margin: 0 auto; }
.ideas-body > .field.area { width: 100%; }
.idea-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.ideas-err { color: #ff6a6a; }
.ideas-tabs { display: flex; gap: 6px; margin: 14px 0 8px; }
.ideas-tabs .bbtn.on, .idea .bbtn.on { background: #3c8527; color: #fff; box-shadow: inset 0 -3px 0 #1d4d13; }
.idea .bbtn.idea-down.on { background: #a83232; box-shadow: inset 0 -3px 0 #5a1414; }
.idea { background: rgba(0, 0, 0, 0.3); border: 2px solid #1e1e1f; padding: 10px 12px; margin-bottom: 8px; color: #fff; }
.idea.mine { border-color: #3c8527; }
.idea-head { display: flex; gap: 10px; align-items: baseline; }
.idea-head small { color: #aaa; }
.idea-text { margin: 6px 0; white-space: pre-wrap; word-break: break-word; line-height: 1.3; }
.idea-reply { margin: 6px 0; padding: 6px 8px; background: rgba(255, 210, 60, 0.12); border-left: 3px solid #ffd23c; white-space: pre-wrap; word-break: break-word; }
.idea-reply b { color: #ffd23c; }
.idea-gap { flex: 1; }
.idea-edit .field.area { width: 100%; }

/* Admin -> Build Things: lobby-presets */
.ad-presets { margin: 4px 0 14px; }
.ad-preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px; margin-top: 4px; }
.ad-preset { display: flex; align-items: center; gap: 8px; padding: 6px; background: rgba(0, 0, 0, 0.25); }
.ad-preset img { width: 28px; height: 28px; image-rendering: pixelated; }
.ad-preset > div { flex: 1; display: flex; flex-direction: column; }
.ad-preset small { color: #bbb; }

/* Admin: knop Spectate bij een speler */
.ad-table .ad-spec { margin-left: 8px; padding: 1px 8px; font-size: 13px; }

/* Admin -> All Stats */
.ad-topbtns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0 auto 12px; }
.ad-topbtns .bbtn { min-width: 200px; }
.st-chart { position: relative; height: 180px; }
.st-chart canvas { width: 100%; height: 100%; display: block; }
.st-grouping select { min-width: 220px; }
.st-glist { max-height: 420px; overflow: auto; margin: 8px 0; }
.st-grow { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-bottom: 1px solid #2a2a2e; }
.st-grow.far .st-gname { color: #999; }
.st-gname { flex: 1; }
.st-gseg { display: flex; gap: 4px; }
.st-gseg .bbtn.on.north { background: #2a5a9a; color: #fff; }
.st-gseg .bbtn.on.south { background: #9a2a2a; color: #fff; }
.st-gseg .bbtn.on.auto { background: #555; color: #fff; }
.st-gbar { align-items: center; gap: 12px; }
#st-gcount .n { color: #8fc8ff; } #st-gcount .s { color: #ff9a8a; }
.st-gwarn { flex: 1; color: #ff6a6a; }
.st-gmsg.ok { color: #7fe07f; } .st-gmsg.bad { color: #ff6a6a; }

/* /fight: spelers kiezen */
.fight-pick { min-width: 340px; text-align: left; }
.fight-pick .ap-title, .fight-pick .ap-sub { text-align: center; }
.fp-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.fp-row > span { width: 70px; color: #ddd; }
.fp-row select { flex: 1; }

/* Admin: Chat Log */
.ad-chatlog { max-height: 360px; overflow: auto; margin-top: 8px; background: rgba(0, 0, 0, 0.25); padding: 4px 6px; }
.ad-cl { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; border-bottom: 1px solid #2a2a2e; word-break: break-word; }
.ad-cl small { color: #888; white-space: nowrap; }
.ad-cl .w { color: #8a8a9a; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.ad-cl b { color: #fff; }
.ad-cl .to { color: #bbb; white-space: nowrap; }
.ad-cl .tx { flex: 1; color: #ddd; }
.ad-cl.team.north .to { color: #8fc8ff; } .ad-cl.team.south .to { color: #ff9a8a; }
.ad-cl.whisper .tx { color: #aaa; font-style: italic; } .ad-cl.global .to { color: #ffd23c; }

/* Admin: Fun Texts */
.ad-fun-label { margin: 10px 0 4px; color: #ddd; }
.ad-fun-box { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; min-height: 90px; }
