/* ItsJonny.com — Design-Tokens
   Farben:
     --bg        #0B0E1A  tiefes Navy-Schwarz (kein reines #000)
     --surface   #131826  Kartenflächen
     --surface-2 #1B2233  angehobene Flächen (Cabinet-Bezel)
     --line      #2A3348  Trennlinien/Borders
     --text      #E8EAF2  Haupttext
     --text-dim  #8A93AC  Nebentext
     --amber     #FF9E2C  warmer Pixel-Glow (Counter)
     --cyan      #4FE3FF  kühler Zweitakzent (Links, Game/Leaderboard)
   Typo:
     Space Grotesk — Headlines + Fließtext (ein Family, zwei Gewichte)
     Press Start 2P — NUR für die Counter-Ziffern, bewusst sparsam eingesetzt
*/

:root {
  --bg: #0B0E1A;
  --surface: #131826;
  --surface-2: #1B2233;
  --line: #2A3348;
  --text: #E8EAF2;
  --text-dim: #8A93AC;
  --amber: #FF9E2C;
  --cyan: #4FE3FF;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.5;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* --- Topbar --- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.topbar nav { display: flex; align-items: center; gap: 20px; }
.topbar nav a { color: var(--text-dim); font-size: 0.95rem; }
.topbar nav a:hover { color: var(--text); text-decoration: none; }
.topbar nav a.ghost { color: var(--text-dim); }

.cta-small {
  background: var(--amber);
  color: #1A1000 !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
}
.cta-small:hover { text-decoration: none; opacity: 0.9; }

.nav-fun-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1;
  padding: 6px 9px;
  cursor: pointer;
}
.nav-fun-btn:hover { border-color: var(--amber); }

/* --- Hero: asymmetrisch, Cabinet rechts statt zentrierter Gradient-Card --- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 32px 48px;
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.lede {
  color: var(--text-dim);
  max-width: 46ch;
  margin: 0 0 28px;
}

.cta {
  display: inline-block;
  background: var(--amber);
  color: #1A1000;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
}
.cta:hover { text-decoration: none; opacity: 0.9; }

.cta-secondary {
  display: inline-block;
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 8px;
  margin-left: 10px;
}
.cta-secondary:hover { text-decoration: none; color: var(--cyan); border-color: var(--cyan); }

/* Arcade-Cabinet-Bezel für den Zähler */
.counter-cabinet {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px 24px;
  position: relative;
}

.counter-cabinet::before,
.counter-cabinet::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  top: 14px;
}
.counter-cabinet::before { left: 14px; }
.counter-cabinet::after { right: 14px; }

.cabinet-label {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.cabinet-screen {
  background: #05060B;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 12px;
  text-align: center;
}

.digits {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--amber);
  text-shadow: 0 0 8px rgba(255, 158, 44, 0.55), 0 0 20px rgba(255, 158, 44, 0.25);
  letter-spacing: 4px;
}

.cabinet-footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 14px;
}

/* --- Guestbook --- */
.guestbook {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 32px 96px;
}

.guestbook h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.guestbook-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guestbook-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gb-user { color: var(--cyan); font-weight: 600; }
.gb-text { color: var(--text-dim); }

.muted { color: var(--text-dim); font-size: 0.9rem; }

/* --- Responsive --- */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
  .topbar { padding: 16px 20px; }
  .topbar nav { gap: 12px; flex-wrap: wrap; }
}

/* --- Profil --- */
.profile-main, .game-main, .leaderboard-main, .admin-main {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 32px 96px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
}

.avatar { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); }

.profile-card h1 { margin: 0 0 2px; font-size: 1.4rem; }
.profile-username { font-size: 0.85rem; margin-bottom: 6px; }
.profile-status { font-size: 0.85rem; color: var(--cyan); margin: 2px 0; }
.profile-birthday { font-size: 0.85rem; color: var(--amber); margin: 2px 0; }

.profile-banner {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  margin-bottom: -20px;
  margin-top: 8px;
  border: 1px solid var(--line);
}
.profile-media-form { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.profile-media-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--text-dim); width: 100%; }
.profile-media-form input[type="file"] {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  color: var(--text);
  font-family: inherit;
}

