/* Minecraft-styled design with German flag colors (black, red, gold/yellow) */

:root {
  --mc-black: #1a1a1a;
  --mc-dark-gray: #2d2d2d;
  --mc-gray: #4a4a4a;
  --mc-red: #cc0000;
  --mc-dark-red: #990000;
  --mc-gold: #ffd700;
  --mc-yellow: #ffcc00;
  --mc-dark-yellow: #cc9900;
  --mc-white: #ffffff;
  --mc-light-gray: #e0e0e0;
  --mc-border: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--mc-black) 0%, var(--mc-dark-gray) 100%);
  color: var(--mc-white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
header {
  background: linear-gradient(180deg, var(--mc-black) 0%, var(--mc-dark-gray) 100%);
  border-bottom: 4px solid var(--mc-red);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-container a {
  display: block;
  transition: transform 0.3s ease;
}

.logo-container a:hover {
  transform: scale(1.05);
}

.logo-container img {
  height: 60px;
  width: auto;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

.site-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--mc-gold);
  text-shadow: 
    2px 2px 0 var(--mc-black),
    4px 4px 0 var(--mc-red),
    0 0 10px rgba(255, 215, 0, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: var(--mc-dark-gray);
  border: 2px solid var(--mc-black);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
}

.mobile-menu-toggle:hover {
  background: var(--mc-gray);
  border-color: var(--mc-red);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.mobile-menu-toggle[aria-expanded="true"] {
  background: var(--mc-red);
  border-color: var(--mc-gold);
}

.menu-icon {
  width: 24px;
  height: 3px;
  background: var(--mc-white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
  position: absolute;
}

.menu-icon:nth-child(1) {
  top: 11px;
}

.menu-icon:nth-child(2) {
  top: 18.5px;
}

.menu-icon:nth-child(3) {
  top: 26px;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon:nth-child(1) {
  top: 18.5px;
  transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon:nth-child(3) {
  top: 18.5px;
  transform: rotate(-45deg);
}

/* Navigation */
.desktop-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--mc-black);
  border: none;
  border-top: none;
  border-bottom: none;
  flex-direction: column;
  padding: 0;
  margin: 0;
  gap: 0;
  box-shadow: none;
  z-index: 1000;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  margin-left: 1rem;
  margin-right: 1rem;
  border-radius: 0;
  opacity: 0;
}

.mobile-nav.active {
  display: flex;
  max-height: 500px;
  padding: 1rem;
  border-top: 3px solid var(--mc-red);
  border-bottom: 3px solid var(--mc-red);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  gap: 0.5rem;
  opacity: 1;
}

nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  background: var(--mc-dark-gray);
  color: var(--mc-white);
  text-decoration: none;
  border: 2px solid var(--mc-black);
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.5);
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
  transition: left 0.5s;
}

nav a:hover::before {
  left: 100%;
}

nav a:hover {
  background: var(--mc-red);
  color: var(--mc-white);
  border-color: var(--mc-gold);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 8px rgba(204, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

nav a:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Main Content */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

/* Sections */
section {
  background: var(--mc-dark-gray);
  border: 3px solid var(--mc-black);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mc-red), var(--mc-gold), var(--mc-red));
}

h1 {
  color: var(--mc-gold);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 
    2px 2px 0 var(--mc-black),
    4px 4px 0 var(--mc-red);
  border-bottom: 3px solid var(--mc-red);
  padding-bottom: 0.5rem;
}

h2 {
  color: var(--mc-yellow);
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-shadow: 
    2px 2px 0 var(--mc-black),
    0 0 10px rgba(255, 204, 0, 0.3);
  border-left: 4px solid var(--mc-red);
  padding-left: 1rem;
}

h3 {
  color: var(--mc-yellow);
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  text-shadow: 1px 1px 0 var(--mc-black);
}

p {
  margin-bottom: 1rem;
  color: var(--mc-light-gray);
  line-height: 1.8;
}

ul, ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
  color: var(--mc-light-gray);
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

strong {
  color: var(--mc-gold);
  font-weight: 700;
}

/* Links in content */
section a,
p a {
  color: var(--mc-gold);
  text-decoration: underline;
  text-decoration-color: var(--mc-red);
  text-underline-offset: 3px;
  transition: all 0.3s ease;
  font-weight: 500;
}

section a:hover,
p a:hover {
  color: var(--mc-yellow);
  text-decoration-color: var(--mc-gold);
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Override styles for widget links - higher specificity */
.app-download-widget a,
.casino-banner a,
.app-download-widget section a,
.casino-banner section a,
.app-download-widget p a,
.casino-banner p a {
  text-decoration: none !important;
  font-weight: normal !important;
  color: inherit !important;
  text-underline-offset: 0 !important;
}

.app-download-widget a:hover,
.casino-banner a:hover,
.app-download-widget section a:hover,
.casino-banner section a:hover,
.app-download-widget p a:hover,
.casino-banner p a:hover {
  text-shadow: none !important;
  text-decoration: none !important;
  color: inherit !important;
}

/* Ensure widget images are not affected by general link styles */
.app-download-widget img {
  display: block !important;
}

/* Casino banner images - but exclude logo which has its own size */
.casino-banner img:not(.casino-logo) {
  display: block !important;
}

.app-icon-placeholder img {
  width: 100% !important;
  height: 100% !important;
}

/* Casino logo should keep its fixed size */
.casino-logo-wrapper .casino-logo {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--mc-black);
  border: 2px solid var(--mc-red);
}

thead {
  background: linear-gradient(180deg, var(--mc-red), var(--mc-dark-red));
}

th {
  padding: 1rem;
  text-align: left;
  color: var(--mc-white);
  font-weight: bold;
  text-transform: uppercase;
  border: 2px solid var(--mc-black);
}

td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--mc-gray);
  color: var(--mc-light-gray);
}

