@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');


:root {
  --bg-primary: #04070C;
  --bg-secondary: #0A1424;
  --bg-card: rgba(16, 28, 48, 0.6);
  --color-primary: #FF6B35;
  --color-primary-hover: #FF8F66;
  --color-accent: #FFCC44;
  --color-accent-hover: #FFE088;
  --color-success: #4CAF50;
  --color-danger: #D32F2F;
  --border-color: rgba(255, 255, 255, 0.1);
  --font-nunito: 'Nunito', sans-serif;
  --font-outfit: 'Outfit', sans-serif;
  --max-width: 1200px;
}


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

body {
  background-color: var(--bg-primary);
  color: #FFFFFF;
  font-family: var(--font-outfit);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}


#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

header, main, footer {
  position: relative;
  z-index: 10;
}

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


header {
  border-b: 1px solid var(--border-color);
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-nunito);
  font-weight: 900;
  font-size: 1.5rem;
  color: #FFFFFF;
}

.logo-orange {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.nav-item:hover {
  opacity: 1;
  color: var(--color-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}


.coins-badge {
  background: rgba(255, 204, 68, 0.1);
  border: 1px solid rgba(255, 204, 68, 0.3);
  color: var(--color-accent);
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 10px rgba(255, 204, 68, 0.05);
}

.lang-switch {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #FFFFFF;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.1);
}


.hero {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
}

.hero-content h1 {
  font-family: var(--font-nunito);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FFFFFF 50%, #B0C4DE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.1rem;
  color: #A0AEC0;
  margin-bottom: 2rem;
}


.vip-card {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(10, 20, 36, 0.8) 100%);
  border: 2px solid var(--color-primary);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.15);
}

.vip-card-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: var(--color-primary);
  filter: blur(40px);
  opacity: 0.2;
  pointer-events: none;
}

.vip-header {
  margin-bottom: 1.5rem;
}

.vip-badge {
  background: var(--color-primary);
  color: #FFFFFF;
  font-family: var(--font-nunito);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.vip-header h3 {
  font-family: var(--font-nunito);
  font-weight: 800;
  font-size: 1.4rem;
}

.vip-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vip-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vip-input-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #A0AEC0;
}

.vip-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  color: #FFFFFF;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.vip-input:focus {
  border-color: var(--color-primary);
}

.vip-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #A0AEC0;
  cursor: pointer;
}

