:root {
  --bg-dark: #1a1a2e;          /* lighter dark background */
  --surface: #2a2a3a;           /* lighter surface */
  --red: #ff9999;                /* soft coral – main accent */
  --red-light: #ffb3b3;          /* lighter for gradients */
  --red-dark: #ff6b6b;           /* slightly deeper for contrast */
  --cream: #f0e6d2;
  --text: #f0f0f0;               /* off-white text */
  --text-muted: #c0c0c0;         /* lighter muted text */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  --shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

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

body {
  background-color: var(--bg-dark);
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  background-image: repeating-linear-gradient(45deg, rgba(255, 153, 153, 0.03) 0px, rgba(255, 153, 153, 0.03) 2px, transparent 2px, transparent 8px);
}

.app {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

/* Header with stepped design */
.header {
  margin-bottom: 2rem;
  background: linear-gradient(145deg, #2a2a3a, #1a1a2e);
  border-bottom: 6px solid var(--red);
  padding: 1rem 2rem;
  position: relative;
  box-shadow: var(--shadow);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--red) 0px, var(--red) 10px, transparent 10px, transparent 20px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo-icon {
  font-size: 2.2rem;
  color: var(--red);
}

.red {
  color: var(--red);
  text-shadow: 0 0 10px rgba(255, 153, 153, 0.5);
}

.search-wrapper {
  flex: 1;
  max-width: 400px;
}

#gameSearch {
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--red);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: 0.2s;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

#gameSearch:focus {
  border-color: var(--cream);
  box-shadow: 0 0 20px var(--red);
}

.user-actions {
  display: flex;
  gap: 0.75rem;
}

.btn {
  padding: 0.6rem 1.8rem;
  border-radius: 0;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid var(--red);
  font-family: var(--font-body);
}

.btn-outline {
  color: var(--red);
  background: transparent;
}

.btn-outline:hover {
  background: var(--red);
  color: black;
  box-shadow: 0 0 20px var(--red);
}

.btn-primary {
  background: var(--red);
  color: black;
  border: 2px solid var(--cream);
}

.btn-primary:hover {
  background: var(--cream);
  border-color: var(--red);
  box-shadow: 0 0 20px var(--cream);
}

/* Hero Section */
.hero {
  margin-bottom: 3rem;
}

.featured-game {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(145deg, #2a2a3a, #1a1a2e);
  border: 4px solid var(--red);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.featured-game::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid rgba(255, 153, 153, 0.3);
  pointer-events: none;
}

.featured-content {
  max-width: 50%;
}

.featured-tag {
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  display: inline-block;
  border-left: 6px solid var(--red);
  padding-left: 1rem;
}

.featured-title {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  color: var(--cream);
  margin-bottom: 0.5rem;
  text-shadow: 3px 3px 0 var(--red);
}

.featured-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

.featured-image img {
  max-width: 220px;
  filter: drop-shadow(0 0 20px var(--red));
}

/* Deco Stats Gauges */
.stats-gauges {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  padding: 1.5rem;
  background: rgba(42, 42, 58, 0.8);
  border: 2px solid var(--red);
}

.gauge {
  text-align: center;
}

.gauge-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(var(--red) calc(var(--percent) * 1%), transparent 0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  border: 4px solid var(--red);
  box-shadow: 0 0 30px var(--red);
  position: relative;
}

.gauge-circle::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #2a2a3a;
}

.gauge-value {
  position: relative;
  z-index: 2;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--red);
  font-family: var(--font-heading);
}

.gauge-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Main content layout */
.main-content {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.games-section {
  flex: 3;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--red);
  margin-bottom: 1.5rem;
  border-bottom: 4px solid var(--red);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
  list-style: none;
}

@media (min-width: 1200px) {
  .game-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Game Card - Art Deco Style */
.game-card {
  background: linear-gradient(145deg, #2a2a3a, #1a1a2e);
  border: 4px solid var(--red);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
}

.game-card::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 2px solid rgba(255, 153, 153, 0.3);
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--cream);
  box-shadow: 0 0 40px var(--red);
}

.game-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.game-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s;
  margin-bottom: 0.8rem;
}

.game-card:hover .game-image {
  transform: scale(1.1);
}

.game-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.4rem 0.2rem;
  width: 100%;
  text-align: center;
  border: 2px solid var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--red);
  color: black;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border: 2px solid var(--cream);
  z-index: 5;
  transform: rotate(5deg);
}

.game-card.new .badge {
  background: var(--red-dark);
  color: white;
}

.game-card.hot .badge {
  background: var(--red);
  color: black;
}