tbody tr:nth-child(even) {
  background: var(--mc-dark-gray);
}

tbody tr:hover {
  background: rgba(255, 215, 0, 0.1);
}

/* Definition Lists / FAQ Accordion */
dl {
  margin: 1.5rem 0;
}

dt {
  color: var(--mc-gold);
  font-weight: bold;
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  background: var(--mc-dark-gray);
  border: 2px solid var(--mc-black);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  user-select: none;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

dt::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--mc-gold);
  font-weight: bold;
  transition: transform 0.3s ease;
}

dt.active::after {
  content: '−';
  transform: translateY(-50%) rotate(0deg);
}

dt:hover {
  background: var(--mc-gray);
  border-color: var(--mc-red);
  color: var(--mc-yellow);
  box-shadow: 
    0 4px 8px rgba(204, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

dt.active {
  background: var(--mc-gray);
  border-color: var(--mc-gold);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

dd {
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
  background: var(--mc-black);
  border: 2px solid var(--mc-black);
  border-top: none;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  color: var(--mc-light-gray);
}

dd.active {
  max-height: 500px;
  padding: 1.5rem;
  margin-bottom: 0.5rem;
  border-color: var(--mc-gold);
  border-top: 1px solid var(--mc-red);
}

/* Banner Images */
.banner-container {
  margin: 2rem 0;
  padding: 0;
  border: 4px solid var(--mc-black);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.7),
    inset 0 0 20px rgba(255, 215, 0, 0.1);
  position: relative;
}

.banner-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(204, 0, 0, 0.1), rgba(255, 215, 0, 0.1));
  pointer-events: none;
  z-index: 1;
}

.banner-container img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
}

/* Breadcrumbs */
.breadcrumbs {
  margin: 1rem 0;
  padding: 0.5rem 0;
}

.breadcrumbs-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}

.breadcrumbs-item:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: var(--mc-gray);
}

.breadcrumbs-link {
  color: var(--mc-light-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs-link:hover {
  color: var(--mc-gold);
}

.breadcrumbs-current {
  color: var(--mc-gold);
  font-weight: 600;
}

/* Compact Widgets Row */
.compact-widgets-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem -1rem;
  padding: 0 1rem;
}

/* App Download Widget - Compact */
.app-download-widget {
  background: var(--mc-dark-gray);
  border: 2px solid var(--mc-black);
  border-radius: 6px;
  padding: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.app-widget-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.app-icon-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.app-icon-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--mc-black);
  border: 2px solid var(--mc-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  max-width: none !important;
  max-height: none !important;
}

.app-widget-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.app-widget-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--mc-gold);
  line-height: 1.2;
}

.app-widget-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--mc-light-gray);
}

.app-rating-stars {
  color: var(--mc-gold);
  font-size: 0.7rem;
}

.app-widget-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.4rem;
  background: var(--mc-black);
  border: 1px solid var(--mc-gray);
  border-radius: 4px;
  font-size: 0.65rem;
}

.badge-icon {
  font-size: 0.7rem;
}

.badge-text {
  color: var(--mc-light-gray);
  font-weight: 500;
}

