:root {
  color-scheme: light;
  --ink: #261d18;
  --muted: #6d625b;
  --paper: #fffaf4;
  --card: rgba(255, 255, 255, 0.88);
  --accent: #e85d3f;
  --accent-dark: #c9442a;
  --line: rgba(67, 46, 33, 0.12);
  --shadow: 0 24px 70px rgba(102, 65, 39, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 18%, rgba(250, 188, 92, 0.24), transparent 30rem),
    radial-gradient(circle at 84% 84%, rgba(232, 93, 63, 0.16), transparent 28rem),
    var(--paper);
}

main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.card {
  width: min(100%, 540px);
  padding: clamp(28px, 7vw, 54px);
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-size: 20px;
  background: var(--accent);
  border-radius: 11px;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 10vw, 58px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.lede {
  max-width: 410px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.code-block {
  margin: 30px 0;
  padding: 18px;
  background: rgba(255, 247, 237, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.code-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.invite-code {
  display: block;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(21px, 6vw, 28px);
  font-weight: 750;
  letter-spacing: 0.06em;
}

.actions {
  display: grid;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  background: var(--accent);
  border: 0;
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(232, 93, 63, 0.25);
  transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button:focus-visible,
.copy-button:focus-visible {
  outline: 3px solid rgba(232, 93, 63, 0.35);
  outline-offset: 3px;
}

.copy-button {
  display: none;
  min-height: 44px;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
}

.copy-button.is-visible {
  display: block;
}

.fine-print {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
