/* The invite page (index.html, and the short links' page the invitePage function writes): the game's Desert Night,
   deep navy, glass cards, gold and sand. */
:root {
  --navy: #080e20;
  --glass: rgba(10, 18, 40, 0.82);
  --line: rgba(255, 255, 255, 0.14);
  --sand: #ff8c26;
  --gold: #ffcc5c;
  --text: #ffffff;
  --soft: rgba(232, 238, 255, 0.72);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  padding: env(safe-area-inset-top, 0px) 16px env(safe-area-inset-bottom, 0px);
  background: radial-gradient(120% 80% at 50% 0%, #1b2a55 0%, var(--navy) 62%) var(--navy);
  color: var(--text);
  font-family: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}
main {
  width: 100%;
  max-width: 440px;
  padding: 28px 24px 24px;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  text-align: center;
}
.brand { margin: 0 0 18px; color: var(--sand); font-weight: 900; font-size: 15px; letter-spacing: 0.04em; }
h1 { margin: 0; font-size: 28px; font-weight: 900; line-height: 1.25; text-wrap: balance; }
.where { margin: 10px 0 0; color: var(--gold); font-weight: 700; font-size: 17px; line-height: 1.5; unicode-bidi: plaintext; }
.code {
  margin: 18px auto 6px;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--gold);
  direction: ltr;
  font-variant-numeric: tabular-nums;
}
.note { margin: 6px 0 0; color: var(--soft); font-size: 16px; line-height: 1.6; }
.actions { display: grid; gap: 12px; margin-top: 24px; }
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.main { background: var(--gold); color: var(--navy); }
.second { border: 2px solid var(--line); color: var(--text); background: rgba(255, 255, 255, 0.06); }
.small { margin: 20px 0 0; color: var(--soft); font-size: 13px; }
/* Names and the room's line on one line, never two (invite.js makes them smaller till they fit). */
h1, .where { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[hidden] { display: none !important; }