/* Winners Sidebar */
.winners-sidebar {
  flex: 1;
  background: linear-gradient(145deg, #2a2a3a, #1a1a2e);
  border: 4px solid var(--red);
  padding: 1.5rem;
  max-height: 600px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--red);
  margin-bottom: 1.5rem;
  text-align: center;
  border-top: 4px solid var(--red);
  border-bottom: 4px solid var(--red);
  padding: 0.5rem 0;
}

.winners-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.winner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--red);
  animation: fadeIn 0.3s;
}

.winner-avatar {
  width: 36px;
  height: 36px;
  background: var(--red);
  color: black;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  border: 2px solid var(--cream);
}

.winner-details {
  flex: 1;
}

.winner-name {
  font-weight: 700;
  color: var(--red);
}

.winner-game {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.winner-amount {
  font-weight: 700;
  color: var(--cream);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* No Results */
.no-results {
  display: none;
  text-align: center;
  font-size: 1.3rem;
  color: var(--red);
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(42, 42, 58, 0.9);
  border: 6px double var(--red);
}

/* Footer */
.footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 6px solid var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

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

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a3a;
  border: 4px solid var(--red);
  transition: 0.2s;
}

.social-link:hover {
  border-color: var(--cream);
  transform: scale(1.15);
  box-shadow: 0 0 20px var(--red);
}

.social-link img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.counter {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.counter-link {
  color: var(--red);
  text-decoration: none;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(42, 42, 58, 0.95);
  border-left: 8px solid var(--red);
  border: 2px solid var(--red);
  padding: 0.8rem 1.2rem;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transform: translateX(100%);
  animation: slideIn 0.3s forwards, fadeOut 0.3s 4.7s forwards;
  pointer-events: auto;
}

.toast-icon {
  font-size: 1.4rem;
  color: var(--red);
}

.toast-message {
  font-weight: 500;
}

.toast strong {
  color: var(--red);
}

@keyframes slideIn {
  to { transform: translateX(0); }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateX(100%); }
}

/* Responsive */
@media (max-width: 1024px) {
  .main-content {
    flex-direction: column;
  }

  .winners-sidebar {
    max-height: 300px;
  }

  .stats-gauges {
    flex-direction: column;
    align-items: center;
  }

  .featured-game {
    flex-direction: column;
    text-align: center;
  }

  .featured-content {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .app {
    padding: 1rem;
  }

  .header-content {
    flex-direction: column;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .game-image {
    width: 80px;
    height: 80px;
  }

  .featured-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-image {
    width: 70px;
    height: 70px;
  }
}

/* ===== NEW ELEMENTS (logo, phone, facebook, cashout image) ===== */

/* Logo image (replaces text) */
.logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}
.logo-image {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--red));
}

/* Phone number section */
.phone-wrapper {
  text-align: center;
  margin: 30px 0 20px;
}
.big-phone {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--red);
  text-decoration: none;
  display: inline-block;
  text-shadow: 0 0 15px var(--red);
  transition: opacity 0.2s;
  border-bottom: 2px solid transparent;
}
.big-phone:hover {
  opacity: 0.8;
}
.contact-owner {
  display: block;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 5px;
  animation: gentlePulse 2s infinite ease-in-out;
}
@keyframes gentlePulse {
  0% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.7; transform: scale(1); }
}

/* Facebook section */
.facebook-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
}
.facebook-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #2a2a3a;
  padding: 10px 30px;
  border-radius: 0; /* keep deco straight edges */
  border: 4px solid var(--red);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
  justify-content: center;
}
.fb-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.fb-chat-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  color: black;
  padding: 10px 24px;
  border-radius: 0;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: softPulse 2s infinite ease-in-out;
  white-space: nowrap;
  border: 2px solid var(--cream);
}
.fb-chat-link i {
  font-size: 1.2rem;
}
.fb-chat-link:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--red);
  animation: none;
}
@keyframes softPulse {
  0% { box-shadow: 0 0 0 0 var(--red); }
  50% { box-shadow: 0 0 15px 5px var(--red); }
  100% { box-shadow: 0 0 0 0 var(--red); }
}

/* Cashout rule image */
.cashout-rule {
  background: #2a2a3a;
  border: 4px solid var(--red);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.cashout-rule-img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid rgba(255, 153, 153, 0.3);
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
  .big-phone {
    font-size: 2.2rem;
  }
  .facebook-item {
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
  }
  .fb-chat-link {
    white-space: normal;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .cashout-rule {
    max-width: 100%;
    padding: 1rem;
  }
}
@media (max-width: 480px) {
  .big-phone {
    font-size: 1.8rem;
  }
  .game-image {
    width: 90px;
    height: 90px;
  }
}