/* ==========================================================================
   GameDate – seitenspezifische Styles
   Gemeinsame Basis (Variablen, Reset, Logo): ../style_main.css
   Diese Datei enthält nur GameDate-Eigenheiten.
   ========================================================================== */

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
/* ==========================================================================
   Layout: Seitenrahmen & Kopfzeile
   ========================================================================== */

.shell {
  width: min(1920px, calc(100% - 48px));
  margin: 0 auto;
}
.topbar {
  height: 92px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border: 1px solid rgba(185, 160, 255, 0.38);
  border-radius: 10px;
  color: var(--text);
  background: rgba(185, 160, 255, 0.08);
  font: 15px var(--sans);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}
/* ==========================================================================
   Hero-Bereich (Titel, Poster)
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 32px;
  padding: 62px 0 45px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font: 10px var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
}
h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(46px, 7.2vw, 88px);
  line-height: 0.93;
  letter-spacing: -0.085em;
  font-weight: 700;
}
.gradient-word {
  display: inline-block;
  padding-right: 0.1em;
  color: transparent;
  background: linear-gradient(
    100deg,
    #82ddea 4%,
    #a89aff 47%,
    #f171cc 82%,
    #ffc5a9 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-copy {
  max-width: 520px;
  margin: 22px 0 0;
  color: #b9b2ca;
  font-size: 15px;
  line-height: 1.75;
}
.hero-copy strong {
  color: #fbf6ff;
  font-weight: 600;
}
.poster-card {
  position: relative;
  min-height: 268px;
  overflow: hidden;
  border: 1px solid rgba(183, 168, 255, 0.23);
  border-radius: 22px;
  background: linear-gradient(145deg, #111322, #171224 54%, #25172f);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}
.poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(13, 11, 22, 0.05),
    rgba(13, 11, 22, 0.3)
  );
}
.poster-top {
  position: absolute;
  z-index: 2;
  left: 22px;
  top: 20px;
  font: 10px var(--mono);
  letter-spacing: 0.16em;
  color: #e0d8f5;
}
.poster-label {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 20px;
}
.poster-label strong {
  display: block;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.06em;
}
.poster-label span {
  display: block;
  margin-top: 8px;
  color: #ded5f0;
  font: 10px var(--mono);
  letter-spacing: 0.12em;
}
.sunset-art {
  position: absolute;
  inset: 0 0 0 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}
.event-chip {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  padding: 8px 10px;
  border: 1px solid #fff4;
  border-radius: 8px;
  color: #161023;
  background: linear-gradient(120deg, #a2e9e7, #e3baff 65%, #ffc5b1);
  font: 9px var(--mono);
  letter-spacing: 0.06em;
}
/* ==========================================================================
   Abschnittsüberschriften
   ========================================================================== */

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 15px 0 18px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 33px);
  letter-spacing: -0.065em;
}
.section-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}
/* ==========================================================================
   Arbeitsbereich: Panels & Formular (Lobby erstellen)
   ========================================================================== */

.workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 62px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(25, 22, 39, 0.94),
    rgba(14, 13, 22, 0.9)
  );
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.16);
}
.setup-panel {
  padding: 22px;
  position: sticky;
  top: 18px;
}
.panel-kicker {
  color: var(--purple);
  font: 10px var(--mono);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.setup-panel h3 {
  margin: 9px 0 19px;
  font-size: 21px;
  letter-spacing: -0.055em;
}
.field {
  display: block;
  margin-top: 14px;
}
.field > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #c4bdd4;
  font-size: 11px;
  font-weight: 600;
}
.field > span small {
  color: #7f7894;
  font: 10px var(--mono);
}
.field input {
  display: block;
  width: 100%;
  height: 44px;
  color: var(--text);
  border: 1px solid rgba(201, 190, 255, 0.17);
  border-radius: 10px;
  outline: 0;
  background: rgba(3, 3, 8, 0.38);
  padding: 0 12px;
  font-size: 13px;
  transition:
    border 0.2s,
    box-shadow 0.2s;
  color-scheme: dark;
}
.field input::placeholder {
  color: #6f687f;
}
.field input:focus {
  border-color: #9a8aff9c;
  box-shadow: 0 0 0 3px #9884ff16;
}
.add-game-row {
  display: flex;
  gap: 8px;
}
.add-game-row input {
  flex: 1;
  min-width: 0;
}
.add-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 10px;
  color: #110b1e;
  background: linear-gradient(135deg, var(--cyan), #b8a2ff 62%, #f989d5);
  transition:
    transform 0.18s,
    filter 0.18s;
}
.add-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.quick-label {
  margin: 11px 0 8px;
  color: #777087;
  font: 9px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.quick-games {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.quick-game {
  padding: 6px 9px;
  color: #bcb4ce;
  border: 1px solid rgba(202, 190, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  transition:
    border 0.18s,
    color 0.18s,
    background 0.18s;
}
.quick-game:hover {
  color: #fff;
  border-color: #9884ff77;
  background: #9884ff14;
}
.form-hint {
  margin: 14px 0 0;
  color: #827a97;
  font-size: 10px;
  line-height: 1.55;
}
/* ==========================================================================
   Lobby-Board: Toolbar & Suche
   ========================================================================== */

.board-panel {
  min-width: 0;
  padding: 20px;
}
.board-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.board-count {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bbb4cc;
  font-size: 11px;
}
.board-count b {
  color: var(--text);
  font-size: 14px;
}
.searchbox {
  position: relative;
  width: min(220px, 48%);
}
.searchbox svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #827a97;
}
.searchbox input {
  width: 100%;
  height: 36px;
  border: 1px solid rgba(201, 190, 255, 0.14);
  border-radius: 9px;
  background: #090811a8;
  color: var(--text);
  padding: 0 10px 0 32px;
  font-size: 11px;
  outline: none;
}
.searchbox input:focus {
  border-color: #9884ff7c;
}
/* ==========================================================================
   Spiele-Bubbles (Lobbys & Spieler)
   ========================================================================== */

.bubbles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  justify-items: center;
  align-items: center;
  gap: 18px 8px;
  padding: 7px 0 16px;
}
.game-bubble {
  --hue: 264;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 216px);
  aspect-ratio: 1;
  padding: 20px 16px 17px;
  overflow: hidden;
  border: 1px solid hsla(var(--hue), 85%, 80%, 0.33);
  border-radius: 48% 52% 50% 50% / 52% 47% 53% 48%;
  color: var(--text);
  text-align: center;
  background:
    radial-gradient(
      circle at 30% 18%,
      hsla(var(--hue), 90%, 72%, 0.24),
      transparent 42%
    ),
    radial-gradient(
      circle at 77% 86%,
      hsla(calc(var(--hue) + 50), 90%, 65%, 0.16),
      transparent 48%
    ),
    linear-gradient(
      145deg,
      hsla(var(--hue), 36%, 20%, 0.95),
      rgba(12, 10, 21, 0.98) 70%
    );
  box-shadow:
    inset 0 0 36px hsla(var(--hue), 80%, 65%, 0.06),
    0 11px 28px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.23s ease,
    border-color 0.23s,
    box-shadow 0.23s;
  animation: bob 6s ease-in-out infinite;
}
.game-bubble:nth-child(3n + 2) {
  animation-delay: -2.2s;
  border-radius: 52% 48% 46% 54% / 46% 54% 48% 52%;
}
.game-bubble:nth-child(3n) {
  animation-delay: -4s;
  border-radius: 46% 54% 53% 47% / 53% 45% 55% 47%;
}
.game-bubble::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8px;
  border: 1px solid hsla(var(--hue), 78%, 86%, 0.1);
  border-radius: inherit;
}
.game-bubble::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 125px;
  height: 125px;
  right: -50px;
  top: -50px;
  border-radius: 50%;
  background: hsla(var(--hue), 90%, 70%, 0.11);
  filter: blur(15px);
}
.game-bubble:hover {
  transform: translateY(-5px) scale(1.025);
  border-color: hsla(var(--hue), 95%, 82%, 0.7);
  box-shadow:
    inset 0 0 45px hsla(var(--hue), 80%, 65%, 0.1),
    0 15px 38px hsla(var(--hue), 80%, 40%, 0.15);
}
.game-bubble:active {
  transform: scale(0.98);
}
.game-bubble.is-joined {
  border-color: hsla(var(--hue), 100%, 85%, 0.78);
  box-shadow:
    inset 0 0 38px hsla(var(--hue), 80%, 65%, 0.12),
    0 0 0 2px hsla(var(--hue), 80%, 70%, 0.09),
    0 12px 38px hsla(var(--hue), 80%, 40%, 0.14);
}
.game-bubble.is-joined .bubble-action {
  color: #e4ffef;
}
.bubble-title {
  max-width: 170px;
  margin: 0;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}
