:root {
  --bg: #101214;
  --panel: #181b1e;
  --panel-2: #202429;
  --line: rgba(242, 235, 221, 0.14);
  --line-strong: rgba(242, 235, 221, 0.28);
  --text: #f2ebdd;
  --muted: #a8adb2;
  --gold: #c9a45c;
  --gold-hot: #f5c451;
  --steel: #7c838c;
  --green: #46d88d;
  --blue: #38bdf8;
  --violet: #d16bff;
  --danger: #d76a5f;
  --shadow: rgba(0, 0, 0, 0.38);
  --radius: 12px;
  --radius-sm: 9px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

.account-gate {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 56px);
  overflow: auto;
  place-items: center;
  color: var(--text);
  background: #0a0c0e;
}

.account-gate.is-open {
  display: grid;
}

.account-restore-state {
  position: relative;
  z-index: 2;
  display: none;
  place-items: center;
  gap: 8px;
  color: var(--text);
  text-align: center;
}

.account-gate.is-restoring .account-gate-panel {
  display: none;
}

.account-gate.is-restoring .account-restore-state {
  display: grid;
}

.account-restore-state strong {
  font-size: 36px;
}

.account-restore-state small {
  color: var(--muted);
}

.account-restore-mark {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(242, 235, 221, 0.16);
  border-top-color: var(--gold-hot);
  border-radius: 50%;
  animation: accountRestoreSpin 780ms linear infinite;
}

@keyframes accountRestoreSpin {
  to { transform: rotate(360deg); }
}

.account-gate-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 11, 0.92), rgba(12, 15, 18, 0.55) 55%, rgba(7, 9, 11, 0.90)),
    url("/assets/game/backgrounds/main_menu_light.webp") center / cover no-repeat;
  filter: saturate(0.7) brightness(0.48);
}

.account-gate-panel {
  position: relative;
  display: grid;
  width: min(980px, 100%);
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  overflow: hidden;
  border: 1px solid rgba(233, 203, 132, 0.28);
  border-radius: 8px;
  background: rgba(12, 15, 18, 0.94);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px);
}

.account-gate-brand {
  display: flex;
  min-height: 600px;
  padding: clamp(32px, 5vw, 64px);
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid rgba(233, 203, 132, 0.18);
  background:
    linear-gradient(180deg, rgba(12, 15, 18, 0.08), rgba(12, 15, 18, 0.92)),
    url("/assets/game/backgrounds/main_menu_light.webp") center / cover no-repeat;
}

.account-gate-brand span {
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-gate-brand h1 {
  margin: 8px 0 10px;
  font-size: clamp(54px, 7vw, 92px);
  line-height: 0.92;
}

.account-gate-brand p,
.account-guest-note,
.account-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.account-gate-content {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(28px, 4vw, 52px);
}

.account-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
}

.account-mode-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.account-mode-tabs button.is-active {
  color: #17120a;
  background: linear-gradient(180deg, #f0ca67, #b98325);
}

.account-form {
  display: grid;
  gap: 12px;
}

.account-form[hidden] {
  display: none;
}

.account-form label {
  display: grid;
  gap: 6px;
}

.account-form label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-form label small {
  font-size: 9px;
  font-weight: 600;
  text-transform: none;
}

.account-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  outline: none;
}

.account-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(225, 174, 67, 0.12);
}

.account-consent-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 2px 0;
}

.account-consent-row input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--gold-hot);
}

.account-consent-copy {
  display: grid;
  gap: 2px;
}

.account-consent-copy label {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.account-legal-link {
  justify-self: start;
  border: 0;
  padding: 0;
  color: var(--gold-hot);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(245, 196, 81, 0.45);
  text-underline-offset: 3px;
}

.account-legal-link:hover,
.account-legal-link:focus-visible {
  color: #ffe3a0;
  text-decoration-color: currentColor;
}

.account-form .open-button:disabled {
  cursor: not-allowed;
  filter: saturate(0.35);
  opacity: 0.58;
}

.account-legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5100;
  display: none;
  padding: clamp(12px, 3vw, 32px);
  place-items: center;
  background: rgba(4, 6, 8, 0.86);
  backdrop-filter: blur(14px);
}

.account-legal-overlay.is-open {
  display: grid;
  animation: overlayIn 180ms ease-out both;
}

