:root {
  --bg-deep: #0c0608;
  --bg-card: #181018;
  --bg-card-hover: #221420;
  --red-mid: #6a1018;
  --red-dark: #3a080c;
  --gold: #ffd24a;
  --gold-deep: #c8901a;
  --text: #fff1c4;
  --text-muted: #b89070;
  --font-display: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(120, 20, 30, 0.45), transparent),
    radial-gradient(circle at 10% 90%, rgba(200, 144, 26, 0.08), transparent 40%),
    var(--bg-deep);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, sans-serif;
}

#hub {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding:
    max(20px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.hub-header {
  text-align: center;
  padding: 12px 0 28px;
}

.hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.hub-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 2px solid rgba(255, 210, 74, 0.55);
  background: radial-gradient(circle at 35% 28%, rgba(48, 20, 20, 0.95), rgba(10, 5, 5, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 210, 74, 0.15), 0 4px 16px rgba(0, 0, 0, 0.45);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 2px;
  color: #fff1c4;
}

.hub-kicker {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hub-brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 400;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(255, 180, 40, 0.25);
}

.hub-tagline {
  margin: 14px auto 0;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.hub-wallet {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 74, 0.35);
  background: rgba(24, 16, 24, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 210, 74, 0.08);
}

.hub-wallet-icon {
  font-size: 22px;
  line-height: 1;
}

.hub-wallet-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.hub-wallet-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hub-wallet-value {
  font-size: 20px;
  line-height: 1.1;
  color: var(--gold);
}

.hub-main {
  flex: 1;
  width: min(960px, 100%);
  margin: 0 auto;
}

.hub-section {
  margin-bottom: 32px;
}

.hub-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hub-section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.hub-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 210, 74, 0.12);
  border: 1px solid rgba(255, 210, 74, 0.35);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

.hub-badge-soon {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 210, 74, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 210, 74, 0.06), transparent 38%),
    linear-gradient(180deg, var(--bg-card), #120810);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

a.game-card:hover,
a.game-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 210, 74, 0.55);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 180, 40, 0.12);
}

a.game-card:active {
  transform: translateY(-1px);
}

.game-card.is-soon {
  pointer-events: none;
  opacity: 0.72;
  border-color: rgba(255, 255, 255, 0.08);
}

.game-card-thumb {
  position: relative;
  height: 120px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 120%, rgba(120, 20, 30, 0.55), transparent 60%),
    linear-gradient(180deg, #2a1018, #120608);
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.game-card-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 42px;
  opacity: 0.35;
}

.game-card-play {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe9a0, #f0a818);
  color: #4a0808;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.game-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 16px;
  flex: 1;
}

.game-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--gold);
}

.game-card-subtitle {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.game-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

.game-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.game-card-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: rgba(255, 241, 196, 0.75);
}

.game-card-soon-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  z-index: 1;
}

.hub-footer {
  margin-top: auto;
  padding-top: 20px;
  text-align: center;
}

.hub-footer p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(184, 144, 112, 0.75);
}

@media (min-width: 720px) {
  .hub-header {
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .hub-grid {
    gap: 18px;
  }

  .game-card {
    min-height: 240px;
  }

  .game-card-thumb {
    height: 132px;
  }
}