.player-orbit {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 172px;
  gap: 5px;
  margin-top: 13px;
}
.player-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100px;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid hsla(var(--hue), 70%, 85%, 0.35);
  border-radius: 999px;
  background: hsla(var(--hue), 45%, 19%, 0.88);
  color: #f7f1ff;
  font: 9px var(--mono);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.player-chip.you {
  border-color: #c8f8d9a8;
  background: rgba(90, 156, 122, 0.26);
  color: #d8ffe6;
  box-shadow: 0 0 16px #9bf0bd12;
}
.bubble-action {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  color: #b9b1cc;
  font-size: 10px;
  font-weight: 600;
}
.bubble-action svg {
  width: 12px;
  height: 12px;
}
/* ==========================================================================
   Leerer Zustand, Fußzeile, Toast & Sync-Hinweis
   ========================================================================== */

.empty-state {
  grid-column: 1 / -1;
  width: 100%;
  padding: 54px 20px;
  text-align: center;
  border: 1px dashed rgba(202, 190, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.015);
}
.empty-orb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 13px;
  border: 1px solid #b5a0ff35;
  border-radius: 50%;
  color: var(--purple);
  background: #9884ff0c;
}
.empty-state h3 {
  margin: 0 0 7px;
  font-size: 16px;
}
.empty-state p {
  max-width: 300px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.bottom-note {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 23px;
  border-top: 1px solid var(--line);
  color: #746d86;
  font: 9px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bottom-note strong {
  color: #a69abf;
  font-weight: 500;
}
.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 26px;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border: 1px solid #cbb9ff50;
  border-radius: 12px;
  background: #211a31;
  box-shadow: 0 18px 50px #0007;
  color: #f7f1ff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.22s,
    transform 0.22s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error {
  border-color: #ff8f9e66;
  background: #311b28;
}
.sync-note {
  display: none;
  margin-top: 12px;
  padding: 10px;
  border-radius: 9px;
  color: #d5ffe3;
  background: #9bf0bd10;
  border: 1px solid #9bf0bd26;
  font-size: 10px;
  line-height: 1.5;
}
.sync-note.show {
  display: block;
}
/* ==========================================================================
   Animation & Responsive-Basis (Breakpoints)
   ========================================================================== */

@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -4px;
  }
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
    gap: 18px;
    padding-top: 48px;
  }
  .workspace {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 12px;
  }
  .setup-panel {
    padding: 18px;
  }
  .board-panel {
    padding: 15px;
  }
  .bubbles-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px 4px;
  }
  .game-bubble {
    max-width: 190px;
  }
}
@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 560px);
  }
  .topbar {
    padding: 18px 0;
  }
  .nav-right > span:not(.status-pill) {
    display: none;
  }
  .status-pill {
    font-size: 9px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 43px 0 28px;
  }
  h1 {
    font-size: clamp(47px, 12vw, 70px);
  }
  .hero-copy {
    font-size: 13px;
  }
  .poster-card {
    min-height: 190px;
  }
  .poster-label strong {
    font-size: 24px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .setup-panel {
    position: static;
  }
  .section-heading {
    align-items: flex-start;
  }
  .bubbles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 4px;
  }
  .game-bubble {
    width: min(100%, 205px);
    padding: 17px 10px;
  }
  .bubble-title {
    font-size: 17px;
  }
  .player-orbit {
    max-width: 145px;
  }
  .player-chip {
    max-width: 88px;
    font-size: 8px;
  }
  .board-toolbar {
    align-items: flex-start;
  }
  .searchbox {
    width: 48%;
  }
  .bottom-note {
    font-size: 8px;
  }
}
@media (max-width: 360px) {
  .bubbles-grid {
    grid-template-columns: 1fr;
  }
  .game-bubble {
    width: 216px;
  }
}
/* GameDate layout refresh: fuller canvas, larger bubbles, sharper typography */
/* ==========================================================================
   Feinabstimmung: größere Darstellung (überschreibt Regeln oben)
   ========================================================================== */

