:root {
  --bg: #06100d;
  --panel: #0c1915;
  --panel2: #11221c;
  --line: #24372f;
  --muted: #9cab9f;
  --text: #f4f0e7;
  --accent: #d8b66a;
  --accent2: #8abda5;
  --danger: #e47f73;
  --gold: #d8b66a;
  --ivory: #f4f0e7;
  --felt: #0d2b21;
  color-scheme: dark;
}

html {
  background: var(--bg);
}
body {
  background:
    radial-gradient(ellipse at 50% -15%, #17372b 0, transparent 47%),
    linear-gradient(180deg, #081712 0, #06100d 58%, #050c0a 100%);
}

body,
body * {
  font-family:
    "DM Sans",
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif !important;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  max-width: 600px;
  padding-inline: 22px;
}
.focus-home {
  padding-top: 0;
}
.topbar {
  min-height: 68px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
}
.brand {
  color: var(--ivory);
  gap: 10px;
  letter-spacing: -0.55px;
  text-decoration: none;
}
.brand-mark {
  width: 27px;
  height: 27px;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  filter: invert(92%) sepia(11%) saturate(226%) hue-rotate(351deg)
    brightness(107%);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.signin-trigger,
.admin-chip {
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid #65766d;
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  padding: 8px 3px;
  font: 700 11px "Manrope";
  letter-spacing: 0.45px;
  text-decoration: none;
  text-transform: uppercase;
}
.admin-chip {
  color: var(--accent);
  border-color: #806f43;
}
.home-profile {
  border-radius: 50%;
  background: #13231d;
  border-color: #344b40;
}

.focus-hero {
  padding: 54px 0 30px;
}
.focus-hero h1 {
  max-width: 520px;
  font-size: clamp(46px, 13vw, 68px);
  letter-spacing: -4px;
}
.focus-hero p {
  max-width: 440px;
  color: #afbbb2;
}
.eyebrow {
  color: var(--accent);
}

.next-match {
  border: 1px solid #31483d;
  background: linear-gradient(145deg, #13271f, #0b1713);
  box-shadow: 0 24px 70px #02070580;
}
.focus-play,
.play {
  background: var(--ivory);
  color: #0a1712;
  box-shadow: 0 14px 35px #0007;
}
.focus-play:hover,
.play:hover {
  filter: none;
  transform: translateY(-2px);
  background: #fffdf7;
}
.casual-action {
  background: transparent;
  border-color: #3a4f45;
}

.mode-preview {
  margin: 32px 0 12px;
}
.mode-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 13px;
}
.mode-preview-head h2 {
  margin: 0;
  font: 700 18px "Manrope";
}
.mode-preview-head button {
  border: 0;
  background: none;
  color: var(--accent2);
  font: 700 11px "Manrope";
  cursor: pointer;
}
.mode-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mode-teaser {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  border: 1px solid #294037;
  border-radius: 18px;
  padding: 15px;
  background: #0b1914;
  color: var(--text);
}
.mode-teaser:hover {
  transform: translateY(-2px);
  border-color: #4f695d;
}
.mode-teaser b {
  font: 700 14px "Manrope";
}
.mode-teaser small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}
.mode-teaser i {
  color: var(--accent);
  font: 800 9px "Manrope";
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-style: normal;
}
.mode-teaser.blitz {
  background: linear-gradient(145deg, #241812, #121713);
}
.mode-teaser.tournament {
  background: linear-gradient(145deg, #171a28, #0c1513);
}

.mode-catalog {
  max-width: 610px;
}
.catalog-count {
  color: #8c9d94;
  font: 800 9px "Manrope";
  letter-spacing: 1.1px;
}
.mode-page-intro {
  max-width: 500px;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.mode-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  perspective: 900px;
}
.mode-card-new {
  --mode-tone: #d9c17e;
  --mode-deep: #243227;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 46px;
  gap: 18px;
  align-items: center;
  min-height: 142px;
  width: 100%;
  overflow: hidden;
  padding: 20px 18px;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--mode-tone) 34%, #243b31);
  border-radius: 27px;
  background:
    radial-gradient(
      circle at 6% 10%,
      color-mix(in srgb, var(--mode-tone) 14%, transparent),
      transparent 37%
    ),
    linear-gradient(
      118deg,
      color-mix(in srgb, var(--mode-deep) 66%, #08120e),
      #08140f 68%
    );
  color: var(--text);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transform-origin: 50% 80%;
  transition:
    transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.28s ease,
    box-shadow 0.38s ease;
}
.mode-card-new:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.24;
  background: repeating-linear-gradient(
    118deg,
    transparent 0 37px,
    rgba(255, 255, 255, 0.026) 38px 39px
  );
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}
.mode-card-new:after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  right: -93px;
  top: -74px;
  border: 1px solid color-mix(in srgb, var(--mode-tone) 24%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px color-mix(in srgb, var(--mode-tone) 3%, transparent),
    0 0 0 54px color-mix(in srgb, var(--mode-tone) 2%, transparent);
}
.mode-card-new:hover {
  transform: translateY(-4px) rotateX(1.2deg);
  border-color: color-mix(in srgb, var(--mode-tone) 72%, #55675f);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.3),
    0 0 32px color-mix(in srgb, var(--mode-tone) 7%, transparent);
}
.mode-card-new:active {
  transform: translateY(-1px) scale(0.992);
  transition-duration: 0.08s;
}
.mode-card-new:focus-visible {
  outline: 2px solid var(--mode-tone);
  outline-offset: 3px;
}
.mode-art {
  position: relative;
  width: 74px;
  height: 88px;
  display: grid;
  place-items: center;
  color: var(--mode-tone);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--mode-tone) 17%, #132019),
    rgba(5, 14, 10, 0.42)
  );
  border: 1px solid color-mix(in srgb, var(--mode-tone) 28%, transparent);
  clip-path: polygon(18% 0, 82% 0, 100% 18%, 100% 76%, 50% 100%, 0 76%, 0 18%);
  transition:
    transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.3s ease;
}
.mode-art:after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid color-mix(in srgb, var(--mode-tone) 22%, transparent);
  clip-path: inherit;
}
.mode-art > i {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 12px;
  color: color-mix(in srgb, var(--mode-tone) 75%, #fff);
  font: 800 7px "Manrope";
  font-style: normal;
  letter-spacing: 0.7px;
  opacity: 0.7;
}
.mode-art .ui-icon {
  position: relative;
  z-index: 2;
  width: 39px;
  height: 39px;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.28));
}
.mode-card-new:hover .mode-art {
  transform: translateY(-2px) rotate(-2deg) scale(1.035);
  filter: brightness(1.08);
}
.mode-copy {
  min-width: 0;
}
.mode-card-new strong,
.mode-card-new small,
.mode-kicker {
  display: block;
}
.mode-kicker {
  margin-bottom: 7px;
  color: var(--mode-tone);
  font: 800 8px "Manrope";
  letter-spacing: 1.05px;
}
.mode-card-new strong {
  font: 750 19px "Manrope";
  letter-spacing: -0.5px;
}
.mode-card-new small {
  max-width: 360px;
  margin-top: 6px;
  color: #9eafa5;
  font-size: 11px;
  line-height: 1.45;
}
.mode-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.mode-specs b {
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--mode-tone) 16%, #32463d);
  border-radius: 999px;
  color: #abb9b1;
  background: rgba(3, 10, 7, 0.2);
  font: 700 8px "Manrope";
  letter-spacing: 0.25px;
}
.mode-card-action {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}
.mode-card-action em {
  padding: 5px 7px;
  border: 1px solid color-mix(in srgb, var(--mode-tone) 34%, transparent);
  border-radius: 999px;
  color: var(--mode-tone);
  font: 800 7px "Manrope";
  letter-spacing: 0.7px;
  font-style: normal;
}
.mode-card-action i {
  color: color-mix(in srgb, var(--mode-tone) 68%, #8a9991);
  font: 300 19px "Manrope";
  font-style: normal;
  transition: transform 0.3s ease;
}
.mode-card-new:hover .mode-card-action i {
  transform: translate(3px, -3px);
}
.mode-ranked {
  --mode-tone: #dfc67f;
  --mode-deep: #253025;
}
.mode-blitz {
  --mode-tone: #f0a95c;
  --mode-deep: #342116;
}
.mode-blitz .mode-art {
  clip-path: polygon(
    27% 0,
    100% 0,
    73% 43%,
    100% 43%,
    25% 100%,
    39% 55%,
    0 55%
  );
}
.mode-casual {
  --mode-tone: #7fd8b0;
  --mode-deep: #193328;
}
.mode-casual .mode-art {
  clip-path: polygon(
    50% 0,
    92% 16%,
    100% 64%,
    72% 100%,
    28% 100%,
    0 64%,
    8% 16%
  );
}
.mode-practice {
  --mode-tone: #9daee8;
  --mode-deep: #20263a;
}
.mode-practice .mode-art {
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.mode-tournament {
  --mode-tone: #d99a78;
  --mode-deep: #39231f;
}
.mode-tournament .mode-art {
  clip-path: polygon(14% 0, 86% 0, 100% 25%, 82% 74%, 50% 100%, 18% 74%, 0 25%);
}
.ui-icon {
  display: block;
  width: 1em;
  height: 1em;
}

.rank-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid #293f35;
  border-radius: 15px;
  background: #07110e;
}
.rank-switch button {
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font: 800 10px "Manrope";
  letter-spacing: 0.7px;
  text-transform: uppercase;
  cursor: pointer;
}
.rank-switch button.active {
  background: #1b3026;
  color: var(--ivory);
  box-shadow: 0 6px 18px #0005;
}
.rank-switch button:disabled {
  opacity: 0.55;
}

.shell.page,
.focus-home,
.queue-shell {
  animation: surface-enter 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes surface-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.nav {
  background: #07110ee8;
  border-top-color: #26382f;
}
.nav button {
  color: #798a80;
  cursor: pointer;
}
.nav .active {
  color: var(--ivory);
}
.nav .active b {
  color: var(--accent);
}
.nav b {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  font-size: 0;
}
.nav b .ui-icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.65;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav button:hover b .ui-icon,
.nav button.active b .ui-icon {
  transform: translateY(-2px) scale(1.05);
}
.focus-play .has-ui-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}
.focus-play .ui-icon {
  width: 22px;
  height: 22px;
}
.next-match-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid #385044;
  clip-path: polygon(16% 0, 84% 0, 100% 18%, 100% 74%, 50% 100%, 0 74%, 0 18%);
  background: linear-gradient(155deg, #193227, #0a1712);
}
.next-match-icon .ui-icon {
  width: 28px;
  height: 28px;
}
.next-match > div:first-of-type {
  flex: 1;
  min-width: 0;
}
.mode-teaser {
  position: relative;
  overflow: hidden;
}
.mode-teaser-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--accent);
  opacity: 0.76;
}
.mode-teaser-icon .ui-icon {
  width: 28px;
  height: 28px;
}
.mode-teaser.blitz .mode-teaser-icon {
  color: #efb260;
}
.mode-teaser.tournament .mode-teaser-icon {
  color: #d99a78;
}
.challenge-icon.has-ui-icon {
  color: #d6c07e;
  font-size: 0;
  border: 1px solid #4d4937;
  background: linear-gradient(145deg, #282619, #111b16);
}
.challenge-icon .ui-icon {
  width: 25px;
  height: 25px;
}
.club-entry > .identity-avatar.club-mark {
  color: #82d3ad;
  font-size: 0;
  border: 1px solid #355346;
  background: linear-gradient(145deg, #173127, #0b1813);
}
.club-entry > .identity-avatar.club-mark .ui-icon {
  width: 23px;
  height: 23px;
}
.queue-spade.has-ui-icon,
.result .spade.has-ui-icon {
  margin-inline: auto;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 0;
}
.queue-spade.has-ui-icon .ui-icon {
  width: 74px;
  height: 74px;
  filter: drop-shadow(0 12px 26px rgba(118, 205, 157, 0.25));
}
.result .spade.has-ui-icon .ui-icon {
  width: 62px;
  height: 62px;
  filter: drop-shadow(0 0 25px #9bff7155);
}
.chat-icon-button {
  position: relative;
  display: grid;
  place-items: center;
}
.chat-icon-button .ui-icon {
  width: 20px;
  height: 20px;
}
.chat-icon-button .unread-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border: 1px solid #102019;
  border-radius: 50%;
  background: #efb260;
}

.list-card,
.form-card,
.profile-stats,
.challenge {
  background: #0b1914;
  border-color: #263b32;
}
.list-card {
  overflow: hidden;
}
.page-head h1,
.legal-page h1 {
  letter-spacing: -2.1px;
}
.live-dot {
  color: var(--accent2);
  border-color: #3c5b4c;
}
.live-dot:before {
  background: var(--accent2);
}
.compact {
  background: var(--ivory);
  color: #0a1712;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  margin-bottom: 20px;
}
.achievement-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #293f35;
  border-radius: 20px;
  background: #0b1914;
}
.achievement-card strong {
  display: block;
  font: 700 14px "Manrope";
}
.achievement-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}
.achievement-badge {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #f6e8c2;
  isolation: isolate;
}
.achievement-badge:before,
.achievement-badge:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.achievement-badge i {
  font: 800 22px "Manrope";
  font-style: normal;
}
.achievement-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.24));
}
.achievement-badge.badge-asset:before,
.achievement-badge.badge-asset:after {
  display: none;
}
.achievement-badge.badge-locked img {
  filter: grayscale(1) saturate(0.3) brightness(0.55);
  opacity: 0.62;
}
.generated-badge-art {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.3));
}
.achievement-badge.badge-locked .generated-badge-art {
  filter: grayscale(1) saturate(0.2) brightness(0.58);
  opacity: 0.58;
}
.achievement-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.achievement-title b {
  color: var(--accent);
  font: 800 11px "Manrope";
}
.achievement-rarity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: #a6c0b4;
  font: 700 9px "Manrope";
}
.achievement-rarity i {
  color: #d7bd77;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.55px;
}
.achievement-progress,
.collection-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #203229;
}
.achievement-progress {
  margin-top: 14px;
}
.achievement-progress i,
.collection-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6caa83, var(--accent));
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.badge-status {
  display: block;
  margin-top: 7px;
  color: #87a094;
  font: 700 9px "Manrope";
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.achievement-section-head {
  align-items: end;
  margin-bottom: 8px;
}
.achievement-section-head div > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.collection-progress {
  margin: 0 0 12px;
}
.badge-first-table:before {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ddc78c, #765d28 65%, #2d2515);
  box-shadow: inset 0 0 0 4px #e3d39a55;
}
.badge-first-table:after {
  inset: 7px;
  border: 1px dashed #fff4bf77;
  border-radius: 50%;
}
.badge-contract-keeper:before {
  clip-path: polygon(50% 0, 91% 18%, 82% 74%, 50% 100%, 18% 74%, 9% 18%);
  background: linear-gradient(145deg, #3f6f5b, #152f26);
  box-shadow: inset 0 0 0 3px #b2d4c355;
}
.badge-contract-keeper:after {
  inset: 9px 13px 15px;
  border: 2px solid #c3e0d0aa;
  border-top: 0;
  transform: rotate(45deg);
}
.badge-nil-specialist {
  transform: rotate(45deg);
}
.badge-nil-specialist:before {
  border-radius: 13px 3px 13px 3px;
  background: linear-gradient(145deg, #242638, #0b0d16);
  border: 1px solid #8b8fb7;
  box-shadow: 0 0 20px #8f8bd42f;
}
.badge-nil-specialist i {
  transform: rotate(-45deg);
  color: #c7c8ee;
}
.badge-winning-streak:before {
  clip-path: polygon(
    52% 0,
    77% 28%,
    71% 47%,
    94% 68%,
    72% 100%,
    27% 96%,
    5% 67%,
    31% 42%,
    29% 18%
  );
  background: linear-gradient(180deg, #d26d43, #602b27);
}
.badge-winning-streak:after {
  inset: 15px 18px 10px;
  clip-path: polygon(50% 0, 92% 67%, 61% 100%, 17% 77%);
  background: #f3bf70;
  opacity: 0.65;
}
.badge-club-founder:before {
  clip-path: polygon(
    50% 0,
    63% 17%,
    84% 14%,
    87% 36%,
    100% 50%,
    84% 64%,
    86% 86%,
    64% 84%,
    50% 100%,
    36% 84%,
    14% 86%,
    16% 64%,
    0 50%,
    16% 36%,
    14% 14%,
    36% 17%
  );
  background: linear-gradient(145deg, #b7a36a, #41371e);
}
.badge-club-founder:after {
  inset: 9px;
  border-radius: 50%;
  background: #10231c;
  border: 2px solid #d7c78c;
}
.badge-rank-crown:before {
  clip-path: polygon(
    5% 24%,
    28% 48%,
    50% 8%,
    72% 48%,
    95% 24%,
    84% 89%,
    16% 89%
  );
  background: linear-gradient(145deg, #dfc982, #665125);
}
.badge-rank-crown:after {
  inset: 36px 12px 8px;
  border-top: 2px solid #fff0ad99;
}
.badge-tournament-ribbon:before {
  clip-path: polygon(
    18% 0,
    82% 0,
    82% 66%,
    68% 100%,
    50% 82%,
    32% 100%,
    18% 66%
  );
  background: linear-gradient(90deg, #6d2831, #b85f54 50%, #6d2831);
}
.badge-tournament-ribbon:after {
  inset: 8px 18px 22px;
  border: 2px solid #f0c99e88;
  border-radius: 50%;
}
.badge-partner-knot:before {
  border-radius: 28px 8px 28px 8px;
  background: linear-gradient(135deg, #315a5b 0 48%, #8f6946 49% 100%);
}
.badge-partner-knot:after {
  inset: 10px;
  border: 3px double #e7ddc0aa;
  border-radius: 50% 12px;
  transform: rotate(-16deg);
}
.badge-season-star:before {
  clip-path: polygon(
    50% 0,
    61% 35%,
    98% 35%,
    68% 56%,
    79% 94%,
    50% 72%,
    21% 94%,
    32% 56%,
    2% 35%,
    39% 35%
  );
  background: linear-gradient(145deg, #a89cd9, #403763);
}
.badge-season-star:after {
  inset: 18px;
  border-radius: 50%;
  background: #e8e0ff55;
}
.badge-master-gem:before {
  clip-path: polygon(50% 0, 90% 24%, 78% 78%, 50% 100%, 22% 78%, 10% 24%);
  background: linear-gradient(135deg, #8fc6bd, #31545b 45%, #131f2a);
}
.badge-master-gem:after {
  inset: 8px 14px 16px;
  clip-path: polygon(50% 0, 100% 34%, 75% 100%, 25% 100%, 0 34%);
  border: 1px solid #daf6eebb;
}
.badge-default:before {
  border-radius: 16px;
  background: linear-gradient(145deg, #465c52, #18231e);
}
.badge-locked {
  filter: grayscale(1);
  opacity: 0.54;
}
.badge-status {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent2);
  font: 800 9px "Manrope";
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.admin-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #766238;
  border-radius: 18px;
  color: var(--ivory);
  background: linear-gradient(135deg, #211d13, #101713);
  text-decoration: none;
  font: 700 13px "Manrope";
}
.admin-entry span {
  color: var(--accent);
}

.auth-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: #010604c9;
  backdrop-filter: blur(12px);
  animation: veil-in 180ms ease both;
}
.auth-panel {
  width: min(460px, 100%);
  border: 1px solid #40564b;
  border-radius: 28px;
  padding: 24px;
  background: #0b1814;
  box-shadow: 0 30px 100px #000c;
  animation: panel-in 340ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
}
.auth-panel header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}
.auth-panel h2 {
  margin: 6px 0 8px;
  font: 800 28px "Manrope";
  letter-spacing: -1.2px;
}
.auth-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.auth-panel form {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}
.auth-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font: 700 10px "Manrope";
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.auth-panel input {
  width: 100%;
  border: 1px solid #34493f;
  border-radius: 14px;
  padding: 13px 14px;
  background: #06100d;
  color: var(--text);
  font: 500 15px "DM Sans";
}
.auth-panel .auth-submit {
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  background: var(--ivory);
  color: #091510;
  font: 800 12px "Manrope";
  cursor: pointer;
}
.auth-panel .auth-link {
  border: 0;
  background: none;
  color: var(--accent2);
  padding: 5px;
  cursor: pointer;
}
.auth-error {
  padding: 11px 13px;
  border: 1px solid #713c37;
  border-radius: 12px;
  background: #2a1412;
  color: #f2b0a8;
  font-size: 12px;
}
.auth-success {
  padding: 11px 13px;
  border: 1px solid #3d664f;
  border-radius: 12px;
  background: #10271b;
  color: #add8bd;
  font-size: 12px;
}

@keyframes veil-in {
  from {
    opacity: 0;
  }
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
}

@media (min-width: 680px) {
  .auth-overlay {
    place-items: center;
  }
  .topbar {
    margin-inline: -14px;
    padding-inline: 14px;
  }
}
@media (max-width: 470px) {
  .mode-preview-grid {
    grid-template-columns: 1fr;
  }
  .mode-teaser {
    min-height: 92px;
  }
  .achievement-grid {
    grid-template-columns: 1fr;
  }
  .admin-chip {
    display: none;
  }
  .auth-overlay {
    padding: 0;
  }
  .auth-panel {
    border-radius: 28px 28px 0 0;
  }
  .mode-card-new {
    grid-template-columns: 66px minmax(0, 1fr) 34px;
    min-height: 132px;
    gap: 13px;
    padding: 17px 14px;
    border-radius: 24px;
  }
  .mode-art {
    width: 64px;
    height: 78px;
  }
  .mode-art .ui-icon {
    width: 34px;
    height: 34px;
  }
  .mode-card-new strong {
    font-size: 17px;
  }
  .mode-card-new small {
    font-size: 10px;
  }
  .mode-card-action em {
    writing-mode: vertical-rl;
    border: 0;
    padding: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Crawlable home content is shown only while the application is loading. */
.seo-home-fallback {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(90px, 14vw, 170px) 24px;
  color: #f3eddf;
}
.seo-home-fallback > p {
  color: #d5bc78;
  font:
    800 10px Manrope,
    system-ui;
  letter-spacing: 1.3px;
}
.seo-home-fallback h1 {
  max-width: 820px;
  margin: 14px 0 22px;
  font:
    800 clamp(44px, 8vw, 80px) / 0.97 Manrope,
    system-ui;
  letter-spacing: -4px;
}
.seo-home-fallback > div {
  max-width: 690px;
  color: #b8c8bf;
  font-size: 19px;
  line-height: 1.6;
}
.seo-home-fallback nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.seo-home-fallback a {
  padding: 12px 16px;
  border: 1px solid #345044;
  border-radius: 999px;
  color: #e3e9e5;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.seo-home-fallback a:first-child {
  border-color: #8ee3ad;
  background: #8ee3ad;
  color: #07130e;
}
@media (max-width: 600px) {
  .seo-home-fallback h1 {
    letter-spacing: -2.7px;
  }
}
