:root {
    --bg: #0d0820;
    --ink: #f6f0d6;
    --gold: #ffd166;
    --pink: #ff4fa3;
    --muted: #7d74a8;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: "Press Start 2P", monospace;
    line-height: 1.6;
    image-rendering: pixelated;
}

/* faint CRT scanlines */
body::after {
    content: "";
    position: fixed; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
}

a { color: var(--gold); }

.lobby {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: clamp(20px, 4vw, 36px);
    padding: 32px 16px;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: clamp(14px, 3.2vw, 28px);
    font-weight: 400;
    color: var(--gold);
    text-shadow: 3px 3px 0 #8e2a22;
}

.scene {
    width: min(100%, 768px);
    height: auto;
    border: 4px solid var(--ink);
    box-shadow: 8px 8px 0 #000;
}

.enter {
    margin: 0;
    font-size: clamp(12px, 2.4vw, 20px);
}
.cursor { animation: blink 1s steps(1) infinite; }

/* door: closed by default, swings open on hover/focus */
.door { cursor: pointer; outline: none; }
.door-open { visibility: hidden; }
.door:hover .door-open, .door:focus-visible .door-open { visibility: visible; }
.door:hover .door-closed, .door:focus-visible .door-closed { visibility: hidden; }
.door:focus-visible > rect:first-child { fill: var(--gold); }

/* bellboy beckons: two-frame arm animation */
.arm-out { animation: frameA 1.2s steps(1) infinite; }
.arm-up  { animation: frameB 1.2s steps(1) infinite; }
@keyframes frameA { 0% { visibility: visible; } 50% { visibility: hidden; } }
@keyframes frameB { 0% { visibility: hidden; } 50% { visibility: visible; } }

.sign { animation: neon 5s steps(1) infinite; }
@keyframes neon { 0%, 100% { opacity: 1; } 61% { opacity: .25; } 63% { opacity: 1; } 66% { opacity: .25; } 68% { opacity: 1; } }

.flicker { animation: blink 3s steps(1) infinite; }
.stars { animation: twinkle 2.4s steps(1) infinite; }
@keyframes twinkle { 50% { opacity: .4; } }
@keyframes blink { 50% { opacity: 0; } }

.site-footer {
    display: flex; justify-content: center; gap: 24px;
    padding: 16px;
    font-size: 8px;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Impressum / Datenschutz */
.page { flex: 1; max-width: 720px; margin: 0 auto; padding: 48px 16px; font-size: 11px; line-height: 2; }
.page h1 { margin-bottom: 24px; }

/* Stats */
.stats { max-width: 820px; }
.stat-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 32px; }
.stat-boxes div { border: 4px solid var(--ink); box-shadow: 6px 6px 0 #000; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.stat-boxes span, .stat-boxes small { font-size: 9px; color: var(--muted); }
.stat-boxes strong { font-size: 24px; color: var(--gold); font-weight: 400; }
.stats table { width: 100%; border-collapse: collapse; font-size: 10px; }
.stats th { text-align: left; color: var(--muted); font-weight: 400; padding: 8px 6px; border-bottom: 4px solid var(--ink); }
.stats td { padding: 8px 6px; border-bottom: 2px dashed #2a2350; }
.bar-cell { width: 40%; }
.bar { display: block; height: 10px; min-width: 2px; background: var(--pink); }
.note { color: var(--muted); font-size: 8px; margin-top: 24px; }

@media (max-width: 560px) {
    .bar-cell { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; }
}