.badges { margin-bottom: 40px; }
.achievement-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.achievement-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.achievement-locked { opacity: 0.55; }
.achievement-unlocked { border-color: var(--amber); }

.special-awards { margin-bottom: 32px; }
.special-award-item {
  background: linear-gradient(90deg, rgba(255,158,44,0.08), transparent);
  border-color: var(--amber) !important;
}
.ach-icon { font-size: 1.3rem; width: 28px; text-align: center; flex-shrink: 0; }
.ach-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ach-label { font-weight: 500; }
.ach-desc { font-size: 0.8rem; color: var(--text-dim); }
.ach-progress { font-size: 0.8rem; color: var(--text-dim); }
.to-unlock-heading { margin: 24px 0 12px; font-size: 0.95rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.ach-bar { height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.ach-bar-fill { height: 100%; background: var(--cyan); }

.comment-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 12px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 10px;
}

.error { color: var(--amber); font-size: 0.9rem; }

/* --- Game --- */
.game-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  justify-items: center;
  text-align: center;
}

.game-cabinet { width: 100%; max-width: 360px; }

/* Riesiges Tap-Feld statt Upgrade-Liste */
.tap-button {
  width: 100%;
  max-width: 360px;
  height: 220px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--amber), #d97f18);
  color: #1A1000;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 8px 0 #a8630f, 0 10px 24px rgba(255, 158, 44, 0.35);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
  user-select: none;
}
.tap-button:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 #a8630f, 0 4px 12px rgba(255, 158, 44, 0.35);
}

/* Tier-Icon neben Leaderboard-Namen */
.tier-tag { margin-left: 4px; font-size: 0.9rem; }

/* --- Leaderboard --- */
.leaderboard-filters { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 14px;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-decoration: none;
}
.filter-btn:hover { color: var(--text); text-decoration: none; }
.filter-btn-active { background: var(--amber); color: #1A1000; border-color: var(--amber); font-weight: 600; }
.leaderboard-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.leaderboard-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
}
.rank { color: var(--text-dim); width: 1.5em; }
.leaderboard-user-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  flex: 1;
}
.leaderboard-user-link:hover { color: var(--cyan); text-decoration: none; }
.leaderboard-user-link:hover .avatar-sm { outline: 2px solid var(--cyan); }
.score { margin-left: auto; color: var(--amber); font-weight: 600; }

/* --- Admin --- */
.stat-row { display: flex; gap: 16px; margin-bottom: 40px; }

.admin-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.admin-section summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.admin-section summary::-webkit-details-marker { display: none; }
.admin-section summary::before {
  content: '▸';
  color: var(--text-dim);
  transition: transform 0.15s ease;
}
.admin-section[open] summary::before { transform: rotate(90deg); }
.admin-section summary:hover { background: var(--surface-2); }
.admin-section-body { padding: 4px 20px 20px; border-top: 1px solid var(--line); padding-top: 16px; }

.admin-page-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.admin-page-stats li {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 0.9rem;
}

.badge-select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  padding: 6px 8px;
  font-family: inherit;
  font-size: 0.85rem;
}

.admin-audit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 500px; overflow-y: auto; }
.admin-audit-list li {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 6px;
}
.audit-time { color: var(--text-dim); font-size: 0.75rem; white-space: nowrap; }
.audit-actor { color: var(--amber); font-weight: 600; }
.audit-action { color: var(--text); }

.admin-badge-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.admin-badge-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 0.9rem;
}
.admin-badge-list li form { margin-left: auto; }

.wall-image-label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--text-dim); }
.admin-wall-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.wall-edit-details { margin: -4px 0 8px 0; }
.wall-edit-details summary { cursor: pointer; font-size: 0.8rem; color: var(--text-dim); padding: 2px 12px; }
.wall-edit-details form { margin-top: 8px; }

.wall-entry-img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }

/* --- Wall-Bildgrößen (vom Admin gewählt) --- */
.wall-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wall-img-small { max-height: 100px; width: auto; border-radius: 8px; object-fit: cover; }
.wall-img-medium { max-height: 220px; width: auto; border-radius: 8px; object-fit: cover; }
.wall-img-large { max-height: 380px; width: auto; border-radius: 8px; object-fit: cover; }
.wall-img-full { width: 100%; max-height: none; border-radius: 8px; object-fit: cover; }

