/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

/* ── Tokens ── */
:root {
  --bg:               #141218;
  --surface:          #1e1f25;
  --primary:          #b0c6ff;
  --on-primary:       #152e60;
  --secondary-c:      #404659;
  --on-secondary-c:   #dce2f9;
  --on-secondary:     #293042;
  --tertiary-c:       #593d5a;
  --on-tertiary-c:    #fdd7fa;
  --on-surface:       #e2e2e9;
  --on-surface-var:   #c5c6d0;
  --text-dim:         #6a6a7f;
  --nav-border:       #3b3c41;
  --r-card:           28px;
  --r-full:           1000px;
  --font:             'Google Sans Flex', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-logo:        'Comfortaa', cursive;
  --font-mono:        'JetBrains Mono', 'Google Sans Code', ui-monospace, monospace;
}

html, body { overflow-x: hidden; }
html { background: var(--bg); }

body {
  font-family: var(--font);
  font-weight: 500;
  background: var(--bg);
  color: var(--on-surface);
  min-height: 100vh;
}

/* ── Material Icons ── */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: inherit;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
  vertical-align: middle;
}
.icon-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--nav-border);
  padding: 24px 40px;
  overflow: hidden;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo – absolute positioning to match Figma spec exactly */
.logo {
  height: 68px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.logo-desktop {
  height: 68px;
  width: auto;
}

.logo-mobile {
  display: none;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-pill {
  background: var(--surface);
  border-radius: var(--r-full);
  padding: 16px 16px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
}

.nav-icon {
  color: var(--primary);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s;
  width: 32px;
  height: 32px;
}
.nav-icon:hover { color: var(--on-surface); }

/* ══════════════════════════════════════════
   RADIO COMPONENT
══════════════════════════════════════════ */
.fixed-radio-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px 0 28px;
  background-color: var(--surface);
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.center-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #2a2a30;
  flex-shrink: 0;
}

.station-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 180px;
  height: 40px;
}

.station-mask {
  width: 134px;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(to right, black 30%, transparent 100%);
  mask-image: linear-gradient(to right, black 20%, transparent 100%);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  will-change: transform;
}

.station-text {
  display: inline-block;
  font-size: 18px;
  font-weight: 500;
  color: var(--on-surface);
  white-space: nowrap;
  flex-shrink: 0;
}

.dropdown-arrow-fixed {
 /* position: absolute; */
 /* right: 0; */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-var);
  pointer-events: none;
  font-size: 24px;
}

.invisible-select {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
  appearance: none;
  color-scheme: dark;
}

.invisible-select option {
  background-color: var(--surface);
  color: var(--on-surface);
  font-weight: 500;
  font-size: 16px;
}

.invisible-select option:checked {
  background-color: #2a2a30;
  color: var(--primary);
}

.v-separator {
  color: var(--nav-border);
  font-size: 18px;
  padding-inline: 8px 16px;
  user-select: none;
}

.right-block {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fixed-radio-text {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.action-container {
  color: var(--primary);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-fixed { font-size: 24px; }

.fixed-radio-pill .material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.marquee-anim {
  animation: marquee-infinite var(--scroll-duration, 6s) linear infinite;
}

@keyframes marquee-infinite {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--copy-width)); }
}

.spin-anim {
  animation: spin-loading 1.2s linear infinite;
}

@keyframes spin-loading {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.css-spinner {
  display: inline-block;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: css-spin 0.8s linear infinite;
}

@keyframes css-spin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════
   MOBILE RADIO BAR
══════════════════════════════════════════ */
#mobile-radio-bar {
  display: none;
}

/* ══════════════════════════════════════════
   PAGE LAYOUT
══════════════════════════════════════════ */
.page { padding-top: 132px; }

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 45px;
  max-width: 1920px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  display: flex;
  gap: 16px;
  width: 100%;
  align-items: stretch;
  min-height: 537px;
}

.hero-banner {
  flex: 1;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  min-width: 0;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
  line-height: 20px;
  white-space: nowrap;
}
.tag-tertiary { background: var(--tertiary-c); color: var(--on-tertiary-c); }
.tag-secondary { background: var(--secondary-c); color: var(--on-secondary-c); }
.tag .material-symbols-rounded { font-size: 18px; }

.tag-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--on-tertiary-c);
  flex-shrink: 0;
}

.hero-copy { display: flex; flex-direction: column; }

.hero-title {
  font-size: clamp(64px, 6.5vw, 96px);
  line-height: 1.0;
  font-weight: 500;
  color: var(--on-surface);
}

.hero-desc {
  font-size: 22px;
  line-height: 32px;
  letter-spacing: -0.1px;
  color: var(--on-surface);
  margin-top: 4px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  padding: 24px 48px;
  border-radius: var(--r-full);
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  align-self: flex-start;
  height: 80px;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.88; }