.account-legal-card {
  display: grid;
  width: min(860px, 100%);
  max-height: calc(100dvh - clamp(24px, 6vw, 64px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(233, 203, 132, 0.32);
  border-radius: 10px;
  color: var(--text);
  background: #15181b;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.68);
}

.account-legal-header,
.account-legal-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  background: #101315;
}

.account-legal-header {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.account-legal-header span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-legal-header h2 {
  margin: 5px 0 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}

.account-legal-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
}

.account-legal-scroll {
  min-height: 0;
  padding: 24px 28px 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.account-legal-scroll:focus {
  outline: none;
}

.account-legal-scroll > p,
.account-legal-scroll section {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.account-legal-scroll > p {
  margin-top: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.account-legal-scroll section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.account-legal-scroll h3 {
  margin: 0 0 8px;
  color: #ead39a;
  font-size: 14px;
}

.account-legal-scroll p,
.account-legal-scroll li {
  color: #c2c6ca;
  font-size: 12px;
  line-height: 1.7;
}

.account-legal-scroll p {
  margin: 8px 0 0;
}

.account-legal-scroll ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.account-legal-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.account-legal-footer > span {
  max-width: 520px;
  margin-right: auto;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.account-legal-footer .open-button {
  min-width: 210px;
  justify-content: center;
}

.account-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.account-separator::before,
.account-separator::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.account-provider-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.account-provider {
  display: grid;
  min-height: 48px;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.account-provider strong {
  grid-row: 1 / -1;
  color: var(--gold-soft);
}

.account-provider span {
  font-size: 12px;
  font-weight: 800;
}

.account-provider small {
  color: var(--muted);
  font-size: 9px;
}

.account-provider:disabled {
  cursor: default;
  opacity: 0.55;
}

.account-guest-button {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--text);
  background: transparent;
  font-weight: 800;
}

.account-guest-button:hover {
  border-color: rgba(229, 196, 119, 0.52);
  background: rgba(255, 255, 255, 0.035);
}

.account-guest-note,
.account-status {
  min-height: 0;
  margin: 0;
}

.account-status.is-error {
  color: #ff928a;
}

.account-status.is-success {
  color: #85d9a0;
}

@media (max-width: 760px) {
  .account-gate {
    padding: 0;
  }

  .account-gate-panel {
    min-height: 100dvh;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
  }

  .account-gate-brand {
    min-height: 200px;
    padding: 28px 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(233, 203, 132, 0.18);
  }

  .account-gate-brand h1 {
    font-size: 54px;
  }

  .account-gate-content {
    padding: 24px 18px 38px;
  }

  .account-legal-overlay {
    padding: 0;
  }

  .account-legal-card {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .account-legal-header,
  .account-legal-footer {
    padding: 18px;
  }

  .account-legal-scroll {
    padding: 20px 18px 28px;
  }

  .account-legal-footer {
    display: grid;
  }

  .account-legal-footer .open-button {
    width: 100%;
  }
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden;
  color: var(--text);
  background: linear-gradient(135deg, #0e1012 0%, #171a1d 48%, #101214 100%);
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: 0;
}

button {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1vw, 16px);
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: clamp(10px, 1.25vw, 24px);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.brand {
  font-size: 40px;
  font-weight: 900;
  line-height: 0.92;
  color: var(--text);
}

.subtitle,
.case-kicker,
.section-kicker,
.featured-label,
.resource-label,
.last-drop span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screen-tabs {
  justify-self: center;
  display: inline-grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: min(620px, 100%);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.tab-button {
  height: 42px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.tab-button.is-active {
  color: #17120a;
  background: linear-gradient(135deg, #e1b85f, #f5c451 52%, #b98734);
  box-shadow: 0 10px 24px rgba(201, 164, 92, 0.22);
}

.mobile-tab-label {
  display: none;
}

.resource-strip {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.resource {
  display: grid;
  gap: 1px;
  min-width: 92px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
}

.resource strong {
  font-size: 18px;
  font-weight: 900;
}

.resource.is-energy {
  border-color: rgba(76, 191, 255, 0.30);
  background: linear-gradient(145deg, rgba(42, 169, 255, 0.12), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 18px rgba(53, 188, 255, 0.06);
}

.resource.is-energy strong,
.energy-inline strong {
  color: #75dcff;
  text-shadow: 0 0 14px rgba(53, 188, 255, 0.42);
}

.resource.is-energy .resource-label,
.energy-inline {
  color: #7ea9bd;
}

.ghost-button,
.close-button {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.ghost-button {
  min-width: 58px;
  height: 46px;
  font-weight: 900;
}

.sound-button {
  min-width: 72px;
}

.sound-button.is-muted {
  color: var(--muted);
  border-color: var(--line);
  opacity: 0.72;
}

.ghost-button:hover,
.close-button:hover {
  border-color: var(--gold);
  color: var(--gold-hot);
}

.game-stage,
.screen {
  min-height: 0;
  height: 100%;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.app-shell.is-main-menu {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.app-shell.is-main-menu .topbar {
  display: none;
}

.main-menu-screen {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(5, 7, 9, 0.98) 0%, rgba(10, 12, 14, 0.92) 38%, rgba(18, 21, 24, 0.54) 70%, rgba(8, 10, 12, 0.92) 100%),
    linear-gradient(180deg, #272c30 0%, #0b0d0f 100%);
}

.main-menu-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  opacity: 0.66;
}

.main-menu-backdrop::before,
.main-menu-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
}

.main-menu-backdrop::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 9.8%, rgba(255, 255, 255, 0.026) 10%, transparent 10.2% 20%),
    linear-gradient(118deg, transparent 0 58%, rgba(201, 164, 92, 0.10) 58.1% 58.25%, transparent 58.35%);
}

.main-menu-backdrop::after {
  inset: auto 0 0;
  height: 36%;
  border-top: 1px solid rgba(201, 164, 92, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.28));
  transform: skewY(-4deg);
  transform-origin: right bottom;
}

.main-menu-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1440px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: 64px clamp(32px, 6vw, 100px);
}

.main-menu-title {
  margin-bottom: 42px;
}

.main-menu-title span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-menu-title h1 {
  margin: 8px 0 0;
  color: #f5f1e8;
  font-size: 96px;
  font-weight: 900;
  line-height: 0.9;
}

.main-menu-actions {
  display: grid;
  width: min(420px, 100%);
  gap: 8px;
}

.main-menu-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  overflow: hidden;
  border: 1px solid rgba(242, 235, 221, 0.13);
  border-left: 3px solid rgba(242, 235, 221, 0.34);
  border-radius: 4px;
  color: #d7d9dc;
  background: rgba(7, 9, 11, 0.64);
  font-size: 17px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.main-menu-button small {
  color: #827d73;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-menu-button:hover,
.main-menu-button:focus-visible {
  border-color: rgba(245, 196, 81, 0.62);
  border-left-color: var(--gold-hot);
  color: #fff8e6;
  background: rgba(27, 25, 20, 0.84);
  transform: translateX(4px);
  outline: none;
}

.main-menu-button.is-primary {
  border-left-color: var(--gold-hot);
  color: #fff8e8;
  background: linear-gradient(90deg, rgba(201, 164, 92, 0.26), rgba(12, 14, 16, 0.72) 62%);
}

.main-menu-status {
  position: absolute;
  right: clamp(32px, 6vw, 100px);
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #858b91;
  font-size: 12px;
  font-weight: 700;
}

.main-menu-energy {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 1px 12px;
  min-width: 150px;
  padding: 11px 13px;
  border: 1px solid rgba(76, 191, 255, 0.34);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(42, 169, 255, 0.14), rgba(7, 9, 11, 0.78));
  box-shadow: inset 0 0 22px rgba(53, 188, 255, 0.07), 0 10px 30px rgba(0, 0, 0, 0.24);
}

.main-menu-energy span {
  color: #8fbdd1;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-menu-energy strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: #75dcff;
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(53, 188, 255, 0.48);
}

.main-menu-profile {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 130px;
}

.developer-energy-button {
  grid-column: 1 / -1;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(117, 220, 255, 0.48);
  border-radius: 6px;
  color: #dff7ff;
  background: rgba(34, 139, 196, 0.22);
  font: 900 11px/1 "Manrope", system-ui, sans-serif;
  cursor: pointer;
}

.developer-energy-button:hover:not(:disabled) {
  background: rgba(55, 177, 239, 0.34);
  box-shadow: 0 0 18px rgba(53, 188, 255, 0.18);
}

.developer-badge {
  width: fit-content;
  padding: 5px 7px;
  border: 1px solid rgba(245, 196, 81, 0.46);
  border-radius: 5px;
  color: #ffe6a0;
  background: linear-gradient(100deg, rgba(245, 196, 81, 0.16), rgba(66, 184, 239, 0.13));
  box-shadow: 0 0 16px rgba(245, 196, 81, 0.10);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mint-screen {
  height: 100%;
  padding: 4px 2px 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.mint-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 2px 16px;
}

.mint-heading h1 {
  margin: 4px 0 0;
  font-size: 42px;
  line-height: 1;
}

.mint-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.mint-root {
  position: relative;
  min-width: 0;
  height: clamp(128px, 17vh, 178px);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #0b0d0f;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.mint-root img,
.mint-root-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mint-root img {
  object-fit: cover;
  opacity: 0.66;
  transition: opacity 220ms ease, transform 360ms ease;
}

.mint-root-shade {
  background: linear-gradient(90deg, rgba(7, 8, 9, 0.94) 0%, rgba(7, 8, 9, 0.56) 58%, rgba(7, 8, 9, 0.10) 100%);
}

.mint-root-copy {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 3px;
  padding: 24px;
}

.mint-root-copy small {
  color: #b5bac0;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mint-root-copy strong {
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.1;
}

.mint-root-copy em {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.mint-root:hover img {
  opacity: 0.82;
  transform: scale(1.025);
}

.mint-root.is-active {
  border-color: rgba(245, 196, 81, 0.68);
  box-shadow: inset 0 -3px 0 var(--gold-hot), 0 18px 50px rgba(0, 0, 0, 0.30);
}

.mint-catalog {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 20px;
}

.mint-taxonomy {
  position: sticky;
  top: 0;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mint-region-nav {
  display: grid;
  gap: 3px;
}

.mint-region-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: #aeb3b8;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.mint-region-button small {
  color: #747b82;
  font-size: 9px;
  font-weight: 800;
}

.mint-region-button:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.mint-region-button.is-active {
  border-left-color: var(--gold-hot);
  color: var(--text);
  background: linear-gradient(90deg, rgba(201, 164, 92, 0.15), transparent);
}

.mint-region-button:disabled {
  opacity: 0.42;
  cursor: default;
}

.mint-results {
  min-width: 0;
}

.mint-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  margin-bottom: 14px;
}

.mint-results-copy {
  min-width: 0;
}

.mint-breadcrumb {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mint-results-copy h2 {
  margin: 5px 0 3px;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.1;
}

.mint-results-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.mint-toolbar {
  display: flex;
  align-items: end;
  gap: 8px;
  flex: 0 0 auto;
}

.mint-search,
.mint-filter {
  display: grid;
  gap: 5px;
}

.mint-search span,
.mint-filter span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.mint-search input,
.mint-filter select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  color: var(--text);
  background: #171a1d;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.mint-search input {
  width: clamp(170px, 18vw, 250px);
  padding: 0 12px;
}

.mint-filter select {
  width: clamp(140px, 13vw, 190px);
  padding: 0 28px 0 10px;
}

.mint-search input:focus,
.mint-filter select:focus {
  border-color: rgba(245, 196, 81, 0.56);
}

.mint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
  padding-bottom: 2px;
}

.mint-card {
  display: grid;
  grid-template-rows: 188px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mint-card.is-selected {
  border-color: rgba(201, 164, 92, 0.42);
}

.mint-card:hover {
  border-color: rgba(242, 235, 221, 0.28);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px);
}

.mint-card.is-energy-locked {
  border-color: rgba(80, 128, 151, 0.24);
}

.mint-card.is-energy-locked:hover {
  border-color: rgba(93, 171, 210, 0.42);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
  transform: none;
}

.mint-card.is-energy-locked .mint-card-art img,
.mint-card.is-energy-locked:hover .mint-card-art img {
  filter: saturate(0.55) brightness(0.72) drop-shadow(0 20px 22px rgba(0, 0, 0, 0.42));
  transform: none;
}

.mint-card.is-energy-locked .mint-open-button {
  color: #8fb5c7;
  border-color: rgba(76, 191, 255, 0.22);
  background: rgba(12, 28, 37, 0.76);
}

.mint-card-art {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 46%),
    #0d0f11;
}

.mint-card-art img {
  display: block;
  width: 88%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 24px 26px rgba(0, 0, 0, 0.48));
  transition: transform 260ms ease;
}

.mint-card-art.is-art-pending {
  background: #0b0d0f;
}

.mint-card:hover .mint-card-art img {
  transform: scale(1.025);
}

.mint-card-number {
  position: absolute;
  top: 16px;
  left: 18px;
  color: rgba(242, 235, 221, 0.34);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.mint-card-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 7px 14px;
  padding: 16px;
}

.mint-card-copy > .section-kicker,
.mint-card-copy h2,
.mint-card-copy p,
.mint-card-featured,
.mint-card-meta {
  grid-column: 1 / -1;
}

.mint-card-copy h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
}

.mint-card-copy p {
  display: -webkit-box;
  min-height: 40px;
  margin: 0;
  overflow: hidden;
  color: #b3b6ba;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mint-card-featured {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mint-card-featured span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.mint-card-featured strong {
  color: var(--rarity-color, var(--text));
  font-size: 12px;
  text-align: right;
}

.mint-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mint-card-action {
  grid-column: 1 / -1;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.mint-card-meta span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #bfc3c7;
  background: rgba(255, 255, 255, 0.035);
  font-size: 10px;
  font-weight: 800;
}

.mint-open-button {
  flex: 1 1 auto;
  min-width: 158px;
  min-height: 44px;
  font-weight: 900;
}

.energy-cost {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  min-width: 94px;
  min-height: 62px;
  overflow: hidden;
  padding: 7px 13px;
  border: 1px solid rgba(76, 191, 255, 0.40);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 50% 120%, rgba(44, 178, 255, 0.30), transparent 66%),
    rgba(10, 24, 34, 0.90);
  box-shadow:
    inset 0 0 22px rgba(53, 188, 255, 0.10),
    0 0 22px rgba(53, 188, 255, 0.10);
}

.energy-cost::before,
.energy-cost::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.energy-cost::before {
  bottom: 3px;
  left: 28%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #8ce6ff;
  box-shadow:
    18px 4px 0 #42bbff,
    38px -1px 0 rgba(117, 220, 255, 0.78),
    51px 6px 0 rgba(42, 169, 255, 0.72);
  filter: drop-shadow(0 0 4px #2aa9ff);
  animation: energy-embers 2.8s ease-out infinite;
}

.energy-cost::after {
  inset: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(151, 230, 255, 0.12) 48%, transparent 62%);
  transform: translateX(-80%);
  animation: energy-sheen 4.8s ease-in-out infinite;
}

.energy-cost span {
  color: #7ea9bd;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.energy-cost strong {
  color: #75dcff;
  font-size: 20px;
  line-height: 1;
  text-shadow:
    0 0 10px rgba(117, 220, 255, 0.68),
    0 0 22px rgba(42, 169, 255, 0.32);
}

.energy-cost-compact {
  min-width: 78px;
  min-height: 44px;
  padding: 5px 10px;
}

.energy-cost-compact strong {
  font-size: 17px;
}

@keyframes energy-embers {
  0% {
    opacity: 0;
    transform: translate3d(0, 6px, 0) scale(0.55);
  }
  24% {
    opacity: 0.88;
  }
  100% {
    opacity: 0;
    transform: translate3d(3px, -22px, 0) scale(1);
  }
}

@keyframes energy-sheen {
  0%, 60% {
    transform: translateX(-80%);
  }
  88%, 100% {
    transform: translateX(80%);
  }
}

.mint-empty {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 240px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.mint-empty[hidden] {
  display: none;
}

.mint-empty strong {
  color: var(--text);
  font-size: 18px;
}

.mint-empty span {
  font-size: 11px;
}

.case-switcher-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.case-switcher-button:hover {
  border-color: var(--gold);
  color: var(--gold-hot);
}

.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(5, 7, 9, 0.82);
  backdrop-filter: blur(14px);
}

.settings-overlay.is-open {
  display: grid;
}

.settings-card {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #171a1d;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.54);
}

.settings-card h2 {
  margin: 6px 0 24px;
  font-size: 34px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 70px;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  cursor: pointer;
}

.settings-row + .settings-row {
  margin-top: 10px;
}

.settings-row span {
  display: grid;
  gap: 4px;
}

.settings-row small {
  color: var(--muted);
  font-size: 11px;
}

.settings-row b {
  color: var(--muted);
  font-size: 12px;
}

.settings-row.is-active {
  border-color: rgba(201, 164, 92, 0.44);
}

.settings-row.is-active b {
  color: var(--gold-hot);
}

.opening-layout {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.case-panel,
.roulette-panel,
.collection-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: 0 24px 70px var(--shadow);
}

.case-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 190px) minmax(250px, 320px) auto;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 14px;
  overflow: hidden;
}

.case-panel h1,
.section-heading h2,
.result-card h2 {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 900;
  line-height: 1.02;
}

.case-panel h1 {
  margin-top: 5px;
  font-size: 34px;
}

.case-panel p {
  display: -webkit-box;
  max-width: 560px;
  margin: 6px 0 0;
  overflow: hidden;
  color: #c7c2ba;
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.case-copy {
  min-width: 0;
}

.case-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.case-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-switcher select {
  max-width: 154px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 0 28px 0 9px;
  color: var(--text);
  background: #15181b;
  font: 800 10px/1 "Manrope", system-ui, sans-serif;
  outline: none;
  cursor: pointer;
}

.case-switcher select:focus {
  border-color: var(--gold);
}

.case-art {
  display: none;
  place-items: center;
  min-width: 0;
  height: 92px;
}

.case-art.is-visible {
  display: grid;
}

.case-art img {
  width: 100%;
  max-width: 190px;
  max-height: 106px;
  object-fit: contain;
  filter:
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 22px rgba(245, 196, 81, 0.22));
}

.featured-coin {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(245, 196, 81, 0.26);
  border-radius: var(--radius-sm);
  background: rgba(201, 164, 92, 0.08);
}

.coin-orbit {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(245, 196, 81, 0.34);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 196, 81, 0.18), rgba(0, 0, 0, 0.20) 72%);
}

.coin-orbit img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  transform: scale(var(--coin-display-scale, 1));
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.featured-coin strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-actions {
  display: flex;
  align-items: center;
  justify-content: end;
}

.case-summary {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.case-summary-item {
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.14);
  text-align: center;
}

.case-summary-item span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-summary-item strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.secondary-button {
  width: auto;
  min-width: 104px;
  min-height: 46px;
  margin-top: 0;
  padding: 0 15px;
  border: 1px solid rgba(245, 196, 81, 0.34);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(245, 196, 81, 0.08);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.secondary-button:hover {
  border-color: var(--gold-hot);
  background: rgba(245, 196, 81, 0.14);
}

.open-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(280px, 100%);
  min-height: 62px;
  margin: 0;
  padding: 0 20px;
  border: 1px solid rgba(245, 196, 81, 0.64);
  border-radius: var(--radius);
  color: #17120a;
  background: linear-gradient(135deg, #e1b85f, #f5c451 45%, #b98734);
  box-shadow: 0 18px 36px rgba(201, 164, 92, 0.22);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.open-button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 36px rgba(201, 164, 92, 0.24),
    0 0 30px rgba(245, 196, 81, 0.22);
}

.open-button span {
  font-size: 18px;
  font-weight: 900;
}

.open-button small {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.open-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.25);
  opacity: 0.72;
}

.roulette-panel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

.roulette-window {
  position: relative;
  align-self: center;
  width: 100%;
  height: clamp(300px, 52vh, 430px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(16, 18, 20, 0.97), transparent 17%, transparent 83%, rgba(16, 18, 20, 0.97)),
    rgba(0, 0, 0, 0.20);
}

.pointer {
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: 6;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--gold-hot) 18%, var(--gold-hot) 82%, transparent);
  box-shadow: 0 0 28px rgba(245, 196, 81, 0.72);
  pointer-events: none;
}

