/* Marca Absor (absor.top) aplicada a AbsorDofus: fondo casi negro, superficies de
   cristal con desenfoque, azul de acento y tipografía Inter. El oro es propio de
   esta app (el Dofus del icono) y solo se usa para la palabra «Dofus». */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/brand/inter-latin.woff2) format("woff2");
}

:root {
  --bg: #050507;
  --text: rgba(255, 255, 255, 0.94);
  --text-2: rgba(255, 255, 255, 0.62);
  --text-3: rgba(255, 255, 255, 0.42);
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --accent: #0a84ff;
  --accent-soft: #7c8cff;
  --gold: #ffd426;
  --gold-2: #f5a524;
  --green: #32d74b;
  --red: #ff6961;
  --glass: rgba(20, 22, 30, 0.44);
  --glass-strong: rgba(11, 13, 19, 0.68);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.30);
  --glass-blur: blur(20px) saturate(180%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-card: 20px;
  --content: 72rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background: var(--bg);
  font: 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.011em;
  overflow-x: clip;
}
a { color: var(--text-2); text-decoration: none; transition: color 0.35s var(--ease); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(10, 132, 255, 0.45); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); background-clip: content-box; }

/* Luces ambientales del fondo, como en absor.top: azul arriba a la izquierda,
   violeta a la derecha y un rastro dorado abajo, todas muy tenues. */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 14% 8%, rgba(10, 132, 255, 0.20), transparent 42%),
    radial-gradient(circle at 92% 30%, rgba(88, 86, 214, 0.16), transparent 38%),
    radial-gradient(circle at 50% 110%, rgba(255, 196, 58, 0.09), transparent 45%);
}

/* Cabecera flotante en píldora de cristal */
.topbar { padding: 16px 16px 0; }
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: var(--content); margin: 0 auto;
  padding: 8px 8px 8px 18px;
  background: rgba(20, 22, 30, 0.30);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--hairline-strong), 0 6px 18px rgba(0, 0, 0, 0.45); flex: none; }
.wordmark { font-size: 19px; font-weight: 650; letter-spacing: -0.025em; white-space: nowrap; line-height: 1; }
.wordmark em { font-style: normal; background: linear-gradient(to right, var(--gold), var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.actions { display: flex; align-items: center; gap: 8px; }

/* Píldoras y botones */
.pill, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 9999px;
  font: inherit; font-size: 14px; font-weight: 590; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap;
  color: var(--text); text-decoration: none; cursor: default; user-select: none;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn { cursor: pointer; }
.btn:hover { background: rgba(32, 35, 46, 0.56); border-color: var(--hairline-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn.primary { background: rgba(10, 132, 255, 0.82); border-color: rgba(255, 255, 255, 0.22); color: #fff;
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.30); }
.btn.primary:hover { background: rgba(10, 132, 255, 0.95); box-shadow: 0 6px 22px rgba(10, 132, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.30); }
.btn.danger { background: rgba(255, 105, 97, 0.18); border-color: rgba(255, 105, 97, 0.36); color: #ffb3ae; }
.btn.danger:hover { background: rgba(255, 105, 97, 0.30); }
.btn svg { width: 18px; height: 18px; flex: none; }
.eyebrow { height: 32px; padding: 0 14px 0 12px; font-size: 11px; font-weight: 590; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(10, 132, 255, 0.8); flex: none; }
.dot.gold { background: var(--gold); box-shadow: 0 0 8px rgba(255, 212, 38, 0.8); }

/* Tarjeta de cristal con el reflejo superior izquierdo de absor.top */
.card {
  position: relative; isolation: isolate;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.30);
  border-radius: var(--radius-card);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 30%, transparent 55%);
}

/* Pie */
.foot { max-width: var(--content); margin: 0 auto; padding: 18px 16px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: var(--text-3); font-size: 13px; }
.foot nav { display: flex; gap: 18px; margin-left: auto; }
.foot .copy { flex-basis: 100%; }

@media (max-width: 640px) {
  .topbar { padding: 12px 12px 0; }
  .bar { padding: 6px 6px 6px 12px; }
  .brand img { width: 32px; height: 32px; }
  .wordmark { font-size: 17px; }
  .foot { padding: 14px 12px 22px; }
  .foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
