/* Grimstay: interface. Animaties en easings komen uit Open Props (vendor/open-props.min.css).
   Lettertypes staan in vendor/fonts (SIL Open Font License): Inter voor tekst, Pixelify Sans voor titels. */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../vendor/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../vendor/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-display: swap; font-weight: 400 700; src: url('../vendor/fonts/pixelify-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-display: swap; font-weight: 400 700; src: url('../vendor/fonts/pixelify-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* vlakken: van achtergrond naar steeds hoger */
  --bg: #0b0a10; --s1: #16131d; --s2: #1e1a27; --s3: #282333; --s4: #332d42;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .12); --line-3: rgba(255, 255, 255, .22);
  /* tekst: hoofdtekst, uitleg, bijzaak (alle drie goed leesbaar op de panelen) */
  --fg: #f5f0e8; --fg-2: #cfc7db; --fg-3: #a097b4;
  --gold: #f6c453; --gold-2: #e09a2c; --gold-ink: #2b1a03; --gold-soft: rgba(246, 196, 83, .12);
  --good: #7fdc95; --good-soft: rgba(127, 220, 149, .12); --bad: #ff8a7a; --bad-soft: rgba(255, 138, 122, .12);
  --blue: #8fb4ff; --rest: #a3b2ff;
  --glass: linear-gradient(180deg, rgba(31, 27, 41, .94), rgba(19, 16, 25, .95));
  --shadow: 0 12px 32px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .4);
  --r-lg: 14px; --r-md: 10px; --r-sm: 7px; --r-xs: 5px;
  --display: 'Pixelify Sans', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* Telefoons leggen bij elke tik een blauw vlak over wat je aanraakt (op het speelveld: het hele scherm).
   Dat zetten we uit, net als tekst selecteren en het iOS-menu bij lang drukken op het spel zelf. */
* { -webkit-tap-highlight-color: transparent; }
#view, #overlay, #hud, #side, .slot, #tabs, #minimap, #stats, #ctxmenu { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, #chatlog { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .tnum { font-variant-numeric: tabular-nums; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--s4); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #463e5c; }
::-webkit-scrollbar-track { background: transparent; }