.wall-vote-box { display: flex; gap: 8px; margin-top: 10px; }
.wall-vote-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}
.wall-vote-btn.wall-vote-up:hover:not(:disabled) { color: #4CAF50; border-color: #4CAF50; }
.wall-vote-btn.wall-vote-down:hover:not(:disabled) { color: #ff6b6b; border-color: #ff6b6b; }
.wall-vote-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.wall-edit-images { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.wall-edit-img-item { position: relative; display: inline-flex; }
.wall-edit-img-item form { position: absolute; top: -6px; right: -6px; }
.wall-edit-img-item .ghost-btn { padding: 0 5px; border-radius: 50%; background: var(--bg); }
.stat {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.stat strong { display: block; font-size: 1.6rem; color: var(--cyan); }
.stat span { color: var(--text-dim); font-size: 0.85rem; }

.admin-comment-list, .admin-user-list { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-comment-list li, .admin-user-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}
.hidden-comment { opacity: 0.45; }

.ghost-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: auto;
}
.ghost-btn:hover { color: var(--text); border-color: var(--text-dim); }

.badge-form { display: flex; gap: 8px; margin-left: auto; }
.badge-form input[type="text"] {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  padding: 4px 8px;
  font-family: inherit;
}

/* --- Hero Zusatz-Texte --- */
.subline { color: var(--amber); font-size: 1rem; margin: 0 0 20px; }
.fine-print { color: var(--text-dim); font-size: 0.8rem; margin-top: 10px; max-width: 40ch; }
.ghost-link { color: var(--cyan); font-size: 0.85rem; display: inline-block; margin-top: 14px; }

/* Kompakter Stats-Teaser auf der Startseite (statt großem Cabinet) */
.stats-teaser {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px 24px;
  text-align: center;
}

.guestbook-preview {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 32px 96px;
}
.guestbook-preview h2 { font-size: 1.1rem; margin-bottom: 16px; }

/* --- Footer --- */
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-fun {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.footer-fun-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-right: 4px;
}
.fun-btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* --- Stats-Seite --- */
.stats-main { max-width: 900px; margin: 0 auto; padding: 48px 32px 96px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.stat-tile strong { display: block; font-size: 1.8rem; color: var(--amber); font-family: 'Press Start 2P', monospace; margin-bottom: 8px; }
.stat-tile span { color: var(--text-dim); font-size: 0.85rem; }

/* --- Guestbook (voll) --- */
.guestbook-main { max-width: 720px; margin: 0 auto; padding: 48px 32px 96px; }
.guestbook-list-full { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.guestbook-list-full li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
}
.gb-body { flex: 1; }
.gb-time { font-size: 0.75rem; margin-left: 8px; }
.mention { color: var(--amber); font-weight: 600; background: rgba(255,158,44,0.12); padding: 1px 4px; border-radius: 4px; }
.mention:hover { text-decoration: none; background: rgba(255,158,44,0.22); }
.gb-actions { margin-top: 6px; display: flex; gap: 12px; }
.gb-action-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
}
.gb-action-btn:hover { color: var(--cyan); text-decoration: underline; }

/* --- Verschachtelte Antworten --- */
.gb-reply-form { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; max-width: 480px; }
.gb-reply-form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  padding: 8px 10px;
  font-family: inherit;
  resize: vertical;
}
.gb-replies {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gb-replies .guestbook-list-full,
.gb-replies { background: none; }
li.gb-depth-1, li.gb-depth-2, li.gb-depth-3, li.gb-depth-4 {
  padding: 10px 12px;
}
.gb-more-replies { margin-top: 4px; }
.gb-more-replies summary {
  cursor: pointer;
  color: var(--cyan);
  font-size: 0.8rem;
  list-style: none;
}
.gb-more-replies summary::-webkit-details-marker { display: none; }
.gb-more-replies summary::before { content: '▸ '; }
.gb-more-replies[open] summary::before { content: '▾ '; }
.gb-more-replies > li:not(summary) { margin-top: 10px; }
.vote-box { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.vote-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  white-space: nowrap;
}
.vote-btn.vote-up:hover:not(:disabled) { color: #4CAF50; border-color: #4CAF50; }
.vote-btn.vote-down:hover:not(:disabled) { color: #ff6b6b; border-color: #ff6b6b; }
.vote-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Wall of Fame/Shame --- */
.wall-main { max-width: 1000px; margin: 0 auto; padding: 48px 32px 96px; }
.wall-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.wall-col h2 { margin-bottom: 14px; }
.wall-entry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 16px 14px;
  margin-bottom: 10px;
}
.wall-fame .wall-entry { border-left: 3px solid var(--amber); }
.wall-shame .wall-entry { border-left: 3px solid var(--cyan); }

.wall-entry-summary {
  cursor: pointer;
  padding: 10px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
}
.wall-entry-summary::-webkit-details-marker { display: none; }
.wall-entry-summary::before {
  content: '▸';
  color: var(--text-dim);
  margin-right: 8px;
  transition: transform 0.15s ease;
}
.wall-entry[open] .wall-entry-summary::before { transform: rotate(90deg); }
.wall-entry-title { flex: 1; }
.wall-read-badge {
  display: none;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
}
.wall-seen .wall-read-badge { display: inline-block; }
.wall-seen .wall-entry-summary { color: var(--text-dim); font-weight: 500; }

.wall-entry-body { padding-top: 4px; }
.wall-entry-body p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

@media (max-width: 700px) {
  .wall-columns { grid-template-columns: 1fr; }
}

/* --- Admin: Wall-Verwaltung --- */
.wall-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
  max-width: 480px;
}
.wall-form select, .wall-form input, .wall-form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  padding: 8px 10px;
  font-family: inherit;
}
.admin-wall-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-wall-list li,
.admin-poll-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}
.admin-poll-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-poll-list li form { margin-left: auto; }
.wall-kind-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-dim);
}
.wall-kind-tag.wall-kind-fame { color: var(--amber); }
.wall-kind-tag.wall-kind-shame { color: var(--cyan); }

