@font-face { font-family: 'Geist Mono'; src: url(fonts/geist-mono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(fonts/geist-mono-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #070b16; --panel: #0c1326; --line: #1a2747; --tile: #111b33; --tile-hover: #16244a;
  --line-hover: #3b6fd8; --accent: #5b9cff; --accent-strong: #2f6fe0; --text: #e6edf8;
  --muted: #8a9bbd; --user: #6f86b8; --danger: #ff7a8a; --ok: #7ee0a8;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px; line-height: 1.5;
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 28px 16px 48px;
}
main { width: 100%; max-width: 620px; }
.top { width: 100%; max-width: 620px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.brand { text-decoration: none; color: var(--text); border: 1px dashed var(--line); border-radius: 12px; padding: 8px 16px; }
.brand .d { font-size: 20px; font-weight: 500; }
.brand .u { font-size: 14px; color: var(--user); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; }
.card.narrow { max-width: 440px; margin: 0 auto; width: 100%; }
.card.center { text-align: center; align-items: stretch; }
h1 { font-size: 22px; font-weight: 500; margin: 0; }
h2 { font-size: 16px; font-weight: 500; margin: 22px 0 6px; }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card.center .head { justify-content: center; }
.muted { color: var(--muted); font-size: 13px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; }
.msg { color: var(--danger); margin: 12px 0 0; }
.ok { color: var(--ok); font-size: 13px; }
.tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

label { font-size: 13px; color: var(--muted); margin: 14px 0 6px; display: block; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--tile);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--line-hover); }
input[type=date] { color-scheme: dark; }
label.check { display: flex; gap: 10px; align-items: center; color: var(--text); font-size: 14px; margin-top: 18px; cursor: pointer; }
label.check input { width: 18px; height: 18px; accent-color: var(--accent-strong); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

button, .btn {
  font: inherit; font-weight: 500; color: #fff; background: var(--accent-strong); border: 0; border-radius: 10px;
  padding: 11px 16px; margin-top: 18px; cursor: pointer; text-decoration: none; text-align: center;
}
button:hover, .btn:hover { background: var(--line-hover); }
.btn { margin: 0; padding: 7px 12px; font-size: 14px; }
button.ghost { background: var(--tile); border: 1px solid var(--line); }
button.link { background: none; color: var(--muted); padding: 0; margin: 0; font-weight: 400; font-size: 13px; text-decoration: underline; }
button.link:hover { color: var(--text); background: none; }
.danger { margin-top: 22px; }
.danger button.link { color: var(--danger); }
form.sep { border-top: 1px dashed var(--line); margin-top: 22px; padding-top: 4px; }
form { display: flex; flex-direction: column; }
.row form, .top form { display: inline; }

.share { display: flex; gap: 8px; }
.share input { flex: 1; min-width: 0; font-size: 13px; }
.share button { margin: 0; white-space: nowrap; }

.rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.row:first-child { border-top: 0; }
a.row:hover { background: var(--tile-hover); }
.grow { flex: 1; min-width: 0; }

.reveal { margin: 18px 0 6px; border: 1px dashed var(--line-hover); border-radius: 14px; padding: 18px; cursor: pointer; }
.reveal summary { list-style: none; color: var(--accent); }
.reveal summary::-webkit-details-marker { display: none; }
.reveal[open] summary { color: var(--muted); font-size: 13px; }
.who { font-size: 30px; font-weight: 500; margin: 10px 0 0; }
.card.center button.link { margin-top: 16px; }

@media (max-width: 480px) {
  .two { grid-template-columns: 1fr; }
  .card { padding: 18px; }
}

/* convite: os nomes viram botões grandes */
.warn { color: #ffd38a; font-size: 13.5px; margin: 12px 0 4px; }
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.name {
  display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 10px 12px;
  background: var(--tile); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); text-decoration: none; text-align: center; font-weight: 500;
}
a.name:hover, a.name:focus-visible { border-color: var(--line-hover); background: var(--tile-hover); outline: none; }
.name.taken { opacity: .45; font-weight: 400; }
.name small { font-size: 11px; color: var(--muted); font-weight: 400; }
.big { font-size: 22px; margin: 18px 0 4px; }
.back { color: var(--muted); font-size: 13px; margin-top: 14px; }
.actions { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.actions .danger { margin: 0; }
.row a.grow { color: var(--text); text-decoration: none; }
.row a.grow:hover b { text-decoration: underline; }
