/* Variables */
:root {
  --primary-dark: #0a0a0b;
  --secondary-dark: #111013;
  --blue-accent: #2f45c2;
  --blue-light: #4f6bef;
  --green-accent: #10b981;
  --orange-accent: #f97316;
  --gold-accent: #f0b429;
  --gray-text: #9ca3af;
  --gray-light: #f3f4f6;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 50px rgba(47, 69, 194, 0.2);
  --font-display: 'Unbounded', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--primary-dark);
  color: white;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3,
.hero-title, .section-title, .nav-title,
.contact-title, .games-hero-title {
  font-family: var(--font-display);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
}

.nav-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-menu.active {
  display: flex;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
  animation: fadeIn 0.2s ease;
}

.nav-menu.active .nav-link {
  font-size: 1.125rem;
  padding: 0.5rem 0;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    padding: 0;
    border-bottom: none;
    gap: 2rem;
    background: transparent;
  }
}

.nav-link {
  color: white;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--blue-light);
}

.nav-link.active {
  color: var(--blue-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue-light);
  border-radius: 2px;
}

@media (max-width: 767px) {
  .nav-link.active::after {
    display: none;
  }
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.2s;
}

.nav-toggle:hover {
  transform: scale(1.1);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  padding-top: 2.5rem;
  padding-bottom: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 900px;
  background:
    radial-gradient(circle at 25% 30%, rgba(47, 69, 194, 0.35), transparent 45%),
    radial-gradient(circle at 75% 20%, rgba(251, 191, 36, 0.12), transparent 40%),
    radial-gradient(circle at 50% 60%, rgba(59, 130, 246, 0.18), transparent 50%);
  filter: blur(90px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 2rem;
  }
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(47, 69, 194, 0.12);
  border: 1px solid rgba(47, 69, 194, 0.3);
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  color: var(--blue-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.75rem;
  transition: all 0.3s ease;
}

.live-badge.live-active {
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.35);
  color: #fca5a5;
  box-shadow: 0 0 24px rgba(220, 38, 38, 0.35);
}

.live-dot {
  position: relative;
  display: flex;
  width: 0.5rem;
  height: 0.5rem;
}

.live-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ef4444;
  border-radius: 50%;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.live-dot::after {
  content: '';
  position: relative;
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  background: #dc2626;
  border-radius: 50%;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.4rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }
}

.gradient-text {
  background: linear-gradient(100deg, var(--blue-light) 0%, var(--gold-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  color: var(--gray-text);
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-light));
  color: white;
  padding: 1.05rem 2.1rem;
  border: none;
  border-radius: 0.85rem;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px rgba(47, 69, 194, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(47, 69, 194, 0.5);
}

.cta-button i {
  transition: transform 0.2s;
}

.cta-button:hover i {
  transform: translateX(4px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 1.05rem 1.75rem;
  border-radius: 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

/* Stream Panel */

.stream-panel {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: rgba(24, 24, 27, 0.5);
  backdrop-filter: blur(8px);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  width: 100%;
  max-width: 520px;
  height: 320px;
  transition: box-shadow 0.4s ease;
}

.stream-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(47, 69, 194, 0.5), rgba(251, 191, 36, 0.2), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

/* Hero Live Ticker */
.hero-ticker {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(17, 16, 19, 0.6);
  backdrop-filter: blur(6px);
}

.ticker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 0;
  padding: 1.75rem 0;
}

@media (min-width: 768px) {
  .ticker-grid {
    grid-template-columns: repeat(7, auto);
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 1.5rem 0;
  }
}

.ticker-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1.75rem;
}

.ticker-item i {
  color: var(--blue-light);
  font-size: 1.15rem;
}

.ticker-item div {
  display: flex;
  flex-direction: column;
}

.ticker-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.ticker-label {
  font-size: 0.7rem;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.ticker-divider {
  display: none;
  width: 1px;
  height: 2rem;
  background: var(--border-color);
}

@media (min-width: 768px) {
  .ticker-divider {
    display: block;
  }
}


.stream-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: unset; 
  padding: 0;
}


/* Remove old stream-offline styles - replaced by offline-card */

#twitch-embed-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  z-index: 1;
}

#twitch-embed-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

/* Offline Card Overlay */
.offline-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow: hidden;
  pointer-events: auto;
}

.offline-card.visible {
  opacity: 1;
  visibility: visible;
}

.offline-card-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--blue-accent);
  box-shadow: 0 0 30px rgba(47, 69, 194, 0.4);
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.offline-card-content {
  text-align: center;
  padding: 0 1.5rem;
}

.offline-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.offline-dot {
  width: 0.75rem;
  height: 0.75rem;
  background: #6b7280;
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.offline-indicator span {
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
}

.offline-text {
  color: var(--gray-text);
  max-width: 18rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Section header (reused across sections) */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--blue-light);
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.6rem;
  }
}

.section-description {
  color: var(--gray-text);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* Como Funciona */
#como-funciona {
  padding: 6rem 0;
  background: var(--primary-dark);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-card {
  position: relative;
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  text-align: center;
  transition: all 0.3s ease;
}

.how-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 69, 194, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.how-card-number {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
}

.how-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 69, 194, 0.4);
}

