/* ==========================================================================
   MINECRAFT OFFICIAL WEBSITE CLONE - STYLESHEET
   Crafted with authentic pixel art aesthetics, 3D transforms, & retro polish
   ========================================================================== */

:root {
  --mc-green: #3c8527;
  --mc-green-light: #52a535;
  --mc-green-dark: #235216;
  --mc-stone: #4e4e4e;
  --mc-stone-light: #707070;
  --mc-stone-dark: #2a2a2a;
  --mc-dirt: #573d26;
  --mc-dirt-dark: #372412;
  --mc-gold: #fcee21;
  --mc-diamond: #4dedf4;
  --mc-xp: #80ff20;
  --mc-red: #b92e2e;
  --mc-red-dark: #7a1b1b;
  --font-pixel: "Courier New", Courier, monospace;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sky-day-top: #1b74e4;
  --sky-day-bottom: #70b4ff;
  --sky-night-top: #060913;
  --sky-night-bottom: #162035;
  --bg-color: #121418;
  --card-bg: #1e222b;
  --text-main: #ffffff;
  --text-sub: #b2b8c5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease;
}

/* ==========================================================================
   PIXEL TEXTURES (DATA-URI SVG)
   ========================================================================== */
.dirt-bg {
  background-image: radial-gradient(#6d4c2b 15%, transparent 16%), radial-gradient(#4a3118 15%, transparent 16%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  background-color: #573d26;
}

/* ==========================================================================
   ANNOUNCEMENT TOP BAR
   ========================================================================== */
.announcement-bar {
  background: #11141a;
  border-bottom: 2px solid #282f3c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
  font-size: 0.85rem;
  z-index: 100;
  position: relative;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.badge-new {
  background: var(--mc-green);
  color: #fff;
  font-weight: 900;
  font-size: 0.7rem;
  padding: 2px 6px;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.4), inset -1px -1px 0 rgba(0,0,0,0.5);
  letter-spacing: 1px;
}

.announcement-text {
  color: #e2e8f0;
}

.announcement-link {
  color: var(--mc-gold);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.announcement-link:hover {
  text-decoration: underline;
  color: #fff;
}

.quick-controls {
  display: flex;
  gap: 8px;
}

.ctrl-btn {
  background: #252b38;
  border: 1px solid #3d4659;
  color: #d8e2ec;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.ctrl-btn:hover {
  background: #353d4f;
  border-color: #5c6880;
  color: #fff;
}

/* ==========================================================================
   MINECRAFT BUTTON STYLES (ICONIC BEVELED BUTTONS)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: transform 0.05s, filter 0.15s;
  font-family: var(--font-pixel), var(--font-main);
  text-shadow: 2px 2px 0 #000;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 0;
}

.btn-mc {
  padding: 10px 20px;
  font-size: 0.95rem;
  border: 2px solid #000;
  position: relative;
}

.btn-green {
  background: linear-gradient(to bottom, #4a9e2a 0%, #357a1e 100%);
  color: #ffffff;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.45),
    inset -2px -2px 0px #1e4511,
    0 3px 0 #0f2409;
}

.btn-green:hover {
  background: linear-gradient(to bottom, #59be32 0%, #3f9124 100%);
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.6),
    inset -2px -2px 0px #1e4511,
    0 3px 0 #0f2409;
}

.btn-green:active {
  transform: translateY(2px);
  box-shadow: 
    inset 2px 2px 0px #1e4511,
    inset -2px -2px 0px rgba(255, 255, 255, 0.3),
    0 1px 0 #0f2409;
}

.btn-stone {
  background: linear-gradient(to bottom, #696969 0%, #4a4a4a 100%);
  color: #ffffff;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.35),
    inset -2px -2px 0px #242424,
    0 3px 0 #181818;
}

.btn-stone:hover {
  background: linear-gradient(to bottom, #7a7a7a 0%, #585858 100%);
}

.btn-stone:active {
  transform: translateY(2px);
  box-shadow: 
    inset 2px 2px 0px #242424,
    inset -2px -2px 0px rgba(255, 255, 255, 0.2),
    0 1px 0 #181818;
}

.btn-red {
  background: linear-gradient(to bottom, #c0392b 0%, #962d22 100%);
  color: #fff;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.4),
    inset -2px -2px 0px #5c1b14,
    0 3px 0 #3b100c;
}

.btn-red:hover {
  background: linear-gradient(to bottom, #d64536 0%, #a83226 100%);
}

.btn-hero-lg {
  padding: 14px 28px;
  font-size: 1.1rem;
}

/* ==========================================================================
   MAIN HEADER NAVIGATION
   ========================================================================== */
.main-header {
  background: #181b22;
  border-bottom: 3px solid #000;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mojang-svg {
  width: 90px;
  height: 24px;
  display: block;
}

.brand-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.minecraft-logo {
  cursor: pointer;
  user-select: none;
}

.logo-pixel-text {
  font-family: var(--font-pixel), Impact, sans-serif;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #b0b0b0;
  background: linear-gradient(to bottom, #dcdcdc 0%, #8c8c8c 50%, #525252 51%, #3a3a3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 2px 0px #000000) drop-shadow(-1px -1px 0px #222);
}

.splash-text-wrapper {
  position: absolute;
  top: 22px;
  left: 110px;
  pointer-events: none;
}

.splash-text {
  font-family: var(--font-pixel), sans-serif;
  color: var(--mc-gold);
  font-size: 0.95rem;
  font-weight: bold;
  white-space: nowrap;
  text-shadow: 2px 2px 0 #3f3f00, 1px 1px 0 #000;
  transform: rotate(-14deg);
  animation: splashBounce 0.6s infinite alternate ease-in-out;
}

@keyframes splashBounce {
  0% { transform: rotate(-14deg) scale(1); }
  100% { transform: rotate(-14deg) scale(1.08); }
}

.nav-menu {
  display: flex;
  gap: 16px;
}

.nav-link {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: #252b38;
  border-color: #3b4458;
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-sky-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  transition: background 0.6s ease;
}

.theme-day .hero-sky-bg {
  background: linear-gradient(180deg, var(--sky-day-top) 0%, var(--sky-day-bottom) 100%);
}

.theme-night .hero-sky-bg {
  background: linear-gradient(180deg, var(--sky-night-top) 0%, var(--sky-night-bottom) 100%);
}

.celestial-body {
  position: absolute;
  top: 50px;
  right: 12%;
  width: 70px;
  height: 70px;
  border: 3px solid #000;
  box-shadow: 0 0 30px rgba(255, 230, 100, 0.6);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-day .celestial-body {
  background: #ffff55;
  box-shadow: 0 0 35px #ffff55;
}

.theme-night .celestial-body {
  background: #e6e6e6;
  box-shadow: 0 0 25px rgba(230, 230, 230, 0.5);
  top: 60px;
  right: 18%;
}

/* Pixel Mountains & Clouds */
.pixel-clouds {
  position: absolute;
  top: 80px;
  left: 0;
  width: 200%;
  height: 90px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 120px,
    rgba(255, 255, 255, 0.4) 120px,
    rgba(255, 255, 255, 0.4) 220px,
    transparent 220px,
    transparent 450px
  );
  animation: moveClouds 40s linear infinite;
}

@keyframes moveClouds {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.pixel-mountains {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  height: 120px;
  background: 
    linear-gradient(135deg, #274b33 25%, transparent 25%) -40px 0,
    linear-gradient(225deg, #274b33 25%, transparent 25%) -40px 0,
    linear-gradient(315deg, #1b3624 25%, transparent 25%),
    linear-gradient(45deg, #1b3624 25%, transparent 25%);
  background-size: 80px 80px;
  opacity: 0.55;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.hero-text-col {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-tag {
  display: inline-block;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--mc-gold);
  color: var(--mc-gold);
  font-family: var(--font-pixel);
  font-weight: bold;
  padding: 4px 12px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-pixel), var(--font-main);
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: 1px;
  color: #fff;
}

.highlight-text {
  color: var(--mc-gold);
  text-shadow: 3px 3px 0 #946900, 3px 3px 8px rgba(0,0,0,0.9);
}

.hero-desc {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 580px;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.platform-support {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.support-label {
  color: #d1d5db;
  font-weight: 600;
}

.platform-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.platform-badge {
  background: rgba(15, 20, 28, 0.75);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   3D INTERACTIVE BLOCK WORKSHOP
   ========================================================================== */
.block-stage-card {
  background: rgba(18, 22, 30, 0.85);
  border: 3px solid #000;
  box-shadow: 
    inset 2px 2px 0 rgba(255,255,255,0.2),
    0 10px 30px rgba(0,0,0,0.6);
  padding: 24px;
  backdrop-filter: blur(8px);
}

.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #2d3546;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.stage-title {
  font-family: var(--font-pixel);
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
}

.stage-hint {
  font-size: 0.75rem;
  color: var(--mc-gold);
}

.block-viewport {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  cursor: grab;
  position: relative;
  user-select: none;
}

.block-viewport:active {
  cursor: grabbing;
}

.block-3d-scene {
  width: 120px;
  height: 120px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(38deg);
  transition: transform 0.08s ease-out;
}

.cube-shadow {
  position: absolute;
  bottom: 20px;
  width: 140px;
  height: 40px;
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  filter: blur(8px);
  transform: rotateX(65deg);
  pointer-events: none;
}

.cube-face {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(0,0,0,0.25);
  background-size: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Face positioning for a 120px cube (z-distance = 60px) */
.cube-front  { transform: rotateY(0deg) translateZ(60px); }
.cube-back   { transform: rotateY(180deg) translateZ(60px); filter: brightness(0.65); }
.cube-right  { transform: rotateY(90deg) translateZ(60px); filter: brightness(0.8); }
.cube-left   { transform: rotateY(-90deg) translateZ(60px); filter: brightness(0.7); }
.cube-top    { transform: rotateX(90deg) translateZ(60px); filter: brightness(1.1); }
.cube-bottom { transform: rotateX(-90deg) translateZ(60px); filter: brightness(0.5); }

/* --- Block Textures (Procedural Pixel Art via CSS) --- */
/* 1. Grass Block */
.block-grass .cube-top {
  background-color: #4a8522;
  background-image: 
    radial-gradient(#5da22e 20%, transparent 20%),
    radial-gradient(#3a6b1a 20%, transparent 20%);
  background-size: 15px 15px;
  background-position: 0 0, 7.5px 7.5px;
}
.block-grass .cube-bottom {
  background-color: #5c3c1e;
  background-image: 
    radial-gradient(#4a2f16 20%, transparent 20%),
    radial-gradient(#734c26 20%, transparent 20%);
  background-size: 15px 15px;
  background-position: 0 0, 7.5px 7.5px;
}
.block-grass .cube-front,
.block-grass .cube-back,
.block-grass .cube-left,
.block-grass .cube-right {
  background: linear-gradient(to bottom, #4a8522 0%, #4a8522 25%, #5c3c1e 25%, #5c3c1e 100%);
  position: relative;
}

/* 2. Diamond Ore */
.block-diamond .cube-face {
  background-color: #696969;
  background-image: 
    radial-gradient(#525252 20%, transparent 20%),
    radial-gradient(#26c6da 15%, transparent 16%),
    radial-gradient(#80deea 10%, transparent 11%);
  background-size: 20px 20px, 40px 40px, 30px 30px;
}

/* 3. TNT Block */
.block-tnt .cube-top,
.block-tnt .cube-bottom {
  background-color: #b92e2e;
  background-image: radial-gradient(#6b1616 25%, transparent 25%);
  background-size: 15px 15px;
}
.block-tnt .cube-front,
.block-tnt .cube-back,
.block-tnt .cube-left,
.block-tnt .cube-right {
  background: linear-gradient(to bottom, #b92e2e 0%, #b92e2e 35%, #ffffff 35%, #ffffff 65%, #b92e2e 65%, #b92e2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.block-tnt .cube-front::after,
.block-tnt .cube-back::after,
.block-tnt .cube-left::after,
.block-tnt .cube-right::after {
  content: "TNT";
  color: #000;
  font-family: var(--font-pixel), Impact;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 2px;
}

/* 4. Crafting Table */
.block-crafting .cube-top {
  background: #a06e3b;
  background-image: 
    linear-gradient(#4d3419 2px, transparent 2px),
    linear-gradient(90deg, #4d3419 2px, transparent 2px);
  background-size: 40px 40px;
}
.block-crafting .cube-bottom {
  background: #734f2a;
}
.block-crafting .cube-front,
.block-crafting .cube-back,
.block-crafting .cube-left,
.block-crafting .cube-right {
  background: #8b5f33;
  border: 4px solid #4a331a;
}

/* 5. Obsidian */
.block-obsidian .cube-face {
  background-color: #12101e;
  background-image: 
    radial-gradient(#2d1e4e 15%, transparent 16%),
    radial-gradient(#4a2b7f 10%, transparent 11%);
  background-size: 18px 18px, 30px 30px;
}

/* Block Selector Chips */
.block-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.block-chip {
  background: #252b38;
  border: 2px solid #3b4458;
  color: #d1d5db;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-pixel);
  font-weight: bold;
  transition: all 0.15s;
}

.block-chip:hover {
  background: #353d4f;
  color: #fff;
}

.block-chip.active {
  background: var(--mc-green);
  border-color: #000;
  color: #fff;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.4), inset -1px -1px 0 rgba(0,0,0,0.5);
}

.block-info-box {
  background: #12151c;
  border: 1px solid #252b38;
  padding: 12px;
  border-radius: 2px;
}

.block-name {
  font-family: var(--font-pixel);
  color: var(--mc-gold);
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.block-desc {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* Grass Top Divider */
.grass-divider {
  height: 24px;
  background: #4a8522;
  position: relative;
  z-index: 10;
  border-bottom: 4px solid #325e16;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  background-image: repeating-linear-gradient(
    90deg,
    #4a8522 0px,
    #4a8522 16px,
    #3f751c 16px,
    #3f751c 32px
  );
}

/* ==========================================================================
   MINING MINI-GAME SECTION
   ========================================================================== */
.minigame-section {
  background: #1b1e26;
  padding: 70px 20px;
  border-bottom: 3px solid #000;
  position: relative;
}

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

.section-title-wrap {
  text-align: center;
  margin-bottom: 45px;
}

.pixel-tag {
  display: inline-block;
  background: #252b38;
  border: 1px solid #48536b;
  color: var(--mc-gold);
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  font-weight: bold;
  padding: 3px 10px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-pixel), var(--font-main);
  font-size: 2.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-sub);
  font-size: 1rem;
  max-width: 650px;
  margin: 0 auto;
}

.mining-game-container {
  background: #14161d;
  border: 3px solid #000;
  box-shadow: 0 8px 25px rgba(0,0,0,0.7);
  padding: 35px;
  display: grid;
  grid-template-columns: 280px 1fr 220px;
  gap: 30px;
  align-items: center;
}

.mining-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: #1f2430;
  border: 2px solid #2f374a;
  padding: 14px;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 4px;
  font-family: var(--font-pixel);
}

.stat-value {
  font-family: var(--font-pixel);
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
}

.stat-value.xp-level {
  color: var(--mc-xp);
  text-shadow: 0 0 10px rgba(128, 255, 32, 0.4);
}

.inventory-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.slot {
  width: 48px;
  height: 48px;
  background: #13161c;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #282f3c, inset -2px -2px 0 #0a0b0e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 1.3rem;
}

.slot-qty {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 0.7rem;
  font-family: var(--font-pixel);
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}

.mining-target-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.target-block-wrapper {
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: transform 0.05s;
}

.target-block-wrapper:active {
  transform: scale(0.96);
}

.target-block {
  width: 170px;
  height: 170px;
  border: 4px solid #000;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
  image-rendering: pixelated;
}

.block-ore {
  background-color: #696969;
  background-image: 
    radial-gradient(#4d4d4d 25%, transparent 25%),
    radial-gradient(#26c6da 18%, transparent 19%),
    radial-gradient(#4dedf4 12%, transparent 13%);
  background-size: 24px 24px, 48px 48px, 36px 36px;
}

/* Breaking Cracks Texture Layers */
.crack-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
}

.mining-progress-bar {
  width: 170px;
  height: 10px;
  background: #000;
  border: 1px solid #333;
  margin-top: 14px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--mc-xp);
  transition: width 0.08s linear;
}

.mining-tip {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--mc-gold);
  font-family: var(--font-pixel);
}

.mining-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   GAMES ECOSYSTEM SECTION
   ========================================================================== */
.games-section {
  background: #14171f;
  padding: 80px 20px;
  border-bottom: 3px solid #000;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 25px;
}

.game-card {
  background: #1c212c;
  border: 3px solid #000;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.7);
}

.game-card.featured-game {
  border-color: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--mc-green);
  color: #fff;
  font-size: 0.75rem;
  font-family: var(--font-pixel);
  font-weight: bold;
  padding: 3px 8px;
  border: 1px solid #000;
  z-index: 5;
  box-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

.card-badge.badge-blue { background: #2563eb; }
.card-badge.badge-orange { background: #ea580c; }
.card-badge.badge-purple { background: #9333ea; }

.game-thumbnail {
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid #000;
}

.mc-standard-thumb {
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%), #2c4c38;
  background-image: 
    radial-gradient(#4a8522 30%, transparent 31%),
    radial-gradient(#5c3c1e 30%, transparent 31%);
  background-size: 32px 32px;
}

.mc-dungeons-thumb {
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.9) 100%), #2c1a3a;
  background-image: radial-gradient(#6d28d9 20%, transparent 21%);
  background-size: 28px 28px;
}

.mc-legends-thumb {
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.9) 100%), #1e3a4c;
  background-image: radial-gradient(#0284c7 20%, transparent 21%);
  background-size: 28px 28px;
}

.mc-realms-thumb {
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.9) 100%), #3a1e2c;
  background-image: radial-gradient(#d97706 20%, transparent 21%);
  background-size: 28px 28px;
}

.thumb-title {
  display: block;
  font-family: var(--font-pixel), Impact;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #000;
}

.thumb-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--mc-gold);
  font-weight: 600;
}

.game-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.game-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.game-features {
  list-style: none;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.game-card-footer {
  border-top: 1px solid #2d3546;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-origin {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--mc-gold);
  font-family: var(--font-pixel);
}

/* ==========================================================================
   CORE FEATURES (PILLARS) SECTION
   ========================================================================== */
.features-section {
  background: #171b23;
  padding: 80px 20px;
  border-bottom: 3px solid #000;
}

.features-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.tab-btn {
  background: #232936;
  border: 2px solid #3b4458;
  color: #d1d5db;
  padding: 10px 20px;
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  background: #2e3748;
  color: #fff;
}

.tab-btn.active {
  background: var(--mc-green);
  border-color: #000;
  color: #fff;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.4), inset -2px -2px 0 rgba(0,0,0,0.5);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.feature-detail-grid {
  background: #11141b;
  border: 3px solid #000;
  padding: 35px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 35px;
  align-items: center;
}

.feature-info h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 14px;
}

.feature-info p {
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.hl-icon {
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  background: #1c222e;
  border: 1px solid #333d52;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-visual {
  height: 280px;
  border: 3px solid #000;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.visual-badge {
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--mc-gold);
  color: var(--mc-gold);
  padding: 4px 10px;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
}

.visual-build {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 100%);
  background-image: 
    linear-gradient(#3b82f6 2px, transparent 2px),
    linear-gradient(90deg, #3b82f6 2px, transparent 2px);
  background-size: 30px 30px;
}

.visual-survive {
  background: linear-gradient(135deg, #451a03 0%, #1c1917 100%);
  background-image: radial-gradient(#b45309 20%, transparent 20%);
  background-size: 32px 32px;
}

.visual-explore {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  background-image: radial-gradient(#10b981 18%, transparent 19%);
  background-size: 36px 36px;
}

.visual-redstone {
  background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
  background-image: 
    linear-gradient(#ef4444 2px, transparent 2px),
    linear-gradient(90deg, #ef4444 2px, transparent 2px);
  background-size: 25px 25px;
}

/* ==========================================================================
   LATEST NEWS & PATCH NOTES
   ========================================================================== */
.news-section {
  background: #13161d;
  padding: 80px 20px;
  border-bottom: 3px solid #000;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.news-card {
  background: #1c212c;
  border: 3px solid #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-img {
  height: 180px;
  position: relative;
  padding: 14px;
}

.img-news-1 {
  background: linear-gradient(135deg, #4338ca, #1e1b4b);
}
.img-news-2 {
  background: linear-gradient(135deg, #047857, #064e3b);
}
.img-news-3 {
  background: linear-gradient(135deg, #b45309, #78350f);
}

.news-category {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-family: var(--font-pixel);
  font-weight: bold;
  border: 1px solid #000;
}

.tag-update { background: #3b82f6; color: #fff; }
.tag-community { background: var(--mc-green); color: #fff; }
.tag-movie { background: #f59e0b; color: #000; }

.news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.news-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-summary {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.news-readmore {
  color: var(--mc-gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
  font-family: var(--font-pixel);
}

.news-readmore:hover {
  text-decoration: underline;
}

/* ==========================================================================
   COMMUNITY HUB BANNER
   ========================================================================== */
.community-section {
  background: #181c25;
  padding: 70px 20px;
  border-bottom: 3px solid #000;
}

.community-banner-card {
  background: linear-gradient(90deg, #141720 0%, #202636 100%);
  border: 3px solid #000;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 30px;
  align-items: center;
}

.community-info h2 {
  font-size: 2.1rem;
  font-family: var(--font-pixel), var(--font-main);
  color: #fff;
  margin-bottom: 12px;
}

.community-info p {
  color: var(--text-sub);
  font-size: 1rem;
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.community-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.pixel-steve-alex {
  width: 140px;
  height: 140px;
  background: #2b3345;
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pixel-steve-alex::after {
  content: "👾";
  font-size: 5rem;
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */
.mc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(4px);
}

.mc-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mc-modal {
  background: #1e222d;
  border: 4px solid #000;
  box-shadow: 
    inset 2px 2px 0 rgba(255,255,255,0.25),
    0 15px 40px rgba(0,0,0,0.8);
  width: 90%;
  max-width: 520px;
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.mc-modal-overlay.active .mc-modal {
  transform: translateY(0);
}

.mc-modal-header {
  background: #141720;
  border-bottom: 3px solid #000;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.mc-modal-body {
  padding: 24px;
}

.modal-item-display {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #141720;
  border: 2px solid #2d3546;
  padding: 14px;
  margin-bottom: 20px;
}

.modal-item-icon {
  font-size: 2.2rem;
}

.modal-item-info h4 {
  font-size: 1rem;
  color: #fff;
}

.modal-item-info p {
  font-size: 0.8rem;
  color: var(--text-sub);
}

.modal-price {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: var(--mc-gold);
  font-weight: bold;
  margin-top: 4px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: #d1d5db;
  margin-bottom: 8px;
  font-weight: 600;
}

.platform-select-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  background: #283040;
  border: 1px solid #404c64;
  color: #d1d5db;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}

.chip.active {
  background: var(--mc-green);
  border-color: #000;
  color: #fff;
}

.mc-input {
  width: 100%;
  background: #12141a;
  border: 2px solid #000;
  color: #fff;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.mc-input:focus {
  border-color: var(--mc-green);
}

.mc-modal-footer {
  border-top: 2px solid #2d3546;
  padding: 16px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #141720;
}

/* ==========================================================================
   TOAST MESSAGE
   ========================================================================== */
.mc-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #1b202c;
  border: 2px solid #000;
  box-shadow: 
    inset 2px 2px 0 rgba(255,255,255,0.3),
    0 8px 20px rgba(0,0,0,0.6);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  color: #fff;
  z-index: 2000;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mc-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   MAIN FOOTER
   ========================================================================== */
.main-footer {
  background: #0f1117;
  position: relative;
}

.dirt-footer-bar {
  height: 20px;
  background-color: #5c3c1e;
  background-image: 
    radial-gradient(#4a2f16 20%, transparent 20%),
    radial-gradient(#734c26 20%, transparent 20%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  border-top: 3px solid #000;
  border-bottom: 2px solid #372412;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 30px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-family: var(--font-pixel);
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--mc-gold);
}

.footer-bottom {
  border-top: 1px solid #232938;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-text {
  font-family: var(--font-pixel);
  font-weight: 900;
  font-size: 0.85rem;
  color: #e5e7eb;
  letter-spacing: 2px;
}

.logo-divider {
  color: #4b5563;
}

.copyright-text {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .mining-game-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .feature-detail-grid {
    grid-template-columns: 1fr;
  }
  .community-banner-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .community-actions {
    justify-content: center;
  }
  .pixel-steve-alex {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .btn-hero-lg {
    padding: 10px 18px;
    font-size: 0.95rem;
  }
  .announcement-bar {
    flex-direction: column;
    gap: 6px;
  }
}