.app-download-buttons {
  display: flex;
  gap: 0.5rem;
}

.app-download-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--mc-black);
  border: 2px solid var(--mc-red);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.app-download-btn:hover {
  background: var(--mc-red);
  border-color: var(--mc-gold);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(204, 0, 0, 0.4);
}

.app-store-icon {
  width: 18px;
  height: 18px;
  color: var(--mc-white);
}

.app-btn-content {
  display: flex;
  flex-direction: column;
}

.app-btn-store {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mc-white);
  line-height: 1;
}

/* Casino Banner - Compact */
.casino-banner {
  background: var(--mc-dark-gray);
  border: 2px solid var(--mc-black);
  border-radius: 6px;
  padding: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.casino-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.casino-banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.casino-logo-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.casino-logo {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  object-fit: contain !important;
  border-radius: 6px;
  border: 2px solid var(--mc-red);
  display: block !important;
}

/* Additional specificity for wrapper img */
.casino-logo-wrapper img,
.casino-logo-wrapper .casino-logo {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
}

.casino-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.casino-title-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.casino-name {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--mc-gold);
}

.casino-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--mc-light-gray);
}

.rating-stars {
  color: var(--mc-gold);
  font-size: 0.7rem;
}

.casino-banner-center {
  flex: 1;
  display: flex;
  align-items: center;
}

.casino-features {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.7rem;
}

.casino-feature {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--mc-light-gray);
}

.feature-icon {
  font-size: 0.75rem;
  flex-shrink: 0;
}

.feature-text {
  line-height: 1.2;
}

.casino-banner-right {
  flex-shrink: 0;
}

.casino-play-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(180deg, var(--mc-red), var(--mc-dark-red));
  border: 2px solid var(--mc-black);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.casino-play-button:hover {
  background: linear-gradient(180deg, var(--mc-gold), var(--mc-dark-yellow));
  border-color: var(--mc-gold);
  transform: translateY(-1px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 8px rgba(255, 215, 0, 0.4);
}

.button-text {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--mc-white);
}

.button-arrow {
  font-size: 1rem;
  color: var(--mc-white);
}

/* Footer */
footer {
  background: linear-gradient(180deg, var(--mc-dark-gray) 0%, var(--mc-black) 100%);
  border-top: 4px solid var(--mc-red);
  padding: 2.5rem 1rem;
  padding-bottom: 2.5rem;
  margin-top: auto;
  box-shadow: 
    0 -4px 8px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mc-red), var(--mc-gold), var(--mc-red));
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--mc-gray);
}

.footer-copyright {
  padding-top: 1.5rem;
  text-align: center;
  border-top: 2px solid var(--mc-gray);
  margin-top: 1rem;
}

footer p {
  color: var(--mc-light-gray);
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--mc-light-gray);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  position: relative;
}

.footer-links a:hover {
  color: var(--mc-gold);
  border-color: var(--mc-red);
  background: rgba(255, 215, 0, 0.1);
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  transform: translateY(-1px);
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
}

.footer-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: var(--mc-black);
  border: 2px solid var(--mc-gray);
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-logo-item:hover {
  border-color: var(--mc-gold);
  background: var(--mc-dark-gray);
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 8px rgba(255, 215, 0, 0.2);
}

