@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --match-global-scale: 1;
  --app-shell-content-offset: 0px;
  --app-shell-header-z: 5000;
  --app-shell-overlay-z: 5100;
  --bg: #0f1118;
  --bg-alt: #1b1f2c;
  --surface: #1b2233;
  --surface-strong: #232d42;
  --surface-muted: #2a3650;
  --text: #fff0d8;
  --muted: #ebc995;
  --border: #e2a14b;
  --primary: #ffbf4c;
  --primary-hover: #ff932f;
  --focus-accent: #56d0ff;
  --danger: #b3261e;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 16px 34px rgba(18, 13, 10, 0.24);
  --shadow-premium: 0 18px 42px rgba(6, 11, 20, 0.42);
  --edge-highlight: rgba(230, 244, 255, 0.18);
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

html:has(body.match-page) {
  scrollbar-gutter: auto;
}

html:has(body.landing-page) {
  scrollbar-gutter: auto;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  margin: 0;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1200px 550px at 85% -10%, rgba(255, 185, 66, 0.3), transparent 60%),
    radial-gradient(900px 460px at 0% 100%, rgba(86, 176, 255, 0.25), transparent 55%),
    radial-gradient(760px 380px at 18% 22%, rgba(255, 93, 43, 0.24), transparent 62%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body.landing-page {
  background: #0b1017;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.landing-page .bg-orb {
  display: none;
}

body.match-page {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  scrollbar-gutter: auto;
  background:
    radial-gradient(980px 360px at 50% 6%, rgba(255, 163, 78, 0.26), transparent 62%),
    radial-gradient(1100px 520px at 50% 45%, rgba(56, 95, 158, 0.18), transparent 58%),
    radial-gradient(760px 360px at 28% 34%, rgba(255, 157, 72, 0.18), transparent 60%),
    radial-gradient(760px 360px at 72% 62%, rgba(255, 121, 54, 0.16), transparent 62%),
    radial-gradient(720px 360px at 8% 50%, rgba(0, 0, 0, 0.5), transparent 74%),
    radial-gradient(720px 360px at 92% 50%, rgba(0, 0, 0, 0.5), transparent 74%),
    radial-gradient(900px 280px at 50% -8%, rgba(0, 0, 0, 0.42), transparent 72%),
    radial-gradient(900px 280px at 50% 108%, rgba(0, 0, 0, 0.56), transparent 72%),
    linear-gradient(180deg, #111a2c 0%, #0c1321 50%, #090e18 100%);
}

body,
body * {
  user-select: none;
  -webkit-user-select: none;
}
img,
a,
button {
  -webkit-user-drag: none;
  user-drag: none;
}
input,
textarea,
select,
[contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.bg-orb-a {
  width: 360px;
  height: 360px;
  top: -120px;
  right: 8%;
  background: #cb5f1f;
}

.bg-orb-b {
  width: 320px;
  height: 320px;
  bottom: -120px;
  left: 6%;
  background: #1a5f99;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 36px auto 22px;
  padding: 0 16px 102px;
}

body.app-shell-topbar .container {
  margin-top: calc(36px + var(--app-shell-content-offset));
}

.container-match {
  max-width: none;
  width: 100%;
  height: 100dvh;
  margin: 0;
  padding: 4px 0 0;
  overflow: hidden;
}

.global-top-logo-link {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.global-top-logo-link:hover {
  text-decoration: none;
}

.global-top-logo {
  display: block;
  width: clamp(216px, 26.4vw, 336px);
  height: auto;
  max-height: 74px;
  object-fit: contain;
}

.top-strip-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--app-shell-header-z);
  pointer-events: none;
  display: none;
}

.top-strip-nav {
  position: relative;
  width: 100%;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  background:
    radial-gradient(200px 90px at 7% 0%, rgba(255, 196, 107, 0.24), transparent 70%),
    radial-gradient(220px 120px at 96% 100%, rgba(88, 187, 255, 0.19), transparent 74%),
    linear-gradient(180deg, rgba(16, 28, 44, 0.95) 0%, rgba(12, 20, 33, 0.97) 100%);
  border-bottom: 1px solid rgba(143, 205, 255, 0.26);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(235, 246, 255, 0.12);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  pointer-events: auto;
}

.top-strip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 100%;
  padding: 0 16px;
  border-radius: 0;
  border: 0;
  border-right: 1px solid rgba(115, 170, 221, 0.22);
  background: transparent;
  color: rgba(245, 245, 245, 0.94);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.top-strip-link:hover,
.top-strip-link:focus-visible {
  color: #fff7ea;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 186, 105, 0.08) 100%);
  box-shadow: inset 0 -2px 0 rgba(255, 181, 96, 0.55);
  text-decoration: none;
}

.top-strip-link.active {
  color: #fff4e5;
  background:
    radial-gradient(220px 120px at 50% 0%, rgba(255, 198, 122, 0.2), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(20, 30, 45, 0.02) 100%);
  box-shadow: inset 0 -3px 0 rgba(255, 180, 94, 0.95);
}

.top-strip-home-link {
  width: 72px;
  min-width: 72px;
  padding: 0;
}

.top-strip-home-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.36));
  transition: filter 140ms ease, opacity 140ms ease;
  opacity: 0.95;
}

.top-strip-home-link:hover .top-strip-home-icon,
.top-strip-home-link:focus-visible .top-strip-home-icon {
  opacity: 1;
}

.top-strip-home-link.active .top-strip-home-icon {
  filter: drop-shadow(0 1px 2px rgba(255, 241, 220, 0.42));
  opacity: 1;
}

.top-strip-link-admin {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
}

.top-strip-brand {
  display: inline-flex;
  align-items: center;
  height: 100%;
  flex: 0 0 auto;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms ease, filter 160ms ease;
}

.top-strip-brand.active {
  border-bottom-color: rgba(255, 160, 74, 0.9);
}

.top-strip-brand:hover,
.top-strip-brand:focus-visible {
  border-bottom-color: rgba(255, 173, 85, 0.7);
}

