:root {
  --panel: rgba(11, 21, 34, .82);
  --line: rgba(255, 255, 255, .14);
  --text: #f7fbff;
  --muted: #bdd0e7;
  --blue: #35c7ff;
  --aqua: #58ffe1;
  --green: #74ef72;
  --lime: #c7ff5d;
  --sand: #ffd77a;
  --orange: #ff9d4d;
  --purple: #b06cff;
  --shadow: 0 28px 90px rgba(0, 0, 0, .42);
  --radius: 26px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  overflow-x: hidden;
}
.guide-page {
  background:
    radial-gradient(circle at 18% 4%, rgba(116, 239, 114, .18), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(255, 215, 122, .16), transparent 26rem),
    linear-gradient(145deg, #090f19, #152033 46%, #07101c);
}
.sea-page {
  background:
    radial-gradient(circle at 18% 4%, rgba(88, 255, 225, .25), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(53, 199, 255, .28), transparent 26rem),
    linear-gradient(145deg, #04121c, #0d3148 46%, #06101d);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .105;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.08) 75%);
  background-size: 32px 32px;
  background-position: 0 0, 0 16px, 16px -16px, -16px 0;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.pixel-sky, .ocean-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.pixel-sky {
  opacity: .22;
  background:
    linear-gradient(180deg, rgba(88, 151, 255, .32), transparent 36rem),
    radial-gradient(circle at 62% 80%, rgba(255, 157, 77, .14), transparent 20rem);
}
.ocean-bg {
  inset: auto 0 0;
  height: 54vh;
  opacity: .45;
  background:
    linear-gradient(180deg, transparent, rgba(42, 187, 255, .22)),
    repeating-linear-gradient(105deg, rgba(88,255,225,.16) 0 18px, transparent 18px 72px);
  animation: tide 12s ease-in-out infinite;
}
.bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bubbles span {
  position: absolute;
  bottom: -40px;
  border: 2px solid rgba(120, 235, 255, .45);
  border-radius: 50%;
  animation: bubbleUp linear infinite;
}
.pixel-cloud {
  position: fixed;
  z-index: 0;
  width: 190px;
  height: 60px;
  background: rgba(255,255,255,.58);
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.16));
  clip-path: polygon(0 45%, 13% 45%, 13% 23%, 31% 23%, 31% 0, 63% 0, 63% 24%, 83% 24%, 83% 45%, 100% 45%, 100% 78%, 0 78%);
  animation: cloud 30s linear infinite;
}
.cloud-one { top: 118px; left: -240px; }
.cloud-two { top: 310px; left: -350px; opacity: .42; animation-duration: 42s; animation-delay: -12s; }
.float-block {
  position: fixed;
  z-index: 0;
  width: 58px;
  height: 58px;
  box-shadow: inset 0 -10px rgba(0,0,0,.18), 0 24px 46px rgba(0,0,0,.26);
  animation: bob 6s ease-in-out infinite;
}
.grass-block { left: 4%; top: 34%; background: linear-gradient(#75ed67 0 30%, #7b4b24 30%); }
.stone-block { right: 7%; top: 20%; background: linear-gradient(135deg, #aeb7c2, #5f6b77 58%, #323b45); animation-delay: -2s; }
.end-block { right: 13%; bottom: 16%; background: linear-gradient(135deg, #f2f0aa, #8d80b8); animation-delay: -4s; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: 1220px;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.03em; font-size: clamp(1rem, 2vw, 1.28rem); }
.cube-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(#65dc5b 0 30%, #7a4b24 30%);
  border: 3px solid rgba(255,255,255,.18);
  box-shadow: inset 0 -7px rgba(0,0,0,.22), 0 12px 28px rgba(0,0,0,.24);
}
.water-logo { background: linear-gradient(#58ffe1 0 32%, #1c7fa5 32%); }
.cube-logo span { width: 12px; height: 12px; background: rgba(255,255,255,.74); box-shadow: 14px 0 rgba(255,255,255,.35), 0 14px rgba(0,0,0,.3); }
.nav nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a {
  color: var(--muted);
  font-weight: 900;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: transform .16s ease, color .16s ease, background .16s ease, border-color .16s ease;
}
.nav nav a:hover { color: #fff; background: rgba(255,255,255,.08); border-color: var(--line); transform: translateY(-2px); }
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.08);
  width: 46px;
  height: 42px;
}
.hero, .section, .quickbar {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 72px 18px;
}
.hero {
  min-height: calc(100svh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, .72fr);
  align-items: center;
  gap: 32px;
}
.sea-hero { min-height: 76svh; }
.tag {
  margin: 0 0 16px;
  color: var(--aqua);
  font-family: "Press Start 2P", monospace;
  font-size: clamp(.58rem, 1.5vw, .72rem);
  line-height: 1.8;
  text-transform: uppercase;
}
.guide-page .tag { color: var(--lime); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.6rem, 8vw, 6.9rem); line-height: .9; letter-spacing: -.075em; margin-bottom: 20px; text-shadow: 0 8px rgba(0,0,0,.2); }
h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); line-height: .96; letter-spacing: -.06em; margin-bottom: 15px; }
h3 { font-size: 1.35rem; margin-bottom: 8px; }
.lead { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.12rem); line-height: 1.75; max-width: 68ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn, .server-box button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 950;
  color: #06111c;
  background: linear-gradient(135deg, var(--lime), var(--green));
  box-shadow: inset 0 -5px rgba(0,0,0,.22), 0 16px 35px rgba(116,239,114,.18);
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
}
.btn.water, .server-box button { background: linear-gradient(135deg, var(--blue), var(--aqua)); box-shadow: inset 0 -5px rgba(0,0,0,.22), 0 16px 36px rgba(53,199,255,.22); }
.btn.secondary { background: linear-gradient(135deg, #d7e0ea, #94a6ba); }
.btn:hover, .server-box button:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.07); }
.btn:active, .server-box button:active { transform: translateY(0) scale(.98); }
.btn.copied, .server-box button.copied { background: linear-gradient(135deg, var(--lime), var(--sand)); }
.mc-card {
  background: linear-gradient(180deg, var(--panel), rgba(8, 17, 29, .9));
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(16px);
}
.hero-panel, .sea-panel { padding: 18px; animation: panelFloat 5s ease-in-out infinite; }
.screen-top { display: flex; align-items: center; gap: 7px; padding: 13px; background: rgba(0,0,0,.24); border: 1px solid var(--line); border-radius: 18px; }
.heart { width: 18px; height: 18px; background: #ff536c; clip-path: polygon(50% 90%, 0 35%, 14% 10%, 36% 10%, 50% 25%, 64% 10%, 86% 10%, 100% 35%); }
.screen-top b { margin-left: auto; color: var(--sand); }
.pixel-inventory, .craft-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.craft-grid { grid-template-columns: repeat(3, 1fr); }
.pixel-inventory span, .craft-grid span {
  min-height: 70px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  box-shadow: inset 0 -6px rgba(0,0,0,.16);
}
.pix {
  display: inline-block;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: inset 0 -7px rgba(0,0,0,.22), 0 10px 20px rgba(0,0,0,.2);
}
.pix.wood { background: repeating-linear-gradient(90deg, #8f5529 0 8px, #b87837 8px 16px); }
.pix.pickaxe { background: linear-gradient(135deg, transparent 0 36%, #bfcad5 36% 52%, transparent 52%), linear-gradient(45deg, transparent 0 42%, #7a4b24 42% 56%, transparent 56%); }
.pix.furnace { background: linear-gradient(#8d98a5, #4c5864); border: 5px solid #242b33; }
.pix.shield { background: linear-gradient(135deg, #b7c0ca, #6f7b88); clip-path: polygon(50% 0, 88% 16%, 76% 82%, 50% 100%, 24% 82%, 12% 16%); }
.pix.diamond { background: linear-gradient(135deg, #baffff, #1ad7ef 60%, #0b7f9c); clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%); }
.pix.blaze { background: radial-gradient(circle, #fff2a8 0 15%, #ffb43c 16% 46%, #8d3518 47%); }
.pix.eye { background: radial-gradient(circle, #0b1b23 0 14%, #9b65ff 15% 30%, #58ffe1 31% 62%, transparent 63%), #10202c; }
.pix.dragon { background: linear-gradient(135deg, #22132f, #6d39ad); clip-path: polygon(12% 30%, 45% 8%, 82% 28%, 70% 48%, 92% 70%, 55% 62%, 30% 92%, 32% 56%); }
.pix.stick { background: linear-gradient(45deg, transparent 0 40%, #9a5c2e 41% 58%, transparent 59%); }
.pix.empty { opacity: .16; }
.pix.portal { background: radial-gradient(circle, #b06cff 0 34%, #32104f 35% 63%, #111 64%); }
.pix.pearl { background: radial-gradient(circle at 35% 28%, #ffffff 0 8%, #70ffe8 9% 45%, #1c897f 46%); border-radius: 50%; }
.pix.crystal { background: linear-gradient(135deg, #ffb9ff, #b06cff 48%, #1a0f2a); clip-path: polygon(50% 0, 78% 28%, 68% 100%, 32% 100%, 22% 28%); }
.pix.sword { background: linear-gradient(135deg, transparent 0 34%, #dce6f2 35% 48%, #20304a 49% 58%, transparent 59%), linear-gradient(45deg, transparent 0 42%, #7a4b24 42% 56%, transparent 56%); }
.pix.plugin { background: linear-gradient(135deg, #31e6cf, #3f7d9f 58%, #203857); }
.pix.team { background: radial-gradient(circle at 30% 32%, #c7ff5d 0 16%, transparent 17%), radial-gradient(circle at 68% 32%, #35c7ff 0 16%, transparent 17%), linear-gradient(#223449, #0f1c2c); }
.quickbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding-top: 0; }
.quickbar div, .sea-card, .rule, .end-step, .step, .card, .big-card, .console-card, .server-strip { transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.quickbar div {
  min-height: 108px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(116,239,114,.14), rgba(122,74,37,.18));
}
.quickbar div:hover, .sea-card:hover, .rule:hover, .end-step:hover, .step:hover, .card:hover { transform: translateY(-6px); border-color: rgba(88,255,225,.55); }
.quickbar strong { display: block; color: var(--sand); font-family: "Press Start 2P"; font-size: .68rem; margin-bottom: 12px; }
.quickbar span { font-weight: 900; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.split.reverse { grid-template-columns: .85fr 1.15fr; align-items: center; }
.steps, .cards, .cards-wide { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.card, .step, .rule, .end-step, .boss-tips { padding: 22px; }
.step b, .rule b { color: var(--sand); font-size: 1.06rem; }
.card p, .step p, .rule p, .sea-card p, .end-step p { color: var(--muted); line-height: 1.65; margin-bottom: 0; }
.section-head { margin-bottom: 24px; }
.centered { text-align: center; max-width: 840px; margin-left: auto; margin-right: auto; }
.centered .lead { margin-left: auto; margin-right: auto; }
.crafting-table { padding: 20px; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checklist li { padding: 13px 16px; background: rgba(255,255,255,.07); border-left: 5px solid var(--green); border-radius: 12px; font-weight: 850; }
.endgame-section {
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 157, 77, .16), transparent 22rem),
    radial-gradient(circle at 88% 26%, rgba(176, 108, 255, .18), transparent 22rem),
    linear-gradient(180deg, rgba(45, 18, 38, .30), rgba(8, 14, 28, .08));
}
.end-tutorial { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.end-step { min-height: 250px; }
.boss-tips { margin-top: 18px; }
.boss-tips ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); line-height: 1.65; }
.sea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sea-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  min-height: 225px;
  border: 1px solid rgba(88,255,225,.22);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(20, 60, 84, .78), rgba(8, 20, 34, .84));
  box-shadow: var(--shadow);
}
.sea-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 90px;
  opacity: .28;
  background: repeating-radial-gradient(ellipse at center, rgba(88,255,225,.7) 0 2px, transparent 3px 18px);
  animation: tide 7s ease-in-out infinite;
}
.sea-panel { text-align: center; }
.big-ip {
  margin: 16px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(0,0,0,.32);
  color: var(--aqua);
  font-family: "Press Start 2P";
  font-size: clamp(.9rem, 2.3vw, 1.4rem);
  overflow-wrap: anywhere;
}
.server-strip {
  margin-top: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.server-strip small { color: var(--muted); display: block; margin-bottom: 4px; }
.server-strip strong { font-family: "Press Start 2P"; color: var(--aqua); font-size: .9rem; }
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rule { min-height: 190px; }
footer { position: relative; z-index: 1; display: flex; justify-content: center; gap: 10px; color: var(--muted); padding: 28px 16px 42px; flex-wrap: wrap; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .72s ease, transform .72s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(8deg); } 50% { transform: translateY(-18px) rotate(-3deg); } }
@keyframes cloud { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 560px)); } }
@keyframes bubbleUp { from { transform: translateY(0) scale(.85); opacity: 0; } 12% { opacity: .75; } to { transform: translateY(-105vh) scale(1.2); opacity: 0; } }
@keyframes tide { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes panelFloat { 0%,100% { transform: translateY(0) rotate(1deg); } 50% { transform: translateY(-12px) rotate(-1deg); } }
@media (max-width: 980px) {
  .hero, .split, .split.reverse, .cards, .quickbar, .sea-grid, .rules-grid, .end-tutorial { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 42px; }
  .nav { align-items: center; }
  .menu-toggle { display: grid; place-items: center; }
  .nav nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(7, 17, 31, .96);
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(.94) translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
  }
  .nav nav.open { opacity: 1; transform: scaleY(1) translateY(0); pointer-events: auto; }
}
@media (max-width: 620px) {
  .hero, .section, .quickbar { padding-left: 14px; padding-right: 14px; }
  .hero { padding-top: 28px; }
  h1 { font-size: clamp(2.35rem, 14vw, 4.2rem); }
  h2 { font-size: clamp(1.9rem, 10vw, 3rem); }
  .actions, .server-strip { flex-direction: column; align-items: stretch; }
  .btn, .server-box button { width: 100%; }
  .server-strip strong { font-size: .68rem; }
  .pixel-inventory { grid-template-columns: repeat(2, 1fr); }
  .nav nav { grid-template-columns: 1fr; }
  .brand span:last-child { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}


.guide-gallery {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: -44px auto 0;
  padding: 0 18px 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.image-card {
  overflow: hidden;
  min-height: 310px;
  display: grid;
  grid-template-rows: 190px 1fr;
}
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, rgba(116,239,114,.25), rgba(53,199,255,.2));
  transition: transform .45s ease, filter .45s ease;
}
.image-card:hover img { transform: scale(1.06); filter: saturate(1.15) contrast(1.04); }
.image-card div { padding: 18px; display: grid; gap: 7px; }
.image-card b { font-size: 1.12rem; }
.image-card span { color: var(--muted); line-height: 1.55; }
.guide-tip { padding-top: 18px; }
.guide-tip-card { padding: 28px; text-align: center; }
.guide-tip-card .lead { margin-left: auto; margin-right: auto; }
.cta-row, .server-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.server-strip.upgraded {
  align-items: stretch;
  padding: 22px;
  background: linear-gradient(135deg, rgba(53,199,255,.18), rgba(88,255,225,.10)), linear-gradient(180deg, var(--panel), rgba(8,17,29,.9));
}
.server-info { display: grid; gap: 5px; }
.server-info span { color: var(--muted); }
.server-actions { justify-content: flex-end; }
.rules-grid.detailed { grid-template-columns: repeat(4, 1fr); }
.rules-grid.detailed .rule { min-height: 255px; }
.sea-page .nav nav a { background: transparent; border-color: transparent; }
.sea-page .nav nav a:hover { background: rgba(255,255,255,.08); border-color: var(--line); }
@media (max-width: 1100px) {
  .rules-grid.detailed { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .guide-gallery { grid-template-columns: 1fr; margin-top: 0; }
  .server-strip.upgraded { align-items: stretch; }
  .server-actions { justify-content: stretch; }
}
@media (max-width: 620px) {
  .rules-grid.detailed { grid-template-columns: 1fr; }
  .image-card { grid-template-rows: 170px 1fr; }
  .cta-row, .server-actions { flex-direction: column; align-items: stretch; }
}


/* Visual polish pass: real image-led guide cards */
.image-hero-card {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  padding: 0;
  isolation: isolate;
}
.image-hero-card img,
.image-feature-card img,
.image-card img {
  filter: saturate(1.08) contrast(1.06);
}
.image-hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform .7s ease, filter .7s ease;
}
.image-hero-card::before,
.image-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 8, 16, .05), rgba(3, 8, 16, .72)),
    radial-gradient(circle at 20% 20%, rgba(199,255,93,.22), transparent 18rem);
}
.image-hero-card:hover img { transform: scale(1.08); filter: saturate(1.18) contrast(1.08); }
.image-overlay {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  background: rgba(4, 12, 22, .66);
  backdrop-filter: blur(12px);
}
.image-overlay h2 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}
.image-overlay p,
.image-feature-card p { color: var(--muted); line-height: 1.62; margin-bottom: 0; }
.mini-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #07111f;
  background: linear-gradient(135deg, var(--sand), var(--lime));
  font-weight: 950;
  font-size: .76rem;
}
.guide-gallery {
  grid-template-columns: 1.25fr .875fr .875fr;
  align-items: stretch;
}
.image-card {
  position: relative;
  min-height: 390px;
  grid-template-rows: 1fr auto;
  isolation: isolate;
}
.image-card.large { min-height: 430px; }
.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(4, 11, 20, .82));
  z-index: 1;
}
.image-card img {
  min-height: 100%;
  transition: transform .65s ease, filter .65s ease;
}
.image-card:hover img { transform: scale(1.08); }
.image-card div {
  position: relative;
  z-index: 2;
  margin: -112px 14px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background: rgba(5, 13, 24, .72);
  backdrop-filter: blur(12px);
}
.image-feature-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 430px;
  display: grid;
  align-items: end;
  isolation: isolate;
}
.image-feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease;
}
.image-feature-card:hover img { transform: scale(1.07); }
.image-feature-card > div {
  position: relative;
  z-index: 2;
  margin: 18px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: rgba(4, 12, 22, .68);
  backdrop-filter: blur(12px);
}
.crafting-table .craft-grid { display: none; }
@media (max-width: 980px) {
  .image-hero-card { min-height: 410px; }
  .guide-gallery { grid-template-columns: 1fr; }
  .image-card, .image-card.large { min-height: 360px; }
}
@media (max-width: 620px) {
  .image-hero-card { min-height: 380px; }
  .image-overlay { left: 14px; right: 14px; bottom: 14px; padding: 16px; }
  .image-card, .image-card.large, .image-feature-card { min-height: 330px; }
}


/* Performance pass: keep the same design, reduce expensive paints/layout jumps */
img { max-width: 100%; height: auto; }
.hero, .section, .quickbar, .guide-gallery { contain: layout paint; }
.mc-card, .image-card, .image-hero-card, .image-feature-card, .sea-card, .rule, .end-step { transform: translateZ(0); backface-visibility: hidden; }
.image-hero-card img, .image-feature-card img, .image-card img { will-change: transform; }
.reveal { will-change: opacity, transform; }
.reveal.visible { will-change: auto; }
.pixel-cloud, .float-block, .bubbles span, .ocean-bg { will-change: transform; }
.guide-gallery, .cards, .sea-grid, .rules-grid, .end-tutorial, .quickbar { content-visibility: auto; contain-intrinsic-size: 1px 720px; }
.section { content-visibility: auto; contain-intrinsic-size: 1px 780px; }
.image-card, .image-hero-card, .image-feature-card { overflow: hidden; }
@media (max-width: 980px) {
  .float-block, .pixel-cloud.cloud-two { display: none; }
  body::before { opacity: .07; }
  .image-hero-card img, .image-feature-card img, .image-card img { will-change: auto; }
}
@media (max-width: 620px) {
  .pixel-cloud, .float-block { display: none; }
  .bubbles span:nth-child(n+13) { display: none; }
  .ocean-bg { opacity: .28; }
  .hero, .section, .quickbar, .guide-gallery { padding-top: 48px; padding-bottom: 48px; }
}


/* Mobile polish for SeaSMP and Guide */
@media (max-width: 520px) {
  body { font-size: 15px; }
  .nav { padding-left: 12px; padding-right: 12px; }
  .brand { max-width: calc(100vw - 76px); min-width: 0; }
  .brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  h1 { font-size: clamp(2.35rem, 14vw, 4.15rem); line-height: .92; }
  h2 { font-size: clamp(1.75rem, 10vw, 2.75rem); }
  h3 { font-size: 1.12rem; }
  .lead { font-size: .98rem; line-height: 1.62; }
  .hero { gap: 20px; }
  .actions, .cta-row, .server-actions { width: 100%; }
  .btn, .server-box button { width: 100%; min-height: 52px; padding: 14px 15px; }
  .mc-card { border-radius: 20px; }
  .sea-panel, .hero-panel, .guide-tip-card, .server-strip.upgraded { padding: 18px; }
  .big-ip, .server-info strong { overflow-wrap: anywhere; word-break: break-word; }
  .big-ip { font-size: clamp(1.35rem, 9vw, 2.05rem); }
  .sea-grid, .rules-grid, .rules-grid.detailed, .cards, .end-tutorial { gap: 12px; }
  .sea-card, .rule, .end-step, .step, .card { padding: 18px; min-height: auto; }
  .image-overlay, .image-feature-card > div, .image-card div { backdrop-filter: blur(8px); }
}
@media (max-width: 380px) {
  .hero, .section, .quickbar, .guide-gallery { padding-left: 10px; padding-right: 10px; }
  .tag { font-size: .52rem; }
  .nav nav { left: 10px; right: 10px; }
}


/* Real brand logos */
.site-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.18);
  box-shadow: inset 0 -5px rgba(0,0,0,.18), 0 12px 28px rgba(0,0,0,.24);
  background: rgba(255,255,255,.08);
}
.site-logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.guide-logo { background: linear-gradient(135deg, rgba(53,199,255,.22), rgba(199,255,93,.16)); }
.guide-logo img { padding: 0; }
.sea-logo { border-radius: 12px; background: #06111c; }
.sea-logo img { image-rendering: pixelated; }
.cube-logo { display: none; }
@media (max-width: 520px) {
  .site-logo { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
}


/* SeaSMP nav separation and expanded feature polish */
.sea-nav nav .guide-link {
  margin-right: 18px;
  padding-right: 18px;
  position: relative;
  color: #e8f3ff;
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.14);
}
.sea-nav nav .guide-link::after {
  content: "";
  position: absolute;
  top: 9px;
  right: -10px;
  width: 1px;
  height: calc(100% - 18px);
  background: rgba(255,255,255,.24);
}
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature-badge {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-width: 48px;
  height: 42px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #06111c;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  font-family: "Press Start 2P", monospace;
  font-size: .62rem;
  box-shadow: inset 0 -5px rgba(0,0,0,.2), 0 14px 32px rgba(53,199,255,.18);
}
.sea-card b { color: #fff; }
.rules-grid.detailed .rule b { color: var(--aqua); }
@media (max-width: 980px) {
  .sea-nav nav .guide-link { margin-right: 0; padding-right: 13px; }
  .sea-nav nav .guide-link::after { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
}


/* SeaSMP anchor offset */
#features, #rules { scroll-margin-top: 92px; }
@media (max-width: 620px) { #features, #rules { scroll-margin-top: 78px; } }


/* Shared language selector */
.language-switcher{position:relative;display:inline-flex;align-items:center}.language-button{appearance:none;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:10px 13px;color:#edf7ff;background:rgba(255,255,255,.075);font:inherit;font-weight:900;cursor:pointer;box-shadow:inset 0 -3px rgba(0,0,0,.16);transition:transform .18s ease,border-color .18s ease,background .18s ease}.language-button:hover,.language-switcher.open .language-button{transform:translateY(-1px);border-color:rgba(82,213,255,.55);background:rgba(82,213,255,.13)}.language-menu{position:absolute;top:calc(100% + 10px);right:0;z-index:50;width:210px;display:grid;gap:7px;padding:10px;border:1px solid rgba(255,255,255,.16);border-radius:18px;background:rgba(7,16,29,.94);box-shadow:0 22px 60px rgba(0,0,0,.38),inset 0 1px rgba(255,255,255,.08);backdrop-filter:blur(14px);opacity:0;pointer-events:none;transform:translateY(-8px) scale(.98);transition:opacity .18s ease,transform .18s ease}.language-switcher.open .language-menu{opacity:1;pointer-events:auto;transform:translateY(0) scale(1)}.language-menu button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid transparent;border-radius:13px;padding:11px 12px;color:#eaf6ff;background:transparent;font:inherit;font-weight:850;cursor:pointer;text-align:left}.language-menu button:hover{border-color:rgba(82,213,255,.32);background:rgba(82,213,255,.11)}.language-menu small{color:var(--aqua);font-weight:950}@media(max-width:980px){.language-switcher{width:100%}.language-button{width:100%;text-align:left}.language-menu{position:static;width:100%;margin-top:8px;display:none;opacity:1;transform:none;pointer-events:auto}.language-switcher.open .language-menu{display:grid;transform:none}}


/* Guide external SeaSMP nav + real Minecraft item artwork */
.guide-page .nav nav .sea-guide-link {
  margin-right: 18px;
  padding-right: 18px;
  position: relative;
  color: #dffaff;
  background: linear-gradient(135deg, rgba(0,198,255,.16), rgba(55,231,255,.08));
  border-color: rgba(82,213,255,.28);
}
.guide-page .nav nav .sea-guide-link::after {
  content: "";
  position: absolute;
  top: 9px;
  right: -10px;
  width: 1px;
  height: calc(100% - 18px);
  background: rgba(255,255,255,.26);
}
.mc-item-art {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  margin-bottom: 14px;
  image-rendering: pixelated;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.28));
  transition: transform .22s ease, filter .22s ease;
}
.card:hover .mc-item-art,
.end-step:hover .mc-item-art,
.sea-card:hover .mc-item-art {
  transform: translateY(-3px) scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 18px 24px rgba(82,213,255,.18));
}
.sea-art { width: 54px; height: 54px; }
.card .pix, .end-step .pix, .sea-card .pix { display: none; }
@media (max-width: 980px) {
  .guide-page .nav nav .sea-guide-link { margin-right: 0; padding-right: 13px; }
  .guide-page .nav nav .sea-guide-link::after { display: none; }
}
@media (max-width: 520px) {
  .mc-item-art { width: 50px; height: 50px; }
}


/* Polish: normal external SeaSMP nav button and clean text separators */
.guide-page .nav nav .sea-guide-link {
  color: inherit !important;
  background: rgba(255,255,255,.075) !important;
  border-color: rgba(255,255,255,.14) !important;
  box-shadow: inset 0 -3px rgba(0,0,0,.16) !important;
}
.guide-page .nav nav .sea-guide-link:hover {
  color: #edf7ff !important;
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.25) !important;
}
.tag { letter-spacing: .055em; word-spacing: .14em; }


/* Final nav fix: SeaSMP behaves like the normal Guide nav links */
.guide-page .nav nav .sea-guide-link {
  color: var(--muted) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.guide-page .nav nav .sea-guide-link:hover,
.guide-page .nav nav .sea-guide-link:focus-visible {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow: inset 0 -3px rgba(0,0,0,.16) !important;
}


/* Hard override: Minecraft Guide external SeaSMP link must look like Start/Crafting/Endgame */
.guide-page #navMenu > a.guide-external-link,
.guide-page #navMenu > a.guide-external-link:visited {
  color: var(--muted) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}
.guide-page #navMenu > a.guide-external-link:hover,
.guide-page #navMenu > a.guide-external-link:focus-visible {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow: inset 0 -3px rgba(0,0,0,.16) !important;
}
.guide-page #navMenu > a.guide-external-link::after {
  content: "";
  position: absolute;
  top: 9px;
  right: -10px;
  width: 1px;
  height: calc(100% - 18px);
  background: rgba(255,255,255,.26);
}
@media (max-width: 980px) {
  .guide-page #navMenu > a.guide-external-link::after { display: none; }
}


/* Standalone Guide nav divider: separate from SeaSMP hover state */
.guide-page #navMenu > a.guide-external-link,
.guide-page #navMenu > a.guide-external-link:visited {
  color: var(--muted) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  margin-right: 0 !important;
  padding-right: 13px !important;
}
.guide-page #navMenu > a.guide-external-link::after { display: none !important; content: none !important; }
.guide-page #navMenu > .nav-divider {
  width: 1px;
  height: 24px;
  display: inline-block;
  flex: 0 0 1px;
  margin: 0 14px 0 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(210,226,242,.38), transparent);
  pointer-events: none;
  transform: none !important;
}
.guide-page #navMenu > a.guide-external-link:hover,
.guide-page #navMenu > a.guide-external-link:focus-visible {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow: inset 0 -3px rgba(0,0,0,.16) !important;
}
@media (max-width: 980px) {
  .guide-page #navMenu > .nav-divider { display: none; }
  .guide-page #navMenu > a.guide-external-link { padding-right: 13px !important; }
}


/* FINAL: copy SeaSMP-style divider, but keep Minecraft Guide SeaSMP link plain */
.guide-page #navMenu > .nav-divider { display: none !important; }
.guide-page #navMenu > a.guide-external-link,
.guide-page #navMenu > a.guide-external-link:visited {
  position: relative !important;
  margin-right: 18px !important;
  padding-right: 18px !important;
  color: var(--muted) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}
.guide-page #navMenu > a.guide-external-link::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 9px !important;
  right: -10px !important;
  width: 1px !important;
  height: calc(100% - 18px) !important;
  background: rgba(255,255,255,.24) !important;
  border-radius: 0 !important;
  pointer-events: none !important;
  transform: none !important;
}
.guide-page #navMenu > a.guide-external-link:hover,
.guide-page #navMenu > a.guide-external-link:focus-visible {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow: inset 0 -3px rgba(0,0,0,.16) !important;
}
.guide-page #navMenu > a.guide-external-link:hover::after,
.guide-page #navMenu > a.guide-external-link:focus-visible::after {
  background: rgba(255,255,255,.24) !important;
  transform: none !important;
}
@media (max-width: 980px) {
  .guide-page #navMenu > a.guide-external-link { margin-right: 0 !important; padding-right: 13px !important; }
  .guide-page #navMenu > a.guide-external-link::after { display: none !important; content: none !important; }
}