/* --- Legal-Seiten --- */
.legal-main { max-width: 700px; margin: 0 auto; padding: 48px 32px 96px; }
.legal-main h2 { margin-top: 32px; font-size: 1.1rem; }
.legal-main ul { color: var(--text-dim); }
.legal-main code { background: var(--surface); padding: 2px 6px; border-radius: 4px; }
.legal-main .credit { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-dim); }

.about-main .lede { color: var(--text-dim); font-size: 1.05rem; margin-top: 12px; }
.quote-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.quote-list li {
  font-style: italic;
  color: var(--amber);
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

/* --- Contact --- */
.contact-main { max-width: 900px; }
.contact-columns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; margin-top: 20px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.contact-email-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.contact-email-box h2 { font-size: 1.05rem; margin: 0 0 8px; }
.contact-email-box p { margin-bottom: 16px; }
.contact-email-box .cta { display: inline-block; }
@media (max-width: 700px) {
  .contact-columns { grid-template-columns: 1fr; }
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--text-dim); }
.contact-form input, .contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
}

/* --- Bio --- */
.bio-editor { margin-bottom: 32px; }
.bio-editor textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 8px;
}
.user-bio {
  font-style: italic;
  color: var(--text-dim);
  border-left: 2px solid var(--line);
  padding-left: 12px;
  margin: 16px 0;
}

/* --- Fake-Admin-Link (Troll) --- */
.fake-admin-link {
  display: inline-block;
  color: #ff8a8a;
  font-size: 0.85rem;
  border: 1px dashed #7a2020;
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: 16px;
  text-decoration: none;
}
.fake-admin-link:hover { background: rgba(255, 59, 59, 0.08); text-decoration: none; }

/* --- Fake-Ladeseite --- */
.loading-main { max-width: 500px; margin: 0 auto; padding: 96px 32px; text-align: center; }
.fake-progress {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 18px;
  overflow: hidden;
  margin: 24px 0 12px;
}
.fake-progress-fill {
  height: 100%;
  width: 12%;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  animation: fake-progress-crawl 6s cubic-bezier(0.1, 0.7, 0.1, 1) forwards;
}
@keyframes fake-progress-crawl {
  0% { width: 4%; }
  30% { width: 55%; }
  60% { width: 82%; }
  85% { width: 94%; }
  100% { width: 97%; }
}

