/* Lobby presentation only; existing room and launch handlers own all actions. */
body[data-menu-screen="lobby"] #menu-shell {
  background: repeating-linear-gradient(135deg, #ffffff03 0 28px, transparent 28px 58px), #00533d;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(110px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.screen[data-screen="lobby"] { max-width: 1080px; }
.ggc-panel .lobby-header {
  border: 3px solid #421b1a; border-radius: 16px; padding: 16px 18px;
  background: linear-gradient(#ee6934, #ba3026); box-shadow: inset 0 3px #ff9c58, 0 6px #002b25;
  margin-bottom: 24px;
}
.ggc-panel .lobby-brand { padding: 0; }
.ggc-panel #game-title:focus { outline: none; }
.ggc-panel .lobby-brand h1 { font-weight: 1000; color: #fff9df; text-shadow: 2px 3px #43211d; letter-spacing: -.04em; }
.ggc-panel .lobby-brand h1 span { display: inline-block; background: #6e1a1a; color: #ffdb72; padding: 4px 7px; border-radius: 6px; margin-left: 8px; }
.ggc-panel .lobby-brand .eyebrow { color: #fff3d0; font-weight: 700; }
.ggc-panel .header-tools .lobby-header-stats { position: static; width: auto; display: flex; flex-wrap: wrap; gap: 6px; }
#menu-shell .header-tools .online, #menu-shell .header-tools #total-plays {
  color: #fff4d3; background: #681b23; border: 2px solid #a53026; border-radius: 24px; padding: 5px 10px; font-size: 12px; font-weight: 800;
}
#menu-shell .ggc-panel .kenney-button, body[data-menu-screen="lobby"] .info-dialog .kenney-button {
  --button-top: #16baff; --button-bottom: #0877d5;
  border: 2px solid #092e44; border-radius: 10px; color: white;
  background: linear-gradient(var(--button-top), var(--button-bottom));
  box-shadow: inset 0 3px #ffffff45, inset 0 -4px #0002, 0 3px #092e44;
  font-weight: 900; text-shadow: 0 2px #0007; transition: transform .12s;
}
#menu-shell .ggc-panel .tone-green { --button-top: #73d54c; --button-bottom: #278b43; }
#menu-shell .ggc-panel .tone-red { --button-top: #ff7471; --button-bottom: #d6314d; }
#menu-shell .ggc-panel .tone-yellow, #menu-shell .ggc-panel .lobby-tabs .active { --button-top: #ffe268; --button-bottom: #ffaa1b; color: #392814; text-shadow: 0 1px #fff8; }
#menu-shell .ggc-panel .tone-lavender { --button-top: #bd7bf7; --button-bottom: #7d3ada; }
#menu-shell .ggc-panel .kenney-button:hover:not(:disabled) { filter: brightness(1.12); border-color: #092e44; }
#menu-shell .ggc-panel .kenney-button:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 2px #0003; }
.ggc-panel .portal-heading { display: flex; align-items: center; gap: 12px; margin: 0 4px 20px; }
.ggc-panel .portal-kicker { color: #a9e5bf; font-weight: 800; letter-spacing: .06em; }
#menu-shell .ggc-panel .portal-heading h2 { color: #fff; font-weight: 1000; text-shadow: 2px 3px #002c23; }
.portal-subtitle { display: block; color: #cce7d5; margin-top: 5px; font-size: 13px; }
.ggc-panel .portal-heading > a { flex-shrink: 0; text-decoration: none; padding: 14px 18px; font-size: 16px; }
.ggc-panel .game-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; margin-top: 24px; }
.ggc-panel .featured-game, .ggc-panel .game-card {
  --frame: #158dff; --tile-x: 0%; --tile-y: 0%;
  position: relative; display: block; isolation: isolate; min-height: 228px; padding: 0;
  border: 7px solid var(--frame); border-radius: 25px; overflow: visible;
  background: #173d35; color: white; box-shadow: 0 0 0 3px #042d36, inset 0 0 0 3px #092e44, 0 8px 0 #00292b;
  text-align: left; transition: transform .15s;
}
.ggc-panel .featured-game::before, .ggc-panel .game-card::before {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: 16px;
  background-image: url('/assets/lobby/arcade-scenes.jpg'); background-size: 300% 318%; background-position: var(--tile-x) var(--tile-y);
}
.ggc-panel .featured-game::after, .ggc-panel .game-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 16px;
  background: linear-gradient(90deg, #061e2ae8, #061e2a75 58%, #061e2a08);
  box-shadow: inset 0 3px 0 #ffffff65, inset 0 -4px #0004;
}
.ggc-panel .featured-game { min-height: 248px; }
.ggc-panel .featured-game::before { background-size: 300% 430%; background-position: 0 0; }
.ggc-panel .game-card[data-launch-mode="shooting"] { --tile-x: 50%; --frame: #1cafff; }
.ggc-panel .game-card[data-launch-mode="cake-defense"] { --tile-x: 100%; --frame: #ac46eb; }
.ggc-panel .game-card[data-launch-mode="card-battle"] { --tile-y: 48%; --frame: #e54881; }
.ggc-panel .game-card[data-launch-mode="reverse-city"] { --tile-x: 50%; --tile-y: 48%; --frame: #ffaf26; }
.ggc-panel .game-card[data-launch-mode="frontline-bomber"] { --tile-x: 100%; --tile-y: 48%; --frame: #ed3352; }
.ggc-panel .game-card[data-launch-mode="crowd-runner"] { --tile-y: 100%; --frame: #27c1d9; }
.ggc-panel .game-card[data-launch-mode="bootcamp-race"] { --tile-x: 50%; --tile-y: 100%; --frame: #ff962b; }
.ggc-panel .game-card[data-launch-mode="war-sandbox"] { --tile-x: 100%; --tile-y: 100%; --frame: #36bf72; }
.ggc-panel .game-card-art, .ggc-panel .featured-art {
  position: absolute; top: -14px; left: -12px; right: auto; width: 55px; height: 55px;
  display: grid; place-items: center; border: 3px solid #0a3045; border-radius: 50%;
  background: var(--frame); color: white; font-size: 30px; line-height: 1;
  text-shadow: 1px 2px #092e44; box-shadow: inset 0 3px #fff8, inset 0 -5px #0003, 0 3px #002b36;
  transform: rotate(-10deg); opacity: 1; z-index: 2;
}
.ggc-panel .featured-art i { display: none; }
.ggc-panel .game-card-copy, .ggc-panel .featured-copy {
  display: flex; flex-direction: column; position: relative; z-index: 1;
  min-height: 214px; padding: 18px 20px 14px; gap: 7px;
}
.ggc-panel .featured-copy { min-height: 234px; }
.ggc-panel .game-card-copy small, .ggc-panel .featured-copy small {
  align-self: flex-start; margin-left: 29px; padding: 3px 8px; border-radius: 5px; background: #082738dc; color: #fff5d4; font-size: 12px; font-weight: 800;
}
.ggc-panel .game-card-copy strong, .ggc-panel .featured-copy strong {
  color: #fff; font-size: 29px; line-height: 1.35; font-weight: 1000; letter-spacing: -.03em; text-shadow: 2px 3px #09202e, -1px -1px #09202e;
}
.ggc-panel .featured-copy strong { font-size: 34px; }
.ggc-panel .game-card-copy > span, .ggc-panel .featured-copy > span {
  color: #fff; max-width: 330px; font-size: 14px; line-height: 1.6; flex: 1; text-shadow: 0 1px 3px #001019;
}
.ggc-panel .game-card-copy b, .ggc-panel .featured-copy b {
  display: flex; justify-content: space-between; gap: 28px; width: fit-content; min-width: 155px; min-height: 42px;
  padding: 8px 18px; border: 2px solid #633810; border-radius: 7px; color: #36240c;
  background: linear-gradient(#ffe66c 0 48%, #ffbe29 49%); box-shadow: inset 0 2px #fff9, 0 3px #6a3b18;
  text-shadow: 0 1px #fff8; font-size: 17px; font-weight: 1000;
}
.ggc-panel .featured-game:hover, .ggc-panel .game-card:hover:not(:disabled) { transform: translateY(-3px); }
.ggc-panel .featured-game:active, .ggc-panel .game-card:active:not(:disabled) { transform: translateY(3px); }
#menu-shell .ggc-panel .lobby-box { background: #073f38; border: 3px solid #147d63; box-shadow: 0 5px #002b27; }
#menu-shell .ggc-panel .lobby-tabs { background: #00382d; border-color: #168569; }
.ggc-panel .community-heading { border-color: #258569; }
.ggc-panel :is(#profile-title, #rooms-title, #play-portal-title) { scroll-margin-top: 20px; }
.arcade-dock {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 20;
  width: min(100%, 640px); display: flex; align-items: stretch; justify-content: center;
  padding: 0 12px env(safe-area-inset-bottom); background: linear-gradient(#e55932, #a52b22);
  border: 3px solid #672921; border-bottom: 0; border-radius: 16px 16px 0 0; box-shadow: inset 0 4px #ff9960, 0 -3px 14px #002a2577;
}
.arcade-dock a { flex: 1; display: grid; place-items: center; gap: 2px; padding: 9px 4px; color: white; font-weight: 900; font-size: 14px; text-decoration: none; text-shadow: 1px 2px #57261c; }
.arcade-dock a > span { font-size: 27px; line-height: 1; }
.arcade-dock .dock-play { margin-top: -13px; border: 3px solid #6c3f10; border-bottom: 0; border-radius: 12px 12px 0 0; background: linear-gradient(#ffe66b, #ffad20); color: #38250e; text-shadow: 0 1px #fff7; }
.arcade-dock a:focus-visible { outline: 3px solid white; outline-offset: -5px; }
body:not([data-menu-screen="lobby"]) .arcade-dock { display: none; }
body[data-menu-screen="lobby"] .info-card { border: 4px solid #168fc9; background: #073f38; box-shadow: 0 8px #002c29, 0 20px 80px #0009; }
@media (max-width: 700px) {
  .ggc-panel .lobby-header { grid-template-columns: 1fr; padding: 12px; gap: 10px; margin-bottom: 18px; }
  .ggc-panel .lobby-brand h1 { font-size: 28px; }
  .ggc-panel .lobby-brand .eyebrow { font-size: 11px; }
  .ggc-panel .header-tools .lobby-header-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  #menu-shell .header-tools .kenney-button, #menu-shell .header-tools #music-button { font-size: 12px; min-height: 44px; }
  .ggc-panel .header-tools .lobby-header-stats { justify-content: space-between; gap: 3px; }
  #menu-shell .header-tools .online, #menu-shell .header-tools #total-plays { font-size: 10px; padding: 4px 7px; }
  .ggc-panel .portal-heading h2 { font-size: 23px; }
  .ggc-panel .portal-heading > a { padding: 10px; font-size: 14px; }
  .ggc-panel .portal-kicker { font-size: 10px; }
  .ggc-panel .game-card-grid { grid-template-columns: 1fr; }
  .ggc-panel .featured-game { min-height: 228px; }
  .ggc-panel .featured-game::before { background-size: 300% 318%; }
  .ggc-panel .featured-copy { min-height: 214px; }
  .ggc-panel .game-card-copy, .ggc-panel .featured-copy { padding: 15px 16px 13px; }
  .ggc-panel .featured-copy strong { font-size: 27px; }
  .ggc-panel .game-card-copy strong { font-size: 27px; }
  .ggc-panel .featured-copy > span { max-width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .ggc-panel .game-card, .ggc-panel .featured-game, #menu-shell .ggc-panel .kenney-button { transition: none; }
}
