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

*{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{
  background:rgba(8,18,10,.88);
  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:270px minmax(430px,1fr);
  gap:20px;
}

.inventory-card{padding:14px;background:rgba(5,12,6,.92)}
.slot-title{font-weight:900;font-size:22px;padding:8px 8px 12px;text-shadow:3px 3px #000}
.inventory-card iframe{width:100%;height:calc(100% - 50px);border:0;background:#111;display:block}
.chat-card iframe{background:#050505;border:0;min-height:360px}
.chat-fallback{height:26px;display:flex;align-items:end;justify-content:center}
.chat-fallback a{color:#ffdf6b;font-weight:900}

.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:76vh;display:none;grid-template-rows:230px 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}
}


.radio-player{
  height:calc(100% - 50px);
  min-height:190px;
  padding:22px;
  border:2px solid rgba(104,223,72,.45);
  border-radius:8px;
  background:
    linear-gradient(135deg,rgba(104,223,72,.08),transparent 55%),
    #020603;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:9px;
  overflow:hidden;
}
.radio-station{font-size:25px;font-weight:1000;color:#ffd36a;text-shadow:3px 3px #000}
.radio-tagline{color:#d9d1aa;font-size:14px;font-weight:700;letter-spacing:.5px}
.radio-now-playing{display:flex;align-items:center;gap:9px;margin-top:6px;color:#fff;font-weight:900}
.radio-live-dot{width:11px;height:11px;border-radius:50%;background:#68df48;box-shadow:0 0 12px #68df48}
.radio-toggle{
  width:100%;
  margin-top:10px;
  padding:13px 18px;
  border:3px solid #6daa55;
  background:linear-gradient(#8ff15f,#2f8c32);
  color:#061006;
  font-size:17px;
  font-weight:1000;
  cursor:pointer;
  box-shadow:4px 4px 0 #000;
}
.radio-toggle:hover{filter:brightness(1.08)}
.radio-toggle:active{transform:translate(2px,2px);box-shadow:2px 2px 0 #000}