/* --- Fun Zone --- */
.fun-zone, .fun-zone-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 32px 96px;
  text-align: center;
}
.fun-zone h2 { font-size: 1.1rem; margin-bottom: 8px; }
.fun-zone-page p.muted { margin-bottom: 8px; }
.fun-buttons { display: flex; justify-content: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.fun-btn {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 14px 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.fun-btn:hover { border-color: var(--amber); color: var(--amber); }
.fun-btn-danger { border-color: #7a2020; color: #ff6b6b; }
.fun-btn-danger:hover { border-color: #ff3b3b; color: #ff3b3b; background: rgba(255, 59, 59, 0.08); }
a.fun-btn { text-decoration: none; display: inline-flex; align-items: center; }

/* Do Not Press: kompletter Bildschirm dreht sich kurz durch */
body.donotpress-active {
  animation: donotpress-spin 3s ease-in-out;
}
@keyframes donotpress-spin {
  0%   { transform: rotate(0deg) scale(1); filter: hue-rotate(0deg) invert(0); }
  15%  { transform: rotate(180deg) scale(1.02); filter: hue-rotate(180deg) invert(1); }
  50%  { transform: rotate(180deg) scale(1.02); filter: hue-rotate(180deg) invert(1); }
  85%  { transform: rotate(360deg) scale(1.02); filter: hue-rotate(0deg) invert(0); }
  100% { transform: rotate(360deg) scale(1); filter: hue-rotate(0deg) invert(0); }
}

.hidden { display: none !important; }

/* --- Jumpscare --- */
.jumpscare-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jumpscare-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Creeper Menu (eigenes Pixel-Design, keine fremden Assets) --- */
.creeper-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 11, 0.85);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}
.creeper-menu {
  background: var(--surface-2);
  border: 3px solid var(--line);
  border-radius: 4px;
  padding: 32px 40px;
  text-align: center;
  max-width: 380px;
  image-rendering: pixelated;
}
.creeper-menu-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.9rem;
  color: var(--amber);
  margin: 0 0 16px;
}
.creeper-menu-question { color: var(--text-dim); margin-bottom: 24px; }
.creeper-menu-buttons { display: flex; flex-direction: column; gap: 10px; }
.creeper-menu-buttons button {
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--text);
  padding: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
}
#creeper-yes:hover { border-color: #4CAF50; color: #4CAF50; }
#creeper-no:hover { border-color: var(--cyan); color: var(--cyan); }

/* --- Creeper Stage: eigene, simple Blockkopf-Figur, läuft rein und explodiert --- */
.creeper-stage {
  position: fixed;
  inset: 0;
  z-index: 9997;
  overflow: hidden;
  pointer-events: none;
}
.creeper-sprite {
  position: absolute;
  bottom: 15%;
  left: -120px;
  width: 90px;
  height: 90px;
  background: #4a8f3c;
  border: 3px solid #2f5c26;
}
.creeper-sprite.walking {
  animation: creeper-walk 2.2s linear forwards, creeper-bob 0.3s ease-in-out infinite;
}
.creeper-sprite.exploding {
  animation: creeper-explode 0.5s ease-out forwards;
}
.creeper-face {
  position: relative;
  width: 100%;
  height: 100%;
}
.creeper-eye {
  position: absolute;
  top: 22px;
  width: 16px;
  height: 16px;
  background: #0B0E1A;
}
.creeper-eye:nth-child(1) { left: 16px; }
.creeper-eye:nth-child(2) { right: 16px; }
.creeper-mouth {
  position: absolute;
  bottom: 14px;
  left: 22px;
  width: 46px;
  height: 24px;
  background: #0B0E1A;
  clip-path: polygon(0 0, 30% 0, 30% 40%, 55% 40%, 55% 0, 75% 0, 75% 60%, 45% 60%, 45% 100%, 15% 100%, 15% 60%, 0 60%);
}

@keyframes creeper-walk {
  from { left: -120px; }
  to { left: calc(50% - 45px); }
}
@keyframes creeper-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes creeper-explode {
  0%   { transform: scale(1); opacity: 1; filter: brightness(1); }
  40%  { transform: scale(1.3); opacity: 1; filter: brightness(2); }
  100% { transform: scale(6); opacity: 0; filter: brightness(3); background: #FF9E2C; }
}

.screen-shake { animation: screen-shake-kf 0.4s ease-in-out 2; }
@keyframes screen-shake-kf {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-8px, 4px); }
  50% { transform: translate(8px, -4px); }
  75% { transform: translate(-6px, -6px); }
}