.footer-logo-img {
  max-height: 40px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.footer-logo-item:hover .footer-logo-img {
  filter: brightness(1.1);
}

/* Demo Game Container */
.demo-game-container {
  width: 100%;
  margin: 2rem 0;
  border: 4px solid var(--mc-black);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  background: var(--mc-black);
}

.demo-game-iframe {
  width: 100%;
  height: 600px;
  display: block;
  border: none;
}

/* 404 Page */
main > div {
  text-align: center;
  padding: 4rem 2rem;
  font-size: 3rem;
  color: var(--mc-red);
  text-shadow: 
    2px 2px 0 var(--mc-black),
    0 0 20px rgba(204, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .logo-container {
    flex: 0 0 auto;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .mobile-nav a {
    width: 100%;
    text-align: left;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 4px;
  }

  .site-title {
    font-size: 1.4rem;
  }

  main {
    padding: 1rem 0.5rem;
  }

  section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-copyright {
    width: 100%;
    padding-top: 1rem;
    margin-top: 0.5rem;
  }

  .footer-links {
    justify-content: center;
    width: 100%;
  }

  .footer-logos {
    gap: 0.75rem;
  }

  .footer-logo-item {
    padding: 0.4rem;
  }

  .footer-logo-img {
    max-height: 35px;
    max-width: 100px;
  }

  .demo-game-iframe {
    height: 400px;
  }

  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.5rem;
  }

  .compact-widgets-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem -0.5rem;
    padding: 0 0.5rem;
  }

  .app-widget-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .app-header-left {
    justify-content: center;
  }

  .app-widget-badges {
    width: 100%;
    justify-content: center;
  }

  .app-download-buttons {
    justify-content: center;
  }

  .casino-banner-content {
    flex-wrap: wrap;
    justify-content: center;
  }

  .casino-banner-left {
    justify-content: center;
  }

  .casino-banner-center {
    width: 100%;
    order: 3;
    justify-content: center;
  }

  .casino-features {
    align-items: center;
    text-align: center;
  }

  .casino-banner-right {
    width: 100%;
    order: 2;
  }

  .casino-play-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.2rem;
  }

  .logo-container img {
    height: 50px;
  }

  .mobile-menu-toggle {
    width: 35px;
    height: 35px;
  }

  .menu-icon {
    width: 20px;
  }

  .menu-icon:nth-child(1) {
    top: 9px;
  }

  .menu-icon:nth-child(2) {
    top: 16px;
  }

  .menu-icon:nth-child(3) {
    top: 23px;
  }

  .mobile-menu-toggle[aria-expanded="true"] .menu-icon:nth-child(1),
  .mobile-menu-toggle[aria-expanded="true"] .menu-icon:nth-child(3) {
    top: 16px;
  }

  .mobile-nav a {
    font-size: 0.9rem;
    padding: 0.875rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  section {
    padding: 1rem;
  }

  table {
    font-size: 0.8rem;
    display: block;
    overflow-x: auto;
  }

  .app-download-buttons {
    flex-direction: column;
  }

  .casino-features {
    font-size: 0.65rem;
  }

  .footer-logos {
    gap: 0.5rem;
  }

  .footer-logo-item {
    padding: 0.3rem;
  }

  .footer-logo-img {
    max-height: 30px;
    max-width: 80px;
  }

  .footer-links {
    gap: 0.75rem;
  }

  .footer-links a {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }
}

/* Pixelated effect for Minecraft feel */
@supports (image-rendering: pixelated) {
  .logo-container img {
    image-rendering: pixelated;
  }
}

/* Animation for loading */
@keyframes minecraft-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--mc-black);
}

::-webkit-scrollbar-thumb {
  background: var(--mc-red);
  border: 2px solid var(--mc-black);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--mc-gold);
}

/* Bottom Promo Banner */
.bottom-promo-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--mc-dark-gray) 0%, var(--mc-black) 100%);
  border-top: 3px solid var(--mc-red);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 999;
  box-shadow: 
    0 -4px 12px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.bottom-promo-banner.show {
  transform: translateY(0);
}

.bottom-promo-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
}

.bottom-promo-text {
  color: var(--mc-white);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  flex: 1;
  min-width: 200px;
}

.bottom-promo-button {
  padding: 0.75rem 2rem;
  background: linear-gradient(180deg, var(--mc-red), var(--mc-dark-red));
  color: var(--mc-white);
  text-decoration: none;
  border: 2px solid var(--mc-black);
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.5);
}

.bottom-promo-button:hover {
  background: linear-gradient(180deg, var(--mc-gold), var(--mc-dark-yellow));
  border-color: var(--mc-gold);
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 8px rgba(255, 215, 0, 0.4);
  color: var(--mc-black);
}