.how-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: #fff;
}

.how-card-text {
  color: var(--gray-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.how-card-text strong {
  color: var(--gold-accent);
}

.how-cta {
  text-align: center;
  margin-top: 3rem;
}

.cta-button-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-light));
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.85rem;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px rgba(47, 69, 194, 0.4);
}

.cta-button-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(47, 69, 194, 0.5);
}

/* Social */
.social {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
}

.social::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(59, 130, 246, 0.1);
  filter: blur(120px);
  border-radius: 50%;
  margin-right: -12rem;
  pointer-events: none;
}

.social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.social-card.twitch::before { background: radial-gradient(circle at 50% 0%, rgba(145, 70, 255, 0.35), transparent 70%); }
.social-card.instagram::before { background: radial-gradient(circle at 50% 0%, rgba(228, 64, 95, 0.35), transparent 70%); }
.social-card.youtube::before { background: radial-gradient(circle at 50% 0%, rgba(255, 0, 0, 0.35), transparent 70%); }

.social-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.social-card:hover::before {
  opacity: 1;
}

.social-card i {
  position: relative;
  font-size: 2.1rem;
  transition: color 0.2s, transform 0.3s;
}

.social-card:hover i {
  transform: scale(1.12);
}

.social-card span {
  position: relative;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-text);
  transition: color 0.2s;
}

.social-card:hover span {
  color: white;
}

.social-card.twitch:hover i {
  color: #9146ff;
}

.social-card.instagram:hover i {
  color: #e4405f;
}

.social-card.youtube:hover i {
  color: #ff0000;
}

/* Footer */
.footer {
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
  background: #09090b;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.footer-brand-tagline {
  color: var(--gray-text);
  font-size: 0.8rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--gray-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}

.footer-social a:hover {
  color: #fff;
  background: rgba(47, 69, 194, 0.25);
  border-color: rgba(47, 69, 194, 0.4);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  padding: 2.5rem 0 2rem;
}

.footer-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

/* Animations */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Contact Page Styles */
.contact-section {
  min-height: 100vh;
  padding: 2.5rem 1rem 4rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(47, 69, 194, 0.18), transparent 45%),
    linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInDown 0.6s ease;
}

.contact-title {
  font-size: 2.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #fff 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: var(--gray-text);
  font-weight: 500;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  border-color: var(--blue-accent);
  box-shadow: 0 20px 40px -10px rgba(79, 107, 239, 0.3);
}

.contact-card:hover::before {
  left: 100%;
}

.contact-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.contact-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.contact-card-text {
  color: var(--gray-text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--blue-accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 0.75rem;
}

.contact-card-link:hover {
  color: var(--blue-light);
  transform: translateX(5px);
  border-color: var(--blue-accent);
}

.contact-footer {
  text-align: center;
  padding: 2rem;
  background: rgba(79, 107, 239, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  animation: fadeInUp 0.8s ease;
}

.contact-footer p {
  color: var(--gray-text);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--blue-accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--blue-accent);
  border-radius: 0.75rem;
}

.back-link:hover {
  background: var(--blue-accent);
  color: #000;
  transform: translateX(-5px);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Contact */
@media (max-width: 768px) {
  .contact-title {
    font-size: 2rem;
  }

  .contact-grid {
    gap: 1.5rem;
  }

  .contact-card {
    padding: 2rem;
  }
}



/* ===================================================================
   GAMES PAGE — Jogos Grátis
   =================================================================== */

.games-hero {
  padding: 2.5rem 0 3rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 10%, rgba(145, 70, 255, 0.22), transparent 50%),
    radial-gradient(circle at 75% 30%, rgba(251, 191, 36, 0.1), transparent 45%),
    var(--primary-dark);
}

.games-hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.games-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.games-hero-subtitle {
  color: var(--gray-text);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Games section */
.games-section {
  padding: 3rem 0 6rem;
  background: var(--primary-dark);
}

.btn-primary {
  flex: 1;
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-light));
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(47, 69, 194, 0.35);
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47, 69, 194, 0.5);
}

.btn-secondary {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ===================================================================
   TWITCH LOGIN — botão, menu de utilizador e bloqueio de conteúdo
   =================================================================== */

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
}

.nav-login-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #9146ff, #772ce8);
  color: #fff;
  border: none;
  padding: 0.6rem 1.1rem;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(145, 70, 255, 0.35);
  white-space: nowrap;
}

.nav-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(145, 70, 255, 0.45);
}

.nav-auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dev-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(240, 180, 41, 0.12);
  border: 1px dashed rgba(240, 180, 41, 0.5);
  color: var(--gold-accent);
  padding: 0.55rem 0.85rem;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-dev-btn:hover {
  background: rgba(240, 180, 41, 0.2);
  transform: translateY(-2px);
}

.nav-admin-tag {
  display: inline-block;
  background: var(--gold-accent);
  color: #1a1400;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.4rem;
  border-radius: 0.3rem;
  margin-left: 0.3rem;
  vertical-align: middle;
}