/* Right: decorative cards illustration */
.hero-image {
  flex: 0 0 auto;
  width: min(876px, 50%);
  min-height: 537px;
  background: #c7b3fc;
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
}

.cards-wrapper {
  position: absolute;
  width: 1487px;
  height: 1449px;
  left: -305px;
  top: -456px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cards-rotated {
  transform: rotate(30deg);
  position: relative;
  width: 1126px;
  height: 1023px;
  flex-shrink: 0;
}

.fc {
  position: absolute;
  width: 206px;
  height: 325px;
  border-radius: 53px;
}

.fc-word {
  position: absolute;
  top: 19.38%;
  left: 0; right: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 500;
  text-align: center;
  padding: 0 37.38%;
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
}

.fc-char {
  position: absolute;
  top: 29.85%;
  left: 26.7%;
  right: 26.7%;
  bottom: 44.62%;
  font-size: 84px;
  line-height: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fc-play {
  position: absolute;
  bottom: 17.23%;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.fc-play .material-symbols-rounded {
  font-size: 24px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ══════════════════════════════════════════
   GAMES SECTION
══════════════════════════════════════════ */
.games-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 1250px;
}

.about-teaser {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 1250px;
}

.btn-about-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--r-full);
  background-color: var(--primary);
  color: var(--on-primary);
  font-size: 1rem;
  font-weight: 500;
  align-self: flex-start;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-about-cta:hover  { opacity: 0.88; }
.btn-about-cta:active { transform: scale(0.97); }

.section-header { display: flex; flex-direction: column; gap: 16px; }

.section-title {
  font-size: clamp(40px, 4.5vw, 57px);
  line-height: 64px;
  font-weight: 500;
  color: var(--on-surface);
  letter-spacing: 0.25px;
}

.section-desc {
  font-size: 22px;
  line-height: 36px;
  letter-spacing: -0.1px;
  color: var(--text-dim);
}
.section-desc .fg-primary { color: var(--primary); }
.section-desc .fg-on-surface { color: var(--on-surface); }

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

/* Game card */
.game-card {
  background: var(--surface);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.game-card-img {
  height: 199px;
  overflow: hidden;
  position: relative;
  border-radius: var(--r-card);
  flex-shrink: 0;
}
.game-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.game-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}
.game-card-body > .tag { align-self: flex-start; }

.game-card-text {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.game-card-title {
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
  color: var(--on-surface-var);
}

.game-card-desc {
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.1px;
  color: var(--on-surface-var);
  font-weight: 500;
}

.difficulty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.difficulty-label {
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-var);
  letter-spacing: 0.1px;
  font-weight: 500;
}

.difficulty-badge {
  background: var(--tertiary-c);
  color: var(--on-tertiary-c);
  padding: 8px 16px;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.diff-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.diff-bars span {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: var(--on-tertiary-c);
}
.diff-bars span:nth-child(1) { height: 5px; }
.diff-bars span:nth-child(2) { height: 10px; }
.diff-bars span:nth-child(3) { height: 14px; }
.diff-bars span.off { opacity: 0.2; }

.game-card-footer {
  padding: 4px 0 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

.game-card-divisor {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.play-cta {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  line-height: 32px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  transition: opacity 0.15s;
}
.play-cta:hover { opacity: 0.8; }

/* ══════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════ */
.contact-section {
  display: flex;
  gap: 28px;
  width: 100%;
  max-width: 1250px;
  align-items: flex-start;
}

.contact-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 597px;
}

.contact-title {
  font-size: clamp(40px, 4.5vw, 57px);
  line-height: 64px;
  font-weight: 500;
  color: var(--on-surface);
  letter-spacing: 0.25px;
}

.contact-desc {
  font-size: 22px;
  line-height: 36px;
  letter-spacing: -0.1px;
  color: var(--on-surface);
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 21px;
  max-width: 625px;
}

.form-field {
  background: transparent;
  border: 1px solid rgba(192,198,220,0.2);
  border-radius: 20px;
  padding: 22px 24px;
  color: var(--on-surface-var);
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.1px;
  font-family: var(--font);
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  width: 100%;
  height: 66px;
}
.form-field::placeholder { color: rgba(197,198,208,0.5); }
.form-field:focus { border-color: rgba(192,198,220,0.75); }

.form-textarea {
  height: 141px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  padding: 16px 32px;
  border-radius: var(--r-full);
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  align-self: flex-end;
  transition: opacity 0.15s;
}
.btn-submit:hover { opacity: 0.88; }

/* ══════════════════════════════════════════
   WAVE DIVIDER
══════════════════════════════════════════ */
.wave-divider {
  width: 100%;
  line-height: 0;
  height: 17px;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 45px;
  width: 100%;
}

.footer {
  width: 100%;
  max-width: 1250px;
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: center;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  width: 550px;
  flex-shrink: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
}

.footer-desc {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.1px;
  color: var(--on-surface);
  width: 100%;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  text-align: right;
}

.footer-games-label {
  font-size: 22px;
  line-height: 36px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: -0.1px;
}

.footer-game-link {
  font-size: 22px;
  line-height: 36px;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: -0.1px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.footer-game-link:hover { opacity: 0.75; }

.copyright {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #201e24;
  border-radius: var(--r-full);
  padding: 8px 32px;
  font-size: 14px;
  line-height: 36px;
  letter-spacing: -0.1px;
  color: var(--on-surface);
  font-family: var(--font-mono);
  font-weight: 400;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   MOBILE-ONLY ELEMENTS (hidden on desktop)
══════════════════════════════════════════ */
.mobile-menu-btn,
.mobile-user-btn { display: none; }

/* ══════════════════════════════════════════
   MOBILE MENU DRAWER
══════════════════════════════════════════ */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-menu-backdrop.open { opacity: 1; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  flex-direction: column;
  padding: 24px 16px 40px;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu.open { transform: translateX(0); }

@media (max-width: 1100px) {
  .mobile-menu-backdrop { display: block; pointer-events: none; }
  .mobile-menu-backdrop.open { pointer-events: all; }
  .mobile-menu { display: flex; }
}

.mobile-menu-close {
  color: var(--on-surface);
  font-size: 28px;
  display: flex;
  align-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.mobile-menu-close .material-symbols-rounded { font-size: 28px; }

.mobile-menu-logo {
  height: 48px;
  width: auto;
  margin-top: 24px;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 40px;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  border-radius: var(--r-full);
  font-size: 22px;
  font-weight: 500;
  color: var(--on-surface);
  transition: background 0.15s, color 0.15s;
}

.mobile-menu-item .material-symbols-rounded { font-size: 24px; }

.mobile-menu-item:hover { background: var(--surface); }

.mobile-menu-item.active {
  color: var(--primary);
}

.mobile-menu-item.active .material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 32px;
}

.mobile-menu-login {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  border-radius: var(--r-full);
  font-size: 22px;
  font-weight: 500;
  color: var(--primary);
  width: 100%;
  transition: background 0.15s;
}

.mobile-menu-login:hover { background: var(--surface); }
.mobile-menu-login .material-symbols-rounded { font-size: 24px; }

/* ══════════════════════════════════════════
   LOGIN MODAL
══════════════════════════════════════════ */
.login-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.login-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.login-modal-card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.login-modal-card[hidden] { display: none; }

.login-modal-backdrop.open .login-modal-card {
  transform: translateY(0);
}

.login-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.login-modal-logo {
  width: 81px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 2px;
}

.login-modal-title {
  font-size: 32px;
  font-weight: 500;
  color: var(--on-surface);
  text-align: center;
  line-height: normal;
  letter-spacing: 0.25px;
}

.login-modal-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dim);
  text-align: center;
  line-height: 28px;
  letter-spacing: -0.1px;
}

.login-modal-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-google-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 40px;
  padding: 10px 13px 10px 10px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 20px;
  font-family: 'Roboto', var(--font);
  font-size: 14px;
  font-weight: 500;
  color: #3c4043;
  letter-spacing: 0.25px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-google-signin:hover { background: #f8f8f8; }

.btn-google-signin svg { flex-shrink: 0; }

.btn-cancelar {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: -0.1px;
  cursor: pointer;
  padding: 4px 16px;
  transition: color 0.15s;
}

.btn-cancelar:hover { color: var(--on-surface); }

.nav-pill.has-avatar {
  padding: 0;
  overflow: hidden;
}

.nav-pill.has-avatar #nav-user-btn {
  width: 56px;
  height: 56px;
}

.mobile-user-btn.has-avatar {
  padding: 0;
  overflow: hidden;
}

.nav-avatar-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}


.auth-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #ffb4ab;
  color: #690005;
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 400;
  white-space: nowrap;
}

.auth-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Profile modal (step 2) ── */
.profile-modal-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--on-surface-var);
  text-align: center;
  line-height: 28px;
  letter-spacing: -0.1px;
}

.profile-selects {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.profile-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 22px 24px;
  border: 1px solid rgba(192, 198, 220, 0.2);
  border-radius: 20px;
  transition: border-color 0.15s;
}

.profile-select-wrapper:focus-within {
  border-color: rgba(192, 198, 220, 0.75);
}

.profile-select-label {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: rgba(197, 198, 208, 0.5);
  white-space: nowrap;
  pointer-events: none;
  transition: color 0.15s;
}

.profile-select-wrapper.has-value .profile-select-label {
  color: var(--on-surface-var);
}

.profile-select-arrow {
  font-size: 24px;
  color: rgba(197, 198, 208, 0.5);
  pointer-events: none;
  flex-shrink: 0;
}

.btn-confirmar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--r-full);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.15px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-confirmar:hover { opacity: 0.88; }
.btn-confirmar .material-symbols-rounded { font-size: 20px; }