.bottom-promo-button:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .bottom-promo-banner {
    padding: 0.875rem;
  }

  .bottom-promo-banner-content {
    flex-direction: column;
    gap: 0.75rem;
  }

  .bottom-promo-text {
    font-size: 0.9rem;
    min-width: auto;
  }

  .bottom-promo-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .bottom-promo-banner {
    padding: 0.75rem;
  }

  .bottom-promo-text {
    font-size: 0.85rem;
  }

  .bottom-promo-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, var(--mc-red), var(--mc-dark-red));
  border: 3px solid var(--mc-black);
  border-radius: 50%;
  color: var(--mc-white);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.scroll-to-top:hover {
  background: linear-gradient(180deg, var(--mc-gold), var(--mc-dark-yellow));
  border-color: var(--mc-gold);
  transform: translateY(-3px);
  box-shadow: 
    0 6px 16px rgba(255, 215, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}

.scroll-to-top.show {
  display: flex;
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .scroll-to-top {
    right: 1.5rem;
    width: 45px;
    height: 45px;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .scroll-to-top {
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* Live Chat Widget */
.live-chat-widget {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 320px;
  max-width: calc(100vw - 4rem);
  background: var(--mc-dark-gray);
  border: 3px solid var(--mc-black);
  border-radius: 8px;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 1001;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 1024px) {
  .live-chat-widget {
    display: none !important;
  }
}

.live-chat-widget.show {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.live-chat-widget.collapsed .live-chat-content {
  display: none;
}

.live-chat-content {
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.live-chat-header {
  background: linear-gradient(180deg, var(--mc-red), var(--mc-dark-red));
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--mc-black);
}

.live-chat-status {
  width: 10px;
  height: 10px;
  background: #00ff00;
  border-radius: 50%;
  border: 2px solid var(--mc-black);
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.9);
  }
}

.live-chat-title {
  color: var(--mc-white);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  flex: 1;
}

.live-chat-toggle {
  background: transparent;
  border: none;
  color: var(--mc-white);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-weight: bold;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.live-chat-widget.collapsed .live-chat-toggle {
  font-size: 0;
}

.live-chat-widget.collapsed .live-chat-toggle::after {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--mc-white);
}

.live-chat-toggle:hover {
  color: var(--mc-gold);
  background: rgba(255, 255, 255, 0.1);
}

.live-chat-widget.collapsed .live-chat-toggle:hover::after {
  color: var(--mc-gold);
}

.live-chat-messages {
  max-height: 200px;
  overflow-y: auto;
  padding: 0.75rem;
  background: var(--mc-black);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.live-chat-message {
  padding: 0.5rem 0.75rem;
  background: var(--mc-dark-gray);
  border: 1px solid var(--mc-gray);
  border-radius: 4px;
  color: var(--mc-light-gray);
  font-size: 0.85rem;
  line-height: 1.4;
  animation: slideInMessage 0.3s ease;
  opacity: 0;
}

.live-chat-message.show {
  opacity: 1;
}

@keyframes slideInMessage {
  from {
    transform: translateX(-10px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.live-chat-message-name {
  color: var(--mc-gold);
  font-weight: 600;
  margin-right: 0.5rem;
}

.live-chat-message-time {
  color: var(--mc-gray);
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.live-chat-button {
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, var(--mc-red), var(--mc-dark-red));
  color: var(--mc-white);
  text-decoration: none;
  border: 2px solid var(--mc-black);
  border-top: none;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: block;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.5);
}

.live-chat-button:hover {
  background: linear-gradient(180deg, var(--mc-gold), var(--mc-dark-yellow));
  border-color: var(--mc-gold);
  color: var(--mc-black);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 8px rgba(255, 215, 0, 0.4);
}

@media (max-width: 768px) {
  .live-chat-widget {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 280px;
    max-width: calc(100vw - 3rem);
  }

  .live-chat-header {
    padding: 0.625rem 0.875rem;
  }

  .live-chat-title {
    font-size: 0.85rem;
  }

  .live-chat-messages {
    padding: 0.625rem;
    max-height: 180px;
  }

  .live-chat-message {
    padding: 0.45rem 0.625rem;
    font-size: 0.8rem;
  }

  .live-chat-button {
    padding: 0.625rem 0.875rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .live-chat-widget {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
  }

  .live-chat-header {
    padding: 0.5rem 0.75rem;
  }

  .live-chat-status {
    width: 8px;
    height: 8px;
  }

  .live-chat-title {
    font-size: 0.8rem;
  }

  .live-chat-messages {
    padding: 0.5rem;
    max-height: 140px;
  }

  .live-chat-message {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .live-chat-message-name {
    display: block;
    margin-bottom: 0.25rem;
    margin-right: 0;
  }

  .live-chat-message-time {
    display: block;
    margin-top: 0.25rem;
    margin-left: 0;
    font-size: 0.7rem;
  }

  .live-chat-button {
    padding: 0.625rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Учитываем плашку внизу для чата */
@media (max-width: 768px) {
  .bottom-promo-banner.show ~ .live-chat-widget,
  .live-chat-widget.has-promo-banner {
    bottom: calc(1.5rem + var(--promo-banner-height, 80px));
  }
}

@media (max-width: 480px) {
  .bottom-promo-banner.show ~ .live-chat-widget,
  .live-chat-widget.has-promo-banner {
    bottom: calc(1rem + var(--promo-banner-height, 80px));
  }
}
