/* ── PlayRound Kern (ergänzt style.css) ─────────────────────────────────── */
.ic { display: inline-block; vertical-align: -.18em; flex-shrink: 0; }

/* Top-Navigation mit Spiel-Reitern */
.topnav {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px;
  height: 64px; padding: 0 24px; background: rgba(6,8,15,.78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topnav[hidden] { display: none !important; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 900; font-style: italic; letter-spacing: -.02em; flex-shrink: 0; }
.brand b { color: var(--accent-soft); font-weight: 900; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #a78bfa, #7c3aed 55%, #4c1d95); position: relative; box-shadow: 0 4px 14px rgba(124,58,237,.5); }
.brand-mark::after { content: ''; position: absolute; left: 9px; top: 7px; width: 0; height: 0; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.brand.small .brand-mark { width: 22px; height: 22px; border-radius: 6px; }
.brand.small .brand-mark::after { left: 8px; top: 6px; border-left-width: 7px; border-top-width: 5px; border-bottom-width: 5px; }
.tabs { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 10px; color: var(--text-muted);
  font-weight: 600; font-size: .86rem; white-space: nowrap; background: none; transition: color .15s, background .15s;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,.05); }
.tab.active { color: #fff; background: rgba(124,58,237,.22); box-shadow: inset 0 0 0 1px rgba(124,58,237,.5); }
.tab .ic { opacity: .85; }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Hero pro Spiel */
.hero { min-height: calc(100vh - 64px); }
.hero .hero-body { padding-top: 44px; min-height: calc(100vh - 64px); }
.hero-game-icon { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: rgba(124,58,237,.18); border: 1px solid rgba(124,58,237,.4); color: var(--accent-soft); margin-bottom: 18px; animation: fadeUp .7s ease .2s both; }
.hero-h1 { animation: fadeUp .7s cubic-bezier(.2,.8,.2,1) .3s both; }
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: -12px 0 26px; animation: fadeUp .7s ease .55s both; }
.hero-meta .g-pill { background: rgba(13,17,32,.7); }
.btn-hero-ghost .ic { opacity: .8; }

/* Spiele-Übersicht unter dem Hero */
.home-games { position: relative; z-index: 2; max-width: 1380px; margin: 0 auto; padding: 0 64px 56px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.home-games .gcard {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: rgba(13,17,32,.8); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.07); transition: transform .2s, border-color .2s; color: var(--text);
}
.home-games .gcard:hover { transform: translateY(-3px); border-color: rgba(124,58,237,.6); }
.home-games .gcard.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 16px 40px rgba(124,58,237,.18); }
.gcard-head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1rem; }
.gcard-head .ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(124,58,237,.16); color: var(--accent-soft); }
.gcard p { font-size: .82rem; color: var(--text-muted); line-height: 1.45; flex: 1; }
.gcard-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.home-games-title { grid-column: 1 / -1; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin-top: 8px; }

