:root {
  --bg: #f4f0e7;
  --surface: #fffdf8;
  --surface-2: #ede7dc;
  --ink: #1d2a21;
  --muted: #5d695f;
  --line: #d8d1c5;
  --green: #397f3c;
  --green-2: #5aaa4f;
  --green-soft: #e2f0df;
  --soil: #765039;
  --gold: #d4a839;
  --red: #b64a42;
  --blue: #3f738d;
  --shadow: 0 12px 32px rgba(40, 50, 40, .10);
  --radius: 18px;
  --radius-sm: 10px;
  --content: 1160px;
  --header-height: 76px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(57,127,60,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,127,60,.025) 1px, transparent 1px),
    var(--bg);
  background-size: 24px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a { color: var(--green); text-underline-offset: .18em; }
a:hover { color: #245d2b; }
img, svg { max-width: 100%; }
button, input { font: inherit; }
button, .button { touch-action: manipulation; }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 9999;
  padding: 10px 14px; color: white; background: #111; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 840px); margin-inline: auto; }
.section { padding: 72px 0; }
.section.compact { padding: 46px 0; }
.section.tint { background: rgba(255,255,255,.48); border-block: 1px solid rgba(216,209,197,.8); }
.section.green-tint { background: linear-gradient(135deg, rgba(226,240,223,.9), rgba(255,253,248,.78)); }
.section-heading { margin-bottom: 30px; }
.section-heading.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px;
  color: var(--green); font-size: .79rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 5px; background: var(--green-2); box-shadow: 6px -6px 0 #8bd276; }
h1, h2, h3, h4 { line-height: 1.34; letter-spacing: .015em; }
h1 { font-size: clamp(2rem, 5vw, 4.25rem); margin: .15em 0 .35em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.55rem); margin: 0 0 .55em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); margin: 0 0 .45em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.03rem, 2vw, 1.2rem); color: var(--muted); max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.kicker { font-weight: 800; color: var(--green); }

.site-header {
  position: sticky; top: 0; z-index: 1000; height: var(--header-height);
  background: rgba(255,253,248,.92); border-bottom: 1px solid rgba(216,209,197,.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 900; white-space: nowrap; }
.brand img { width: 44px; height: 44px; }
.brand-copy { display: grid; line-height: 1.12; }
.brand-copy small { color: var(--green); font-size: .67rem; letter-spacing: .08em; }
.nav-toggle { display: none; border: 0; background: transparent; padding: 10px; border-radius: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); transition: .2s; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 700; padding: 9px 11px; border-radius: 9px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); background: var(--green-soft); }