.top-strip-brand-logo {
  display: block;
  width: 114px;
  max-width: 114px;
  height: auto;
  max-height: 31px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.top-strip-form {
  display: inline-flex;
  align-items: center;
  align-self: center;
  height: auto;
}

.top-strip-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.top-strip-avatar-link {
  margin-left: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  border-radius: 999px;
  border: 1px solid rgba(126, 198, 255, 0.3);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(36, 53, 75, 0.9) 0%, rgba(24, 36, 53, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(237, 246, 255, 0.12),
    0 2px 10px rgba(4, 8, 14, 0.28);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.top-strip-avatar-link.active {
  border-color: rgba(255, 206, 145, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 6px 18px rgba(0, 0, 0, 0.24);
}

.top-strip-avatar-link:hover,
.top-strip-avatar-link:focus-visible {
  border-color: rgba(255, 202, 136, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(246, 251, 255, 0.2),
    0 4px 14px rgba(4, 8, 14, 0.32);
  transform: translateY(-1px);
}

.top-strip-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-strip-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(121, 74, 34, 0.75);
  color: #f0f6ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.top-strip-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 100%;
  padding: 0 16px;
  border: 0;
  border-left: 1px solid rgba(115, 170, 221, 0.22);
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 -2px 0 transparent;
  color: rgba(245, 245, 245, 0.94);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.top-strip-logout:hover,
.top-strip-logout:focus-visible {
  color: #ff6f6f;
  background: transparent !important;
  box-shadow: inset 0 -2px 0 transparent !important;
  transform: none !important;
  filter: none !important;
}

.top-strip-logout:hover:not(:disabled),
.top-strip-logout:focus-visible:not(:disabled),
.top-strip-logout:active:not(:disabled) {
  color: #ff6f6f;
  background: transparent !important;
  box-shadow: inset 0 -2px 0 transparent !important;
  transform: none !important;
  filter: none !important;
}

@media (hover: hover) and (pointer: fine) {
  body.app-shell-topbar {
    --app-shell-content-offset: 62px;
  }

  .top-strip-layer {
    display: block;
  }

  .side-rail-layer {
    display: none;
  }

  body.app-shell-topbar .overlay-controls {
    top: 102px;
  }
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(240, 191, 120, 0.62);
  border-radius: var(--radius);
  background:
    radial-gradient(240px 110px at 12% -8%, rgba(255, 194, 103, 0.18), transparent 70%),
    linear-gradient(120deg, rgba(35, 25, 20, 0.84) 0%, rgba(19, 35, 57, 0.78) 56%, rgba(44, 24, 12, 0.82) 100%);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-premium), inset 0 1px 0 var(--edge-highlight);
}
.site-header,
.site-header * {
  user-select: none;
  -webkit-user-select: none;
}
.site-header a,
.site-header img,
.site-header button {
  -webkit-user-drag: none;
  user-drag: none;
}

.brand {
  margin: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(156px, 18vw, 213px);
  height: auto;
  max-height: 57px;
  object-fit: contain;
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.top-nav a,
.header-actions .subtle-link {
  color: #ffd8a2;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.92;
  transition: color var(--transition), opacity var(--transition);
}

.top-nav a:hover,
.header-actions .subtle-link:hover {
  color: #fffaf2;
  opacity: 1;
  text-decoration: none;
}

.top-nav a.active {
  color: #fffaf2;
  opacity: 1;
  font-weight: 800;
}

.header-actions .subtle-link.active {
  color: #fffaf2;
  opacity: 1;
  font-weight: 800;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 190, 88, 0.82);
  box-shadow: 0 0 0 1px rgba(32, 24, 20, 0.5);
}

.header-profile-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: rgba(121, 74, 34, 0.75);
  color: #f0f6ff;
  font-weight: 700;
}

.side-rail-layer {
  position: fixed;
  inset: 0;
  z-index: var(--app-shell-header-z);
  isolation: isolate;
  contain: layout paint style;
  pointer-events: none;
}

.side-rail-nav {
  position: absolute;
  top: 12px;
  left: 0;
  bottom: auto;
  z-index: 1;
  width: 107px;
  min-height: 356px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 8px 10px 5px;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  border: 1px solid rgba(120, 200, 255, 0.34);
  border-left: 0;
  background:
    radial-gradient(180px 220px at 28% 12%, rgba(255, 193, 96, 0.28), transparent 72%),
    radial-gradient(160px 320px at 16% 84%, rgba(88, 187, 255, 0.24), transparent 74%),
    linear-gradient(180deg, rgba(18, 33, 52, 0.93) 0%, rgba(14, 23, 37, 0.95) 56%, rgba(30, 21, 14, 0.95) 100%);
  box-shadow:
    16px 0 34px rgba(8, 14, 24, 0.48),
    inset 0 1px 0 rgba(232, 245, 255, 0.16),
    inset 0 0 0 1px rgba(74, 137, 197, 0.14);
  overflow: visible;
  pointer-events: auto;
  transition: transform 190ms ease, opacity 160ms ease, visibility 160ms ease;
}

.side-rail-desktop-toggle {
  display: inline-flex;
  position: absolute;
  top: 190px;
  left: 106px;
  z-index: 2;
  pointer-events: auto;
  width: 24px;
  height: 48px;
  min-width: 24px;
  min-height: 48px;
  padding: 0;
  border: 1px solid rgba(120, 200, 255, 0.34);
  border-left: 0;
  border-radius: 0 9px 9px 0;
  background:
    radial-gradient(140px 120px at 0% 10%, rgba(255, 193, 96, 0.22), transparent 72%),
    radial-gradient(120px 180px at 8% 92%, rgba(88, 187, 255, 0.2), transparent 74%),
    linear-gradient(180deg, rgba(18, 33, 52, 0.93) 0%, rgba(14, 23, 37, 0.95) 56%, rgba(30, 21, 14, 0.95) 100%);
  box-shadow:
    12px 0 20px rgba(8, 14, 24, 0.28),
    inset 0 1px 0 rgba(232, 245, 255, 0.12),
    inset 0 0 0 1px rgba(74, 137, 197, 0.1);
  color: #d9ecff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  justify-content: center;
  align-items: center;
  transition: left 190ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.side-rail-desktop-toggle:hover,
.side-rail-desktop-toggle:focus-visible {
  border-color: rgba(145, 223, 255, 0.56);
  background:
    radial-gradient(140px 120px at 0% 10%, rgba(255, 193, 96, 0.26), transparent 72%),
    radial-gradient(120px 180px at 8% 92%, rgba(88, 187, 255, 0.24), transparent 74%),
    linear-gradient(180deg, rgba(20, 36, 57, 0.94) 0%, rgba(15, 25, 40, 0.96) 56%, rgba(34, 24, 16, 0.96) 100%);
  color: #ffffff;
}

body.side-rail-collapsed .side-rail-nav {
  transform: translateX(calc(-100% - 14px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.side-rail-collapsed .side-rail-desktop-toggle {
  left: 0;
}

.side-rail-mobile-toggle {
  display: none;
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  pointer-events: auto;
  min-width: 86px;
  min-height: 40px;
  padding: 10px 14px 10px 16px;
  border: 1px solid rgba(116, 214, 255, 0.52);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(12, 28, 46, 0.96) 0%, rgba(24, 44, 67, 0.96) 54%, rgba(62, 33, 16, 0.94) 100%);
  box-shadow:
    0 14px 24px rgba(6, 11, 20, 0.34),
    inset 0 1px 0 rgba(232, 245, 255, 0.16),
    inset 0 0 0 1px rgba(86, 149, 208, 0.14);
  color: #eff8ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(93, 209, 255, 0.22);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.side-rail-mobile-toggle::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 10px;
  background: radial-gradient(circle at 35% 35%, #fff4cf 0%, #ffcb73 38%, #ff8d36 100%);
  box-shadow:
    0 0 0 1px rgba(255, 194, 113, 0.32),
    0 0 14px rgba(255, 166, 72, 0.48);
  flex: 0 0 auto;
}

.side-rail-mobile-toggle:hover,
.side-rail-mobile-toggle:focus-visible {
  border-color: rgba(145, 223, 255, 0.8);
  background:
    linear-gradient(135deg, rgba(16, 35, 56, 0.98) 0%, rgba(31, 56, 84, 0.96) 52%, rgba(80, 42, 18, 0.94) 100%);
  box-shadow:
    0 16px 28px rgba(6, 11, 20, 0.4),
    0 0 0 1px rgba(145, 223, 255, 0.16),
    inset 0 1px 0 rgba(242, 248, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

.side-rail-mobile-toggle[aria-expanded="true"] {
  border-color: rgba(255, 191, 93, 0.82);
  background:
    linear-gradient(135deg, rgba(31, 49, 73, 0.98) 0%, rgba(30, 58, 88, 0.96) 48%, rgba(104, 52, 18, 0.96) 100%);
  box-shadow:
    0 18px 30px rgba(6, 11, 20, 0.42),
    0 0 0 1px rgba(255, 191, 93, 0.18),
    inset 0 1px 0 rgba(255, 242, 214, 0.2);
}

.side-rail-mobile-toggle[aria-expanded="true"]::before {
  background: radial-gradient(circle at 35% 35%, #f4feff 0%, #78e0ff 42%, #2fb7ff 100%);
  box-shadow:
    0 0 0 1px rgba(118, 224, 255, 0.34),
    0 0 16px rgba(71, 189, 255, 0.52);
}

.side-rail-nav::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(96, 225, 255, 0.92) 0%, rgba(79, 175, 255, 0.9) 100%);
  box-shadow: 0 0 18px rgba(93, 209, 255, 0.46);
}

.side-rail-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(152, 206, 255, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(152, 206, 255, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, black 25%, black 80%, rgba(0, 0, 0, 0.22) 100%);
  opacity: 0.42;
}

.side-rail-link {
  position: relative;
  z-index: 1;
  width: auto;
  min-width: 0;
  align-self: center;
  padding: 3px 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #d8eaff;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  transition: color var(--transition), text-shadow var(--transition);
  backdrop-filter: none;
}

.side-rail-link:hover {
  color: #eaf6ff;
  text-decoration: none;
  box-shadow: none;
  transform: none;
}

.side-rail-link:focus-visible {
  color: #eaf6ff;
  text-decoration: none;
  box-shadow: none;
  transform: none;
  outline: 2px solid var(--focus-accent);
  outline-offset: 2px;
}

.side-rail-link.active {
  color: #9eddff;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
  text-shadow: 0 0 8px rgba(104, 207, 255, 0.2);
}

.side-rail-link.active::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 5px;
  bottom: 5px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(112, 230, 255, 0.95) 0%, rgba(80, 181, 255, 0.92) 100%);
}

.side-rail-link-locked {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(194, 211, 232, 0.56);
  cursor: not-allowed;
  pointer-events: none;
  filter: saturate(0.7);
}

.side-rail-link-locked-admin {
  pointer-events: auto;
  cursor: pointer;
}

.side-rail-link-locked-admin:hover,
.side-rail-link-locked-admin:focus-visible {
  color: rgba(216, 230, 246, 0.9);
}

.side-rail-lock-icon {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 9px;
  border-radius: 3px;
  border: 1px solid rgba(194, 211, 232, 0.7);
  background: rgba(120, 142, 168, 0.2);
  box-shadow: inset 0 1px 0 rgba(220, 232, 248, 0.2);
  transform: translateY(3px);
}

.side-rail-lock-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border: 1px solid rgba(194, 211, 232, 0.7);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.side-rail-logo-link.active::before,
.side-rail-profile-link.active::before {
  content: none;
}

.side-rail-logo-link {
  width: auto;
  min-width: 0;
  align-self: center;
  padding: 3px 4px;
  transition: filter 160ms ease;
}

.side-rail-logo-link:not(.active) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.side-rail-logo-link:not(.active):hover {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.side-rail-logo {
  display: block;
  width: 51px;
  max-width: 51px;
  height: auto;
  max-height: 51px;
  margin: 0 auto;
  object-fit: contain;
  filter: none;
  transition: filter 160ms ease;
}

.side-rail-logo-link:hover .side-rail-logo,
.side-rail-logo-link:focus-visible .side-rail-logo {
  filter: none;
}

.side-rail-logo-link.active .side-rail-logo {
  border-radius: 0;
  box-shadow: none;
  filter:
    drop-shadow(1px 0 0 rgba(110, 220, 255, 0.9))
    drop-shadow(-1px 0 0 rgba(110, 220, 255, 0.9))
    drop-shadow(0 1px 0 rgba(110, 220, 255, 0.9))
    drop-shadow(0 -1px 0 rgba(110, 220, 255, 0.9))
    drop-shadow(0 0 9px rgba(116, 222, 255, 0.52));
}

.side-rail-logo-link:hover,
.side-rail-logo-link:focus-visible {
  transform: none;
}

.side-rail-play-link {
  padding: 3px 6px;
}

.side-rail-play-img {
  display: block;
  width: 68px;
  max-width: 68px;
  height: auto;
  max-height: 68px;
  margin: 0 auto;
  object-fit: contain;
  transition: transform 160ms ease, filter 160ms ease;
}

.side-rail-play-link:hover,
.side-rail-play-link.active {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.side-rail-play-link:hover .side-rail-play-img,
.side-rail-play-link:focus-visible .side-rail-play-img {
  transform: none;
  filter: drop-shadow(0 0 8px rgba(104, 207, 255, 0.35));
}

.side-rail-profile-link {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.side-rail-profile-avatar {
  display: block;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 190, 89, 0.75);
  box-shadow: 0 0 0 1px rgba(28, 24, 20, 0.5);
}

.side-rail-profile-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(121, 74, 34, 0.75);
  color: #f0f6ff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.side-rail-profile-link:hover,
.side-rail-profile-link:focus-visible,
.side-rail-profile-link.active {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.side-rail-profile-link:focus-visible .side-rail-profile-avatar {
  outline: 2px solid var(--focus-accent);
  outline-offset: 2px;
}

.side-rail-profile-link.active .side-rail-profile-avatar {
  border-color: rgba(110, 220, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(20, 54, 72, 0.55), 0 0 12px rgba(94, 206, 255, 0.35);
}

.side-rail-form {
  margin: 0;
  align-self: center;
}

.side-rail-account {
  position: static;
  transform: none;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: auto;
  width: 100%;
  padding: 6px 0 4px;
}

.side-rail-logout-text {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #f5dfbd;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease, filter 160ms ease;
}

.side-rail-logout-text:hover:not(:disabled),
.side-rail-logout-text:focus-visible {
  color: #eaf6ff;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
  filter: none;
}

.side-rail-logout-text:focus-visible {
  outline: 2px solid var(--focus-accent);
  outline-offset: 2px;
}

body > .side-rail-layer .side-rail-nav .side-rail-account.side-rail-account-lock {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  transform: none !important;
  margin: auto 0 0 !important;
  padding: 6px 0 4px !important;
  z-index: 4 !important;
  width: 100% !important;
}

body > .side-rail-layer .side-rail-nav .side-rail-account.side-rail-account-lock > .side-rail-profile-link.side-rail-profile-link-lock {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
}

body > .side-rail-layer .side-rail-nav .side-rail-account.side-rail-account-lock .side-rail-profile-avatar.side-rail-profile-avatar-lock {
  display: block !important;
  width: 66px !important;
  height: 66px !important;
  min-width: 66px !important;
  min-height: 66px !important;
  margin: 0 !important;
}

body > .side-rail-layer .side-rail-nav .side-rail-account.side-rail-account-lock .side-rail-profile-avatar-fallback.side-rail-profile-avatar-lock {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
}

body > .side-rail-layer .side-rail-nav .side-rail-account.side-rail-account-lock > .side-rail-form.side-rail-form-lock {
  display: block !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

body > .side-rail-layer .side-rail-nav .side-rail-account.side-rail-account-lock .side-rail-logout-text.side-rail-logout-text-lock {
  display: block !important;
  margin: 5px 0 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.music-toggle {
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1;
}

.music-toggle[aria-pressed="true"] {
  opacity: 0.75;
}

.overlay-controls {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 4990;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 1;
  visibility: visible;
  transition: opacity 180ms ease;
}

body.match-page .overlay-controls {
  transform: scale(var(--match-global-scale, 1));
  transform-origin: top right;
}

.overlay-toggle-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.overlay-toggle-btn[aria-pressed="true"] {
  opacity: 0.85;
}

#auto-fullscreen-toggle.is-on {
  color: #fffaf2;
  border-color: rgba(255, 187, 84, 0.95);
  background: rgba(248, 143, 37, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 187, 84, 0.55) inset;
}

.card {
  background: linear-gradient(180deg, rgba(23, 32, 52, 0.97) 0%, rgba(16, 22, 37, 0.99) 100%);
  border: 1px solid rgba(235, 177, 102, 0.64);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-premium), inset 0 1px 0 var(--edge-highlight);
  margin-bottom: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 38px rgba(9, 12, 20, 0.46);
}

.hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(560px 260px at 80% 0%, rgba(231, 167, 76, 0.24), transparent 70%),
    linear-gradient(180deg, rgba(31, 39, 58, 0.98) 0%, rgba(23, 30, 45, 0.99) 100%);
  margin-bottom: 36px;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 96%, rgba(171, 117, 40, 0.12) 100%);
  background-size: 100% 18px;
  opacity: 0.45;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  position: relative;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: #8ecbf3;
}

.hero-title {
  margin: 10px 0 12px;
  font-size: 46px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 0;
  color: #c7d9f0;
  font-size: 17px;
  max-width: 600px;
}

.hero-highlight {
  border: 1px solid rgba(123, 186, 238, 0.42);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: linear-gradient(180deg, rgba(37, 48, 72, 0.95) 0%, rgba(28, 38, 56, 0.96) 100%);
}

.hero-highlight h2 {
  margin: 8px 0;
  font-size: 24px;
}

.hero-highlight p {
  margin-bottom: 10px;
}

.hero-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.hero-stats article {
  border: 1px solid rgba(203, 151, 78, 0.48);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(41, 50, 74, 0.95) 0%, rgba(30, 39, 58, 0.96) 100%);
}

.stat-value {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f6e0bc;
}

.stat-label {
  margin: 3px 0 0;
  font-size: 13px;
  color: #a5c6eb;
}

.section-alt {
  background: rgba(228, 237, 252, 0.97);
}

.section-dark {
  background: rgba(217, 230, 252, 0.95);
}

.auth-card {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.auth-card:hover {
  transform: none;
  box-shadow: var(--shadow-premium), inset 0 1px 0 var(--edge-highlight);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 14px;
  margin-bottom: 24px;
}

.auth-card-modern {
  max-width: none;
  border-radius: 18px;
  background:
    radial-gradient(520px 260px at 85% -8%, rgba(255, 186, 74, 0.2), transparent 68%),
    linear-gradient(180deg, rgba(29, 37, 56, 0.98) 0%, rgba(20, 27, 42, 0.99) 100%);
  border: 1px solid rgba(235, 166, 78, 0.62);
}

.auth-head {
  margin-bottom: 8px;
}

.auth-head h2 {
  margin: 6px 0 6px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  color: #ffe2b9;
}

.auth-kicker {
  margin: 0;
  color: #ffbf69;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form {
  margin-top: 12px;
}

.auth-submit {
  margin-top: 4px;
}

.auth-error {
  margin-top: 4px;
  margin-bottom: 0;
}

.auth-footer {
  margin-top: 10px;
  margin-bottom: 0;
  color: #e5c99f;
}

.auth-card-modern .subtle-link {
  color: #ffc173;
}

.auth-card-modern .subtle-link:hover {
  color: #ffe0b6;
}

.auth-card-modern .auth-form label {
  color: #f3ddba;
}

.auth-side-card {
  border: 1px solid rgba(226, 160, 75, 0.58);
  border-radius: 18px;
  background:
    radial-gradient(380px 180px at 20% 0%, rgba(255, 178, 72, 0.18), transparent 70%),
    linear-gradient(160deg, rgba(44, 25, 14, 0.7) 0%, rgba(20, 30, 49, 0.72) 100%);
  color: #ffe5c3;
  padding: 20px;
  box-shadow: 0 18px 28px rgba(12, 8, 6, 0.34);
}

.auth-side-card h3 {
  margin: 8px 0 8px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 28px;
  line-height: 1.1;
}

.auth-side-card p {
  margin: 0;
  color: #f0cf9f;
}

h1,
h2 {
  margin-top: 0;
}

h2 {
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  font-size: 31px;
}

h3 {
  letter-spacing: -0.01em;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card-head h2 {
  margin: 0;
}

p {
  color: var(--muted);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.subtle-link {
  color: #8cccf8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.subtle-link:hover {
  color: #cff0ff;
  text-decoration: underline;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-actions {
  margin-top: 20px;
  margin-bottom: 14px;
}

.hero-actions + .hero-stats {
  margin-top: 26px;
}

.level-overview {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 460px;
}

.player-level-badge {
  display: inline-flex;
  align-items: center;
  margin: 2px 0 0;
  padding: 7px 12px;
  border: 1px solid #bed2f7;
  border-radius: 999px;
  background: #edf4ff;
  color: #1e4380;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.player-currency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  padding: 7px 12px;
  border: 1px solid #e5c56f;
  border-radius: 999px;
  background: #fff5d6;
  color: #7a5600;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.currency-badge-icon {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.home-progress-card {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 18px;
  border: 1px solid rgba(195, 145, 75, 0.32);
  background:
    radial-gradient(circle at top left, rgba(233, 172, 83, 0.18), transparent 32%),
    radial-gradient(circle at 82% 14%, rgba(106, 186, 229, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(28, 26, 34, 0.9) 0%, rgba(18, 16, 24, 0.94) 100%);
  box-shadow: 0 16px 30px rgba(12, 10, 9, 0.28);
}

.home-progress-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.home-progress-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9a673;
}

.home-progress-level {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  color: #fff2df;
}

.home-progress-percent {
  margin: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(76, 132, 197, 0.28);
  color: #d8ecff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.xp-overview {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.xp-track {
  height: 11px;
  border-radius: 999px;
  background: rgba(70, 108, 153, 0.2);
  border: 1px solid rgba(126, 176, 232, 0.28);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(12, 10, 9, 0.24);
}

.xp-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #72c8f3 0%, #f3b95c 52%, #d17a31 100%);
  box-shadow: 0 0 18px rgba(102, 182, 229, 0.36);
}

.xp-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.xp-copy {
  margin: 0;
  font-size: 11px;
  color: #f0d9b4;
  font-weight: 800;
}

.xp-copy-muted {
  font-size: 11px;
  color: #c5a87a;
  font-weight: 700;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 198, 96, 0.62);
  border-radius: 11px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #f0b14f 0%, #d97d24 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn-link:hover {
  background: linear-gradient(180deg, #f5bf61 0%, #e08a30 100%);
  filter: saturate(1.08);
  transform: translateY(-1px);
  box-shadow: none;
  text-decoration: none;
}

.deck-link {
  background: linear-gradient(180deg, #365d8f 0%, #223f68 100%);
  border-color: rgba(112, 164, 225, 0.62);
  box-shadow: 0 10px 18px rgba(23, 51, 86, 0.4);
}

.deck-link:hover {
  background: linear-gradient(180deg, #4571a9 0%, #2a4d7b 100%);
  box-shadow: 0 12px 20px rgba(23, 51, 86, 0.48);
}

.ghost-link {
  background: transparent;
  color: #e4f4ff;
  border-color: rgba(94, 191, 255, 0.66);
}

.ghost-link:hover {
  background: rgba(73, 165, 236, 0.28);
  box-shadow: none;
}

.stack {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.stack label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}

.stack .checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.stack .checkbox-inline input[type="checkbox"] {
  margin: 0;
  width: 14px;
  height: 14px;
  accent-color: var(--primary);
}

input[type="text"],
input[type="password"],
input[type="email"] {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--surface-strong);
  color: var(--text);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  outline: 2px solid var(--focus-accent);
  border-color: var(--focus-accent);
}

button:not(.top-strip-logout):not(.flow-card) {
  border: 1px solid rgba(255, 205, 114, 0.72);
  border-radius: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f0b14f 0%, #d97d24 100%);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition), filter var(--transition);
}

button:not(.top-strip-logout):not(.flow-card):hover:not(:disabled) {
  background: linear-gradient(180deg, #f5bf61 0%, #e08a30 100%);
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: none;
}

.ghost-btn {
  background: linear-gradient(180deg, rgba(98, 194, 255, 0.26) 0%, rgba(53, 131, 207, 0.24) 100%);
  color: #ebf8ff;
  border: 1px solid rgba(112, 202, 255, 0.68);
  box-shadow: 0 9px 20px rgba(40, 118, 194, 0.34), inset 0 1px 0 rgba(203, 237, 255, 0.42);
}

.ghost-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(112, 208, 255, 0.4) 0%, rgba(63, 147, 229, 0.34) 100%);
  box-shadow: 0 10px 20px rgba(40, 118, 194, 0.42), inset 0 1px 0 rgba(225, 246, 255, 0.44);
}

.ghost-btn:disabled {
  color: #cde8da;
  border-color: rgba(128, 208, 239, 0.35);
  background: rgba(128, 208, 239, 0.12);
  box-shadow: none;
  cursor: not-allowed;
  filter: saturate(0.82);
}

.ranked-btn {
  border: 1px solid rgba(255, 120, 120, 0.86) !important;
  background: linear-gradient(180deg, #9f0e17 0%, #70010a 100%) !important;
  color: #ffe9e9 !important;
  box-shadow: 0 10px 20px rgba(88, 0, 0, 0.46), inset 0 1px 0 rgba(255, 196, 196, 0.25) !important;
}

.ranked-btn:hover:not(:disabled) {
  border-color: rgba(255, 152, 152, 0.95) !important;
  background: linear-gradient(180deg, #bb1a24 0%, #86040f 100%) !important;
  box-shadow: 0 12px 24px rgba(112, 0, 0, 0.52), inset 0 1px 0 rgba(255, 220, 220, 0.32) !important;
}

.ranked-btn:disabled {
  border-color: rgba(173, 94, 94, 0.42) !important;
  background: linear-gradient(180deg, rgba(110, 31, 35, 0.48) 0%, rgba(78, 21, 25, 0.5) 100%) !important;
  color: rgba(255, 227, 227, 0.62) !important;
  box-shadow: none !important;
}

#queue-join-btn {
  border-color: rgba(220, 174, 78, 0.86) !important;
  background: linear-gradient(180deg, #c3953a 0%, #9b7024 100%) !important;
  color: #fff4dc !important;
}

#queue-join-btn:hover:not(:disabled) {
  border-color: rgba(238, 194, 102, 0.92) !important;
  background: linear-gradient(180deg, #d2a248 0%, #ab7f2e 100%) !important;
}

.inline-form {
  margin: 0;
}

.sessions-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
  overflow: hidden;
  border-radius: 10px;
}

.sessions-table th,
.sessions-table td {
  border: 1px solid rgba(202, 152, 80, 0.4);
  padding: 9px;
  vertical-align: top;
  text-align: left;
}

.sessions-table th {
  background: rgba(35, 45, 66, 0.95);
  color: #f5e0be;
}

.error {
  color: var(--danger);
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feature-item,
.update-item,
.step-item {
  border: 1px solid rgba(201, 151, 79, 0.48);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: linear-gradient(180deg, rgba(34, 43, 64, 0.95) 0%, rgba(25, 33, 49, 0.96) 100%);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-item:hover,
.update-item:hover,
.step-item:hover {
  transform: scale(1.02);
  border-color: rgba(109, 182, 234, 0.62);
  box-shadow: 0 12px 22px rgba(8, 18, 36, 0.42);
}

.feature-icon {
  margin: 0 0 8px;
  font-size: 24px;
}

.feature-item h3,
.update-item h3,
.step-item h3 {
  margin: 0 0 8px;
}

.feature-item p,
.update-item p,
.step-item p {
  margin: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.step-index {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #90ccf4;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.update-item h3 {
  margin-top: 8px;
}

.update-item p {
  margin-bottom: 8px;
}

.update-date {
  margin: 0;
  font-size: 12px;
  color: #d7b788;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tag-row {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tag-feature {
  color: #e7f6ff;
  background: #1f6eb0;
}

.tag-security {
  color: #ffe6d9;
  background: #b6471f;
}

.tag-live {
  color: #e8fff3;
  background: #1e8b6d;
}

.testimonial {
  margin: 0;
  max-width: 720px;
  font-size: 20px;
  line-height: 1.35;
  color: #f2dfc0;
}

.subtle-copy {
  margin-top: 8px;
  font-size: 14px;
  color: #c6d8f1;
}

.site-footer {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: min(1040px, calc(100% - 32px));
  margin: 0;
  padding: 0 6px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer p {
  margin: 0;
  color: #dec29a;
  font-size: 13px;
}

.footer-links {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #71d3ff;
  font-size: 13px;
  font-weight: 600;
}

.footer-links a:hover {
  color: #d4f5ff;
  text-decoration: none;
}

body.landing-page .site-footer {
  margin-top: 0;
}

body.landing-page .site-footer p {
  color: #f3dfbf;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

body.landing-page .footer-links a {
  color: #9edfff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

body.landing-page .footer-links a:hover {
  color: #e2f6ff;
}

.dash-hero {
  border-radius: var(--radius);
  border: 1px solid rgba(232, 164, 72, 0.58);
  background: linear-gradient(180deg, rgba(30, 23, 20, 0.9) 0%, rgba(22, 17, 14, 0.9) 100%);
  box-shadow: 0 14px 26px rgba(12, 10, 9, 0.35);
}

.dash-head {
  margin-bottom: 14px;
}

.dash-head h2 {
  margin-top: 4px;
  color: #f6e3c4;
}

.dash-hero .auth-kicker {
  color: #cfac7b;
}

.dash-hero .subtle-link,
.dash-sessions-card .subtle-link {
  color: #ffc46a;
}

.dash-hero .subtle-link:hover,
.dash-sessions-card .subtle-link:hover {
  color: #f6e3c4;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dash-stats article {
  border: 1px solid rgba(232, 164, 72, 0.56);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(46, 35, 29, 0.92) 0%, rgba(36, 28, 24, 0.92) 100%);
  padding: 10px 12px;
}

.dash-stat-label {
  margin: 0;
  color: #ffb861;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-stat-value {
  margin: 4px 0 0;
  color: #fae9cf;
  font-size: 15px;
  font-weight: 800;
  word-break: break-word;
}

.dash-sessions-card {
  border-radius: var(--radius);
  border: 1px solid rgba(232, 164, 72, 0.58);
  background: linear-gradient(180deg, rgba(30, 23, 20, 0.9) 0%, rgba(22, 17, 14, 0.9) 100%);
  box-shadow: 0 14px 26px rgba(12, 10, 9, 0.35);
}

.dash-hero:hover,
.dash-sessions-card:hover {
  transform: none;
  box-shadow: 0 14px 26px rgba(12, 10, 9, 0.35);
}

.dash-sessions-card h2 {
  color: #f6e3c4;
}

.dash-session-head {
  margin-bottom: 12px;
}

.dash-revoke-all-btn {
  color: #ecfff5;
  border: 1px solid #89e2b3;
  background: rgba(128, 208, 239, 0.2);
}

.dash-revoke-all-btn:hover {
  color: #f4fff9;
  border-color: #9de8c0;
  background: rgba(128, 208, 239, 0.32);
}

.dash-table-wrap {
  overflow-x: auto;
}

.dash-table {
  margin-top: 0;
}

.dash-table th,
.dash-table td {
  border-color: rgba(232, 164, 72, 0.46);
  color: #c5daf8;
}

.dash-table th {
  color: #f6e3c4;
  background: rgba(46, 35, 29, 0.8);
}

.dash-sessions-card .subtle-copy {
  color: #b8cdec;
}

.dash-device-cell {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.dash-device-name {
  color: #d5e6ff;
}

.dash-current-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  color: #0e4e2f;
  background: #dbf5e6;
  border: 1px solid #acdfc2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-current-row {
  background: rgba(34, 54, 90, 0.72);
}

.leaderboard-shell,
.leaderboard-panel {
  border-radius: var(--radius);
  border: 1px solid rgba(232, 164, 72, 0.58);
  background: linear-gradient(180deg, rgba(30, 23, 20, 0.9) 0%, rgba(22, 17, 14, 0.9) 100%);
  box-shadow: 0 14px 26px rgba(12, 10, 9, 0.35);
}

.leaderboard-shell:hover,
.leaderboard-panel:hover {
  transform: none;
  box-shadow: 0 14px 26px rgba(12, 10, 9, 0.35);
}

.leaderboard-head h2 {
  margin-top: 4px;
  color: #f6e3c4;
}

.leaderboard-shell .auth-kicker {
  color: #cfac7b;
}

.leaderboard-shell .subtle-link,
.leaderboard-panel .subtle-link {
  color: #ffc46a;
}

.leaderboard-shell .subtle-link:hover,
.leaderboard-panel .subtle-link:hover {
  color: #f6e3c4;
}

.leaderboard-copy {
  margin: 0;
  color: #b8cdec;
}

.leaderboard-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.roguelike-columns {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.leaderboard-panel-head {
  margin-bottom: 12px;
}

.leaderboard-panel h2 {
  color: #f6e3c4;
}

.leaderboard-table-wrap {
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(232, 164, 72, 0.46);
  color: #c5daf8;
  text-align: left;
}

.leaderboard-table th {
  color: #f6e3c4;
  background: rgba(46, 35, 29, 0.8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.leaderboard-table tbody tr:last-child td {
  border-bottom: none;
}

.leaderboard-empty {
  color: #b8cdec;
}

.leaderboard-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.leaderboard-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(184, 206, 255, 0.7);
}

.leaderboard-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(121, 74, 34, 0.75);
  color: #f0f6ff;
  font-size: 12px;
  font-weight: 700;
}

.profile-picture-picker {
  display: grid;
  gap: 12px;
}

.profile-picture-picker-title {
  margin: 0;
  color: #dce9ff;
  font-size: 13px;
  font-weight: 700;
}

.profile-picture-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-picture-select-grid {
  align-items: center;
}

.profile-picture-choice {
  position: relative;
  display: inline-flex;
  border-radius: 999px;
  cursor: pointer;
}

.profile-picture-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-picture-option,
.profile-picture-choice-fallback {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 2px solid rgba(126, 165, 228, 0.45);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.profile-picture-option {
  object-fit: cover;
}

.game-board-option,
.game-board-option-fallback {
  width: 156px;
  height: 96px;
  border-radius: 20px;
}

.game-board-preview {
  position: relative;
  display: inline-flex;
  width: 156px;
  height: 96px;
  border-radius: 20px;
}

.game-board-option {
  object-fit: cover;
  object-position: center;
  display: block;
}

.game-board-option-fallback {
  background:
    linear-gradient(180deg, rgba(84, 61, 34, 0.92) 0%, rgba(37, 26, 16, 0.96) 100%);
  color: #f6ead1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.profile-picture-choice-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 56, 94, 0.85);
  color: #f0f6ff;
  font-size: 13px;
  font-weight: 700;
}

.profile-picture-clear-choice .profile-picture-choice-fallback:not(.game-board-option-fallback) {
  background:
    linear-gradient(180deg, rgba(89, 62, 34, 0.94) 0%, rgba(42, 28, 16, 0.98) 100%);
  border-color: rgba(201, 156, 96, 0.5);
  color: #f3e3c4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 194, 0.14),
    inset 0 -2px 0 rgba(26, 16, 10, 0.42);
}

.profile-picture-choice .game-board-option-fallback {
  background:
    linear-gradient(180deg, rgba(84, 61, 34, 0.92) 0%, rgba(37, 26, 16, 0.96) 100%);
  color: #f6ead1;
}

.game-board-preview-badge {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(236, 202, 142, 0.44);
  background:
    linear-gradient(180deg, rgba(86, 60, 30, 0.92) 0%, rgba(45, 29, 15, 0.96) 100%);
  color: #f7e7c6;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  box-shadow:
    0 6px 14px rgba(8, 6, 4, 0.28),
    inset 0 1px 0 rgba(255, 238, 205, 0.16);
  pointer-events: none;
}

.profile-picture-choice:hover .profile-picture-option,
.profile-picture-choice:hover .profile-picture-choice-fallback {
  transform: translateY(-1px);
  border-color: rgba(172, 202, 252, 0.8);
}

.profile-picture-choice input:checked + .profile-picture-option,
.profile-picture-choice input:checked + .profile-picture-choice-fallback,
.profile-picture-choice input:checked + .game-board-preview .profile-picture-option,
.profile-picture-choice input:checked + .game-board-preview .profile-picture-choice-fallback {
  border-color: #ffc963;
  box-shadow:
    0 0 0 4px rgba(255, 201, 99, 0.5),
    0 10px 22px rgba(255, 140, 38, 0.18);
}

.admin-picture-grid .profile-picture-option {
  width: 96px;
  height: 96px;
}

.admin-picture-grid .game-board-option {
  width: 156px;
  height: 96px;
}

.admin-picture-grid .game-board-preview {
  display: inline-flex;
}

.admin-upload-message {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}

.admin-upload-ok {
  color: #dff8ea;
  border: 1px solid rgba(120, 214, 170, 0.45);
  background: rgba(41, 126, 86, 0.35);
}

.admin-upload-error {
  color: #ffe6e6;
  border: 1px solid rgba(245, 123, 123, 0.45);
  background: rgba(140, 42, 42, 0.3);
}

.admin-hero,
.admin-panel-card {
  border-radius: var(--radius);
  border: 1px solid rgba(232, 164, 72, 0.58);
  background: linear-gradient(180deg, rgba(30, 23, 20, 0.9) 0%, rgba(22, 17, 14, 0.9) 100%);
  box-shadow: 0 14px 26px rgba(12, 10, 9, 0.35);
}

.admin-hero:hover,
.admin-panel-card:hover {
  transform: none;
  box-shadow: 0 14px 26px rgba(12, 10, 9, 0.35);
}

.admin-head h2,
.admin-panel-head h2 {
  color: #f6e3c4;
}

.admin-hero .auth-kicker,
.admin-panel-card .auth-kicker {
  color: #cfac7b;
}

.admin-hero .subtle-link,
.admin-panel-card .subtle-link {
  color: #ffc46a;
}

.admin-hero .subtle-link:hover,
.admin-panel-card .subtle-link:hover {
  color: #f6e3c4;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-stats article,
.admin-role-list article {
  border: 1px solid rgba(232, 164, 72, 0.56);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(46, 35, 29, 0.92) 0%, rgba(36, 28, 24, 0.92) 100%);
  padding: 10px 12px;
}

.admin-stat-label {
  margin: 0;
  color: #ffb861;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-stat-value {
  margin: 4px 0 0;
  color: #fae9cf;
  font-size: 22px;
  font-weight: 800;
}

.admin-role-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-role-name {
  margin: 0;
  color: #fae9cf;
  font-size: 15px;
  font-weight: 800;
  text-transform: capitalize;
}

.admin-role-description {
  margin: 4px 0 0;
  color: #b8cdec;
  font-size: 13px;
}

.admin-panel-card .subtle-copy {
  color: #b8cdec;
}

.admin-table th,
.admin-table td {
  border-color: rgba(232, 164, 72, 0.46);
  color: #c5daf8;
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-role-admin {
  color: #fff1d6;
  background: rgba(180, 114, 22, 0.28);
  border: 1px solid rgba(245, 185, 99, 0.45);
}

.admin-role-moderator {
  color: #dff8ea;
  background: rgba(41, 126, 86, 0.35);
  border: 1px solid rgba(120, 214, 170, 0.45);
}

.admin-role-user,
.admin-role-unknown {
  color: #e7ceaa;
  background: rgba(50, 81, 131, 0.4);
  border: 1px solid rgba(126, 165, 228, 0.4);
}

.queue-status-card {
  border: 1px solid #d6e3f8;
  border-radius: var(--radius);
  background: #f7faff;
  padding: 12px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.queue-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.queue-status-text {
  margin: 0;
  font-weight: 700;
  color: #1f4377;
}

.queue-connection {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.queue-connection-online {
  color: #145f3f;
  background: #dff5e7;
}

.queue-connection-offline {
  color: #73493a;
  background: #f8e7df;
}

.queue-meta-line {
  margin: 7px 0 0;
  color: #4c678f;
}

.queue-actions {
  margin-top: 10px;
}

.queue-leave-btn {
  color: #163360;
  border-color: #b9cff2;
  background: #eaf1ff;
}

.queue-leave-btn:hover {
  color: #0f274b;
  background: #dbe9ff;
}

.play-shell {
  display: grid;
  gap: 14px;
  width: min(1080px, 100%);
  margin: 0 auto 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.play-shell:hover {
  transform: none;
  box-shadow: none;
}

.play-shell [hidden] {
  display: none !important;
}

.play-shell .card-head h2 {
  color: #e9f1ff;
}

.play-shell .card-head {
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(120, 158, 222, 0.34);
}

.play-shell .play-desktop-only {
  display: grid;
  gap: 12px;
}

.play-shell .subtle-link {
  color: #c5d4ec;
}

.play-shell .subtle-link:hover {
  color: #f2f7ff;
}

.play-shell .queue-status-card {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(120, 158, 222, 0.3);
  border-radius: 0;
  background: rgba(14, 22, 36, 0.38);
  box-shadow: none;
}

.play-shell .queue-status-text {
  color: #f2f7ff;
}

.play-shell .queue-meta-line {
  color: #c5d4ec;
}

.play-shell .queue-meta-line strong {
  color: #f2f7ff;
}

.play-shell .quick-start-steps {
  margin: 0.5rem 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.play-shell .quick-start-note {
  margin-top: 0.75rem;
}

.play-shell .tutorial-toggle-row {
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.play-shell .queue-connection-online {
  color: #e8fff2;
  background: linear-gradient(180deg, rgba(24, 188, 112, 0.9) 0%, rgba(15, 143, 82, 0.92) 100%);
  border: 1px solid rgba(106, 255, 182, 0.75);
  box-shadow: none;
}

.play-shell .queue-connection-offline {
  color: #fff0ec;
  background: linear-gradient(180deg, rgba(220, 79, 62, 0.9) 0%, rgba(164, 48, 34, 0.92) 100%);
  border: 1px solid rgba(255, 145, 128, 0.72);
  box-shadow: none;
}

.play-shell #queue-join-btn {
  color: #fff7e8;
  border: 1px solid rgba(255, 204, 109, 0.88);
  background: linear-gradient(180deg, rgba(240, 177, 79, 0.98) 0%, rgba(217, 125, 36, 0.98) 100%);
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.play-shell #queue-join-btn:hover:not(:disabled) {
  color: #fffdf8;
  border-color: rgba(255, 214, 135, 0.92);
  background: linear-gradient(180deg, rgba(245, 191, 97, 0.98) 0%, rgba(224, 138, 48, 0.98) 100%);
}

.play-shell .queue-leave-btn {
  color: #ffe6e2;
  border-color: rgba(179, 98, 76, 0.74);
  background: linear-gradient(180deg, rgba(114, 47, 36, 0.94) 0%, rgba(75, 28, 22, 0.96) 100%);
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.play-shell .queue-leave-btn:hover:not(:disabled) {
  color: #fff0ee;
  border-color: rgba(206, 123, 100, 0.92);
  background: linear-gradient(180deg, rgba(131, 55, 42, 0.96) 0%, rgba(86, 33, 26, 0.98) 100%);
}

.play-shell .queue-actions {
  margin-top: 14px;
  gap: 12px;
}

.play-shell .queue-actions .inline-form {
  display: inline-flex;
}

.play-shell .queue-actions button,
.play-shell .queue-actions .btn-link {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.play-shell .queue-actions .btn-link {
  min-width: 188px;
}

.play-shell #tutorial-toggle-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 900;
}

.play-shell #tutorial-toggle-btn,
.play-shell #open-match-btn {
  border: 1px solid rgba(120, 158, 222, 0.72);
  background: rgba(22, 33, 52, 0.9);
  color: #eaf2ff;
  box-shadow: none;
}

.play-shell #tutorial-toggle-btn:hover:not(:disabled),
.play-shell #open-match-btn:hover:not(:disabled) {
  border-color: rgba(160, 197, 255, 0.9);
  background: rgba(44, 63, 97, 0.9);
  color: #f2f7ff;
}

.play-shell #training-join-btn {
  border: 1px solid rgba(118, 228, 157, 0.86);
  background: linear-gradient(180deg, rgba(28, 166, 109, 0.92) 0%, rgba(19, 121, 79, 0.94) 100%);
  color: #effff6;
  box-shadow: none;
}

.play-shell #training-join-btn:hover:not(:disabled) {
  border-color: rgba(154, 240, 187, 0.94);
  background: linear-gradient(180deg, rgba(35, 184, 121, 0.94) 0%, rgba(24, 138, 91, 0.96) 100%);
  color: #f7fffb;
}

.play-shell .play-roguelike-link {
  border: 1px solid rgba(152, 211, 255, 0.84);
  background: linear-gradient(180deg, rgba(43, 109, 192, 0.96) 0%, rgba(29, 68, 135, 0.98) 100%);
  color: #eef7ff;
}

.play-shell .play-roguelike-link:hover:not(:disabled) {
  border-color: rgba(185, 228, 255, 0.94);
  background: linear-gradient(180deg, rgba(57, 125, 210, 0.96) 0%, rgba(37, 82, 154, 0.98) 100%);
  color: #f9fcff;
}

.roguelike-node-grid,
.roguelike-trinket-list,
.roguelike-active-trinkets {
  display: grid;
  gap: 12px;
}

.roguelike-hub {
  display: grid;
  gap: 18px;
}

.roguelike-hub .leaderboard-panel,
.roguelike-columns .leaderboard-panel {
  padding: 18px 18px 20px;
}

.roguelike-hub .queue-status-card,
.roguelike-columns .queue-status-card {
  border-color: rgba(120, 158, 222, 0.34);
  background: rgba(19, 27, 43, 0.82);
}

.roguelike-hub .leaderboard-panel-head,
.roguelike-columns .leaderboard-panel-head {
  padding-left: 0;
  padding-right: 0;
}

.roguelike-hub-head {
  align-items: start;
}

.roguelike-hub-copy {
  margin: 10px 0 0;
  max-width: 56ch;
  color: #d9e4f7;
}

.roguelike-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.roguelike-overview-panel {
  display: grid;
  gap: 14px;
}

.roguelike-run-deck-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.roguelike-run-deck-preview {
  display: grid;
  gap: 12px;
  align-content: start;
}

.roguelike-run-deck-preview-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(132, 171, 225, 0.3);
  background:
    radial-gradient(circle at top, rgba(120, 175, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(18, 27, 44, 0.92) 0%, rgba(11, 18, 30, 0.98) 100%);
  aspect-ratio: 0.74;
}

.roguelike-run-deck-preview-image,
.roguelike-run-deck-preview-fallback {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.roguelike-run-deck-preview-image.is-empty {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 191, 76, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(28, 42, 68, 0.94) 0%, rgba(14, 21, 34, 0.98) 100%);
}

.roguelike-run-deck-preview-copy {
  display: grid;
  gap: 8px;
}

.roguelike-run-deck-preview-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f3f7ff;
}

.roguelike-run-deck-preview-cost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 140, 0.4);
  background: rgba(63, 44, 18, 0.84);
  color: #ffe4b2;
  font-size: 15px;
  font-weight: 900;
}

.roguelike-run-deck-preview-meta,
.roguelike-run-deck-preview-text {
  margin: 0;
}

.roguelike-run-deck-preview-text {
  line-height: 1.5;
}

.roguelike-run-deck-scroll {
  max-height: min(62vh, 620px);
  overflow-y: auto;
  padding-right: 6px;
}

.roguelike-run-deck-scroll::-webkit-scrollbar {
  width: 10px;
}

.roguelike-run-deck-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(18, 26, 42, 0.9);
  background: rgba(120, 158, 222, 0.42);
}

.roguelike-run-deck-scroll::-webkit-scrollbar-track {
  background: rgba(12, 18, 30, 0.35);
}

.roguelike-run-deck-list {
  display: grid;
  gap: 10px;
}

.roguelike-run-deck-row {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.roguelike-run-deck-rows .deck-card-row {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(21, 30, 50, 0.92) 0%, rgba(13, 21, 36, 0.92) 100%);
  border-color: rgba(160, 186, 228, 0.5);
  margin-bottom: 0;
}

.roguelike-run-deck-rows .deck-card-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--deck-row-art, none);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center -18px;
  opacity: 0.86;
  transform: scale(1.04);
  pointer-events: none;
}

.roguelike-run-deck-rows .deck-card-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 30, 0.24) 0%, rgba(7, 12, 24, 0.68) 55%, rgba(4, 8, 17, 0.84) 100%),
    linear-gradient(90deg, rgba(4, 8, 16, 0.66) 0%, rgba(4, 8, 16, 0.18) 45%, rgba(4, 8, 16, 0.72) 100%);
  pointer-events: none;
}

.roguelike-run-deck-row:hover,
.roguelike-run-deck-row:focus-visible,
.roguelike-run-deck-row.is-active {
  box-shadow: 0 0 0 2px rgba(137, 191, 255, 0.24);
}

.roguelike-run-deck-row:focus-visible {
  outline: none;
}

.roguelike-run-deck-rows .deck-card-copy {
  position: relative;
  z-index: 1;
}

#roguelike-card-preview-popup {
  z-index: 5600;
}

.roguelike-buff-scroll {
  max-height: min(58vh, 540px);
  overflow-y: auto;
  padding-right: 6px;
}

.roguelike-buff-scroll::-webkit-scrollbar {
  width: 10px;
}

.roguelike-buff-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(18, 26, 42, 0.9);
  background: rgba(120, 158, 222, 0.42);
}

.roguelike-buff-scroll::-webkit-scrollbar-track {
  background: rgba(12, 18, 30, 0.35);
}

.roguelike-overview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.roguelike-overview-stat {
  padding: 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(113, 146, 210, 0.28);
  background: rgba(19, 27, 43, 0.72);
}

.roguelike-overview-stat strong {
  display: block;
  margin-top: 6px;
  color: #f3f7ff;
  font-size: 26px;
  line-height: 1;
}

.roguelike-overview-label {
  display: block;
  color: #d4dded;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roguelike-overview-status {
  margin: 0;
}

.roguelike-tree-panel {
  display: grid;
  gap: 16px;
}

.roguelike-tree-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: #e0e8f7;
  font-size: 13px;
}

.roguelike-tree-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.roguelike-tree-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.roguelike-tree-legend-dot.is-available {
  background: #7dc5ff;
}

.roguelike-tree-legend-dot.is-completed {
  background: #73dd9a;
}

.roguelike-tree-legend-dot.is-failed {
  background: #e28379;
}

.roguelike-tree-grid {
  display: grid;
  grid-template-columns: repeat(var(--roguelike-depth-count), minmax(220px, 1fr)) minmax(170px, 0.8fr);
  gap: 18px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 4px;
}

.roguelike-tree-column {
  display: grid;
  gap: 12px;
  min-width: 220px;
}

.roguelike-tree-column-head {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 44, 70, 0.7);
  color: #eef4ff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.roguelike-tree-column-stack {
  display: grid;
  gap: 14px;
}

.roguelike-tree-node {
  position: relative;
  min-height: 0;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.roguelike-tree-node::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -18px;
  width: 18px;
  height: 2px;
  background: rgba(110, 132, 172, 0.42);
}

.roguelike-tree-column:first-child .roguelike-tree-node::before {
  display: none;
}

.roguelike-tree-node-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #d4deef;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.roguelike-tree-node-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.roguelike-tree-node-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: rgba(151, 166, 192, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.roguelike-tree-node-dot-completed {
  background: #6fdf95;
  box-shadow:
    0 0 0 1px rgba(190, 255, 214, 0.18),
    0 0 12px rgba(111, 223, 149, 0.28);
}

.roguelike-tree-node-dot-available {
  background: #72c7ff;
  box-shadow:
    0 0 0 1px rgba(202, 235, 255, 0.18),
    0 0 12px rgba(114, 199, 255, 0.28);
}

.roguelike-tree-node-dot-failed {
  background: #e27f74;
  box-shadow:
    0 0 0 1px rgba(255, 212, 208, 0.14),
    0 0 10px rgba(226, 127, 116, 0.22);
}

.roguelike-hub .queue-meta-line,
.roguelike-columns .queue-meta-line,
.roguelike-hub .subtle-copy,
.roguelike-columns .subtle-copy {
  color: #d3deef;
}

.roguelike-hub .queue-meta-line strong,
.roguelike-columns .queue-meta-line strong {
  color: #f3f7ff;
}

.roguelike-hub .queue-status-text,
.roguelike-columns .queue-status-text {
  color: #f3f7ff;
}

.roguelike-tree-node-name {
  margin: 0;
  color: #f3f7ff;
  font-size: 22px;
  line-height: 1.05;
}

.roguelike-tree-node-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.roguelike-tree-node-badge-elite {
  border: 1px solid rgba(152, 210, 255, 0.46);
  background: linear-gradient(180deg, rgba(58, 112, 181, 0.34) 0%, rgba(28, 58, 104, 0.44) 100%);
  color: #dff1ff;
}

.roguelike-tree-node-badge-boss {
  border: 1px solid rgba(255, 207, 120, 0.54);
  background: linear-gradient(180deg, rgba(123, 67, 18, 0.44) 0%, rgba(86, 34, 10, 0.52) 100%);
  color: #ffe8b7;
  box-shadow: 0 0 18px rgba(255, 181, 72, 0.14);
}

.roguelike-tree-node-intel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.roguelike-tree-node-intel-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(135, 177, 226, 0.26);
  background: rgba(26, 42, 68, 0.72);
  color: #eef5ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.roguelike-tree-node-hint {
  margin: 0;
  color: #d9e6f7;
  line-height: 1.45;
}

.roguelike-tree-node-reward,
.roguelike-tree-node-scaling,
.roguelike-tree-node-status {
  margin: 0;
}

.roguelike-reward-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f3f7ff;
  font-weight: 800;
}

.roguelike-reward-coin-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
}

.roguelike-tree-node-available {
  border-color: rgba(152, 211, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(125, 197, 255, 0.08);
}

.roguelike-tree-node-kind-elite {
  border-color: rgba(131, 197, 255, 0.68);
  background: linear-gradient(180deg, rgba(21, 40, 67, 0.9) 0%, rgba(15, 29, 48, 0.96) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(120, 187, 255, 0.12),
    0 0 0 1px rgba(101, 170, 255, 0.06);
}

.roguelike-tree-node-kind-boss {
  border-color: rgba(255, 196, 106, 0.76);
  background:
    radial-gradient(circle at top, rgba(255, 184, 84, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(52, 30, 16, 0.94) 0%, rgba(28, 16, 10, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 211, 138, 0.12),
    0 0 20px rgba(255, 173, 61, 0.08);
}

.roguelike-tree-node-completed {
  border-color: rgba(118, 228, 157, 0.62);
}

.roguelike-tree-node-failed {
  border-color: rgba(224, 106, 100, 0.62);
}

.roguelike-tree-fog {
  min-width: 170px;
}

.roguelike-tree-fog-card {
  padding: 18px 16px;
  border-radius: 22px;
  border: 1px dashed rgba(138, 154, 182, 0.38);
  background: rgba(14, 20, 31, 0.58);
}

.roguelike-tree-fog-title {
  margin: 0 0 6px;
  color: #e7eefc;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.roguelike-empty-state {
  display: grid;
}

.roguelike-node-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.roguelike-node-card {
  min-height: 192px;
}

.roguelike-node-card.roguelike-node-available {
  border-color: rgba(152, 211, 255, 0.6);
}

.roguelike-node-card.roguelike-node-completed {
  border-color: rgba(118, 228, 157, 0.62);
}

.roguelike-node-card.roguelike-node-failed {
  border-color: rgba(224, 106, 100, 0.62);
}

.roguelike-trinket-card,
.roguelike-active-trinket {
  background: rgba(22, 30, 49, 0.72);
}

.roguelike-trinket-card button {
  margin-top: 10px;
}

@media (max-width: 820px) {
  .roguelike-run-deck-layout {
    grid-template-columns: 1fr;
  }

  .roguelike-tree-grid {
    grid-template-columns: repeat(var(--roguelike-depth-count), minmax(180px, 1fr)) minmax(150px, 0.8fr);
  }

  .roguelike-tree-column {
    min-width: 180px;
  }
}

.play-shell .match-found-banner {
  border: 1px solid rgba(120, 158, 222, 0.34);
  border-radius: 0;
  background: rgba(14, 22, 36, 0.62);
}

.play-shell .match-found-title {
  color: #f2f7ff;
}

.play-shell .match-found-copy {
  color: #c5d4ec;
}

.device-unsupported-card {
  display: none;
  text-align: center;
  padding: 28px 24px;
  border-radius: 24px;
  border: 1px solid rgba(232, 164, 72, 0.58);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 212, 140, 0.14), rgba(255, 212, 140, 0) 34%),
    linear-gradient(180deg, rgba(68, 44, 20, 0.97) 0%, rgba(28, 17, 10, 0.99) 100%);
  box-shadow:
    0 28px 58px rgba(7, 4, 2, 0.48),
    inset 0 1px 0 rgba(255, 230, 181, 0.14);
}

.device-unsupported-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin: 0;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(226, 183, 110, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 227, 175, 0.16) 0%, rgba(255, 227, 175, 0) 42%),
    linear-gradient(180deg, rgba(93, 60, 28, 0.78) 0%, rgba(56, 34, 16, 0.9) 100%);
  color: #f4d9aa;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.device-unsupported-card h3 {
  margin: 14px 0 0;
  color: #fff2de;
  font-size: clamp(26px, 7vw, 34px);
}

@media (max-width: 560px) {
  .play-shell .queue-actions button,
  .play-shell .queue-actions .btn-link {
    min-height: 48px;
    padding: 12px 18px;
    font-size: 16px;
  }
}

.match-found-banner {
  margin-top: 10px;
  border: 1px solid #9dc1f4;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #edf5ff 0%, #e7ceaa 100%);
  padding: 10px 12px;
}

.match-found-title {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a5fa7;
}

.match-found-copy {
  margin: 4px 0 0;
  color: #20477d;
  font-weight: 700;
}

.home-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 173, 70, 0.56);
  background:
    linear-gradient(130deg, rgba(18, 18, 33, 0.96) 0%, rgba(27, 45, 75, 0.92) 42%, rgba(97, 45, 14, 0.9) 100%),
    radial-gradient(680px 300px at 20% -5%, rgba(255, 182, 69, 0.3), transparent 70%),
    radial-gradient(560px 240px at 86% 82%, rgba(84, 196, 255, 0.28), transparent 68%);
  box-shadow: 0 26px 44px rgba(11, 9, 8, 0.42);
  padding: 24px;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(208, 156, 84, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(208, 156, 84, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 92%);
}

.home-orbit {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(0.5px);
}

.home-orbit-a {
  width: 440px;
  height: 440px;
  top: -220px;
  left: -120px;
  border: 1px solid rgba(233, 176, 94, 0.26);
  animation: homeOrbitA 12s ease-in-out infinite;
}

.home-orbit-b {
  width: 380px;
  height: 380px;
  bottom: -190px;
  right: -80px;
  border: 1px solid rgba(93, 178, 225, 0.28);
  animation: homeOrbitB 10s ease-in-out infinite;
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
}

.home-profile-progress-stack {
  position: fixed;
  top: 10px;
  right: 54px;
  z-index: 22;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.home-profile-progress-widget {
  position: static;
  display: inline-grid;
  justify-items: center;
  gap: 8px;
  text-decoration: none;
}

.home-profile-progress-ring {
  --ring-size: 126px;
  --ring-thickness: 10px;
  position: relative;
  width: var(--ring-size);
  height: var(--ring-size);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background:
    conic-gradient(
      rgba(104, 203, 255, 0.96) calc(max(0, min(100, var(--home-profile-progress, 0))) * 1%),
      rgba(44, 60, 82, 0.85) 0
    );
  box-shadow: 0 0 0 1px rgba(29, 45, 63, 0.65), 0 8px 20px rgba(6, 11, 19, 0.42);
  padding: var(--ring-thickness);
}

.home-profile-progress-avatar {
  position: relative;
  z-index: 1;
  width: calc(var(--ring-size) - (var(--ring-thickness) * 2));
  height: calc(var(--ring-size) - (var(--ring-thickness) * 2));
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 193, 97, 0.78);
  box-shadow: 0 0 0 1px rgba(22, 20, 18, 0.55);
}

.home-profile-progress-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #5f3a1e;
  color: #f0f6ff;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  opacity: 1;
}

.home-profile-progress-level {
  color: #dbecff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.home-profile-progress-stats {
  width: 132px;
  display: grid;
  gap: 6px;
}

.home-profile-progress-stat {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.home-profile-progress-widget:hover .home-profile-progress-ring,
.home-profile-progress-widget:focus-visible .home-profile-progress-ring {
  filter: brightness(1.06);
}

.home-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #cfac7b;
  font-size: 12px;
  font-weight: 800;
}

.home-title {
  margin: 8px 0 10px;
  color: #ffd08a;
  font-weight: 900;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 0 18px rgba(255, 177, 72, 0.5), 0 3px 14px rgba(196, 95, 18, 0.42);
  text-align: center;
}

.home-title-logo {
  display: block;
  width: min(100%, clamp(164px, 29vw, 312px));
  max-height: clamp(54px, 7.2vw, 86px);
  height: auto;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

.home-subtitle {
  margin: 0;
  color: rgba(233, 206, 170, 0.9);
  max-width: 640px;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}

.home-cta-row .btn-link {
  border-radius: 0;
}

.home-inline-auth {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-origin: top center;
  z-index: var(--app-shell-overlay-z);
  width: clamp(320px, 88vw, 440px);
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition: opacity 160ms ease;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.home-inline-auth.is-open {
  opacity: 1;
  transform: translate(-50%, -50%);
}

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

.home-auth-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 14px;
}

.home-auth-body {
  display: block;
}

.home-auth-main {
  min-width: 0;
  width: 100%;
  max-width: 460px;
}

.home-auth-side {
  display: none;
}

.home-auth-copy h3 {
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 1.2;
  color: #fff1dc;
}

.home-auth-copy p {
  margin: 0;
  line-height: 1.45;
  color: rgba(235, 221, 200, 0.92);
}

.home-auth-copy .auth-kicker {
  margin-bottom: 4px;
}

.home-auth-tab {
  border: 1px solid transparent;
  border-radius: 0;
  padding: 4px 10px;
  background-image: none;
  box-shadow: none;
  filter: none;
  transform: none;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.home-auth-tab[data-auth-tab="register"] {
  background: rgba(242, 126, 52, 0.5);
  border-color: rgba(255, 164, 106, 0.72);
  color: #fff1e9;
}

.home-auth-tab[data-auth-tab="register"]:hover,
.home-auth-tab[data-auth-tab="register"]:focus-visible,
.home-auth-tab[data-auth-tab="register"][aria-selected="true"] {
  background: rgba(242, 126, 52, 1);
  border-color: rgba(255, 164, 106, 0.72);
  color: #fff1e9;
  box-shadow: none;
  filter: none;
  transform: none;
}

.home-auth-tab[data-auth-tab="login"] {
  background: rgba(61, 134, 205, 0.22);
  border-color: rgba(117, 201, 255, 0.72);
  color: #d8eeff;
}

.home-auth-tab[data-auth-tab="login"]:hover,
.home-auth-tab[data-auth-tab="login"]:focus-visible,
.home-auth-tab[data-auth-tab="login"][aria-selected="true"] {
  background: rgba(61, 134, 205, 1);
  border-color: rgba(117, 201, 255, 0.72);
  color: #d8eeff;
  box-shadow: none;
  filter: none;
  transform: none;
}

.home-inline-auth-form {
  margin: 0;
  width: 100%;
  max-width: 460px;
}

.home-inline-auth-error {
  margin: 0 0 4px;
  line-height: 1.4;
}

.home-inline-auth-notice {
  margin: 0 0 6px;
  line-height: 1.45;
  color: #9ed6ff;
}

.home-auth-panel {
  min-height: 248px;
}

.home-verify-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(158, 214, 255, 0.18);
}

.home-inline-auth-resend {
  margin-top: 10px;
}

.home-inline-auth-resend-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ed6ff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.home-inline-auth-resend-btn:hover,
.home-inline-auth-resend-btn:focus-visible {
  color: #d8ecff;
}

.home-inline-auth-form label {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f0dfc3;
}

.home-auth-check-field {
  position: relative;
}

.home-inline-auth-form input[type="text"],
.home-inline-auth-form input[type="password"],
.home-inline-auth-form input[type="email"] {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0;
}

.home-auth-check-field input[type="text"],
.home-auth-check-field input[type="email"] {
  padding-right: 34px;
}

.home-auth-field-status {
  position: absolute;
  right: 10px;
  top: 34px;
  min-width: 14px;
  min-height: 14px;
  font-size: 14px;
  line-height: 1;
  color: rgba(182, 203, 226, 0.78);
  opacity: 0;
  transition: opacity 140ms ease, color 140ms ease;
}

.home-auth-field-status.is-visible {
  opacity: 1;
}

.home-auth-field-status.is-valid {
  color: #77e1a9;
}

.home-auth-field-status.is-invalid {
  color: #ff8f99;
}

.home-inline-auth-submit {
  margin-top: 2px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0;
  transform: none;
  box-shadow: none;
  filter: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.home-inline-auth-submit:hover:not(:disabled),
.home-inline-auth-submit:focus-visible {
  transform: none;
  filter: none;
  box-shadow: none;
}

.home-inline-auth.is-submitting .home-auth-tab,
.home-inline-auth.is-submitting .home-inline-auth-close {
  pointer-events: none;
  opacity: 0.58;
}

.home-inline-auth-submit.is-loading {
  position: relative;
  padding-right: 34px;
}

.home-inline-auth-submit.is-loading::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid rgba(236, 247, 255, 0.9);
  border-top-color: transparent;
  border-radius: 50%;
  animation: homeInlineAuthSpin 0.72s linear infinite;
}

.home-auth-panel[data-auth-panel="register"] .home-inline-auth-submit {
  background: rgba(242, 126, 52, 0.5);
  border-color: rgba(255, 164, 106, 0.72);
  color: #fff1e9;
  box-shadow: none;
}

.home-auth-panel[data-auth-panel="register"] .home-inline-auth-submit:hover:not(:disabled),
.home-auth-panel[data-auth-panel="register"] .home-inline-auth-submit:focus-visible {
  background: rgba(242, 126, 52, 1);
  border-color: rgba(255, 164, 106, 0.72);
  color: #fff1e9;
  box-shadow: none;
}

.home-auth-panel[data-auth-panel="login"] .home-inline-auth-submit {
  background: rgba(61, 134, 205, 0.5);
  border-color: rgba(117, 201, 255, 0.72);
  color: #d8eeff;
  box-shadow: none;
}

.home-auth-panel[data-auth-panel="login"] .home-inline-auth-submit:hover:not(:disabled),
.home-auth-panel[data-auth-panel="login"] .home-inline-auth-submit:focus-visible {
  background: rgba(61, 134, 205, 1);
  border-color: rgba(117, 201, 255, 0.72);
  color: #d8eeff;
  box-shadow: none;
}

.auth-submit {
  box-shadow: none;
  filter: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.auth-submit:hover:not(:disabled),
.auth-submit:focus-visible {
  transform: translateY(-1px);
  filter: none;
  box-shadow: none;
}

.home-auth-password-rules {
  margin: -2px 0 4px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

.home-auth-password-rules li {
  margin: 0;
  white-space: nowrap;
  color: rgba(194, 214, 236, 0.86);
  font-size: 11px;
  line-height: 1.35;
}

.home-auth-password-rules li.is-valid {
  color: #77e1a9;
}

.home-inline-auth-close {
  position: absolute;
  right: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(132, 187, 232, 0.52);
  border-radius: 0;
  background: rgba(28, 55, 86, 0.72);
  color: #e6f3ff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
  transform: none !important;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.home-inline-auth-close:hover,
.home-inline-auth-close:focus-visible {
  background: rgba(52, 95, 138, 0.9);
  border-color: rgba(160, 214, 255, 0.8);
  color: #ffffff;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.home-inline-auth-close:hover:not(:disabled),
.home-inline-auth-close:focus-visible:not(:disabled),
.home-inline-auth-close:active:not(:disabled) {
  background: rgba(52, 95, 138, 0.9) !important;
  border-color: rgba(160, 214, 255, 0.8) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

@media (max-width: 560px) {
  .home-inline-auth {
    left: 50%;
    right: auto;
    top: 50%;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 18px);
    overflow: auto;
    padding: 0;
    transform: translate(-50%, -50%);
  }

  .home-inline-auth.is-open {
    transform: translate(-50%, -50%);
  }
}


.home-primary-btn {
  background: rgba(245, 250, 255, 0.5);
  border-color: rgba(180, 220, 252, 0.72);
  color: #f4fbff;
  box-shadow: none;
}

.home-primary-btn:hover {
  background: rgba(245, 250, 255, 1);
  border-color: rgba(180, 220, 252, 0.72);
  color: #f4fbff;
  transform: none;
  box-shadow: none;
}

.home-primary-btn:focus-visible {
  background: rgba(245, 250, 255, 1);
  border-color: rgba(180, 220, 252, 0.72);
  color: #f4fbff;
  transform: none;
  box-shadow: none;
}

.home-ghost-btn {
  background: rgba(61, 134, 205, 0.22);
  border-color: rgba(117, 201, 255, 0.72);
  color: #d8eeff;
  box-shadow: none;
}

.home-ghost-btn:hover {
  background: rgba(61, 134, 205, 1);
  border-color: rgba(117, 201, 255, 0.72);
  color: #d8eeff;
  transform: none;
  box-shadow: none;
}

.home-ghost-btn:focus-visible {
  background: rgba(61, 134, 205, 1);
  border-color: rgba(117, 201, 255, 0.72);
  color: #d8eeff;
  transform: none;
  box-shadow: none;
}

.home-cta-row [data-auth-open].is-active {
  transform: none;
}

.home-cta-row .home-primary-btn,
.home-cta-row .home-primary-btn:hover,
.home-cta-row .home-primary-btn:focus-visible,
.home-cta-row .home-primary-btn:active {
  background-image: none;
  filter: none;
}

.home-cta-row .home-ghost-btn,
.home-cta-row .home-ghost-btn:hover,
.home-cta-row .home-ghost-btn:focus-visible,
.home-cta-row .home-ghost-btn:active {
  background-image: none;
  filter: none;
}

/* Keep landing CTA visuals deterministic: only transparency changes on hover/focus */
.home-cta-row .home-primary-btn {
  background: rgba(242, 126, 52, 0.5) !important;
  border-color: rgba(255, 164, 106, 0.72) !important;
  color: #fff1e9 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.home-cta-row .home-primary-btn:hover,
.home-cta-row .home-primary-btn:focus-visible,
.home-cta-row .home-primary-btn:active,
.home-cta-row .home-primary-btn.is-active {
  background: rgba(242, 126, 52, 1) !important;
  border-color: rgba(255, 164, 106, 0.72) !important;
  color: #fff1e9 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.home-cta-row .home-ghost-btn {
  background: rgba(61, 134, 205, 0.22) !important;
  border-color: rgba(117, 201, 255, 0.72) !important;
  color: #d8eeff !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.home-cta-row .home-ghost-btn:hover,
.home-cta-row .home-ghost-btn:focus-visible,
.home-cta-row .home-ghost-btn:active,
.home-cta-row .home-ghost-btn.is-active {
  background: rgba(61, 134, 205, 1) !important;
  border-color: rgba(117, 201, 255, 0.72) !important;
  color: #d8eeff !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

body.landing-page.landing-auth-open .home-cta-row [data-auth-open] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.landing-page.landing-auth-open .home-updates {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

body.landing-page.landing-auth-open::before {
  filter: blur(34px) saturate(1.03);
  transform: scale(1.04);
}

body.landing-page.landing-auth-open::after {
  background:
    linear-gradient(180deg, rgba(7, 10, 16, 0.52) 0%, rgba(7, 10, 16, 0.7) 100%),
    radial-gradient(960px 460px at 50% 14%, rgba(14, 24, 36, 0.33), transparent 66%);
}

.home-pass-btn-locked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, rgba(56, 74, 97, 0.78) 0%, rgba(39, 53, 72, 0.84) 100%);
  border-color: rgba(137, 159, 186, 0.46);
  color: rgba(216, 230, 246, 0.78);
  box-shadow: 0 10px 18px rgba(14, 20, 30, 0.3);
  pointer-events: none;
  cursor: not-allowed;
  filter: saturate(0.72);
}

.home-pass-btn-locked .side-rail-lock-icon {
  transform: translateY(3px);
}

.home-pass-btn-admin {
  pointer-events: auto;
  cursor: pointer;
}

.home-pass-btn-admin:hover,
.home-pass-btn-admin:focus-visible {
  filter: saturate(0.9);
}

.home-level-wrap {
  margin-top: 14px;
  display: grid;
  max-width: 520px;
}

.home-copy-dashboard {
  width: min(100%, 1180px);
}

.home-dashboard-shell {
  margin-top: 8px;
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  justify-content: center;
}

.home-dashboard-primary,
.home-dashboard-side {
  display: grid;
  gap: 12px;
}

.home-dashboard-primary {
  max-width: 860px;
  justify-self: center;
}

.home-dashboard-actions {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.home-dashboard-actions-row {
  width: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  justify-content: center;
  align-items: start;
  gap: 30px;
}

.home-action-play-col,
.home-action-collection-col {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.home-action-collection-col {
  position: relative;
}

.home-play-center-btn {
  min-width: 210px;
}

.home-collection-btn {
  min-width: 210px;
}

.home-collection-preview {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.home-dashboard-actions .home-primary-btn {
  background: rgba(242, 126, 52, 0.5) !important;
  border-color: rgba(255, 164, 106, 0.72) !important;
  color: #fff1e9 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.home-dashboard-actions .home-primary-btn:hover,
.home-dashboard-actions .home-primary-btn:focus-visible,
.home-dashboard-actions .home-primary-btn:active {
  background: rgba(242, 126, 52, 1) !important;
  border-color: rgba(255, 164, 106, 0.72) !important;
  color: #fff1e9 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.home-dashboard-actions .home-ghost-btn {
  background: rgba(61, 134, 205, 0.22) !important;
  border-color: rgba(117, 201, 255, 0.72) !important;
  color: #d8eeff !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.home-dashboard-actions .home-ghost-btn:hover,
.home-dashboard-actions .home-ghost-btn:focus-visible,
.home-dashboard-actions .home-ghost-btn:active {
  background: rgba(61, 134, 205, 1) !important;
  border-color: rgba(117, 201, 255, 0.72) !important;
  color: #d8eeff !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.home-quick-links {
  width: 100%;
  max-width: 360px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-dashboard-actions .home-quick-btn,
.home-dashboard-actions .home-pass-btn {
  min-width: 0;
  width: 100%;
  padding-inline: 10px;
  background: rgba(228, 236, 247, 0.2) !important;
  border-color: rgba(228, 236, 247, 0.72) !important;
  color: #f4f8ff !important;
}

.home-dashboard-actions .home-quick-btn:hover,
.home-dashboard-actions .home-quick-btn:focus-visible,
.home-dashboard-actions .home-quick-btn:active,
.home-dashboard-actions .home-pass-btn:hover,
.home-dashboard-actions .home-pass-btn:focus-visible,
.home-dashboard-actions .home-pass-btn:active {
  background: rgba(242, 247, 255, 0.95) !important;
  border-color: rgba(242, 247, 255, 0.98) !important;
  color: #17314f !important;
}

.home-dashboard-actions .home-pass-btn {
  letter-spacing: 0.06em;
}

.home-dashboard-actions .home-pass-btn:disabled {
  background: rgba(228, 236, 247, 0.12) !important;
  border-color: rgba(228, 236, 247, 0.34) !important;
  color: rgba(244, 248, 255, 0.62) !important;
  cursor: not-allowed;
  opacity: 0.82;
}

.home-collection-preview-card {
  --home-preview-scale: 0.69;
  --home-preview-base-width: 320px;
  --home-preview-base-height: 540px;
  position: relative;
  width: calc((var(--home-preview-base-width) * var(--home-preview-scale)) + 6px);
  height: calc(var(--home-preview-base-height) * var(--home-preview-scale));
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  overflow: visible;
}

.home-collection-preview-card .deck-preview-card {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--home-preview-base-width);
  transform: scale(var(--home-preview-scale));
  transform-origin: top left;
  border-radius: 20px;
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.home-collection-preview-card .deck-preview-art-wrap {
  aspect-ratio: 1 / 1;
}

.home-collection-preview-card .deck-preview-body {
  padding: 12px 14px 34px;
  min-height: 132px;
}

.home-collection-preview-card .deck-preview-type {
  font-size: 11px;
}

.home-collection-preview-card .deck-preview-name {
  font-size: 24px;
  margin: 4px 0 6px;
  line-height: 1;
}

.home-collection-preview-card .deck-preview-stats {
  font-size: 12px;
}

.home-collection-preview-card .deck-preview-rules {
  margin-top: 6px;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-collection-preview-card .deck-preview-finish-shiny {
  isolation: isolate;
  background:
    radial-gradient(circle at 16% 10%, rgba(112, 229, 255, 0.24), transparent 36%),
    radial-gradient(circle at 84% 88%, rgba(255, 206, 96, 0.2), transparent 38%),
    linear-gradient(150deg, rgba(16, 56, 88, 0.97) 0%, rgba(18, 32, 57, 0.98) 36%, rgba(58, 40, 16, 0.95) 68%, rgba(13, 86, 108, 0.96) 100%),
    linear-gradient(100deg, rgba(157, 233, 255, 0.86) 0%, rgba(255, 217, 132, 0.92) 35%, rgba(132, 221, 255, 0.86) 70%, rgba(255, 221, 146, 0.9) 100%);
}

.home-collection-preview-card .deck-preview-finish-shiny .deck-preview-art-wrap {
  background:
    radial-gradient(circle at 22% 14%, rgba(217, 252, 255, 0.26), transparent 40%),
    radial-gradient(circle at 82% 84%, rgba(255, 231, 156, 0.2), transparent 42%),
    linear-gradient(162deg, rgba(50, 184, 226, 0.48) 0%, rgba(16, 34, 58, 0.97) 36%, rgba(156, 111, 34, 0.44) 72%, rgba(33, 152, 188, 0.48) 100%),
    linear-gradient(102deg, rgba(216, 252, 255, 0.26) 0%, rgba(0, 0, 0, 0) 30%, rgba(255, 236, 168, 0.2) 74%, rgba(0, 0, 0, 0) 100%);
}

.home-collection-preview-card .deck-preview-finish-shiny .deck-preview-body {
  background:
    radial-gradient(circle at 12% 4%, rgba(172, 240, 255, 0.16), transparent 30%),
    linear-gradient(152deg, rgba(17, 63, 92, 0.93) 0%, rgba(14, 30, 48, 0.96) 42%, rgba(68, 48, 18, 0.92) 74%, rgba(14, 80, 106, 0.94) 100%),
    linear-gradient(112deg, rgba(214, 251, 255, 0.14) 0%, rgba(0, 0, 0, 0) 34%, rgba(255, 228, 145, 0.11) 69%, rgba(0, 0, 0, 0) 100%);
}

.home-collection-preview-card .deck-preview-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 2px;
}

.home-collection-preview-card .deck-preview-rarity-badge,
.home-collection-preview-card .deck-preview-unique-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-collection-preview-card .deck-preview-rarity-badge {
  border: 1px solid rgba(194, 142, 70, 0.42);
  background: rgba(26, 45, 79, 0.78);
  color: #fff2df;
}

.home-collection-preview-card .deck-preview-unique-badge {
  border: 1px solid rgba(94, 184, 219, 0.38);
  background: rgba(16, 71, 90, 0.36);
  color: #eafff8;
}

.home-collection-preview-card .deck-preview-rarity-common {
  border-color: rgba(134, 214, 164, 0.42);
  background: rgba(49, 88, 66, 0.74);
  color: #e8f9ec;
}

.home-collection-preview-card .deck-preview-rarity-rare {
  border-color: rgba(91, 149, 226, 0.56);
  background: rgba(24, 50, 88, 0.8);
  color: #e1eeff;
}

.home-collection-preview-card .deck-preview-rarity-epic {
  border-color: rgba(193, 112, 255, 0.46);
  background: rgba(83, 37, 119, 0.78);
  color: #f7e5ff;
}

.home-collection-preview-card .deck-preview-rarity-mythic {
  border-color: rgba(255, 211, 117, 0.54);
  background: rgba(113, 83, 22, 0.8);
  color: #fff7da;
}

.home-collection-preview-card .deck-preview-shiny-icon {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 63px;
  height: 63px;
  object-fit: contain;
  pointer-events: none;
  filter:
    drop-shadow(0 2px 4px rgba(4, 8, 14, 0.52))
    drop-shadow(0 0 10px rgba(112, 229, 255, 0.34))
    drop-shadow(0 0 14px rgba(255, 212, 118, 0.24));
}

.home-collection-preview-card .deck-preview-stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  align-items: center;
}

.home-collection-preview-card .deck-preview-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(180, 205, 244, 0.2);
  background: rgba(6, 13, 24, 0.78);
  color: #f3f8ff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.home-collection-preview-card .deck-preview-stat-pill-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.home-collection-preview-card .deck-preview-stat-pill-coin {
  gap: 4px;
  justify-content: center;
  padding: 4px 12px 4px 6px;
  background: rgba(6, 13, 24, 0.9);
  border: 1px solid rgba(180, 205, 244, 0.24);
  box-shadow: 0 8px 18px rgba(4, 10, 22, 0.28);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.02em;
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
}

.home-collection-preview-card .deck-preview-stat-pill-coin .deck-preview-stat-pill-icon {
  width: 43px;
  height: 43px;
  transform: translateY(1px);
}

.home-collection-preview-card .deck-preview-stat-pill-coin .deck-preview-stat-pill-value {
  transform: translateY(-1px);
}

.home-collection-preview-card .deck-preview-stat-pill-attack,
.home-collection-preview-card .deck-preview-stat-pill-health {
  position: relative;
  min-width: 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.home-collection-preview-card .deck-preview-stat-pill-attack .deck-preview-stat-pill-icon,
.home-collection-preview-card .deck-preview-stat-pill-health .deck-preview-stat-pill-icon {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

.home-collection-preview-card .deck-preview-stat-pill-attack .deck-preview-stat-pill-icon {
  transform: scale(0.9);
}

.home-collection-preview-card .deck-preview-stat-pill-attack .deck-preview-stat-pill-value,
.home-collection-preview-card .deck-preview-stat-pill-health .deck-preview-stat-pill-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f4f8ff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 0.7px rgba(0, 0, 0, 0.9);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.55),
    0 1px 1px rgba(0, 0, 0, 0.45);
}

.home-collection-preview-card .deck-preview-stat-pill-archetype {
  padding: 7px 14px;
  border-color: var(--archetype-border, rgba(230, 208, 166, 0.3));
  background: var(--archetype-bg, linear-gradient(180deg, rgba(18, 28, 47, 0.96) 0%, rgba(10, 16, 28, 0.98) 100%));
  color: var(--archetype-fg, #f7dfb1);
  box-shadow: 0 8px 18px rgba(4, 10, 22, 0.24);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-collection-preview-card .deck-preview-archetype-luminar {
  --archetype-border: rgba(255, 212, 122, 0.54);
  --archetype-bg: linear-gradient(180deg, rgba(112, 78, 22, 0.9) 0%, rgba(62, 42, 12, 0.96) 100%);
  --archetype-fg: #fff3dd;
}

.home-collection-preview-card .deck-preview-archetype-empyrean {
  --archetype-border: rgba(255, 166, 121, 0.54);
  --archetype-bg: linear-gradient(180deg, rgba(112, 45, 24, 0.9) 0%, rgba(62, 24, 12, 0.96) 100%);
  --archetype-fg: #ffebdf;
}

.home-collection-preview-card .deck-preview-archetype-abyssal {
  --archetype-border: rgba(111, 164, 255, 0.54);
  --archetype-bg: linear-gradient(180deg, rgba(19, 42, 88, 0.9) 0%, rgba(10, 23, 52, 0.96) 100%);
  --archetype-fg: #e3efff;
}

.home-collection-preview-card .deck-preview-archetype-netherborn {
  --archetype-border: rgba(165, 120, 255, 0.54);
  --archetype-bg: linear-gradient(180deg, rgba(56, 25, 98, 0.9) 0%, rgba(31, 14, 55, 0.96) 100%);
  --archetype-fg: #f1e5ff;
}

.home-collection-preview-card .deck-preview-archetype-sentinel {
  --archetype-border: rgba(136, 223, 160, 0.52);
  --archetype-bg: linear-gradient(180deg, rgba(24, 86, 56, 0.9) 0%, rgba(13, 48, 31, 0.96) 100%);
  --archetype-fg: #e6faec;
}

.home-collection-preview-card .deck-preview-archetype-mystic {
  --archetype-border: rgba(121, 228, 255, 0.52);
  --archetype-bg: linear-gradient(180deg, rgba(15, 82, 102, 0.9) 0%, rgba(9, 46, 58, 0.96) 100%);
  --archetype-fg: #dcf8ff;
}

.home-collection-preview-card .deck-preview-archetype-spirit {
  --archetype-border: rgba(210, 152, 255, 0.54);
  --archetype-bg: linear-gradient(180deg, rgba(70, 34, 108, 0.9) 0%, rgba(38, 18, 60, 0.96) 100%);
  --archetype-fg: #f6e9ff;
}

.home-collection-preview-card .deck-preview-archetype-primal {
  --archetype-border: rgba(226, 145, 82, 0.56);
  --archetype-bg: linear-gradient(180deg, rgba(108, 58, 22, 0.92) 0%, rgba(61, 31, 11, 0.98) 100%);
  --archetype-fg: #ffeddf;
}

.home-action-collection-col .home-collection-btn {
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.home-action-collection-col:has(.home-collection-preview-card:hover) .home-collection-btn,
.home-action-collection-col:has(.home-collection-preview-card:focus-visible) .home-collection-btn,
.home-action-collection-col:has(.home-collection-btn:hover) .home-collection-btn,
.home-action-collection-col:has(.home-collection-btn:focus-visible) .home-collection-btn {
  background: rgba(61, 134, 205, 1) !important;
  border-color: rgba(117, 201, 255, 0.8) !important;
  color: #d8eeff !important;
  transform: translateY(-1px);
}

.home-action-collection-col:has(.home-collection-preview-card:hover) .home-collection-preview-card .deck-preview-card,
.home-action-collection-col:has(.home-collection-preview-card:focus-visible) .home-collection-preview-card .deck-preview-card,
.home-action-collection-col:has(.home-collection-btn:hover) .home-collection-preview-card .deck-preview-card,
.home-action-collection-col:has(.home-collection-btn:focus-visible) .home-collection-preview-card .deck-preview-card {
  transform: translateY(-8px) scale(var(--home-preview-scale));
  filter: drop-shadow(0 16px 26px rgba(7, 12, 22, 0.38));
}

.home-action-collection-col:has(.home-collection-btn:active) .home-collection-preview-card .deck-preview-card {
  transform: translateY(-5px) scale(var(--home-preview-scale));
  filter: drop-shadow(0 14px 22px rgba(7, 12, 22, 0.34));
}

body.spa-nav-loading .home-collection-preview-card .deck-preview-card {
  transform: scale(var(--home-preview-scale)) !important;
  filter: none !important;
}

.home-pass-preview-card-lower-left {
  justify-self: center;
  margin-top: 6px;
}

.home-dashboard-side {
  justify-self: end;
  width: min(100%, 340px);
}

.home-cta-row-dashboard {
  margin-top: 0;
  justify-content: center;
}

.home-dashboard-primary .home-pass-preview-card,
.home-dashboard-side .home-metrics-card {
  max-width: none;
}

.home-dashboard-side .home-metrics-card {
  margin-top: 0;
}

.home-dashboard-side .home-metrics {
  grid-template-columns: 1fr;
  gap: 10px;
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
}

.home-metrics-card {
  margin-top: 14px;
  max-width: 520px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(195, 145, 75, 0.28);
  background:
    radial-gradient(circle at 18% 8%, rgba(190, 85, 49, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(38, 25, 24, 0.56) 0%, rgba(22, 14, 14, 0.72) 100%);
  box-shadow: 0 16px 28px rgba(12, 10, 9, 0.2);
}

.home-metrics article {
  display: grid;
  gap: 3px;
  padding: 2px 3px;
}

.home-metric-value {
  margin: 0;
  color: #d1b285;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.home-metric-stat {
  margin: 0;
  color: #fff1dc;
  font-size: 18px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.home-metric-label {
  margin: 0;
  color: #bc9a6d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-pass-preview-card {
  margin-top: 14px;
  max-width: 560px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(123, 190, 245, 0.28);
  background:
    radial-gradient(circle at 14% 10%, rgba(67, 128, 191, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(19, 27, 41, 0.76) 0%, rgba(17, 22, 32, 0.84) 100%);
  box-shadow: 0 16px 28px rgba(8, 12, 20, 0.26);
}

.home-pass-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-pass-claim-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 194, 113, 0.5);
  background: rgba(128, 83, 34, 0.4);
  color: #ffe6be;
  border-radius: 0;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-pass-claim-pill-empty {
  border-color: rgba(132, 183, 233, 0.42);
  background: rgba(44, 74, 106, 0.34);
  color: #cde6ff;
}

.home-pass-tier {
  margin: 6px 0 0;
  color: #f2f8ff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.home-pass-copy {
  margin: 4px 0 0;
  color: #b7cde9;
  font-size: 12px;
  font-weight: 700;
}

.home-pass-quest-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.home-pass-quest {
  border: 1px solid rgba(110, 178, 238, 0.24);
  background: rgba(34, 52, 74, 0.36);
  padding: 8px 9px;
  border-radius: 0;
}

.home-pass-quest.is-ready {
  border-color: rgba(255, 199, 121, 0.5);
  background: rgba(82, 56, 28, 0.34);
}

.home-pass-quest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-pass-quest-head p {
  margin: 0;
  color: #e8f4ff;
  font-size: 12px;
  font-weight: 700;
}

.home-pass-quest-head span {
  color: #b6d8fb;
  font-size: 11px;
  font-weight: 800;
}

.home-pass-quest-progress {
  margin-top: 6px;
  width: 100%;
  height: 7px;
  border-radius: 0;
  background: rgba(21, 33, 49, 0.8);
  border: 1px solid rgba(122, 176, 228, 0.28);
  overflow: hidden;
}

.home-pass-quest-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(94, 181, 248, 0.98) 0%, rgba(79, 145, 228, 0.98) 100%);
}

.home-pass-quest.is-ready .home-pass-quest-progress span {
  background: linear-gradient(90deg, rgba(255, 194, 108, 0.98) 0%, rgba(244, 151, 66, 0.98) 100%);
}

.home-pass-empty {
  margin: 0;
  color: #b9cee6;
  font-size: 12px;
}

@media (max-width: 780px) {
  .home-dashboard-shell {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 100%;
  }

  .home-dashboard-side {
    justify-self: stretch;
    width: 100%;
  }

  .home-dashboard-side .home-metrics {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 640px) {
  .home-metrics {
    grid-template-columns: 1fr;
  }
}

.home-live-panel {
  border-radius: var(--radius);
  border: 1px solid rgba(236, 166, 75, 0.54);
  background: linear-gradient(160deg, rgba(41, 25, 15, 0.78) 0%, rgba(26, 32, 48, 0.76) 100%);
  padding: 14px;
  backdrop-filter: blur(7px);
}

.home-panel-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(161, 94, 33, 0.62);
}

.home-panel-head p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffe5bf;
  text-transform: uppercase;
}

.home-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4dff81;
  box-shadow: 0 0 0 0 rgba(77, 255, 129, 0.72);
  animation: livePulse 2s ease-in-out infinite;
}

.home-live-panel h2 {
  margin: 10px 0 6px;
  color: #fff1dc;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 24px;
}


.home-panel-copy {
  margin: 0 0 8px;
  color: #e9c695;
  font-size: 14px;
}

.home-panel-media {
  position: relative;
  margin: 10px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(234, 163, 73, 0.34);
  background: #2a1e18;
  box-shadow: 0 14px 24px rgba(8, 7, 6, 0.34);
}

.home-panel-media::before,
.home-panel-media::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.home-panel-media::before {
  inset: -35%;
  background:
    radial-gradient(circle, rgba(241, 186, 102, 0.24) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(108, 189, 230, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(215, 150, 67, 0.16) 0 2.5px, transparent 3.5px);
  background-size: 145px 145px, 95px 95px, 120px 120px;
  background-position: 0 0, 30px 40px, 60px 10px;
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: heroArcaneDrift 16s linear infinite;
}

.home-panel-media::after {
  inset: 0;
  background: linear-gradient(110deg, transparent 15%, rgba(242, 203, 147, 0.28) 48%, transparent 85%);
  transform: translateX(-140%);
  animation: heroShimmer 5s ease-in-out infinite;
}

.home-panel-media img {
  display: block;
  width: 100%;
  height: auto;
}

.home-panel-placeholder {
  width: 100%;
  height: 220px;
  background: #2a2019;
}

.home-live-panel .subtle-link {
  color: #ffc46a;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.home-feature-card {
  border-radius: var(--radius);
  border: 1px solid rgba(233, 164, 72, 0.62);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 180, 65, 0.26), transparent 36%),
    radial-gradient(circle at 82% 86%, rgba(84, 193, 255, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(20, 22, 38, 0.94) 0%, rgba(25, 48, 78, 0.92) 46%, rgba(72, 36, 14, 0.92) 100%);
  box-shadow: 0 14px 24px rgba(12, 10, 9, 0.34);
  padding: 18px;
}

.home-feature-card h3 {
  margin: 4px 0 8px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  color: #f5dfbd;
  font-size: 22px;
}

.home-feature-card p {
  margin: 0;
  color: #c7ab80;
}

.home-feature-index {
  margin: 0;
  color: #ffc46a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-updates {
  margin-bottom: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 164, 72, 0.62);
  background: linear-gradient(180deg, rgba(29, 22, 20, 0.92) 0%, rgba(17, 16, 24, 0.92) 100%);
  box-shadow: 0 14px 26px rgba(12, 10, 9, 0.35);
  transition: opacity 380ms cubic-bezier(0.22, 0.78, 0.22, 1), transform 420ms cubic-bezier(0.22, 0.78, 0.22, 1);
}

.home-updates.home-updates-secondary {
  max-width: 820px;
  opacity: 0.9;
}

.home-updates:hover {
  transform: none !important;
  box-shadow: none !important;
}

.home-updates .update-item {
  border-color: rgba(232, 164, 72, 0.52);
  background: linear-gradient(180deg, rgba(45, 34, 28, 0.94) 0%, rgba(34, 27, 23, 0.94) 100%);
}

.home-updates .update-item,
.home-updates .update-item:hover,
.home-updates .update-item:focus-visible {
  transform: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  background: transparent !important;
}

.home-updates .card-head h2 {
  color: #f6e3c4;
}

.home-updates .update-item h3 a {
  color: #fae9cf;
}

.home-updates .update-item h3 {
  color: #fae9cf;
}

.home-updates .update-item p {
  color: #dfc39b;
}

.home-updates .update-date {
  color: #ffb861;
}

.home-updates .tag {
  border-radius: 0;
}

.home-updates .tag-date {
  border: 1px solid rgba(153, 214, 255, 0.58);
  background: linear-gradient(180deg, rgba(73, 152, 220, 0.95) 0%, rgba(37, 96, 152, 0.98) 100%);
  color: #eef8ff;
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.2;
}

.home-updates .update-item-link {
  cursor: pointer;
}

.home-updates .update-item-link:focus-visible {
  outline: 0;
}

.updates-shell {
  border-radius: var(--radius);
  border: 1px solid rgba(232, 164, 72, 0.58);
  background: linear-gradient(180deg, rgba(30, 23, 20, 0.9) 0%, rgba(22, 17, 14, 0.9) 100%);
  box-shadow: 0 14px 26px rgba(12, 10, 9, 0.35);
}

.updates-shell:hover {
  transform: none;
  box-shadow: 0 14px 26px rgba(12, 10, 9, 0.35);
}

.updates-shell .card-head h2 {
  color: #f6e3c4;
}

.updates-shell .subtle-link {
  color: #8ecbf3;
}

.updates-shell .subtle-link:hover {
  color: #cff0ff;
}

.updates-shell .update-item {
  border-color: rgba(232, 164, 72, 0.56);
  background: linear-gradient(180deg, rgba(46, 35, 29, 0.92) 0%, rgba(36, 28, 24, 0.92) 100%);
}

.updates-shell .update-item h3 a {
  color: #fae9cf;
}

.updates-shell .update-item h3 {
  color: #fae9cf;
}

.updates-shell .update-item p {
  color: #d2c0e6;
}

.updates-shell .update-date {
  color: #ffb861;
}

.updates-shell .update-item-link {
  cursor: pointer;
}

.updates-shell .update-item-link:focus-visible {
  outline: 2px solid #d6af77;
  outline-offset: 2px;
}

.update-detail-shell p {
  color: #b8cdec;
}

.update-detail-shell p strong {
  color: #f6e3c4;
}

.home-update-hover-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: var(--app-shell-overlay-z);
  width: min(320px, calc(100vw - 24px));
  pointer-events: none;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(232, 164, 72, 0.34);
  background: linear-gradient(160deg, rgba(24, 29, 42, 0.96) 0%, rgba(20, 24, 35, 0.98) 100%);
  box-shadow: 0 16px 32px rgba(8, 12, 18, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.home-update-hover-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.home-update-hover-preview-date {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffba69;
}

.home-update-hover-preview-title {
  margin: 6px 0 0;
  font-size: 17px;
  line-height: 1.24;
  color: #f3e7d5;
}

.home-update-hover-preview-summary {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.42;
  color: #cfdcf1;
}

.home-update-hover-preview-tags {
  margin-top: 8px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.home-update-hover-preview-tags .tag {
  padding: 2px 7px;
  font-size: 10px;
}

.home-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.home-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: var(--landing-bg-image);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(24px) saturate(1.04);
  transform: scale(1.03);
  transform-origin: center top;
  opacity: 0.55;
  transition: filter 220ms ease, transform 220ms ease, opacity 220ms ease;
}

body.landing-page::before {
  filter: blur(8px);
  transform: none;
  opacity: 1;
}

body.landing-page.landing-page-auth::before {
  filter: blur(30px) saturate(1.04);
  transform: scale(1.03);
  transform-origin: center top;
}

body.landing-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 10, 16, 0.48) 0%, rgba(7, 10, 16, 0.66) 100%),
    radial-gradient(960px 460px at 50% 14%, rgba(14, 24, 36, 0.3), transparent 66%);
  transition: background 220ms ease;
}

body.landing-page .container {
  position: relative;
  z-index: 1;
}

body.landing-page .container {
  flex: 1 0 auto;
}

@keyframes homeOrbitA {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(12px, 8px) rotate(6deg);
  }
}

@keyframes homeOrbitB {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-10px, -6px) rotate(-6deg);
  }
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(77, 255, 129, 0.72);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(77, 255, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(77, 255, 129, 0);
  }
}

@keyframes heroArcaneDrift {
  0% {
    transform: translate3d(-3%, -2%, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(4%, 2%, 0) rotate(2deg);
  }
  100% {
    transform: translate3d(-3%, -2%, 0) rotate(0deg);
  }
}

@keyframes heroShimmer {
  0% {
    transform: translateX(-140%);
    opacity: 0;
  }
  18% {
    opacity: 0.65;
  }
  32% {
    transform: translateX(140%);
    opacity: 0;
  }
  100% {
    transform: translateX(140%);
    opacity: 0;
  }
}

@keyframes homeInlineAuthSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

  .side-rail-play-img {
    animation: none;
    transition: none;
  }

  .home-orbit-a,
  .home-orbit-b,
  .home-live-dot,
  .home-panel-media::before,
  .home-panel-media::after {
    animation: none;
  }

  .home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body.spa-nav-loading main.container {
  opacity: 1;
  filter: none;
}

body.spa-nav-loading .site-footer {
  opacity: 1;
}

.spa-nav-mask {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transition: opacity 80ms linear;
  background:
    radial-gradient(900px 420px at 50% 14%, rgba(14, 24, 36, 0.28), transparent 66%),
    linear-gradient(180deg, rgba(7, 10, 16, 0.16) 0%, rgba(7, 10, 16, 0.3) 100%);
}

.spa-nav-mask-glow {
  position: absolute;
  left: 50%;
  top: 20%;
  width: min(420px, 72vw);
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(233, 188, 116, 0.9) 50%, transparent 100%);
  opacity: 0;
}

.spa-nav-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 4px solid rgba(255, 255, 255, 0.26);
  border-top-color: rgba(255, 220, 148, 0.98);
  opacity: 0;
  animation: none;
}

body.spa-nav-loading .spa-nav-mask {
  opacity: 1;
  pointer-events: auto;
}

body.spa-nav-loading.spa-nav-structure-ready .spa-nav-mask {
  opacity: 0;
  pointer-events: none;
}

body.spa-nav-loading .spa-nav-mask-glow {
  opacity: 0;
  animation: none;
}

body.spa-nav-loading .spa-nav-spinner {
  opacity: 0.95;
  animation: spaNavSpinner 420ms linear infinite;
}

body.spa-nav-loading.spa-nav-structure-ready .spa-nav-spinner {
  opacity: 0;
  animation: none;
}

@keyframes spaNavSpinner {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes arenaSpaFadeIn {
  from {
    opacity: 0.92;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(arena-main) {
    animation: none;
  }

  ::view-transition-new(arena-main) {
    animation: arenaSpaFadeIn 170ms ease both;
  }
}

/* Global sharp-edge buttons: keep avatars/cards rounded elsewhere. */
button:not(.hand-card):not(.board-card):not(.flow-card),
input[type="button"],
input[type="submit"],
input[type="reset"],
a.btn-link,
.btn-link,
input[type="file"]::file-selector-button {
  border-radius: 0 !important;
}

/* Premium sharp-edge theme overrides for Rankings page */
.leaderboard-shell,
.leaderboard-panel,
.leaderboard-table th,
.leaderboard-table td,
.leaderboard-avatar,
.leaderboard-avatar-fallback {
  border-radius: 0;
}

.leaderboard-shell {
  position: relative;
  margin-bottom: 24px;
  padding: 0;
}

.leaderboard-shell::before,
.leaderboard-panel::before {
  content: none;
}

.leaderboard-shell {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.leaderboard-panel {
  border: 1px solid rgba(120, 158, 222, 0.3);
  background: rgba(14, 22, 36, 0.38);
  box-shadow: none;
  padding: 0 0 14px;
}

.leaderboard-shell:hover,
.leaderboard-panel:hover {
  transform: none;
  box-shadow: none;
}

.leaderboard-columns {
  gap: 26px;
}

.leaderboard-head h2,
.leaderboard-panel h2 {
  color: #f2f7ff;
  letter-spacing: 0.01em;
}

.leaderboard-head h2 {
  font-size: clamp(2rem, 2.9vw, 2.45rem);
}

.leaderboard-panel h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.leaderboard-head {
  padding-bottom: 18px;
}

.leaderboard-copy {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.leaderboard-copy,
.leaderboard-empty,
.leaderboard-table td {
  color: #c5d4ec;
}

.leaderboard-table-wrap {
  padding: 8px 18px 2px;
  overflow-x: visible;
}

.leaderboard-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.leaderboard-table th {
  color: #eaf2ff;
  background: transparent;
  border-bottom-color: rgba(120, 158, 222, 0.34);
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 14px 18px;
}

.leaderboard-head,
.leaderboard-panel-head {
  border-bottom: 1px solid rgba(120, 158, 222, 0.24);
}

.leaderboard-panel-head {
  padding: 2px 18px 16px;
  margin-bottom: 0;
}

.leaderboard-table td {
  padding: 16px 18px;
  font-size: 15px;
  border-bottom-color: rgba(120, 158, 222, 0.34);
}

.leaderboard-table tbody tr:nth-child(even) td {
  background: transparent;
}

.leaderboard-table tbody tr:nth-child(odd) td {
  background: transparent;
}

.leaderboard-table tbody tr:hover td {
  background: rgba(35, 52, 82, 0.28);
}

.leaderboard-table th:first-child,
.leaderboard-table td:first-child {
  width: 56px;
  text-align: center;
  font-weight: 900;
}

.leaderboard-table th:last-child,
.leaderboard-table td:last-child {
  width: 104px;
  text-align: right;
}

.leaderboard-table td:first-child {
  color: #dce9ff;
}

.leaderboard-table tbody tr:nth-child(1) td:first-child {
  color: #f2f7ff;
}

.leaderboard-table tbody tr:nth-child(2) td:first-child {
  color: #dce9ff;
}

.leaderboard-table tbody tr:nth-child(3) td:first-child {
  color: #c8defd;
}

.leaderboard-user {
  min-width: 0;
  gap: 12px;
  font-weight: 700;
  color: #e7f1ff;
}

.leaderboard-user > span:last-child {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-avatar {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(177, 206, 252, 0.78);
  box-shadow: none;
}

.leaderboard-avatar-fallback {
  background: linear-gradient(180deg, rgba(56, 85, 130, 0.82), rgba(30, 45, 73, 0.9));
  color: #eaf3ff;
  font-size: 13px;
  font-weight: 800;
}

.leaderboard-empty {
  padding: 20px 18px 8px;
  font-size: 14px;
}

.leaderboard-shell .auth-kicker {
  color: #9bb8dd;
}

.leaderboard-shell .subtle-link,
.leaderboard-panel .subtle-link {
  color: #c5d4ec;
}

.leaderboard-shell .subtle-link:hover,
.leaderboard-panel .subtle-link:hover {
  color: #f2f7ff;
}

@media (max-width: 900px) {
  .leaderboard-columns {
    gap: 18px;
  }

  .leaderboard-table-wrap {
    padding-inline: 10px;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding-inline: 12px;
  }

  .leaderboard-table th:last-child,
  .leaderboard-table td:last-child {
    width: 90px;
  }

  .leaderboard-avatar {
    width: 52px;
    height: 52px;
  }
}

/* Global orange button palette (shadowless) */
.btn-link,
.primary-btn,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  border-color: rgba(255, 198, 96, 0.72) !important;
  background: linear-gradient(180deg, rgba(240, 177, 79, 0.96) 0%, rgba(217, 125, 36, 0.98) 100%) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.btn-link:hover,
.primary-btn:hover:not(:disabled),
input[type="submit"]:hover:not(:disabled),
input[type="button"]:hover:not(:disabled),
input[type="reset"]:hover:not(:disabled) {
  border-color: rgba(255, 214, 135, 0.9) !important;
  background: linear-gradient(180deg, rgba(245, 191, 97, 0.98) 0%, rgba(224, 138, 48, 0.98) 100%) !important;
  box-shadow: none !important;
}