/* ══════════════════════════════════════════
   TABLET LARGE — games 2-col, navbar elástica
══════════════════════════════════════════ */
@media (max-width: 1280px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-pill { gap: 24px; }
}

/* ══════════════════════════════════════════
   MOBILE — ≤ 1100px (navbar fixo desktop não cabe abaixo disso)
══════════════════════════════════════════ */
@media (max-width: 1100px) {

  /* ── NAVBAR ── */
  .navbar { padding: 0; border-bottom: none; }

  .navbar-inner {
    flex-wrap: wrap;
    padding: 0 10px;
    gap: 0;
    min-height: 80px;
    align-items: center;
    justify-content: flex-start;
  }

  /* Menu-logo group: hambúrguer + logo side-by-side */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    color: var(--on-surface);
    flex-shrink: 0;
    margin-right: 16px;
  }
  .mobile-menu-btn .material-symbols-rounded {
    font-size: 24px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  }

  .mobile-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--surface);
    color: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: auto;
  }
  .mobile-user-btn .material-symbols-rounded { font-size: 24px; }

  .logo {
    height: 44px;
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
  }

  .logo-desktop { display: none; }

  .logo-mobile {
    display: block;
    height: 44px;
    width: auto;
  }

  .nav-items { display: none; }

  /* ── MOBILE RADIO BAR ── */
  #mobile-radio-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 99;
    background-color: #1e1f25;
    border-bottom: 1px solid #3b3c41;
    padding: 12px 16px;
  }

  #mobile-radio-bar .status-indicator {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .mobile-station-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    position: relative;
  }

  .mobile-station-mask {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%);
    mask-image: linear-gradient(to right, black 60%, transparent 100%);
  }

  #mobile-radio-bar .v-separator {
    padding-inline: 0;
    flex-shrink: 0;
  }

  #mobile-action-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    cursor: pointer;
    color: var(--primary);
  }

  #mobile-radio-bar .material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  }

  /* ── PAGE ── */
  .page { padding-top: 136px; }
  .main-container { padding: 24px 0; gap: 48px; }

  /* ── HERO ── */
  .hero {
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding: 0 16px;
  }

  .hero-banner {
    padding: 40px;
    gap: 24px;
  }

  .hero-title { font-size: 57px; line-height: 64px; }
  .hero-desc { font-size: 20px; line-height: 28px; }

  .btn-primary {
    font-size: 20px;
    height: 60px;
    padding: 0 32px;
  }

  .hero-image {
    width: 100%;
    min-height: 0;
    aspect-ratio: 363 / 189;
  }

  /* Scale the rotating cards down so they fit the shorter hero area */
  .cards-wrapper {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform: scale(0.5);
    transform-origin: center center;
  }

  /* ── GAMES ── */
  .games-section { gap: 24px; padding: 0 16px; }
  .section-title { font-size: 45px; line-height: 52px; }
  .section-desc { font-size: 20px; line-height: 36px; }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .game-card-title { font-size: 28px; line-height: 36px; }

  /* ── ABOUT TEASER ── */
  .about-teaser { padding: 0 16px; }

  /* ── CONTACT ── */
  .contact-section {
    flex-direction: column;
    gap: 24px;
    padding: 0 16px;
  }
  .contact-title { font-size: 45px; line-height: 52px; }
  .contact-desc { font-size: 20px; line-height: 36px; }
  .contact-form { max-width: none; width: 100%; }
  .btn-submit { align-self: stretch; }

  /* ── FOOTER ── */
  .footer-wrapper { padding: 0 16px 48px; gap: 48px; }
  .footer { gap: 48px; padding: 0; }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .footer-left {
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 28px;
  }
  .footer-desc { text-align: left; }

  .footer-right {
    width: 100%;
    align-items: flex-end;
    text-align: right;
  }

  .copyright {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 24px;
    padding: 8px 24px;
  }
}

/* ══════════════════════════════════════════
   SMALL PHONES — ≤ 420px
══════════════════════════════════════════ */
@media (max-width: 420px) {
  .hero-banner { padding: 28px; }
  .hero-title { font-size: 48px; line-height: 56px; }
  .hero-desc { font-size: 18px; line-height: 26px; }
  .section-title, .contact-title { font-size: 36px; line-height: 44px; }
  .section-desc, .contact-desc { font-size: 18px; line-height: 28px; }
}
