/* Dorfjagd – Wildschwein-Alarm */
.dorfjagd-root.dj { --dj-bg:#060a1c; --dj-panel:rgba(10,15,44,.92); --dj-line:rgba(110,140,255,.35); --dj-accent:#ffe14d; --dj-text:#e8edff; --dj-muted:#9fb0e6;
	position:relative; width:100%; max-width:1100px; margin:1.5em auto; font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:var(--dj-text); line-height:1.4; }
.dj *, .dj *::before, .dj *::after { box-sizing:border-box; }
.dj-stage { position:relative; width:100%; aspect-ratio:4/3; max-height:82vh; min-height:340px; background:var(--dj-bg); border-radius:14px; overflow:hidden;
	box-shadow:0 0 0 1px var(--dj-line), 0 18px 50px rgba(0,0,30,.45); user-select:none; -webkit-user-select:none; -webkit-tap-highlight-color:transparent; }
@media (max-width:640px) { .dj-stage { aspect-ratio:3/4; } }
.dj-canvas { position:absolute; inset:0; width:100%; height:100%; display:block; touch-action:none; outline:none; }

/* Vollbild / Spielmodus am Handy */
.dorfjagd-root.dj.dj-fs { position:fixed; inset:0; z-index:2147483000; max-width:none; margin:0; background:var(--dj-bg); }
.dj-fs .dj-stage { width:100%; height:100vh; height:100dvh; max-height:none; aspect-ratio:auto; border-radius:0; box-shadow:none; }
html.dj-noscroll, html.dj-noscroll body { overflow:hidden !important; overscroll-behavior:none; }

/* Buttons oben rechts */
.dj-buttons { position:absolute; top:6px; right:6px; display:flex; gap:4px; z-index:3; }
.dj-btn-icon { width:36px; height:36px; border-radius:10px; border:1px solid var(--dj-line); background:rgba(8,12,40,.75); color:#fff; font-size:17px; line-height:1;
	cursor:pointer; display:grid; place-items:center; padding:0; font-family:inherit; }
.dj-btn-icon:hover { background:rgba(40,60,160,.85); }
.dj-btn-icon.off { opacity:.4; }

