/* GoatsBowl 2k26 */
.gbtitle {
  font-family: "Orbitron", var(--disp);
  font-weight: 800;
  font-size: clamp(28px, 8.4vw, 76px);
  overflow-wrap: normal;
  letter-spacing: 0.02em;
}
.gbtitle span {
  color: var(--gold);
}
.gbtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.gbtab {
  padding: 11px 20px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.gbtab.on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
[hidden] {
  display: none !important;
}
.gbgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.gbpanel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(18px, 3vw, 30px);
  box-shadow: 0 10px 30px rgba(14, 17, 48, 0.06);
}
.gbpanel h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  margin-bottom: 10px;
}
.gbhint {
  color: var(--mute);
  margin: 0 0 16px;
}
.gbadd {
  display: grid;
  gap: 10px;
}
.gbadd input,
.gbfields input,
.gbfields select,
.gbjoin input {
  font: inherit;
  padding: 11px 14px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--navy);
  width: 100%;
}
.gbadd input:focus,
.gbfields input:focus,
.gbfields select:focus,
.gbjoin input:focus,
.gpn:focus {
  outline: 0;
  border-color: var(--navy2);
}
.gbchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gbchip {
  min-width: 38px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--mute);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.gbchip.on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.gbtools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.gbtools .btn {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--navy);
  border-color: var(--navy);
  background: none;
}
.gbtools .btn.gold {
  background: var(--gold);
  border-color: var(--gold);
}
.gbover .gbtools .btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.gbcount {
  margin: 14px 0 6px;
  font-weight: 700;
  color: var(--navy2);
}
.gblist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
}
.gp {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--ice);
  border-radius: 12px;
}
.gp.off {
  opacity: 0.5;
}
.gp .gbchips {
  grid-column: 2 / 3;
}
.gpon input {
  width: 22px;
  height: 22px;
  accent-color: var(--navy);
}
.gpn {
  font: inherit;
  font-weight: 700;
  border: 2px solid transparent;
  background: transparent;
  padding: 4px 6px;
  border-radius: 8px;
  color: var(--navy);
  width: 100%;
}
.gp .gbchip {
  min-width: 0;
  padding: 3px 7px;
  font-size: 11px;
}
.gpx {
  grid-row: 1 / 3;
  grid-column: 3;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--mute);
  padding: 4px 8px;
}
.gpx:hover {
  color: #c4272d;
}
.gbopts {
  margin-bottom: 14px;
}
.gbchk {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
}
.gbchk input {
  width: 20px;
  height: 20px;
  accent-color: var(--navy);
}
.gbdraw {
  width: 100%;
  text-align: center;
}
.gbout {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}
.gbempty {
  color: var(--mute);
  margin: 0;
}
.gbteam {
  border-radius: 14px;
  padding: 14px 14px 10px;
  border: 2px solid var(--navy2);
}
.gbteam.b {
  background: #e8eeff;
  border-color: #2a56d0;
}
.gbteam.w {
  background: #fff;
  border-color: #aab2d0;
}
.gbteam h3 {
  font-size: 22px;
  margin: 0 0 8px;
  font-family: "Orbitron", var(--disp);
  font-weight: 800;
  text-transform: uppercase;
}
.gbteam h3 small {
  font-family: inherit;
  font-size: 13px;
  color: var(--mute);
  font-weight: 600;
  text-transform: none;
  margin-left: 6px;
}
.gbteam ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.rc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  animation: rcin 0.45s both cubic-bezier(0.2, 1.3, 0.4, 1);
  animation-delay: calc(var(--i) * 70ms);
}
@keyframes rcin {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.92);
  }
}
.rp {
  min-width: 44px;
  text-align: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold);
  font-family: "Orbitron", var(--disp);
  font-weight: 800;
  font-size: 14px;
}
.rn {
  display: grid;
  min-width: 0;
}
.rn small {
  color: var(--mute);
  font-size: 13px;
}
.gbwarn {
  color: #b3541a;
  font-style: normal;
  font-weight: 700;
}
.gbroll {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 55%, #1d2570 0, var(--navy) 70%);
  color: #fff;
  text-align: center;
}
.gbroll small {
  display: block;
  color: var(--gold);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.gbroll b {
  font-family: "Orbitron", var(--disp);
  font-size: clamp(30px, 8vw, 68px);
  display: block;
  min-height: 1.2em;
}

/* Spiel */
.gbmenu {
  max-width: 860px;
  margin: 0 auto;
}
.gbfields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.gbfields label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}
.gbmodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.gbmode {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 14px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s;
}
.gbmode:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.gbmode b {
  font-size: 18px;
}
.gbmode small {
  color: #cfd4ec;
}
.gbonline {
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  background: var(--ice);
}
.gbnote {
  font-size: 13px;
  color: var(--mute);
  margin: 0 0 14px;
}
.gbtwo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.gbtwo h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.gbcode {
  margin: 12px 0 0;
  font-family: "Orbitron", var(--disp);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: 0.18em;
  color: var(--navy);
}
.gbjoin {
  display: flex;
  gap: 8px;
}
.gbjoin input {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 800;
  text-align: center;
  max-width: 140px;
}
.gbstatus {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-weight: 700;
  color: var(--navy2);
}
.gbhelp {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--mute);
  display: grid;
  gap: 4px;
}
.gbstage {
  max-width: 1000px;
  margin: 0 auto;
}
.gbframe {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: #0b0e24;
  box-shadow: 0 20px 50px rgba(14, 17, 48, 0.3);
  line-height: 0;
}
.gbframe:fullscreen {
  display: grid;
  place-items: center;
  border-radius: 0;
}
.gbframe:fullscreen canvas {
  max-height: 100vh;
  width: auto;
  max-width: 100vw;
}
#gbc {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  display: block;
}
.gbpad {
  display: none;
  line-height: 1;
}
.gbjoy {
  position: relative;
  width: 140px;
  height: 140px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid rgba(255, 255, 255, 0.55);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.gbjoy::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.25);
}
.gbjoy i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  border-radius: 50%;
  background: rgba(242, 182, 50, 0.95);
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.gbboost {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: rgba(242, 182, 50, 0.92);
  color: var(--navy);
  font-family: "Orbitron", var(--disp);
  font-weight: 800;
  font-size: 14px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
/* Touch-Geräte: im Hochformat Joystick + Boost unter dem Spielfeld */
@media (pointer: coarse) {
  .gbpad {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px 20px;
    background: #0b0e24;
  }
}
/* Querformat: Joystick + Boost transparent über dem Feld */
@media (pointer: coarse) and (orientation: landscape) {
  /* Spiel füllt den ganzen Bildschirm (wie Vollbild), Menü und Footer sind verdeckt */
  body:has(.gbstage:not([hidden])) {
    overflow: hidden;
  }
  .gbstage:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: #0b0e24;
  }
  .gbframe {
    width: min(100vw, 200svh);
    border-radius: 0;
    box-shadow: none;
  }
  #gbc {
    width: 100%;
    height: auto;
  }
  .gbbar {
    position: absolute;
    top: 6px;
    right: 6px;
    margin: 0;
    gap: 6px;
    z-index: 2;
  }
  .gbstage .gbbar .btn {
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.3;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(8, 10, 30, 0.55);
    opacity: 0.7;
  }
  .gbpad {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 22px 14px;
    background: none;
    pointer-events: none;
  }
  .gbpad > * {
    pointer-events: auto;
  }
  .gbjoy {
    width: 120px;
    height: 120px;
    opacity: 0.4;
  }
  .gbjoy i {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
  }
  .gbboost {
    width: 82px;
    height: 82px;
    opacity: 0.5;
  }
}
.gbover {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  background: rgba(8, 10, 30, 0.82);
  color: #fff;
  text-align: center;
  line-height: 1.3;
  padding: 16px;
}
.gbover h3 {
  font-family: "Orbitron", var(--disp);
  font-size: clamp(24px, 5vw, 46px);
  color: var(--gold);
  margin: 0;
}
.gbover p {
  margin: 0;
  font-size: clamp(16px, 2.4vw, 22px);
}
.gbbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.gbbar .btn {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--navy);
  border-color: var(--navy);
  background: none;
}
@media (max-width: 860px) {
  .gbgrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gblist {
    max-height: 420px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rc {
    animation: none;
  }
}

/* ---------- Lobby, Tabellen, Scoreboard ---------- */
.gbmode.on {
  outline: 3px solid var(--gold);
}
.gblobby {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(14, 17, 48, 0.12);
}
.gblobby h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.gblobby label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  margin: 12px 0;
}
.gblobby select {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid rgba(14, 17, 48, 0.2);
  background: #fff;
  max-width: 100%;
}
.gbroster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gbroster li {
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--c, var(--navy));
  font-weight: 700;
  font-size: 14px;
}
.gbtwrap {
  overflow-x: auto;
  margin-top: 14px;
}
.gbtable {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.gbtable th,
.gbtable td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid rgba(14, 17, 48, 0.1);
}
.gbtable th:nth-child(2),
.gbtable td.nm {
  text-align: left;
}
.gbtable th:first-child,
.gbtable td:first-child {
  text-align: center;
  width: 44px;
}
.gbtable th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.gbtable td.nm {
  font-weight: 700;
}
.gbtable .top1 td {
  background: rgba(242, 182, 50, 0.22);
}
.gbtable .top2 td {
  background: rgba(14, 17, 48, 0.06);
}
.gbtable .top3 td {
  background: rgba(240, 138, 36, 0.1);
}
.gbtable.small {
  font-size: 14px;
  margin: 8px auto 0;
  width: auto;
  min-width: min(100%, 320px);
  color: #fff;
}
.gbtable.small th,
.gbtable.small td {
  padding: 4px 9px;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}
