:root {
  color-scheme: light;
  --paper: #f4f3e8;
  --ink: #181f17;
  --muted: #4e5c50;
  --line: #d0d8c7;
  --green: #196248;
  --leaf: #c8f38c;
  --forest: #112d28;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", system-ui, sans-serif;
  --ease: cubic-bezier(.22,.68,.28,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #377c53; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
code { font-family: var(--mono); }
.shell { width: min(1240px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: fixed; z-index: 50; inset: 12px auto auto 12px; padding: 10px 16px; background: white; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.header { position: sticky; z-index: 10; top: 0; background: #f4f3e8f5; border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner, .footer-inner { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; font-size: 22px; letter-spacing: -.045em; }
.brand img { image-rendering: pixelated; }
nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 690; }
nav a:hover, .footer a:hover { color: var(--green); }
.nav-download { border: 1px solid var(--ink); padding: 8px 15px; }
.nav-download:hover { background: var(--leaf); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: 6px 10px; font-size: 14px; }

.hero { min-height: min(735px, calc(100svh - 68px)); padding-block: 60px 70px; display: grid; grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr); gap: clamp(26px, 5vw, 70px); align-items: center; }
.hero-copy { padding-bottom: 6px; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; color: var(--muted); font: 700 11px/1.2 var(--mono); letter-spacing: .06em; }
.version { display: inline-flex; padding: 6px 8px; color: #153c2b; background: #dbedc5; border: 1px solid #a5bb94; letter-spacing: .035em; }
.hero h1 { font-size: clamp(42px, 5.2vw, 76px); letter-spacing: -.09em; margin: 24px 0 20px; font-weight: 900; line-height: 1.14; }
.hero h1 em { font-style: normal; color: var(--green); }
.period { color: var(--green); }
.hero-copy > p { max-width: 425px; font-size: clamp(15px, 1.32vw, 19px); color: var(--muted); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 9px 15px; border: 1px solid var(--ink); font-size: 14px; font-weight: 780; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.button:hover { transform: translateY(-3px); box-shadow: 3px 5px 0 #17251c60; }
.button:active { transform: translateY(1px); box-shadow: none; }
.primary { color: #142015; background: var(--leaf); box-shadow: 3px 3px 0 var(--ink); }
.secondary { background: #fffdf5; }
.loader-list { margin: 25px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font: 600 11px/1.2 var(--mono); }
.loader-list li { border: 1px solid var(--line); padding: 5px 7px; }

.world { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; min-height: 478px; overflow: hidden; border: 1px solid #10251e; background: #163b37; box-shadow: 7px 7px 0 #b4c49c; }
.world-sky { position: absolute; z-index: -2; inset: 0; background: url("media/world-fallback.webp") center / cover, linear-gradient(#25474a 18%, #49756a 64%, #193734); }
.world canvas { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.world-header, .world-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px; color: #e8f6e2; font-size: 13px; }
.world-header > span, .world-controls p { border: 1px solid #6b826f; background: #102925e8; padding: 6px 9px; font-weight: 700; }
.world-header i, .world-controls p span { display: inline-block; width: 8px; height: 8px; margin-right: 5px; background: #aedb8d; box-shadow: 2px 2px 0 #478963; }
.world-controls p span { background: #ddb26b; box-shadow: 2px 2px 0 #8c6543; }
.world.is-linked .world-controls p span { background: var(--leaf); box-shadow: 0 0 9px #c8f38cb3; }
.world button { min-height: 36px; padding: 5px 10px; border: 1px solid #809981; color: #e8f6e2; background: #102925ee; font-size: 13px; font-weight: 730; transition: background .22s, color .22s; }
.world button:hover, .world button[aria-pressed="true"] { color: #142015; background: var(--leaf); }
.world button span { margin-inline: 2px; }

.field-section { padding: 83px 0 94px; border-block: 1px solid #c9d5c1; background-color: #e4ece0; background-image: linear-gradient(#365a4111 1px, transparent 1px), linear-gradient(90deg, #365a4111 1px, transparent 1px); background-size: 24px 24px; }
.section-heading { max-width: 670px; }
.eyebrow { font: 700 11px/1.4 var(--mono); letter-spacing: .14em; color: var(--green); }
.section-heading h2 { margin: 11px 0 14px; font-size: clamp(30px, 4.1vw, 51px); font-weight: 870; letter-spacing: -.065em; }
.section-heading p { color: var(--muted); }
.feature-grid, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 30px; }
.feature-grid article { padding: 23px; min-height: 202px; border: 1px solid #afc2a9; background: #f7fbf0; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.feature-grid article:hover { transform: translateY(-4px); box-shadow: 4px 5px 0 #b2c7ad; }
.item-icon { position: relative; display: block; width: 36px; height: 35px; margin-bottom: 20px; background: #e1efcb; border: 1px solid #b5c8a5; }
.item-icon::before, .item-icon::after { content: ""; position: absolute; }
.portal-icon::before { inset: 7px 9px; border: 3px solid #22644b; background: #7fd08a; box-shadow: 3px 2px 0 #9cbf95; }
.signal-icon::before { bottom: 7px; left: 8px; width: 4px; height: 6px; background: #22644b; box-shadow: 7px -4px 0 #22644b, 14px -8px 0 #22644b; }
.signal-icon::after { bottom: 7px; left: 15px; width: 4px; height: 4px; background: #22644b; box-shadow: 7px 0 0 #22644b, 7px -4px 0 #22644b; }
.display-icon::before { inset: 7px 6px 10px; border: 2px solid #22644b; background: linear-gradient(90deg,#85cc87 72%, transparent 72%) 4px 4px / 15px 3px no-repeat; }
.display-icon::after { width: 14px; height: 2px; background: #22644b; bottom: 7px; left: 10px; }
.feature-grid h3, .steps h3 { margin: 0 0 9px; font-size: 21px; font-weight: 810; }
.feature-grid p, .steps p { color: var(--muted); font-size: 15px; line-height: 1.7; }

.showcase { display: grid; grid-template-columns: minmax(204px,.67fr) minmax(0,1.33fr); gap: 25px; align-items: center; margin-top: 28px; padding: 27px; color: #eef5e9; background: #122e28; border: 1px solid #12231e; box-shadow: 6px 6px 0 #abbea2; }
.showcase-copy { padding: 10px 12px; }
.showcase h3 { font-size: clamp(22px, 3vw, 33px); }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; margin: 19px 0 14px; }
.tabs button { min-height: 37px; padding: 5px 3px; color: #ecf5e8; font-size: 13px; background: #29453c; border: 1px solid #5c7869; }
.tabs button[aria-selected="true"] { color: #173322; background: var(--leaf); border-color: var(--leaf); }
.showcase p { color: #d5e5d8; font-size: 14px; }
.showcase figure { min-width: 0; border: 1px solid #6c8e7a; background: #0e211b; }
.showcase img { aspect-ratio: 16 / 10; width: 100%; height: auto; object-fit: cover; }
.showcase img.swapping { animation: screenshot-in .25s var(--ease) both; }
.showcase figcaption { padding: 7px 11px; color: #c3d7c8; font-size: 12px; border-top: 1px solid #476754; }
@keyframes screenshot-in { from { opacity: .55; } to { opacity: 1; } }

.guide, .faq { padding-block: 86px; }
.steps { padding: 0; list-style: none; }
.steps li { border-top: 2px solid #406b51; background: #ebeede; padding: 20px 22px; }
.steps li > span { display: inline-block; padding: 4px 7px; margin-bottom: 14px; color: var(--green); background: #d9e8cd; font: 700 13px/1 var(--mono); }
.download { padding: 66px 0; color: #edf5e7; background: #16362d; border-block: 3px solid #728e69; }
.download-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 6vw, 80px); }
.download .eyebrow { color: #c8f38c; }
.download .section-heading p { color: #cfddd3; }
.download-card { color: var(--ink); background: #f5f6e9; border: 1px solid #a7be9f; padding: 20px; box-shadow: 5px 5px 0 #0c281d; }
.download-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.download-fields label { display: grid; gap: 4px; font-weight: 700; font-size: 13px; }
.download-fields select { width: 100%; min-height: 41px; border: 1px solid #8ea48e; background: #fffef6; padding: 7px 8px; }
#java-version, #download-status { padding-top: 7px; color: var(--muted); font-size: 12px; }
.file-name { margin: 9px 0 14px; padding: 9px; border: 1px solid #c4d3ba; background: #e8efdd; }
.file-name code { overflow-wrap: anywhere; font-size: 12px; }
.download-card [hidden] { display: none; }
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.questions { border-top: 1px solid #97ab96; }
.questions details { border-bottom: 1px solid #97ab96; padding: 12px 3px; }
.questions summary { cursor: pointer; list-style: none; font-weight: 730; min-height: 29px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.questions summary::after { content: "+"; font: 20px/1 var(--mono); color: var(--green); }
.questions details[open] summary::after { content: "−"; }
.questions p { padding: 6px 0 7px; color: var(--muted); font-size: 14px; }
.footer { border-top: 1px solid var(--line); background: #e7ebdb; }
.footer-inner { min-height: 86px; font-size: 14px; }
.footer-inner > span { color: var(--muted); }
.motion-ready [data-reveal] { opacity: 0; transform: translateY(17px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.motion-ready [data-reveal].revealed, .motion-ready [data-reveal]:focus-within { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .shell { width: min(100% - 56px, 1240px); }
  .hero { min-height: 0; gap: 30px; }
  .world { min-height: 410px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 59px; }
  .menu-toggle { display: inline-block; }
  .header nav { gap: 12px; position: absolute; inset: 59px 0 auto; padding: 15px 18px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .header nav a { padding: 8px; }
  .navigation-ready nav:not(.open) { display: none; }
  body:not(.navigation-ready) .header nav { position: static; flex-wrap: wrap; padding: 0; border: 0; }
  body:not(.navigation-ready) .menu-toggle { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 40px 44px; gap: 29px; }
  .hero h1 { font-size: clamp(41px, 9.2vw, 63px); margin: 17px 0 15px; }
  .hero-actions { margin-top: 23px; }
  .loader-list { margin-top: 21px; }
  .world { min-height: clamp(310px, 79vw, 465px); box-shadow: 4px 4px 0 #b4c49c; }
  .world-header, .world-controls { margin: 10px; }
  .field-section, .guide, .download, .faq { padding-block: 53px; }
  .feature-grid, .steps, .showcase, .download-inner, .faq { grid-template-columns: 1fr; gap: 13px; }
  .feature-grid article { min-height: 0; padding: 18px; }
  .item-icon { margin-bottom: 13px; }
  .showcase { padding: 14px; }
  .showcase-copy { padding: 6px; }
  .footer-inner { flex-wrap: wrap; gap: 10px; padding-block: 14px; }
  .footer-inner > span { flex-basis: 100%; order: 1; }
}
@media (max-width: 375px) {
  .hero-actions .button { padding-inline: 10px; gap: 7px; }
  .header nav { gap: 6px; }
  .header nav a { padding: 7px 4px; font-size: 12px; }
  .world-header, .world-controls { font-size: 12px; }
  .world button { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
}