.vip-checkbox-label input {
  margin-top: 0.2rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #FF9944 100%);
  color: #FFFFFF;
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-family: var(--font-nunito);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.vip-success-container {
  display: none;
  text-align: center;
  padding: 2rem 0;
  animation: fadeIn 0.5s ease forwards;
}

.vip-success-icon {
  font-size: 3rem;
  color: var(--color-success);
  margin-bottom: 1rem;
}


.lobby-section {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.lobby-title-bar {
  margin-bottom: 2rem;
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
}

.lobby-title-bar h2 {
  font-family: var(--font-nunito);
  font-weight: 900;
  font-size: 2rem;
}

.lobby-title-bar p {
  color: #A0AEC0;
  font-size: 0.95rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}


.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.game-card-banner {
  height: 150px;
  background: linear-gradient(135deg, #1C2834 0%, #0F1720 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.game-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-vip {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.game-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-card-header h3 {
  font-family: var(--font-nunito);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.game-card-header p {
  color: #A0AEC0;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-card-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  z-index: 20;
}

.game-card.locked .game-card-lock-overlay {
  display: flex;
}


.mascot-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mascot-avatar {
  font-size: 2.5rem;
  animation: float 3s ease-in-out infinite;
}

.mascot-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  position: relative;
  flex-grow: 1;
}

.mascot-bubble::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #111E2E;
  border-left: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}


.compliance-bar {
  background: #000000;
  border-top: 2px solid var(--color-primary);
  position: sticky;
  bottom: 0;
  z-index: 100;
  padding: 0.8rem 1rem;
  text-align: center;
}

.compliance-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 768px) {
  .compliance-container {
    flex-direction: column;
  }
}

.compliance-text {
  font-size: 0.75rem;
  color: #A0AEC0;
  text-align: left;
}

.compliance-text a {
  color: var(--color-primary);
  font-weight: 600;
}

.ksa-badge {
  font-weight: 900;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 12, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-content {
  background: var(--bg-secondary);
  border: 2px solid var(--color-primary);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  position: relative;
}

.modal-content h2 {
  font-family: var(--font-nunito);
  font-weight: 900;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.modal-content p {
  color: #A0AEC0;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.modal-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #FFFFFF;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-family: var(--font-nunito);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
}

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


#cooling-exclusion-overlay {
  display: none;
}


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

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


/* =========================================
   VISUAL UPGRADE & RESPONSIVE DESIGN
   ========================================= */

/* Hero Banner Background */
.hero {
  background-image: linear-gradient(rgba(4, 7, 12, 0.75), rgba(4, 7, 12, 0.95)), url('../img/hero_bg.webp');
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  padding: 4rem 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}

/* Game Card Banners using generated images */
.game-card-banner {
  color: transparent !important; /* Hide emoji */
  font-size: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  transition: transform 0.5s ease;
}
.game-card:hover .game-card-banner {
  transform: scale(1.05);
}

.game-card:nth-child(1) .game-card-banner { background-image: url('../img/tulip_fever.webp'); }
.game-card:nth-child(2) .game-card-banner { background-image: url('../img/the_windmill.webp'); }
.game-card:nth-child(3) .game-card-banner { background-image: url('../img/canal_feast.webp'); }
.game-card:nth-child(4) .game-card-banner { background-image: url('../img/cheese_market.webp'); }
.game-card:nth-child(5) .game-card-banner { background-image: url('../img/cyclists_luck.webp'); }
.game-card:nth-child(6) .game-card-banner { background-image: url('../img/sint_pancras.webp'); }

/* Mobile Responsiveness */
@media (max-width: 768px) {
  /* Header */
  .header-container {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  /* Games Grid */
  .games-grid {
    grid-template-columns: 1fr; /* Full width cards on mobile */
    gap: 1rem;
  }

  /* Game Engines (Slots, Poker, Roulette) */
  .game-engine-wrapper {
    padding: 1rem !important;
  }
  .slots-machine {
    padding: 1rem !important;
  }
  .reels-row {
    gap: 5px !important;
  }
  .reels-row > div > div {
    height: 50px !important;
    font-size: 1.5rem !important;
  }
  .controls-panel {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .wager-selector {
    justify-content: center !important;
  }
  .poker-action-btns {
    flex-direction: column;
    width: 100%;
  }
  .poker-action-btns button {
    width: 100%;
  }
}


/* =========================================
   COMPREHENSIVE MAIN FOOTER
   ========================================= */
.main-footer {
  background: var(--bg-secondary);
  border-top: 4px solid var(--color-primary);
  padding: 4rem 1.5rem 1rem 1.5rem;
  margin-top: 4rem;
  font-family: var(--font-outfit);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer-brand p {
  color: #A0AEC0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-disclaimer {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 107, 53, 0.1);
  border-left: 3px solid var(--color-primary);
  display: inline-block;
  color: var(--color-primary) !important;
  font-weight: bold;
}

.footer-links h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--color-primary);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #A0AEC0;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #A0AEC0;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}


/* =========================================
   ULTRA-MOBILE 320PX SAFEGUARDS
   ========================================= */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  overflow-wrap: break-word;
}

@media (max-width: 380px) {
  /* Hero & Headings */
  .hero-content h1 {
    font-size: 2.2rem !important;
  }
  .hero {
    padding: 2rem 1rem;
    margin: 1rem auto;
  }
  
  /* Layout Paddings */
  .lobby-section {
    padding: 0 1rem;
  }
  .header-container {
    padding: 0.8rem;
  }
  
  /* Cards & Games */
  .game-card-content {
    padding: 1rem;
  }
  .game-card-banner {
    height: 120px;
  }
  .vip-card {
    padding: 1.5rem 1rem;
  }
  
  /* Mascot */
  .mascot-widget {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  .mascot-bubble::after {
    display: none; /* Hide arrow if stacked vertically */
  }
  
  /* Footer */
  .footer-grid {
    gap: 1.5rem;
  }
  .main-footer {
    padding: 2rem 1rem 1rem 1rem;
  }
  
  /* Modals & Buttons */
  .modal-content {
    padding: 1.5rem;
  }
  .modal-btns {
    flex-direction: column;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    padding: 0.8rem;
  }

  /* Engines inside games.js */
  .poker-action-btns {
    flex-direction: column;
  }
  .roulette-bets {
    flex-direction: column;
  }
  .reels-row > div > div {
    font-size: 1.2rem !important;
    height: 40px !important;
  }
}


/* =========================================
   GAMES ENGINE FLEXIBLE GRIDS
   ========================================= */
.roulette-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: center;
}
.roulette-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 580px) {
  .roulette-main-grid, .roulette-controls-grid {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================
   PAGE LAYOUT GRIDS (MOBILE-FIRST)
   ========================================= */
#play-arena-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
}

.chat-main-grid {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

@media (max-width: 968px) {
  #play-arena-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .chat-main-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}


/* =========================================
   ADDITIONAL GRID CLEANUPS
   ========================================= */
.exclusion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.controls-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 480px) {
  .exclusion-grid {
    grid-template-columns: 1fr; /* Stack timeout buttons on very small screens */
  }
}


/* =========================================
   BURGER MENU (991px)
   ========================================= */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1000;
}

.burger-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #FFF;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.burger-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 991px) {
  .burger-btn {
    display: flex;
    margin-left: 1rem;
  }
  
  .header-container {
    flex-wrap: nowrap !important;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(4, 7, 12, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1.5rem;
    align-items: flex-start;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
    pointer-events: none;
    overflow-x: hidden !important;
    white-space: normal !important;
    padding-bottom: 1.5rem !important;
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: all;
  }
  
  .nav-item {
    font-size: 1.2rem;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
}


/* =========================================
   POPULAR GAMES CARDS FIX
   ========================================= */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

/* Prevent stretching if there are only 2 or 3 cards on large screens */
@media (min-width: 968px) {
  .lobby-section .games-grid, 
  main .games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 350px));
    justify-content: center;
  }
}


/* =========================================
   ULTRA-MOBILE HEADER FIX (Two Rows)
   ========================================= */
@media (max-width: 480px) {
  .header-container {
    flex-wrap: wrap !important;
  }
  
  .burger-btn {
    order: 2;
    margin-left: auto; /* Push burger to the far right */
  }

  .header-right {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 15px;
  }
  
  .nav-links {
    top: 120px !important; /* Adjust dropdown position since header is taller now */
  }
}


/* =========================================
   LOGO NO-WRAP FIX
   ========================================= */
.logo-link {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}


/* Mobile overflow fixes for specific pages */
@media (max-width: 480px) {
  .chat-main-grid { grid-template-columns: 1fr !important; }
  .mascot-widget { flex-direction: column; text-align: center; }
  .mascot-avatar { margin: 0 auto; }
}


/* =========================================
   ULTRA-MOBILE NUCLEAR FIX (<= 360px)
   ========================================= */
@media (max-width: 360px) {
  body, html {
    word-break: break-word !important;
    overflow-x: hidden !important;
  }
  main {
    padding: 0 1rem !important;
  }
  th, td {
    padding: 0.5rem !important;
  }
  h1, h2 {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
  }
}


/* =========================================
   FLEXBOX OVERFLOW SHRINK FIX
   ========================================= */
main, .chat-main-grid {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
}