/* --- Death Screen --- */
.death-screen {
  position: fixed;
  inset: 0;
  background: rgba(60, 0, 0, 0.92);
  z-index: 9996;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.death-screen h1 {
  font-family: 'Press Start 2P', monospace;
  color: #ff3b3b;
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-shadow: 0 0 20px rgba(255, 59, 59, 0.7);
  letter-spacing: 4px;
}

/* --- Polls --- */
.polls-main { max-width: 700px; margin: 0 auto; padding: 48px 32px 96px; }
.poll-create {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  margin: 24px 0 40px;
}
.poll-create h2 { font-size: 1rem; margin-bottom: 12px; }
#poll-form { display: flex; flex-direction: column; gap: 10px; }
#poll-form input[type="text"] {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  padding: 8px 12px;
  font-family: inherit;
}
#poll-options { display: flex; flex-direction: column; gap: 8px; }

.poll-list { display: flex; flex-direction: column; gap: 16px; }
.poll-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
}
.poll-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.poll-meta { font-size: 0.8rem; margin-bottom: 14px; }
.poll-options { display: flex; flex-direction: column; gap: 8px; }
.poll-option {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}
.poll-option:hover:not(:disabled) { border-color: var(--amber); }
.poll-option:disabled { cursor: default; }
.poll-option-fill {
  position: absolute;
  inset: 0;
  background: rgba(79, 227, 255, 0.12);
  width: 0;
  transition: width 0.4s ease;
  z-index: 0;
}
.poll-option-mine .poll-option-fill { background: rgba(255, 158, 44, 0.18); }
.poll-option-label { position: relative; z-index: 1; }
.poll-option-pct { position: relative; z-index: 1; color: var(--text-dim); font-size: 0.85rem; }
.poll-closed-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--text-dim);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.poll-expiry-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-dim); }
.poll-expiry-label select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  padding: 6px 8px;
  font-family: inherit;
}

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

/* --- Basen-Spiel --- */
.base-main { max-width: 900px; margin: 0 auto; padding: 48px 32px 96px; }
.notice { color: #4CAF50; font-size: 0.9rem; margin: 12px 0; }

.base-balance-row { display: flex; gap: 16px; margin: 20px 0 32px; }
.base-balance-tile {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.base-balance-tile strong { display: block; font-size: 1.5rem; color: var(--amber); }
.base-balance-tile span { color: var(--text-dim); font-size: 0.85rem; }

.base-unlock-box, .base-convert-box, .base-buildings-box, .base-visual-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.base-visual-box { padding: 20px; }
.base-unlock-box h2, .base-convert-box h2, .base-buildings-box h2 { margin: 0 0 12px; font-size: 1.05rem; }

.base-convert-forms { display: flex; flex-direction: column; gap: 10px; }
.base-convert-form { display: flex; gap: 8px; }
.base-convert-form input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  padding: 8px 10px;
  width: 120px;
  font-family: inherit;
}

.farm-meter {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 20px;
  overflow: hidden;
  margin: 12px 0 8px;
}
.farm-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 0.3s ease;
}
.farm-full-tag { color: var(--amber); margin-left: 8px; }

.base-upgrades { display: flex; flex-direction: column; gap: 14px; }
.base-upgrade-item p { margin: 0 0 6px; font-size: 0.9rem; color: var(--text-dim); }
.base-upgrade-item strong { color: var(--text); }

.base-svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.farm-stat-line { margin: 0 0 4px; font-size: 0.9rem; }

.base-main {
  background-image:
    linear-gradient(var(--bg), var(--bg)),
    repeating-linear-gradient(45deg, rgba(255,158,44,0.03) 0, rgba(255,158,44,0.03) 2px, transparent 2px, transparent 14px);
  background-blend-mode: normal;
}