@media (max-width: 480px) {
  .nav-dev-btn span,
  .nav-dev-btn {
    font-size: 0.7rem;
    padding: 0.5rem 0.6rem;
  }
}

.nav-points-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  background: rgba(240, 180, 41, 0.12);
  border: 1px solid rgba(240, 180, 41, 0.3);
  color: var(--gold-accent);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}

.nav-user:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-user-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(47, 69, 194, 0.5);
}

.nav-user-name {
  font-size: 0.8rem;
  font-weight: 700;
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-caret {
  font-size: 0.65rem;
  color: var(--gray-text);
}

.nav-user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--secondary-dark);
  border: 1px solid var(--border-color);
  border-radius: 0.6rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  min-width: 210px;
  z-index: 20;
}

.nav-user-menu.open {
  display: block;
  animation: fadeIn 0.15s ease;
}

.nav-user-dev-points {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--gold-accent);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.nav-user-dev-points:hover {
  background: rgba(240, 180, 41, 0.12);
}

.nav-user-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: #f87171;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.nav-user-logout:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* Content gating */
[data-gate] {
  position: relative;
}

[data-gate] .gate-content {
  filter: blur(10px) brightness(0.6);
  pointer-events: none;
  user-select: none;
  transition: filter 0.4s ease;
}

[data-gate].gate-unlocked .gate-content {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

[data-gate] .gate-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  z-index: 5;
}

[data-gate].gate-unlocked .gate-overlay {
  display: none;
}

.gate-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #9146ff, #772ce8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 10px 24px rgba(145, 70, 255, 0.4);
}

.gate-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.gate-text {
  color: var(--gray-text);
  font-size: 0.9rem;
  max-width: 22rem;
  line-height: 1.5;
}

.gate-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #9146ff, #772ce8);
  color: #fff;
  border: none;
  padding: 0.85rem 1.6rem;
  border-radius: 0.75rem;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 24px rgba(145, 70, 255, 0.4);
}

.gate-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(145, 70, 255, 0.5);
}

.gate-dev-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.9rem auto 0;
  background: transparent;
  border: none;
  color: var(--gold-accent, #f0b429);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gate-dev-link:hover {
  opacity: 0.8;
}

/* Gate wrapper needs a background so blurred content doesn't look broken */
.hero-gate,
.social-gate {
  border-radius: 1.5rem;
  overflow: hidden;
}

.page-gate .gate-overlay {
  min-height: 320px;
}

@media (max-width: 767px) {
  .nav-user-name {
    display: none;
  }
}

/* ===================================================================
   PLAYER STATS — pontos e ranking (StreamElements) após login
   =================================================================== */

.player-stats-section {
  padding: 0 0 1rem;
  display: none;
}

.player-stats-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.14), rgba(145, 70, 255, 0.03));
  border: 1px solid rgba(145, 70, 255, 0.3);
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  margin-top: 0;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.player-stats-avatar img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #9146ff;
  box-shadow: 0 0 20px rgba(145, 70, 255, 0.4);
}

.player-stats-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}

.player-stats-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.player-stats-metrics {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.player-stats-metric {
  display: flex;
  flex-direction: column;
}

.player-stats-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold-accent);
  line-height: 1.2;
}

.player-stats-label {
  font-size: 0.7rem;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.player-stats-refresh {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--gray-text);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.player-stats-refresh:hover {
  color: #fff;
  background: rgba(145, 70, 255, 0.2);
}

.player-stats-refresh.spinning i {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .player-stats-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .player-stats-refresh {
    align-self: flex-end;
  }
}

/* ===================================================================
   RANKING PAGE — leaderboard da StreamElements
   =================================================================== */

.ranking-card {
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 1.75rem;
}

.ranking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.ranking-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ranking-title i {
  color: var(--gold-accent);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ranking-loading {
  text-align: center;
  color: var(--gray-text);
  padding: 1.5rem 0;
}

.ranking-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s;
}

.ranking-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ranking-row-me {
  background: rgba(145, 70, 255, 0.18);
  border: 1px solid rgba(145, 70, 255, 0.4);
}

.ranking-position {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gray-text);
  text-align: center;
}

.ranking-username {
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-you-tag {
  color: var(--blue-light);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ranking-points {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-accent);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ranking-row {
    grid-template-columns: 2.25rem 1fr auto;
    padding: 0.6rem 0.75rem;
  }

  .ranking-card {
    padding: 1.25rem;
  }
}

/* Ranking / player stats error states */
.player-stats-error {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  word-break: break-all;
}

.ranking-error {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--gray-text);
}

.ranking-error-detail {
  font-size: 0.72rem;
  color: #f87171;
  margin-top: 0.5rem;
  word-break: break-all;
}

