:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #0b0b0b;
  --line: #292929;
  --muted: #a3a3a3;
  --ink: #eeedea;
  --silver: #d8d8d5;
  --bright: #faf9f6;
  --error: #f4f3ef;
  font: 16px/1.65 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { text-transform: lowercase; margin: 0; background: var(--bg); color: var(--ink); }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button {
  background: var(--silver); color: #080808; border: 1px solid #b5b5b2;
  border-top-color: #f6f6f2; border-radius: 6px; padding: 9px 15px;
  box-shadow: inset 0 1px 0 #ffffff80, 0 1px 0 #ffffff0a;
  cursor: pointer; font-size: 14px; font-weight: 650; line-height: 1.4;
  transition: background-color 120ms, border-color 120ms, color 120ms;
}
button:hover { background: var(--bright); border-color: var(--bright); }
button:active { background: #bebebb; box-shadow: inset 0 1px 2px #00000026; }
button:disabled { opacity: .45; cursor: wait; }
button.quiet { background: transparent; border-color: #363636; color: var(--ink); box-shadow: none; }
button.quiet:hover { background: #141414; border-color: #646464; color: var(--bright); }
input, select {
  width: 100%; min-width: 0; background: #030303; border: 1px solid #606060;
  border-radius: 6px; padding: 11px 12px; color: var(--bright); margin: 7px 0 18px;
  font-size: 16px; line-height: 1.4;
}
input::placeholder { color: #777; }
input:hover, select:hover { border-color: #626262; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }
label { display: block; font-size: 14px; font-weight: 550; color: #c1c1be; }
a { color: var(--ink); text-underline-offset: 4px; }
[hidden] { display: none !important; }
.top {
  max-width: 1120px; margin: 0 auto; border-bottom: 1px solid var(--line);
  padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 25px; font-weight: 650; letter-spacing: -.025em;
  color: var(--bright); text-decoration: none; line-height: 1.2;
}
.account { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
#balance { margin-right: 9px; overflow-wrap: anywhere; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
main { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.hero { padding: 34px 0 28px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 14px; font-weight: 550; letter-spacing: .035em; color: var(--muted); margin: 0 0 9px; }
h1, h2, h3 { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; color: var(--bright); }
h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; margin: 0 0 16px; }
.intro { margin: 0; max-width: 720px; color: #c0c0bd; font-size: 16px; line-height: 1.6; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 19px; font-size: 14px; color: var(--muted); }
.facts span { padding-right: 16px; }
.facts span + span { border-left: 1px solid #3a3a3a; padding-left: 16px; }
.play { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 32px; padding-top: 28px; }
.panel { border: 1px solid #303030; border-top-color: #4a4a4a; border-radius: 9px; background: var(--panel); box-shadow: inset 0 1px 0 #ffffff05; padding: 22px; align-self: start; min-width: 0; }
h2 { font-size: 24px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 11px; }
h3 { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.muted, .fine { color: var(--muted); }
.muted { font-size: 14px; margin: 0 0 19px; }
.fine { font-size: 14px; line-height: 1.6; margin: 14px 0 0; }
#create-form .fine { margin-bottom: 13px; }
#new-room { margin-bottom: 15px; }
.receipt { border-top: 1px solid #333; border-bottom: 1px solid #333; padding: 11px 0; margin-bottom: 18px; font-size: 14px; color: #b7b7b4; font-variant-numeric: tabular-nums; }
.receipt div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.receipt strong { color: var(--bright); font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.receipt div:last-child { padding-top: 10px; color: var(--ink); }
.receipt div:last-child strong { font-size: 18px; letter-spacing: 0; }
.wide { width: 100%; padding: 12px 14px; }
.lobby { min-width: 0; }
.section-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.network { color: var(--muted); font-size: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 21px; margin: 15px 0; border-bottom: 1px solid var(--line); }
.tabs button, .tabs button.quiet { background: transparent; color: var(--muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 0 12px; box-shadow: none; font-size: 14px; font-weight: 550; }
.tabs button:hover { background: transparent; color: var(--bright); }
.tabs button.active { color: var(--bright); border-bottom-color: var(--silver); }
#refresh-list { padding: 5px 10px; font-size: 14px; margin-bottom: 15px; }
.room { border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin-bottom: 12px; min-width: 0; }
.room h3 { margin: 0; font-size: 16px; }
.room .fine { margin: 3px 0; }
.room > .quiet { padding: 6px 10px; font-size: 14px; }
.room .muted { margin: 12px 0; }
.game { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.room .game { border: 0; }
.face { display: grid; place-items: center; width: 38px; height: 40px; color: var(--silver); font-size: 25px; font-weight: 650; letter-spacing: -.04em; border-right: 1px solid #383838; padding-right: 10px; text-transform: lowercase; }
.game strong { font-size: 18px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.game p { color: var(--muted); font-size: 14px; margin: 5px 0 0; line-height: 1.6; }
.game button { font-size: 14px; padding: 8px 12px; white-space: nowrap; }
.game-info { min-width: 0; overflow-wrap: anywhere; }
.empty { padding: 34px 20px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; border-top: 1px solid var(--line); margin-top: 38px; padding: 25px 0; }
.number { color: #787878; font-size: 14px; font-variant-numeric: tabular-nums; }
.details h3 { margin: 7px 0; }
.details p, footer p { color: var(--muted); font-size: 14px; line-height: 1.75; }
footer { border-top: 1px solid var(--line); padding: 22px 0 28px; }
footer .brand { font-size: 19px; }
footer p { margin: 11px 0 0; max-width: 850px; }
#notice { padding: 14px 16px; border: 1px solid #565656; border-radius: 6px; margin-top: 20px; font-size: 14px; overflow-wrap: anywhere; background: #0c0c0c; }
.error, #dialog-error { color: var(--error); font-weight: 600; }
#notice.error { border-left: 4px solid var(--bright); }
#dialog-error { border-left: 3px solid var(--bright); padding: 10px 13px; background: #181818; font-size: 14px; }
dialog { color: var(--ink); background: #090909; border: 1px solid #575757; border-top-color: #858585; border-radius: 10px; padding: 25px; max-width: 580px; width: calc(100% - 32px); max-height: 90vh; overflow: auto; box-shadow: 0 24px 90px #000000b3; }
dialog::backdrop { background: #000000cf; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 19px; }
.dialog-top h2 { margin: 0; font-size: 23px; }
.close { padding: 6px 10px; font-size: 14px; }
.dialog-copy { font-size: 14px; color: #bcbcb9; line-height: 1.7; }
.secret, .address, .proof { font: 14px/1.7 "Cascadia Mono", Consolas, "Courier New", monospace; overflow-wrap: anywhere; white-space: pre-wrap; background: #030303; border: 1px solid #363636; border-radius: 6px; padding: 14px; user-select: all; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 19px; }
.actions button { flex: 1; }
#more { margin-top: 15px; }
.payment { padding: 17px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.payment p, .payment a { font-size: 14px; color: var(--muted); }
.payment strong { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.payment button { padding: 5px 10px; font-size: 14px; margin-left: 10px; }
.critical { color: var(--bright); font-weight: 650; }
@media (max-width: 850px) {
  .top { align-items: start; }
  .account { max-width: 64%; }
  .play { grid-template-columns: 270px minmax(0, 1fr); gap: 22px; }
  .panel { padding: 18px; }
  .section-top { align-items: start; }
  .game { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
  .game button { grid-column: 2; justify-self: start; }
  .details { gap: 22px; }
  .tabs { gap: 17px; }
}
@media (max-width: 640px) {
  .top { flex-direction: column; gap: 16px; padding: 20px; }
  .account { max-width: 100%; justify-content: flex-start; }
  .account button { font-size: 14px; padding: 8px 11px; }
  main { padding: 0 20px; }
  .hero { padding: 27px 0 24px; }
  h1 { font-size: 40px; }
  .facts { gap: 8px 15px; }
  .facts span, .facts span + span { padding: 0; border: 0; }
  .play, .details { grid-template-columns: 1fr; }
  .play { gap: 30px; padding-top: 23px; }
  .panel { padding: 21px; }
  .details { gap: 12px; margin-top: 30px; }
  .room { padding: 15px; }
  .section-top { align-items: center; }
  dialog { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}
/* Financial and authentication data always retain their original case. */
input, textarea, .secret, .address, .proof { text-transform: none; }
