:root{
  --text:#fff8dc;
  --muted:#e4d9aa;
  --green:#68df48;
  --dark:#071008;
  --gold:#ffcc57;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:Arial, Helvetica, sans-serif;
  background:#071008;
  overflow-x:hidden;
}

.sky{
  position:fixed;
  inset:0;
  z-index:-5;
  background:
    linear-gradient(to bottom,rgba(28,75,135,.55),rgba(4,9,6,.94)),
    url("data:image/svg+xml,%3Csvg width='1400' height='800' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1400' height='800' fill='%232b77b9'/%3E%3Crect y='470' width='1400' height='330' fill='%232e7d32'/%3E%3Cpath d='M0 470 L160 320 L300 470 L470 250 L690 470 L880 310 L1050 470 L1230 270 L1400 470 Z' fill='%231d321f'/%3E%3Cpath d='M0 570 L180 480 L360 570 L520 430 L760 575 L980 450 L1400 580 L1400 800 L0 800 Z' fill='%23101f12'/%3E%3C/svg%3E");
  background-size:cover;
  background-position:center;
}

.fog{
  position:fixed;
  inset:auto 0 0 0;
  height:45vh;
  z-index:-3;
  background:linear-gradient(to top,rgba(2,6,3,.9),transparent);
}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:14px 22px;
  background:rgba(4,8,5,.84);
  border-bottom:4px solid #24451f;
  box-shadow:0 10px 40px rgba(0,0,0,.5);
  backdrop-filter:blur(12px);
}

