/* Startseite und Lobby: eigener Auftritt (Kartenhintergrund, Wappenbanner, Tafelrunde) statt der Standardkarte. */
.screen.home, .screen.lobby { position: relative; min-height: 100dvh; overflow-x: hidden; }
.home-bg { position: fixed; inset: 0; z-index: 0; background:
  radial-gradient(ellipse at 50% 30%, rgba(10,13,20,.15) 0%, rgba(6,8,13,.85) 78%),
  linear-gradient(rgba(6,8,13,.35), rgba(6,8,13,.6)),
  url(assets/board/board.webp) center 30% / cover no-repeat; filter: saturate(.8); }
.screen.home[hidden] .home-bg, .screen.lobby[hidden] .home-bg { display: none; }
.home-wrap, .lobby-wrap { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 16px 18px 48px; padding-top: max(16px, env(safe-area-inset-top)); }
.back-hub { display: inline-block; color: var(--gold2); opacity: .8; text-decoration: none; font-size: .9rem; }

/* Startseite */
.hero { text-align: center; padding: 12px 0 8px; }
.hero-crown { display: none; }
.hero-crown img { height: 64px; width: auto; filter: drop-shadow(0 0 14px rgba(240,209,138,.6)); }
.eyebrow { text-transform: uppercase; letter-spacing: .42em; font-size: .72rem; color: var(--gold); margin: 6px 0 0; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); margin: 4px 0 6px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.05;
  background: linear-gradient(#fff3cf, #d2aa5c 60%, #8d6c2b); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 18px rgba(210,170,92,.35)); }
.hero .sub { color: #c7ccd8; margin: 0 0 14px; }
.flag-row { display: flex; justify-content: center; gap: clamp(6px, 2vw, 18px); margin: 6px 0 4px; }
.hflag { display: flex; flex-direction: column; align-items: center; gap: 4px; transform-origin: top center; animation: sway 6s ease-in-out infinite; }
.hflag:nth-child(2n) { animation-delay: -2s; } .hflag:nth-child(3n) { animation-delay: -4s; }
.hflag img { width: clamp(38px, 9vw, 70px); height: auto; filter: drop-shadow(0 6px 8px rgba(0,0,0,.7)); }
.hflag span { font-family: var(--serif); font-size: .7rem; color: var(--gold); letter-spacing: .08em; opacity: .85; }
@keyframes sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
.name-bar { max-width: 460px; margin: 16px auto 6px; text-align: center; }
.name-bar label { margin: 0 0 2px; color: var(--gold); font-family: var(--serif); letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; }
.name-bar input { width: 100%; text-align: center; font-size: 1.05rem; }
.home-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.hpanel { border: 20px solid transparent; border-image: var(--f-modal) 24 fill / 20px stretch; background: rgba(8,11,18,.82); background-clip: padding-box; padding: 4px 6px 14px; display: flex; flex-direction: column; gap: 8px; }
.hpanel h2 { margin: 0; font-size: 1.25rem; }
.hpanel p { margin: 0; font-size: .9rem; }
.hpanel .primary { width: 100%; margin-top: auto; }
.home .join-row { margin-top: auto; }
.home .join-row input { flex: 1; min-width: 0; letter-spacing: .4em; }
.home .join-row .primary { width: auto; margin-top: 0; }
.home .hint { max-width: 560px; margin: 20px auto 0; text-align: center; }
.home #home-error { text-align: center; margin-top: 12px; }
#btn-spectate { margin-top: 6px; }
@media (max-width: 640px) { .home-panels { grid-template-columns: 1fr; } .hero-crown img { height: 48px; } }

/* Lobby */
.lobby-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 26px; margin-top: 4px;
  border: 14px solid transparent; border-image: url(assets/ui/frm_headerbanner.png) 30 fill / 14px stretch; background: rgba(8,11,18,.6); background-clip: padding-box; }
.lb-code .code { font-size: clamp(1.7rem, 6vw, 2.6rem); letter-spacing: .32em; padding: 2px 18px 2px 26px; border-radius: 6px; }
.lb-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.lobby-hint { text-align: center; margin: 12px 0 4px; }
.lobby-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-top: 10px; }
.lcol { border: 20px solid transparent; border-image: var(--f-modal) 24 fill / 20px stretch; background: rgba(8,11,18,.84); background-clip: padding-box; padding: 0 4px 10px; min-width: 0; }
.lcol h3 { margin: 0 0 8px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .14em; }
.lcol h3:not(:first-child) { margin-top: 16px; }
.seats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.seat { display: flex; align-items: center; gap: 12px; padding: 6px 10px 6px 8px; min-height: 66px; border-radius: 10px; position: relative;
  background: linear-gradient(90deg, color-mix(in srgb, var(--hc, #3a3526) 30%, #0d121c) 0%, #0d121c 62%); border: 1px solid color-mix(in srgb, var(--hc, #3a3526) 55%, #000); border-left: 5px solid var(--hc, #3a3526); }
.seat.me { box-shadow: 0 0 0 1px var(--gold2), 0 0 16px rgba(240,209,138,.25); }
.seat.off { opacity: .55; }
.seat .sflag { width: 38px; height: auto; flex: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.7)); }
.seat .sinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.seat .sinfo b { font-family: var(--serif); font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .sinfo small { color: var(--muted); }
.seat .stags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.seat.empty { background: rgba(255,255,255,.02); border: 1px dashed #3a3526; border-left: 5px dashed #3a3526; }
.seat.empty .sflag { opacity: .35; filter: grayscale(1); }
.seat.empty .sinfo b { color: #7f8595; font-weight: 500; }
.seat.empty.need { border-color: #6b5a2c; }
.lobby .host-tools { display: flex; gap: 8px; margin-top: 12px; }
.lobby .house-picker { grid-template-columns: repeat(3, 1fr); }
.lobby .timer-row { margin: 4px 0 10px; }
.lobby .lobby-actions { justify-content: center; margin-top: 22px; gap: 14px; }
.lobby .lobby-actions .primary { min-width: 240px; font-size: 1.05rem; }
.lobby #lobby-error { text-align: center; }
@media (max-width: 720px) {
  .lobby-cols { grid-template-columns: 1fr; }
  .lobby-banner { padding: 10px 14px; flex-direction: column; align-items: stretch; text-align: center; }
  .lb-right { justify-content: center; }
  .lobby .lobby-actions .primary { min-width: 0; flex: 1; }
}

.lobby-banner .eyebrow { color: #4a3510; letter-spacing: .36em; font-weight: 700; }
.lobby-banner .code { background: rgba(255,244,214,.35); border: 1px solid rgba(74,53,16,.6); color: #2a1a05; text-shadow: none; }