/* Rangliste ohne Emoji */
.rank-medal { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 900; background: var(--bg-input); color: var(--text-muted); flex-shrink: 0; }
.rank-medal.r1 { background: linear-gradient(135deg, #fde68a, #ca8a04); color: #1f1300; box-shadow: 0 0 16px rgba(251,191,36,.5); }
.rank-medal.r2 { background: linear-gradient(135deg, #f1f5f9, #94a3b8); color: #0f172a; }
.rank-medal.r3 { background: linear-gradient(135deg, #f59e0b, #92400e); color: #fff7ed; }
.end-title .ic { color: #fbbf24; }
.cookie-icon { color: var(--accent-soft); display: flex; }

@media (max-width: 900px) {
  .topnav { padding: 0 14px; gap: 10px; height: 58px; }
  .brand-word { display: none; }
  .nav-logout { display: none; }
  .home-games { padding: 0 20px 40px; }
}
@media (max-width: 600px) {
  .tab { padding: 8px 10px; font-size: .8rem; }
  .tab span { display: none; }
  .tab.active span { display: inline; }
}

/* Warteraum */
.waiting-game { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 20px; background: rgba(124,58,237,.16); border: 1px solid rgba(124,58,237,.4); color: var(--accent-soft); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.setting-text { font-size: .9rem; }
.lobby-game { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-soft); margin-right: 6px; }

/* Spielbildschirm */
#screen-game { min-height: unset; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.game-header { display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); flex-shrink: 0; min-height: 52px; }
.game-title { font-weight: 800; font-style: italic; font-size: 1.05rem; white-space: nowrap; }
.game-header-slot { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; overflow: hidden; }
.game-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.chat-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 800; text-align: center; line-height: 18px; }
.game-body-wrap { flex: 1; display: flex; min-height: 0; position: relative; }
#game-root { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.game-chat { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg-card); border-left: 1px solid var(--border); }
.game-chat .chat-box { flex: 1; height: auto; }
@media (max-width: 800px) {
  .game-chat { position: absolute; right: 0; top: 0; bottom: 0; width: min(85vw, 320px); z-index: 20; box-shadow: -10px 0 40px rgba(0,0,0,.5); }
  .game-title { font-size: .9rem; }
}

/* Gemeinsame Bausteine für Spielmodule */
.g-timer { font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent-soft); }
.g-timer.urgent { color: var(--red); animation: pulse 1s infinite; }
.g-hint { font-size: .85rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-pill { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 12px; background: var(--bg-input); border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; }
.g-pill.accent { background: rgba(124,58,237,.16); border-color: rgba(124,58,237,.4); color: var(--accent-soft); }
.g-pill.warn { background: rgba(245,158,11,.15); border-color: rgba(245,158,11,.3); color: var(--amber); }
.g-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; }
.g-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.g-big { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; font-style: italic; letter-spacing: -.02em; line-height: 1; }
.g-scores { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.g-score { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border); font-size: .85rem; font-weight: 600; }
.g-score b { color: var(--accent-soft); }
.g-score.me { border-color: var(--accent); }
.g-score.off { opacity: .45; }
.g-overlay { position: absolute; inset: 0; z-index: 30; background: rgba(6,8,15,.82); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; animation: fadeIn .25s ease; }
.g-overlay[hidden] { display: none !important; }
.g-overlay .g-big { text-shadow: 0 0 40px rgba(124,58,237,.8); }
.g-stage { flex: 1; position: relative; min-height: 0; background: #111; }
.g-stage > .g-fill { position: absolute; inset: 0; }
.g-stage-btn { position: absolute; top: 12px; left: 12px; z-index: 4; padding: 9px 14px; border-radius: 10px; background: rgba(13,17,32,.88); border: 1px solid rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: .85rem; backdrop-filter: blur(8px); }
.g-stage-btn:hover { border-color: var(--accent); }
.g-stage-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 4; padding: 8px 14px; border-radius: 20px; background: rgba(13,17,32,.88); border: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: #cbd5e1; white-space: nowrap; pointer-events: none; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.g-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 5; }
.g-flash.on { animation: shutterFlash .5s ease-out; }
.g-side { width: 240px; flex-shrink: 0; background: var(--bg-card); display: flex; flex-direction: column; overflow: hidden; }
.g-side.right { border-left: 1px solid var(--border); }
.g-side.left { border-right: 1px solid var(--border); }
.g-row { flex: 1; display: flex; min-height: 0; }
.g-bar { height: 4px; background: var(--bg-input); border-radius: 2px; overflow: hidden; }
.g-bar > div { height: 100%; background: var(--accent); border-radius: 2px; width: 100%; }
.g-btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.g-input { padding: 11px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 1rem; }
.g-input:focus { outline: none; border-color: var(--accent); }
@media (max-width: 700px) { .g-side { width: 100%; max-height: 170px; border: none; border-bottom: 1px solid var(--border); } .g-row { flex-direction: column; } }

/* Endscreen-Extras */
.end-extra { margin-top: 8px; }