.ranking-fallback-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  background: linear-gradient(135deg, #9146ff, #772ce8);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ===================================================================
   APOSTAS 1x2 — jornadas, palpites e painel de admin
   =================================================================== */

.hidden {
  display: none !important;
}

.apostas-section {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.apostas-section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
}

.apostas-section-title i {
  color: var(--gold-accent);
}

.jornadas-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.jornada-card {
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.75rem;
}

.jornada-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.jornada-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.jornada-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.jornada-tag-aberta {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.jornada-tag-fechada {
  background: rgba(240, 180, 41, 0.15);
  color: var(--gold-accent);
  border: 1px solid rgba(240, 180, 41, 0.35);
}

.jornada-tag-resolvida {
  background: rgba(47, 69, 194, 0.18);
  color: var(--blue-light);
  border: 1px solid rgba(47, 69, 194, 0.4);
}

.jogos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .jogos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.jogo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
}

.jogo-teams {
  font-weight: 800;
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.jogo-vs {
  color: var(--gray-text);
  font-weight: 500;
  font-size: 0.8rem;
  margin: 0 0.3rem;
}

.jogo-data {
  color: var(--gray-text);
  font-size: 0.78rem;
  margin-bottom: 0.85rem;
}

.jogo-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pick-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.6rem 0.4rem;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pick-btn:hover:not(:disabled) {
  background: rgba(47, 69, 194, 0.25);
  border-color: rgba(47, 69, 194, 0.5);
}

.pick-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pick-btn.pick-selected {
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-light));
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(47, 69, 194, 0.4);
}

.jogo-card-resolvido .jogo-resultado-final {
  font-size: 0.85rem;
  color: var(--gray-text);
  margin-bottom: 0.4rem;
}

.jogo-card-resolvido .jogo-resultado-final strong {
  color: var(--gold-accent);
}

.jogo-meu-palpite {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-text);
}

.jogo-meu-palpite.acertou {
  color: #34d399;
}

.jogo-meu-palpite.errou {
  color: #f87171;
}

.jornada-resumo {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--gray-text);
}

.jornada-resumo strong {
  color: #fff;
}

.jornada-resumo.jornada-perfeita {
  background: rgba(240, 180, 41, 0.12);
  border-color: rgba(240, 180, 41, 0.4);
  color: var(--gold-accent);
}

/* --- Painel de Admin --- */
.admin-panel {
  background: rgba(240, 180, 41, 0.05);
  border: 1px solid rgba(240, 180, 41, 0.3);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 3rem;
}

.admin-panel-header h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.admin-panel-header p {
  color: var(--gray-text);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.admin-new-jornada h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.admin-field {
  margin-bottom: 1rem;
}

.admin-field label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.admin-field input,
.admin-jogo-row input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 0.6rem;
  color: #fff;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
}

.admin-jogos-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.admin-jogo-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 700px) {
  .admin-jogo-row {
    grid-template-columns: 1fr 1fr;
  }
  .admin-jogo-vs {
    display: none;
  }
}

.admin-jogo-vs {
  color: var(--gray-text);
  font-size: 0.8rem;
  text-align: center;
}

.admin-jogo-remove {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-jogo-remove:hover {
  background: rgba(239, 68, 68, 0.28);
}

.admin-new-jornada .btn-secondary,
.admin-new-jornada .btn-primary {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
}

.admin-jornadas-list {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-jornada-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}

.admin-jornada-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-jornada-header h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-jornada-meta {
  font-size: 0.75rem;
  color: var(--gray-text);
}

.admin-jogo-resultados {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-jogo-resultado-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.6rem;
  padding: 0.6rem 0.85rem;
}

.admin-jogo-nome {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 600;
}

.admin-jogo-nome small {
  color: var(--gray-text);
  font-weight: 400;
}

.admin-resultado-select {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.82rem;
}

.admin-jornada-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-jornada-actions .btn-secondary,
.admin-jornada-actions .btn-primary {
  width: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
}

.admin-eliminar-btn {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: auto;
}

.admin-eliminar-btn:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* ===================================================================
   PAINEL DE CONTROLO — acesso restrito, jornada em destaque
   =================================================================== */

.admin-shortcut-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid rgba(240, 180, 41, 0.35);
  color: var(--gold-accent);
  text-decoration: none;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}

.admin-shortcut-banner:hover {
  background: rgba(240, 180, 41, 0.18);
  transform: translateY(-2px);
}

.admin-shortcut-banner span {
  flex: 1;
}

.admin-blocked {
  max-width: 480px;
  margin: 2rem auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
}

.destaque-card {
  background: linear-gradient(135deg, rgba(240, 180, 41, 0.1), rgba(240, 180, 41, 0.02));
  border: 1px solid rgba(240, 180, 41, 0.35);
  border-radius: 1.5rem;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}

.destaque-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.destaque-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.destaque-header h2 i {
  color: var(--gold-accent);
}

.destaque-meta {
  color: var(--gray-text);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.destaque-jogos {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.destaque-jogo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
}

.destaque-contagem {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-text);
}

.destaque-contagem strong {
  color: #fff;
  font-size: 0.9rem;
}

.destaque-actions {
  display: flex;
  align-items: center;
}

.destaque-actions .btn-primary {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
}

.destaque-hint {
  color: var(--gray-text);
  font-size: 0.85rem;
  font-style: italic;
}

/* =================================================================
   Cartas Colecionáveis
   ================================================================= */

.pack-open-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(47, 69, 194, 0.12), rgba(240, 180, 41, 0.08));
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
}

