/* Shared look of the website menus (home screen + online lobby), in the style of the game's menus. */
:root {
  --bg: #160c22; --panel: #2a1840; --panel2: #3a2357; --line: #5b3a85; --accent: #f5a623; --red: #ff5a5a;
  --ok: #7bd88f; --ink: #120a1c;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
html, body { margin: 0; min-height: 100%; color: #fff; }
body { background: transparent; } /* lets the .ptbg pattern (z-index -1) show through */
body {
  min-height: 100vh; min-height: 100dvh; font-family: system-ui, sans-serif;
  -webkit-user-select: none; user-select: none; overflow-x: hidden;
}
/* checkered backdrop like the game's pause / options screens, slowly drifting */
.ptbg {
  position: fixed; inset: -128px; z-index: -1;
  background: repeating-conic-gradient(#28173f 0% 25%, #1a0e2b 0% 50%) 0 0 / 64px 64px;
  animation: drift 6s linear infinite;
}
@keyframes drift { to { transform: translate(64px, 64px); } }
@media (prefers-reduced-motion: reduce) { .ptbg { animation: none; } }

.logo { width: min(320px, 72vw); image-rendering: pixelated; display: block; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); }

.card {
  width: 100%; background: var(--panel); border: 3px solid #000;
  box-shadow: 0 0 0 3px var(--line), 0 10px 0 rgba(0,0,0,.35); border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
}

/* game-font text */
.pt { display: inline-flex; flex-wrap: wrap; align-items: flex-end; justify-content: inherit; vertical-align: middle; line-height: 0; row-gap: .15em; max-width: 100%; }
.pt .ptw { display: inline-flex; align-items: flex-end; white-space: nowrap; }
.pt .pts { display: inline-block; height: 1px; }
.pt i { display: inline-block; background-repeat: no-repeat; image-rendering: pixelated; }
.pt .ptfb { display: inline-flex; align-items: flex-end; font-weight: 900; line-height: 1; color: #fff; padding-bottom: .12em; text-shadow: 2px 2px 0 #000; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.center { justify-content: center; text-align: center; }

.btn {
  appearance: none; border: 3px solid #000; border-radius: 12px; padding: 10px 18px; cursor: pointer; color: #fff;
  background: var(--accent); box-shadow: 0 6px 0 #000; display: inline-flex; align-items: center; justify-content: center;
  min-height: 64px; min-width: 150px; transition: transform .05s, filter .1s; font: inherit;
}
.btn .pt { justify-content: center; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #000; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn.alt { background: var(--panel2); }
.btn.online { background: #7b4bd6; }
.btn.small { min-height: 48px; min-width: 0; padding: 6px 14px; box-shadow: 0 4px 0 #000; background: var(--panel2); }
.btn.big { min-height: 76px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.msg { min-height: 28px; display: flex; justify-content: center; text-align: center; }
.msg:empty { min-height: 0; }
.msg.err { background: #8a1f2b; border: 3px solid #000; border-radius: 10px; padding: 8px; }

.actor { image-rendering: pixelated; display: block; touch-action: manipulation; cursor: pointer; }
[hidden] { display: none !important; }