.gbtable.small th {
  color: #cfd4ec;
}
.gbrecent {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.gbrecent li {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ice);
}
.gbrecent small {
  color: var(--mute);
}
.gbover .gbhint {
  color: #cfd4ec;
  font-size: 14px;
  margin: 0;
}
@media (max-width: 860px) {
  .gbover {
    padding: 6px;
    gap: 3px;
  }
  .gbover .gbtable.small {
    font-size: 11px;
  }
  .gbover .gbtable.small th,
  .gbover .gbtable.small td {
    padding: 2px 6px;
  }
}
.gblobby select,
.gbfields select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}
.gblobby,
.gbonline {
  min-width: 0;
  max-width: 100%;
}

.rps {
  display: flex;
  gap: 6px;
  flex: none;
}
.rp i {
  display: block;
  font-style: normal;
  font-family: var(--body, inherit);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfd4ec;
  margin-bottom: 1px;
}
.rp.d {
  background: #2a56d0;
  color: #fff;
}
.rp .gbwarn {
  color: #ffb199;
  margin-left: 2px;
}
@media (max-width: 520px) {
  .rp {
    min-width: 40px;
    padding: 5px 6px;
    font-size: 13px;
  }
  .rc {
    gap: 8px;
  }
}
.gbabout {
  padding-bottom: 0;
}
.gbabout p {
  margin: 0 0 12px;
  line-height: 1.6;
}
.gbabout p:last-child {
  margin-bottom: 0;
}