html,
body {
  min-height: 100%;
}
body {
  text-rendering: optimizeLegibility;
}
.shell {
  width: min(1920px, calc(100% - 48px));
  margin-inline: auto;
}
.topbar {
  height: 92px;
  padding-block: 0;
}
.section-heading {
  margin-top: 10px;
  margin-bottom: 16px;
}
.section-heading h2 {
  font-size: clamp(27px, 2.35vw, 36px);
}
.section-heading p {
  font-size: 13px;
}
.workspace {
  grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: calc(100vh - 185px);
  padding-bottom: 24px;
}
.setup-panel {
  padding: 24px;
}
.setup-panel h3 {
  font-size: 23px;
}
.board-panel {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 185px);
  padding: 22px;
}
.board-toolbar {
  margin-bottom: 18px;
}
.board-count {
  font-size: 13px;
}
.board-count b {
  font-size: 16px;
}
.searchbox {
  width: min(270px, 45%);
}
.searchbox input {
  height: 40px;
  font-size: 13px;
}
.bubbles-grid {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  align-items: flex-start;
  gap: 18px 16px;
  padding: 4px 0 18px;
}
.game-bubble {
  width: min(100%, var(--bubble-size, 250px));
  max-width: 100%;
  flex: 0 0 auto;
  padding: 20px 15px 18px;
  overflow: hidden;
  animation: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  -webkit-font-smoothing: antialiased;
  backface-visibility: visible;
}
.game-bubble:hover {
  transform: none;
  filter: brightness(1.1);
  border-color: hsla(var(--hue), 95%, 84%, 0.78);
}
.game-bubble:active {
  transform: none;
  filter: brightness(1.14);
}
.bubble-title {
  max-width: 220px;
  font-size: clamp(19px, 1.6vw, 25px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.player-orbit {
  width: calc(100% - 24px);
  max-width: calc(100% - 24px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}
.player-chip {
  max-width: min(150px, calc(100% - 8px));
  padding: 6px 9px;
  overflow: visible;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  text-align: center;
  justify-content: center;
}
.player-chip.player-overflow {
  flex: 0 0 auto;
  border-color: hsla(var(--hue), 92%, 84%, 0.55);
  background: hsla(var(--hue), 50%, 25%, 0.96);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.empty-state {
  flex: 1 0 100%;
}
.bubble-action {
  margin-top: 13px;
  font-size: 12px;
}
.bubble-action svg {
  width: 14px;
  height: 14px;
}
.quick-game {
  padding: 7px 10px;
  font-size: 11px;
}
.field > span {
  font-size: 12px;
}
.field input {
  height: 46px;
  font-size: 14px;
}
.form-hint {
  font-size: 11px;
}
.sync-note {
  font-size: 11px;
}
/* No fractional floating animation: the text stays crisp on high-DPI and normal screens. */
@media (min-width: 1500px) {
  .shell {
    width: min(2040px, calc(100% - 72px));
  }
  .workspace {
    grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
    gap: 22px;
  }
  .bubbles-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 20px 16px;
  }
  .board-panel {
    padding: 26px;
  }
}
@media (max-width: 900px) {
  .shell {
    width: calc(100% - 32px);
  }
  .workspace {
    grid-template-columns: minmax(270px, 310px) minmax(0, 1fr);
    gap: 12px;
  }
  .setup-panel {
    padding: 18px;
  }
  .board-panel {
    padding: 15px;
  }
  .bubbles-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 12px 8px;
  }
  .bubble-title {
    font-size: clamp(18px, 2vw, 22px);
  }
}
@media (max-width: 680px) {
  .shell {
    width: calc(100% - 24px);
  }
  .brand-name {
    font-size: 14px;
  }
  .topbar {
    height: 72px;
    padding-block: 0;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .board-panel {
    min-height: 0;
    padding: 12px;
  }
  .bubbles-grid {
    gap: 12px 8px;
  }
  .game-bubble {
    width: min(100%, var(--bubble-size, 250px));
    padding: 15px 8px 13px;
  }
  .bubble-title {
    font-size: clamp(16px, 4.2vw, 20px);
  }
  .player-orbit {
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    gap: 5px;
    margin-top: 10px;
  }
  .player-chip {
    max-width: min(140px, calc(100% - 8px));
    padding: 5px 7px;
    font-size: 9px;
  }
  .bubble-action {
    margin-top: 9px;
    font-size: 10px;
  }
  .board-toolbar {
    align-items: center;
    gap: 8px;
  }
  .board-count {
    font-size: 11px;
    gap: 5px;
  }
  .searchbox {
    width: 48%;
  }
  .searchbox input {
    height: 36px;
    font-size: 11px;
  }
  .section-heading h2 {
    font-size: 27px;
  }
  .section-heading p {
    max-width: 34ch;
    font-size: 12px;
  }
  .status-pill {
    padding: 8px 11px;
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  .bubbles-grid {
    gap: 10px 0;
  }
  .game-bubble {
    width: min(100%, var(--bubble-size, 250px));
  }
}
/* Final readability and content-sized bubbles */
/* ==========================================================================
   Feinabstimmung: größere Schrift
   ========================================================================== */

.brand-name {
  font-size: 21px;
}
.nav-right {
  font-size: 14px;
}
.status-pill {
  font-size: 15px;
}
.eyebrow {
  font-size: 12px;
}
.hero-copy {
  max-width: 690px;
  font-size: 18px;
  line-height: 1.7;
}
.hero-copy .dating-claim {
  display: block;
  margin: 0 0 10px;
  color: #fff8ff;
  font-size: clamp(21px, 1.75vw, 27px);
  line-height: 1.3;
  letter-spacing: -0.035em;
}
.section-heading h2 {
  font-size: clamp(30px, 2.6vw, 39px);
}
.section-heading p {
  font-size: 15px;
  line-height: 1.5;
}
.setup-panel h3 {
  font-size: 26px;
}
.panel-kicker {
  font-size: 12px;
}
.field > span {
  font-size: 14px;
}
.field > span small {
  font-size: 11px;
}
.field input {
  height: 48px;
  font-size: 16px;
}
.add-button {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}
.quick-label {
  font-size: 11px;
}
.quick-game {
  padding: 8px 11px;
  font-size: 13px;
}
.form-hint {
  font-size: 13px;
  line-height: 1.65;
}
.sync-note {
  font-size: 13px;
  line-height: 1.55;
}
.board-count {
  font-size: 14px;
}
.board-count b {
  font-size: 17px;
}
.searchbox input {
  height: 42px;
  font-size: 14px;
}
.bubble-title {
  font-size: clamp(22px, 1.65vw, 27px);
  line-height: 1.13;
}
.player-chip {
  font-size: 11px;
  line-height: 1.28;
  padding: 6px 10px;
}
.bubble-action {
  font-size: 13px;
}
.empty-state h3 {
  font-size: 20px;
}
.empty-state p {
  font-size: 14px;
  max-width: 420px;
}
.toast {
  font-size: 14px;
}
.bottom-note {
  font-size: 11px;
}

/* Lobby status toggle (persisted in PostgreSQL) */
.game-bubble {
  cursor: default;
}
/* ==========================================================================
   Status-Umschalter der Bubbles (waiting / playing)
   ========================================================================== */

.bubble-status-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(117, 216, 231, 0.42);
  border-radius: 999px;
  color: #a9eff8;
  background: rgba(117, 216, 231, 0.11);
  font: 11px var(--mono);
  line-height: 1.15;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    filter 0.18s ease;
}
.bubble-status-toggle:hover {
  filter: brightness(1.14);
}
.bubble-status-toggle.waiting {
  border-color: rgba(117, 216, 231, 0.5);
  color: #a9eff8;
  background: rgba(117, 216, 231, 0.12);
}
.bubble-status-toggle.playing {
  border-color: rgba(116, 235, 166, 0.55);
  color: #a8f5c4;
  background: rgba(81, 203, 134, 0.13);
}
.status-toggle-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}
.status-toggle-cue {
  opacity: 0.82;
  font-size: 9px;
}
.bubble-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: #b9b1cc;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}
.bubble-action:hover {
  color: #fff;
}
.bubble-status-toggle:focus-visible,
.bubble-action:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
@media (max-width: 680px) {
  .bubble-status-toggle {
    gap: 5px;
    padding: 6px 8px;
    font-size: 10px;
  }
  .status-toggle-cue {
    font-size: 8px;
  }
}

/* Render only occupied lobbies; bubble size is computed from player-tag layout. */
.game-bubble {
  --bubble-size: 250px;
  width: min(100%, var(--bubble-size));
  padding: 20px 15px 18px;
}
.bubble-title {
  max-width: 230px;
}
.player-orbit {
  width: calc(100% - 24px);
  max-width: calc(100% - 24px);
  gap: 6px;
}
.player-chip {
  max-width: min(150px, calc(100% - 8px));
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  justify-content: center;
  text-align: center;
}
.player-chip.player-overflow {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .hero-copy {
    font-size: 17px;
  }
  .hero-copy .dating-claim {
    font-size: 22px;
  }
  .section-heading h2 {
    font-size: 32px;
  }
  .field > span {
    font-size: 13px;
  }
  .quick-game {
    font-size: 12px;
  }
  .player-chip {
    font-size: 10px;
  }
}
@media (max-width: 680px) {
  .brand-name {
    font-size: 14px;
  }
  .hero-copy {
    font-size: 16px;
  }
  .hero-copy .dating-claim {
    font-size: 21px;
  }
  .section-heading p {
    font-size: 14px;
  }
  .workspace {
    gap: 14px;
  }
  .field input {
    font-size: 16px;
  }
  .board-count {
    font-size: 12px;
  }
  .board-count b {
    font-size: 15px;
  }
  .searchbox input {
    font-size: 12px;
  }
  .bubble-title {
    font-size: clamp(18px, 4.4vw, 22px);
  }
  .bubble-title {
    font-size: clamp(20px, 4.4vw, 23px);
  }
  .player-chip {
    font-size: 10px;
    padding: 5px 8px;
  }
  .bubble-action {
    font-size: 12px;
  }
  .bottom-note {
    font-size: 9px;
  }
}
