* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ===== Markenfarben ===== */
  --primary: #026771;        /* Petrol / Teal */
  --primary-light: #0592a1;
  --primary-dark: #014750;

  --secondary: #396da9;      /* Magenta / Violett */
  --secondary-light: #4484cd;
  --secondary-dark: #224368;

  --accent: #F7BB41;         /* Warmes Gold */
  --accent-light: #ffd27a;
  --accent-dark: #dd9f1f;

  --gold: var(--accent);     /* Alias für bestehende Regeln */

  --dark: #101a1c;
  --light: #F7F9FA;
  --bg: var(--light);
  --text: var(--dark);
  --card-bg: #ffffff;
  --border-c: #101a1c;

  --shadow-soft: 0 10px 25px rgba(2, 103, 113, 0.12);

  /* ===== BATTLESHIP LIGHT MODE VARIABLES ===== */
  --bs-card-bg: #ffffff;
  --bs-board-bg: #e2e8f0;
  --bs-cell-bg: #f8fafc;
  --bs-cell-header: #475569;
  --bs-cell-border: #cbd5e1;
  --bs-miss-bg: #94a3b8;
  --bs-text: #0f172a;
}

[data-theme="dark"] {
  --bg: #0c1416;
  --text: #EAF3F3;
  --card-bg: #142325;
  --border-c: #EAF3F3;
  --light: #142325;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.4);

  /* ===== BATTLESHIP DARK MODE VARIABLES ===== */
  --bs-card-bg: radial-gradient(circle, var(--primary-dark) 0%, #061012 100%);
  --bs-board-bg: #090d16;
  --bs-cell-bg: #1e293b;
  --bs-cell-header: #94a3b8;
  --bs-cell-border: #334155;
  --bs-miss-bg: #334155;
  --bs-text: #f8fafc;
}

body {
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(2, 103, 113, 0.05), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(158, 51, 165, 0.05), transparent 40%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3 { font-family: 'Fredoka', sans-serif; }
.arcade-title {
  font-family: 'Bungee', 'Fredoka', sans-serif; text-align: center; font-size: 2rem; margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 3px 3px 0 rgba(247, 187, 65, 0.35);
  width: fit-content; margin-left: auto; margin-right: auto;
}

.hidden { display: none !important; }

/* NAVBAR */
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(100deg, var(--primary-dark), var(--primary) 55%, var(--secondary));
  color: white; flex-wrap: wrap; gap: 1rem;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow-soft);
}
.logo { font-family: 'Bungee', sans-serif; font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.logo span { color: var(--accent); }
.navbar nav a {
  color: rgba(255,255,255,0.9); text-decoration: none; margin: 0 0.7rem; font-weight: 600; font-size: 0.95rem;
  transition: color 0.15s ease;
}
.navbar nav a:hover { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 1rem; }

#userInfo { display: flex; align-items: center; gap: 0.6rem; color: white; font-weight: 600; }
#userInfo:hover { opacity: 0.8; transform: scale(1.02); }

#guestUserInfo { display: flex; align-items: center; gap: 0.6rem; color: white; font-weight: 600; opacity: 0.85; }
#guestUserInfo.hidden { display: none; }

/* HEADER AVATAR */
.header-avatar { 
  width: 36px; height: 36px; border-radius: 50%; 
  border: 2px solid var(--gold); background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; overflow: hidden; color: white;
  background-size: cover; background-position: center;
}

/* THEME SWITCH */
.theme-switch { position: relative; display: inline-block; }
.theme-switch input { display: none; }
.theme-slider {
  display: flex; align-items: center; justify-content: space-between;
  width: 54px; height: 28px; background: rgba(255,255,255,0.25);
  border-radius: 30px; padding: 0 6px; cursor: pointer; font-size: 0.8rem;
  border: 2px solid var(--accent);
}
.theme-slider .sun { margin-left: auto; }

/* BUTTONS */
.btn {
  border: 3px solid var(--border-c); border-radius: 30px; padding: 0.6rem 1.4rem;
  font-weight: 700; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: 'Poppins', sans-serif;
  box-shadow: 3px 3px 0 var(--border-c), var(--shadow-soft);
  user-select: none;
}
.btn:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--border-c), var(--shadow-soft); }
.btn:active:not(:disabled) { transform: translate(0,0); box-shadow: 1px 1px 0 var(--border-c); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: 3px 3px 0 var(--border-c); }
.btn-primary { background: linear-gradient(135deg, var(--accent-light), var(--accent)); color: var(--dark); }
.btn-small { background: white; color: var(--primary); padding: 0.4rem 1rem; font-size: 0.9rem; }
.btn-game { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: white; margin-top: auto; }
.btn-cta {
  display: inline-block; margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: white; font-size: 1.1rem; text-decoration: none;
}
.btn-google { background: white; color: #444; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-full { width: 100%; }
.g-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; background: #4285F4; color: white;
  font-weight: 700; font-size: 0.8rem; border: none; box-shadow: none;
}