.pointer::before,
.pointer::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
}

.pointer::before {
  top: 0;
  border-top: 18px solid var(--gold-hot);
}

.pointer::after {
  bottom: 0;
  border-bottom: 18px solid var(--gold-hot);
}

.roulette-track {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 0 50vw 0 22px;
  will-change: auto;
}

.roulette-track.is-spinning {
  will-change: transform;
}

.roll-card {
  position: relative;
  flex: 0 0 144px;
  display: grid;
  place-items: center;
  width: 144px;
  height: 154px;
  padding: 12px;
  border: 1px solid var(--rarity-color, var(--line-strong));
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 31%, var(--rarity-glow, rgba(255, 255, 255, 0.08)), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
  box-shadow: 0 0 18px var(--rarity-soft-glow, rgba(255, 255, 255, 0.04));
  overflow: hidden;
}

.roll-card::before,
.inventory-card::before,
.box-coin-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--rarity-color), transparent);
  opacity: 0.86;
}

.coin-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.coin-art::before {
  content: "";
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--rarity-glow, rgba(255, 255, 255, 0.14)) 0 34%, transparent 72%);
  filter: blur(7px);
  opacity: 0.72;
}

.coin-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 118px;
  height: 118px;
  object-fit: contain;
  filter:
    drop-shadow(0 14px 20px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 16px var(--rarity-glow, rgba(255, 255, 255, 0.12)));
}

.roll-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.24;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.roll-card.is-winner {
  box-shadow:
    0 0 0 1px var(--rarity-color),
    0 0 52px var(--rarity-glow, rgba(255, 255, 255, 0.14));
}

.roulette-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
}

.roulette-footer .open-button {
  grid-column: 2;
  justify-self: center;
  width: min(250px, 100%);
}

.roulette-energy-cost {
  grid-column: 1;
  justify-self: start;
}

.last-drop {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(320px, 100%);
  min-height: 58px;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.14);
}

.last-drop strong {
  max-width: 60%;
  overflow: hidden;
  font-size: 14px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-section {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin-top: 3px;
  font-size: 42px;
}

.collection-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, auto));
  gap: 8px;
}

.collection-stat {
  min-width: 118px;
  padding: 8px 10px;
  border: 1px solid rgba(245, 196, 81, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(245, 196, 81, 0.06);
  text-align: right;
}

.collection-stat span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.collection-stat strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.18;
}

.inventory-categories {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(104px, 1fr));
  justify-self: start;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
}

.inventory-category {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius-sm) - 3px);
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.inventory-category:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.inventory-category.is-active {
  border-color: rgba(245, 196, 81, 0.34);
  color: var(--text);
  background: linear-gradient(180deg, rgba(245, 196, 81, 0.16), rgba(245, 196, 81, 0.07));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.inventory-category small {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding-inline: 5px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
  line-height: 1;
}

.inventory-category.is-active small {
  color: #17130c;
  background: var(--gold-hot);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 10px;
  align-content: start;
  align-items: start;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.inventory-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 190px;
  padding: 11px;
  border: 1px solid var(--rarity-color, var(--line));
  border-radius: var(--radius);
  color: var(--text);
  background:
    radial-gradient(circle at 50% 28%, var(--rarity-glow, rgba(255, 255, 255, 0.08)), transparent 68%),
    rgba(0, 0, 0, 0.16);
  box-shadow: 0 0 18px var(--rarity-soft-glow, rgba(255, 255, 255, 0.04));
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.inventory-card:hover {
  border-color: var(--rarity-color, var(--line-strong));
  transform: translateY(-1px);
}

.empty-inventory {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 190px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-section {
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 24px 70px var(--shadow);
  overscroll-behavior: contain;
}

.profile-content {
  min-height: 100%;
  padding: clamp(16px, 1.8vw, 28px);
}

.profile-gate {
  display: grid;
  min-height: 100%;
  padding: 24px;
  place-items: center;
}

.profile-gate[hidden],
.profile-content[hidden] {
  display: none;
}

.profile-gate-card {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(12, 14, 16, 0.82);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.32);
}

.profile-auth-card {
  display: grid;
  width: min(920px, 100%);
  grid-template-columns: minmax(280px, 0.82fr) minmax(380px, 1.18fr);
  gap: 28px;
}

.auth-providers {
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.auth-provider-grid {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.auth-provider-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.auth-provider-button:disabled {
  cursor: default;
  opacity: 0.58;
}

.auth-provider-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 900;
}

.auth-provider-button strong {
  font-size: 12px;
}

.auth-provider-button small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.auth-status-note {
  margin: -3px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--gold);
  color: var(--muted);
  background: rgba(245, 196, 81, 0.055);
  font-size: 11px;
  line-height: 1.5;
}

.profile-gate-card h2,
.profile-identity h2,
.profile-panel-heading h3,
.profile-collection-heading h3,
.profile-modal h2 {
  margin: 5px 0 0;
  color: var(--text);
  font-weight: 900;
  line-height: 1.05;
}

.profile-gate-card h2,
.profile-modal h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.profile-gate-card p,
.profile-copy p,
.profile-modal-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.profile-form {
  display: grid;
  gap: 16px;
}

.profile-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-form input,
.profile-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font: 600 14px/1.45 "Manrope", system-ui, sans-serif;
  outline: none;
  resize: vertical;
}

.profile-form input:focus,
.profile-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 196, 81, 0.1);
}

