*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scrollbar-width: thin;
  scrollbar-color: #c3d4e8 #eef4fb;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #eef4fb;
}

::-webkit-scrollbar-thumb {
  background: #c3d4e8;
  border-radius: 8px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: #eef4fb;
  color: #1f2b3d;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* TOPBAR */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e3ebf5;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
}

.topbar-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e3f4ee;
  color: #2aa198;
}

.topbar-logo-icon svg {
  width: 18px;
  height: 18px;
}

.coin-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe082, #f6b93b 70%, #e09f2b);
  border: 1px solid #e0a32e;
  vertical-align: -3px;
}

.coin-icon.sm {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}

.topbar-logo-text b {
  color: #2aa198;
}

.topbar-logo-text {
  color: #1c8f8f;
  font-weight: 600;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5b6b80;
  font-size: 14px;
}

.topbar-links a.active {
  color: #1f2b3d;
  font-weight: 600;
}

.topbar-dot {
  color: #b9c6d6;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.coin-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 12px;
  background: #fff;
  border: 1px solid #e3ebf5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(31, 43, 61, 0.05);
}

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

.coin-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #35c98e;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.icon-btn {
  position: relative;
  color: #44546a;
  padding: 6px;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.icon-btn-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.profile-avatar {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dfe9f5;
  align-items: center;
  justify-content: center;
  color: #5b6b80;
}

.profile-avatar svg {
  width: 17px;
  height: 17px;
}

.profile-caret {
  color: #8fa0b5;
  display: inline-flex;
}

.profile-caret svg {
  width: 14px;
  height: 14px;
}

/* LAYOUT */

.page {
  display: flex;
  align-items: flex-start;
}

/* SIDEBAR */

.sidebar {
  position: sticky;
  top: 61px;
  width: 200px;
  min-width: 200px;
  min-height: calc(100vh - 61px);
  padding: 18px 12px;
  background: #fff;
  border-right: 1px solid #e3ebf5;
  display: flex;
  flex-direction: column;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  color: #3b4a5f;
}

.sidebar-link:hover {
  background: #f2f7fd;
}

.sidebar-link.active {
  background: #e4f8ef;
  color: #16a37b;
  font-weight: 600;
}

.sidebar-icon {
  width: 20px;
  text-align: center;
  display: inline-flex;
  justify-content: center;
}

.sidebar-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-foot {
  margin-top: auto;
  padding: 24px 10px 6px;
  text-align: left;
}

.sidebar-quote {
  font-size: 13px;
  font-style: italic;
  color: #7fa8d9;
}

.sidebar-foot-art {
  margin-top: 8px;
}

.sidebar-foot-art svg {
  width: 46px;
  height: 46px;
}

/* CONTENT */

.content {
  flex: 1;
  padding: 24px 28px 60px;
  min-width: 0;
}

/* HERO */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 36px;
  border-radius: 20px;
  background: linear-gradient(120deg, #1f5fbf 0%, #2fa08c 100%);
  overflow: hidden;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-gamepad svg {
  width: 34px;
  height: 34px;
  display: block;
}

.hero h1 {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
}

.hero p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-tagline {
  position: absolute;
  top: 8px;
  right: 10px;
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
  color: #ffe9a8;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.5px;
  white-space: nowrap;
  transform: rotate(-4deg);
}

.hero-banner {
  max-height: 110px;
  width: auto;
  border-radius: 14px;
  object-fit: contain;
  display: block;
}

.topbar-logo-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

/* TABS */

.games-tabs {
  display: flex;
  gap: 10px;
  margin: 22px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.game-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e3ebf5;
  font-size: 14px;
  color: #44546a;
  white-space: nowrap;
}

.game-tab.active {
  background: #2f7cf6;
  border-color: #2f7cf6;
  color: #fff;
  font-weight: 600;
}

.tab-icon {
  display: inline-flex;
}

.tab-icon svg {
  width: 16px;
  height: 16px;
}

/* SECTIONS */

.games-section {
  margin-bottom: 26px;
}

.games-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.games-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #22314a;
}

.section-icon {
  display: inline-flex;
  color: #2f7cf6;
}

.section-icon svg {
  width: 18px;
  height: 18px;
}

.see-all {
  font-size: 13px;
  font-weight: 600;
  color: #2f7cf6;
}

/* ROWS */

.games-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.games-row.row-big {
  grid-auto-columns: minmax(230px, 1fr);
}

.games-row.row-compact {
  grid-auto-columns: minmax(220px, 1fr);
}

/* CARD */

.game-card {
  position: relative;
  background: #fff;
  border: 1px solid #e9f0f8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(31, 43, 61, 0.05);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(31, 43, 61, 0.1);
}

.game-card-image {
  height: 110px;
  background: #f2f6fc;
  overflow: hidden;
}

.game-card.big .game-card-image {
  height: 140px;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card-body {
  padding: 10px 40px 12px 14px;
}

.game-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #22314a;
}

.game-card-meta {
  margin-top: 3px;
  font-size: 12px;
  color: #7a8aa0;
}

.game-card-coin {
  margin-top: 5px;
  font-size: 12px;
  color: #8b98ab;
  display: flex;
  align-items: center;
  gap: 4px;
}

.game-card-go {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8f1fe;
  color: #2f7cf6;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.game-card-go svg {
  width: 14px;
  height: 14px;
}

/* COMPACT CARD */

.game-card.compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.game-card.compact .game-card-image {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
}

.game-card.compact .game-card-body {
  padding: 0 26px 0 0;
}

.game-card.compact .game-card-go {
  top: 50%;
}

/* FOOTER */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 22px 28px;
  background: #ffffff;
  border-top: 1px solid #e3ebf5;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.footer-name {
  font-size: 15px;
  font-weight: 700;
  color: #1c8f8f;
}

.footer-slogan {
  font-size: 12px;
  color: #7a8aa0;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: #44546a;
}

.footer-links a:hover {
  color: #2f7cf6;
}

.footer-copy {
  font-size: 12px;
  color: #8fa0b5;
}

/* NO GAMES */

.no-games {
  text-align: center;
  padding: 60px 20px;
  color: #7a8aa0;
}

.no-games h2 {
  margin-top: 12px;
  color: #22314a;
}

.empty-illustration {
  font-size: 48px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .topbar-links {
    display: none;
  }

  .topbar {
    padding: 10px 14px;
    gap: 12px;
  }

  .sidebar {
    width: 58px;
    min-width: 58px;
    padding: 12px 6px;
  }

  .sidebar-link span:last-child,
  .sidebar-foot {
    display: none;
  }

  .sidebar-link {
    justify-content: center;
    padding: 11px;
  }

  .coin-pill span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
  }

  .content {
    padding: 14px 12px 40px;
  }

  .hero {
    padding: 16px;
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

.hero-art {
    width: 100%;
    justify-content: center;
  }

  .hero-banner {
    max-height: 90px;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 20px;
  }

  .hero p {
    font-size: 12px;
  }

  .profile-name,
  .profile-caret {
    display: none;
  }

  .topbar-logo-text {
    display: none;
  }

.games-tabs {
    gap: 8px;
    margin: 16px 0;
  }

  .game-tab {
    padding: 9px 14px;
    font-size: 13px;
  }

  .games-row {
    grid-auto-columns: minmax(160px, 78%);
  }

  .games-row.row-big {
    grid-auto-columns: minmax(190px, 80%);
  }

  .games-row.row-compact {
    grid-auto-columns: minmax(200px, 82%);
  }

  .game-card-image {
    height: 96px;
  }

  .game-card.big .game-card-image {
    height: 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card {
    transition: none;
  }
}
