/* MonsterLink — brand tokens + base reset */
:root {
  --ink: #191621;
  --ink-2: #2A2635;
  --paper: #FAF7F0;
  --paper-2: #F1EDE2;
  --slime: #C8F04C;
  --slime-deep: #A8D82E;
  --slime-dark: #526B12;
  --grape: #7A5AF8;
  --peach: #FFC9A3;
  --line: rgba(25, 22, 33, 0.12);
  --line-soft: rgba(25, 22, 33, 0.07);
  --muted: rgba(25, 22, 33, 0.6);
  --card: #FFFFFF;
  --danger: #D64550;
  --font-display: 'Gabarito', 'Figtree', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-pop: 0 2px 0 var(--ink);
  --shadow-soft: 0 1px 2px rgba(25, 22, 33, 0.05), 0 12px 32px rgba(25, 22, 33, 0.09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--slime-deep); outline-offset: 2px; }

/* Brand logo lockup */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.logo-word em { font-style: normal; color: var(--slime-dark); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  background: var(--ink); color: var(--paper);
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  z-index: 300; max-width: min(90vw, 480px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-error { background: var(--danger); color: #fff; }

::selection { background: var(--slime); color: var(--ink); }

/* Buttons (shared by every page) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  transition: transform .15s, box-shadow .15s; border: 2px solid var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-slime { background: var(--slime); color: var(--ink); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.btn-slime:hover { box-shadow: 0 5px 0 var(--ink); transform: translateY(-2px); }
.btn-slime:active { box-shadow: 0 1px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-block { width: 100%; }

/* Prefixed username input (shared) */
.userinput { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.userinput:focus-within { border-color: var(--ink); }
.userinput .prefix { display: flex; align-items: center; padding: 0 12px 0 14px; background: var(--paper-2); font-weight: 700; font-size: 14px; color: var(--muted); border-right: 1.5px solid var(--line); }
.userinput input { border: 0; outline: none; padding: 12px 14px; flex: 1; min-width: 0; background: transparent; font: inherit; }