.profile-form-actions,
.profile-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.profile-form-actions .open-button,
.profile-form-actions .secondary-button {
  min-width: 150px;
}

.profile-identity {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.avatar-frame {
  position: relative;
  display: grid;
  width: 132px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 2px solid #d7dce1;
  border-radius: 8px;
  color: #131619;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(124, 131, 140, 0.72)),
    #cfd4d8;
  box-shadow:
    0 0 0 5px rgba(215, 220, 225, 0.08),
    0 18px 44px rgba(0, 0, 0, 0.28);
}

.avatar-frame::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(17, 20, 23, 0.35);
  border-radius: 4px;
  pointer-events: none;
}

.avatar-frame span {
  font-size: 46px;
  font-weight: 900;
}

.profile-identity h2 {
  font-size: clamp(30px, 3.4vw, 48px);
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.is-developer-account .avatar-frame {
  border-color: #f4cf72;
  box-shadow:
    0 0 0 5px rgba(215, 220, 225, 0.08),
    0 0 28px rgba(245, 196, 81, 0.18),
    0 0 44px rgba(82, 194, 245, 0.10),
    0 18px 44px rgba(0, 0, 0, 0.28);
  animation: developerFrameGlow 4.2s ease-in-out infinite;
}

@keyframes developerFrameGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

.profile-copy p {
  max-width: 680px;
  margin: 8px 0 4px;
}

.profile-copy {
  min-width: 0;
}

.profile-copy p {
  overflow-wrap: anywhere;
}

.profile-since {
  color: var(--steel);
  font-size: 11px;
  font-weight: 800;
}

.profile-actions {
  justify-content: flex-end;
}

.profile-action {
  min-width: 104px;
  padding-inline: 14px;
}

.profile-showcase {
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(560px, 1.58fr);
  align-items: start;
  gap: 18px;
  padding-top: 18px;
}

.profile-side-stack {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 12px;
}

.lucky-coin-panel,
.profile-side-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 10, 12, 0.34);
}

.lucky-coin-panel {
  align-self: stretch;
  overflow: hidden;
}

.profile-panel-heading,
.profile-collection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.profile-panel-heading h3,
.profile-collection-heading h3 {
  font-size: 23px;
}

.lucky-coin-stage {
  position: relative;
  display: grid;
  height: clamp(320px, 42vh, 460px);
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 74%, var(--rarity-soft-glow, rgba(245, 196, 81, 0.12)), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.18));
}

.lucky-coin-glow {
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 10%;
  height: 25%;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--rarity-glow, rgba(245, 196, 81, 0.14)), transparent 70%);
  opacity: 0.78;
}

.lucky-coin-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(82%, 390px);
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.lucky-coin-card[hidden] {
  display: none;
}

.lucky-coin-card:hover {
  filter: brightness(1.08);
  transform: scale(1.025);
}

.lucky-coin-card:focus-visible {
  outline: 2px solid var(--rarity-color, var(--gold-hot));
  outline-offset: 8px;
}

.lucky-coin-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 20px 24px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 20px var(--rarity-glow, rgba(245, 196, 81, 0.18)));
}

.achievement-art-pending {
  display: block;
  width: 64%;
  aspect-ratio: 1;
  background: transparent;
}

.achievement-detail-emblem.is-art-pending,
.achievement-earned-emblem.is-art-pending {
  opacity: 0.38;
}

.achievement-detail-emblem.is-art-pending::after,
.achievement-earned-emblem.is-art-pending::after {
  content: none;
}

.achievement-detail-emblem img[hidden],
.achievement-earned-emblem img[hidden] {
  display: none;
}

.lucky-coin-empty {
  z-index: 2;
  display: grid;
  max-width: 270px;
  gap: 8px;
  padding: 22px;
  text-align: center;
}

.lucky-coin-empty[hidden] {
  display: none;
}

.lucky-coin-empty strong {
  font-size: 18px;
}

.lucky-coin-empty span,
.lucky-coin-caption span,
.achievements-summary span,
.profile-coin-option small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.lucky-coin-caption {
  display: grid;
  gap: 3px;
  min-height: 68px;
  padding: 14px 16px;
}

.profile-side-panel {
  padding: 16px;
}

.profile-achievements-panel {
  align-self: start;
}

.achievements-summary {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 0 0 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.achievements-summary > span:last-child {
  grid-column: 1 / -1;
}

.achievement-strip {
  display: flex;
  gap: 10px;
  min-height: 72px;
  padding: 13px 0;
  overflow-x: auto;
}

.profile-achievements-panel .achievement-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 64px));
  justify-content: space-between;
  gap: 6px;
  overflow: visible;
}

.profile-achievements-panel .achievement-medal,
.achievement-total {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.achievement-total {
  display: grid;
  place-content: center;
  gap: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
  cursor: pointer;
}

.achievement-total strong {
  font-size: clamp(12px, 1.2vw, 16px);
}

.achievement-total span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-rating-placeholder {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-rating-placeholder h3 {
  margin-top: 3px;
  font-size: 17px;
}

.profile-rating-status {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--gold-soft);
  background: rgba(225, 181, 78, 0.06);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.achievement-medal {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: var(--rarity-color, var(--steel));
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

button.achievement-medal {
  padding: 0;
  font: inherit;
}

.achievement-medal img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 8px 10px rgba(0, 0, 0, 0.32))
    drop-shadow(0 0 9px var(--rarity-soft-glow, transparent));
}

.achievement-medal.is-locked,
.achievement-row.is-locked {
  opacity: 0.32;
}

.achievement-hidden-mark {
  display: grid;
  width: 88px;
  aspect-ratio: 1;
  place-items: center;
  color: rgba(255, 255, 255, 0.32);
  background: transparent;
  font-size: 42px;
  font-weight: 750;
}

.achievement-medal,
.achievement-catalog-emblem,
.achievement-detail-emblem,
.achievement-earned-emblem,
.achievement-series-emblem {
  position: relative;
  isolation: isolate;
}

.achievement-medal.is-unlocked::after,
.achievement-catalog-card.is-unlocked .achievement-catalog-emblem::after,
.achievement-detail-emblem:not(.is-art-pending)::after,
.achievement-earned-emblem:not(.is-art-pending)::after,
.achievement-series-emblem::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: -9%;
  left: 7%;
  z-index: 0;
  height: 38%;
  border: 0;
  background: radial-gradient(
    ellipse at center,
    var(--rarity-glow, rgba(124, 131, 140, 0.12)) 0%,
    var(--rarity-soft-glow, rgba(124, 131, 140, 0.06)) 42%,
    transparent 74%
  );
  filter: blur(8px);
  opacity: var(--achievement-aura-strength, 0.32);
  pointer-events: none;
  transform: scaleX(1.14);
  transform-origin: center;
}

.achievement-medal img,
.achievement-catalog-emblem img,
.achievement-detail-emblem img,
.achievement-earned-emblem img,
.achievement-series-emblem img {
  position: relative;
  z-index: 1;
}

.achievement-medal.is-unlocked::after {
  right: 2%;
  bottom: -5%;
  left: 2%;
  height: 34%;
  filter: blur(5px);
}

.achievement-catalog-card.is-unlocked .achievement-catalog-emblem::after {
  right: 12%;
  bottom: 0;
  left: 12%;
  height: 32%;
}

.achievement-earned-emblem:not(.is-art-pending)::after {
  right: 0;
  bottom: -5%;
  left: 0;
  height: 42%;
  filter: blur(13px);
  animation: achievementAuraBreath 2800ms ease-in-out infinite;
}

.profile-collection-heading {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: #14171a;
}

.profile-collection-panel {
  margin-top: 18px;
  padding: 0 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 10, 12, 0.34);
}

.collection-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.collection-view-control {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.24);
}