.pack-open-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.pack-open-icon {
  width: 3.2rem;
  height: 3.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-light));
  color: #fff;
  font-size: 1.3rem;
}

.pack-open-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.pack-open-text {
  color: var(--gray-text);
  font-size: 0.9rem;
  max-width: 26rem;
}

.pack-open-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.pack-open-saldo {
  color: var(--gray-text);
  font-size: 0.85rem;
}

.pack-open-saldo strong {
  color: var(--gold-accent);
  font-size: 1.05rem;
}

.pack-open-action .btn-primary {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
}

.rarity-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.rarity-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-text);
}

.rarity-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--rarity-cor, var(--blue-light));
  box-shadow: 0 0 8px var(--rarity-cor, var(--blue-light));
}

.collection-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.collection-progress {
  color: var(--gray-text);
  font-size: 0.85rem;
  font-weight: 600;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1rem;
}

.player-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--rarity-cor, var(--border-color));
  box-shadow: 0 0 18px color-mix(in srgb, var(--rarity-cor, transparent) 25%, transparent);
  border-radius: 1.1rem;
  padding: 1.1rem 0.75rem;
}

.player-card-locked {
  opacity: 0.55;
  filter: grayscale(0.4);
}

.player-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--rarity-cor, var(--gray-text));
}

.player-card-icon {
  position: relative;
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: color-mix(in srgb, var(--rarity-cor, var(--blue-light)) 20%, transparent);
  border: 2px solid var(--rarity-cor, transparent);
  color: var(--rarity-cor, #fff);
  font-size: 1.2rem;
  margin: 0.35rem 0;
}

.player-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-card-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.player-card-nome {
  font-weight: 800;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.2;
}

.player-card-clube {
  color: var(--gray-text);
  font-size: 0.78rem;
}

.player-card-posicao {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--rarity-cor, var(--gray-text));
  letter-spacing: 0.05em;
}

.player-card-valor {
  margin-top: 0.3rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--border-color);
  width: 100%;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold-accent);
}

.player-card-qty {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: var(--rarity-cor, var(--blue-light));
  color: #0a0a0b;
  font-size: 0.7rem;
  font-weight: 900;
  border-radius: 0.5rem;
  padding: 0.1rem 0.4rem;
}

/* Modal de revelação */
.card-reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.card-reveal-overlay.hidden {
  display: none;
}

.card-reveal-overlay.shake {
  animation: estvScreenShake 0.42s ease;
}

@keyframes estvScreenShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-8px, 4px); }
  40% { transform: translate(7px, -5px); }
  60% { transform: translate(-6px, -3px); }
  80% { transform: translate(5px, 4px); }
}

.card-reveal-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.card-reveal-flip {
  position: relative;
  width: 13rem;
  height: 18rem;
  perspective: 1200px;
}

.card-reveal-flip::before,
.card-reveal-flip::after {
  content: none;
}

.card-reveal-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-reveal-back {
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-light));
  transform: rotateY(0deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.card-reveal-back img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.card-reveal-front {
  transform: rotateY(-180deg);
  flex-direction: column;
  padding: 1.25rem;
}

.card-reveal-front .player-card {
  width: 100%;
  height: 100%;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.card-reveal-flip.flipped .card-reveal-back {
  transform: rotateY(180deg);
}

.card-reveal-flip.flipped .card-reveal-front {
  transform: rotateY(0deg);
}

.card-reveal-status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-accent);
  text-align: center;
}

.card-reveal-close {
  width: auto;
  padding: 0.75rem 2rem;
}

/* =================================================================
   Pack opening — pacote a brilhar, toque para abrir, explosão de luz
   ================================================================= */

.pack-envelope {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  cursor: pointer;
  animation: estvPackFloat 2.4s ease-in-out infinite;
}

.pack-envelope.hidden {
  display: none;
}

.pack-envelope.opened {
  animation: estvPackPop 0.48s ease forwards;
  pointer-events: none;
}

@keyframes estvPackFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes estvPackPop {
  0% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(0.3); opacity: 0; }
}

.pack-envelope-card {
  position: relative;
  width: 10rem;
  height: 14rem;
  border-radius: 1.4rem;
  background: linear-gradient(150deg, var(--secondary-dark), #050506 70%);
  border: 2px solid var(--rarity-cor, var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 30px 6px color-mix(in srgb, var(--rarity-cor, var(--blue-light)) 55%, transparent),
    0 25px 50px rgba(0, 0, 0, 0.6);
  animation: estvPackGlow 1.6s ease-in-out infinite;
}

.pack-envelope-card img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

@keyframes estvPackGlow {
  0%, 100% {
    box-shadow:
      0 0 22px 4px color-mix(in srgb, var(--rarity-cor, var(--blue-light)) 45%, transparent),
      0 25px 50px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow:
      0 0 42px 10px color-mix(in srgb, var(--rarity-cor, var(--blue-light)) 75%, transparent),
      0 25px 50px rgba(0, 0, 0, 0.6);
  }
}

/* Raridades mais altas piscam mais depressa e com mais intensidade */
.pack-glow-epica .pack-envelope-card {
  animation-duration: 1.1s;
}

.pack-glow-lendaria .pack-envelope-card {
  animation-duration: 0.7s;
}

.pack-envelope-glow {
  position: absolute;
  inset: -4rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--rarity-cor, var(--blue-light)) 35%, transparent) 0%, transparent 70%);
  filter: blur(4px);
  z-index: -1;
  pointer-events: none;
}