.hero { position: relative; overflow: clip; padding: 82px 0 76px; }
.hero::after {
  content: ""; position: absolute; width: 460px; height: 460px; right: -190px; top: -220px;
  background: repeating-conic-gradient(from 0deg, rgba(90,170,79,.12) 0 25%, transparent 0 50%) 50% / 42px 42px;
  transform: rotate(9deg); border-radius: 50%; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: center; gap: 58px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 15px 24px; margin-top: 24px; color: var(--muted); font-size: .9rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note span::before { content: ""; width: 8px; height: 8px; background: var(--green-2); box-shadow: 3px -3px 0 #90d27d; }
.hero-art { position: relative; min-height: 380px; display: grid; place-items: center; }
.hero-cube {
  width: min(100%, 360px); aspect-ratio: 1; position: relative; border-radius: 28px;
  background: linear-gradient(180deg, #92d47f 0 27%, #77543d 27% 100%);
  box-shadow: 22px 22px 0 rgba(57,127,60,.13), var(--shadow); overflow: hidden;
  transform: rotate(2deg);
}
.hero-cube::before {
  content: ""; position: absolute; inset: 28% 0 0;
  background:
    linear-gradient(90deg, transparent 0 19%, rgba(255,255,255,.09) 19% 28%, transparent 28% 57%, rgba(20,15,10,.12) 57% 70%, transparent 70%),
    linear-gradient(transparent 0 20%, rgba(20,15,10,.14) 20% 31%, transparent 31% 67%, rgba(255,255,255,.07) 67% 79%, transparent 79%);
  background-size: 98px 98px;
}
.hero-cube::after { content: ""; position: absolute; left: 12%; right: 12%; top: 24%; height: 18px; background: #4e9f45; clip-path: polygon(0 0, 14% 0, 14% 55%, 28% 55%, 28% 10%, 48% 10%, 48% 72%, 66% 72%, 66% 20%, 83% 20%, 83% 58%, 100% 58%, 100% 100%, 0 100%); }
.hero-logo { position: absolute; width: 170px; z-index: 2; filter: drop-shadow(0 12px 14px rgba(0,0,0,.16)); }
.hero-badge { position: absolute; z-index: 3; padding: 10px 15px; border: 2px solid rgba(29,42,33,.2); background: var(--surface); box-shadow: 6px 6px 0 rgba(29,42,33,.12); font-weight: 800; font-size: .86rem; }
.hero-badge.one { top: 22px; right: -8px; transform: rotate(4deg); }
.hero-badge.two { bottom: 30px; left: -22px; transform: rotate(-3deg); }

.page-hero { padding: 58px 0 46px; background: linear-gradient(135deg, rgba(226,240,223,.9), rgba(244,240,231,.45)); border-bottom: 1px solid var(--line); }
.page-hero .breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(2rem, 4.7vw, 3.5rem); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 10px 18px; border: 2px solid var(--green); border-radius: 10px;
  color: white; background: var(--green); text-decoration: none; font-weight: 800; cursor: pointer;
  box-shadow: 4px 4px 0 #245b2b; transition: transform .16s, box-shadow .16s, background .16s;
}
.button:hover { color: white; background: #2f7035; transform: translate(2px, 2px); box-shadow: 2px 2px 0 #245b2b; }
.button.secondary { color: var(--green); background: var(--surface); }
.button.secondary:hover { color: #245d2b; background: var(--green-soft); }
.button.ghost { color: var(--ink); background: transparent; border-color: var(--line); box-shadow: none; }
.button.ghost:hover { background: var(--surface); transform: none; }
.button.disabled, .button[aria-disabled="true"] { opacity: .52; cursor: not-allowed; transform: none; box-shadow: none; }

.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 25px;
  box-shadow: 0 4px 0 rgba(118,80,57,.08); position: relative;
}
.card.pixel::before { content: ""; position: absolute; width: 9px; height: 9px; right: 16px; top: 16px; background: var(--green-2); box-shadow: 10px 0 0 #88ce74, 0 10px 0 #88ce74; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 1.55rem; }
.card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-weight: 800; text-decoration: none; }
.card-link::after { content: "→"; transition: transform .15s; }
.card-link:hover::after { transform: translateX(4px); }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #213226; color: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stat { padding: 25px; border-right: 1px solid rgba(255,255,255,.13); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 1.35rem; color: #a8e097; }
.stat span { font-size: .84rem; color: rgba(255,255,255,.72); }

.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid #d7c38a; background: #fff6d8; border-radius: 12px; }
.notice.danger { border-color: #e3a6a0; background: #fff0ee; }
.notice.info { border-color: #a7cbdc; background: #edf8fd; }
.notice.success { border-color: #a7cea3; background: #edf8eb; }
.notice-icon { font-size: 1.25rem; line-height: 1.4; }
.notice p:last-child { margin-bottom: 0; }

.pill, .badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.pill { padding: 6px 10px; color: var(--green); background: var(--green-soft); }
.badge { padding: 4px 8px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.badge.custom { color: #734d16; background: #fff1c5; border-color: #e5c978; }
.badge.player { color: #28642e; background: #e6f5e3; border-color: #aed4aa; }
.badge.admin { color: #7e3934; background: #f9e4e2; border-color: #dfaaa5; }

.steps { counter-reset: step; display: grid; gap: 16px; }
.step { counter-increment: step; display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 48px; height: 48px; color: white; background: var(--green); border-radius: 10px; font-weight: 900; box-shadow: 4px 4px 0 #245b2b; }
.step h3 { margin-top: 3px; }

.channel-card { display: flex; flex-direction: column; min-height: 100%; }
.channel-card .channel-top { display: flex; align-items: center; gap: 15px; margin-bottom: 14px; }
.channel-avatar { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: #ffefef; color: #c43131; font-weight: 900; font-size: 1.1rem; border: 1px solid #f0bebe; }
.channel-card .button { margin-top: auto; align-self: flex-start; }

.world-profile { overflow: hidden; padding: 0; }
.world-profile .world-head { padding: 28px; background: linear-gradient(135deg, var(--green-soft), #fff); border-bottom: 1px solid var(--line); }
.world-profile.nether .world-head { background: linear-gradient(135deg, #f2dfd9, #fff); }
.world-profile.legacy .world-head { background: linear-gradient(135deg, #eee6d5, #fff); }
.world-profile .world-body { padding: 28px; }
.layer-stack { display: grid; gap: 3px; margin: 22px 0; border: 3px solid #26342a; background: #26342a; border-radius: 8px; overflow: hidden; }
.layer { display: flex; justify-content: space-between; gap: 15px; padding: 7px 11px; color: white; font-weight: 800; font-size: .8rem; }
.layer.air { background: #7fb9d1; }
.layer.grass { background: #57984b; }
.layer.dirt { background: #79563e; }
.layer.stone { background: #777b7d; }
.layer.deepslate { background: #404548; }
.layer.bedrock { background: #232727; }
.layer.nether { background: #8e4038; }
.layer span:last-child { opacity: .78; font-weight: 600; }
.check-list, .plain-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; margin: 9px 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 900; }
.cross-list li::before { content: "×"; color: var(--red); }

.plugin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.search-box { position: relative; flex: 1; max-width: 520px; }
.search-box input { width: 100%; min-height: 48px; padding: 10px 15px 10px 44px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); outline: none; }
.search-box input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(90,170,79,.14); }
.search-box::before { content: "⌕"; position: absolute; left: 15px; top: 6px; font-size: 1.45rem; color: var(--muted); }
.plugin-count { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.plugin-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.plugin-card { display: flex; flex-direction: column; min-height: 100%; }
.plugin-card[hidden] { display: none; }
.plugin-card .plugin-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.plugin-logo { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--green); font-weight: 900; font-size: .78rem; letter-spacing: -.02em; }
.plugin-card .plugin-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.plugin-card .plugin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 13px; }
.plugin-card .plugin-actions a { font-size: .9rem; font-weight: 800; }
.no-results { display: none; text-align: center; padding: 45px; color: var(--muted); }
.no-results.show { display: block; }

.command-nav { position: sticky; top: calc(var(--header-height) + 18px); align-self: start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.command-nav h2 { font-size: 1rem; }
.command-nav a { display: block; padding: 7px 9px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 700; }
.command-nav a:hover { background: var(--green-soft); color: var(--green); }
.guide-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 30px; align-items: start; }
.command-section { margin-bottom: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.command-section > header { padding: 22px 25px; background: linear-gradient(135deg, rgba(226,240,223,.82), rgba(255,253,248,.9)); border-bottom: 1px solid var(--line); }
.command-section > header p { margin-bottom: 0; }
.command-body { padding: 9px 25px 22px; }
.command-row { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(0,1.6fr) auto; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.command-row:last-child { border-bottom: 0; }
.command { display: inline-block; width: fit-content; max-width: 100%; padding: 5px 8px; border-radius: 6px; color: #e9f7e8; background: #253229; font-family: "Cascadia Mono", Consolas, monospace; font-size: .88rem; white-space: nowrap; overflow-x: auto; }
.copy-command { border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; color: var(--muted); background: var(--surface); font-size: .78rem; font-weight: 800; cursor: pointer; }
.copy-command:hover { color: var(--green); border-color: var(--green); }
.key { display: inline-grid; place-items: center; min-width: 28px; min-height: 26px; padding: 2px 7px; border: 1px solid #a8a29a; border-bottom-width: 3px; border-radius: 5px; background: #fff; font-size: .78rem; font-weight: 800; }

.rule-list { counter-reset: rule; display: grid; gap: 18px; }
.rule { counter-increment: rule; position: relative; padding: 25px 25px 25px 86px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rule::before { content: counter(rule); position: absolute; left: 24px; top: 24px; width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--soil); border-radius: 9px; font-weight: 900; box-shadow: 4px 4px 0 #4e3325; }
.rule h2 { font-size: 1.25rem; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; overflow: hidden; }
.faq summary { cursor: pointer; padding: 17px 20px; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--green); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }

.map-frame { min-height: 430px; display: grid; place-items: center; padding: 40px; text-align: center; color: white; border-radius: 24px; overflow: hidden; background:
  linear-gradient(rgba(24,37,28,.70), rgba(24,37,28,.80)),
  repeating-linear-gradient(45deg, #4f8f48 0 18px, #5da150 18px 36px);
  box-shadow: var(--shadow);
}
.map-compass { width: 120px; height: 120px; margin: 0 auto 22px; border: 8px solid rgba(255,255,255,.85); border-radius: 50%; position: relative; }
.map-compass::before, .map-compass::after { content: ""; position: absolute; left: 50%; top: 50%; transform-origin: 0 0; }
.map-compass::before { width: 9px; height: 43px; background: #e15d51; clip-path: polygon(50% 0,100% 100%,0 100%); transform: translate(-50%,-100%) rotate(22deg); }
.map-compass::after { width: 9px; height: 38px; background: white; clip-path: polygon(50% 100%,100% 0,0 0); transform: translate(-50%,0) rotate(22deg); }

.cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 32px; color: white; background: #213226; border-radius: 22px; box-shadow: var(--shadow); }
.cta h2 { margin-bottom: .25em; color: white; }
.cta p { margin-bottom: 0; color: rgba(255,255,255,.73); }

.site-footer { margin-top: 70px; padding: 48px 0 22px; color: rgba(255,255,255,.74); background: #17241b; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 28px; }
.footer-brand { color: white; font-weight: 900; font-size: 1.12rem; }
.footer-title { margin: 0 0 10px; color: white; font-size: .88rem; font-weight: 800; }
.site-footer a { color: rgba(255,255,255,.76); text-decoration: none; }
.site-footer a:hover { color: #b6e5a8; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 6px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .75rem; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 20; width: 42px; height: 42px; display: none; place-items: center; border: 0; border-radius: 10px; color: white; background: var(--green); box-shadow: var(--shadow); cursor: pointer; }
.back-to-top.show { display: grid; }

@media (max-width: 1000px) {
  .site-nav a { padding-inline: 8px; font-size: .84rem; }
  .grid.four { grid-template-columns: repeat(2,1fr); }
  .plugin-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 2 / -1; }
}

@media (max-width: 820px) {
  :root { --header-height: 68px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-height) 0 auto; display: grid; gap: 3px; padding: 14px 20px 22px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-130%); opacity: 0; visibility: hidden; transition: .22s;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav a { padding: 11px; }
  .hero { padding-top: 50px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { min-height: 310px; }
  .hero-cube { width: 290px; }
  .hero-logo { width: 135px; }
  .grid.three { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.13); }
  .guide-layout { grid-template-columns: 1fr; }
  .command-nav { position: relative; top: auto; }
  .command-nav nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .command-nav a { background: var(--surface-2); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-grid > :last-child { grid-column: auto; }
}

@media (max-width: 620px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--content)); }
  .section { padding: 52px 0; }
  .page-hero { padding: 42px 0 35px; }
  .brand-copy small { display: none; }
  .hero-art { min-height: 270px; }
  .hero-cube { width: 240px; border-radius: 20px; }
  .hero-logo { width: 112px; }
  .hero-badge { font-size: .72rem; padding: 7px 10px; }
  .grid.two, .grid.four, .plugin-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .stat:last-child { border-bottom: 0; }
  .plugin-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { max-width: none; }
  .command-row { grid-template-columns: 1fr auto; gap: 9px; }
  .command-row > p { grid-column: 1 / -1; grid-row: 2; }
  .command { white-space: normal; overflow-wrap: anywhere; }
  .rule { padding-left: 25px; padding-top: 82px; }
  .cta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