/* HERO */
.hero {
  text-align: center; padding: 4.5rem 1.5rem 3.5rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 45%, var(--secondary)); color: white;
  box-shadow: inset 0 -10px 30px rgba(0,0,0,0.1);
}
.hero h1 { font-size: 2.2rem; margin-bottom: 0.6rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.countdown-box { margin-top: 2.5rem; }
.countdown {
  font-family: 'Bungee', sans-serif; font-size: 2rem; font-weight: 700; 
  background: rgba(0,0,0,0.25); display: inline-block; padding: 1rem 2rem; 
  border-radius: 20px; margin-top: 0.6rem; border: 3px solid var(--accent);
  color: var(--accent-light);
}

/* NEWS TICKER */
.news-ticker {
  background: linear-gradient(90deg, var(--primary-dark), var(--secondary-dark));
  color: var(--accent-light); padding: 0.8rem 0; overflow: hidden;
  position: relative; border-top: 3px solid var(--accent); border-bottom: 3px solid var(--accent);
  font-family: 'Bungee', sans-serif; font-size: 1rem;
}
.news-ticker-content {
  display: inline-block; white-space: nowrap; padding-left: 100%; animation: ticker 25s linear infinite;
}
@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* SECTIONS */
.section { padding: 3rem 1.5rem; max-width: 1100px; margin: 0 auto; }
#spiele { max-width: 1420px; }
.section-sub { text-align: center; color: #888; margin-bottom: 1.5rem; }

/* MASONRY GALERIE */
.masonry-grid { column-count: 3; column-gap: 1rem; }
.masonry-grid img {
  width: 100%; border-radius: 16px; margin-bottom: 1rem;
  border: 3px solid var(--border-c); box-shadow: 5px 5px 0 var(--border-c); break-inside: avoid;
}
@media (max-width: 800px) { .masonry-grid { column-count: 2; } }
@media (max-width: 500px) { .masonry-grid { column-count: 1; } }

/* GAMES */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: stretch; }
.arcade-card {
  background: var(--card-bg); border-radius: 20px; padding: 1.5rem;
  text-align: center; border: 3px solid var(--border-c);
  box-shadow: 5px 5px 0 var(--border-c), var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.arcade-card:hover { transform: translateY(-3px); box-shadow: 6px 8px 0 var(--border-c), var(--shadow-soft); }
.game-card.wide { grid-column: 1 / -1; }
.game-display { font-size: 2rem; font-weight: 700; margin: 1rem 0; color: var(--secondary); min-height: 48px; display: flex; align-items: center; justify-content: center; }
.reaction-box {
  margin-top: 1rem; height: 140px; border-radius: 16px; background: linear-gradient(135deg, #c0392b, #e74c3c); color: white; 
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 600; 
  cursor: pointer; user-select: none; border: 3px solid var(--border-c); transition: background 0.15s ease;
}
.reaction-box.go { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }

/* MEMORY */
.mem-lvl-btn.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border-color: var(--border-c); }
.memory-board { display: grid; gap: 8px; justify-content: center; margin: 1rem auto; transition: 0.3s ease; }
.memory-board[data-level="1"] { grid-template-columns: repeat(4, 70px); }
.memory-board[data-level="2"] { grid-template-columns: repeat(4, 70px); }
.memory-board[data-level="3"] { grid-template-columns: repeat(5, 70px); }

.memory-card {
  height: 70px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; 
  justify-content: center; cursor: pointer; transition: 0.2s; overflow: hidden; border: 2px solid var(--border-c);
}
.memory-card img { width: 100%; height: 100%; object-fit: cover; display: none; }
.memory-card.flipped img, .memory-card.matched img { display: block; }
.memory-card.matched { background: linear-gradient(135deg, var(--accent), var(--accent-light)); border-color: var(--accent-dark); }

/* BLOCK BLAST */
.bb-score-bar {
  display: flex; justify-content: center; gap: 1.5rem; font-size: 1.05rem; font-weight: 700;
  margin-bottom: 0.8rem; color: var(--text);
}
.bb-score-bar b { color: var(--primary); }
.bb-board {
  display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr);
  gap: 3px; width: min(360px, 90vw); aspect-ratio: 1 / 1; margin: 0.5rem auto; padding: 8px;
  background: var(--card-bg); border: 3px solid var(--border-c); border-radius: 14px;
  box-shadow: 3px 3px 0 var(--border-c);
}
.bb-cell {
  background: rgba(128,128,128,0.12); border-radius: 4px; transition: background 0.12s ease, transform 0.12s ease;
}
.bb-cell.filled { box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15); }
.bb-cell.bb-region-a { background: rgba(128,128,128,0.12); }
.bb-cell.bb-region-b { background: rgba(128,128,128,0.20); }
.bb-cell.filled.bb-region-a, .bb-cell.filled.bb-region-b { background: var(--bb-cell-color, var(--primary)); }
.bb-cell.preview-ok { background: rgba(46, 204, 113, 0.55) !important; }
.bb-cell.preview-bad { background: rgba(231, 76, 60, 0.55) !important; }
.bb-cell.clearing { animation: bbClear 0.3s ease forwards; }
@keyframes bbClear { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.4); opacity: 0; } }