.pack-envelope-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-text);
  font-size: 0.85rem;
  font-weight: 700;
  animation: estvHintPulse 1.4s ease-in-out infinite;
}

@keyframes estvHintPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.pack-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  z-index: 5;
  pointer-events: none;
}

.pack-flash.play {
  animation: estvFlash 0.5s ease forwards;
}

@keyframes estvFlash {
  0% { opacity: 0; }
  12% { opacity: 0.9; }
  100% { opacity: 0; }
}

.pack-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--rarity-cor, var(--gold-accent)) 35%, transparent 70%);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}

.pack-burst.play {
  animation: estvBurst 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes estvBurst {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(140); opacity: 0; }
}

.confetti-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 0.5rem;
  height: 0.9rem;
  opacity: 0;
  animation: estvConfetti var(--fall, 1.4s) ease-out var(--delay, 0s) forwards;
}

@keyframes estvConfetti {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--x, 0), 60vh) rotate(var(--rot, 360deg)); opacity: 0; }
}

@media (max-width: 640px) {
  .pack-open-card {
    flex-direction: column;
    align-items: stretch;
  }

  .pack-open-action {
    align-items: stretch;
  }

  .pack-open-saldo {
    text-align: center;
  }
}

/* ===================================================================
   Jogo dos Penáltis
   =================================================================== */

.penalti-bet-card .pack-open-action {
  align-items: center;
}

.penalti-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.penalti-control-block {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1 1 14rem;
}

.penalti-control-label {
  color: var(--gray-text);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.penalti-stepper {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
}

.penalti-stepper-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.penalti-stepper-btn:hover {
  background: var(--blue-accent);
  transform: translateY(-1px);
}

.penalti-stepper-valor {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-accent);
  min-width: 3rem;
  text-align: center;
}

.jersey-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.jersey-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--gray-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.jersey-option:hover {
  color: #fff;
}

.jersey-option.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: currentColor;
}

.jersey-swatch, .jersey-dot {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
}

.jersey-dot {
  width: 0.6rem;
  height: 0.6rem;
  flex-shrink: 0;
}

.jersey-azul .jersey-swatch, .jersey-dot.jersey-azul { background: var(--blue-light); }
.jersey-verde .jersey-swatch, .jersey-dot.jersey-verde { background: var(--green-accent); }
.jersey-vermelho .jersey-swatch, .jersey-dot.jersey-vermelho { background: #ef4444; }

.jersey-option.jersey-azul.active { color: var(--blue-light); }
.jersey-option.jersey-verde.active { color: var(--green-accent); }
.jersey-option.jersey-vermelho.active { color: #ef4444; }

.penalti-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.penalti-kick-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
}

.penalti-kick-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.penalti-limite-texto {
  color: var(--gray-text);
  font-size: 0.9rem;
}

/* Palco do penálti */
.penalti-stage {
  position: relative;
  height: 24rem;
  max-height: 60vh;
  border-radius: 1.5rem;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.penalti-stage.stage-shake {
  animation: estvStageShake 0.4s ease;
}

@keyframes estvStageShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(4px); }
}

.penalti-sky {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 58%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(240, 180, 41, 0.12), transparent 60%),
    linear-gradient(180deg, #0a0f2a 0%, #101a3d 60%, #16224a 100%);
}

.penalti-pitch {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 46%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 2.2rem, transparent 2.2rem, transparent 4.4rem),
    linear-gradient(180deg, #1c6b34 0%, #14502a 100%);
  border-top: 2px solid rgba(255, 255, 255, 0.35);
}

.penalti-goal {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: min(24rem, 78%);
  aspect-ratio: 16 / 7;
  border: 0.4rem solid #f4f4f6;
  border-bottom: none;
  border-radius: 0.3rem 0.3rem 0 0;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
}

.penalti-net {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 1px, transparent 1px, transparent 0.9rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 1px, transparent 1px, transparent 0.9rem);
  opacity: 0.7;
}

.penalti-keeper {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 4.4rem;
  height: 4.4rem;
  --flip: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scaleX(var(--flip));
  z-index: 2;
  transition: left 0.42s cubic-bezier(0.22, 0.8, 0.3, 1), top 0.42s cubic-bezier(0.22, 0.8, 0.3, 1), transform 0.42s ease;
}

.penalti-keeper svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.penalti-keeper.flip {
  --flip: -1;
}

.penalti-keeper.diving {
  transform: translate(-50%, -50%) scaleX(var(--flip)) scale(1.06);
}

.penalti-ball {
  position: absolute;
  left: 50%;
  top: 92%;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #cfd3dc 70%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0.2rem 0.4rem rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 3;
  transition: left 0.42s cubic-bezier(0.3, 0.6, 0.2, 1), top 0.42s cubic-bezier(0.3, 0.6, 0.2, 1), opacity 0.15s ease;
}

