:root {
  /* the waiting room's glass (the corner here, room cards through hub.glass): how white it is (0..1) and how much
     of the scene behind it is blurred away */
  --glass-tint: 0.5;   /* the owner's pick, 2026-11-17: 50% white, blur 18 */
  --glass-blur: 18px;
  --bg: #0e0f13;
  --panel: rgba(22, 23, 29, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #9ca3af;
  --accent: #7cfc4a;
  --warn: #fbbf24;
  --bad: #f87171;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  /* the home page's sky, as hub.drawLoading paints it: what shows before a game's first frame (it was the old
     dark panel's black, a flash on the way in from the games list) */
  background: linear-gradient(#8ec7fb, #d4ebff) fixed #8ec7fb;
  color: var(--text);
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

canvas#arena {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}
/* frosted glass under a card the game draws (hub.glass): the 3D view behind it blurred; the card's 70% white
   tint is painted over it on the HUD canvas */
.glass-pane {
  position: fixed;
  pointer-events: none;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
}
.glass-pane[hidden] { display: none; }

/* ---------- Lobby panel ---------- */

.lobby {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 300px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 18px;
}

.lobby[hidden] { display: none; }

.lobby-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

/* The name is hompa! (since 2026-11-18): the same logo as the landing page. */
.brand { display: flex; align-items: center; }
.brand .logo { display: block; width: 150px; height: auto; margin: -6px 0 -4px -4px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }

button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
button.ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }

.menu-btn {
  width: 100%;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.12); }
.menu-btn[hidden] { display: none; }

.games {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: auto;
  gap: 2px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}
.games button {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 8px 8px;
  white-space: nowrap;
  cursor: pointer;
}
.games button:hover { color: var(--text); }
.games button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.blurb {
  margin: 8px 2px 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.step {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.qr {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.qr svg { width: 100%; height: 100%; display: block; }

.code-block {
  margin-top: 14px;
  display: grid;
  gap: 4px;
  justify-items: start;
}
.label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.url {
  color: var(--text);
  font-size: 13px;
  word-break: break-all;
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 6px;
}
.code {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(124, 252, 74, 0.35);
}

.remote {
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(77, 171, 247, 0.08);
  border: 1px solid rgba(77, 171, 247, 0.18);
}
.remote p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.remote a {
  color: #8cc8ff;
  word-break: break-all;
  text-decoration: none;
  border-bottom: 1px dashed rgba(140, 200, 255, 0.4);
}
.remote-copy {
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(140, 200, 255, 0.45);
  background: rgba(140, 200, 255, 0.12);
  color: #cfe7ff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.remote-copy:hover, .remote-copy:focus-visible { background: rgba(140, 200, 255, 0.24); }
.remote-copy.done { border-color: rgba(124, 252, 74, 0.6); color: #c8ffb0; }

.status {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.status.ok::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.status.warn::before { background: var(--warn); }
.status.bad::before { background: var(--bad); }

.roster {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.roster li {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
}
.roster .dot { width: 14px; height: 14px; border-radius: 50%; }
.roster .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster .meta { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.roster .btns {
  grid-column: 2 / 5;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  min-height: 16px;
}
.roster .btns span {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.3);
}
.roster .btns span.on { background: var(--text); color: var(--bg); }

.hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* Dev test (local test server only, js/devtest.js): a switch in the bottom-left corner of every
   screen, which turns into the recording's clock and counts while it records. */
.devtest {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: rgba(14, 15, 19, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}
.devtest[hidden] { display: none; }
body.hompa-reel .devtest { display: none; }   /* the highlight reel is for the room: no dev controls on it */
.devtest.on { border-color: #ff4d4f; }
.devtest-tick { display: flex; align-items: center; gap: 8px; cursor: pointer; font-variant-numeric: tabular-nums; }
.devtest-tick input { width: 16px; height: 16px; margin: 0; accent-color: #ff4d4f; cursor: pointer; }
.devtest.on .devtest-tick::after { content: ''; order: -1; width: 9px; height: 9px; border-radius: 50%; background: #ff4d4f; animation: devtest-blink 1.2s steps(2, jump-none) infinite; }
@keyframes devtest-blink { 50% { opacity: 0.25; } }
.devtest-save {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}
.devtest-save[hidden] { display: none; }
.devtest-pick { display: flex; gap: 6px; }
.devtest-pick[hidden] { display: none; }
/* a pressed tool (its panel open, or recording): filled, so which one is on reads at a glance */
.devtest-save[aria-pressed="true"] { background: #ffffff; border-color: #ffffff; color: #14151a; }
.devtest-save:focus-visible { outline: 2px solid #7cfc4a; outline-offset: 2px; }

/* The sound panel (js/soundlab.js): over the Dev test switch, a slider per sound, live; the camera panel shares it. */
.soundlab {
  position: fixed; left: 16px; bottom: 64px; z-index: 20;
  width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 96px);
  display: flex; flex-direction: column;
  border-radius: 14px; background: rgba(14, 15, 19, 0.96); border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff; font-size: 13px;
}
.soundlab[hidden] { display: none; }
.soundlab-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 10px 12px 6px; }
.soundlab-head b { display: block; font-size: 14px; }
.soundlab-head span, .soundlab-empty, .soundlab-loop { color: rgba(255, 255, 255, 0.62); }
.soundlab-fold { min-width: 28px; min-height: 28px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #ffffff; font: inherit; font-weight: 700; cursor: pointer; }
.soundlab.folded .soundlab-head span, .soundlab.folded .soundlab-rows, .soundlab.folded .soundlab-empty, .soundlab.folded .soundlab-foot { display: none; }
.soundlab-rows { overflow-y: auto; padding: 0 12px; display: flex; flex-direction: column; gap: 4px; }
.soundlab-row { padding: 4px 8px 2px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.soundlab-row.changed { background: rgba(124, 252, 74, 0.14); }
.soundlab-top { display: flex; align-items: center; gap: 8px; }
.soundlab-name { font-weight: 700; flex: 1; min-width: 0; }
.soundlab-val { font-variant-numeric: tabular-nums; font-size: 12px; color: rgba(255, 255, 255, 0.75); white-space: nowrap; }
.soundlab-row input { width: 100%; margin: 2px 0; accent-color: #7cfc4a; cursor: pointer; }
.soundlab-play { min-width: 32px; min-height: 28px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #ffffff; font: inherit; cursor: pointer; }
.soundlab-empty { padding: 0 12px; margin: 0; }
.soundlab-empty[hidden] { display: none; }
.soundlab-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; }
.soundlab-foot button { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #ffffff; font: inherit; font-weight: 700; cursor: pointer; }
.soundlab-msg { color: #7cfc4a; font-size: 12px; overflow-wrap: anywhere; }
/* The camera panel (js/camlab.js) is the sound panel's box (class soundlab camlab), its sliders the same rows; the line
   under them is where the camera is now. */
.camlab-now { margin: 6px 12px 0; color: rgba(255, 255, 255, 0.62); font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* The Swing Lab (js/swinglab.js): right side while Tennis practises with Dev test on. Yellow is what
   the player's swings did, blue the ball they want. L folds it to a tab. */
.swinglab {
  --you: #ffd43b;
  --want: #4dabf7;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 356px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  font-size: 12px;
  line-height: 1.35;
}
.swinglab[hidden] { display: none; }
.swinglab .lab-tab { display: none; }
.swinglab.folded .lab-tab { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.swinglab.folded { width: auto; }
.swinglab.folded .lab-panel { display: none; }
.lab-panel {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 10px 12px 12px;
  border-radius: 14px;
  background: rgba(14, 15, 19, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.swinglab button {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.swinglab button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }
.swinglab button.on { background: var(--want); border-color: var(--want); color: #0e0f13; font-weight: 700; }
.swinglab button:disabled { opacity: 0.35; cursor: default; }
.swinglab .lab-tab { background: rgba(14, 15, 19, 0.9); padding: 6px 12px; }
.lab-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.lab-head b { font-size: 15px; }
.lab-head span { color: var(--muted); }
.lab-head .lab-fold { margin-left: auto; }
.lab-step { margin: 8px 0 5px; color: var(--text); font-weight: 500; }
.lab-step b {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
}
.lab-step small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.lab-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lab-slots .lab-slot { display: flex; align-items: center; gap: 6px; border-radius: 10px; padding: 5px 8px; text-align: left; }
.lab-slot i { font-style: normal; font-size: 16px; line-height: 1; }
.lab-slot em { margin-left: auto; font-style: normal; font-variant-numeric: tabular-nums; opacity: 0.75; }
.lab-saw, .lab-want { display: flex; gap: 10px; align-items: flex-start; }
.lab-saw canvas, .lab-want canvas, .lab-side { flex: none; border-radius: 8px; background: rgba(255, 255, 255, 0.03); touch-action: none; }
.lab-top, .lab-side { cursor: crosshair; }
.lab-side { display: block; margin-top: 8px; }
.lab-read, .lab-want-col { min-width: 0; flex: 1; }
.lab-read p, .lab-want-read p { margin: 0 0 3px; }
.lab-read .dim { color: var(--muted); }
.lab-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.lab-hint { margin: 8px 0 0; color: var(--muted); }
.lab-hint .want { color: var(--want); }
.lab-hint .you { color: var(--you); }
.lab-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lab-acts .lab-play { background: var(--want); border-color: var(--want); color: #0e0f13; font-weight: 700; }
.lab-note { margin: 6px 0 0; color: var(--want); }
.lab-note:empty { display: none; }
kbd {
  font-family: inherit;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- The corner (every game's waiting room, top left) ----------
   Main menu, the join QR with the room code under it, the player count: no words by the QR (the owner's
   call). Top left unless the room stands it level with its card (hub.placeCorner sets left and top).
   Hidden once a game is under way. In the phones' pastel look (css/phone.css, the highlight clip), as
   frosted glass (the owner, 2026-11-17: "glass like texture, 70% opacity… so it looks premium"): 70% white
   over the blurred scene, a lit rim, a soft shadow, like the racket games' room card. */

.corner {
  --cq: clamp(132px, 23vmin, 250px);           /* the QR's side */
  --c-ink: #2a1f5e;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 5;
  width: calc(var(--cq) + 34px);               /* the QR, the padding and the border: it fills the inside exactly */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 14px 10px;
  color: var(--c-ink);
  background: linear-gradient(to bottom, rgba(255, 255, 255, calc(var(--glass-tint) + 0.08)), rgba(255, 255, 255, calc(var(--glass-tint) - 0.06)));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 0 0 1.5px rgba(154, 131, 234, 0.45), 0 16px 44px rgba(42, 31, 94, 0.28);
}
.corner[hidden] { display: none; }
.corner button { font: inherit; color: inherit; cursor: pointer; }
.corner-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(236, 229, 255, 0.8);
  font-weight: 700 !important;
  font-size: 15px !important;
  white-space: nowrap;
}
.corner-menu:hover, .corner-menu:focus-visible { background: #d9ccfc; color: var(--c-ink); }
.corner-menu kbd { margin-left: auto; font-size: 11px; color: #6a5f9e; background: #fff; border-radius: 6px; padding: 1px 6px; }
.corner-qr {
  align-self: center;
  width: var(--cq);
  height: var(--cq);
  padding: 9px;
  border-radius: 16px;
  background: #fff;
  border: 3px solid var(--c-ink);
}
.corner-qr svg { display: block; width: 100%; height: 100%; }
.corner-code {
  align-self: center;
  margin-top: -2px;
  padding: 2px 10px 2px calc(10px + 0.22em);    /* the letter spacing's tail, so it centres */
  border-radius: 14px;
  background: #ffe46e;
  border: 3px solid var(--c-ink);
  font-family: 'Fredoka', 'Rubik', system-ui, sans-serif;
  font-size: clamp(26px, 4.4vmin, 40px);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-kerning: none;                           /* a code, not a word: every letter its own cell */
}
.corner-players {   /* the dots, and the count beside them or, when they don't both fit, whole on the line under */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  white-space: nowrap;
  padding: 7px 4px 3px;
  border: 0;
  border-top: 2px dashed rgba(154, 131, 234, 0.35) !important;
  background: transparent;
  color: #4b4084;
  font-weight: 700 !important;
  font-size: 15px !important;
}
.corner-players[hidden] { display: none; }
/* A friend far away: one click copies their link (js/screen.js copyInvite); it says so for a moment */
.corner-invite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 5px 14px 5px 12px;
  border: 2px solid rgba(154, 131, 234, 0.55) !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.15;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.corner-invite svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.corner-invite-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; white-space: nowrap; }
.corner-invite-text small { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: #6a5f9e; }
.corner-invite:hover, .corner-invite:focus-visible { background: #ece5ff; border-color: var(--c-ink) !important; }
.corner-invite.done { background: #d6f4e4; border-color: #3fb47c !important; }
.corner-invite:disabled { opacity: 0.5; cursor: default; }
.corner-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.corner-dots i { width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--c-ink); margin: 0 2px; }
.corner-dots:empty { display: none; }



@media (max-width: 520px) {
  .lobby { width: calc(100vw - 24px); left: 12px; top: 12px; }
}

.roster .kick {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 16px;
  line-height: 22px;
  cursor: pointer;
}
.roster .kick:hover { background: var(--bad); color: #fff; }

/* Share card (DRAFT, js/share.js): a button after a match and a preview of the PNG. One look and one place in every
   game (the owner, 2026-11-22: "make it uniform"): the rooms' pastel, a butter pill with an ink outline standing on
   an ink ledge like the racket rooms' Start, in Fredoka. Bottom left, the one corner no game's end screen fills
   (bottom centre sat on Tennis's countdown, Soccer's map and the player strips of Rumble City and the bean games),
   lifted over the Dev test switch where a local server shows it. */
.share-btn {
  position: fixed; left: 16px; bottom: 16px; z-index: 30;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 48px; padding: 5px 9px 5px 14px;
  border: 3px solid #2a1f5e; border-radius: 999px; cursor: pointer;
  background: #ffe46e; color: #2a1f5e; white-space: nowrap;
  font: 700 19px Fredoka, Rubik, system-ui, sans-serif;
  box-shadow: 0 5px 0 #2a1f5e, 0 10px 26px rgba(42, 31, 94, 0.32);
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s;
}
#devTest:not([hidden]) ~ .share-btn { bottom: 62px; }
body:has(.soundlab:not([hidden])) .share-btn { display: none; }   /* (the Dev test sound panel stands there; V still opens the card) */
.share-btn svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.share-btn kbd { padding: 0 7px; border: 0; border-radius: 7px; background: #fff; color: #4b4084; box-shadow: inset 0 0 0 2px #2a1f5e; font: 800 13px/22px Rubik, system-ui, sans-serif; }
.share-btn:hover { background: #fff07f; transform: translateY(2px); box-shadow: 0 3px 0 #2a1f5e, 0 8px 22px rgba(42, 31, 94, 0.3); }
.share-btn:active { transform: translateY(5px); box-shadow: 0 0 0 #2a1f5e, 0 4px 14px rgba(42, 31, 94, 0.3); }
/* the focus ring: ink round a white gap, seen on a light scene and a dark one */
.share-btn:focus-visible { outline: 3px solid #2a1f5e; outline-offset: 4px; box-shadow: 0 5px 0 #2a1f5e, 0 0 0 4px #fff, 0 10px 26px rgba(42, 31, 94, 0.32); }
.share-modal { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(42, 31, 94, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.share-modal[hidden], .share-btn[hidden] { display: none; }
.share-preview { max-height: calc(100vh - 120px); max-width: 92vw; width: auto; height: auto; aspect-ratio: 1080 / 1350; border-radius: 22px; border: 3px solid #2a1f5e; box-shadow: 0 18px 44px rgba(20, 12, 50, 0.45); }
.share-bar { display: flex; gap: 12px; }
/* (button.share-act: over the side panel's button.ghost, which shrank Close to its 13 px) */
button.share-act { min-height: 48px; padding: 6px 22px; border: 3px solid #2a1f5e; border-radius: 999px; cursor: pointer; background: #ffe46e; color: #2a1f5e; font: 700 18px Fredoka, Rubik, system-ui, sans-serif; box-shadow: 0 4px 0 #2a1f5e; }
.share-act:hover { background: #fff07f; }
.share-act.alt { background: #d9ccfc; }
.share-act.alt:hover { background: #e6dcff; }
.share-act.ghost { background: #ffffff; }
.share-act.ghost:hover { background: #f4f0ff; color: #2a1f5e; border-color: #2a1f5e; }
.share-act:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }   /* (on the ink veil) */

/* The main menu: the landing page's island and games list (index.html?host=1), over the arena; it stands right after the arena in the page, so the join panel and the rest are drawn over it. */
.menu-frame { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: #cfe4fb; }
