:root {
      --primary-green: #5c8e32;
      --primary-green-hover: #70ad3d;
      --primary-green-glow: rgba(92, 142, 50, 0.4);
      --dirt-brown: #3c2a21;
      --dirt-brown-light: #523b30;
      --stone-dark: #121214;
      --stone-gray: #1e1e22;
      --stone-gray-light: #2d2d35;
      --accent-gold: #fdb813;
      --accent-gold-hover: #ffc83b;
      --text-white: #ffffff;
      --text-light: #e2e8f0;
      --text-muted: #94a3b8;
      --border-color: #3f3f46;
      --font-pixel: 'Press Start 2P', monospace;
      --font-pixel-tall: 'VT323', monospace;
      --font-body: 'Inter', sans-serif;
    }

    /* BASE RESET & GLOBAL STYLES */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background-color: var(--stone-dark);
      background-image: 
        linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
      background-size: 32px 32px;
      color: var(--text-light);
      font-family: var(--font-body);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    /* CUSTOM MINECRAFT SCROLLBAR */
    ::-webkit-scrollbar {
      width: 12px;
    }
    ::-webkit-scrollbar-track {
      background: var(--stone-dark);
    }
    ::-webkit-scrollbar-thumb {
      background: var(--stone-gray-light);
      border: 3px solid var(--stone-dark);
      border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: var(--primary-green);
    }

    a {
      color: var(--primary-green-hover);
      text-decoration: none;
      transition: color 0.2s ease;
    }
    a:hover {
      color: var(--accent-gold);
    }

    /* HEADER & STICKY NAV */
    header {
      background: var(--stone-gray);
      border-top: 5px solid var(--primary-green);
      border-bottom: 4px solid var(--dirt-brown);
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

    .header-container {
      max-width: 1400px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 24px;
      height: 72px;
    }

    /* LOGO */
    .logo-area {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .logo-icon {
      width: 38px;
      height: 38px;
      image-rendering: pixelated;
    }

    .logo-text {
      font-family: var(--font-pixel);
      font-size: 16px;
      color: var(--text-white);
      text-shadow: 2px 2px 0px #000;
      letter-spacing: -0.5px;
    }
    .logo-text span {
      color: var(--primary-green-hover);
    }

    /* DESKTOP NAVIGATION */
    .nav-menu {
      display: flex;
      list-style: none;
      gap: 8px;
    }

    .nav-item a {
      font-family: var(--font-pixel-tall);
      font-size: 20px;
      font-weight: 500;
      color: var(--text-light);
      padding: 8px 16px;
      border-radius: 4px;
      transition: all 0.15s ease;
      display: inline-block;
      border-bottom: 3px solid transparent;
    }

    .nav-item a:hover,
    .nav-item.active a {
      color: var(--accent-gold);
      background: rgba(255, 255, 255, 0.03);
      border-bottom-color: var(--accent-gold);
      transform: translateY(-2px);
    }

    /* HAMBURGER FOR MOBILE */
    .hamburger {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      flex-direction: column;
      justify-content: space-between;
      width: 28px;
      height: 20px;
      z-index: 1010;
    }

    .hamburger span {
      display: block;
      width: 100%;
      height: 3px;
      background-color: var(--text-white);
      border-radius: 2px;
      transition: all 0.3s ease;
    }

    /* Hamburger Animation States */
    .hamburger.active span:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
      transform: translateY(-9px) rotate(-45deg);
    }

    /* MOBILE NAV DRAWER */
    .mobile-drawer {
      position: fixed;
      top: 0;
      right: -100%;
      width: 280px;
      height: 100vh;
      background-color: var(--stone-gray);
      border-left: 4px solid var(--dirt-brown);
      box-shadow: -10px 0 30px rgba(0,0,0,0.5);
      z-index: 1005;
      padding: 100px 24px 24px;
      transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .mobile-drawer.active {
      right: 0;
    }

    .mobile-drawer .nav-item a {
      font-family: var(--font-pixel-tall);
      font-size: 26px;
      width: 100%;
      padding: 12px 16px;
      border-bottom: 2px solid var(--stone-gray-light);
    }

    .drawer-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0,0,0,0.7);
      z-index: 1002;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .drawer-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }

    /* MAIN CONTAINER LAYOUT */
    main {
      max-width: 1400px;
      margin: 15px auto;
      padding: 0 24px;
      display: grid;
      grid-template-columns: 1fr;
      gap: 32px;
    }

    @media (min-width: 1024px) {
      main {
        grid-template-columns: 7fr 3fr;
      }
    }

    /* MAIN GAME SECTION (LEFT COLUMN) */
    .game-section {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    /* GAME BOX CONTAINER */
    .game-container {
      background: var(--stone-gray);
      border: 4px solid var(--stone-gray-light);
      border-bottom: 8px solid var(--dirt-brown);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      position: relative;
    }

    /* TOP GAME CONTROL BAR (NOW AT BOTTOM) */
    .game-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--stone-gray-light);
      padding: 12px 20px;
      border-top: 4px solid var(--stone-gray);
    }

    .game-title {
      font-family: var(--font-pixel);
      font-size: 14px;
      color: var(--accent-gold);
      text-shadow: 1px 1px 0 #000;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .game-title::before {
      content: '';
      display: inline-block;
      width: 8px;
      height: 8px;
      background-color: var(--primary-green-hover);
      box-shadow: 0 0 8px var(--primary-green-hover);
    }

    /* MINECRAFT BUTTONS */
    .btn-minecraft {
      font-family: var(--font-pixel);
      font-size: 10px;
      color: var(--text-white);
      background-color: #4a4a52;
      border: 2px solid #000;
      border-bottom: 4px solid #28282c;
      padding: 8px 14px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all 0.1s ease;
      image-rendering: pixelated;
    }
    
    .btn-minecraft:hover {
      background-color: #5c5c66;
    }
    
    .btn-minecraft:active {
      border-bottom-width: 2px;
      transform: translateY(2px);
    }

    /* IFRAME EMBED WRAPPER */
    .game-iframe-wrapper {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      background: #000;
    }

    .game-iframe-wrapper iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: none;
      z-index: 2;
    }

    /* Game Iframe Loading Overlay */
    .game-loader {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: #101012;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 16px;
      z-index: 3;
      transition: opacity 0.5s ease;
    }

    .loader-cube {
      width: 48px;
      height: 48px;
      background-color: var(--primary-green);
      border-bottom: 8px solid var(--dirt-brown);
      border-radius: 4px;
      animation: rotateCube 1.2s infinite ease-in-out;
      box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    }

    .loader-text {
      font-family: var(--font-pixel);
      font-size: 11px;
      color: var(--text-muted);
      letter-spacing: 0.5px;
    }

    @keyframes rotateCube {
      0% { transform: scale(1) rotate(0deg); }
      50% { transform: scale(0.85) rotate(180deg); }
      100% { transform: scale(1) rotate(360deg); }
    }

    /* FULLSCREEN CLASS INJECTED BY JS */
    .game-container.is-fullscreen {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      max-width: none !important;
      max-height: none !important;
      border: none !important;
      border-radius: 0 !important;
      z-index: 99999 !important;
      display: flex;
      flex-direction: column;
    }

    .game-container.is-fullscreen .game-iframe-wrapper {
      flex: 1;
      aspect-ratio: auto;
    }

    /* RIGHT SIDEBAR (MORE MINECRAFT GAMES) */
    aside {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .sidebar-panel {
      background: var(--stone-gray);
      border: 4px solid var(--stone-gray-light);
      border-bottom: 8px solid var(--stone-gray-light);
      border-radius: 8px;
      padding: 10px;
    }

    .sidebar-title {
      font-family: var(--font-pixel);
      font-size: 14px;
      color: var(--text-white);
      margin-bottom: 20px;
      padding-bottom: 12px;
      border-bottom: 3px solid var(--dirt-brown);
      position: relative;
    }
    .sidebar-title::after {
      content: '';
      position: absolute;
      bottom: -3px;
      left: 0;
      width: 40px;
      height: 3px;
      background-color: var(--primary-green);
    }

    .sidebar-cards {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }

    /* HORIZONTAL CARD STYLING (NOW INVENTORY SQUARE SLOT STYLE) */
    .game-card-horizontal {
      background: #8b8b8b; /* Minecraft UI inventory slot grey */
      border: 4px solid;
      border-color: #373737 #dbdbdb #dbdbdb #373737; /* Beveled inset borders */
      aspect-ratio: 1 / 1;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      transition: all 0.15s ease;
      padding: 0;
      color: inherit;
      text-decoration: none;
    }

    .game-card-horizontal:hover {
      background: #a0a0a0;
      border-color: var(--primary-green-hover);
      box-shadow: 0 0 12px var(--primary-green-glow);
      transform: scale(1.06) rotate(1deg);
    }

    .card-thumb-mini {
      width: 100%;
      height: 100%;
      background: none;
      border: none;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      overflow: hidden;
    }

    .card-thumb-mini svg,
    .card-thumb-mini img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      image-rendering: pixelated;
      transition: transform 0.2s ease;
    }

    .game-card-horizontal:hover .card-thumb-mini svg,
    .game-card-horizontal:hover .card-thumb-mini img {
      transform: scale(1.1);
    }

    /* HOVER TITLE FOR INVENTORY BLOCKS */
    .card-title-hover {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      background: rgba(0, 0, 0, 0.85);
      color: var(--text-white);
      font-family: var(--font-pixel-tall);
      font-size: 14px;
      text-align: center;
      padding: 4px 2px;
      transform: translateY(100%);
      transition: transform 0.2s ease;
      pointer-events: none;
      box-shadow: 0 -2px 5px rgba(0,0,0,0.5);
      z-index: 5;
    }

    .game-card-horizontal:hover .card-title-hover {
      transform: translateY(0);
    }

    /* RELATED GAMES GRID SECTION */
    .related-section {
      background: var(--stone-gray);
      border: 4px solid var(--stone-gray-light);
      border-radius: 8px;
      padding: 24px;
      margin-top: 0px;
    }

    .section-title {
      font-family: var(--font-pixel);
      font-size: 18px;
      color: var(--text-white);
      margin-bottom: 24px;
      padding-bottom: 12px;
      border-bottom: 4px solid var(--dirt-brown);
      position: relative;
    }
    
    .section-title::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 60px;
      height: 4px;
      background-color: var(--primary-green);
    }

    .grid-4 {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
    }

    @media (min-width: 600px) {
      .grid-4 {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    @media (min-width: 1024px) {
      .grid-4 {
        grid-template-columns: repeat(5, 1fr);
      }
    }

    /* VERTICAL CARD STYLING */
    .game-card-vertical {
      background: var(--stone-gray-light);
      border-radius: 6px;
      overflow: hidden;
      border-bottom: 4px solid var(--stone-gray);
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      flex-direction: column;
      cursor: pointer;
      color: inherit;
      text-decoration: none;
    }

    .game-card-vertical:hover {
      transform: translateY(-6px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 12px var(--primary-green-glow);
      border-bottom-color: var(--primary-green);
    }

    .card-thumb-large {
      aspect-ratio: 1 / 1;
      background: var(--stone-dark);
      display: flex;
      justify-content: center;
      align-items: center;
      border-bottom: 3px solid var(--stone-gray);
      position: relative;
    }

    .card-thumb-large svg,
    .card-thumb-large img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .card-thumb-large svg {
      width: 72px;
      height: 72px;
      image-rendering: pixelated;
    }

    .game-card-vertical:hover .card-thumb-large svg,
    .game-card-vertical:hover .card-thumb-large img {
      transform: scale(1.15) rotate(4deg);
    }

    .card-tag {
      position: absolute;
      top: 8px;
      left: 8px;
      background: rgba(0,0,0,0.7);
      color: var(--accent-gold);
      font-family: var(--font-pixel);
      font-size: 8px;
      padding: 4px 6px;
      border-radius: 2px;
    }

    .card-info-large {
      padding: 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      flex: 1;
      gap: 12px;
    }

    .card-title-large {
      font-family: var(--font-pixel-tall);
      font-size: 22px;
      font-weight: bold;
      color: var(--text-white);
      line-height: 1.1;
    }

    .btn-play-large {
      font-family: var(--font-pixel);
      font-size: 10px;
      color: var(--text-white);
      background-color: var(--stone-dark);
      border: 2px solid var(--stone-gray);
      border-bottom: 4px solid #000;
      padding: 8px 12px;
      text-align: center;
      border-radius: 4px;
      transition: all 0.15s ease;
    }

    .game-card-vertical:hover .btn-play-large {
      background-color: var(--primary-green);
      border-color: #000;
      border-bottom-color: #3c5e20;
    }

    /* GAME INFORMATION & SEO ARTICLE */
    .game-info-article {
      background: var(--stone-gray);
      border: 4px solid var(--stone-gray-light);
      border-radius: 8px;
      padding: 32px 24px;
    }

    .game-info-article h2, h3 {
      font-family: var(--font-pixel);
      font-size: 18px;
      color: var(--text-white);
      margin-top: 28px;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    .game-info-article h2::before {
      content: '';
      display: inline-block;
      width: 12px;
      height: 12px;
      background-color: var(--accent-gold);
    }

    .game-info-article h2:first-of-type {
      margin-top: 0;
    }

    .game-info-article p {
      color: var(--text-light);
      margin-bottom: 18px;
      font-size: 15px;
      line-height: 1.7;
    }

    .game-info-article strong {
      color: var(--accent-gold);
      font-weight: 600;
    }

    .info-list {
      margin-left: 20px;
      margin-bottom: 20px;
      list-style-type: square;
    }

    .info-list li {
      margin-bottom: 8px;
      color: var(--text-light);
    }

    /* CONTROLS TABLE STYLING */
    .controls-table-wrapper {
      overflow-x: auto;
      margin: 20px 0 28px;
      border-radius: 6px;
      border: 2px solid var(--stone-gray-light);
    }

    .controls-table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
    }

    .controls-table th, 
    .controls-table td {
      padding: 14px 18px;
    }

    .controls-table th {
      background-color: var(--stone-gray-light);
      font-family: var(--font-pixel-tall);
      font-size: 20px;
      color: var(--accent-gold);
      border-bottom: 2px solid var(--stone-gray);
    }

    .controls-table tr {
      border-bottom: 1px solid var(--stone-gray-light);
      background-color: rgba(255, 255, 255, 0.01);
      transition: background-color 0.15s ease;
    }

    .controls-table tr:hover {
      background-color: rgba(255, 255, 255, 0.03);
    }

    /* KEYBOARD KEY WRAPPER (KBD) */
    kbd {
      background-color: #2b2b30;
      border: 1px solid #44444a;
      border-bottom: 3px solid #111113;
      border-radius: 4px;
      color: var(--text-white);
      display: inline-block;
      font-family: var(--font-body);
      font-size: 12px;
      font-weight: bold;
      padding: 3px 8px;
      text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
      min-width: 28px;
      text-align: center;
    }

    /* FEATURES GRID (WHY PLAY SECTION) */
    .features-section {
      background: var(--stone-gray);
      border: 4px solid var(--stone-gray-light);
      border-radius: 8px;
      padding: 32px 24px;
    }

    .features-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
      margin-top: 24px;
    }

    @media (min-width: 600px) {
      .features-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 768px) {
      .features-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .feature-card {
      background: var(--stone-gray-light);
      padding: 20px;
      border-radius: 6px;
      border-top: 3px solid var(--stone-gray);
      transition: all 0.2s ease;
    }

    .feature-card:hover {
      border-top-color: var(--accent-gold);
      transform: translateY(-4px);
    }

    .feature-icon-wrapper {
      margin-bottom: 12px;
    }

    .feature-icon-wrapper svg {
      width: 32px;
      height: 32px;
      fill: var(--accent-gold);
    }

    .feature-title {
      font-family: var(--font-pixel-tall);
      font-size: 20px;
      color: var(--text-white);
      margin-bottom: 8px;
    }

    .feature-desc {
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.5;
    }

    /* FOOTER */
    footer {
      background-color: #0f0f11;
      border-top: 6px solid var(--dirt-brown);
      padding: 60px 24px 30px;
      margin-top: 60px;
    }

    .footer-container {
      max-width: 1400px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr;
      gap: 40px;
    }

    @media (min-width: 768px) {
      .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
      }
    }

    .footer-about .logo-area {
      margin-bottom: 16px;
    }

    .footer-about p {
      color: var(--text-muted);
      font-size: 14px;
      margin-bottom: 16px;
    }

    .footer-title {
      font-family: var(--font-pixel);
      font-size: 12px;
      color: var(--text-white);
      margin-bottom: 20px;
      position: relative;
    }

    .footer-links {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .footer-links a {
      color: var(--text-muted);
      font-size: 14px;
      transition: color 0.15s ease;
    }

    .footer-links a:hover {
      color: var(--primary-green-hover);
      padding-left: 4px;
    }

    .footer-bottom {
      max-width: 1400px;
      margin: 40px auto 0;
      padding-top: 24px;
      border-top: 1px solid var(--stone-gray-light);
      text-align: center;
      font-size: 12px;
      color: var(--text-muted);
    }

    /* ADVERTISEMENT SPACES */
    .banner-slot {
      background: #18181c;
      border: 2px dashed #3f3f46;
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 16px auto;
      position: relative;
      border-radius: 4px;
      overflow: hidden;
    }

    .banner-slot::before {
      content: 'ADVERTISEMENT';
      font-family: var(--font-pixel);
      font-size: 8px;
      color: #52525b;
      letter-spacing: 1px;
    }

    .slot-970x90 {
      width: 100%;
      max-width: 970px;
      height: 90px;
    }

    .slot-300x250 {
      width: 100%;
      max-width: 300px;
      height: 250px;
      margin-bottom: 20px;
    }

    /* Hamburger & Responsive Layout fixes */
    @media (max-width: 1023px) {
      .nav-menu {
        display: none;
      }
      .hamburger {
        display: flex;
      }
    }