.penalti-player {
  position: absolute;
  bottom: 62%;
  left: 50%;
  width: 3.4rem;
  height: 5.1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: translate(-50%, 0);
  z-index: 2;
  transition: transform 0.2s ease;
}

.penalti-player svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.penalti-player.jersey-azul { --jersey-color: var(--blue-light); }
.penalti-player.jersey-verde { --jersey-color: var(--green-accent); }
.penalti-player.jersey-vermelho { --jersey-color: #ef4444; }

.penalti-player.running {
  animation: estvPlayerRun 0.38s ease-in-out;
}

.penalti-player.kicking {
  animation: estvPlayerKick 0.3s ease-out;
}

@keyframes estvPlayerRun {
  0% { transform: translate(-50%, 0.6rem); }
  50% { transform: translate(-50%, -0.2rem); }
  100% { transform: translate(-50%, 0); }
}

@keyframes estvPlayerKick {
  0% { transform: translate(-50%, 0) rotate(0deg); }
  40% { transform: translate(-50%, 0) rotate(-18deg); }
  100% { transform: translate(-50%, 0) rotate(0deg); }
}

.penalti-result {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 2rem;
  border-radius: 1rem;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(3px);
  animation: estvResultPop 0.35s ease;
}

.penalti-result.hidden {
  display: none;
}

@keyframes estvResultPop {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.penalti-result-texto {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}

.penalti-result.golo .penalti-result-texto { color: var(--green-accent); }
.penalti-result.falhou .penalti-result-texto { color: #ef4444; }

.penalti-result-pontos {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.penalti-historico {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.penalti-historico-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.penalti-historico-item.golo .penalti-historico-icon { color: var(--green-accent); }
.penalti-historico-item.falhou .penalti-historico-icon { color: #ef4444; }

.penalti-historico-texto {
  color: #fff;
  font-weight: 600;
}

.penalti-historico-pontos {
  margin-left: auto;
  font-weight: 700;
}

.penalti-historico-item.golo .penalti-historico-pontos { color: var(--green-accent); }
.penalti-historico-item.falhou .penalti-historico-pontos { color: #ef4444; }

@media (max-width: 640px) {
  .penalti-stage {
    height: 20rem;
  }

  .penalti-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .penalti-kick-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===================================================================
   Estrutura do site — menu lateral (sidebar) + barra superior (topbar)
   =================================================================== */

.app-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: var(--secondary-dark);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 1.25rem;
  overflow-y: auto;
  z-index: 1100;
  transition: transform 0.25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0 0.25rem;
  text-decoration: none;
}

.sidebar-brand .nav-logo {
  width: auto;
  height: 60px;
  border-radius: 0.6rem;
  flex-shrink: 0;
}

.sidebar-brand-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.7rem;
  color: var(--gray-text);
  font-weight: 600;
  font-size: 0.92rem;
}

.sidebar-nav .nav-link i {
  width: 1.1rem;
  text-align: center;
  color: var(--gray-text);
  transition: color 0.2s;
}

.sidebar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.sidebar-nav .nav-link.active {
  background: linear-gradient(135deg, rgba(47, 69, 194, 0.28), rgba(47, 69, 194, 0.08));
  color: #fff;
}

.sidebar-nav .nav-link.active i {
  color: var(--blue-light);
}

.sidebar-nav .nav-link.active::after {
  display: none;
}

.sidebar-divider {
  height: 1px;
  background: var(--border-color);
  margin: 1rem 0.25rem;
}

.sidebar-promo {
  margin-top: auto;
  padding: 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.18), rgba(47, 69, 194, 0.12));
  border: 1px solid var(--border-color);
}

.sidebar-promo-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.sidebar-promo-text {
  color: var(--gray-text);
  font-size: 0.8rem;
  margin-bottom: 0.9rem;
  line-height: 1.4;
}

.sidebar-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #9146ff, #772ce8);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 0.15s;
}

.sidebar-promo-btn:hover {
  transform: translateY(-2px);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1050;
}

.sidebar-backdrop.visible {
  display: block;
}

.app-main {
  flex: 1;
  min-width: 0;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
  padding: 0 1.5rem;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow 0.2s;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.topbar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
}

.topbar-brand {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.topbar-brand .nav-logo {
  width: auto;
  height: 44px;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  }

  .app-main {
    margin-left: 0;
  }

  .topbar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar-brand {
    display: flex;
  }
}

/* ===================================================================
   Carrossel de destaques (página inicial)
   =================================================================== */

.hero-carousel {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  height: 20rem;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border-color);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 2.5rem 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide-content {
  max-width: 34rem;
  position: relative;
  z-index: 1;
}

.carousel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: #fff;
}

.carousel-slide-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff;
}

.carousel-slide-text {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.carousel-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  border-radius: 0.7rem;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s;
}

.carousel-slide-cta:hover {
  transform: translateY(-2px);
}

.carousel-slide-live {
  background: linear-gradient(120deg, rgba(47, 69, 194, 0.85), rgba(10, 10, 11, 0.35)), radial-gradient(circle at 82% 25%, rgba(79, 107, 239, 0.45), transparent 60%), var(--primary-dark);
}

.carousel-slide-cartas {
  background: linear-gradient(120deg, rgba(145, 70, 255, 0.7), rgba(10, 10, 11, 0.35)), radial-gradient(circle at 82% 25%, rgba(240, 180, 41, 0.4), transparent 60%), var(--primary-dark);
}

.carousel-slide-penaltis {
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.55), rgba(10, 10, 11, 0.35)), radial-gradient(circle at 82% 25%, rgba(16, 185, 129, 0.35), transparent 60%), var(--primary-dark);
}