.bb-tray {
  display: flex; justify-content: center; align-items: flex-end; gap: 14px;
  min-height: 96px; margin: 1rem auto 0.5rem; flex-wrap: wrap;
}
.bb-piece {
  display: grid; gap: 3px; padding: 8px; border-radius: 10px; cursor: grab;
  background: rgba(128,128,128,0.08); border: 2px solid transparent; transition: 0.15s ease;
  touch-action: none; user-select: none;
}
.bb-piece:hover { background: rgba(128,128,128,0.16); }
.bb-piece.dragging { opacity: 0.35; }
.bb-piece.used { visibility: hidden; }
.bb-piece-cell { width: 22px; height: 22px; border-radius: 4px; background: var(--bb-piece-color, var(--primary)); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }
.bb-piece-cell.empty { background: transparent; box-shadow: none; }

.bb-drag-ghost {
  position: fixed; pointer-events: none; z-index: 9999; display: grid; gap: 3px; opacity: 0.85;
}
.bb-drag-ghost .bb-piece-cell { width: 34px; height: 34px; }

.bb-gameover {
  text-align: center; background: rgba(231, 76, 60, 0.12); border: 2px solid #e74c3c;
  border-radius: 12px; padding: 0.8rem; margin: 0.6rem auto; max-width: 360px; font-weight: 700;
}
.bb-gameover p { margin: 0.2rem 0; }

@media (max-width: 480px) {
  .bb-piece-cell { width: 18px; height: 18px; }
  .bb-drag-ghost .bb-piece-cell { width: 28px; height: 28px; }
}

/* BESTENLISTE & FREUNDE-LISTE */
.hs-wrapper { display: flex; align-items: flex-start; gap: 1.5rem; max-width: 750px; margin: 0 auto; }
.hs-sidebar { flex-shrink: 0; position: relative; }
.hs-sidebar-toggle {
  display: flex; align-items: center; gap: 0.6rem; border: 3px solid var(--border-c); border-radius: 14px;
  padding: 0.7rem 1rem; font-weight: 700; font-family: 'Poppins', sans-serif; font-size: 0.9rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; cursor: pointer;
  box-shadow: 3px 3px 0 var(--border-c); transition: 0.15s ease; white-space: nowrap;
}
.hs-sidebar-toggle:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--border-c); }
.hs-sidebar-chevron { transition: transform 0.2s ease; font-size: 0.75rem; }
.hs-sidebar.open .hs-sidebar-chevron { transform: rotate(90deg); }
.hs-sidebar-menu {
  display: flex; flex-direction: column; gap: 0.5rem; overflow: hidden;
  max-height: 0; opacity: 0; margin-top: 0; padding: 2px 6px 6px 2px;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
}
.hs-sidebar.open .hs-sidebar-menu { max-height: 500px; opacity: 1; margin-top: 0.6rem; }
.hs-tab-btn {
  border: 3px solid var(--border-c); border-radius: 30px; padding: 0.5rem 1.1rem;
  font-weight: 700; font-family: 'Poppins', sans-serif; font-size: 0.9rem;
  background: var(--card-bg); color: var(--text); cursor: pointer;
  box-shadow: 3px 3px 0 var(--border-c); transition: 0.15s ease; white-space: nowrap; text-align: left;
}
.hs-tab-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--border-c); }
.hs-tab-btn.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border-color: var(--border-c); }

.hs-content { flex: 1; min-width: 0; }
.hs-tab-content { display: none; }
.hs-tab-content.active { display: block; }

.hs-panel {
  background: var(--card-bg); border-radius: 20px; padding: 1.8rem;
  border: 3px solid var(--border-c); box-shadow: 5px 5px 0 var(--border-c), var(--shadow-soft); max-width: 600px; margin: 0 auto;
}
.hs-panel h3 { color: var(--secondary); margin-bottom: 0.3rem; text-align: center; }

