/* Gedeelde stijl voor Egel World. */
:root { --gras: #5a9e3a; --donker: #2d3a1f; --licht: #f4f1e6; --accent: #c8792a; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: var(--licht); color: var(--donker); }
main { max-width: 420px; margin: 8vh auto; padding: 24px; background: #fff; border-radius: 16px; box-shadow: 0 4px 24px #0002; }
h1 { margin-top: 0; text-align: center; }
form { display: grid; gap: 10px; }
input, button { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid #bbb; }
button { background: var(--accent); color: #fff; border: 0; cursor: pointer; }
button.tweede { background: #888; }
.fout { color: #b00020; min-height: 1.2em; }
.klein { font-size: .9em; color: #666; text-align: center; }

/* Spelpagina */
body.spel { overflow: hidden; background: var(--gras); }
#veld { display: block; width: 100vw; height: 100vh; }
#hud { position: fixed; top: 8px; left: 8px; background: #0008; color: #fff; padding: 6px 10px; border-radius: 8px; }
#chat { position: fixed; bottom: 8px; left: 8px; width: min(420px, 90vw); }
#berichten { max-height: 30vh; overflow-y: auto; background: #0006; color: #fff; padding: 6px 10px; border-radius: 8px; font-size: .9em; }
#berichten:empty { display: none; }
#chatform input { width: 100%; margin-top: 6px; }
#gebied { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); background: #0008; color: #fff; padding: 6px 14px; border-radius: 8px; font-weight: bold; }
#gebied:empty { display: none; }
#verzameling { position: fixed; top: 8px; right: 8px; background: #000a; color: #fff; padding: 8px 12px; border-radius: 10px; font-size: .9em; min-width: 170px; }
#score { font-size: 1.3em; font-weight: bold; color: #ffd75e; margin-bottom: 4px; }
#categorieen div, #ranglijst div { display: flex; justify-content: space-between; gap: 12px; }
#categorieen div[title] { cursor: help; }
#ranglijst { margin-top: 6px; padding-top: 6px; border-top: 1px solid #fff3; }
#ranglijst:empty { display: none; }
#ranglijst .ik { color: #fff59d; }
#meldingen { position: fixed; top: 30%; left: 50%; transform: translateX(-50%); pointer-events: none; text-align: center; }
#meldingen div { font-size: 1.6em; font-weight: bold; color: #fff; text-shadow: 0 2px 6px #000c; animation: omhoog 1.6s ease-out forwards; }
@keyframes omhoog { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-60px); } }
#uitleg { position: fixed; bottom: 8px; right: 8px; background: #0006; color: #fffc; padding: 4px 10px; border-radius: 8px; font-size: .8em; }
@media (max-width: 700px) { #uitleg { display: none; } #verzameling { font-size: .8em; min-width: 0; } }