.view-size-button {
  min-width: 82px;
  height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.view-size-button.is-active {
  color: #17120a;
  background: linear-gradient(135deg, #e1b85f, #f5c451 52%, #b98734);
}

.profile-collection {
  display: grid;
  padding-top: 16px;
}

.profile-collection[data-size="large"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.profile-collection[data-size="medium"] {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
}

.profile-collection[data-size="compact"] {
  grid-template-columns: repeat(8, minmax(72px, 1fr));
  gap: 8px;
}

.showcase-slot {
  position: relative;
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--rarity-color, var(--line));
  border-radius: 8px;
  color: var(--text);
  background:
    radial-gradient(circle, var(--rarity-soft-glow, rgba(255, 255, 255, 0.05)), transparent 68%),
    rgba(255, 255, 255, 0.025);
  contain: layout paint;
  cursor: pointer;
}

.showcase-slot:hover {
  border-color: var(--rarity-color, var(--gold));
  background-color: rgba(255, 255, 255, 0.05);
}

.showcase-slot img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  transform: scale(var(--coin-display-scale, 1));
}

.showcase-slot > strong {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-slot.is-empty {
  align-content: center;
  gap: 2px;
  border-style: dashed;
  color: var(--steel);
}

.showcase-slot.is-empty > strong {
  position: static;
  font-size: 10px;
  text-transform: uppercase;
}

.showcase-plus {
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.profile-collection[data-size="medium"] .showcase-slot > strong,
.profile-collection[data-size="compact"] .showcase-slot > strong {
  font-size: 9px;
}

.profile-collection[data-size="compact"] .showcase-plus {
  font-size: 25px;
}

.collection-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 16px;
}

.collection-page-button,
.collection-add-page {
  display: grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font: 800 13px/1 "Manrope", system-ui, sans-serif;
}

.collection-page-button:not(:disabled) {
  cursor: pointer;
}

.collection-page-button.is-active {
  border-color: var(--gold);
  color: #17120a;
  background: linear-gradient(135deg, #e1b85f, #f5c451 52%, #b98734);
}

.collection-page-button.is-locked {
  opacity: 0.46;
}

.page-lock {
  position: relative;
  width: 14px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.page-lock::before {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 7px;
  width: 6px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.collection-add-page {
  grid-template-columns: auto auto;
  gap: 5px;
  min-width: 86px;
  color: var(--gold-hot);
  border-color: rgba(245, 196, 81, 0.45);
  opacity: 1;
  animation: addPagePulse 2200ms ease-in-out infinite;
  will-change: transform;
}

.collection-add-page span {
  font-size: 9px;
  text-transform: uppercase;
}

.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 24;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(8, 10, 12, 0.82);
  backdrop-filter: blur(12px);
}

.profile-overlay.is-open {
  display: grid;
}

.profile-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100dvh - 44px);
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #181b1e;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.48);
}

.achievement-list,
.lucky-coin-options,
.showcase-coin-options {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.achievement-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px;
  border: 1px solid var(--rarity-color, var(--line));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.achievement-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.achievement-row > span {
  color: var(--rarity-color, var(--muted));
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.achievements-page-overlay {
  z-index: 24;
  padding: 0;
  background: #101316;
  backdrop-filter: none;
}

.achievements-page-overlay.is-open {
  display: block;
  overflow-y: auto;
}

.achievements-page {
  width: min(1480px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 64px) 64px;
}

.achievements-page-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.achievements-page-header h2 {
  margin: 2px 0 0;
  font-size: clamp(34px, 4vw, 58px);
}

.achievements-back-button {
  min-width: 160px;
}

.achievements-page-summary {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.achievements-page-summary strong {
  color: var(--gold-soft);
  font-size: 24px;
}

.achievements-page-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.achievements-overall-progress,
.achievement-series-track {
  overflow: hidden;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.achievements-overall-progress {
  margin: 18px 0 26px;
}

.achievements-overall-progress span,
.achievement-series-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #aeb5bd, #e5bd64 68%, #fff0b0);
  transition: width 420ms ease;
}

.achievement-catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.achievement-catalog-card {
  display: grid;
  min-width: 0;
  grid-template-rows: 148px minmax(116px, 1fr) auto;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--rarity-color, var(--line));
  border-radius: 8px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 20%, var(--rarity-soft-glow, rgba(255, 255, 255, 0.05)), transparent 34%),
    #171a1d;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.achievement-catalog-card:hover {
  transform: translateY(-2px);
  background-color: #1d2125;
}

.achievement-catalog-card.is-locked {
  opacity: 0.56;
}

.achievement-catalog-card.is-hidden-achievement {
  border-color: var(--line);
  opacity: 1;
  background: #14171a;
  cursor: default;
}

.achievement-catalog-card.is-hidden-achievement:hover {
  transform: none;
  background-color: #14171a;
}

.achievement-catalog-card.is-hidden-achievement .achievement-catalog-copy,
.achievement-catalog-card.is-hidden-achievement > b {
  opacity: 0.58;
}

.achievement-catalog-emblem {
  display: grid;
  height: 148px;
  place-items: center;
}

.achievement-catalog-emblem img {
  width: 142px;
  height: 142px;
  object-fit: contain;
}

.achievement-catalog-copy {
  display: grid;
  align-content: start;
  gap: 5px;
}

.achievement-catalog-copy > span,
.achievement-catalog-card > b {
  color: var(--rarity-color, var(--muted));
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.achievement-catalog-copy > strong {
  font-size: 18px;
}

.achievement-catalog-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.achievement-detail-overlay {
  z-index: 28;
}

.achievement-detail-card {
  position: relative;
  display: grid;
  width: min(580px, 100%);
  max-height: calc(100dvh - 44px);
  overflow-y: auto;
  justify-items: center;
  padding: 34px;
  border: 1px solid var(--rarity-color, var(--line-strong));
  border-radius: 8px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 32%, var(--rarity-soft-glow, rgba(255, 255, 255, 0.04)), transparent 34%),
    #181b1e;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.58);
  text-align: center;
}

.achievement-detail-card h2 {
  margin: 5px 48px 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.achievement-detail-emblem {
  position: relative;
  display: grid;
  width: min(280px, 72vw);
  aspect-ratio: 1;
  place-items: center;
  margin: 6px 0 10px;
}

.achievement-detail-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.achievement-detail-card > p {
  max-width: 470px;
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.achievement-detail-status,
.achievement-detail-reward {
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--rarity-color, var(--gold-soft));
  background: rgba(255, 255, 255, 0.035);
  font-weight: 850;
}

.achievement-series-progress {
  display: grid;
  width: 100%;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 9, 11, 0.42);
  text-align: left;
}

.achievement-series-progress[hidden] {
  display: none;
}

.achievement-series-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.achievement-series-journey {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: center;
  gap: 12px;
}

.achievement-series-emblem {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 4px;
}

.achievement-series-emblem[hidden] {
  display: none;
}

.achievement-series-emblem img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.achievement-series-emblem.is-next img {
  filter: saturate(0.72) brightness(0.82);
  opacity: 0.88;
}

.achievement-series-emblem span {
  max-width: 80px;
  overflow: hidden;
  font-size: 8px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.achievement-series-meter {
  display: grid;
  gap: 7px;
  text-align: center;
}

.achievement-series-progress span,
.achievement-series-progress small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.achievement-series-progress strong {
  font-size: 13px;
  text-align: right;
}

.achievement-series-progress.is-complete .achievement-series-track span {
  background: linear-gradient(90deg, #d4ae54, #fff1b4);
}

@media (max-width: 1080px) {
  .achievement-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .roulette-energy-cost,
  .roulette-footer .open-button,
  .last-drop {
    grid-column: 1;
  }

  .roulette-energy-cost {
    justify-self: start;
  }

  .last-drop {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .achievements-page {
    padding: 18px 14px 42px;
  }

  .achievements-page-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .achievements-back-button {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

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

@media (max-width: 480px) {
  .achievement-catalog {
    grid-template-columns: 1fr;
  }

  .achievement-catalog-card {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: minmax(104px, auto) auto;
    align-items: center;
  }

  .achievement-catalog-emblem {
    grid-row: 1 / -1;
    width: 112px;
    height: 112px;
  }

  .achievement-catalog-emblem img {
    width: 108px;
    height: 108px;
  }

  .achievement-detail-card {
    padding: 26px 16px 18px;
  }

  .achievement-series-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .achievement-series-progress strong {
    text-align: left;
  }

  .achievement-series-journey {
    grid-template-columns: 68px minmax(0, 1fr) 68px;
    gap: 8px;
  }

  .achievement-series-emblem img {
    width: 62px;
    height: 62px;
  }
}

.profile-coin-option {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 90px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--rarity-color, var(--line));
  border-radius: 8px;
  color: var(--text);
  background:
    radial-gradient(circle at 9% 50%, var(--rarity-soft-glow, rgba(255, 255, 255, 0.04)), transparent 20%),
    rgba(255, 255, 255, 0.025);
  text-align: left;
  cursor: pointer;
}

.profile-coin-option:hover {
  border-color: var(--rarity-color, var(--gold));
  background-color: rgba(255, 255, 255, 0.055);
}

.profile-coin-option img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.profile-coin-option span {
  display: grid;
  gap: 4px;
}

.profile-empty-note {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.result-replace-button {
  position: absolute;
  top: 12px;
  right: 62px;
  min-width: 104px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  color: #17120a;
  background: linear-gradient(135deg, #e1b85f, #f5c451 52%, #b98734);
  font-weight: 900;
  cursor: pointer;
}

.result-card.is-showcase-detail .result-rarity {
  display: block;
  padding-right: 172px;
}

@keyframes addPagePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

.inventory-art {
  display: grid;
  place-items: center;
  height: 112px;
  overflow: hidden;
}

.inventory-art img {
  display: block;
  width: 106px;
  height: 106px;
  object-fit: contain;
  transform: scale(var(--coin-display-scale, 1));
}

.inventory-card strong {
  display: -webkit-box;
  min-height: 36px;
  margin-top: 8px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.inventory-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.count-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  min-width: 32px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #101214;
  background: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.result-overlay,
.box-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(8, 10, 12, 0.78);
  backdrop-filter: blur(12px);
}

.result-overlay {
  z-index: 24;
}

.box-overlay {
  z-index: 20;
}

.achievement-earned-overlay {
  position: fixed;
  inset: 0;
  z-index: 26;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(5, 7, 9, 0.88);
  backdrop-filter: blur(16px);
}

.achievement-earned-overlay.is-open {
  display: grid;
  animation: overlayIn 220ms ease-out both;
}

.achievement-earned-card {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100dvh - 44px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 30px 34px 32px;
  border: 1px solid var(--rarity-color, var(--line-strong));
  border-radius: var(--radius);
  color: var(--text);
  background:
    radial-gradient(circle at 50% 46%, var(--rarity-soft-glow, rgba(255, 255, 255, 0.08)), transparent 42%),
    linear-gradient(180deg, #202429 0%, #111315 100%);
  box-shadow:
    0 28px 100px rgba(0, 0, 0, 0.58),
    0 0 110px var(--rarity-glow, rgba(255, 255, 255, 0.16));
  text-align: center;
}

.achievement-earned-overlay.is-open .achievement-earned-card {
  animation:
    achievementCardIn 620ms cubic-bezier(0.16, 0.9, 0.24, 1) both,
    legendaryBreath 1900ms 650ms ease-in-out 2;
}

.achievement-earned-kicker {
  display: block;
  color: var(--rarity-color, var(--gold));
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.achievement-earned-card h2 {
  max-width: calc(100% - 64px);
  margin: 8px auto 0;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.04;
}

.achievement-earned-emblem {
  position: relative;
  display: grid;
  width: min(330px, 76vw);
  margin: 22px auto 6px;
  aspect-ratio: 1;
  place-items: center;
}

.achievement-earned-emblem::before {
  content: none;
}

.achievement-earned-rays {
  display: none;
}

.achievement-earned-image {
  position: relative;
}

.achievement-earned-emblem img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 22px 30px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 20px var(--rarity-glow, rgba(255, 255, 255, 0.18)));
  animation: achievementEmblemIn 760ms 120ms cubic-bezier(0.15, 0.92, 0.26, 1) both;
}

.achievement-earned-card > p {
  max-width: 430px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.achievement-earned-reward {
  display: grid;
  width: min(320px, 100%);
  margin: 18px auto 0;
  padding: 12px 18px;
  border: 1px solid var(--rarity-color, var(--gold));
  border-radius: var(--radius-small);
  background: rgba(0, 0, 0, 0.24);
  box-shadow: 0 0 28px var(--rarity-soft-glow, rgba(255, 255, 255, 0.08));
  gap: 3px;
}

.achievement-earned-reward[hidden] {
  display: none;
}

.achievement-earned-reward span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.achievement-earned-reward strong {
  color: var(--rarity-color, var(--gold-hot));
  font-size: 22px;
}

.achievement-earned-continue {
  justify-content: center;
  min-width: 210px;
  margin-top: 24px;
}

.result-overlay.is-open,
.box-overlay.is-open {
  display: grid;
}

.result-overlay.is-open {
  animation: overlayIn 220ms ease-out both;
}

.result-card,
.box-card {
  position: relative;
  width: min(700px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--rarity-color, var(--line-strong));
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 18%, var(--rarity-glow, rgba(255, 255, 255, 0.10)), transparent 50%),
    linear-gradient(180deg, #202429, #111315);
  box-shadow: 0 0 90px var(--rarity-glow, rgba(0, 0, 0, 0.3));
}

.result-card {
  display: grid;
  overflow: hidden;
  padding: 0;
  isolation: isolate;
}

.result-card-scroll {
  min-height: 0;
  max-height: calc(100dvh - 44px);
  padding: 26px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.result-card > .close-button,
.result-card > .result-replace-button {
  z-index: 30;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.result-card > .close-button {
  background: rgba(20, 23, 26, 0.96);
}

.result-card::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 42%;
  transform: rotate(14deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.20), transparent);
  opacity: 0;
  pointer-events: none;
}

.result-overlay.is-open .result-card {
  animation: resultCardIn 520ms cubic-bezier(0.16, 0.9, 0.24, 1) both;
}

.result-overlay.is-open .result-card::before {
  animation: raritySweep 900ms 160ms ease-out both;
}

.box-card {
  width: min(980px, 100%);
}

.box-card h2 {
  margin: 6px 44px 0 0;
  font-weight: 900;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}

.box-card p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #c7c2ba;
  font-size: 13px;
  line-height: 1.48;
}

.box-composition {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.box-preview-art {
  position: relative;
  display: grid;
  height: clamp(170px, 28vh, 280px);
  margin-top: 14px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.box-preview-art[hidden] {
  display: none;
}

.box-preview-art img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
}

.composition-pill {
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid var(--rarity-color, var(--line));
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 50% 0%, var(--rarity-glow, rgba(255, 255, 255, 0.12)), transparent 76%),
    rgba(255, 255, 255, 0.04);
  text-align: center;
}

.composition-pill span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.composition-pill strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.box-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.box-coin-card {
  position: relative;
  min-height: 164px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--rarity-color, var(--line));
  border-radius: var(--radius);
  color: var(--text);
  background:
    radial-gradient(circle at 50% 22%, var(--rarity-glow, rgba(255, 255, 255, 0.08)), transparent 68%),
    rgba(0, 0, 0, 0.17);
  box-shadow: 0 0 16px var(--rarity-soft-glow, rgba(255, 255, 255, 0.04));
  text-align: left;
  cursor: pointer;
}

.box-coin-card:hover {
  transform: translateY(-1px);
}

.box-coin-art {
  display: grid;
  place-items: center;
  height: 92px;
  overflow: hidden;
}

.box-coin-art img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  transform: scale(var(--coin-display-scale, 1));
}

.box-coin-card strong {
  display: -webkit-box;
  min-height: 32px;
  margin-top: 5px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.26;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.box-coin-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
}

.result-rarity {
  color: var(--rarity-color, var(--gold));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-card h2 {
  max-width: calc(100% - 54px);
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.04;
}

.result-coin {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.result-coin::before {
  content: "";
  position: absolute;
  inset: 5% 12%;
  border-radius: 999px;
  background: radial-gradient(circle, var(--rarity-glow, rgba(255, 255, 255, 0.16)), transparent 66%);
  filter: blur(12px);
  opacity: 0.75;
  pointer-events: none;
}

.result-coin img {
  position: relative;
  z-index: 1;
  --result-coin-scale: var(--coin-display-scale, 1);
  --result-coin-scale-start: calc(var(--coin-display-scale, 1) * 0.84);
  --result-coin-scale-pop: calc(var(--coin-display-scale, 1) * 1.04);
  width: 100%;
  height: min(32vw, 248px);
  object-fit: contain;
  transform: scale(var(--result-coin-scale));
  filter:
    drop-shadow(0 26px 32px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 12px var(--rarity-glow, rgba(255, 255, 255, 0.10)));
}

.result-overlay.is-open .result-coin img {
  animation: resultCoinReveal 680ms cubic-bezier(0.18, 0.95, 0.18, 1.05) both;
}

.result-overlay.is-open .result-coin img:nth-child(2) {
  animation-delay: 90ms;
}

.result-card[data-rarity="epic"] .result-coin img,
.result-card[data-rarity="legendary"] .result-coin img {
  filter:
    drop-shadow(0 26px 32px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 18px var(--rarity-glow));
}

.result-overlay.is-open .result-card[data-rarity="legendary"] {
  animation:
    resultCardIn 520ms cubic-bezier(0.16, 0.9, 0.24, 1) both,
    legendaryBreath 1800ms 540ms ease-in-out 2;
}

.result-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px auto 0;
}

.highlight-pill {
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid var(--rarity-color, var(--gold));
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 50% 0%, var(--rarity-glow, rgba(245, 196, 81, 0.24)), transparent 72%),
    rgba(245, 196, 81, 0.08);
  text-align: center;
}

.highlight-pill span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.highlight-pill strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.18;
}

.result-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  padding-bottom: 4px;
}

.result-details {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-details summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.result-details summary::-webkit-details-marker {
  display: none;
}

.result-details summary::after {
  content: "+";
  width: 18px;
  margin-left: 8px;
  color: var(--rarity-color, var(--gold));
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.result-details[open] summary::after {
  content: "−";
}

.result-description {
  margin-top: 18px;
  padding: 0 2px 8px;
  color: #cbc7bf;
}

.result-description[hidden] {
  display: none;
}

.result-description h3 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.result-description p {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  white-space: pre-line;
}

.result-inventory-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 16px 0 2px;
  border-top: 1px solid var(--line);
}

.result-inventory-actions[hidden] {
  display: none;
}

.result-inventory-actions > div {
  display: grid;
  gap: 3px;
}

.result-inventory-actions span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.result-inventory-actions strong {
  color: var(--text);
  font-size: 14px;
}

.destroy-coin-button,
.destroy-confirm-button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(225, 94, 86, 0.62);
  border-radius: var(--radius-sm);
  color: #ffd7d3;
  background: rgba(122, 34, 31, 0.34);
  font-weight: 900;
  cursor: pointer;
}

.destroy-coin-button:hover,
.destroy-confirm-button:hover:not(:disabled) {
  border-color: rgba(255, 132, 121, 0.88);
  background: rgba(151, 43, 38, 0.48);
}

.destroy-coin-button.is-energy-exchange,
.destroy-confirm-button.is-energy-exchange {
  color: #c9eeff;
  border-color: rgba(56, 189, 248, 0.52);
  background: rgba(9, 72, 99, 0.3);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.1);
}

.destroy-coin-button.is-energy-exchange:hover,
.destroy-confirm-button.is-energy-exchange:hover:not(:disabled) {
  border-color: rgba(117, 220, 255, 0.82);
  background: rgba(12, 91, 124, 0.44);
}

.destroy-coin-overlay {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(5, 7, 9, 0.86);
  backdrop-filter: blur(14px);
}

.destroy-coin-overlay.is-open {
  display: grid;
  animation: overlayIn 180ms ease-out both;
}

.destroy-coin-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid rgba(225, 94, 86, 0.42);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #202429, #111315);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.64);
  text-align: center;
}

.destroy-coin-overlay.is-energy-exchange .destroy-coin-card {
  border-color: rgba(56, 189, 248, 0.4);
}

.destroy-coin-card > .close-button {
  z-index: 3;
  color: #f5f2ec;
  border: 1px solid var(--line);
  background: rgba(12, 14, 16, 0.92);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
}

.destroy-coin-card > .section-kicker {
  display: block;
  padding: 0 48px;
  color: #b8bec5;
}

.destroy-coin-card h2 {
  max-width: calc(100% - 54px);
  margin: 7px auto 0;
  font-size: clamp(26px, 4vw, 36px);
}

.destroy-coin-preview {
  display: grid;
  width: 156px;
  height: 156px;
  margin: 18px auto 8px;
  place-items: center;
}

.destroy-coin-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.42));
}

