@font-face {
  font-family: 'Inter';
  src: url("/fonts/Inter-Variable.woff2") format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --app-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display-font: var(--app-font);
}

html,
body {
  font-family: var(--app-font);
}

body {
  touch-action: manipulation;
}

.hub__currency {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem 0.25rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 10, 32, 0.6);
  border: 1px solid rgba(176, 143, 255, 0.32);
  color: #f0ecff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.hub__currency--gold {
  border-color: rgba(232, 184, 79, 0.42);
  background:
    linear-gradient(135deg, rgba(232, 184, 79, 0.18) 0%, rgba(160, 110, 40, 0.12) 100%),
    rgba(15, 10, 32, 0.6);
  color: #f3e6c4;
}

.hub__currency--diamond {
  border-color: rgba(122, 214, 240, 0.42);
  background:
    linear-gradient(135deg, rgba(122, 214, 240, 0.18) 0%, rgba(60, 130, 170, 0.12) 100%),
    rgba(15, 10, 32, 0.6);
  color: #d6f1fb;
}

.hub__currency-icon {
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.hub__currency-value {
  text-shadow: 0 1px 4px rgba(13, 8, 32, 0.85);
}

@media (max-width: 540px) {
  .hub__currency { padding: 0.22rem 0.55rem 0.22rem 0.4rem; font-size: 0.74rem; }
}

.flash {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(92vw, 28rem);
  pointer-events: none;
}

.flash__toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.5rem 0.6rem 0.85rem;
  border-radius: 0.6rem;
  background: rgba(15, 10, 32, 0.92);
  border: 1px solid rgba(176, 143, 255, 0.32);
  color: #f0ecff;
  font-size: 0.88rem;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: flash-slide-in 0.22s ease-out;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.flash__toast--dismissing {
  opacity: 0;
  transform: translateY(0.4rem);
}

.flash__message {
  flex: 1 1 auto;
  text-shadow: 0 1px 4px rgba(13, 8, 32, 0.85);
}

.flash__close {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.15rem 0.45rem;
  cursor: pointer;
  opacity: 0.7;
}

.flash__close:hover,
.flash__close:focus {
  opacity: 1;
}

@keyframes flash-slide-in {
  from { opacity: 0; transform: translateY(0.6rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .flash__toast { animation: none; transition: opacity 0.15s ease; }
  .flash__toast--dismissing { transform: none; }
}

.equipped-title {
  display: inline-block;
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffd66e;
  text-shadow: 0 0 10px rgba(255, 196, 70, 0.25);
  text-decoration: none;
}

.equipped-title::before { content: "â "; opacity: 0.5; }
.equipped-title::after  { content: " âž"; opacity: 0.5; }

a.equipped-title:hover,
a.equipped-title:focus {
  color: #ffe699;
  text-shadow: 0 0 14px rgba(255, 196, 70, 0.4);
}

.equipped-title-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a82a8;
}