@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;600;700;800&display=swap');

:root {
  --bg: #080808; --surface: #111; --border: #1e1e1e;
  --text: #f0ede8; --muted: #4a4540; --gold: #d4a853; --gold2: #f0c060;
  --green: #3dbe6c; --red: #e05050; --blue: #5b9bd5; --purple: #9b6dbd;
  --felt: #0b2d18; --felt-edge: #c8960c;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 1rem; overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,168,83,.05) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}

.card {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 2.25rem; width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.brand {
  font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 900;
  color: var(--gold); letter-spacing: .03em; margin-bottom: .35rem;
}
.brand span { color: var(--text); }
.sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

.row-between {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem;
}
.uname-badge {
  font-size: .85rem; background: #0d0900; border: 1px solid #2a2000;
  padding: .3rem .8rem; border-radius: 20px; color: var(--gold2); font-weight: 600;
}

input {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 9px;
  padding: .8rem 1rem; color: var(--text); font-size: 1rem; margin-bottom: .65rem;
  transition: border-color .15s;
}
input:focus { outline: none; border-color: var(--gold); }

button {
  width: 100%; background: linear-gradient(135deg, var(--gold), #b8863c);
  color: #0d0900; border: none; border-radius: 9px; padding: .8rem;
  font-size: .95rem; font-weight: 800; cursor: pointer; transition: transform .1s, opacity .15s;
  margin-top: .25rem;
}
button:hover { transform: translateY(-1px); opacity: .92; }
button.ghost {
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  font-weight: 600;
}
button.ghost:hover { color: var(--text); border-color: #444; transform: none; opacity: 1; }
button:disabled { opacity: .3; cursor: default; transform: none; }

.sep {
  text-align: center; color: var(--muted); font-size: .78rem;
  margin: 1.1rem 0; text-transform: uppercase; letter-spacing: .08em;
}
.code-input {
  text-transform: uppercase; text-align: center; letter-spacing: .25em; font-weight: 700;
}
.error { color: var(--red); font-size: .85rem; margin: .3rem 0 .2rem; min-height: 1.1rem; }
