/* The arcade's panels (rules sheets, pause, results), skinned like the Nathan for You arcade's sheets:
   a rounded, solid dark card with a hairline edge, the game dimmed behind it, and a round blue ×.
   Loaded after each page's own styles; reaper-map/ui.css and kepesh-yakshi/ui.css stay identical. */
body .panel {
  --pad: 28px; padding: var(--pad); scrollbar-width: none;
  border-radius: 20px; background: rgb(14, 16, 24); border: 1px solid rgba(220, 235, 255, 0.14);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  /* the dim rides on the panel, so it fades in and out with it and never takes a click */
  box-shadow: 0 0 0 100vmax rgba(2, 4, 10, 0.55);
}
body .panel::-webkit-scrollbar { display: none; }
/* the close button sits the same 16px from the top and the right edge on every sheet,
   and stays in that corner while a long sheet scrolls (it is each panel's first child;
   sticky top counts from the content edge, so it takes the same offset as the margin) */
body .panel > .x {
  position: sticky; top: calc(16px - var(--pad)); float: right; z-index: 2;
  width: 40px; height: 40px; margin: calc(16px - var(--pad)) calc(16px - var(--pad)) 0 12px; padding: 0;
  display: grid; place-items: center; border-radius: 999px; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
  border: 1px solid rgba(90, 150, 255, 0.32); background: rgba(90, 150, 255, 0.14); color: #e6f1ff;
}
body .panel > .x svg { width: 18px; height: 18px; }
body .panel > .x:hover { background: rgba(90, 150, 255, 0.26); border-color: rgba(90, 150, 255, 0.55); color: #fff; }
@media (max-width: 560px) { body .panel { --pad: 22px; } }
@media (pointer: coarse) { body .panel > .x { width: 44px; height: 44px; } }