.logo{
  color:var(--text);
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:14px;
}
.logo b{display:block;font-size:28px;letter-spacing:1px;text-shadow:3px 3px #000}
.logo small{display:block;color:var(--muted);margin-top:2px}

.grass-cube{
  width:48px;
  height:48px;
  display:block;
  border:4px solid #22331a;
  background:linear-gradient(#6fba45 0 30%,#7a4b23 30% 100%);
  box-shadow:inset 0 -10px rgba(0,0,0,.18),4px 4px 0 #050705;
}

nav{display:flex;gap:10px;flex-wrap:wrap}
nav a,.mc-btn{
  color:#fff8dc;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.5px;
  padding:13px 17px;
  background:linear-gradient(#3f7d35,#163e19);
  border:3px solid #6daa55;
  box-shadow:inset 0 2px rgba(255,255,255,.2),4px 4px 0 #000;
  text-shadow:2px 2px #000;
}
.mc-btn.primary{background:linear-gradient(#8ff15f,#2f8c32);color:#061006;text-shadow:none}

.portal-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 430px;
  gap:24px;
  padding:24px;
  max-width:1800px;
  margin:0 auto;
}

main{display:flex;flex-direction:column;gap:24px}

.hero{
  min-height:500px;
  overflow:hidden;
  border:5px solid #1d3b18;
  box-shadow:8px 8px 0 #000,0 30px 90px rgba(0,0,0,.5);
  background:
    linear-gradient(to right,rgba(0,0,0,.18),rgba(0,0,0,.78)),
    repeating-linear-gradient(45deg,rgba(255,255,255,.04) 0 16px,transparent 16px 32px);
}

.hero-content{
  min-height:500px;
  padding:56px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.server-pill{
  width:max-content;
  color:#ffe184;
  font-weight:900;
  letter-spacing:2px;
  background:rgba(0,0,0,.45);
  border:2px solid rgba(255,204,87,.65);
  padding:10px 14px;
  box-shadow:4px 4px 0 #000;
}

h1{
  font-size:clamp(58px,9vw,122px);
  line-height:.82;
  margin:26px 0 22px;
  text-shadow:6px 6px #000;
}
h1 span{color:var(--green)}
.hero p{
  max-width:760px;
  font-size:22px;
  line-height:1.45;
  color:#f0e9c7;
  text-shadow:2px 2px #000;
}
.actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:22px}

.launcher-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.block-card,.book-panel,.news-board,.inventory-card,.winamp-player{
  background:rgba(8,18,10,.9);
  border:4px solid #315d29;
  box-shadow:6px 6px 0 #000,0 20px 70px rgba(0,0,0,.45);
}

.block-card{padding:26px;min-height:250px;position:relative;overflow:hidden}
.block-card:before{content:"";position:absolute;inset:0 0 auto 0;height:18px;background:linear-gradient(90deg,#68df48,#2f8c32)}
.block-card.stone:before{background:linear-gradient(90deg,#aaa,#444)}
.block-card.gold:before{background:linear-gradient(90deg,#ffdd6a,#b06d16)}
.icon{font-size:42px}
.block-card h2{font-size:30px;margin:14px 0 10px;text-shadow:3px 3px #000}
.block-card p{color:#dfd7b1;line-height:1.45}
.terminal{margin-top:20px;padding:14px;background:#010401;color:#c8ffb8;border:2px solid rgba(255,255,255,.08);font-family:monospace;font-weight:900;overflow:auto}

.book-panel,.news-board{padding:30px}
.book-title,.news-board h2{font-size:32px;margin:0 0 16px;text-shadow:3px 3px #000}
.book-panel p{font-size:18px;line-height:1.7;color:#efe6c2}

.sign-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.wood-sign{background:linear-gradient(#9a6734,#5b351b);border:4px solid #2b180c;box-shadow:5px 5px 0 #000;padding:22px;text-align:center;font-size:18px}

.inventory-dock{
  position:sticky;
  top:92px;
  height:calc(100vh - 116px);
  display:grid;
  grid-template-rows:155px minmax(520px,1fr);
  gap:16px;
}

.winamp-player{
  padding:10px;
  background:
    linear-gradient(#202634,#0a0d13);
  border-color:#59616e;
  color:#d9ffbd;
  font-family:Arial, Helvetica, sans-serif;
}

.winamp-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:6px 8px;
  background:linear-gradient(#343b4f,#151924);
  border:1px solid #70798c;
  color:#ffdf6b;
  font-weight:900;
  font-size:13px;
  letter-spacing:.8px;
}
.winamp-top a{
  color:#111;
  background:#ffcc57;
  text-decoration:none;
  padding:3px 8px;
  border-radius:2px;
  font-size:11px;
  font-weight:900;
}

.winamp-display{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:9px;
  padding:10px;
  background:#030604;
  border:2px inset #384136;
  min-height:54px;
}
.winamp-display strong{
  display:block;
  color:#8ff15f;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:285px;
}
.winamp-display small{
  display:block;
  margin-top:3px;
  color:#ffdf6b;
}

.eq-bars{
  height:32px;
  display:flex;
  align-items:end;
  gap:3px;
}
.eq-bars i{
  width:5px;
  display:block;
  background:#ffcc57;
  animation:eq 1s infinite ease-in-out;
}
.eq-bars i:nth-child(1){height:12px}
.eq-bars i:nth-child(2){height:22px;animation-delay:.1s}
.eq-bars i:nth-child(3){height:16px;animation-delay:.2s}
.eq-bars i:nth-child(4){height:28px;animation-delay:.3s}
.eq-bars i:nth-child(5){height:19px;animation-delay:.4s}
@keyframes eq{50%{height:7px}}

.winamp-controls{
  display:grid;
  grid-template-columns:42px 1fr 52px;
  gap:9px;
  align-items:center;
  margin-top:9px;
}
.winamp-controls button{
  height:34px;
  border:0;
  background:linear-gradient(#ffdd6a,#bd7a1d);
  color:#111;
  font-weight:900;
  box-shadow:2px 2px 0 #000;
  cursor:pointer;
}
.fake-progress{
  height:12px;
  background:#030604;
  border:1px solid #505a55;
  overflow:hidden;
}
.fake-progress span{
  display:block;
  height:100%;
  width:55%;
  background:linear-gradient(90deg,#68df48,#ffcc57);
}
.live-pill{
  font-size:12px;
  color:#ff4b4b;
  font-weight:900;
  text-align:center;
}

.inventory-card{padding:12px;background:rgba(5,12,6,.94)}
.slot-title{font-weight:900;font-size:20px;padding:6px 6px 10px;text-shadow:3px 3px #000}
.inventory-card iframe{width:100%;height:calc(100% - 40px);border:0;background:#111;display:block}
.chat-card iframe{background:#050505;min-height:500px}

.dock-toggle{display:none}

@media(max-width:1100px){
  .portal-layout{grid-template-columns:1fr}
  .inventory-dock{position:fixed;inset:auto 12px 72px 12px;z-index:30;height:78vh;display:none;grid-template-rows:155px 1fr}
  .inventory-dock.open{display:grid}
  .dock-toggle{display:block;position:fixed;right:16px;bottom:16px;z-index:40;padding:15px 18px;border:3px solid #6daa55;background:linear-gradient(#8ff15f,#2f8c32);color:#061006;font-weight:1000;box-shadow:5px 5px 0 #000}
}

@media(max-width:760px){
  .topbar{display:block}
  nav{margin-top:14px}
  .portal-layout{padding:14px}
  .hero-content{padding:34px 24px}
  .launcher-grid,.sign-row{grid-template-columns:1fr}
}