.gbdiag {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0e1130;
  color: #cfd4ec;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.gbtitle b {
  font: inherit;
}
.gbbowls {
  margin-bottom: 20px;
}
.gbbowl {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--ice);
}
.gbbowl h3 {
  margin: 0 0 10px;
  font-family: "Orbitron", var(--disp);
  font-size: 18px;
}
.gbres {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}
.gbside {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1 1 160px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid rgba(14, 17, 48, 0.12);
  font-weight: 700;
}
.gbside b {
  font-family: "Orbitron", var(--disp);
  font-size: 30px;
}
.gbside.b {
  border-left: 6px solid #2a56d0;
}
.gbside.w {
  border-left: 6px solid #9aa3c7;
}
.gbside.win {
  border-color: var(--gold);
  background: rgba(242, 182, 50, 0.18);
}
.gbsep {
  align-self: center;
  font-weight: 800;
  font-size: 22px;
}
.gbbowl p {
  margin: 12px 0 0;
  line-height: 1.55;
}

.gbstory { line-height: 1.65; }
.gbstory h3 { margin: 20px 0 8px; font-size: 18px; }
.gbstory p { margin: 0 0 12px; }
.gbsteps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.gbsteps li { position: relative; padding: 12px 14px 12px 52px; border-radius: 12px; background: rgba(15, 40, 80, 0.06); counter-increment: s; }
.gbsteps li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #0f2850; color: #f2b632; font-weight: 800; font-size: 14px; }
.gbrev { margin: 16px 0 0; padding: 12px 16px; border-left: 5px solid #f2b632; background: rgba(242, 182, 50, 0.14); border-radius: 0 12px 12px 0; font-weight: 700; line-height: 1.5; }
@media (max-width: 520px) {
  .gbsep { display: none; }
  .gbside { flex-basis: 100%; }
}