.destroy-coin-name {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.destroy-coin-card > p {
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.destroy-quantity {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.destroy-quantity > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.destroy-quantity-controls {
  display: grid;
  grid-template-columns: 38px minmax(60px, 1fr) 38px;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid rgba(242, 235, 221, 0.18);
  border-radius: 7px;
  background: rgba(7, 9, 11, 0.62);
}

.destroy-quantity-controls button,
.destroy-quantity-controls input,
.destroy-quantity-presets button {
  border: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-weight: 900;
}

.destroy-quantity-controls button {
  font-size: 20px;
  cursor: pointer;
}

.destroy-quantity-controls button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.destroy-quantity-controls input {
  width: 100%;
  border-right: 1px solid rgba(242, 235, 221, 0.12);
  border-left: 1px solid rgba(242, 235, 221, 0.12);
  outline: 0;
  text-align: center;
  appearance: textfield;
}

.destroy-quantity-controls input::-webkit-inner-spin-button,
.destroy-quantity-controls input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.destroy-quantity-presets {
  display: flex;
  gap: 5px;
}

.destroy-quantity-presets button {
  min-width: 38px;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
}

.destroy-quantity-presets button.is-active {
  color: #c9eeff;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(9, 72, 99, 0.3);
}

.destroy-quantity button:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.destroy-coin-reward {
  display: grid;
  gap: 3px;
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid rgba(56, 189, 248, 0.44);
  border-radius: var(--radius-sm);
  background: rgba(9, 72, 99, 0.22);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.12);
}

.destroy-coin-reward[hidden] {
  display: none;
}

.destroy-coin-reward span {
  color: #9ddcf7;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.destroy-coin-reward strong {
  color: #c9eeff;
  font-size: 20px;
}

.destroy-last-copy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 13px;
  border: 1px solid rgba(225, 94, 86, 0.34);
  border-radius: var(--radius-sm);
  color: #e6ddd7;
  background: rgba(122, 34, 31, 0.16);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.destroy-last-copy-consent[hidden] {
  display: none;
}

.destroy-last-copy-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #d4554d;
}

.destroy-coin-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.destroy-confirm-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.destroy-coin-status {
  min-height: 18px;
  color: #ffb3ac !important;
  font-size: 11px !important;
}

.game-toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  max-width: min(520px, calc(100vw - 32px));
  padding: 13px 18px;
  border: 1px solid rgba(76, 191, 255, 0.42);
  border-radius: var(--radius-sm);
  color: #d9f3ff;
  background: rgba(8, 19, 26, 0.94);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.48), 0 0 24px rgba(53, 188, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.game-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.result-meta span {
  display: grid;
  gap: 3px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.result-meta b {
  color: var(--text);
  font-size: 10px;
}

[data-rarity="common"] {
  --rarity-color: var(--steel);
  --rarity-glow: rgba(124, 131, 140, 0.12);
  --rarity-soft-glow: rgba(124, 131, 140, 0.06);
  --achievement-aura-strength: 0.34;
}

[data-rarity="uncommon"] {
  --rarity-color: var(--green);
  --rarity-glow: rgba(70, 216, 141, 0.34);
  --rarity-soft-glow: rgba(70, 216, 141, 0.15);
  --achievement-aura-strength: 0.48;
}

[data-rarity="rare"] {
  --rarity-color: var(--blue);
  --rarity-glow: rgba(56, 189, 248, 0.48);
  --rarity-soft-glow: rgba(56, 189, 248, 0.22);
  --achievement-aura-strength: 0.64;
}

[data-rarity="epic"] {
  --rarity-color: var(--violet);
  --rarity-glow: rgba(209, 107, 255, 0.54);
  --rarity-soft-glow: rgba(209, 107, 255, 0.26);
  --achievement-aura-strength: 0.78;
}

[data-rarity="legendary"] {
  --rarity-color: var(--gold-hot);
  --rarity-glow: rgba(245, 196, 81, 0.68);
  --rarity-soft-glow: rgba(245, 196, 81, 0.34);
  --achievement-aura-strength: 0.94;
}

@keyframes overlayIn {
  from {
    background: rgba(8, 10, 12, 0);
    backdrop-filter: blur(0);
  }

  to {
    background: rgba(8, 10, 12, 0.78);
    backdrop-filter: blur(12px);
  }
}

@keyframes resultCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
    box-shadow: 0 0 0 var(--rarity-glow, rgba(0, 0, 0, 0));
  }

  68% {
    transform: translateY(-2px) scale(1.012);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes raritySweep {
  from {
    left: -40%;
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  to {
    left: 115%;
    opacity: 0;
  }
}

@keyframes resultCoinReveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(var(--result-coin-scale-start, 0.84)) rotate(-5deg);
  }

  70% {
    opacity: 1;
    transform: translateY(-4px) scale(var(--result-coin-scale-pop, 1.04)) rotate(2deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(var(--result-coin-scale, 1)) rotate(0);
  }
}

@keyframes legendaryBreath {
  0%,
  100% {
    box-shadow: 0 0 90px var(--rarity-glow, rgba(0, 0, 0, 0.3));
  }

  50% {
    box-shadow:
      0 0 0 1px var(--rarity-color),
      0 0 124px var(--rarity-glow, rgba(245, 196, 81, 0.68));
  }
}

@keyframes achievementCardIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.90);
  }

  72% {
    opacity: 1;
    transform: translateY(-4px) scale(1.015);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes achievementEmblemIn {
  from {
    opacity: 0;
    transform: scale(0.70) rotate(-8deg);
  }

  74% {
    opacity: 1;
    transform: scale(1.045) rotate(1deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes achievementHalo {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.30;
  }

  50% {
    transform: scale(1.04);
    opacity: 0.76;
  }
}

@keyframes achievementAuraBreath {
  0%,
  100% {
    opacity: calc(var(--achievement-aura-strength, 0.32) * 0.72);
    transform: scaleX(1.06) scaleY(0.92);
  }

  50% {
    opacity: var(--achievement-aura-strength, 0.32);
    transform: scaleX(1.22) scaleY(1.08);
  }
}

@media (max-height: 820px) and (min-width: 861px) {
  .app-shell {
    padding: 12px;
    gap: 10px;
  }

  .topbar {
    min-height: 62px;
    padding: 8px 10px;
  }

  .brand {
    font-size: 34px;
  }

  .case-panel {
    min-height: 96px;
    padding: 12px;
  }

  .case-panel h1 {
    font-size: 30px;
  }

  .case-panel p {
    font-size: 12px;
  }

  .case-summary-item {
    min-height: 46px;
    padding: 7px 9px;
  }

  .open-button {
    min-height: 58px;
  }

  .main-menu-title {
    margin-bottom: 28px;
  }

  .main-menu-title h1 {
    font-size: 72px;
  }

  .main-menu-button {
    min-height: 52px;
  }

  .mint-heading {
    padding-top: 4px;
    padding-bottom: 12px;
  }

  .mint-heading h1 {
    font-size: 34px;
  }

  .mint-card {
    grid-template-rows: minmax(180px, 26vh) minmax(0, 1fr);
  }

  .mint-card-copy {
    gap: 6px 14px;
    padding: 16px;
  }
}

@media (max-width: 860px) {
  body {
    overflow: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
    gap: 10px;
    padding: 10px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "tabs"
      "resources";
    gap: 8px;
    padding: 10px;
  }

  .brand-block {
    grid-area: brand;
  }

  .brand {
    font-size: 32px;
  }

  .screen-tabs {
    grid-area: tabs;
    justify-self: stretch;
    width: 100%;
  }

  .desktop-tab-label {
    display: none;
  }

  .mobile-tab-label {
    display: inline;
  }

  .resource-strip {
    grid-area: resources;
    display: grid;
    grid-template-columns: 1fr 1fr 72px 58px;
    gap: 6px;
  }

  .resource {
    min-width: 0;
  }

  .main-menu-content {
    min-height: 100vh;
    padding: 48px 28px;
  }

  .main-menu-title h1 {
    font-size: 72px;
  }

  .main-menu-status {
    right: 28px;
    bottom: 28px;
  }

  .mint-screen {
    padding-top: 0;
  }

  .mint-grid {
    grid-template-columns: 1fr;
  }

  .mint-card {
    grid-template-rows: minmax(220px, 32vh) auto;
  }

  .case-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .case-art {
    height: 150px;
  }

  .case-art img {
    max-width: 280px;
    max-height: 150px;
  }

  .roulette-panel {
    min-height: auto;
  }

  .case-actions {
    justify-content: stretch;
  }

  .secondary-button {
    width: 100%;
  }

  .roulette-footer {
    grid-template-columns: 1fr;
  }

  .roulette-footer .open-button {
    grid-column: 1;
    justify-self: center;
  }

  .roulette-panel {
    min-height: 470px;
  }

  .collection-section {
    min-height: 620px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

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

  .collection-stat {
    min-width: 0;
    text-align: left;
  }

  .profile-section {
    min-height: 720px;
  }

  .profile-identity {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .avatar-frame {
    width: 112px;
  }

  .profile-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .profile-showcase {
    grid-template-columns: 1fr;
  }

  .profile-auth-card {
    grid-template-columns: 1fr;
  }

  .auth-providers {
    padding: 0 0 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-achievements-panel .achievement-strip {
    display: grid;
    overflow: visible;
  }

  .profile-collection[data-size="large"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-collection[data-size="medium"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .profile-collection[data-size="compact"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .lucky-coin-stage {
    height: min(400px, 52vh);
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    gap: 8px;
    padding: 8px;
  }

  .topbar {
    padding: 8px;
  }

  .inventory-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-self: stretch;
  }

  .inventory-category {
    gap: 5px;
    min-width: 0;
    padding-inline: 6px;
    font-size: 11px;
  }

  .tab-button {
    padding: 0 4px;
    font-size: 11px;
  }

  .main-menu-content {
    justify-content: flex-start;
    padding: 72px 18px 28px;
  }

  .main-menu-title {
    margin-bottom: 38px;
  }

  .main-menu-title h1 {
    font-size: 56px;
  }

  .main-menu-title span {
    font-size: 10px;
  }

  .main-menu-actions {
    width: 100%;
  }

  .main-menu-button {
    min-height: 56px;
  }

  .main-menu-status {
    position: static;
    align-items: stretch;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 28px;
  }

  .main-menu-profile {
    align-content: center;
  }

  .mint-heading {
    align-items: start;
    padding: 8px 2px 14px;
  }

  .mint-heading h1 {
    font-size: 30px;
  }

  .mint-card {
    grid-template-rows: 210px auto;
  }

  .mint-card-copy {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .mint-card-copy p {
    min-height: 0;
    -webkit-line-clamp: 3;
  }

  .mint-card-featured {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .mint-card-featured strong {
    text-align: left;
  }

  .mint-open-button {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
  }

  .case-summary,
  .result-meta,
  .box-composition {
    grid-template-columns: 1fr;
  }

  .result-overlay,
  .box-overlay,
  .achievement-earned-overlay {
    padding: 8px;
  }

  .result-card,
  .box-card {
    max-height: calc(100dvh - 16px);
    padding: 16px;
  }

  .result-card {
    padding: 0;
  }

  .result-card-scroll {
    max-height: calc(100dvh - 16px);
    padding: 16px;
  }

  .achievement-earned-card {
    max-height: calc(100dvh - 16px);
    padding: 22px 16px 20px;
  }

  .achievement-earned-card h2 {
    max-width: calc(100% - 48px);
    margin-top: 8px;
    font-size: 28px;
  }

  .achievement-earned-emblem {
    width: min(270px, 74vw);
    margin-top: 14px;
  }

  .achievement-earned-card > p {
    font-size: 12px;
  }

  .achievement-earned-continue {
    width: 100%;
    margin-top: 18px;
  }

  .close-button {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .result-rarity {
    display: block;
    padding-right: 42px;
  }

  .result-card h2 {
    max-width: 100%;
    margin-top: 10px;
    overflow-wrap: normal;
    font-size: 26px;
  }

  .result-coin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .result-coin img {
    height: 140px;
  }

  .result-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
  }

  .highlight-pill {
    min-height: 62px;
    padding: 8px 6px;
  }

  .highlight-pill span {
    font-size: 8px;
    letter-spacing: 0;
  }

  .highlight-pill strong {
    font-size: 12px;
  }

  .subtitle {
    display: none;
  }

  .resource {
    padding: 6px 8px;
  }

  .resource-label {
    font-size: 8px;
  }

  .resource strong {
    font-size: 16px;
  }

  .ghost-button {
    min-width: 46px;
    height: 42px;
    font-size: 12px;
  }

  .sound-button {
    min-width: 58px;
  }

  .case-panel {
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 10px;
    padding: 12px;
  }

  .case-panel h1 {
    font-size: 28px;
  }

  .case-panel p {
    font-size: 11px;
  }

  .case-art {
    grid-column: 2;
    grid-row: 1;
    height: 112px;
  }

  .case-art img {
    max-width: 118px;
    max-height: 112px;
  }

  .featured-coin,
  .case-actions {
    grid-column: 1 / -1;
  }

  .featured-coin {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .coin-orbit,
  .coin-orbit img {
    width: 48px;
    height: 48px;
  }

  .roulette-window {
    height: 200px;
  }

  .roulette-panel {
    min-height: 330px;
  }

  .roulette-footer {
    gap: 8px;
    padding: 10px;
  }

  .last-drop {
    min-height: 48px;
    padding-inline: 12px;
  }

  .open-button {
    width: 100%;
    min-height: 56px;
  }

  .roll-card {
    flex-basis: 128px;
    width: 128px;
    height: 140px;
    padding: 7px;
  }

  .roll-card .coin-art::before {
    width: 104px;
    height: 104px;
  }

  .roll-card .coin-art img {
    width: 112px;
    height: 112px;
  }

  .result-card {
    scrollbar-width: thin;
  }

  .collection-stats {
    grid-template-columns: 1fr;
  }

  .profile-section {
    min-height: 0;
    overflow: visible;
  }

  .profile-content,
  .profile-gate {
    padding: 12px;
  }

  .profile-gate-card {
    padding: 20px;
  }

  .profile-identity {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 13px;
    padding-bottom: 16px;
  }

  .avatar-frame {
    width: 82px;
  }

  .avatar-frame span {
    font-size: 30px;
  }

  .profile-identity h2 {
    font-size: 28px;
  }

  .profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .profile-action {
    width: 100%;
  }

  .profile-showcase {
    gap: 12px;
    padding-top: 12px;
  }

  .profile-gate {
    padding: 8px;
  }

  .profile-gate-card {
    padding: 18px;
  }

  .auth-fields-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel-heading,
  .profile-collection-heading,
  .profile-side-panel {
    padding: 12px;
  }

  .profile-panel-heading h3,
  .profile-collection-heading h3 {
    font-size: 19px;
  }

  .lucky-coin-stage {
    height: 320px;
    min-height: 260px;
  }

  .profile-collection-panel {
    margin-top: 12px;
    padding: 0 12px 14px;
  }

  .profile-collection-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .collection-heading-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .collection-view-control {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .view-size-button {
    min-width: 0;
    padding-inline: 5px;
  }

  .profile-collection[data-size="large"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .profile-collection[data-size="medium"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .profile-collection[data-size="compact"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .collection-pager {
    flex-wrap: wrap;
  }

  .profile-overlay {
    padding: 8px;
  }

  .profile-modal {
    max-height: calc(100dvh - 16px);
    padding: 18px;
  }

  .achievement-row {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .achievement-row .achievement-medal {
    width: 50px;
    height: 50px;
  }

  .achievement-row > span {
    grid-column: 2;
  }

  .result-replace-button {
    top: 8px;
    right: 52px;
    height: 36px;
    min-width: 92px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .result-card.is-showcase-detail .result-rarity {
    padding-right: 150px;
  }
}

@media (max-width: 1080px) {
  .mint-catalog {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mint-taxonomy {
    position: static;
    display: block;
    overflow-x: auto;
    padding: 8px 0;
  }

  .mint-taxonomy > .section-kicker {
    display: none;
  }

  .mint-region-nav {
    display: flex;
    width: max-content;
    gap: 5px;
  }

  .mint-region-button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    white-space: nowrap;
  }

  .mint-region-button.is-active {
    border-color: rgba(245, 196, 81, 0.54);
    background: rgba(201, 164, 92, 0.14);
  }
}

@media (max-width: 760px) {
  .mint-roots {
    grid-template-columns: 1fr;
  }

  .mint-root {
    height: 122px;
  }

  .mint-root-copy {
    padding: 18px;
  }

  .mint-results-head {
    display: grid;
    align-items: start;
  }

  .mint-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(132px, 0.7fr);
    width: 100%;
  }

  .mint-search input,
  .mint-filter select {
    width: 100%;
  }

  .mint-card {
    grid-template-rows: 200px auto;
  }
}

@media (max-width: 480px) {
  .mint-heading h1 {
    font-size: 28px;
  }

  .mint-root-copy strong {
    font-size: 22px;
  }

  .mint-toolbar {
    grid-template-columns: 1fr;
  }

  .mint-grid {
    grid-template-columns: 1fr;
  }

  .mint-card-action .mint-open-button {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }
}

@media (max-width: 560px) {
  .result-inventory-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .destroy-coin-button {
    width: 100%;
  }

  .destroy-coin-overlay {
    padding: 8px;
  }

  .destroy-coin-card {
    max-height: calc(100dvh - 16px);
    padding: 22px 16px;
  }

  .destroy-coin-preview {
    width: 132px;
    height: 132px;
  }

  .destroy-quantity {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .destroy-quantity-presets {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .energy-cost::before,
  .energy-cost::after,
  .achievement-earned-emblem::after {
    animation: none;
  }
}