.hs-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.hs-list li {
  display: flex; align-items: center; gap: 0.8rem; background: var(--bg); 
  border-radius: 12px; padding: 0.6rem 1rem; border: 2px solid var(--border-c);
}
.hs-rank { font-weight: 800; width: 28px; text-align: center; color: var(--primary); flex-shrink: 0; }
.hs-name { flex: 1; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.hs-score { font-weight: 700; color: var(--secondary); }
.hs-empty { text-align: center; color: #999; padding: 1rem 0; font-style: italic; display: block; }

@media (max-width: 680px) {
  .hs-wrapper { flex-direction: column; }
  .hs-sidebar-menu { flex-direction: row; flex-wrap: wrap; }
  .hs-sidebar.open .hs-sidebar-menu { max-height: none; }
}

/* VOTING SYSTEM */
.voting-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem;
  max-width: 1000px; margin: 0 auto;
}
.vote-card {
  background: var(--card-bg); border-radius: 20px; padding: 1.6rem;
  text-align: center; border: 3px solid var(--border-c);
  box-shadow: 5px 5px 0 var(--border-c), var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.vote-card:hover { transform: translateY(-3px); box-shadow: 6px 8px 0 var(--border-c), var(--shadow-soft); }
.vote-card.voted { border-color: var(--accent); box-shadow: 5px 5px 0 var(--accent-dark), var(--shadow-soft); }
.vote-card-icon { font-size: 2.4rem; margin-bottom: 0.4rem; }
.vote-card h3 { margin-bottom: 0.4rem; }
.vote-card-desc { color: #888; font-size: 0.9rem; margin-bottom: 1rem; flex-grow: 1; }
.vote-bar-track {
  width: 100%; height: 14px; border-radius: 20px; overflow: hidden;
  background: rgba(128,128,128,0.15); border: 2px solid var(--border-c); margin-bottom: 0.5rem;
}
.vote-bar-fill {
  height: 100%; width: 0%; border-radius: 20px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.4s ease;
}
.vote-meta {
  display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700;
  color: var(--secondary); margin-bottom: 1rem;
}
.vote-btn.voted { background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: var(--dark); }
.vote-total { text-align: center; margin-top: 1.5rem; color: #888; font-weight: 600; }

@media (max-width: 600px) {
  .voting-grid { grid-template-columns: 1fr; }
}

/* GÄSTEBUCH */
.guestbook-locked {
  text-align: center; background: var(--card-bg); border: 3px solid var(--border-c);
  box-shadow: 5px 5px 0 var(--border-c), var(--shadow-soft); border-radius: 16px; padding: 1.5rem; max-width: 500px; margin: 0 auto 2rem;
}
.guestbook-locked p { margin-bottom: 1rem; }
.guestbook-form {
  display: flex; flex-direction: column; gap: 0.6rem; max-width: 500px; margin: 0 auto 2rem;
  background: var(--card-bg); border: 3px solid var(--border-c); border-radius: 16px; padding: 1.5rem;
  box-shadow: 5px 5px 0 var(--border-c), var(--shadow-soft);
}
.guestbook-as { font-size: 0.9rem; color: #888; }
.guestbook-form textarea {
  padding: 0.8rem; border-radius: 12px; border: 2px solid #ddd; font-family: inherit; resize: vertical; 
  min-height: 80px; background: var(--bg); color: var(--text);
}
.guestbook-form textarea:focus { outline: none; border-color: var(--primary); }
.char-counter { text-align: right; font-size: 0.85rem; color: #888; }
.guestbook-list { display: flex; flex-direction: column; gap: 0.8rem; max-width: 600px; margin: 0 auto; }
.guestbook-entry {
  background: var(--card-bg); padding: 1rem; border-radius: 14px;
  border: 2px solid var(--border-c); border-left: 6px solid var(--accent);
  box-shadow: var(--shadow-soft);
}
.guestbook-entry strong { color: var(--primary); }

.gb-actions { display: flex; gap: 0.5rem; margin-top: 0.8rem; }
.btn-gb {
  background: transparent; border: 2px solid var(--border-c); border-radius: 8px;
  cursor: pointer; padding: 4px 10px; font-size: 1rem; font-weight: 600;
  color: var(--text); transition: 0.15s ease; font-family: 'Poppins', sans-serif;
}
.btn-gb:hover { background: var(--bg); transform: translateY(-2px); }
.btn-gb-delete { color: #d63031; border-color: #d63031; }
.btn-gb-delete:hover { background: #d63031; color: white; }
.btn-gb-edit { color: var(--primary); border-color: var(--primary); }
.btn-gb-edit:hover { background: var(--primary); color: white; }
.hidden-entry {
  opacity: 0.5; border-left-color: #d63031 !important;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(214, 48, 49, 0.05) 10px, rgba(214, 48, 49, 0.05) 20px);
}

/* @ERWÄHNUNGEN IM GÄSTEBUCH */
.mention {
  color: var(--secondary); font-weight: 700; background: rgba(255, 190, 60, 0.16);
  padding: 1px 5px; border-radius: 6px;
}
.mention-self {
  color: #fff; background: var(--primary);
}
.guestbook-entry.mention-highlight {
  border-left-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(158, 51, 165, 0.25), var(--shadow-soft);
  animation: mentionPop 0.5s ease-out;
}
.mention-badge {
  display: inline-block; margin-top: 0.6rem; font-size: 0.78rem; font-weight: 700;
  color: var(--primary); background: rgba(158, 51, 165, 0.12);
  padding: 3px 10px; border-radius: 20px;
}
@keyframes mentionPop {
  0% { transform: scale(0.97); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

/* ADMIN: STUMMGESCHALTETE NUTZER LISTE */
.muted-user-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted-user-name { font-weight: 600; }
.btn-unmute {
  background: transparent; border: 2px solid var(--border-c); border-radius: 8px;
  cursor: pointer; padding: 3px 10px; font-size: 0.85rem; font-weight: 600;
  color: var(--secondary); border-color: var(--secondary); transition: 0.15s ease;
  font-family: 'Poppins', sans-serif;
}
.btn-unmute:hover { background: var(--secondary); color: white; }

/* ABOUT */
.about-text { text-align: center; max-width: 700px; margin: 0 auto 2rem; font-size: 1.1rem; }
.sidefacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.sidefact-card {
  background: var(--card-bg); border: 3px solid var(--border-c); border-radius: 16px;
  padding: 1.2rem; box-shadow: 5px 5px 0 var(--border-c), var(--shadow-soft); font-size: 0.92rem;
}
.disclaimer {
  background: var(--card-bg); border: 2px dashed var(--border-c); border-radius: 16px;
  padding: 1.5rem; max-width: 750px; margin: 0 auto; font-size: 0.88rem; color: #777;
}
.disclaimer h3 { color: var(--secondary); margin-bottom: 0.6rem; font-size: 1rem; }
footer { text-align: center; padding: 2rem; color: #999; }

/* ALLGEMEINE MODALS */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; z-index: 200;
}
.modal-content {
  background: var(--card-bg); padding: 2rem; border-radius: 20px; width: 90%; max-width: 380px; position: relative;
  border: 3px solid var(--border-c); box-shadow: 6px 6px 0 var(--border-c), 0 25px 45px rgba(0,0,0,0.25);
}
.close { position: absolute; top: 12px; right: 18px; cursor: pointer; font-size: 1.4rem; color: var(--text); }
.or-divider { text-align: center; margin: 1rem 0; position: relative; color: #999; font-size: 0.85rem; }
.or-divider::before, .or-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: #ddd; }
.or-divider::before { left: 0; }
.or-divider::after { right: 0; }
.tabs { display: flex; flex-wrap: wrap; margin-bottom: 1rem; gap: 0.5rem; }
.tab-btn {
  flex: 1; padding: 0.6rem; border: 2px solid var(--border-c); background: var(--light); border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--text);
  transition: 0.15s ease;
}
.tab-btn.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border-color: var(--border-c); }
.tab-content { display: none; flex-direction: column; gap: 0.7rem; }
.tab-content.active { display: flex; }
.tab-content input { padding: 0.7rem; border-radius: 10px; border: 1px solid #ddd; background: var(--bg); color: var(--text); }
.error { color: #d63031; font-size: 0.85rem; min-height: 1.2rem; }
.guest-hint { font-size: 0.85rem; color: #888; margin-bottom: 0.8rem; line-height: 1.4; }

@media (max-width: 600px) {
  .navbar { flex-direction: column; }
  .hero h1 { font-size: 1.5rem; }
}

/* BADGES & FRIEND ACTIONS */
.badges-row {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 0;
}
.badge-item {
  background: var(--bg); border: 2px solid var(--border-c);
  border-radius: 20px; padding: 4px 10px; font-size: 0.85rem;
  font-weight: 600; display: inline-flex; align-items: center; gap: 4px;
}
.friend-actions { display: flex; gap: 4px; }
.btn-icon-action {
  background: transparent; border: 2px solid var(--border-c);
  border-radius: 8px; padding: 2px 6px; cursor: pointer;
  font-size: 0.85rem; transition: transform 0.1s ease;
}
.btn-icon-action:hover { transform: scale(1.1); background: var(--bg); }
.custom-dialog-modal { max-width: 340px !important; text-align: center; }

/* MULTIPLAYER / BATTLESHIP STYLES */
.game-subtitle {
  font-family: 'Fredoka', sans-serif; font-size: 1.4rem; color: var(--secondary);
  margin: 1.5rem 0 1rem; text-align: left; border-bottom: 2px dashed var(--border-c);
  padding-bottom: 5px;
}

.bs-card {
  background: var(--bs-card-bg);
  color: var(--bs-text);
  border-color: var(--bs-card-bg);
}

.bs-header h3 {
  color: var(--accent-light); font-size: 1.8rem;
}

[data-theme="light"] .bs-header h3 { color: var(--primary); }

.bs-lobby-controls {
  display: flex; gap: 1rem; justify-content: center; align-items: center;
  flex-wrap: wrap; margin: 1.5rem 0;
}

.bs-join-box { display: flex; gap: 0.5rem; }
.bs-join-box input {
  padding: 0.6rem 1rem; border-radius: 20px; border: 2px solid var(--border-c);
  font-family: inherit; text-transform: uppercase; font-weight: bold;
  text-align: center; width: 130px; background: var(--bg); color: var(--text);
}

.bs-boards-wrapper {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem;
}

.bs-board-box h4 { margin-bottom: 8px; font-size: 0.95rem; }

.bs-board {
  display: grid;
  grid-template-columns: 24px repeat(10, 28px);
  grid-template-rows: 24px repeat(10, 28px);
  gap: 2px;
  background: var(--bs-board-bg);
  padding: 6px;
  border-radius: 10px;
  border: 2px solid var(--bs-cell-border);
}

[data-theme="dark"] .bs-board {
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.bs-cell {
  background: var(--bs-cell-bg);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: bold; user-select: none;
  cursor: pointer; transition: background 0.15s ease;
}

.bs-cell-header {
  background: transparent; color: var(--bs-cell-header);
  cursor: default; font-size: 0.7rem;
}

.bs-cell.ship { background: var(--secondary) !important; border: 1px solid var(--secondary-light); }
.bs-cell.hit { background: #ef4444 !important; color: white; position: relative; }
.bs-cell.hit::after { content: '💥'; font-size: 0.8rem; }
.bs-cell.miss { background: var(--bs-miss-bg) !important; }
.bs-cell.miss::after { content: '💦'; font-size: 0.6rem; opacity: 0.8; }
.bs-cell.hover { background: var(--accent); opacity: 0.6; }

.bs-control-bar {
  display: flex; gap: 1rem; justify-content: center; align-items: center;
  background: rgba(128,128,128,0.1); padding: 10px; border-radius: 12px;
  margin-bottom: 10px; flex-wrap: wrap;
}

/* Battleship Animations */
@keyframes explodeAnim {
  0% { transform: scale(1); background-color: #f59e0b; box-shadow: 0 0 10px #f59e0b; }
  50% { transform: scale(1.4); background-color: #ef4444; box-shadow: 0 0 25px #ef4444; z-index: 10; }
  100% { transform: scale(1); background-color: #ef4444; box-shadow: none; z-index: 1; }
}
.anim-hit { animation: explodeAnim 0.5s ease-out forwards; position: relative; z-index: 10; }

@keyframes splashAnim {
  0% { transform: scale(1); background-color: #bae6fd; box-shadow: 0 0 10px #bae6fd; }
  50% { transform: scale(1.2); background-color: #0ea5e9; }
  100% { transform: scale(1); background-color: var(--bs-miss-bg); }
}
.anim-miss { animation: splashAnim 0.4s ease-out forwards; position: relative; z-index: 5; }

/* Battleship Turn Popup */
.bs-turn-popup {
  position: absolute; top: 35%; left: 50%; transform: translate(-50%, -50%);
  background: var(--primary); color: white; padding: 15px 35px;
  border-radius: 30px; font-weight: bold; font-size: 1.3rem;
  border: 4px solid var(--accent);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  z-index: 1000; pointer-events: none;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes popIn {
  0% { opacity: 0; transform: translate(-50%, -10%) scale(0.8); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.bs-turn-popup.fade-out { animation: popOut 0.3s ease-in forwards; }
@keyframes popOut {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -80%) scale(0.8); }
}

/* ===== SCHIFFE VERSENKEN: INVENTAR ===== */
.bs-inventory-box {
  width: 170px; min-width: 150px; flex: 0 0 auto;
  background: rgba(128,128,128,0.08); border: 1px solid var(--bs-cell-border);
  border-radius: 12px; padding: 10px 12px; align-self: flex-start;
}
.bs-inventory-box h4 { margin-bottom: 8px; font-size: 0.9rem; text-align: center; }
.bs-inv-row { margin-bottom: 9px; font-size: 0.72rem; transition: opacity 0.3s ease; }
.bs-inv-row.sunk { opacity: 0.55; }
.bs-inv-name { font-weight: 600; margin-bottom: 2px; display: flex; justify-content: space-between; }
.bs-inv-row.sunk .bs-inv-name { text-decoration: line-through; color: #ef4444; }
.bs-inv-bar { height: 7px; background: var(--bs-cell-bg); border-radius: 4px; overflow: hidden; border: 1px solid var(--bs-cell-border); }
.bs-inv-bar-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #ef4444); transition: width 0.4s ease; }
.bs-inv-count { text-align: right; font-size: 0.65rem; opacity: 0.7; margin-top: 2px; }

/* ===== SCHIFFE VERSENKEN: TIMER ===== */
.bs-timer-box {
  font-weight: bold; font-size: 1.1rem; padding: 4px 14px;
  border-radius: 20px; background: var(--primary); color: white;
  transition: background 0.3s ease, transform 0.2s ease;
}
.bs-timer-box.bs-timer-warn { background: #ef4444; animation: bsTimerPulse 1s infinite; }
@keyframes bsTimerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* ===== SCHIFFE VERSENKEN: FÄHIGKEITEN ===== */
.bs-ability-btn { transition: all 0.2s ease; }
.bs-ability-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.bs-ability-btn:not(:disabled) {
  background: var(--accent); color: #1a1a1a; font-weight: bold;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6); animation: bsAbilityGlow 1.4s infinite;
}
@keyframes bsAbilityGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
  50% { box-shadow: 0 0 18px rgba(245, 158, 11, 0.9); }
}

.bs-radar-confirm {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  margin-top: 8px; font-size: 0.8rem; font-weight: 600;
}

/* Mine cell (nur für Besitzer sichtbar) */
.bs-cell.mine-cell { box-shadow: inset 0 0 0 3px #f59e0b; }
.bs-cell.mine-cell::before { content: '💣'; position: absolute; font-size: 0.6rem; opacity: 0.85; }

/* Radar Auswahl */
.bs-cell.radar-selected { background: #38bdf8 !important; box-shadow: 0 0 10px #38bdf8; }

/* Versenktes Schiff / Reveal / Admin */
.bs-cell.sunk-ship { outline: 2px dashed #ef4444; outline-offset: -2px; }
.bs-cell.revealed-ship { background: rgba(148,163,184,0.6) !important; outline: 2px dashed #64748b; outline-offset: -2px; }
.bs-cell.admin-reveal { background: rgba(214, 48, 49, 0.45) !important; outline: 2px dashed #d63031; outline-offset: -2px; }

@keyframes sunkExplode {
  0% { transform: scale(1); }
  30% { transform: scale(1.35); background-color: #7f1d1d !important; box-shadow: 0 0 20px #ef4444; }
  100% { transform: scale(1); }
}
.anim-sunk { animation: sunkExplode 0.7s ease-out; }

/* ===== SCHIFFE VERSENKEN: EVENT TOAST ===== */
.bs-event-popup {
  position: absolute; top: 8%; left: 50%; transform: translate(-50%, 0);
  background: #1a1a2e; color: #f8fafc; padding: 10px 22px;
  border-radius: 20px; font-weight: 600; font-size: 0.95rem;
  border: 3px solid var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 1001; pointer-events: none; text-align: center; max-width: 90%;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.bs-event-popup.fade-out { animation: popOut 0.3s ease-in forwards; }

/* ===== SCHIFFE VERSENKEN: ERGEBNIS OVERLAY ===== */
.bs-result-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; border-radius: 16px; backdrop-filter: blur(3px);
}
.bs-result-box {
  background: var(--bs-card-bg, #fff); color: var(--bs-text);
  padding: 2rem 2.5rem; border-radius: 20px; text-align: center;
  border: 4px solid var(--accent); box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-width: 320px;
}
.bs-result-emoji { font-size: 4rem; margin-bottom: 0.5rem; }
.bs-result-box h2 { margin-bottom: 0.5rem; color: var(--primary); }
.bs-result-overlay.lose .bs-result-box { border-color: #ef4444; }
.bs-result-overlay.lose .bs-result-box h2 { color: #ef4444; }
.bs-result-box { animation: bsResultPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.anim-result .bs-result-box { animation: bsResultPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes bsResultPop {
  0% { transform: scale(0.4) rotate(-8deg); opacity: 0; }
  60% { transform: scale(1.08) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}
.bs-result-emoji { animation: bsResultBounce 1.2s ease-in-out infinite; }
@keyframes bsResultBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .bs-inventory-box { width: 100%; order: 3; }
  .bs-boards-wrapper { flex-direction: column; align-items: center; }
}

@media (max-width: 680px) {
  .bs-board {
    grid-template-columns: 20px repeat(10, 22px);
    grid-template-rows: 20px repeat(10, 22px);
    gap: 1px;
  }
  .bs-cell { font-size: 0.6rem; }
}

/* ===== SCHWEBENDES ADMIN-MENÜ ===== */
.admin-menu-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 3000;
}
.admin-menu-btn {
  background: #d63031; color: white; border: none; border-radius: 50%;
  width: 56px; height: 56px; font-size: 1.5rem; cursor: pointer;
  box-shadow: 0 6px 20px rgba(214,48,49,0.55); transition: transform 0.2s ease;
  display: flex; align-items: center; justify-content: center;
}
.admin-menu-btn:hover { transform: scale(1.08) rotate(-8deg); }
.admin-menu-panel {
  position: absolute; bottom: 68px; right: 0;
  background: var(--card-bg, #fff); color: var(--text);
  border: 2px solid #d63031; border-radius: 14px;
  padding: 14px; width: 260px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  animation: popIn 0.2s ease-out;
}
.admin-menu-panel h4 { margin-bottom: 10px; color: #d63031; font-size: 1rem; }
.admin-menu-item {
  display: block; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 8px;
  border-radius: 8px; border: 1px solid var(--border-c); background: rgba(214,48,49,0.06);
  cursor: pointer; font-size: 0.85rem; font-weight: 600; color: inherit;
  font-family: inherit; transition: background 0.15s ease;
}
.admin-menu-item:hover:not(:disabled) { background: rgba(214,48,49,0.18); }
.admin-menu-item:disabled { opacity: 0.4; cursor: not-allowed; }
.admin-menu-item.active { background: #d63031; color: white; }
.admin-menu-hint { font-size: 0.68rem; opacity: 0.65; margin-top: 4px; line-height: 1.3; }

/* ===== KONTAKTFORMULAR (IMPRESSUM) ===== */
.contact-form { display: flex; flex-direction: column; gap: 0.7rem; }
.contact-form input, .contact-form textarea {
  padding: 0.7rem; border-radius: 10px; border: 1px solid #ddd;
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.9rem;
}
.contact-form textarea { min-height: 90px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form input.locked-field {
  opacity: 0.65; cursor: not-allowed; background: rgba(128,128,128,0.15);
}

/* ===== ADMIN: LEVEL & ERFOLGE BEARBEITEN ===== */
.admin-achievements-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.admin-achievement-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border-radius: 8px; background: rgba(128,128,128,0.08); cursor: pointer; font-size: 0.88rem;
}
.admin-achievement-row:hover { background: rgba(128,128,128,0.16); }
.admin-achievement-row input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }

/* ===== COLOR GAME ===== */
.color-game-swatch {
  margin: 0.8rem 0; height: 90px; border-radius: 16px;
  background: linear-gradient(135deg, #94a3b8, #64748b);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: white; font-weight: 700;
  border: 3px solid var(--border-c); transition: background 0.3s ease;
}
.color-game-controls { text-align: left; margin-bottom: 10px; }
.color-slider-row { margin-bottom: 10px; }
.color-slider-row label { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 4px; }
.color-slider {
  width: 100%; height: 14px; border-radius: 8px;
  -webkit-appearance: none; appearance: none; cursor: pointer; outline: none;
  border: 1px solid var(--border-c);
}
.color-slider-hue { background: linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000); }
.color-slider-sat { background: linear-gradient(to right, #808080, #e11d48); }
.color-slider-light { background: linear-gradient(to right, #000000, #ffffff); }
.color-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: white; border: 3px solid var(--primary); cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.color-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: white; border: 3px solid var(--primary); cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.color-game-result { margin-bottom: 10px; }
.color-result-guess { margin-bottom: 10px; }
.color-result-score { font-size: 1.5rem; font-weight: 700; color: var(--secondary); text-align: center; margin: 4px 0; }

/* ===== XP-BAR & LEVEL-SYSTEM ===== */
.xp-bar-outer {
  position: relative; width: 100%; height: 24px; border-radius: 12px;
  background: var(--bg); border: 2px solid var(--border-c); overflow: hidden;
}
.xp-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.5s ease; border-radius: 12px 0 0 12px;
}
.xp-bar-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* ===== ERFOLGE (ACHIEVEMENT MEDAILLEN) ===== */
.achievements-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 18px 6px; max-height: 380px; overflow-y: auto; padding: 12px 4px;
}
.achievement-badge {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.achievement-medal {
  width: 54px; height: 54px; border-radius: 50%; position: relative;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  background: linear-gradient(145deg, var(--medal-light, #ccc), var(--medal-dark, #888));
  border: 3px solid rgba(255,255,255,0.7);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}
.achievement-medal::after {
  content: ''; position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 11px solid transparent; border-right: 11px solid transparent;
  border-top: 11px solid var(--medal-dark, #888);
}
.achievement-name { font-size: 0.63rem; font-weight: 700; line-height: 1.15; max-width: 84px; }
.achievement-badge.locked .achievement-medal { filter: grayscale(1) brightness(0.55); box-shadow: none; }
.achievement-badge.locked .achievement-name { opacity: 0.45; }
/* ===== FOOTER BUTTONS (Impressum / Schätzspiel / Admin) ===== */
.footer-btn {
  cursor: pointer; font-size: 0.78rem; font-weight: 600; text-decoration: none;
  color: #444; background: #e2e2e2; border: 1px solid #cfcfcf;
  padding: 6px 14px; border-radius: 20px; margin-right: 10px;
  transition: background 0.15s ease, transform 0.15s ease;
  display: inline-block;
}
.footer-btn:last-child { margin-right: 0; }
.footer-btn:hover { background: #d2d2d2; transform: translateY(-1px); }
[data-theme="dark"] .footer-btn { color: #ddd; background: #3a3a3a; border-color: #4a4a4a; }
[data-theme="dark"] .footer-btn:hover { background: #454545; }

/* ===== UNO ===== */
.uno-table {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 10px 0; width: 100%;
}
.uno-opponent-row, .uno-my-row {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 100%; min-width: 0;
}
.uno-my-row { order: 3; }
.uno-center-row { order: 2; }
.uno-opponent-row { order: 1; }
.uno-opponent-row h4, .uno-my-row h4 { margin: 0; font-size: 0.85rem; white-space: nowrap; }

.uno-hand {
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  flex-wrap: wrap; row-gap: 10px; min-height: 100px; width: 100%;
  padding: 6px 0;
}
.uno-hand-back { gap: 0; row-gap: 6px; }

.uno-card {
  width: 66px; height: 96px; border-radius: 8px; background: #1a1a1a;
  border: 2px solid var(--border-c); box-shadow: 2px 2px 0 rgba(0,0,0,0.25);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  margin-left: -26px; transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}
.uno-hand .uno-card:first-child { margin-left: 0; }
.uno-hand-back .uno-card { margin-left: -34px; }
.uno-hand-back .uno-card:first-child { margin-left: 0; }

.uno-my-row .uno-hand .uno-card {
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.uno-my-row .uno-hand .uno-card:hover {
  transform: translateY(-14px) scale(1.05);
  box-shadow: 3px 6px 10px rgba(0,0,0,0.35);
  z-index: 5;
}
.uno-my-row .uno-hand .uno-card.uno-playable {
  box-shadow: 0 0 0 3px var(--primary), 2px 2px 0 rgba(0,0,0,0.25);
}
.uno-my-row .uno-hand .uno-card.uno-unplayable {
  filter: grayscale(0.55) brightness(0.75);
  cursor: not-allowed;
}

.uno-card-back {
  background: radial-gradient(circle, var(--primary-dark) 0%, #061012 100%);
  background-size: cover;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 900; font-style: italic; font-size: 1rem;
}
.uno-card-back::after { content: 'UNO'; }

.uno-center-row {
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 20px;
  margin: 6px 0; flex-shrink: 0;
}
.uno-pile-box { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.uno-pile-label { font-size: 0.72rem; opacity: 0.7; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
#unoDrawPile { cursor: pointer; transition: transform 0.15s ease; }
#unoDrawPile:hover { transform: translateY(-4px); }
#unoDrawPile.uno-disabled { cursor: not-allowed; opacity: 0.6; }

.uno-turn-indicator {
  text-align: center; font-weight: 700; font-size: 1rem; padding: 8px 16px;
  border-radius: 30px; background: var(--card-bg); border: 2px solid var(--border-c);
  max-width: 480px; margin: 0 auto 14px auto; box-shadow: 2px 2px 0 var(--border-c);
}
.uno-turn-indicator.my-turn { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; }

.uno-controls-row {
  display: flex; justify-content: center; gap: 12px; margin-top: 8px; flex-wrap: wrap;
}

.uno-color-pick-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px;
}
.uno-color-pick-btn {
  padding: 18px; border-radius: 12px; border: 3px solid var(--border-c); color: white;
  font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: 3px 3px 0 var(--border-c);
  transition: 0.15s ease;
}
.uno-color-pick-btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--border-c); }

@media (max-width: 900px) {
  .uno-card { width: 50px; height: 74px; margin-left: -22px; }
  .uno-hand .uno-card:first-child { margin-left: 0; }
  .uno-hand-back .uno-card { margin-left: -28px; }
  .uno-hand-back .uno-card:first-child { margin-left: 0; }
  .uno-center-row { flex-direction: row; gap: 20px; }
}