#view { position: fixed; left: 0; top: 0; image-rendering: pixelated; cursor: pointer; }
#overlay { position: fixed; left: 0; top: 0; pointer-events: none; }
.pix { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pix canvas, canvas[data-box] { display: block; }

/* ------------------------------------------------ bouwstenen */
.glass { background: var(--glass); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05); backdrop-filter: blur(6px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: .93rem; background: var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 8px 14px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .4); transition: background .15s, border-color .15s, transform .12s var(--ease-out-3), filter .15s; }
.btn:hover { background: var(--s4); border-color: var(--line-3); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 5px 10px; font-size: .85rem; }
.btn.gold { position: relative; overflow: hidden; background: linear-gradient(180deg, #ffd56e, #eba53a); color: var(--gold-ink); border-color: #ffe6a3; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(150, 80, 10, .45), 0 4px 14px rgba(240, 160, 50, .22); }
.btn.gold:hover { filter: brightness(1.06); background: linear-gradient(180deg, #ffd56e, #eba53a); }
.btn.gold::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-130%); animation: btnshine 3.4s var(--ease-in-out-3) 1.2s infinite; pointer-events: none; }
.btn.big { font-size: 1.05rem; padding: 12px 18px; width: 100%; border-radius: var(--r-md); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; filter: none; }
.btn.busy span { animation: var(--animation-blink); }
@keyframes btnshine { 0% { transform: translateX(-130%); } 45%, 100% { transform: translateX(130%); } }
@keyframes pop { 0% { transform: scale(.94); } 100% { transform: scale(1); } }

.seg { display: inline-flex; background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 3px; gap: 3px; }
.seg button { font-weight: 600; font-size: .9rem; background: transparent; border: 0; border-radius: var(--r-xs); padding: 6px 12px; cursor: pointer; color: var(--fg-2); transition: background .15s, color .15s; }
.seg button:hover { background: var(--s3); color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.seg.wide { display: flex; } .seg.wide button { flex: 1; }
.hint { color: var(--fg-3); font-size: .87rem; margin: 10px 0 0; line-height: 1.5; }
/* laten vallen: Shift ingedrukt of de knop aan (sinds 1.0) */
.invbalk { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; }
.invbalk .hint { flex: 1; margin: 0; }
#dropknop { flex: none; padding: 4px 10px; font-size: .78rem; }
#dropknop[aria-pressed="true"] { border-color: var(--bad); color: var(--bad); background: var(--bad-soft); }
body.shift #inv .slot:not(.empty):hover, #inv.dropmodus .slot:not(.empty) { box-shadow: inset 0 0 0 2px rgba(255, 138, 122, .85); background: rgba(255, 90, 70, .08); }
#inv .slot.valt { opacity: .3; transform: scale(.9); transition: opacity .12s, transform .12s; }
h3 { font-family: var(--body); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; margin: 18px 0 8px; color: var(--fg-3); }
input, select { font: inherit; background: var(--bg); color: var(--fg); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 11px; transition: border-color .2s, box-shadow .2s; }
input::placeholder { color: #6f6782; }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246, 196, 83, .2); outline: none; }
kbd { display: inline-block; min-width: 1.6em; text-align: center; font: 600 .78rem/1 var(--body); color: var(--fg); background: var(--s3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: var(--r-xs); padding: 4px 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--fg-2); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 6px; font-variant-numeric: tabular-nums; }
.chip.gold { color: var(--gold); }
.empty-state { color: var(--fg-3); padding: 22px; text-align: center; border: 1px dashed var(--line-3); border-radius: var(--r-md); }

/* ------------------------------------------------ HUD */
#hud.enter { animation: var(--animation-fade-in) both; animation-duration: .9s; opacity: 0; }
#hovertext { position: fixed; z-index: 25; left: 14px; top: 12px; font-weight: 700; font-size: 1rem; padding: 6px 12px; border-radius: var(--r-sm); background: rgba(11, 10, 16, .78); border: 1px solid var(--line); pointer-events: none; text-shadow: 0 1px 2px #000; }
#hovertext:empty { display: none; }
#hovertext .act { color: var(--fg); } #hovertext .tgt { color: var(--gold); } #hovertext .lvl { font-weight: 600; }
#zonetoast { position: fixed; left: 50%; top: 13%; transform: translateX(-50%); font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--gold); text-shadow: 0 3px 0 #1a1423, 0 0 18px rgba(0, 0, 0, .9); pointer-events: none; opacity: 0; transition: opacity .6s; white-space: nowrap; }
#zonetoast.show { opacity: 1; }
#zonetoast small { display: block; text-align: center; font-family: var(--body); font-size: .42em; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); font-weight: 600; margin-top: 2px; }

/* levenspunten midden onderin, rugzak rechtsonder, chat linksonder */
#stats { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(440px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 7px; padding: 10px 12px 9px; }
.st-row { display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: center; }
.hpbar, .restbar { position: relative; border-radius: 999px; overflow: hidden; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .05); }
.hpbar { height: 22px; }
.hpbar i { position: absolute; inset: 0; width: 100%; background: linear-gradient(180deg, #ff7a6e, #e03a4a 55%, #b8243a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); transition: width .25s var(--ease-out-3); border-radius: inherit; }
.hpbar span, .restbar span { position: relative; display: block; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); white-space: nowrap; }
.hpbar span { font-size: .88rem; line-height: 22px; }
.restbar { height: 15px; }
.restbar i { position: absolute; inset: 0; width: 0; background: linear-gradient(180deg, #b9c4ff, #6d7fe0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); transition: width .4s; border-radius: inherit; }
.restbar span { font-size: .72rem; line-height: 15px; color: #eef1ff; }
#restbar.full .restbar i { background: linear-gradient(180deg, #ffe98a, #e0a020); animation: var(--animation-blink); }
.statline { display: flex; justify-content: space-between; gap: 8px; }
/* bovenin (sinds 1.4, ui-balken.js): levensbalk van je doelwit en de xp-teller */
#bovenhud { position: fixed; left: 50%; top: 10px; transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; width: min(380px, calc(100vw - 32px)); }
#doelbalk { width: 100%; background: rgba(11, 10, 16, .86); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px 10px 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: opacity .35s, transform .35s; }
#doelbalk.weg { opacity: 0; transform: translateY(-6px); }
#doelbalk.baas { border-color: #ffb347; box-shadow: 0 0 0 1px rgba(255, 179, 71, .25), 0 8px 24px rgba(0, 0, 0, .45); }
.db-kop { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; } .db-naam { color: var(--fg); font-weight: 800; } #doelbalk.baas .db-naam { color: #ffd9a0; }
.db-lv { color: var(--fg-3); font-weight: 700; font-size: .8rem; } .db-staat { margin-left: auto; font-size: .74rem; font-weight: 800; color: #7cc8ff; background: rgba(124, 200, 255, .12); border-radius: 999px; padding: 1px 8px; }
.db-balk { position: relative; height: 16px; background: #3a1018; border-radius: 6px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.db-balk i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.db-spoor { background: #f5f0e8; opacity: .55; transition: width .5s ease-in; }
.db-vul { background: linear-gradient(180deg, #7fe08f, #3fae5a); transition: width .18s ease-out; }
.db-vul[data-kleur=half] { background: linear-gradient(180deg, #ffd166, #e09a20); } .db-vul[data-kleur=laag] { background: linear-gradient(180deg, #ff7a6a, #c8352a); }
.db-hp { position: absolute; inset: 0; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000, 0 0 3px #000; font-variant-numeric: tabular-nums; }
#xpteller { display: flex; flex-direction: column; align-items: center; gap: 4px; }
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.xt-rij { position: relative; display: flex; align-items: center; gap: 8px; background: rgba(11, 10, 16, .78); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 12px 3px 3px; animation: var(--animation-fade-in); animation-duration: .25s; transition: opacity .4s; }
.xt-rij.weg { opacity: 0; }
.xt-ring { --p: 0%; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(closest-side, #15121e 72%, transparent 74% 100%), conic-gradient(#f6c453 var(--p), rgba(255, 255, 255, .14) 0); transition: --p .7s ease-out; }
.xt-ring.reset { transition: none; }
.xt-tekst { display: flex; flex-direction: column; line-height: 1.1; } .xt-tekst b { font-size: .84rem; color: var(--fg); } .xt-tekst small { font-size: .7rem; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.xt-plus { position: absolute; right: -6px; top: -2px; transform: translateX(100%); font-weight: 900; color: #9be7a6; text-shadow: 0 1px 2px #000; white-space: nowrap; animation: xtop 1.5s ease-out forwards; }
@keyframes xtop { 0% { opacity: 0; transform: translate(100%, 6px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(100%, -22px); } }
.xt-rij.omhoog { border-color: var(--gold); box-shadow: 0 0 14px rgba(246, 196, 83, .55); }
.xt-rij.omhoog .xt-ring { animation: gs-hartslag .9s ease 2; }
@media (max-width: 760px), (max-height: 520px) { #bovenhud { top: calc(6px + env(safe-area-inset-top)); width: min(300px, calc(100vw - 150px)); left: 8px; transform: none; align-items: flex-start; } }
#xpdrops { position: fixed; left: 50%; bottom: 128px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.xpdrop { font-weight: 700; font-size: .92rem; color: #fff; background: rgba(11, 10, 16, .72); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 12px; animation: xpup 1.6s ease-out forwards; }
@keyframes xpup { from { opacity: 1; transform: translateY(8px); } 70% { opacity: 1; } to { opacity: 0; transform: translateY(-20px); } }

#side { position: fixed; right: 14px; bottom: 14px; width: 336px; max-height: calc(100vh - 64px); display: flex; flex-direction: column; overflow: hidden; }
#tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; padding: 6px 5px 0; border-bottom: 1px solid var(--line-2); background: rgba(0, 0, 0, .18); }
#tabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .64rem; letter-spacing: -.01em; font-weight: 600; background: transparent; border: 0; border-radius: var(--r-sm) var(--r-sm) 0 0;
  padding: 6px 0 7px; cursor: pointer; color: var(--fg-3); transition: color .15s, background .15s; }
#tabs button .pix { opacity: .7; filter: saturate(.6); transition: opacity .15s, filter .15s; }
#tabs button:hover { color: var(--fg); background: rgba(255, 255, 255, .04); }
#tabs button:hover .pix { opacity: 1; filter: none; }
#tabs button[aria-selected="true"] { color: var(--gold); background: var(--s2); }
#tabs button[aria-selected="true"] .pix { opacity: 1; filter: none; }
#tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 0; height: 2px; border-radius: 2px; background: var(--gold); }
.tab { padding: 12px; overflow-y: auto; }
.tab > h3:first-child { margin-top: 2px; }
.tab:not([hidden]) { animation: var(--animation-fade-in) both; animation-duration: .2s; opacity: 0; }

.invgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slot { position: relative; aspect-ratio: 1; background: linear-gradient(180deg, var(--s2), #1a1622); border: 1px solid var(--line-2); border-radius: var(--r-sm); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: border-color .12s, background .12s, transform .12s var(--ease-out-3); }
.slot:hover { border-color: var(--gold); background: linear-gradient(180deg, var(--s3), var(--s2)); }
.slot:active { transform: scale(.96); }
.slot.empty { cursor: default; background: rgba(0, 0, 0, .22); border-color: var(--line); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .3); }
.slot.empty:hover { border-color: var(--line); background: rgba(0, 0, 0, .22); }
.slot .n { position: absolute; left: 5px; top: 3px; font-weight: 800; font-size: .74rem; color: #ffe47a; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.slot .lbl { position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font-size: .64rem; font-weight: 600; color: var(--fg-3); letter-spacing: .02em; }
.slot .ghost { opacity: .16; filter: grayscale(1); }

/* uitrusting als poppetje: hoofd boven, wapen - lichaam - schild in het midden, pijlen rechtsboven */
.equip { display: grid; grid-template-columns: repeat(3, 64px); grid-template-areas: "hals hoofd pijlen" "wapen lichaam schild" "handen benen ring"; justify-content: center; gap: 6px 10px; padding: 2px 0; }
.equip .slot { flex-direction: column; padding-bottom: 13px; }
.bonus { display: grid; grid-template-columns: 1fr auto; gap: 1px; font-size: .9rem; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.bonus span { background: var(--s1); padding: 5px 10px; }
.bonus span:nth-child(even) { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--good); }
.bonus span.zero { color: var(--fg-3); }
.bonus.monsters span:nth-child(even) { font-weight: 700; }
.sfeer { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px 12px; margin-bottom: 4px; }
.sfeer b { font-weight: 800; color: var(--gold); font-size: 1.1rem; }
.sfeer span { color: var(--fg-2); font-size: .86rem; }
.sfeerbar { grid-column: 1 / -1; height: 6px; background: rgba(0, 0, 0, .45); border-radius: 6px; overflow: hidden; }
.sfeerbar i { display: block; height: 100%; background: linear-gradient(90deg, #86dccb, #f6c453); border-radius: inherit; }
.legend { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--fg-2); }
.legend > div { display: flex; align-items: center; gap: 9px; }
.legend .dot { width: 12px; height: 12px; border-radius: 4px; flex: none; box-shadow: 0 0 0 2px rgba(0, 0, 0, .4); }
.stijl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stijl button { font-weight: 700; font-size: .85rem; background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 4px; cursor: pointer; transition: border-color .15s, background .15s; }
.stijl button:hover { border-color: var(--line-3); background: var(--s3); }
.stijl button small { display: block; color: var(--fg-3); font-weight: 500; font-size: .72rem; margin-top: 2px; line-height: 1.25; }
.stijl button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.stijl button[aria-pressed="true"] small { color: var(--fg-2); }

/* skills-tab: actieve skills als rijen, de rest als kleine tegels */
.skhead { display: flex; gap: 6px; margin-bottom: 10px; }
.skhead .chip { flex: 1; justify-content: center; padding: 5px 8px; }
.skhead .chip b { color: var(--fg); font-weight: 800; }
.sklist { display: flex; flex-direction: column; gap: 5px; }
.skrow { display: grid; grid-template-columns: 34px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 5px; align-items: center; text-align: left;
  background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 7px 10px 8px 7px; cursor: pointer; transition: border-color .12s, background .12s; }
.skrow:hover { border-color: var(--gold); background: var(--s3); }
.skrow .pix { grid-row: 1 / 3; width: 34px; height: 34px; background: rgba(0, 0, 0, .3); border-radius: var(--r-xs); }
.skrow .skn { font-weight: 700; font-size: .93rem; line-height: 1.2; }
.skrow .skn small { display: block; font-weight: 500; font-size: .74rem; color: var(--fg-3); font-variant-numeric: tabular-nums; margin-top: 1px; }
.skrow .skl { font-weight: 800; font-size: 1.4rem; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.skrow .bar { grid-column: 2 / 4; height: 5px; background: rgba(0, 0, 0, .45); border-radius: 5px; overflow: hidden; }
.skrow .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: inherit; }
.sksoon { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.skso { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; padding: 0; }
.skso .pix:first-child { opacity: .5; filter: grayscale(.9); }
.skso .lock { position: absolute; right: 2px; bottom: 2px; opacity: .85; }
.skso:hover { border-color: var(--line-3); }
.skso:hover .pix:first-child { opacity: .7; filter: grayscale(.4); }

.check { display: flex; gap: 9px; align-items: center; margin: 12px 0; cursor: pointer; font-size: .92rem; color: var(--fg-2); }
.check input { width: 17px; height: 17px; accent-color: var(--gold); margin: 0; }
.range { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 10px; margin: 8px 0; font-weight: 600; font-size: .9rem; color: var(--fg-2); }
.range input { padding: 0; accent-color: var(--gold); border: 0; background: none; }
.keys { list-style: none; margin: 0 0 14px; padding: 0; color: var(--fg-2); display: flex; flex-direction: column; gap: 7px; font-size: .88rem; }
.keys li { display: flex; align-items: center; gap: 9px; }
.keys kbd { min-width: 82px; }

#chat { position: fixed; left: 14px; bottom: 14px; width: min(440px, calc(50vw - 240px)); display: flex; flex-direction: column; padding: 6px; }
#chatlog { max-height: 190px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 6px 8px 8px; font-size: .9rem; line-height: 1.45; color: var(--fg-2); }
#chatlog > div { animation: var(--animation-slide-in-up), var(--animation-fade-in); animation-duration: .25s; }
#chatlog .goud { color: var(--gold); } #chatlog .rood { color: var(--bad); } #chatlog .sys { color: var(--blue); }
#chatlog b { color: #8ee6d4; font-weight: 700; }
#chatin { background: rgba(0, 0, 0, .35); border-color: var(--line); border-radius: var(--r-sm); font-size: .92rem; }

#placebar { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); background: var(--glass); border: 1px solid var(--gold); border-radius: var(--r-md); padding: 10px 16px; font-size: .95rem; box-shadow: var(--shadow); }
#ctxmenu { position: fixed; min-width: 190px; background: var(--glass); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow); z-index: 30; display: flex; flex-direction: column; padding: 5px; animation: pop .14s var(--ease-out-3); transform-origin: top left; backdrop-filter: blur(6px); }
#ctxmenu .title { font-weight: 700; color: var(--gold); padding: 6px 10px 6px; font-size: .88rem; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
#ctxmenu .title.item { display: flex; align-items: center; gap: 8px; padding: 5px 10px 7px 6px; font-size: .92rem; }
#ctxmenu .title.item canvas { flex: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
#ctxmenu .title.item .tt { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; color: var(--fg); }
#ctxmenu .title.item .tt small { font-size: .76rem; font-weight: 700; }
#ctxmenu button { text-align: left; background: none; border: 0; padding: 7px 10px; cursor: pointer; border-radius: var(--r-xs); font-size: .92rem; font-weight: 500; }
#ctxmenu button:hover, #ctxmenu button:focus-visible { background: var(--s3); color: var(--gold); }
#ctxmenu button .act { color: var(--fg); } #ctxmenu button .tgt { font-weight: 700; color: var(--gold); }
#ctxmenu button:hover .act { color: var(--gold); }
#ctxmenu.ask { min-width: 230px; }
#ctxmenu .askrow { display: flex; gap: 6px; padding: 4px 4px 2px; }
#ctxmenu .askrow input { flex: 1; min-width: 0; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
#ctxmenu .askrow .btn { padding: 6px 14px; }
#ctxmenu .askmax { color: var(--fg-3); font-size: .74rem; padding: 4px 6px 2px; }

/* naam van een voorwerp bij de muis (rugzak, uitrusting, bank, winkel) */
#itemtip { position: fixed; z-index: 35; pointer-events: none; max-width: 260px; display: flex; flex-direction: column; gap: 2px; padding: 7px 11px 8px; background: rgba(11, 10, 16, .94); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); box-shadow: 0 8px 22px rgba(0, 0, 0, .55); font-size: .82rem; line-height: 1.3; }
#itemtip b { font-size: .95rem; text-shadow: 0 1px 0 #000; }
#itemtip span { color: var(--fg-2); } #itemtip span.ok { color: var(--good); } #itemtip span.no { color: #ff8a7a; }
#itemtip small { color: var(--fg-3); font-size: .74rem; }

/* ------------------------------------------------ vensters */
#modal { position: fixed; inset: 0; background: rgba(8, 7, 12, .66); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 20px; animation: var(--animation-fade-in) both; animation-duration: .2s; opacity: 0; }
.modal-box { width: min(760px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--glass); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06); animation: pop .28s var(--ease-elastic-out-2); overflow: hidden; }
.modal-box header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 13px 20px; border-bottom: 1px solid var(--line-2); background: rgba(0, 0, 0, .15); }
.modal-box h2 { margin: 0; font-family: var(--display); font-weight: 700; color: var(--gold); font-size: 1.5rem; line-height: 1.1; letter-spacing: .01em; }
#modal-x { display: grid; place-items: center; width: 34px; height: 34px; background: var(--s3); border: 1px solid var(--line-2); border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--fg-2); transition: background .15s, color .15s; }
#modal-x:hover { background: var(--s4); color: var(--fg); }
#modal-body { padding: 18px 20px 20px; overflow-y: auto; }

.rooms { display: flex; flex-direction: column; gap: 6px; }
.room { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px 12px; }
.room .rn { font-weight: 700; font-size: 1rem; }
.room .rm { color: var(--fg-3); font-size: .85rem; }
.room .vis { font-weight: 700; color: var(--good); white-space: nowrap; font-size: .88rem; }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.size { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px 8px; cursor: pointer; text-align: center; transition: transform .15s var(--ease-out-3), border-color .15s, background .15s; }
.size:hover { transform: translateY(-2px); border-color: var(--line-3); }
.size[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); }
.size .sn { font-weight: 700; } .size .sd { color: var(--fg-3); font-size: .8rem; } .size .sp { font-weight: 700; color: var(--gold); font-size: .9rem; }
.size canvas { margin: 6px auto; }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.swatch { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-3); border-radius: var(--r-sm); cursor: pointer; padding: 0; overflow: hidden; background: var(--s2); transition: transform .15s var(--ease-out-3), box-shadow .15s; }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); animation: pop .3s var(--ease-elastic-out-3); }
.form { display: flex; flex-direction: column; gap: 12px; }
.form > span { font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--fg-3); margin-bottom: -4px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--fg-2); }

/* winkel met categorieën */
#modal[data-kind="winkel"] .modal-box, #modal[data-kind="skill"] .modal-box { width: min(1000px, 100%); }
#modal[data-kind="winkel"] #modal-body { padding: 0; overflow: hidden; display: flex; min-height: 0; }
.shopwrap { display: grid; grid-template-columns: 224px minmax(0, 1fr); width: 100%; min-height: 0; max-height: calc(100vh - 112px); }
.shopnav { display: flex; flex-direction: column; gap: 3px; padding: 14px 10px; border-right: 1px solid var(--line-2); background: rgba(0, 0, 0, .16); overflow-y: auto; }
.shopnav h3 { margin: 4px 8px 6px; }
.shopcat { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; font-weight: 600; font-size: .92rem; background: transparent; border: 0; border-radius: var(--r-sm); padding: 8px 10px; cursor: pointer; color: var(--fg-2); transition: color .12s, background .12s; }
.shopcat span { white-space: nowrap; }
.shopcat small { font-weight: 700; font-size: .72rem; background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 1px 8px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.shopcat:hover { color: var(--fg); background: var(--s3); }
.shopcat[aria-pressed="true"] { color: var(--gold); background: var(--gold-soft); }
.shopcat[aria-pressed="true"]::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--gold); }
.shopcat[aria-pressed="true"] small { color: var(--gold); background: rgba(246, 196, 83, .16); }
.shopcat.sell { margin-top: 10px; }
.shopnav .sep { height: 1px; background: var(--line-2); margin: 8px 6px 0; }
.shopmain { padding: 16px 18px 20px; overflow-y: auto; min-height: 0; }
.shophead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.shophead b { font-size: 1.08rem; font-weight: 700; }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
.ware { display: flex; flex-direction: column; align-items: stretch; gap: 6px; background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px; text-align: left; transition: border-color .15s, transform .15s var(--ease-out-3);
  animation: var(--animation-fade-in) both; animation-duration: .2s; opacity: 0; }
.ware:hover { border-color: var(--line-3); transform: translateY(-2px); }
.ware .wi { display: grid; place-items: center; height: 88px; border-radius: var(--r-sm); background: radial-gradient(ellipse at 50% 60%, rgba(255, 255, 255, .07), transparent 70%), rgba(0, 0, 0, .25); }
.ware .wn { font-weight: 700; font-size: .93rem; line-height: 1.25; }
.ware .ws { font-size: .8rem; color: var(--fg-3); line-height: 1.4; min-height: 1.4em; }
.ware .wr { align-self: flex-start; font-size: .74rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.ware .wr.ok { color: var(--good); background: var(--good-soft); }
.ware .wr.no { color: var(--bad); background: var(--bad-soft); }
/* prijs en knoppen: past het niet naast elkaar, dan gaan de knoppen eronder (en vallen ze nooit buiten de kaart) */
.ware { min-width: 0; }
.ware .wfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); min-width: 0; }
.ware .wfoot .buy { flex: 1 0 auto; justify-content: flex-end; flex-wrap: wrap; max-width: 100%; }
.ware .wp { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--gold); font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ware .wp small { font-weight: 500; color: var(--fg-3); font-size: .72rem; }
.ware .buy { display: flex; gap: 4px; } .ware .buy .btn { padding: 5px 11px; font-size: .82rem; }
.ware .btn.gold::after { display: none; }
.ware .btn.gold:disabled { background: var(--s3); color: var(--fg-2); border-color: var(--line-2); box-shadow: none; }
.ware.locked .wi canvas { filter: grayscale(.8) brightness(.75); }
.ware.locked .wn { color: var(--fg-2); }

/* skillpaneel */
.skillpage { display: flex; flex-direction: column; gap: 14px; }
.sk-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; background: linear-gradient(135deg, rgba(246, 196, 83, .08), transparent 60%), var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px 16px; }
.sk-icon { display: grid; place-items: center; width: 76px; height: 76px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2); border-radius: var(--r-md); }
.sk-ht { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sk-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sk-lvl { font-size: 1.9rem; font-weight: 800; color: var(--gold); line-height: 1; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.sk-lvl small { font-size: .85rem; font-weight: 600; color: var(--fg-3); margin-left: 6px; letter-spacing: 0; }
.sk-bar { height: 10px; background: rgba(0, 0, 0, .45); border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); }
.sk-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.sk-xp { color: var(--fg-2); font-size: .86rem; font-variant-numeric: tabular-nums; }
.sk-next { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px; background: var(--gold-soft); border: 1px solid rgba(246, 196, 83, .45); border-radius: var(--r-md); padding: 10px 14px 10px 10px; }
.sk-next .pix { width: 40px; height: 40px; background: rgba(0, 0, 0, .3); border-radius: var(--r-sm); }
.sk-next span { display: block; color: var(--fg-3); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.sk-next b { display: block; color: var(--gold); font-size: 1.02rem; font-weight: 700; }
.sk-next small { color: var(--fg-2); font-size: .85rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.sk-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sk-box { background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px 16px; }
.sk-box h3 { margin: 0 0 10px; color: var(--gold); }
.sk-box p, .sk-box ul { margin: 0; line-height: 1.6; color: var(--fg-2); font-size: .93rem; }
.sk-box ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sk-box li { position: relative; padding-left: 16px; }
.sk-box li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.sk-spots { display: flex; flex-direction: column; gap: 6px; }
.sk-spot { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 12px 6px 6px; }
.sk-spot.best { border-color: var(--gold); background: var(--gold-soft); }
.sk-spot .pix { width: 48px; height: 42px; background: rgba(0, 0, 0, .25); border-radius: var(--r-xs); }
.sk-spot b { display: block; font-weight: 700; font-size: .93rem; } .sk-spot span { color: var(--fg-3); font-size: .82rem; }
.sk-dif { font-weight: 700; font-size: .74rem; border-radius: 999px; padding: 3px 10px; white-space: nowrap; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px currentColor; }
.sk-spot.best .sk-dif { background: var(--gold); color: var(--gold-ink) !important; box-shadow: none; }
.sk-timeline { position: relative; display: flex; flex-direction: column; gap: 6px; }
.sk-timeline::before { content: ''; position: absolute; left: 21px; top: 14px; bottom: 14px; width: 2px; background: var(--line-2); border-radius: 2px; }
.sk-u { position: relative; display: grid; grid-template-columns: 44px 44px 1fr auto auto; gap: 12px; align-items: center; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 12px 6px 0; }
.sk-u .pix { width: 44px; height: 44px; background: rgba(0, 0, 0, .25); border-radius: var(--r-xs); }
.sk-u:not(.got) .pix canvas { filter: grayscale(.55) brightness(.8); }
.sk-ul { position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; font-size: .86rem; font-variant-numeric: tabular-nums;
  background: var(--s3); color: var(--fg-2); box-shadow: 0 0 0 3px var(--s1), inset 0 0 0 1px var(--line-3); }
.sk-u.got { background: var(--s2); }
.sk-u.got .sk-ul { background: var(--good); color: #10301a; box-shadow: 0 0 0 3px var(--s2); }
.sk-u.next { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 1px rgba(246, 196, 83, .25), 0 6px 18px rgba(246, 196, 83, .08); }
.sk-u.next .sk-ul { background: var(--gold); color: var(--gold-ink); box-shadow: 0 0 0 3px #2a2418, 0 0 14px rgba(246, 196, 83, .5); }
.sk-u.next .pix canvas { filter: none; }
.sk-ut { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.sk-ut b { font-weight: 700; font-size: .95rem; } .sk-ut span { color: var(--fg-3); font-size: .83rem; }
.sk-u.got .sk-ut span { color: var(--fg-2); }
.sk-us { font-size: .82rem; font-weight: 600; color: var(--fg-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sk-u.got .sk-us { color: var(--good); } .sk-u.next .sk-us { color: var(--gold); }
.sk-ub { font-weight: 700; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--fg-3); border-radius: 999px; padding: 3px 9px; white-space: nowrap; background: rgba(255, 255, 255, .05); }
.sk-ub.t-vaardigheid { color: #c8a6ff; background: rgba(200, 166, 255, .1); }
.sk-ub.t-wapen, .sk-ub.t-munitie { color: #ffb38a; background: rgba(255, 179, 138, .1); }
.sk-ub.t-pantser { color: #9cc7ff; background: rgba(156, 199, 255, .1); }
.sk-ub.t-meubel { color: #8ee6d4; background: rgba(142, 230, 212, .1); }
.sk-ub.t-drankje, .sk-ub.t-levenspunten { color: #ff9aa8; background: rgba(255, 154, 168, .1); }
.sk-filt { margin: -2px 0 10px; flex-wrap: wrap; }
.sk-filt button { font-size: .8rem; padding: 5px 10px; }

/* ------------------------------------------------ 0.5: skills-tab met 15 skills */
.skgroups h3 { margin: 10px 0 6px; }
.skgroups h3:first-child { margin-top: 0; }
.skgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.sktile { position: relative; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 6px; background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 5px 8px 9px 5px; cursor: pointer; transition: border-color .12s, background .12s; }
.sktile:hover { border-color: var(--gold); background: var(--s3); }
.sktile .pix { width: 30px; height: 30px; }
.sktile .skl { font-weight: 800; font-size: 1.15rem; color: var(--gold); text-align: right; font-variant-numeric: tabular-nums; line-height: 1; }
.sktile .skl .boost { display: block; font-size: .66rem; color: var(--good); font-weight: 800; }
.sktile .bar { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 3px; background: rgba(0, 0, 0, .45); border-radius: 3px; overflow: hidden; }
.sktile .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }

/* magie: spreukenboek */
.spellhead { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.runebar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.runebar .chip { padding: 2px 8px 2px 4px; font-size: .8rem; }
.spellgrid { display: flex; flex-direction: column; gap: 4px; }
.spell { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; text-align: left; background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 5px 8px 5px 5px; cursor: pointer; transition: border-color .12s, background .12s; }
.spell:hover:not(:disabled) { border-color: var(--line-3); background: var(--s3); }
.spell.on { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 1px rgba(246, 196, 83, .3); }
.spell.locked { opacity: .5; cursor: not-allowed; }
.spic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-xs); background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--el) 35%, transparent), rgba(0, 0, 0, .3) 70%); }
.spt { display: flex; flex-direction: column; min-width: 0; }
.spt b { font-size: .86rem; font-weight: 700; } .spt small { font-size: .72rem; color: var(--fg-3); }
.spc { display: flex; gap: 4px; font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.spc span { display: inline-flex; align-items: center; gap: 1px; }
.spc.no { color: var(--bad); }

/* gebied-tab */
.areacard { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: linear-gradient(135deg, rgba(246, 196, 83, .08), transparent 60%), var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px 12px; }
.areacard b { font-size: 1.05rem; } .areacard p { margin: 0; color: var(--fg-2); font-size: .86rem; line-height: 1.5; }
.arealist { display: flex; flex-direction: column; gap: 3px; }
.arow { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; text-align: left; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 3px 8px 3px 3px; font-size: .86rem; }
button.arow { cursor: pointer; } button.arow:hover { border-color: var(--line-3); }
.arow small { font-weight: 700; font-size: .76rem; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.arow.dim { opacity: .55; }

body.buiten #side { max-height: calc(100vh - 266px); }
@media (max-height: 640px) { #minimap { display: none; } body.buiten #side { max-height: calc(100vh - 64px); } }
/* minikaart rechtsboven */
/* minikaart rechtsboven: rond, met een gouden randje (op het canvas getekend) en eronder naam, levels en knoppen */
#minimap { position: fixed; right: 14px; top: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 196px; }
#minicv { display: block; border-radius: 50%; cursor: crosshair; image-rendering: pixelated; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }
.minifoot { display: flex; align-items: center; gap: 4px; width: 100%; padding: 4px 4px 4px 10px; border-radius: 999px; }
.minitekst { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
#minizone { font-size: .76rem; font-weight: 800; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#minilvl { font-size: .68rem; font-weight: 700; color: var(--fg-3); }
.minibtn { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: var(--s2); color: var(--fg-2); font-weight: 800; line-height: 1; cursor: pointer; padding: 0; }
.minibtn:hover { color: var(--gold); border-color: var(--gold); }

/* rugzak: doel kiezen voor een spreuk, grote getallen */
.slot.target { border-color: var(--blue); box-shadow: 0 0 0 1px rgba(143, 180, 255, .45), inset 0 2px 6px rgba(0, 0, 0, .35); }
.slot .n.big { color: #8ef0a8; }
.xpdrop { display: inline-flex; align-items: center; gap: 6px; }

/* werkplaats */
#modal[data-kind="werkplaats"] .modal-box, #modal[data-kind="bank"] .modal-box, #modal[data-kind="monster"] .modal-box { width: min(860px, 100%); }
#modal[data-kind="wereldkaart"] .modal-box { width: min(1180px, 100%); }
.wspage { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.wshead { display: flex; align-items: center; gap: 10px; font-weight: 700; flex-wrap: wrap; }
.wshead small { flex-basis: 100%; color: var(--fg-3); font-weight: 500; font-size: .84rem; }
.wslist { display: flex; flex-direction: column; gap: 5px; max-height: calc(100vh - 230px); overflow-y: auto; padding-right: 4px; }
.wslist h3 { margin: 10px 0 2px; }
.wsrow { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 12px; align-items: center; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 10px 6px 6px; }
.wsrow.ready { background: var(--s2); border-color: var(--line-2); }
.wsrow.locked { opacity: .55; }
.wsic { position: relative; display: grid; place-items: center; width: 44px; height: 44px; background: rgba(0, 0, 0, .25); border-radius: var(--r-xs); }
.wsic .n { position: absolute; right: 2px; bottom: 0; font-weight: 800; font-size: .72rem; color: #ffe47a; text-shadow: 0 1px 0 #000; }
.wst b { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 3px; }
.wsin { display: flex; flex-wrap: wrap; gap: 4px; }
.wsing { display: inline-flex; align-items: center; gap: 3px; font-size: .74rem; font-weight: 700; color: var(--good); background: rgba(0, 0, 0, .25); border-radius: 999px; padding: 1px 7px 1px 2px; font-variant-numeric: tabular-nums; }
.wsing.no { color: var(--bad); }
.wsinfo { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.wsinfo small { font-size: .72rem; color: var(--fg-3); white-space: nowrap; }
.wsinfo small.warn { color: var(--warn, #ffb35c); } .wsinfo small.okc { color: var(--good); }
.wsbtn { display: flex; gap: 4px; }
.wsbtn .btn.gold::after { display: none; }

/* bank */
.bankpage { display: flex; flex-direction: column; gap: 10px; }
.bankhead { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bankhead input { flex: 1; min-width: 160px; }
.bankhead small { color: var(--fg-3); font-size: .8rem; }
.bankgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); grid-auto-rows: max-content; align-content: start; gap: 6px; max-height: calc(100vh - 350px); min-height: 260px; overflow-y: auto; padding: 2px; }
.bankgrid .empty-state { grid-column: 1 / -1; }
#modal[data-kind="bank"] .modal-box { width: min(1180px, 100%); }
.bankcols { display: grid; grid-template-columns: 1fr 232px; gap: 14px; min-height: 0; }
.bankinv { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); border-radius: var(--r-md); align-self: start; }
.bankinv h3 { margin: 0 0 2px; font-size: .86rem; color: var(--fg-2); }
.bankinv .invgrid { gap: 5px; }
.bankinv small { color: var(--fg-3); font-size: .76rem; text-align: right; }
.bankfoot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 2px; }
.bankfoot > span { color: var(--fg-2); font-size: .86rem; font-weight: 600; margin-right: 2px; }
.bankfoot .qty { min-width: 46px; }
.bankfoot .qty[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: var(--s3); box-shadow: inset 0 0 0 1px var(--gold); }
.bankfoot .hint { margin: 0 0 0 auto; color: var(--fg-3); font-size: .78rem; }
@media (max-width: 720px) { .bankcols { grid-template-columns: 1fr; } .bankinv { order: -1; } }
/* bank sinds 1.6: tabbladen, namen in de vakjes, een lijst, hoe vol en hoeveel waard, lege plekken.
   Het venster heeft een vaste hoogte: alleen de bank zelf scrolt, de knoppen blijven altijd in beeld. */
#modal[data-kind="bank"] .modal-box { height: min(920px, calc(100vh - 40px)); }
#modal[data-kind="bank"] #modal-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding: 14px 18px 14px; }
#modal[data-kind="bank"] .bankpage { flex: 1; min-height: 0; }
#modal[data-kind="bank"] .bankcols { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
#modal[data-kind="bank"] .bankgrid { max-height: none; min-height: 0; }
#modal[data-kind="bank"] .bankinv { max-height: 100%; overflow-y: auto; }
.banktabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 0 6px; border-bottom: 1px solid var(--line); }
.banktab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px 4px 6px; background: var(--s1); color: var(--fg-2); border: 1px solid var(--line); border-radius: var(--r-sm) var(--r-sm) 4px 4px; cursor: pointer; font: inherit; font-size: .84rem; font-weight: 600; transition: border-color .12s, background .12s; }
.banktab:hover { border-color: var(--line-2); background: var(--s2); color: var(--fg-1, #fff); }
.banktab[aria-selected="true"] { border-color: var(--gold); color: var(--gold); background: var(--s3); box-shadow: inset 0 -2px 0 var(--gold); }
.banktab .tn { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banktab small { color: var(--fg-3); font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.banktab.plus { padding: 4px 12px; color: var(--gold); border-style: dashed; font-size: .95rem; }
.banktab.sleepdoel { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; background: var(--s3); }
.bankkeus { display: inline-flex; gap: 0; }
.bankkeus .btn { border-radius: 0; min-width: 0; }
.bankkeus .btn:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); } .bankkeus .btn:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-left: -1px; }
.bankkeus .qty[aria-pressed="true"], .bankbrief .qty[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: var(--s3); box-shadow: inset 0 0 0 1px var(--gold); }
.bankvol { display: grid; grid-template-columns: auto 90px; grid-template-rows: auto auto; column-gap: 8px; align-items: center; margin-left: auto; font-size: .8rem; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.bankvol > span { font-weight: 700; }
.bankvol > i { height: 6px; border-radius: 99px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); position: relative; overflow: hidden; }
.bankvol > i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: linear-gradient(90deg, #6fbf73, #a6d96a); }
.bankvol.bijnavol > i::after { background: linear-gradient(90deg, #e0a030, #e05040); }
.bankvol > small { grid-column: 1 / -1; color: var(--fg-3); font-size: .76rem; }
.bankvol > small b { color: #ffe47a; font-weight: 700; }
.bankzoekbalk { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--fg-2); }
.banksectie { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; margin: 6px 0 0; padding: 3px 6px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--gold); font: inherit; font-size: .84rem; font-weight: 700; text-align: left; cursor: pointer; }
.banksectie:first-child { margin-top: 0; }
.banksectie small { color: var(--fg-3); font-weight: 600; font-size: .74rem; }
.banksectie.sleepdoel { background: var(--s3); box-shadow: inset 0 0 0 2px var(--gold); border-radius: var(--r-xs); }
.bankgrid .bankvak { aspect-ratio: auto; min-height: 92px; flex-direction: column; justify-content: flex-start; gap: 3px; padding: 15px 3px 5px; }
.bankvak .nm { font-size: .66rem; line-height: 1.15; color: var(--fg-2); text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; max-width: 100%; }
.bankvak .n.mil { color: #bfe6ff; }
.bankvak.leeg canvas { opacity: .22; filter: grayscale(1); }
.bankvak.leeg .n { color: var(--fg-3); }
.bankvak.leeg .nm { color: var(--fg-3); font-style: italic; }
.bankgrid.lijst { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px; }
.bankgrid .bankvak.rij { aspect-ratio: auto; min-height: 0; height: 42px; flex-direction: row; justify-content: flex-start; gap: 8px; padding: 3px 10px 3px 6px; }
.bankvak.rij .nm { flex: 1; min-width: 0; text-align: left; font-size: .82rem; -webkit-line-clamp: 1; color: var(--fg-1, #ece8f4); }
.bankvak.rij .n { position: static; font-size: .8rem; text-shadow: none; }
.bankvak.rij .w { min-width: 42px; text-align: right; font-size: .72rem; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.bankinvknop { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.bankinvknop .btn { width: 100%; }
.bankinv small.bankinvtab { text-align: left; color: var(--gold); }
.bankbrief .tussen { margin-left: 12px; }

/* koets */
.coachgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.coach { display: flex; flex-direction: column; gap: 2px; text-align: left; background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px 12px; cursor: pointer; transition: border-color .12s, transform .12s var(--ease-out-3); }
.coach:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-2px); }
.coach b { font-size: 1rem; } .coach span { color: var(--fg-3); font-size: .82rem; } .coach small { color: var(--gold); font-weight: 700; margin-top: 4px; }
.coach.locked small { color: var(--fg-3); }
.coach:disabled { opacity: .5; cursor: not-allowed; }

/* planten */
.seedlist { display: flex; flex-direction: column; gap: 5px; }
.seed { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; text-align: left; background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 6px 10px 6px 6px; cursor: pointer; }
.seed:hover:not(:disabled) { border-color: var(--gold); }
.seed:disabled { opacity: .5; cursor: not-allowed; }

/* monster: buit en info */
.monpage { display: flex; flex-direction: column; gap: 10px; }
.monhead { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px 14px; }
.monport { display: grid; place-items: center; width: 112px; height: 112px; background: radial-gradient(ellipse at 50% 70%, rgba(255, 255, 255, .08), transparent 70%), rgba(0, 0, 0, .3); border-radius: var(--r-md); }
.monht { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.montitle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .montitle b { font-size: 1.2rem; }
.monht p { margin: 0; color: var(--fg-2); font-size: .9rem; }
.monstats { display: flex; flex-wrap: wrap; gap: 5px; }
.monstats .chip { gap: 5px; padding: 3px 10px; } .monstats .chip small { color: var(--fg-3); font-weight: 600; } .monstats .chip b { color: var(--fg); }
.monstats .chip.dim { color: var(--fg-3); }
/* party (sinds 1.4) */
.partyrij { display: grid; grid-template-columns: 1fr 90px; gap: 4px 8px; align-items: center; } .partyrij small { grid-column: 1 / -1; color: var(--fg-3); }
.partyrij .btn { justify-self: start; }
.partyhp { position: relative; height: 14px; background: #3a1018; border-radius: 5px; overflow: hidden; }
.partyhp i { position: absolute; inset: 0 auto 0 0; background: #3fae5a; } .partyhp i[data-kleur=half] { background: #e09a20; } .partyhp i[data-kleur=laag] { background: #c8352a; }
.partyhp span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .68rem; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; }
.partyverdeel { margin-top: 8px; }
#chatlog .k-party, #chatlog .party { color: #7cc8ff; }
/* soorten in de werkplaats (sinds 1.3) */
.wsgroepen { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.wsgroep { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; background: var(--s2); border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; position: relative; }
.wsgroep:hover { border-color: var(--line-2); color: var(--fg); }
.wsgroep.aan { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.wsgroep.dicht { opacity: .5; }
.wsgroep canvas { width: 22px; height: 22px; image-rendering: pixelated; }
.wsgroep .n { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #3f9a52; color: #fff; font-size: .72rem; display: inline-grid; place-items: center; }
/* wat een eindbaas doet (sinds 1.3) */
.monmech { margin: 0 0 12px; padding: 8px 12px 8px 26px; background: rgba(255, 106, 74, .08); border: 1px solid rgba(255, 106, 74, .3); border-radius: var(--r-sm); display: grid; gap: 5px; color: var(--fg-2); font-size: .86rem; }
.monmech b { color: #ffb08f; }
/* zwakheden en sterktes (sinds 0.9.7) */
.monzwak h3 { margin: 2px 0 6px; }
.mzgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.mzk { background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 9px 12px; display: flex; flex-direction: column; gap: 4px; }
.mzk.breed { grid-column: 1 / -1; border-color: rgba(255, 179, 71, .45); }
.mzk b { font-size: .92rem; } .mzk p { margin: 0; font-size: .84rem; color: var(--fg-2); line-height: 1.4; }
.mzspr { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.mzspr .chip { font-size: .74rem; padding: 2px 8px; } .mzspr .chip.kan { color: var(--good); } .mzspr .chip.dim { color: var(--fg-3); }
.droplist { display: flex; flex-direction: column; gap: 4px; }
.drop { display: grid; grid-template-columns: 34px 1fr auto 64px 18px 26px; gap: 10px; align-items: center; background: var(--s1); border: 1px solid var(--line); border-left: 3px solid var(--z); border-radius: var(--r-xs); padding: 4px 10px 4px 4px; }
.drop canvas { margin: 0 auto; }
.drop.got { background: var(--s2); }
.dropt b { display: block; font-size: .9rem; font-weight: 700; } .dropt small { color: var(--fg-3); font-size: .78rem; font-variant-numeric: tabular-nums; }
.dropz { color: var(--z); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.dropk { text-align: right; font-weight: 800; font-size: .86rem; font-variant-numeric: tabular-nums; }
.dropf { color: var(--good); font-weight: 800; }
/* markeren: de naam van deze buit altijd op de grond tonen (sinds 1.0.2) */
.dropster { font: inherit; font-size: 1.05rem; line-height: 1; background: none; border: 0; color: var(--fg-3); cursor: pointer; padding: 2px; border-radius: var(--r-xs); }
.dropster:hover { color: #ffd23a; background: var(--s3); } .dropster.aan { color: #ffd23a; }
/* het buitfilter */
#modal[data-kind="buitfilter"] .modal-box { width: min(620px, 100%); }
.bfpage { display: flex; flex-direction: column; gap: 12px; }
.bfpage > .hint { margin: 0; }
.bfrij h3, .bflijst h3 { margin: 0 0 6px; }
.bfrij .seg { flex-wrap: wrap; } .bfrij .seg button { flex: 1 1 auto; }
.bflijst { background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.bfchips { display: flex; flex-wrap: wrap; gap: 5px; } .bfchips .hint { margin: 0; }
.bfchip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .82rem; font-weight: 600; color: var(--fg); background: var(--s2); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px 3px 4px; cursor: pointer; }
.bfchip b { color: var(--fg-3); margin-left: 2px; } .bfchip:hover { border-color: var(--bad); } .bfchip:hover b { color: var(--bad); }
.bfzoek { display: flex; flex-wrap: wrap; gap: 4px; }

/* wereldkaart */
#modal[data-kind="wereldkaart"] #modal-body { padding: 14px 16px 16px; }
.wmpage { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.wmmain { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wmhint { margin: 0; font-size: .8rem; }
.wmholder { position: relative; }
.wmwrap { position: relative; display: flex; overflow: hidden; border-radius: var(--r-md); background: radial-gradient(ellipse at 50% 40%, #2565a4, #143e6c 80%); box-shadow: 0 0 0 1px var(--line-2), 0 10px 30px rgba(0, 0, 0, .5), inset 0 0 40px rgba(0, 0, 0, .35); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; }
.wmpage.kerker .wmwrap { background: #07050b; }
.wmwrap:focus-visible { box-shadow: 0 0 0 2px var(--gold), 0 10px 30px rgba(0, 0, 0, .5); }
.wmwrap.pakt { cursor: grabbing; }
.wmdoek { position: relative; flex: none; margin: auto; }
.wmcv { display: block; image-rendering: pixelated; }
.wmpins { position: absolute; inset: 0; pointer-events: none; }
.wmbar { position: absolute; right: 10px; top: 10px; display: flex; gap: 4px; }
.wmbar .btn { background: rgba(20, 16, 30, .86); backdrop-filter: blur(4px); min-width: 34px; }
.wmbar .btn:disabled { opacity: .4; }
/* kloppende ringen op de kaart */
.wmpin { position: absolute; width: 0; height: 0; }
.wmpin i { position: absolute; left: calc(var(--d) / -2); top: calc(var(--d) / -2); width: var(--d); height: var(--d); border-radius: 50%; border: 2px solid var(--pc); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 14px var(--pc); animation: wmklop 1.6s var(--ease-out-3) infinite; }
.wmpin span { position: absolute; left: 0; top: calc(var(--d) / 2 + 4px); transform: translateX(-50%); white-space: nowrap; font: 800 11px var(--body); color: #fff; background: color-mix(in srgb, var(--pc) 70%, #0b0a10); padding: 2px 7px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.wmpin.taak { --pc: #ff5a3c; } .wmpin.zoek { --pc: #f6c453; } .wmpin.doel { --pc: #7cc8ff; }
.wmpin.ik { --pc: #ffffff; } .wmpin.ik i { animation-duration: 2.2s; border-width: 1.5px; }
@keyframes wmklop { 0% { transform: scale(.55); opacity: 1; } 80%, 100% { transform: scale(1.15); opacity: 0; } }
/* uitleg onder de muis */
.wmtip { position: absolute; z-index: 3; max-width: 270px; padding: 9px 11px; border-radius: var(--r-sm); background: rgba(14, 11, 22, .95); border: 1px solid var(--line-3); box-shadow: 0 10px 26px rgba(0, 0, 0, .55); pointer-events: none; font-size: .8rem; }
.wmtip[hidden] { display: none; }
.wtkop { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wtkop b { font-size: .92rem; } .wtlvl { font-size: .76rem; font-weight: 800; white-space: nowrap; color: var(--fg-3); }
.wmtip p { margin: 4px 0 0; color: var(--fg-2); line-height: 1.35; }
.wtmon { margin: 6px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.wtmon li { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wtmon small { font-weight: 800; } .wtmon .meer { color: var(--fg-3); grid-column: 1 / -1; }
/* zijkant */
.wmpaneel { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; padding-right: 2px; }
.wmzoek { position: relative; } .wmzoek input { width: 100%; }
.wmzoek .zoekrij { grid-template-columns: 1fr auto; } .wmzoek .zoekrij small { text-align: right; }
.wmsec { background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 4px 8px 6px; }
.wmsec summary { cursor: pointer; font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); padding: 6px 2px; }
.wmsec[open] summary { margin-bottom: 2px; }
.wmrij, .waarrij, .wmtaak { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: transparent; border: 0; border-radius: var(--r-xs); padding: 5px 6px; color: var(--fg); font: inherit; cursor: pointer; }
.wmrij:hover, .waarrij:hover, .wmtaak:hover { background: var(--s2); }
.wmrt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.wmrt b { font-size: .86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wmrt small { font-size: .74rem; color: var(--fg-3); font-weight: 600; }
.wmpil { font-size: .72rem; font-weight: 800; white-space: nowrap; }
.kico { flex: none; display: block; }
.wmtaak { background: rgba(255, 90, 60, .1); border: 1px solid rgba(255, 110, 80, .35); margin-bottom: 4px; }
.wmlagen { display: flex; flex-direction: column; gap: 2px; }
.wmlaag { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; padding: 3px 2px; cursor: pointer; }
.wmleg2 { display: flex; align-items: center; gap: 8px; font-size: .8rem; padding: 3px 2px; color: var(--fg-2); }
.wmgekozen { background: var(--gold-soft); border: 1px solid rgba(246, 196, 83, .45); border-radius: var(--r-md); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.wmgekozen[hidden], .wmdoel[hidden] { display: none; }
.wmgkop { display: flex; align-items: baseline; gap: 8px; } .wmgkop b { font-size: 1rem; color: var(--gold); } .wmgkop small { color: var(--fg-3); font-weight: 700; flex: 1; } .wmgkop .icobtn { width: 26px; height: 26px; }
.wmgekozen .hint, .wmafst { margin: 0; font-size: .8rem; } .wmafst { font-weight: 700; color: var(--fg-2); }
.wmgekozen .clanknoppen { margin: 4px 0 0; }
.wmdoel { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: #bfe3ff; background: rgba(124, 200, 255, .1); border: 1px solid rgba(124, 200, 255, .35); border-radius: var(--r-md); padding: 5px 6px 5px 10px; }
.wmdoel span { flex: 1; } .wmdoel .icobtn { width: 26px; height: 26px; }
.wmkop { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 4px 2px 6px; }
.wmkop canvas { grid-row: 1 / 3; } .wmkop b { font-size: 1.05rem; } .wmkop small { color: var(--fg-3); font-weight: 600; }
@media (max-width: 900px) {
  .wmpage { grid-template-columns: minmax(0, 1fr); }
  .wmpaneel { max-height: none !important; overflow: visible; }
}
/* winkeltje in je kamer (ui-winkel.js) */
#modal[data-kind="uitstal"] .modal-box { width: min(460px, 100%); }
.uw { display: flex; flex-direction: column; gap: 12px; }
.uw-kop { display: flex; gap: 12px; align-items: center; }
.uw-kop canvas { flex: none; }
.uw-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .uw-t b { font-size: 1.05rem; }
.uw-t small { color: var(--fg-3); font-size: .8rem; } .uw-t small.ok { color: var(--good); font-weight: 700; } .uw-t small.no { color: var(--bad); font-weight: 700; }
.uw-form { display: flex; flex-direction: column; gap: 10px; }
.uw-veld { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--fg-2); } .uw-veld input { width: 100%; }
.uw-snel { display: flex; gap: 6px; flex-wrap: wrap; }
.uw-som { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; } .uw-som.no { color: var(--bad); }
.uw-prijs { display: flex; align-items: center; gap: 6px; } .uw-prijs b { font-size: 1.4rem; color: var(--gold); font-variant-numeric: tabular-nums; } .uw-prijs span { color: var(--fg-3); font-size: .85rem; }
.uw .mkaantal input { width: 90px; }
.uw > .btn.gold { align-self: stretch; }
.rwinkel { margin-left: 8px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #1a1423; background: var(--gold); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
/* multi-gevecht: zwaardje bij de minikaart */
#minilvl.multi { color: #ff8a7a !important; }
.wmtip .wtmulti { color: #ff8a7a; font-weight: 700; }

/* Het beheerpaneel (ui-beheer.js) */
#modal[data-kind="beheer"] .modal-box { width: min(1240px, 100%); height: min(860px, calc(100vh - 40px)); }
#modal[data-kind="beheer"] #modal-body { padding: 0; overflow: hidden; display: flex; min-height: 0; flex: 1; }
.bh { display: grid; grid-template-columns: 200px minmax(0, 1fr); width: 100%; min-height: 0; }
/* menu links: wie je bent, dan de tabs in groepen met een icoontje en tellers */
.bh-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--line-2); background: rgba(0, 0, 0, .18); overflow-y: auto; }
.bh-ik { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; padding: 2px 6px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
.bh-ik b { font-size: .95rem; margin-right: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.bh-groep { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); padding: 10px 10px 3px; }
.bh-tab { position: relative; display: flex; align-items: center; gap: 9px; text-align: left; font: inherit; font-weight: 600; font-size: .9rem; background: transparent; border: 0; border-radius: var(--r-sm); padding: 7px 10px; color: var(--fg-2); cursor: pointer; text-decoration: none; }
.bh-tab .pix { flex: none; opacity: .75; } .bh-tab > span:not(.pix) { flex: 1; }
.bh-tab:hover { background: var(--s2); color: var(--fg); } .bh-tab:hover .pix { opacity: 1; }
.bh-tab[aria-pressed="true"] { background: var(--gold-soft); color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); } .bh-tab[aria-pressed="true"] .pix { opacity: 1; }
.bh-tel { font-style: normal; font-size: .68rem; font-weight: 800; border-radius: 999px; padding: 1px 7px; background: var(--s3); color: var(--fg-2); }
.bh-tel:empty { display: none; }
.bh-tel.groen { background: var(--good-soft); color: var(--good); } .bh-tel.goud { background: var(--gold); color: #1a1423; } .bh-tel.rood { background: var(--bad); color: #2a0c08; }
/* rechts: de balk bovenin (zoeken, status, je schakelaars) en de inhoud */
.bh-rechts { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.bh-top { flex: none; display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 10px 20px; border-bottom: 1px solid var(--line-2); background: rgba(0, 0, 0, .1); }
.bh-zoek { position: relative; flex: 0 1 280px; min-width: 180px; display: flex; align-items: center; }
.bh-zoek input { width: 100%; padding-left: 32px; }
.bh-zoekicoon { position: absolute; left: 11px; top: 50%; transform: translateY(-52%); color: var(--fg-3); font-size: 1.1rem; pointer-events: none; }
.bh-zoeklijst { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; background: var(--s2); border: 1px solid var(--line-3); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 4px; display: flex; flex-direction: column; gap: 1px; max-height: 340px; overflow-y: auto; }
.bh-zoeklijst[hidden] { display: none; }
.bh-zoeklijst .hint { margin: 6px 8px; }
.bh-zoekrij { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: inherit; text-align: left; background: none; border: 0; border-radius: var(--r-sm); padding: 7px 9px; color: var(--fg); cursor: pointer; }
.bh-zoekrij small { color: var(--fg-3); font-size: .74rem; white-space: nowrap; }
.bh-zoekrij:hover, .bh-zoekrij.sel { background: var(--s3); }
.bh-status { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bh-pil { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; color: var(--fg-2); background: var(--s1); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bh-pil.on::before, .bh-pil.groen::before, .bh-pil.geel::before, .bh-pil.rood::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.bh-pil.on { color: var(--good); } .bh-pil.geel::before { background: #ffd36a; } .bh-pil.rood::before { background: var(--bad); } .bh-pil.rood { color: var(--bad); }
.bh-schakels { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.bh-schakel { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 4px 10px 4px 7px; border-radius: 999px; cursor: pointer; color: var(--fg-2); background: var(--s1); border: 1px solid var(--line-2); }
.bh-schakel input { margin: 0; }
.bh-schakel.aan { color: #9fd8ff; background: rgba(124, 200, 255, .12); border-color: rgba(124, 200, 255, .45); }
.bh-main { flex: 1 1 auto; padding: 16px 20px 24px; overflow-y: auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.bh-main > * { flex-shrink: 0; }   /* anders klappen tabellen (overflow) dicht als de pagina lang is */
.bh-main h3 { margin: 8px 0 2px; }
.bh-kop { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .bh-kop h2 { margin: 0; font-family: var(--display); color: var(--gold); font-size: 1.35rem; } .bh-kop small { color: var(--fg-3); }
.bh-rang { display: inline-block; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.bh-rang.r-moderator { background: rgba(124, 200, 255, .16); color: #9fd8ff; } .bh-rang.r-beheerder { background: rgba(199, 155, 255, .18); color: #d6b8ff; } .bh-rang.r-eigenaar { background: var(--gold-soft); color: var(--gold); }
.bh-rang.r-rol { background: var(--s3); color: var(--fg-2); }   /* eigen rol (1.3): de kleur komt uit de rol (ui-beheer.js kleurBadge) */
/* tab Rollen (1.3): de vaste rangen en eigen rollen als kaartjes, en het formulier met een vinkje per recht */
.bh-rollen { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.bh-rol { background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.bh-rolkop { display: flex; align-items: center; gap: 8px; } .bh-rolkop .bh-rang { margin-left: 0; font-size: .74rem; } .bh-rolkop small { color: var(--fg-3); font-size: .74rem; }
.bh-rol .bh-chips { gap: 4px; } .bh-rolleden { color: var(--fg-3); font-size: .74rem; overflow-wrap: anywhere; }
.bh-rol .bh-knoppen .btn { padding: 4px 10px; font-size: .78rem; }
.bh-rolform input[type="color"] { flex: 0 0 46px; min-width: 0; height: 34px; padding: 2px 3px; cursor: pointer; }
.bh-rolform select { flex: 0 1 auto; } .bh-rolvb .bh-rang { margin-left: 0; font-size: .74rem; }
.bh-rolhint { width: 100%; margin: 0; font-size: .78rem; }
.bh-rolrechten { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.bh-rolrecht { display: flex; align-items: flex-start; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--s2); cursor: pointer; }
.bh-rolrecht:hover { border-color: var(--line-3); } .bh-rolrecht:has(input:checked) { border-color: rgba(246, 196, 83, .55); background: var(--gold-soft); }
.bh-rolrecht input { margin: 3px 0 0; } .bh-rolrecht span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bh-rolrecht b { font-size: .84rem; } .bh-rolrecht small { font-size: .74rem; color: var(--fg-3); line-height: 1.35; }
.bh-rolform > .bh-knoppen { width: 100%; }
.bh-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bh-stat { background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; font-variant-numeric: tabular-nums; }
.bh-stat b { font-size: 1.3rem; color: var(--fg); } .bh-stat span { font-size: .8rem; font-weight: 700; color: var(--fg-2); } .bh-stat small { font-size: .72rem; color: var(--fg-3); }
.bh-stat.klik { cursor: pointer; border-color: rgba(246, 196, 83, .5); } .bh-stat.klik:hover { background: var(--gold-soft); }
.bh-tabelwrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.bh-tabel { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.bh-tabel th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); padding: 7px 10px; background: rgba(0, 0, 0, .2); position: sticky; top: 0; }
.bh-tabel td { padding: 6px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.bh-tabel tr.klik { cursor: pointer; } .bh-tabel tr.klik:hover td { background: var(--s2); }
.bh-tabel td.leeg { color: var(--fg-3); text-align: center; padding: 14px; }
.bh-tabel .ok { color: var(--good); } .bh-tabel .no { color: var(--bad); }
.bh-naam { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; white-space: nowrap; }
.bh-mini { display: inline-flex; gap: 4px; flex-wrap: wrap; } .bh-mini .btn { padding: 3px 8px; font-size: .74rem; }
.bh-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.bh-feed { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.bh-g { display: grid; grid-template-columns: 66px 64px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 5px 10px; border-top: 1px solid var(--line); font-size: .82rem; }
.bh-g:first-child { border-top: 0; } .bh-g.klik { cursor: pointer; } .bh-g.klik:hover { background: var(--s2); }
.bh-g time { color: var(--fg-3); font-variant-numeric: tabular-nums; font-size: .76rem; }
.bh-gs { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); }
.bh-gt { overflow-wrap: anywhere; }
.g-chat .bh-gs { color: #e8e4dc; } .g-pm .bh-gs { color: #ff9be0; } .g-clan .bh-gs { color: #7fdc95; } .g-inlog .bh-gs, .g-uitlog .bh-gs { color: #9fd8ff; }
.g-markt .bh-gs, .g-ruil .bh-gs { color: var(--gold); } .g-buit .bh-gs { color: #c79bff; } .g-dood .bh-gs { color: #ff8a7a; } .g-beheer .bh-gs { color: #ffb347; }
.bh-balk { display: flex; gap: 6px; flex-wrap: wrap; } .bh-balk input { flex: 1; min-width: 160px; }
.bh-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.bh-chip { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: var(--s3, #241f33); color: var(--fg-2); white-space: nowrap; }
.bh-chip.rood { background: var(--bad-soft); color: var(--bad); } .bh-chip.geel { background: rgba(255, 211, 106, .15); color: #ffd36a; } .bh-chip.blauw { background: rgba(124, 200, 255, .15); color: #9fd8ff; }
.bh-chip.u-data { background: rgba(199, 155, 255, .18); color: #d6b8ff; } .bh-chip.u-logica { background: rgba(124, 200, 255, .15); color: #9fd8ff; } .bh-chip.u-wereld { background: rgba(127, 220, 149, .15); color: #7fdc95; }
.bh-chip.u-clients { background: var(--gold-soft); color: var(--gold); } .bh-chip.u-herstart { background: var(--bad-soft); color: var(--bad); }
.bh-spkop { display: flex; gap: 14px; align-items: center; }
.bh-spinfo { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .bh-spinfo p { margin: 0; color: var(--fg-2); } .bh-spinfo small { color: var(--fg-3); }
.bh-spnaam { display: flex; align-items: center; gap: 8px; font-size: 1.35rem; font-weight: 800; }
.bh-hp { position: relative; width: 220px; height: 14px; border-radius: 999px; background: #3a1620; overflow: hidden; }
.bh-hp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #d8424e, #ff6a5a); }
.bh-hp span { position: relative; display: block; text-align: center; font-size: .68rem; font-weight: 800; line-height: 14px; color: #fff; text-shadow: 0 1px 1px #000; }
.bh-knoppen { display: flex; gap: 6px; flex-wrap: wrap; }
.bh .btn.rood { border-color: var(--bad); color: var(--bad); margin-top: 0; }
.bh-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px 12px; }
.bh-form > b { width: 100%; font-size: .86rem; }
.bh-form input { flex: 1; min-width: 120px; } .bh-form input[type="number"] { flex: 0 0 110px; min-width: 0; }
.bh-form input[type="checkbox"] { flex: none; min-width: 0; }
.bh-main > .linkbtn { align-self: flex-start; }
.bh-form .check { font-size: .84rem; }
.bh-sep { width: 100%; height: 0; }
.bh-subseg { margin-top: 6px; flex-wrap: wrap; } .bh-subseg button { padding: 6px 12px; font-size: .84rem; }
.bh-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.bh-skill { display: grid; grid-template-columns: 22px 1fr 70px; grid-template-rows: auto auto; column-gap: 8px; align-items: center; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 8px; }
.bh-skill .pix { grid-row: 1 / 3; } .bh-skn { font-weight: 700; font-size: .86rem; } .bh-skill input { width: 70px; padding: 4px 6px; grid-row: 1 / 3; grid-column: 3; } .bh-skill b { grid-row: 1 / 3; grid-column: 3; text-align: right; }
.bh-skill small { grid-column: 2; font-size: .72rem; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.bh-inv { grid-template-columns: repeat(7, minmax(0, 1fr)); max-width: 380px; }
.bh-eq { display: flex; flex-direction: column; gap: 3px; }
.bh-eqrij { display: flex; align-items: center; gap: 8px; font-size: .84rem; padding: 3px 0; border-bottom: 1px solid var(--line); }
.bh-eqrij .btn { margin-left: auto; padding: 2px 8px; font-size: .74rem; }
.bh-eqs { width: 86px; color: var(--fg-3); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.bh-bankgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 4px; max-height: 360px; overflow-y: auto; }
.bh-geeflijst { width: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
.bh-geefrij { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .8rem; font-weight: 600; background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-xs); padding: 3px 8px 3px 4px; color: var(--fg); cursor: pointer; }
.bh-geefrij:hover { border-color: var(--gold); color: var(--gold); }
.bh-updates { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.bh-update { background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.bh-update .btn { align-self: flex-start; } .bh-update p { margin: 0; font-size: .8rem; color: var(--fg-2); line-height: 1.4; }
.bh-bericht p { font-size: 1.05rem; line-height: 1.5; margin: 0 0 14px; white-space: pre-wrap; }
#modal[data-kind="beheerbericht"] .modal-box { width: min(480px, 100%); }
/* meekijken, aankondigingen en beheermeldingen */
#meekijkbalk { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 18; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 16px; border-radius: 999px; background: rgba(14, 24, 40, .94); border: 1px solid #7cc8ff; color: #d8efff; font-size: .88rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); white-space: nowrap; max-width: calc(100vw - 16px); }
#meekijkbalk[hidden] { display: none; } #meekijkbalk b { color: #9fd8ff; }
#aankondiging { position: fixed; left: 50%; top: 70px; transform: translate(-50%, -20px); z-index: 45; width: min(640px, calc(100vw - 24px)); padding: 12px 18px; border-radius: var(--r-md); background: linear-gradient(180deg, rgba(60, 44, 12, .97), rgba(36, 26, 8, .97)); border: 1px solid var(--gold); box-shadow: 0 14px 40px rgba(0, 0, 0, .6); text-align: center; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease-out-3); }
#aankondiging.aan { opacity: 1; transform: translate(-50%, 0); }
#aankondiging small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
#aankondiging p { margin: 4px 0 0; font-size: 1.05rem; font-weight: 700; color: #fff4dc; }
#bhtoast { position: fixed; left: 50%; bottom: 120px; transform: translate(-50%, 10px); z-index: 60; padding: 8px 16px; border-radius: 999px; background: rgba(20, 30, 20, .95); border: 1px solid var(--good); color: #d8ffe0; font-weight: 700; font-size: .88rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 24px); }
#bhtoast.aan { opacity: 1; transform: translate(-50%, 0); }
#bhtoast.fout { background: rgba(48, 18, 16, .96); border-color: var(--bad); color: #ffd7cf; }
/* de knop Beheer linksboven in het spel (alleen met een rang) */
#beheerknop { position: fixed; left: 14px; top: 56px; z-index: 16; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 800; font-size: .84rem; color: var(--gold);
  background: rgba(30, 22, 8, .9); border: 1px solid rgba(246, 196, 83, .6); border-radius: 999px; padding: 5px 12px 5px 8px; cursor: pointer; box-shadow: var(--shadow); }
#beheerknop:hover { background: rgba(60, 44, 12, .95); border-color: var(--gold); }
#beheerknop[hidden] { display: none; }
.bh-link { text-decoration: none; margin-top: auto; color: var(--gold); border: 1px dashed rgba(246, 196, 83, .35); }
.bh-wie { color: var(--fg-3); font-size: .78rem; padding: 0 4px; }
/* de live kaart: wie is waar */
.bh-kaartbalk { align-items: center; } .bh-kaartbalk .check { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; margin: 0 6px; }
.bh-kaartbalk .check input { flex: none; min-width: 0; }
.bh-kaart { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 10px; align-items: start; }
/* de wereld is 4:3 (320 × 240 tegels): op een smal scherm wordt de kaart niet hoger dan nodig */
.bh-kaartwrap { position: relative; overflow: hidden; aspect-ratio: 4 / 3; max-height: clamp(320px, calc(100vh - 250px), 900px); border: 1px solid var(--line-2); border-radius: var(--r-md); background: #0e1a24; cursor: grab; touch-action: none; }
.bh-kaartwrap.pakt { cursor: grabbing; }
.bh-kaartdoek { position: relative; } .bh-kaartdoek canvas { display: block; }
.bh-kaartpins { position: absolute; inset: 0; pointer-events: none; }
.bh-pin { position: absolute; transform: translate(-8px, -8px); pointer-events: auto; display: flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; color: #fff; font: 700 .74rem var(--body); }
.bh-pin i { flex: none; width: 16px; height: 16px; border-radius: 50%; background: #7fdc95; border: 2px solid #0b0a10; box-shadow: 0 0 0 2px rgba(127, 220, 149, .45); }
.bh-pin.kerker i { background: #c79bff; box-shadow: 0 0 0 2px rgba(199, 155, 255, .45); }
.bh-pin.beheer i { background: var(--gold); box-shadow: 0 0 0 2px rgba(246, 196, 83, .45); }
.bh-pin span { background: rgba(11, 10, 16, .84); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 7px; white-space: nowrap; text-shadow: 0 1px 1px #000; }
.bh-pin:hover span, .bh-pin:focus-visible span { border-color: var(--gold); color: var(--gold); }
.bh-pin.focus { z-index: 2; } .bh-pin.focus i { animation: bhpuls 1.2s ease-in-out infinite; } .bh-pin.focus span { border-color: var(--gold); }
@keyframes bhpuls { 50% { box-shadow: 0 0 0 8px rgba(246, 196, 83, .22); } }
.bh-kaartlijst { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; max-height: clamp(320px, calc(100vh - 250px), 900px); }
.bh-kaartlijst h4 { margin: 6px 0 1px; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); }
.bh-kaartrij { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 6px 8px; border-radius: var(--r-sm); background: var(--s1); border: 1px solid var(--line); }
.bh-kaartrij .bh-naam { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bh-kaartrij small { grid-row: 2; color: var(--fg-3); font-size: .74rem; }
.bh-kaartrij .btn { grid-row: 1 / 3; grid-column: 2; padding: 3px 8px; font-size: .74rem; }
.bh-kaartrij.klik { cursor: pointer; } .bh-kaartrij.klik:hover, .bh-kaartrij.focus { border-color: rgba(246, 196, 83, .6); }

/* ------------------------------------------------ het losse beheerdashboard (/beheer, dashboard.js) */
body.dash { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: radial-gradient(1200px 600px at 20% -10%, rgba(246, 196, 83, .06), transparent 60%), var(--bg); }
#dashbalk { flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line-2); background: rgba(11, 10, 16, .9); }
.db-logo { display: flex; align-items: baseline; gap: 8px; }
.db-logo b { font-family: var(--display); font-size: 1.45rem; color: var(--gold); letter-spacing: .01em; }
.db-logo span { font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.db-logo small { color: var(--fg-3); font-size: .74rem; }
.db-status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--fg-3); }
.db-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.db-status[data-s="ok"]::before { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.db-rechts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.db-rechts[hidden] { display: none; }
#dbnaam { font-weight: 800; white-space: nowrap; }
.db-rechts a.btn { text-decoration: none; color: var(--fg); }
#dashlogin { flex: 1; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
#dashlogin[hidden] { display: none; }
.db-login { width: min(400px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.db-login h1 { margin: 0; font-family: var(--display); color: var(--gold); font-size: 1.9rem; line-height: 1.1; }
.db-login .hint { margin: 0; }
.db-login label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: .86rem; color: var(--fg-2); }
.db-login .error { margin: 0; min-height: 1.2em; color: var(--bad); font-weight: 600; font-size: .88rem; }
/* het paneel vult de hele pagina onder de balk */
body.dash #modal[data-kind="beheer"] { position: static; flex: 1; min-height: 0; padding: 0; background: none; backdrop-filter: none; display: flex; align-items: stretch; animation: none; opacity: 1; }
body.dash #modal[data-kind="beheer"][hidden] { display: none; }
body.dash #modal[data-kind="beheer"] .modal-box { width: 100%; height: auto; max-height: none; flex: 1; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
body.dash #modal[data-kind="beheer"] .modal-box > header { display: none; }
body.dash #modal:not([data-kind="beheer"]) #modal-x { display: none; }
body.dash .bh { grid-template-columns: 230px minmax(0, 1fr); }
body.dash .bh-main { padding: 18px 24px 28px; }
body.dash .bh-kaartwrap { max-height: clamp(320px, calc(100dvh - 250px), 1400px); }
body.dash .bh-kaartlijst { max-height: clamp(320px, calc(100dvh - 250px), 1400px); }
body.dash .bh-ik { display: none; }   /* naam en rang staan al in de balk bovenin */
body.dash .bh-top { padding: 10px 24px; }
body.dash #bhtoast { bottom: 24px; }
body.dash #netbanner { top: 64px; }

/* ---- sinds 0.9.8: overzicht, grafieken, spelerskaartjes, filters, profiel */
.bh-letop { display: flex; flex-direction: column; gap: 6px; }
.bh-melding { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--s1); font-size: .86rem; font-weight: 600; }
.bh-melding::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); }
.bh-melding > span { flex: 1; }
.bh-melding.m-rood { border-color: rgba(255, 138, 122, .5); background: var(--bad-soft); } .bh-melding.m-rood::before { background: var(--bad); }
.bh-melding.m-geel { border-color: rgba(255, 211, 106, .45); background: rgba(255, 211, 106, .08); } .bh-melding.m-geel::before { background: #ffd36a; }
.bh-melding.m-goud { border-color: rgba(246, 196, 83, .5); background: var(--gold-soft); } .bh-melding.m-goud::before { background: var(--gold); }
.bh-melding.m-grijs { color: var(--fg-2); }
.bh-grafieken { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 10px; }
.bh-grafiek { background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bh-gkop { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .bh-gkop b { font-size: .86rem; } .bh-gkop small { color: var(--fg-3); font-size: .74rem; }
.bh-gvak { height: 120px; } .bh-gvak svg { display: block; width: 100%; height: 100%; }
.bh-gvak .raster { stroke: rgba(255, 255, 255, .06); stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.bh-gvak .vlak { fill: rgba(127, 220, 149, .14); } .bh-gvak .lijn { fill: none; stroke: var(--good); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.bh-gas { display: flex; justify-content: space-between; font-size: .7rem; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.bh-staven { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; min-height: 140px; }
.bh-staaf { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.bh-staaf small { font-size: .72rem; font-weight: 800; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.bh-staaf span { font-size: .68rem; color: var(--fg-3); white-space: nowrap; }
.bh-staafvak { position: relative; flex: 1; width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: rgba(255, 255, 255, .04); overflow: hidden; }
.bh-staafvak i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #8fb4ff, #5d86ef); border-radius: 6px 6px 0 0; }
.bh-staafvak i.nieuw { left: 30%; right: 30%; background: var(--gold); border-radius: 3px 3px 0 0; }
.bh-spelerkaartjes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.bh-sk { display: flex; gap: 10px; align-items: flex-start; background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 8px 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.bh-sk:hover { border-color: rgba(246, 196, 83, .5); background: var(--s2); }
.bh-skcv { flex: none; image-rendering: pixelated; background: radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, .08), transparent 70%); border-radius: var(--r-sm); }
.bh-skinfo { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.bh-skinfo .bh-naam { font-size: .95rem; } .bh-skinfo small { color: var(--fg-3); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-skinfo .bh-mini { margin-top: 3px; }
.bh-hp.klein { width: 100%; max-width: 170px; height: 10px; } .bh-hp.klein span { font-size: .58rem; line-height: 10px; }
.bh-filters { display: flex; gap: 5px; flex-wrap: wrap; }
.bh-fchip { font: inherit; font-size: .8rem; font-weight: 700; color: var(--fg-2); background: var(--s1); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.bh-fchip b { color: var(--fg-3); font-weight: 800; margin-left: 2px; }
.bh-fchip:hover { border-color: var(--line-3); color: var(--fg); }
.bh-fchip[aria-pressed="true"] { background: var(--gold-soft); border-color: rgba(246, 196, 83, .6); color: var(--gold); } .bh-fchip[aria-pressed="true"] b { color: var(--gold); }
.bh-tabel th.sorteer { cursor: pointer; user-select: none; } .bh-tabel th.sorteer:hover { color: var(--fg); } .bh-tabel th.sorteer.aan { color: var(--gold); }
.bh-gdag { position: sticky; top: 0; z-index: 1; padding: 5px 10px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); background: var(--s2); border-top: 1px solid var(--line); }
.bh-gdag:first-child { border-top: 0; }
.g-winkel .bh-gs { color: #f6c453; }
.bh-spkop { background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px 14px; align-items: flex-start; }
.bh-spkop .profcv { flex: none; background: radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, .08), transparent 70%); border-radius: var(--r-md); }
.bh-spinfo { flex: 1; gap: 6px; }
.bh-feiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 14px; margin-top: 4px; }
.bh-feiten > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bh-feiten small { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); }
.bh-feiten b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-feiten .bh-hp { width: 100%; max-width: 180px; margin-top: 2px; }
.bh-acties { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.bh-agroep { display: flex; flex-direction: column; gap: 6px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 10px 10px; }
.bh-agroep > small { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-3); }
.bh-agroep .btn { padding: 5px 11px; font-size: .82rem; }

@media (max-width: 860px) {
  .bh-kaart { grid-template-columns: minmax(0, 1fr); }
  .bh-kaartlijst, body.dash .bh-kaartlijst { max-height: none; }
  body.dash .bh { grid-template-columns: minmax(0, 1fr); }
  #dashbalk { flex-wrap: wrap; gap: 8px 12px; padding: 8px 16px; }
  .db-rechts { width: 100%; margin-left: 0; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .bh { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .bh-nav { flex-direction: row; flex-wrap: wrap; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line-2); padding: 8px; gap: 4px; }
  .bh-ik, .bh-groep, .bh-link { display: none; }
  .bh-tab { flex: none; white-space: nowrap; padding: 6px 10px; font-size: .84rem; background: var(--s1); gap: 6px; }
  .bh-tab[aria-pressed="true"] { box-shadow: none; }
  .bh-top { padding: 8px 12px; }
  .bh-zoek { flex: 1 1 100%; }
  .bh-schakels { margin-left: 0; }
  .bh-cols, .bh-grafieken { grid-template-columns: minmax(0, 1fr); }
  .bh-main { padding: 12px; }
}

/* De Markt (ui-markt.js) */
#modal[data-kind="markt"] .modal-box { width: min(980px, 100%); }
.mkpage { display: flex; flex-direction: column; gap: 12px; }
.mkhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mkseg button { padding: 7px 14px; }
.mkcols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.mklinks { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mkzoek { display: flex; gap: 6px; } .mkzoek input { flex: 1; min-width: 0; } .mkzoek select { flex: none; max-width: 45%; }
.mklijst { display: flex; flex-direction: column; gap: 3px; max-height: min(56vh, 480px); overflow-y: auto; padding-right: 2px; }
.mkrij { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 10px 6px 6px; color: var(--fg); font: inherit; cursor: pointer; min-width: 0; }
.mkrij:hover { border-color: var(--line-3); background: var(--s2); }
.mkrij.gekozen { border-color: var(--gold); background: var(--gold-soft); }
.mkrt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; gap: 1px; }
.mkrt b { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkrt small { font-size: .76rem; color: var(--fg-3); } .mkrt small.ok { color: var(--good); font-weight: 700; } .mkrt small.no { color: var(--bad); font-weight: 700; }
.mkprijs { display: inline-flex; align-items: center; gap: 4px; flex: none; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mkprijs small { color: var(--fg-3); font-weight: 600; font-size: .72rem; margin-right: 2px; }
.mkr2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mkrechts { display: flex; flex-direction: column; gap: 10px; background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px; min-width: 0; }
.mkrechts .hint { margin: 0; } .mkrechts .hint.no { color: var(--bad); }
.mkitem { display: flex; gap: 12px; align-items: center; }
.mkladder { display: flex; flex-direction: column; gap: 3px; } .mkladder h3 { margin: 0 0 2px; }
.mkl { display: flex; justify-content: space-between; align-items: center; font-variant-numeric: tabular-nums; font-size: .86rem; padding: 3px 8px; background: rgba(0, 0, 0, .18); border-radius: var(--r-xs); }
.mkaantal { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.mkaantal input { width: 90px; }
.mkvelden { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mkveld { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--fg-2); } .mkveld input { width: 100%; }
.mktotaal { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.mkrechts > .btn.gold { align-self: stretch; }
@media (max-width: 760px) { .mkcols { grid-template-columns: minmax(0, 1fr); } .mklijst { max-height: 40vh; } }
/* waar vind je ze? (monsterinfo, slayertaak) */
.waarblok { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.waarblok h3 { margin: 0 0 4px; }
.waarblok.kort { margin-top: 4px; padding: 4px; background: rgba(255, 90, 60, .07); border-radius: var(--r-sm); }
.waarknoppen { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

@media (max-width: 760px) {
  .sk-cols { grid-template-columns: 1fr; } .shopwrap { grid-template-columns: 1fr; }
  .shopnav { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line-2); } .shopnav h3, .shopnav .sep { display: none; }
  .sk-u { grid-template-columns: 44px 40px 1fr; } .sk-us, .sk-ub { display: none; }
}

/* ------------------------------------------------ titelscherm en inloggen */
#login { position: fixed; inset: 0; overflow: hidden; background: #07060f; z-index: 40; }
/* taal (sinds 1.3): rechtsboven op het inlogscherm, en in Opties */
.taallogin { position: absolute; top: 12px; left: 14px; z-index: 3; }
.taalkies { background: rgba(14, 12, 22, .85); color: var(--fg); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.taalopt .taalkies { width: 100%; border-radius: var(--r-sm); }
.vtpage { display: grid; gap: 10px; } .vtrij { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; } .vtrij span { color: var(--fg-2); font-weight: 700; }
.vtrij input, .vtrij select, .vtproef input, .vtproef select { width: 100%; } .vtknoppen { display: flex; gap: 8px; flex-wrap: wrap; } .vtproef { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; }
.vtstatus p { margin: 2px 0; } .vtuit { background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; margin: 0; }
.ct.vt { font-style: italic; } .ct.vt::after { content: ' ⇄'; font-style: normal; opacity: .55; font-size: .8em; }
#login::after { content: ''; position: absolute; inset: 0; background: #000; pointer-events: none; animation: var(--animation-fade-out) both; animation-duration: 1.8s; }
#login[data-state="leaving"] { animation: var(--animation-fade-out) both; animation-duration: .7s; }
#titlescene { position: absolute; left: 0; top: 0; image-rendering: pixelated; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 55%, transparent 40%, rgba(4, 3, 10, .78) 100%); }

.title-top { position: absolute; left: 50%; top: 16%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 16px; pointer-events: none; transition: top .9s var(--ease-in-out-3), left .9s var(--ease-in-out-3), transform .9s var(--ease-in-out-3); }
#login[data-state="login"] .title-top, #login[data-state="leaving"] .title-top { top: 4%; left: 34%; transform: translateX(-50%) scale(.62); }
.logo { --lp: clamp(4px, 1.05vw, 11px); position: relative; display: flex; gap: var(--lp); filter: drop-shadow(0 0 calc(var(--lp) * 3) rgba(255, 130, 40, .35)); animation: logobob 5s var(--ease-in-out-3) 2.8s infinite; }
.logo .letter { display: block; animation: fade-in-bloom 1.4s var(--ease-out-3) both, slide-in-down 1s var(--ease-elastic-out-3) both; animation-delay: calc(var(--i) * 110ms + .5s); }
.logo .letter canvas { display: block; width: calc(var(--w) * var(--lp)); height: calc(var(--h) * var(--lp)); image-rendering: pixelated; }
.logo-shine { position: absolute; left: 0; top: 0; width: calc(var(--lw) * var(--lp)); height: calc(var(--lh) * var(--lp)); pointer-events: none; mix-blend-mode: screen;
  -webkit-mask-image: var(--mask); mask-image: var(--mask); -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 250, 225, .9) 49%, transparent 60%) no-repeat; background-size: 260% 100%; background-position: 160% 0;
  animation: logoshine 5s var(--ease-in-out-2) 2.6s infinite; }
@keyframes logoshine { 0% { background-position: 160% 0; } 40%, 100% { background-position: -60% 0; } }
@keyframes logobob { 50% { transform: translateY(-5px); } }
.tag { margin: 0; font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 500; color: #ddd4ec; text-align: center; text-shadow: 0 2px 4px #000, 0 0 12px #000; opacity: 0; animation: var(--animation-fade-in) both, var(--animation-slide-in-up); animation-delay: 1.7s; animation-duration: .9s; max-width: 90vw; }
#login[data-state="login"] .tag { opacity: 0 !important; animation: none; transition: opacity .4s; }

.startprompt { position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%); background: none; border: 0; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--gold); text-shadow: 0 3px 0 #2a0e10, 0 0 18px rgba(255, 150, 40, .55); display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; animation: fade-in .7s var(--ease-3) 2.3s both, blink 1.8s var(--ease-in-out-3) 3s infinite; }
.startprompt small { font-family: var(--body); font-size: .45em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #d4cbe4; text-shadow: 0 2px 4px #000; }
#login:not([data-state="intro"]) .startprompt { display: none; }

.login-box { position: absolute; right: max(5vw, 24px); inset-block: 0; margin-block: auto; height: max-content; max-height: calc(100vh - 40px); overflow-y: auto; width: min(440px, calc(100vw - 32px)); display: none; flex-direction: column; gap: 14px; padding: 24px 24px 18px;
  background: linear-gradient(180deg, rgba(33, 28, 46, .95), rgba(17, 14, 24, .96)); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .07); backdrop-filter: blur(6px); }
#login[data-state="login"] .login-box, #login[data-state="leaving"] .login-box { display: flex; animation: slide-in-left .75s var(--ease-out-4) both, fade-in .5s var(--ease-3) both; opacity: 0; }
#login[data-state] .login-box.shake { animation: var(--animation-shake-x); opacity: 1; }
.lb-head { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.lb-eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--gold); }
.lb-head h2 { margin: 0; font-family: var(--display); font-size: 1.75rem; font-weight: 700; line-height: 1.15; }
.login-box label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--fg-2); }
.modes { position: relative; background: var(--s1); }
.modes button, .modes button[aria-pressed="true"] { position: relative; z-index: 1; background: transparent; transition: color .25s; }
.modes button[aria-pressed="true"] { color: var(--gold-ink); }
.modes button:hover { background: transparent; }
.seg-ind { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc(50% - 4.5px); border-radius: var(--r-xs); background: var(--gold); transition: transform .4s var(--ease-elastic-out-3); }
#loginform.nieuw .seg-ind { transform: translateX(calc(100% + 3px)); }
#lookpick:not([hidden]) { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; animation: var(--animation-fade-in) both, var(--animation-slide-in-down); animation-duration: .35s; opacity: 0; }
.look-stage { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pedestal { width: 132px; height: 158px; display: grid; place-items: end center; padding-bottom: 10px; border-radius: var(--r-md);
  background: radial-gradient(ellipse 54px 13px at 50% 90%, #463d60 0 55%, #2a2438 56% 70%, transparent 72%), radial-gradient(circle at 50% 55%, rgba(246, 196, 83, .16), transparent 62%), var(--s2); border: 1px solid var(--line-2); }
.pedestal.pop { animation: pop .35s var(--ease-elastic-out-3); }
.pedestal canvas { image-rendering: pixelated; display: block; }
.look-ctrl { display: flex; gap: 4px; }
.look-opts { display: flex; flex-direction: column; gap: 8px; }
.look-opts .row { display: flex; flex-direction: column; gap: 4px; }
.look-opts .rl { font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); }
.look-opts .swatch { width: 24px; height: 24px; border-radius: var(--r-xs); }
.look-opts .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.look-opts .chip { font: inherit; font-size: .78rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-3); background: var(--s2); color: var(--fg-2); cursor: pointer; transition: transform .15s var(--ease-out-3), background .15s; }
.look-opts .chip:hover { transform: translateY(-1px); background: var(--s3); color: var(--fg); }
.look-opts .chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a1423; }
/* uiterlijk aanpassen in het spel */
.lookedit { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.lookside { display: flex; flex-direction: column; align-items: center; gap: 10px; position: sticky; top: 0; }
.lookside .pedestal { width: 140px; height: 168px; }
@media (max-width: 560px) { .lookedit { grid-template-columns: 1fr; } .lookside { position: static; } }
.error { color: var(--bad); margin: 0; min-height: 1.2em; font-size: .9rem; font-weight: 600; }
.lb-links { display: flex; justify-content: center; margin-top: -2px; }
.linkbtn { background: none; border: 0; padding: 4px 6px; color: var(--fg-3); font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color .2s; }
.linkbtn:hover { color: var(--gold); }
#herstelfields:not([hidden]), #herstelok:not([hidden]) { display: flex; flex-direction: column; gap: 10px; animation: var(--animation-fade-in) both, var(--animation-slide-in-down); animation-duration: .35s; opacity: 0; }
#herstelfields .hint { margin: 0; }
#herstelok .ok { margin: 0; color: var(--good); font-weight: 700; font-size: 1.05rem; }
#herstelok .hint { margin: 0; }
.codebox { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px dashed rgba(246, 196, 83, .6); border-radius: var(--r-md); padding: 10px 12px; }
.codebox code { flex: 1; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 1.15rem; letter-spacing: .08em; color: var(--gold); user-select: all; word-break: break-all; }

.soundtoggles { position: absolute; right: 14px; top: 12px; display: flex; gap: 6px; opacity: 0; animation: var(--animation-fade-in) both; animation-delay: 2s; }
.tgl { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .85rem; background: rgba(20, 16, 30, .75); border: 1px solid var(--line-3); border-radius: 999px; padding: 4px 12px 4px 8px; cursor: pointer; }
.tgl canvas { width: 24px; height: 24px; image-rendering: pixelated; }
.tgl[aria-pressed="false"] { opacity: .5; text-decoration: line-through; }
.login-foot { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; color: #9a91ad; font-size: .8rem; text-shadow: 0 1px 2px #000; pointer-events: none; }

#offline { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 50; }
.offline-box { width: min(420px, 100%); background: var(--glass); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.offline-box h2 { margin: 0; font-family: var(--display); color: var(--gold); }
.offline-box p { margin: 0; color: var(--fg-2); }
.offknoppen { display: flex; gap: 8px; flex-wrap: wrap; }
#lresume { width: 100%; }

/* ------------------------------------------------ samen spelen */
#tabs { grid-template-columns: repeat(8, 1fr); }
#tabs button { position: relative; min-width: 0; }
#tabs button > span:not(.pix) { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tabdot { position: absolute; top: 5px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--s1); }
.seg .tabdot { position: static; display: inline-block; margin-left: 5px; vertical-align: middle; box-shadow: none; }
/* chatkanalen */
#chattabs { display: flex; gap: 2px; padding: 0 4px 4px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
#chattabs button { position: relative; flex: 1; background: none; border: 0; border-radius: var(--r-xs); padding: 4px 6px; font-size: .78rem; font-weight: 700; color: var(--fg-3); cursor: pointer; }
#chattabs button:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }
#chattabs button[aria-selected="true"] { color: var(--gold); background: var(--s2); }
#chattabs i { position: absolute; top: 3px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); }
#chatlog[data-kanaal="openbaar"] > div:not(.k-openbaar) { display: none; }
#chatlog[data-kanaal="prive"] > div:not(.k-prive) { display: none; }
#chatlog[data-kanaal="clan"] > div:not(.k-clan) { display: none; }
#chatlog .pm { color: #e2a7ff; } #chatlog .pm b { color: #c79bff; }
#chatlog .clanchat { color: #a6f0b4; } #chatlog .clanchat b { color: #6fe08a; }
#chatlog .vriend { color: #c79bff; } #chatlog .clan { color: #8fe3a0; } #chatlog .ruil { color: #ffd27a; } #chatlog .duel { color: #ffab8f; }
/* verzoeken die binnenkomen (rechts bovenin, onder de minikaart) */
#vragen { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 26; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 24px)); pointer-events: none; }
.vraag { pointer-events: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; border-color: var(--gold); animation: var(--animation-slide-in-down), var(--animation-fade-in); animation-duration: .3s; }
.vraag.weg { transition: opacity .2s, transform .2s; opacity: 0; transform: translateY(-6px); }
.vraag b { color: var(--gold); font-size: .95rem; } .vraag p { margin: 0; } .vraag small { color: var(--fg-3); font-size: .78rem; }
.vraagknoppen { display: flex; gap: 6px; margin-top: 4px; }
#netbanner { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 45; background: rgba(60, 24, 18, .92); border: 1px solid var(--bad); color: #ffd7cf; border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); animation: var(--animation-blink); animation-duration: 2.2s; }
#pvpbadge, #duelbar { position: fixed; left: 50%; transform: translateX(-50%); top: 64px; z-index: 15; display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; box-shadow: var(--shadow); }
#pvpbadge { background: rgba(70, 16, 20, .9); border: 1px solid #ff6a5a; color: #ffd0c8; }
#duelbar { top: 104px; background: rgba(20, 16, 30, .92); border: 1px solid var(--gold); }
#duelbar small { color: var(--fg-3); font-weight: 600; }
#pvpbadge canvas, #duelbar canvas { flex: none; }
#chatknop, #orbs { display: none; }
/* paneel Sociaal */
.socseg { margin-bottom: 10px; } .socseg button { font-size: .8rem; padding: 6px 4px; }
.socadd { display: flex; gap: 6px; margin-bottom: 6px; } .socadd input { flex: 1; min-width: 0; }
.socrij { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 6px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.socrij.verzoek { grid-template-columns: 1fr auto auto; }
.socrij.uit { opacity: .62; }
.socrij small { color: var(--fg-3); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.socneg .socrij { grid-template-columns: 1fr auto; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #5a5266; } .dot.on { background: var(--good); box-shadow: 0 0 6px var(--good); }
.socnaam { background: none; border: 0; padding: 0; color: var(--fg); font-weight: 700; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.socnaam:hover { color: var(--gold); text-decoration: underline; }
.icobtn { width: 30px; height: 30px; border-radius: var(--r-xs); background: var(--s2); border: 1px solid var(--line-2); color: var(--fg-2); cursor: pointer; font-size: .95rem; line-height: 1; }
.icobtn:hover:not(:disabled) { color: var(--gold); border-color: var(--gold); } .icobtn:disabled { opacity: .35; cursor: default; }
.rang { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3); }
.rang.r-leider { color: var(--gold); } .rang.r-officier { color: #7cc8ff; } .rang.r-lid { color: var(--fg-2); }
.socneg { margin-top: 12px; } .socneg summary { cursor: pointer; color: var(--fg-3); font-weight: 700; font-size: .85rem; }
.socblok { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: var(--r-md); padding: 10px 12px; margin-bottom: 10px; }
.socblok p { margin: 4px 0 0; }
.clanform { display: flex; flex-direction: column; gap: 8px; }
.clanhead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-radius: var(--r-md); background: linear-gradient(90deg, color-mix(in srgb, var(--ck) 22%, transparent), transparent); border: 1px solid color-mix(in srgb, var(--ck) 55%, transparent); }
.clanhead b { color: var(--ck); font-size: 1.05rem; } .clanhead span { font-weight: 700; } .clanhead small { color: var(--fg-3); width: 100%; }
.motd { margin: 8px 0; padding: 8px 10px; background: rgba(0, 0, 0, .2); border-left: 3px solid var(--gold); border-radius: var(--r-xs); }
.motd p { margin: 0 0 4px; font-style: italic; color: var(--fg-2); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; font-size: .82rem; text-decoration: underline; }
.clanknoppen { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.btn.rood { border-color: var(--bad); color: var(--bad); margin-top: 8px; }
.pvpstats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.pvpstat { background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; display: flex; flex-direction: column; }
.pvpstat b { font-size: 1.3rem; color: var(--gold); font-variant-numeric: tabular-nums; } .pvpstat span { color: var(--fg-3); font-size: .78rem; }
/* profiel en ranglijst */
#modal[data-kind="profiel"] .modal-box, #modal[data-kind="ranglijst"] .modal-box, #modal[data-kind="duelregels"] .modal-box { width: min(520px, 100%); }
.proftop { display: flex; gap: 14px; align-items: center; }
.profcv { flex: none; image-rendering: pixelated; background: radial-gradient(circle at 50% 70%, var(--s3), transparent 70%); border-radius: var(--r-md); padding: 6px; }
.profinfo { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.profinfo p { margin: 0; } .profinfo small { color: var(--fg-3); } .profinfo .online { color: var(--good); font-weight: 700; } .profinfo .offline { color: var(--fg-3); }
.profnaam { margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--fg); }
.profskills { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; }
.profskill { display: flex; align-items: center; gap: 6px; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 5px 8px; font-variant-numeric: tabular-nums; }
/* eindbazen in het profiel (sinds 1.3) */
.profkop { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 6px; } .profkop b { color: var(--fg); } .profkop small { color: var(--fg-3); }
.profbazen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.profbaas { display: flex; align-items: center; gap: 6px; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 8px; font-variant-numeric: tabular-nums; }
.profbaas canvas { width: 30px; height: 30px; image-rendering: pixelated; } .profbaas b { color: var(--gold); }
.profbaas.nooit { opacity: .45; filter: grayscale(1); } .profbaas.nooit b { color: var(--fg-3); }
.rangpage select { width: 100%; margin-bottom: 10px; }
.rangtab { display: flex; flex-direction: column; max-height: min(60vh, 520px); overflow-y: auto; }
.rangrij { display: grid; grid-template-columns: 36px 1fr auto 70px; align-items: baseline; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rangrij .plek { color: var(--fg-3); font-weight: 800; } .rangrij small { color: var(--fg-3); }
.rangrij.top1 .plek { color: #ffd34d; } .rangrij.top2 .plek { color: #d8dde6; } .rangrij.top3 .plek { color: #e0a06a; }
.rangrij.ik { background: var(--gold-soft); border-radius: var(--r-xs); } .rangrij.ik .nm { color: var(--gold); font-weight: 800; }
.rangrij.gevonden { background: rgba(124, 200, 255, .14); border-radius: var(--r-xs); box-shadow: inset 3px 0 0 #7cc8ff; }
.linknaam { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--fg); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.linknaam:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.rangkop { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; } .rangkop select { margin: 0; } .rangkop .socadd { margin: 0; }
.rangzoek { background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 6px 6px 2px; margin-bottom: 10px; }
.rangzoek h3 { margin: 4px 6px 6px; }
.rangniet { margin: 0 0 8px; }
.profsum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.profstat { background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 10px; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.profstat b { font-size: 1.2rem; color: var(--gold); } .profstat span { color: var(--fg-2); font-size: .78rem; font-weight: 600; } .profstat small { color: var(--fg-3); font-size: .72rem; }
.profskill small { margin-left: auto; color: var(--fg-3); font-size: .68rem; font-weight: 700; }
/* speler opzoeken (Sociaal en het inlogscherm) */
#soczoek { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
#soczoek .zoeker { flex: 1; min-width: 0; margin: 0; }
.rangknop { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.zoeker { position: relative; }
.zoeklijst { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; display: flex; flex-direction: column; padding: 4px; background: var(--s3, #241f33); border: 1px solid var(--line-3); border-radius: var(--r-sm); box-shadow: 0 12px 30px rgba(0, 0, 0, .55); max-height: 260px; overflow-y: auto; }
.zoeklijst[hidden] { display: none; }
.zoeklijst .hint { margin: 6px 8px; }
.zoekrij { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 7px 8px; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--fg); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.zoekrij:hover, .zoekrij[aria-selected="true"] { background: var(--gold-soft); color: var(--gold); }
.zoekrij small { color: var(--fg-3); font-size: .75rem; }
/* de ranglijst op het inlogscherm */
.hiscore { position: absolute; left: max(5vw, 24px); top: max(24vh, 190px); max-height: calc(100vh - max(24vh, 190px) - 44px); width: min(380px, calc(100vw - 32px)); display: none; flex-direction: column; gap: 10px; padding: 18px 18px 14px;
  background: linear-gradient(180deg, rgba(33, 28, 46, .93), rgba(17, 14, 24, .95)); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .07); backdrop-filter: blur(6px); }
#login[data-state="login"] .hiscore { display: flex; animation: slide-in-right .75s var(--ease-out-4) .15s both, fade-in .5s var(--ease-3) .15s both; }
.hs-head { position: relative; display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.hs-head h2 { margin: 0; font-family: var(--display); font-size: 1.35rem; font-weight: 700; line-height: 1.15; }
.hs-x { display: none; position: absolute; right: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--s3); border: 1px solid var(--line-2); color: var(--fg-2); font-size: 1.2rem; cursor: pointer; }
#hsbody { display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1; }
.hs-kop { display: flex; flex-direction: column; gap: 6px; } .hs-kop .socadd { margin: 0; }
.hslijst { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 0; }
.hsrij { display: grid; grid-template-columns: 30px 1fr auto 58px; align-items: baseline; gap: 8px; padding: 5px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hsrij .plek { color: var(--fg-3); font-weight: 800; } .hsrij small { color: var(--fg-3); font-size: .74rem; }
.hsrij.top1 .plek { color: #ffd34d; } .hsrij.top2 .plek { color: #d8dde6; } .hsrij.top3 .plek { color: #e0a06a; }
.hsnaam { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--fg); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hsnaam:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.hs-terug { align-self: flex-start; }
#hsbody .profpage { overflow-y: auto; min-height: 0; }
#hsbody .profskills { grid-template-columns: repeat(3, 1fr); }
#hsopen { display: none; }
/* te smal voor de lijst naast het inlogvak: achter de knop Ranglijst, als venster over het inlogvak heen */
@media (max-width: 1060px), (max-height: 560px) {
  #login[data-state="login"] .hiscore { display: none; }
  #login[data-state="login"] .hiscore.open { display: flex; position: fixed; inset: 16px; top: max(16px, env(safe-area-inset-top)); bottom: auto; max-height: calc(100dvh - 32px); width: auto; margin: 0 auto; max-width: 460px; z-index: 5; animation: pop .25s var(--ease-elastic-out-2) both; }
  .wmbar { right: 6px; top: 6px; } .wmbar .btn { padding: 5px 9px; font-size: .78rem; min-width: 30px; }
  .hs-x { display: grid; place-items: center; }
  #hsopen { display: inline; margin-left: 10px; }
}
/* ruilen */
#modal[data-kind="ruil"] .modal-box { width: min(980px, 100%); }
.ruilwrap { display: grid; grid-template-columns: 1fr 232px; gap: 14px; }
.ruilcols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ruilkant, .ruilcheck { background: rgba(0, 0, 0, .18); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ruilkant.eigen { border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.ruilkant h3, .ruilcheck h3 { margin: 0; }
.ruilgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.ruilwaarde { color: var(--gold); font-weight: 700; font-size: .82rem; }
.ruilwaarschuwing { background: var(--bad-soft); border: 1px solid var(--bad); color: #ffd0c8; border-radius: var(--r-sm); padding: 8px 12px; font-weight: 700; margin: 0 0 10px; animation: pop .3s var(--ease-elastic-out-3); }
.ruilwaarschuwing.zacht { background: var(--gold-soft); border-color: var(--gold); color: var(--fg); animation: none; margin-top: 10px; }
.ruilstatus { margin: 10px 0 0; color: var(--fg-2); font-weight: 600; } .ruilstatus.ok { color: var(--good); }
.checkrij { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.checkrij small { color: var(--fg-3); font-variant-numeric: tabular-nums; }
.slot.op { opacity: .35; }
@media (max-width: 760px) { .ruilwrap { grid-template-columns: 1fr; } .ruilwrap .bankinv { order: -1; } }
.duelpage { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 1100px) {
  #chat { bottom: 132px; width: min(440px, calc(100vw - 362px)); }
  #chat #chatlog { max-height: 120px; }
}
@media (max-width: 900px) {
  #side { width: 268px; }
  #stats { width: min(360px, calc(100vw - 310px)); left: 14px; transform: none; }
  #xpdrops { left: 14px; transform: none; align-items: flex-start; }
  #chat { width: calc(100vw - 310px); }
  .sizes { grid-template-columns: repeat(2, 1fr); }
  #login[data-state="login"] .title-top, #login[data-state="leaving"] .title-top { top: 1%; left: 50%; transform: translateX(-50%) scale(.5); }
  .login-box { right: 0; left: 0; margin-inline: auto; inset-block: auto 40px; margin-block: 0; max-height: calc(100vh - 120px); }
}
/* ------------------------------------------------ telefoon en klein scherm
   De wereld vult het scherm. Het paneel (rugzak, skills, sociaal ...) is een la onderin: tik op een tab
   om hem te openen, nog een keer om hem dicht te doen. Levenspunten linksboven, chat achter een knop. */
#view { touch-action: none; }
.invgrid .slot, .bankgrid .slot, .ruilgrid .slot { touch-action: none; }
/* in de bank scrolt een veeg (sinds 1.0); slepen om te ordenen gaat daar alleen met de muis */
.bankgrid .slot, .bankinv .invgrid .slot { touch-action: pan-y; }
.sleepbeeld { position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%, -50%) scale(1.15); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); image-rendering: pixelated; }
.slot.sleept { opacity: .35; }
.slot.sleepdoel { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }
@media (max-width: 760px), (max-height: 520px) {
  body { overscroll-behavior: none; }
  #hovertext { display: none; }
  /* zoals RuneScape mobiel: geen balkenblok, maar orbs naast een ronde minikaart */
  #stats { display: none; }
  #orbs { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; position: fixed; top: calc(8px + env(safe-area-inset-top)); right: 8px; z-index: 15; }
  body.buiten #orbs { right: 140px; }
  .orb { display: flex; flex-direction: row-reverse; align-items: center; gap: 0; height: 38px; padding: 0 0 0 10px; border-radius: 999px; background: rgba(11, 10, 16, .82); border: 1px solid var(--line-2);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .45); cursor: pointer; color: #8ef09c; --oc: #ff5a5a; --f: 1; }
  .orb b { min-width: 28px; padding-right: 6px; font-size: .86rem; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #000; }
  .orb .pix { display: grid; place-items: center; width: 38px; height: 38px; margin: -1px -1px -1px 0; border-radius: 50%;
    background: radial-gradient(circle, #2b2538 57%, transparent 59%), conic-gradient(var(--oc) calc(var(--f) * 360deg), rgba(255, 255, 255, .1) 0); }
  .orb.rust { --oc: #8fa4ff; color: #c9d3ff; } .orb.rust.vol { color: var(--gold); --oc: var(--gold); }
  .orb.hp.laag { color: #ff8a7a; animation: var(--animation-blink); animation-duration: 1.4s; }
  .orb.kaart { padding: 0; } .orb.kaart .pix { width: 42px; height: 42px; background: radial-gradient(circle at 40% 35%, #3a3350, #1d1828 70%); }
  .orb:active { transform: scale(.94); }
  /* rugzak: 7 vakken naast elkaar, niet breder dan nodig */
  .invgrid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 430px; margin-inline: auto; }
  .slot .n { font-size: .66rem; left: 3px; top: 1px; }
  #xpdrops { top: 108px; bottom: auto; left: 8px; transform: none; align-items: flex-start; }
  #minimap { top: calc(8px + env(safe-area-inset-top)); right: 8px; width: auto; }
  .minifoot { display: none; }   /* de wereldkaart zit in de wereldbol-orb */
  #zonetoast { top: 20%; font-size: 1.5rem; }
  #side, body.buiten #side { left: 0; right: 0; bottom: 0; width: auto; max-height: 58vh; border-radius: 16px 16px 0 0; flex-direction: column-reverse; padding-bottom: env(safe-area-inset-bottom); z-index: 16; }
  /* tabs als stenen tegels met alleen een plaatje (de naam blijft voor schermlezers) */
  #tabs { border-bottom: 0; border-top: 1px solid var(--line-2); padding: 6px 6px 5px; gap: 5px; }
  #tabs button { height: 46px; padding: 0; justify-content: center; border-radius: 12px; background: linear-gradient(180deg, #2a2436, #1c1826); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 0 rgba(0, 0, 0, .4); }
  #tabs button > span:not(.pix) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #tabs button .pix { transform: scale(1.12); }
  #tabs button[aria-selected="true"] { border-color: var(--gold); background: linear-gradient(180deg, #3a3048, #241e30); }
  #tabs button::after { display: none; }
  .tabdot { top: 3px; right: 4px; }
  .tab { padding: 10px; }
  body.paneel-dicht #side .tab { display: none !important; }
  body.paneel-dicht #tabs button[aria-selected="true"] { background: transparent; color: var(--fg-3); }
  body.paneel-dicht #tabs button[aria-selected="true"]::after { display: none; }
  /* chat: een doorzichtige strook die linksboven inschuift (zoals RuneScape op mobiel). Bovenin, zodat het
     toetsenbord van je telefoon hem niet over het scherm duwt. Open en dicht met het knopje eronder. */
  #chatknop { display: grid; place-items: center; position: fixed; left: 8px; top: calc(8px + env(safe-area-inset-top)); bottom: auto; z-index: 19; width: 46px; height: 46px; padding: 0;
    border-radius: 12px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #2a2436, #1c1826); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 0 rgba(0, 0, 0, .4); }
  body.chat-open #chatknop { border-color: var(--gold); }
  #chatknop i { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px #1c1826; }
  #chat, #chat.glass { display: flex; left: 0; right: auto; bottom: auto; top: calc(140px + env(safe-area-inset-top)); width: min(80vw, 380px); z-index: 18; padding: 4px 10px 6px 8px;
    background: linear-gradient(90deg, rgba(8, 7, 12, .66), rgba(8, 7, 12, .42) 65%, rgba(8, 7, 12, 0)); border: 0; border-radius: 0 16px 16px 0; box-shadow: none; backdrop-filter: none;
    transform: translateX(-104%); opacity: 0; pointer-events: none; transition: transform .25s var(--ease-out-3), opacity .2s; }
  body.chat-open #chat { transform: none; opacity: 1; pointer-events: auto; }
  body.chat-open:not(.paneel-dicht) #chat { transform: translateX(-104%); opacity: 0; pointer-events: none; }
  body.typen #side, body.typen #minimap, body.typen #pvpbadge, body.typen #duelbar { display: none !important; }
  body.typen #chat, body.typen #chat.glass { width: min(94vw, 460px); }
  #chat #chatlog { max-height: 24vh; font-size: .84rem; line-height: 1.38; color: #f2eef8; text-shadow: 0 1px 2px #000, 0 0 4px rgba(0, 0, 0, .9); padding: 4px 4px 6px; }
  #chattabs { border-bottom-color: rgba(255, 255, 255, .08); padding: 0 0 3px; }
  #chattabs button { font-size: .72rem; padding: 3px 4px; text-shadow: 0 1px 2px #000; }
  #chattabs button[aria-selected="true"] { background: rgba(0, 0, 0, .35); }
  #chatin { background: rgba(0, 0, 0, .5); border-color: rgba(255, 255, 255, .12); font-size: 16px; padding: 7px 10px; }   /* 16px: anders zoomt iOS in bij typen */
  /* meldingen die eerst linksboven stonden: arena en duel onderin boven de tabs, xp rechts onder de minikaart */
  #xpdrops { top: calc(150px + env(safe-area-inset-top)); left: auto; right: 8px; transform: none; align-items: flex-end; }
  /* vensters schermvullend */
  #modal { padding: 0; }
  #modal .modal-box, #modal[data-kind] .modal-box { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .modal-box header { padding: calc(10px + env(safe-area-inset-top)) 12px 10px 16px; }
  #modal-body { padding: 12px; }
  #ctxmenu { min-width: 220px; max-width: calc(100vw - 12px); }
  #ctxmenu button { padding: 11px 12px; font-size: 1rem; }
  #vragen { top: 74px; }
  #pvpbadge { top: auto; bottom: calc(72px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: calc(100vw - 16px); font-size: .74rem; padding: 5px 10px; white-space: nowrap; }
  #duelbar { top: auto; bottom: calc(108px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 16px); font-size: .78rem; flex-wrap: wrap; justify-content: center; border-radius: var(--r-md); }
  body:not(.paneel-dicht) #pvpbadge, body:not(.paneel-dicht) #duelbar { bottom: calc(58vh + 8px); }
  /* winkel: nooit breder dan het scherm; twee kaartjes naast elkaar, knoppen onder de prijs */
  #modal[data-kind="winkel"] #modal-body { flex-direction: column; overflow-y: auto; }
  .shopwrap { grid-template-columns: minmax(0, 1fr); max-height: none; min-width: 0; }
  .shopnav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line-2); padding: 8px; scrollbar-width: none; }
  .shopnav h3, .shopnav .sep { display: none; }
  .shopnav .shopcat { flex: none; padding: 7px 10px; }
  .shopcat[aria-pressed="true"]::before { display: none; }
  .shopmain { padding: 10px; min-width: 0; overflow: visible; }
  .shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ware { min-width: 0; padding: 8px; gap: 4px; }
  .ware:hover { transform: none; }
  .ware .wi { height: 64px; }
  .ware .wn { font-size: .86rem; overflow-wrap: anywhere; }
  .ware .ws { font-size: .74rem; overflow-wrap: anywhere; }
  .ware .wr { white-space: normal; }
  .ware .wfoot { flex-direction: column; align-items: stretch; gap: 6px; }
  .ware .buy { width: 100%; } .ware .buy .btn { flex: 1; min-width: 0; padding: 7px 4px; }
  .ruilwrap, .ruilcols { grid-template-columns: 1fr; }
  /* bank (sinds 1.0): de bank vult het scherm met grotere vakjes, je rugzak klein eronder, de knoppen onderaan */
  #modal[data-kind="bank"] #modal-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding: 10px; }
  .bankpage { flex: 1; min-height: 0; gap: 8px; }
  .bankhead { gap: 6px; } .bankhead input { flex: 1 1 100%; font-size: 1rem; } .bankhead .btn { flex: 1 1 auto; padding: 8px 8px; } .bankhead small { width: 100%; }
  .bankcols { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
  .bankgrid { flex: 1; min-height: 140px; max-height: none; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px 2px 8px; }
  .bankgrid.lijst { grid-template-columns: 1fr; }
  .bankgrid .slot .n { font-size: .78rem; }
  .banktabs { padding-bottom: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .banktab { min-height: 40px; }  .bankhead > .btn { flex: 0 1 auto; } .bankhead .bankvol { width: auto; flex: 1 1 110px; margin-left: 0; grid-template-columns: auto 1fr; }
  #modal[data-kind="bank"] .bankinv { align-self: stretch; }
  .bankinvknop { flex-direction: row; margin-top: 0; } .bankinvknop .btn { flex: 1; min-width: 0; padding: 6px 4px; }
  .bankbrief .tussen { display: block !important; flex-basis: 100%; height: 0; margin: 0; overflow: hidden; }
  .bankinv small.bankinvtab { display: none; }
  #modal[data-kind="bank"] .bankinv { order: 1; flex: none; padding: 6px 8px; gap: 4px; }
  #modal[data-kind="bank"] .bankinv h3 { display: none; }
  #modal[data-kind="bank"] .bankinv .invgrid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .bankfoot { flex: none; gap: 4px; } .bankfoot > span { display: none; } .bankfoot .qty { flex: 1; min-width: 0; padding: 10px 4px; font-size: .9rem; }
  .bankfoot .hint { display: none; }
  .profskills { grid-template-columns: repeat(3, 1fr); }
  .socrij small { max-width: 90px; }
}
@media (max-height: 520px) {
  /* liggend, zoals RuneScape mobiel: twee kolommen tegels rechtsonder, het paneel zweeft ernaast */
  #side, #side.glass, body.buiten #side { left: auto; right: calc(8px + env(safe-area-inset-right)); top: auto; bottom: 8px; width: auto; max-height: calc(100vh - 16px); flex-direction: row-reverse; align-items: flex-end; gap: 8px;
    background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; padding: 0; overflow: visible; }
  #tabs { display: grid; grid-template-columns: repeat(2, 46px); grid-auto-rows: 46px; gap: 5px; padding: 0; border: 0; background: none; }
  .tab { width: min(330px, calc(100vw - 140px)); max-height: calc(100vh - 16px); background: var(--glass); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); backdrop-filter: blur(6px); }
  #xpdrops { top: calc(140px + env(safe-area-inset-top)); right: 120px; }
  #chat, #chat.glass { top: calc(60px + env(safe-area-inset-top)); width: min(48vw, 400px); }
  body.typen #chat, body.typen #chat.glass { width: min(70vw, 520px); }
  #chat #chatlog { max-height: 34vh; }
  body.chat-open:not(.paneel-dicht) #chat { transform: none; opacity: 1; pointer-events: auto; }   /* liggend passen chat en paneel naast elkaar */
  #pvpbadge, #duelbar, body:not(.paneel-dicht) #pvpbadge, body:not(.paneel-dicht) #duelbar { bottom: 8px; left: 50%; }
  #duelbar { bottom: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo, .logo .letter, .logo-shine, .startprompt, .btn.gold::after, .tag { animation-duration: .01s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
}

/* ------------------------------------------------ 0.9: quests, dagtaken, slayer, gesprekken, schatkaarten */
#quests { display: flex; flex-direction: column; gap: 10px; }
.qbox { background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.qkop { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--gold); }
.qkop small { margin-left: auto; color: var(--fg-3); font-weight: 600; }
.qtaak { display: flex; align-items: center; gap: 10px; }
.qtaak > .pix, .qtaak > canvas { flex: none; }
.qtaak.klaar { opacity: .6; }
.qtaak > .btn { margin-left: auto; flex: none; }
.qtt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.qtt b { font-size: .9rem; }
.qtt small { color: var(--fg-3); font-size: .78rem; }
.qbar { display: block; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .4); overflow: hidden; }
.qbar i { display: block; height: 100%; background: linear-gradient(90deg, #c08a24, var(--gold)); border-radius: 3px; }
.qtaak.klaar .qbar i { background: var(--good); }
details.quest { border-top: 1px solid var(--line); padding-top: 6px; }
details.quest summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
details.quest summary::-webkit-details-marker { display: none; }
details.quest summary small { margin-left: auto; color: var(--fg-3); font-size: .75rem; }
.qdot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #6b6380; box-shadow: 0 0 0 2px rgba(0, 0, 0, .3); }
.quest.nieuw .qdot { background: var(--gold); }
.quest.bezig .qdot { background: #7cc8ff; }
.quest.klaar .qdot { background: var(--good); }
.quest.klaar summary b { color: var(--fg-3); text-decoration: line-through; }
.quest.dicht summary b { color: var(--fg-3); }
.qinh { padding: 6px 0 2px 18px; display: flex; flex-direction: column; gap: 5px; font-size: .85rem; }
.qinh p { margin: 0; }
.qinh .ok { color: var(--good); } .qinh .no { color: var(--bad); }
.qstappen { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.qstappen li.done { color: var(--fg-3); text-decoration: line-through; }
.qstappen li.nu { color: var(--fg); font-weight: 700; }
.qbel { color: #ffd27a; }
.dlg { display: flex; gap: 14px; align-items: flex-start; max-width: 560px; }
.dlgcv { flex: none; image-rendering: pixelated; background: radial-gradient(circle at 50% 70%, rgba(246, 196, 83, .18), transparent 70%); border-radius: var(--r-md); }
.dlgt { display: flex; flex-direction: column; gap: 8px; }
.dlgt b { color: var(--gold); font-size: 1.05rem; }
.dlgt p { margin: 0; line-height: 1.5; }
.slpage { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.slpage p { margin: 0; }
.schatpage { display: flex; flex-direction: column; gap: 10px; align-items: center; max-width: 460px; text-align: center; }
.schatcv { image-rendering: pixelated; width: min(222px, 70vw); border-radius: 6px; border: 3px solid #8a6a3a; box-shadow: 0 6px 22px rgba(0, 0, 0, .5); }
.schatpage p { margin: 0; }
.qklaar { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-width: 420px; }
.qklaar h3 { margin: 0; color: var(--gold); font-family: var(--display); font-size: 1.5rem; }
.qklaar p { margin: 0; }
.qklaar ul { margin: 0; padding: 0; list-style: none; color: #ffd27a; }
.skl .boost.min { color: var(--bad); }
#chatlog .zeld2 { color: #7fdc95; } #chatlog .zeld3 { color: #6fb6ff; font-weight: 700; } #chatlog .zeld4 { color: #c07dff; font-weight: 700; }
#chatlog .zeld5 { color: #ffb347; font-weight: 800; text-shadow: 0 0 6px rgba(255, 179, 71, .5); }
#chatlog .zeld6 { color: #ff5d8f; font-weight: 800; text-shadow: 0 0 8px rgba(255, 93, 143, .6); }
/* Sinds 1.3: een paar effecten in de stijl van Animate.css (waar AnimateFX een JavaFX-versie van is), zelf geschreven:
   zeldzame buit en huisdieren springen eruit in de chat, het gebied waar je binnenloopt zakt zacht in beeld, en de soort
   die je kiest in de werkplaats klopt even. Wie minder beweging wil (instelling van het systeem), ziet ze niet. */
@keyframes gs-tada { 0% { transform: scale(1); } 10%, 20% { transform: scale(.96) rotate(-2deg); } 30%, 50%, 70%, 90% { transform: scale(1.06) rotate(2deg); } 40%, 60%, 80% { transform: scale(1.06) rotate(-2deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes gs-hartslag { 0%, 28%, 70% { transform: scale(1); } 14%, 42% { transform: scale(1.08); } }
@keyframes gs-inzakken { 0% { opacity: 0; transform: translate(-50%, -18px) scale(.94); filter: blur(3px); } 100% { opacity: 1; transform: translate(-50%, 0) scale(1); filter: blur(0); } }
@media (prefers-reduced-motion: no-preference) {
  #chatlog > div.zeld5, #chatlog > div.zeld6 { transform-origin: 0 50%; animation: var(--animation-slide-in-up), gs-tada 1s ease .25s; }
  #chatlog > div.zeld4 { transform-origin: 0 50%; animation: var(--animation-slide-in-up), gs-hartslag 1.1s ease .2s; }
  #zonetoast.show { animation: gs-inzakken .55s var(--ease-out-3) both; }
  .wsgroep.aan { animation: gs-hartslag .9s ease; }
  .profbaas:not(.nooit):hover canvas { animation: gs-hartslag .9s ease; }
}

/* ------------------------------------------------ sinds 1.1: het Grimgilde (was de Lantaarnclub), het nieuws, Annuleren, kamers met hoogtes */
#ctxmenu button.annuleer { color: var(--fg-3); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-xs) var(--r-xs); margin-top: 3px; padding-top: 8px; font-size: .86rem; }
#ctxmenu button.annuleer:hover, #ctxmenu button.annuleer:focus-visible { color: var(--fg); background: var(--s3); }
img.lidmerk { image-rendering: pixelated; vertical-align: -1px; flex: none; filter: drop-shadow(0 0 3px rgba(255, 194, 74, .55)); }
#chatlog img.lidmerk { margin-right: 4px; }
.lidtag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px;
  color: #2a1a05; background: linear-gradient(180deg, #ffd977, #e0a83a); box-shadow: 0 0 6px rgba(255, 194, 74, .35); }
.bh-chip.goud { background: var(--gold-soft); color: var(--gold); }
/* skills van de club */
.sktile.lidskill { border-color: color-mix(in srgb, var(--gold) 35%, var(--line-2)); }
.sktile.locked { opacity: .6; }
.sktile.locked .pix { filter: grayscale(.8); }
.lidmerk-sk { position: absolute; right: 3px; top: 3px; width: 7px; height: 9px; image-rendering: pixelated; background: no-repeat center / 7px 9px; opacity: .9; }
.clubbanner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border-radius: var(--r-md); background: linear-gradient(90deg, rgba(255, 194, 74, .16), rgba(255, 194, 74, .04)); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); font-weight: 600; }
.clubbanner span { flex: 1; min-width: 180px; }
.clubbanner.lid { background: rgba(127, 220, 149, .08); border-color: rgba(127, 220, 149, .35); }
.wsrow.club .wst b { color: #ffd27a; }
/* kamers: indelingen met hoogtes */
.size.lidsize { border-color: color-mix(in srgb, var(--gold) 30%, var(--line-2)); }
.size.locked { opacity: .62; }
.size.locked canvas { filter: grayscale(.6); }
.size .sn { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.size canvas { image-rendering: pixelated; max-width: 100%; }
.sizeinfo { margin: 2px 0 6px; color: var(--fg-2); }
/* De Gildewinkel */
#modal[data-kind="club"] .modal-box { width: min(900px, 100%); }
#modal[data-kind="nieuws"] .modal-box { width: min(640px, 100%); }
.clubpage { display: flex; flex-direction: column; gap: 16px; }
.clubhero { display: flex; gap: 18px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg, 14px); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  background: radial-gradient(circle at 12% 50%, rgba(255, 194, 74, .28), transparent 42%), linear-gradient(135deg, rgba(60, 40, 18, .65), rgba(20, 15, 28, .8)); }
.clublamp { flex: none; width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 120, .35), transparent 70%); animation: clubgloed 3.2s ease-in-out infinite; }
.clublamp img.lidmerk { filter: drop-shadow(0 0 10px rgba(255, 194, 74, .9)); }
@keyframes clubgloed { 50% { transform: translateY(-3px); filter: brightness(1.15); } }
.clubht { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.clubht h3 { margin: 0; font-family: var(--display); font-size: 1.7rem; color: var(--gold); line-height: 1.1; }
.clubstatus { margin: 0; font-weight: 700; }
.clubhero.lid .clubstatus { color: #9be7a6; }
.clubht small { color: var(--fg-3); }
.clubvoordelen h3, .clubwinkel h3 { margin: 0 0 8px; }
.clubgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.clubvd { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: var(--r-md); background: var(--s2); border: 1px solid var(--line); }
.clubvd b { color: #ffd27a; } .clubvd span { color: var(--fg-2); font-size: .86rem; line-height: 1.35; }
.clubwh { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.clubwh h3 { margin: 0; }
.clubkaarten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.clubkaart { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 14px 10px 12px; border-radius: var(--r-md); background: var(--s2); border: 1px solid var(--line-2); }
.clubkaart.aanrader { border-color: var(--gold); background: linear-gradient(180deg, rgba(255, 194, 74, .14), var(--s2)); box-shadow: 0 0 0 1px rgba(255, 194, 74, .2), 0 8px 22px rgba(0, 0, 0, .35); }
.clubkaart.aanrader::before { content: 'Meest gekozen'; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 999px; font-size: .66rem; font-weight: 800; color: #2a1a05; background: linear-gradient(180deg, #ffd977, #e0a83a); white-space: nowrap; }
.clubdagen { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.clubic { height: 44px; display: grid; place-items: center; }
.clubkaart small { color: var(--fg-3); font-size: .74rem; min-height: 2.2em; }
.clubkaart .wp { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.clubkaart .btn { margin-top: 4px; width: 100%; }
.clubopt { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--r-md); background: var(--s2); border: 1px solid var(--line); font-size: .86rem; color: var(--fg-2); }
.clubopt.lid { border-color: color-mix(in srgb, var(--gold) 45%, transparent); color: var(--fg); }
.clubknoppen { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; } .clubknoppen .btn { flex: 1; }
/* het nieuws (changelog) */
.nieuwspage { display: flex; flex-direction: column; gap: 10px; }
.nieuwsintro { margin: 0; color: var(--fg-2); }
.nieuwsknoppen { display: flex; justify-content: flex-end; gap: 8px; }
.clog { display: flex; flex-direction: column; gap: 10px; }
.clogv { padding: 10px 12px 8px; border-radius: var(--r-md); background: var(--s2); border: 1px solid var(--line); }
.clogv.nieuwste { border-color: color-mix(in srgb, var(--gold) 50%, transparent); background: linear-gradient(180deg, rgba(255, 194, 74, .09), var(--s2)); }
.clogkop { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.clogkop b { font-size: 1rem; } .clogkop small { color: var(--fg-3); margin-left: auto; font-size: .74rem; }
.clogver { padding: 1px 7px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-weight: 800; font-size: .74rem; font-variant-numeric: tabular-nums; }
.clog ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; font-size: .86rem; line-height: 1.4; color: var(--fg-2); }
.clog li.beheer { color: var(--fg-3); }
.clogbeheer { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; font-size: .62rem; font-weight: 800; text-transform: uppercase; background: rgba(124, 200, 255, .15); color: #9fd8ff; vertical-align: 1px; }
/* het nieuws op het inlogscherm */
.hs-tabs { margin: 0; }
.hs-tabs button { position: relative; }
.hs-tabs .tabdot { position: absolute; top: 5px; right: 8px; }
.hsnieuws { overflow-y: auto; min-height: 0; flex: 1; padding-right: 2px; }
.hsnieuws .clogv { background: rgba(0, 0, 0, .2); }
#nwopen { display: none; position: relative; }
#nwopen .tabdot { position: absolute; top: -2px; right: -8px; }
@media (max-width: 1060px), (max-height: 560px) { #nwopen { display: inline; margin-left: 10px; } }
@media (max-width: 760px) {
  .clubkaarten { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .clubhero { padding: 12px; gap: 12px; } .clubht h3 { font-size: 1.35rem; } .clublamp { width: 58px; height: 58px; }
}@media (max-width: 760px) {
  .clubgrid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .clubvd { padding: 7px 8px; } .clubvd b { font-size: .84rem; } .clubvd span { font-size: .74rem; line-height: 1.3; }
}.clubknoppen .lichtknop { flex-basis: 100%; }
.clubknoppen .lichtknop.wacht { opacity: .6; }
/* ------------------------------------------------ sinds 1.2: speciale aanval, eten met wachttijd, De Gildewinkel met echt geld */
#specbar { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
#specbar[hidden] { display: none; }
.specbar { position: relative; display: block; height: 15px; border-radius: 999px; overflow: hidden; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .05); }
.specbar i { position: absolute; inset: 0; width: 0; background: linear-gradient(180deg, #8a7a5a, #5d523c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); transition: width .4s; border-radius: inherit; }
.specbar span { position: relative; display: block; text-align: center; font-weight: 700; font-size: .72rem; line-height: 15px; color: #fff4d8; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); white-space: nowrap; }
#specbar.kan .specbar i { background: linear-gradient(180deg, #ffe98a, #e0a020); }
#specbar.aan .specbar { box-shadow: 0 0 0 2px var(--gold), 0 0 12px rgba(255, 210, 90, .7); }
#specbar.aan .specbar i { background: linear-gradient(180deg, #fff3b0, #ffb020); animation: var(--animation-blink); animation-duration: 1.2s; }
#specbar:hover .specbar span { color: #fff; }
.orb.spec { --oc: #e0a020; color: #ffe39a; } .orb.spec.aan { box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(255, 210, 90, .7); } .orb.spec[hidden] { display: none; }
/* een klokje over eten en drankjes zolang je nog bezig bent met eten of drinken */
.slot .eetklok { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: conic-gradient(rgba(10, 6, 18, .62) var(--eet, 100%), transparent 0); animation: eetklok linear forwards; }
@property --eet { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
@keyframes eetklok { from { --eet: 100%; } to { --eet: 0%; } }
/* De Gildewinkel */
.clubkaart .wp.euro { font-size: 1.15rem; color: var(--gold); }
.chip.testchip { background: rgba(124, 200, 255, .15); color: #9fd8ff; border-color: rgba(124, 200, 255, .35); }
.clubdicht { margin: 0 0 10px; padding: 10px 12px; border-radius: var(--r-md); background: rgba(124, 200, 255, .08); border: 1px solid rgba(124, 200, 255, .3); color: #cfe8ff; }
.clubfout { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--r-md); background: var(--bad-soft); border: 1px solid var(--bad); color: #ffd0c8; font-weight: 600; }
.clubvoor { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .86rem; color: var(--fg-2); }
.clubvoor input { flex: 1; min-width: 0; }
.clubbetalingen { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.clubbetalingen h3 { margin: 0 0 4px; }
.clubbet { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: var(--r-xs); background: var(--s2); font-size: .84rem; }
.clubbet small { color: var(--fg-3); } .clubbet.ok b { color: var(--good); } .clubbet.mis b { color: var(--fg-3); text-decoration: line-through; }/* beheer: betalingen (sinds 1.2) */
.bh-betstatus { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--s2); margin-bottom: 12px; }
.bh-betstatus span { color: var(--fg-2); font-size: .84rem; }
.bh-betstatus.test { border-color: rgba(124, 200, 255, .4); background: rgba(124, 200, 255, .07); } .bh-betstatus.test b { color: #9fd8ff; }
.bh-betstatus.live { border-color: rgba(127, 220, 149, .4); background: rgba(127, 220, 149, .07); } .bh-betstatus.live b { color: var(--good); }
.bh-betprijzen { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; width: 100%; }
.bh-betprijzen label { display: flex; flex-direction: column; gap: 2px; font-size: .78rem; color: var(--fg-2); }
.bh-betuitleg { margin: 0 0 12px; padding-left: 20px; color: var(--fg-2); font-size: .86rem; display: flex; flex-direction: column; gap: 4px; }