/* Steuerkreuz */
.dj-pad { position:absolute; right:14px; bottom:14px; width:150px; height:150px; z-index:3; display:grid; grid-template:repeat(3,1fr)/repeat(3,1fr); gap:4px; opacity:.85; }
.dj-pad button { border:1px solid var(--dj-line); background:rgba(20,30,90,.6); color:#fff; border-radius:12px; font-size:20px; padding:0; touch-action:none; }
.dj-pad button.on { background:rgba(255,225,77,.55); color:#111; }
.dj-pad-up { grid-area:1/2; } .dj-pad-left { grid-area:2/1; } .dj-pad-right { grid-area:2/3; } .dj-pad-down { grid-area:3/2; }

/* Overlay & Panels */
.dj-overlay { position:absolute; inset:0; z-index:4; display:none; align-items:center; justify-content:center; padding:14px; background:rgba(3,5,18,.45); backdrop-filter:blur(2px); }
.dj-overlay.on { display:flex; }
.dj-panel { width:min(560px,100%); max-height:100%; overflow:auto; background:var(--dj-panel); border:1px solid var(--dj-line); border-radius:16px; padding:18px 20px;
	box-shadow:0 10px 40px rgba(0,0,0,.5); text-align:center; -webkit-overflow-scrolling:touch; }
.dj-panel.dj-small { width:min(360px,100%); }
.dj-loading { color:var(--dj-muted); font-weight:600; }
.dj .dj-title { margin:0 0 4px; font-size:clamp(22px,4.4vw,32px); font-weight:900; letter-spacing:.02em; color:var(--dj-accent);
	text-shadow:0 0 18px rgba(255,225,77,.35), 0 2px 0 #7a5a00; line-height:1.15; font-family:inherit; }
.dj .dj-sub { margin:0 0 10px; color:var(--dj-muted); font-size:14px; }
.dj .dj-h3 { margin:16px 0 6px; font-size:15px; color:#fff; font-family:inherit; }
.dj-cast { display:flex; justify-content:center; gap:6px; flex-wrap:wrap; margin:6px 0 12px; }
.dj-cast figure { margin:0; width:72px; }
.dj-cast-img { width:56px; height:44px; display:block; margin:0 auto; }
.dj-cast figcaption { font-size:11px; font-weight:700; color:var(--dj-accent); }

.dj-form { display:flex; flex-direction:column; gap:8px; align-items:stretch; margin:0 auto; max-width:360px; }
.dj-form.dj-inline { flex-direction:row; margin-top:6px; }
.dj-label { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:600; color:var(--dj-muted); text-align:left; }
.dj .dj-input { width:100%; font-family:inherit; font-size:17px; font-weight:600; line-height:1.2; padding:11px 12px; border-radius:10px; border:1px solid var(--dj-line); background:#0b1238; color:#fff; }
.dj .dj-input:focus { outline:2px solid var(--dj-accent); outline-offset:1px; }
/* Theme-Regeln (z. B. input:focus { color:#000 }) sicher überstimmen */
.dorfjagd-root.dj input.dj-input, .dorfjagd-root.dj input.dj-input:hover, .dorfjagd-root.dj input.dj-input:focus, .dorfjagd-root.dj input.dj-input:active {
	color:#fff !important; -webkit-text-fill-color:#fff !important; background:#0b1238 !important; caret-color:#ffe14d; border-color:var(--dj-line); box-shadow:none; }
.dorfjagd-root.dj input.dj-input:focus { border-color:var(--dj-accent) !important; }
.dorfjagd-root.dj input.dj-input::placeholder { color:#8d9bd0 !important; -webkit-text-fill-color:#8d9bd0 !important; opacity:1; }
.dorfjagd-root.dj input.dj-input:-webkit-autofill, .dorfjagd-root.dj input.dj-input:-webkit-autofill:focus { -webkit-box-shadow:0 0 0 60px #0b1238 inset !important; -webkit-text-fill-color:#fff !important; }
.dj .dj-btn { font-family:inherit; font-size:17px; font-weight:800; line-height:1; padding:13px 18px; border-radius:12px; border:0; cursor:pointer; margin:4px; }
.dj .dj-btn-play { background:linear-gradient(180deg,#ffe866,#ffc61a); color:#2a1d00; box-shadow:0 4px 0 #a37700, 0 0 24px rgba(255,210,40,.35); }
.dj .dj-btn-play:active { transform:translateY(2px); box-shadow:0 2px 0 #a37700; }
.dj .dj-btn-ghost { background:transparent; color:var(--dj-text); border:1px solid var(--dj-line); }
.dj .dj-btn-small { padding:10px 14px; font-size:15px; margin:0; background:var(--dj-accent); color:#2a1d00; }
.dj .dj-error { color:#ff8a8a; font-size:13px; margin:0; min-height:1em; }
.dj-help { margin:12px 0 4px; display:grid; gap:5px; text-align:left; font-size:13px; color:var(--dj-muted); }
.dj-help-row { display:flex; gap:8px; align-items:flex-start; }
.dj-help-ico { width:20px; flex:none; text-align:center; }
.dj-check { display:block; font-size:13px; color:var(--dj-muted); margin-top:6px; }
.dj .dj-privacy { font-size:11.5px; color:var(--dj-muted); margin:10px 0 0; }
.dj .dj-osm { font-size:11px; color:rgba(160,175,230,.7); margin:6px 0 0; }
.dj-row { display:flex; justify-content:center; flex-wrap:wrap; gap:4px; margin-top:10px; }

/* Ergebnis */
.dj-final { display:flex; flex-direction:column; align-items:center; margin:6px 0; }
.dj-final-score { font:900 clamp(34px,8vw,52px)/1 ui-monospace,Menlo,Consolas,monospace; color:#fff; text-shadow:0 0 20px rgba(120,160,255,.6); }
.dj-final-label { font-size:13px; color:var(--dj-muted); margin-top:4px; }
.dj .dj-result { font-weight:700; color:var(--dj-accent); margin:8px 0 0; min-height:1.2em; }

/* Bestenliste (Spiel + Shortcode) */
.dj-board, .dorfjagd-board { list-style:none; margin:0 auto; padding:0; max-width:420px; text-align:left; counter-reset:none; }
.dj-board li, .dorfjagd-board li { display:flex; align-items:baseline; gap:8px; padding:5px 10px; border-radius:8px; font-size:14px; }
.dj-board li:nth-child(odd) { background:rgba(255,255,255,.04); }
.dj-board li.dj-me { background:rgba(255,225,77,.18); outline:1px solid rgba(255,225,77,.5); }
.dj-board li.dj-empty { justify-content:center; color:var(--dj-muted); font-size:13px; }
.dj-rank { width:30px; text-align:right; color:var(--dj-muted); font-weight:700; flex:none; }
.dj-name { flex:1; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dj-score { font:700 14px ui-monospace,Menlo,Consolas,monospace; }
.dj-board li:nth-child(1) .dj-rank::before { content:"🥇"; } .dj-board li:nth-child(2) .dj-rank::before { content:"🥈"; } .dj-board li:nth-child(3) .dj-rank::before { content:"🥉"; }
.dj-board li:nth-child(-n+3) .dj-rank { font-size:0; } .dj-board li:nth-child(-n+3) .dj-rank::before { font-size:15px; }
.dj-board li.dj-empty .dj-rank::before { content:none; }

/* Shortcode [dorfjagd_highscores] auf hellen Seiten */
.dorfjagd-board { border:1px solid #d8dcef; border-radius:12px; padding:6px; background:#fff; color:#1a1f36; }
.dorfjagd-board li:nth-child(odd) { background:#f4f6fd; }
.dorfjagd-board .dj-rank { color:#5a6390; }
.dorfjagd-board .dj-meta { font-size:12px; color:#7a83a8; flex:none; }
.dorfjagd-board .dj-score { color:#1a1f36; }