/* ---------------------------------------------------------------
   Elementos decorativos à direita de cada slide do carrossel
   --------------------------------------------------------------- */

.carousel-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 22rem;
  max-width: 46%;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Boletim de apostas (slide "Ao vivo") — este widget tem botões reais,
   por isso mantém pointer-events ativos para se poder clicar. */
.carousel-visual-betslip {
  pointer-events: auto;
}

.mini-betslip {
  width: 15rem;
  background: rgba(10, 10, 11, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.1rem;
  padding: 1.1rem 1.1rem 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  transform: rotate(3deg);
}

.mini-betslip-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue-light);
  margin-bottom: 0.6rem;
}

.mini-betslip-teams.jogo-teams {
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.mini-betslip-picks.jogo-picks {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.mini-betslip-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--gray-text);
  font-weight: 600;
}

.mini-betslip-footer i {
  color: var(--gold-accent);
}

/* Cartas coleciondáveis (slide "Cartas") — três mini-cartas em leque */
.carousel-visual-cards {
  perspective: 40rem;
}

.mini-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6.5rem;
  height: 9rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 2px solid var(--rarity-cor, var(--border-color));
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 26px color-mix(in srgb, var(--rarity-cor, transparent) 40%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--rarity-cor, #fff);
  font-size: 1.7rem;
}

.mini-card-rarity {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.mini-card-back {
  transform: translate(-50%, -50%) rotate(-16deg) translateX(-2.6rem);
  opacity: 0.8;
  z-index: 1;
}

.mini-card-front {
  transform: translate(-50%, -50%) rotate(0deg) translateY(-0.4rem);
  z-index: 3;
}

.mini-card-back2 {
  transform: translate(-50%, -50%) rotate(16deg) translateX(2.6rem);
  opacity: 0.8;
  z-index: 2;
}

/* Cena de golo (slide "Penáltis") — baliza + guarda-redes + jogador,
   reaproveitando o mesmo estilo visual do jogo real de Penáltis. */
.carousel-visual-penalti {
  overflow: visible;
}

.mini-goal {
  position: absolute;
  top: 14%;
  right: 18%;
  width: 11rem;
  aspect-ratio: 16 / 7;
  border: 0.3rem solid rgba(244, 244, 246, 0.9);
  border-bottom: none;
  border-radius: 0.3rem 0.3rem 0 0;
}

.mini-net {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 1px, transparent 1px, transparent 0.7rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 1px, transparent 1px, transparent 0.7rem);
  opacity: 0.65;
}

.mini-keeper {
  position: absolute;
  top: 19%;
  right: 25%;
  width: 4.2rem;
  height: 4.2rem;
  opacity: 0.92;
}

.mini-keeper svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mini-striker {
  position: absolute;
  bottom: 6%;
  right: 6%;
  width: 6.5rem;
  height: 9.5rem;
}

.mini-striker svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
}

.mini-ball {
  position: absolute;
  top: 35%;
  right: 32%;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #cfd3dc 70%);
  box-shadow: 0 0.15rem 0.3rem rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
  .carousel-visual {
    width: 16rem;
    opacity: 0.55;
  }
}

@media (max-width: 640px) {
  .carousel-visual {
    display: none;
  }
}

.carousel-arrows button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.carousel-arrows button:hover {
  background: rgba(0, 0, 0, 0.65);
}

#carouselPrev {
  left: 1rem;
}

#carouselNext {
  right: 1rem;
}

.carousel-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.carousel-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.2);
}

@media (max-width: 640px) {
  .hero-carousel {
    height: 24rem;
  }

  .carousel-slide {
    padding: 2rem 1.5rem;
    align-items: flex-end;
  }

  .carousel-slide-title {
    font-size: 1.5rem;
  }
}

/* ===================================================================
   Grelha de "Jogos em Destaque"
   =================================================================== */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border-color);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.offer-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.offer-card-badge.novo {
  background: rgba(16, 185, 129, 0.18);
  color: var(--green-accent);
}

.offer-card-badge.hot {
  background: rgba(240, 180, 41, 0.18);
  color: var(--gold-accent);
}

.offer-card-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-light));
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.offer-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
}

.offer-card-text {
  color: var(--gray-text);
  font-size: 0.85rem;
  line-height: 1.5;
}

.offer-card-cta {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--blue-light);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===================================================================
   Secção "Últimos Vídeos"
   =================================================================== */

.videos-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 40%;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
  background: var(--secondary-dark);
}

.videos-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .videos-embed-wrap {
    padding-top: 90%;
  }
}