.base-subnav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.base-subnav-link {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.9rem;
}
.base-subnav-link:hover { color: var(--text); text-decoration: none; }
.base-subnav-active { background: var(--amber); color: #1A1000; border-color: var(--amber); font-weight: 600; }

/* --- Live Attack-Toast --- */
.attack-toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #2a1010;
  border: 2px solid #ff4444;
  border-radius: 10px;
  padding: 14px 16px;
  max-width: 360px;
  box-shadow: 0 8px 24px rgba(255, 68, 68, 0.3);
  animation: attack-toast-in 0.3s ease;
}
@keyframes attack-toast-in {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.attack-toast-icon { font-size: 1.6rem; }
.attack-toast-body { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; }
.attack-toast-body strong { color: #ff6b6b; }
.attack-toast-body a { color: var(--cyan); font-size: 0.8rem; }
.attack-toast-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  align-self: flex-start;
  padding: 0 4px;
}

/* --- Achievement-Toast --- */
.achievement-toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a1408;
  border: 2px solid var(--amber);
  border-radius: 10px;
  padding: 14px 16px;
  max-width: 340px;
  box-shadow: 0 8px 24px rgba(255, 158, 44, 0.3);
  animation: attack-toast-in 0.3s ease;
}
.achievement-toast-icon { font-size: 1.8rem; }
.achievement-toast-body { display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; }
.achievement-toast-body strong { color: var(--amber); }
.achievement-toast-body span { color: var(--text); }

/* --- Angriffs-Fortschrittsbalken mit gleitendem Icon --- */
.attack-progress-track {
  position: relative;
  width: 100%;
  height: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.attack-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255,68,68,0.15), rgba(255,68,68,0.35));
  transition: width 1s linear;
}
.attack-progress-icon {
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
  font-size: 1.1rem;
  transition: left 1s linear;
}

/* --- Chat --- */
.chat-main { max-width: 700px; margin: 0 auto; padding: 48px 32px 96px; }

.chat-window {
  height: 60vh;
  min-height: 360px;
  max-height: 640px;
  overflow-y: auto;
  margin-top: 20px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  border-bottom: none;
}
.chat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.chat-msg-body { flex: 1; }
.chat-msg-text { color: var(--text); font-size: 0.9rem; margin-top: 2px; word-break: break-word; }
.chat-msg-img { max-width: 260px; max-height: 220px; border-radius: 8px; margin-top: 6px; display: block; }

.chat-status { border-radius: 0; margin: 0; }

.chat-form {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
}
.chat-form input[type="text"] {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
}
.chat-image-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0 6px;
  position: relative;
}
.chat-image-label input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.chat-status {
  position: fixed;
  bottom: 66px;
  left: 0;
  right: 0;
  max-width: 700px;
  margin: 0 auto;
  padding: 6px 20px;
  font-size: 0.8rem;
  background: var(--surface);
}

/* --- Activity Feed --- */
.activity-feed { margin-top: 32px; }
.activity-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.activity-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
}
.activity-icon { font-size: 1.1rem; }
.activity-time { margin-left: auto; font-size: 0.75rem; white-space: nowrap; }

/* --- 404 --- */
.error-404-main {
  max-width: 500px;
  margin: 0 auto;
  padding: 96px 32px;
  text-align: center;
}
.error-404-code {
  font-family: 'Press Start 2P', monospace;
  color: var(--amber);
  font-size: 1.4rem;
  text-shadow: 0 0 12px rgba(255, 158, 44, 0.5);
  margin-bottom: 20px;
}
.error-404-main .ghost-btn { margin: 20px 10px; }
.error-404-main .cta { margin: 20px 10px; }

/* --- Konfetti --- */
.confetti-piece {
  position: fixed;
  top: -10px;
  width: 8px;
  height: 8px;
  z-index: 10000;
  pointer-events: none;
  animation-name: confetti-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(540deg); opacity: 0.7; }
}

/* --- Toast --- */
.fun-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 20px;
  color: var(--text);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10001;
}
.fun-toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* --- Party-Modus --- */
body.party-mode {
  animation: party-hue 0.6s linear infinite;
}
@keyframes party-hue {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* --- Rickroll --- */
.rickroll-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.rickroll-box iframe { max-width: 90vw; border-radius: 8px; }

/* --- Russian Roulette Modal --- */
.roulette-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  max-width: 90vw;
}
.roulette-spinner { font-size: 4rem; }
.roulette-spinner.spinning { animation: roulette-spin 0.5s linear infinite; }
@keyframes roulette-spin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}
.roulette-modal-text { font-size: 1.1rem; color: var(--text); max-width: 340px; }
