.minecraft-tunnel-page {
  --mt-ink: #10271e;
  --mt-muted: #53645a;
  --mt-paper: #f5f7ec;
  --mt-line: #cbd6bd;
  --mt-grass: #78b843;
  --mt-deep-grass: #315b35;
  --mt-earth: #6f5034;
  --mt-night: #10271f;
  --mt-ease-out: cubic-bezier(.2, .8, .2, 1);
  --mt-pop: cubic-bezier(.34, 1.56, .64, 1);
  color: var(--mt-ink);
  background: var(--mt-paper);
  font-family: inherit;
}

.minecraft-tunnel-page * { box-sizing: border-box; }
.minecraft-tunnel-page a { color: inherit; }
.minecraft-tunnel-page code { font-family: var(--font-mono, "JetBrains Mono", monospace); }
.minecraft-tunnel-page .mt-shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.minecraft-tunnel-page .mt-kicker { margin: 0 0 16px; color: #426641; font-size: 12px; font-weight: 800; letter-spacing: .16em; line-height: 1.45; text-transform: uppercase; }
.minecraft-tunnel-page .mt-section { padding: 86px 0; }
.minecraft-tunnel-page .mt-section__heading { max-width: 800px; margin-bottom: 34px; }
.minecraft-tunnel-page .mt-section__heading h2,
.minecraft-tunnel-page .mt-final h2 { max-width: 780px; margin: 0; font-size: clamp(32px, 4vw, 54px); font-weight: 800; letter-spacing: -.045em; line-height: 1.06; }
.minecraft-tunnel-page .mt-section__heading > p:last-child { max-width: 700px; margin: 18px 0 0; color: var(--mt-muted); font-size: 17px; line-height: 1.65; }

.minecraft-tunnel-page .mt-hero { position: relative; isolation: isolate; overflow: hidden; padding: 74px 0 70px; color: #f4f8e9; background: #10271f; }
.minecraft-tunnel-page .mt-hero h1,
.minecraft-tunnel-page .mt-commands__heading h3,
.minecraft-tunnel-page .mt-invite .mt-section__heading h2,
.minecraft-tunnel-page .mt-final h2 { color: #f1f6e9; }
.minecraft-tunnel-page .mt-hero__layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(410px, .95fr); align-items: center; gap: clamp(40px, 4vw, 56px); }
.minecraft-tunnel-page .mt-hero .mt-kicker { color: #9bd66c; }
.minecraft-tunnel-page .mt-hero h1 { max-width: 670px; margin: 0; font-size: clamp(44px, 5.3vw, 66px); font-weight: 850; letter-spacing: -.055em; line-height: .99; }
.minecraft-tunnel-page .mt-hero__lead { max-width: 600px; margin: 25px 0 0; color: #d1ddc9; font-size: 18px; line-height: 1.65; }
.minecraft-tunnel-page .mt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.minecraft-tunnel-page .mt-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 12px; padding: 0 19px; color: #132818; background: #a2dc72; border: 2px solid #a2dc72; border-radius: 3px; box-shadow: 0 4px 0 #4f8a35; font-weight: 800; text-decoration: none; transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.minecraft-tunnel-page .mt-button:hover { background: #b6eb8b; box-shadow: 0 6px 0 #4f8a35; transform: translateY(-2px); }
.minecraft-tunnel-page .mt-button:active { box-shadow: 0 1px 0 #4f8a35; transform: translateY(3px); transition-duration: .06s; }
.minecraft-tunnel-page .mt-button:focus-visible,
.minecraft-tunnel-page .mt-text-link:focus-visible,
.minecraft-tunnel-page .mt-final-links a:focus-visible,
.minecraft-tunnel-page .mt-command button:focus-visible,
.minecraft-tunnel-page .mt-faq-item summary:focus-visible { outline: 3px solid #f0d86a; outline-offset: 4px; }
.minecraft-tunnel-page .mt-text-link { color: #e1f4cc; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.minecraft-tunnel-page .mt-hero__note { max-width: 570px; margin: 21px 0 0; color: #adc0aa; font-size: 14px; line-height: 1.6; }

.minecraft-tunnel-page .mt-diagram { position: relative; min-height: 360px; display: grid; align-items: center; margin: 0; padding: 34px 22px 18px; overflow: hidden; background-color: #1b3828; background-image: linear-gradient(90deg, rgba(218, 242, 177, .035) 1px, transparent 1px), linear-gradient(rgba(218, 242, 177, .035) 1px, transparent 1px); background-size: 24px 24px; border: 1px solid #56734c; box-shadow: 8px 8px 0 #0a1b15; }
.minecraft-tunnel-page .mt-diagram::before { position: absolute; right: 0; bottom: 52px; left: 0; height: 31px; background: repeating-linear-gradient(90deg, #64472e 0 31px, #795536 31px 62px); border-top: 5px solid #80b94b; content: ""; }
.minecraft-tunnel-page .mt-diagram__sky { position: absolute; inset: 0; pointer-events: none; }
.minecraft-tunnel-page .mt-diagram__sky i { position: absolute; width: 16px; height: 16px; background: #89bd5a; box-shadow: 16px 0 #89bd5a, 32px 0 #89bd5a, 0 16px #89bd5a, 16px 16px #89bd5a; opacity: .3; }
.minecraft-tunnel-page .mt-diagram__sky i:nth-child(1) { top: 27px; left: 36px; }
.minecraft-tunnel-page .mt-diagram__sky i:nth-child(2) { top: 82px; right: 43px; transform: scale(.7); }
.minecraft-tunnel-page .mt-diagram__sky i:nth-child(3) { right: 36%; bottom: 100px; transform: scale(.5); }
.minecraft-tunnel-page .mt-diagram__route { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(105px, 1fr) 56px minmax(125px, 1.1fr) 56px minmax(105px, 1fr); align-items: center; gap: 4px; margin-bottom: 34px; }
.minecraft-tunnel-page .mt-node { min-height: 156px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 15px 11px 12px; color: #eaf4da; background: #294636; border: 1px solid #75905f; box-shadow: 4px 4px 0 #10251a; }
.minecraft-tunnel-page .mt-node--server { background: #405c40; }
.minecraft-tunnel-page .mt-node--tunnel { background: #264a36; }
.minecraft-tunnel-page .mt-node--friends { background: #33473a; }
.minecraft-tunnel-page .mt-node__cube { position: relative; width: 41px; height: 32px; margin: 0 0 14px 5px; background: linear-gradient(135deg, #9bd65e 0 48%, #688d3c 49%); border: 2px solid #d0e79e; box-shadow: 5px 5px 0 #263f2b; }
.minecraft-tunnel-page .mt-node__cube::before { position: absolute; top: -10px; left: -2px; width: 41px; height: 8px; background: #c4e580; border: 2px solid #d0e79e; content: ""; }
.minecraft-tunnel-page .mt-node__cube i { position: absolute; right: 7px; bottom: 0; width: 7px; height: 13px; background: #314735; }
.minecraft-tunnel-page .mt-node__blocks { height: 46px; display: grid; grid-template-columns: repeat(2, 19px); grid-template-rows: repeat(2, 19px); gap: 3px; margin: 0 0 10px 3px; }
.minecraft-tunnel-page .mt-node__blocks i:nth-child(1) { background: #b8df70; }
.minecraft-tunnel-page .mt-node__blocks i:nth-child(2) { background: #76b94b; }
.minecraft-tunnel-page .mt-node__blocks i:nth-child(3) { background: #63863f; }
.minecraft-tunnel-page .mt-node__blocks i:nth-child(4) { background: #9aca59; }
.minecraft-tunnel-page .mt-node__friends-icon { height: 47px; margin: 0 0 10px 2px; color: #e9dd82; font-size: 40px; line-height: 1; }
.minecraft-tunnel-page .mt-node small { color: #b2d89a; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.minecraft-tunnel-page .mt-node strong { margin-top: 5px; font-size: 13px; line-height: 1.35; }
.minecraft-tunnel-page .mt-node code { margin-top: 6px; color: #c9d6b9; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.minecraft-tunnel-page .mt-link { position: relative; display: flex; align-items: center; justify-content: center; color: #cce9a1; }
.minecraft-tunnel-page .mt-link span { position: absolute; top: -21px; white-space: nowrap; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.minecraft-tunnel-page .mt-link i { position: relative; width: 100%; height: 8px; background: repeating-linear-gradient(90deg, #abd46d 0 12px, transparent 12px 18px); }
.minecraft-tunnel-page .mt-link i::after { float: right; width: 0; height: 0; margin-top: -5px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 10px solid #abd46d; content: ""; }
.minecraft-tunnel-page .mt-diagram figcaption { position: relative; z-index: 1; align-self: end; color: #c8d8bc; font-size: 12px; line-height: 1.5; }
.minecraft-tunnel-page .mt-node { position: relative; }
.minecraft-tunnel-page .mt-node::after { position: absolute; inset: -3px; border: 2px solid #d9f6b8; opacity: 0; content: ""; pointer-events: none; }

.minecraft-tunnel-page .mt-protocols { background: #eff3e4; }
.minecraft-tunnel-page .mt-protocol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.minecraft-tunnel-page .mt-protocol { position: relative; isolation: isolate; padding: 25px 28px 23px; background: #fbfcf7; border: 1px solid var(--mt-line); border-top: 8px solid var(--mt-grass); box-shadow: 6px 6px 0 #d8e0cc; }
.minecraft-tunnel-page .mt-protocol--bedrock { border-top-color: #b8935c; }
.minecraft-tunnel-page .mt-protocol__top { display: flex; align-items: center; justify-content: space-between; color: #536850; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.minecraft-tunnel-page .mt-protocol__top strong { color: #536850; font-family: var(--font-mono, "JetBrains Mono", monospace); }
.minecraft-tunnel-page .mt-protocol h3 { margin: 16px 0 20px; font-size: 26px; letter-spacing: -.025em; }
.minecraft-tunnel-page .mt-protocol dl { margin: 0; border-top: 1px solid #dbe3d4; }
.minecraft-tunnel-page .mt-protocol dl > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid #dbe3d4; }
.minecraft-tunnel-page .mt-protocol dt { color: #59685b; font-size: 14px; }
.minecraft-tunnel-page .mt-protocol dd { margin: 0; text-align: right; font-weight: 750; }
.minecraft-tunnel-page .mt-protocol dd code { padding: 3px 8px; color: #1a3a22; background: #e2f2d0; font-size: 18px; }
.minecraft-tunnel-page .mt-protocol-mark { display: inline-block; margin-right: 5px; padding: 4px 6px; color: #fff; background: #345d38; font-size: 12px; }
.minecraft-tunnel-page .mt-protocol--bedrock .mt-protocol-mark { color: #291d12; background: #d9bc8e; }
.minecraft-tunnel-page .mt-protocol > p { margin: 17px 0 0; color: var(--mt-muted); font-size: 14px; line-height: 1.6; }

.minecraft-tunnel-page .mt-guide { background: #f8f8f0; }
.minecraft-tunnel-page .mt-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.minecraft-tunnel-page .mt-steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-content: start; padding: 22px 0; border-top: 2px solid #b6caa7; }
.minecraft-tunnel-page .mt-steps li::before { position: absolute; top: -2px; right: 0; left: 0; height: 2px; background: #59943d; content: ""; transform-origin: 0 50%; }
.minecraft-tunnel-page .mt-step-number { width: 40px; height: 40px; display: grid; place-items: center; color: #1f4d25; background: #e4f1d3; border: 2px solid #8dc25f; box-shadow: 3px 3px 0 #c8dbb3; font-family: var(--font-mono, "JetBrains Mono", monospace); font-size: 16px; font-weight: 800; }
.minecraft-tunnel-page .mt-steps h3 { margin: 2px 0 10px; font-size: 19px; }
.minecraft-tunnel-page .mt-steps p { margin: 0; color: var(--mt-muted); font-size: 14px; line-height: 1.65; }
.minecraft-tunnel-page .mt-commands { margin-top: 37px; padding: clamp(22px, 4vw, 38px); color: #eff6e8; background: var(--mt-night); border: 1px solid #45694a; box-shadow: 8px 8px 0 #dce5d3; }
.minecraft-tunnel-page .mt-commands__heading { max-width: 740px; }
.minecraft-tunnel-page .mt-commands .mt-kicker { color: #9bd66c; }
.minecraft-tunnel-page .mt-commands__heading h3 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
.minecraft-tunnel-page .mt-commands__heading > p:last-child { margin: 12px 0 26px; color: #c7d8c4; font-size: 15px; line-height: 1.6; }
.minecraft-tunnel-page .mt-commands__heading > p code { color: #ddf0bf; }
.minecraft-tunnel-page .mt-command-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.minecraft-tunnel-page .mt-command { position: relative; isolation: isolate; min-width: 0; padding: 16px; background: #1a3829; border: 1px solid #496b4d; }
.minecraft-tunnel-page .mt-command__label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; }
.minecraft-tunnel-page .mt-command__label span { color: #c6ed9f; font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.minecraft-tunnel-page .mt-command__label small { color: #b5c7ae; font-size: 12px; }
.minecraft-tunnel-page .mt-command__row { display: flex; align-items: stretch; gap: 8px; }
.minecraft-tunnel-page .mt-command__row > code { min-width: 0; flex: 1; display: flex; align-items: center; padding: 11px 10px; color: #ebf4d9; background: #0e2119; border: 1px solid #324f39; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; user-select: all; }
.minecraft-tunnel-page .mt-command button { flex: 0 0 auto; padding: 0 11px; color: #132818; background: #9dd66b; border: 1px solid #9dd66b; border-radius: 2px; box-shadow: 0 3px 0 #4f8a35; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; transition: background-color .16s ease, translate .08s ease, box-shadow .08s ease; }
.minecraft-tunnel-page .mt-command button:hover { background: #b3e888; }
.minecraft-tunnel-page .mt-command button:active { translate: 0 3px; box-shadow: 0 0 0 #4f8a35; }
.minecraft-tunnel-page .mt-command-note { margin: 17px 0 0; color: #c3d2bd; font-size: 13px; line-height: 1.6; }
.minecraft-tunnel-page .mt-command-note code { color: #e3efc4; }

.minecraft-tunnel-page .mt-invite { color: #f0f5e9; background: #182f23; }
.minecraft-tunnel-page .mt-invite .mt-kicker { color: #9bd66c; }
.minecraft-tunnel-page .mt-invite .mt-section__heading > p:last-child { color: #c1d1bc; }
.minecraft-tunnel-page .mt-invite-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.minecraft-tunnel-page .mt-invite-card { position: relative; isolation: isolate; min-width: 0; padding: 25px; background: #233b2b; border: 1px solid #57704d; border-bottom: 7px solid #85be50; }
.minecraft-tunnel-page .mt-invite-card--bedrock { border-bottom-color: #c09a63; }
.minecraft-tunnel-page .mt-invite-card__edition { color: #b9df8b; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.minecraft-tunnel-page .mt-invite-card h3 { margin: 12px 0; color: #f3f7e9; font-size: 24px; }
.minecraft-tunnel-page .mt-invite-card > p { color: #c9d7c4; font-size: 14px; line-height: 1.65; }
.minecraft-tunnel-page .mt-endpoint { display: block; margin-top: 18px; padding: 14px; color: #e5f6cd; background: #0f2419; border: 1px dashed #88b960; font-size: clamp(14px, 2vw, 18px); overflow-wrap: anywhere; }
.minecraft-tunnel-page .mt-endpoint-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); gap: 10px; margin: 18px 0 0; }
.minecraft-tunnel-page .mt-endpoint-fields > div { min-width: 0; padding: 12px; background: #0f2419; border: 1px dashed #9f9362; }
.minecraft-tunnel-page .mt-endpoint-fields dt { color: #c4d2b9; font-size: 11px; }
.minecraft-tunnel-page .mt-endpoint-fields dd { margin: 6px 0 0; color: #f1edce; font-family: var(--font-mono, "JetBrains Mono", monospace); font-size: 13px; overflow-wrap: anywhere; }
.minecraft-tunnel-page .mt-invite-card .mt-example-note { margin-bottom: 0; color: #aebca8; font-size: 12px; }
.minecraft-tunnel-page .mt-invite-warning { margin: 20px 0 0; padding: 17px 20px; color: #e0ebd8; background: #223b2a; border-left: 5px solid #a2dc72; font-size: 14px; line-height: 1.6; }
.minecraft-tunnel-page .mt-invite-warning strong { color: #bef08c; }

.minecraft-tunnel-page .mt-troubleshooting { background: #edf2e4; }
.minecraft-tunnel-page .mt-troubleshooting__layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 65px; align-items: start; }
.minecraft-tunnel-page .mt-checklist { margin: 0; padding: 0; list-style: none; }
.minecraft-tunnel-page .mt-checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 15px 0; border-top: 1px solid #c9d7bd; }
.minecraft-tunnel-page .mt-checklist li > span { width: 24px; height: 24px; display: grid; place-items: center; color: #19341f; background: #a3d372; font-size: 14px; font-weight: 900; }
.minecraft-tunnel-page .mt-checklist p { margin: 0; color: #43564a; font-size: 15px; line-height: 1.65; }
.minecraft-tunnel-page .mt-help-links { grid-column: 1 / -1; margin-top: 20px; padding: 18px; background: #f8faf3; border: 1px solid #c9d7bd; }
.minecraft-tunnel-page .mt-help-links p { margin: 0 0 8px; color: #53645a; font-size: 13px; }
.minecraft-tunnel-page .mt-help-links a { display: inline-block; margin: 5px 15px 5px 0; color: #315b35; font-size: 13px; font-weight: 750; text-underline-offset: 3px; }

.minecraft-tunnel-page .mt-faq { padding-top: 55px; background: #f8f8f0; }
.minecraft-tunnel-page .mt-faq__layout { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: 60px; align-items: start; }
.minecraft-tunnel-page .mt-faq-item { border-top: 1px solid #cbd6bd; }
.minecraft-tunnel-page .mt-faq-item:last-child { border-bottom: 1px solid #cbd6bd; }
.minecraft-tunnel-page .mt-faq-item summary { position: relative; padding: 18px 38px 18px 0; color: #1b3524; font-size: 17px; font-weight: 750; line-height: 1.45; text-decoration: underline 2px transparent; text-underline-offset: 6px; cursor: pointer; list-style: none; transition: text-decoration-color .2s ease; }
.minecraft-tunnel-page .mt-faq-item summary::-webkit-details-marker { display: none; }
.minecraft-tunnel-page .mt-faq-item summary::before,
.minecraft-tunnel-page .mt-faq-item summary::after { position: absolute; top: 30px; right: 4px; width: 14px; height: 2px; margin-top: -1px; background: #4c813b; content: ""; transition: transform .32s var(--mt-ease-out); }
.minecraft-tunnel-page .mt-faq-item summary::after { transform: rotate(90deg); }
.minecraft-tunnel-page .mt-faq-item[open] summary::after { transform: rotate(0deg); }
.minecraft-tunnel-page .mt-faq-item p { max-width: 740px; margin: 0; padding: 0 38px 19px 0; color: var(--mt-muted); font-size: 14px; line-height: 1.7; }

.minecraft-tunnel-page .mt-final { position: relative; overflow: hidden; padding: 65px 0; color: #f1f6e9; background: #28442e; border-top: 9px solid #86bd50; }
.minecraft-tunnel-page .mt-final__layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .65fr); gap: 45px; align-items: center; }
.minecraft-tunnel-page .mt-final .mt-kicker { color: #c5e6a0; }
.minecraft-tunnel-page .mt-final h2 { font-size: clamp(30px, 4vw, 46px); }
.minecraft-tunnel-page .mt-final__layout > div > p:last-child { max-width: 680px; margin: 16px 0 0; color: #d0ddc9; font-size: 15px; line-height: 1.65; }
.minecraft-tunnel-page .mt-final-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.minecraft-tunnel-page .mt-final-links a { padding: 12px 2px; color: #e0f1cb; border-bottom: 1px solid #67865e; font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.minecraft-tunnel-page .mt-final-links a:hover { color: #fff; border-color: #b4e47d; }

@property --mt-px { syntax: "<number>"; inherits: false; initial-value: 0.5; }
@property --mt-py { syntax: "<number>"; inherits: false; initial-value: 0.5; }
@property --mt-tilt-x { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mt-tilt-y { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* Motion layer.
   Ambient animation is gated on .signal-motion-ready, which the shared marketing
   runtime (app.js) adds only when motion is allowed, so the page stays static without
   JavaScript and under prefers-reduced-motion. [data-signal-zone] supplies
   --pointer-x/-y, .is-pointer-active and .is-in-view; minecraft-tunnel.js adds
   --mt-px/--mt-py on each hero depth layer and --mt-tilt-x/-y on the diagram route.
   Those four are registered non-inherited so a per-frame write restyles one element.
   The script also writes inline `translate` (call to action, XP orbs), `rotate` (tilting cards)
   and toggles state classes (is-awake, is-broken, is-ping, is-collected, is-aiming). Individual
   transform properties are used on purpose: [data-reveal] owns `transform`. */
.minecraft-tunnel-page [data-signal-zone]:not(.is-in-view),
.minecraft-tunnel-page [data-signal-zone]:not(.is-in-view)::before,
.minecraft-tunnel-page [data-signal-zone]:not(.is-in-view)::after,
.minecraft-tunnel-page [data-signal-zone]:not(.is-in-view) *::before,
.minecraft-tunnel-page [data-signal-zone]:not(.is-in-view) *::after { animation-play-state: paused !important; }

.marketing-page.signal-motion-ready .minecraft-tunnel-page [data-reveal] {
  transition-property: opacity, transform, translate, box-shadow, border-color, rotate;
  transition-duration: 600ms, 600ms, .22s, .22s, .22s, .25s;
  transition-timing-function: ease, var(--mt-ease-out), var(--mt-ease-out), ease, ease, var(--mt-ease-out);
  transition-delay: var(--mt-delay, 0ms), var(--mt-delay, 0ms), 0ms, 0ms, 0ms, 0ms;
}

/* Hero: drifting pixel blocks, a grid that lights up under the cursor, and a spotlight. */
.minecraft-tunnel-page .mt-hero__field,
.minecraft-tunnel-page .mt-hero__grid,
.minecraft-tunnel-page .mt-hero__glow { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.minecraft-tunnel-page .mt-hero__field i { position: absolute; top: var(--y); left: var(--x); width: var(--s); height: var(--s); background: #6fae45; box-shadow: inset 0 calc(var(--s) * .3) 0 rgba(196, 238, 140, .5), inset 0 calc(var(--s) * -.22) 0 rgba(8, 24, 14, .32); opacity: .14; }
.minecraft-tunnel-page .mt-hero__layer { --depth: 20px; position: absolute; inset: 0; translate: calc((var(--mt-px, .5) - .5) * var(--depth) * -1) calc((var(--mt-py, .5) - .5) * var(--depth) * -1); transition: translate .6s var(--mt-ease-out); }
.minecraft-tunnel-page .mt-hero__layer--far { --depth: 12px; }
.minecraft-tunnel-page .mt-hero__layer--mid { --depth: 26px; }
.minecraft-tunnel-page .mt-hero__layer--near { --depth: 46px; }
.minecraft-tunnel-page .mt-hero__field i:nth-child(4n + 2) { background: #8a6a45; }
.minecraft-tunnel-page .mt-hero__field i:nth-child(4n + 3) { background: #8fa08f; }
.minecraft-tunnel-page .mt-hero__field i:nth-child(4n) { background: #4f8a3f; }
.signal-motion-ready .minecraft-tunnel-page .mt-hero__field i { animation: mt-float 7.5s ease-in-out var(--d) infinite alternate; }
.signal-motion-ready .minecraft-tunnel-page .mt-hero__field i:nth-child(3n + 2) { animation-duration: 9s; }
.signal-motion-ready .minecraft-tunnel-page .mt-hero__field i:nth-child(3n) { animation-duration: 6.2s; }
.minecraft-tunnel-page .mt-hero__grid { background-image: linear-gradient(90deg, rgba(160, 220, 110, .14) 1px, transparent 1px), linear-gradient(rgba(160, 220, 110, .14) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(circle 230px at var(--pointer-x, 70%) var(--pointer-y, 40%), #000, transparent); mask-image: radial-gradient(circle 230px at var(--pointer-x, 70%) var(--pointer-y, 40%), #000, transparent); opacity: 0; transition: opacity .35s ease; }
.minecraft-tunnel-page .mt-hero__glow { background: radial-gradient(circle 340px at var(--pointer-x, 70%) var(--pointer-y, 40%), rgba(120, 190, 70, .12), transparent 72%); opacity: 0; transition: opacity .4s ease; }
.minecraft-tunnel-page .mt-hero.is-pointer-active .mt-hero__grid,
.minecraft-tunnel-page .mt-hero.is-pointer-active .mt-hero__glow { opacity: 1; }
/* Blocks wake up under the cursor and can be mined: minecraft-tunnel.js toggles is-awake / is-broken. */
.minecraft-tunnel-page .mt-hero__field i { transition: opacity .3s ease, scale .45s var(--mt-pop); }
.minecraft-tunnel-page .mt-hero__field i.is-awake { opacity: .62; scale: 1.5; }
.minecraft-tunnel-page .mt-hero__field i.is-broken { opacity: 0; scale: .2; transition-duration: .16s, .16s; }
.minecraft-tunnel-page .mt-hero.is-aiming { cursor: crosshair; }
.minecraft-tunnel-page .mt-button { transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease, translate .22s var(--mt-ease-out); }

/* Torch: a canvas of 32px cells that light up in stepped levels around the cursor (same grid as
   .mt-hero__grid) and reveal ore where no text sits. Sections get one lazily; it sits behind content. */
.minecraft-tunnel-page .mt-section,
.minecraft-tunnel-page .mt-final { position: relative; isolation: isolate; }
.minecraft-tunnel-page .mt-torch { --mt-selector: rgba(30, 75, 37, .42); position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.minecraft-tunnel-page .mt-torch--dark { --mt-selector: rgba(217, 246, 184, .55); }
.minecraft-tunnel-page .mt-hero .mt-torch { z-index: 0; }
.minecraft-tunnel-page .mt-torch canvas { position: absolute; top: 0; left: 0; image-rendering: pixelated; }
.minecraft-tunnel-page .mt-selector { position: absolute; top: 0; left: 0; width: 32px; height: 32px; border: 2px solid var(--mt-selector); opacity: 0; transition: opacity .18s ease; will-change: transform; }
.minecraft-tunnel-page .mt-torch.is-active .mt-selector { opacity: 1; }

@keyframes mt-hero-rise { to { transform: translate3d(0, calc(var(--depth) * -4), 0); } }
@supports (animation-timeline: scroll()) {
  .signal-motion-ready .minecraft-tunnel-page .mt-hero__layer { animation: mt-hero-rise linear both; animation-timeline: scroll(root block); animation-range: 0 100vh; }
}

/* Diagram: cursor tilt, a light under the cursor, packets, and ambient motion. */
.minecraft-tunnel-page .mt-diagram::after { position: absolute; inset: 0; background: radial-gradient(circle 190px at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(160, 220, 110, .16), transparent 70%); opacity: 0; content: ""; pointer-events: none; transition: opacity .3s ease; }
.minecraft-tunnel-page .mt-diagram.is-pointer-active::after { opacity: 1; }
.minecraft-tunnel-page .mt-diagram__route { transform: perspective(900px) rotateX(var(--mt-tilt-x, 0deg)) rotateY(var(--mt-tilt-y, 0deg)); transition: transform .4s var(--mt-ease-out); }
.minecraft-tunnel-page .mt-diagram.is-pointer-active .mt-diagram__route { will-change: transform; }
.minecraft-tunnel-page .mt-packet { display: none; }
.signal-motion-ready .minecraft-tunnel-page .mt-packet { position: absolute; top: 50%; left: 0; display: block; width: 8px; height: 8px; margin-top: -4px; background: #f1f9cf; box-shadow: 0 0 0 2px rgba(171, 212, 109, .38), 0 0 8px rgba(214, 245, 150, .55); opacity: 0; animation: mt-packet 2.1s linear infinite; }
.signal-motion-ready .minecraft-tunnel-page .mt-packet:nth-child(2) { animation-delay: .7s; }
.signal-motion-ready .minecraft-tunnel-page .mt-packet:nth-child(3) { animation-delay: 1.4s; }
.signal-motion-ready .minecraft-tunnel-page .mt-link--dotted .mt-packet { width: 6px; height: 6px; margin-top: -3px; background: #ebdf86; animation-duration: 1.5s; animation-timing-function: steps(6, end); }
.signal-motion-ready .minecraft-tunnel-page .mt-link--dotted .mt-packet:nth-child(2) { animation-delay: .5s; }
.signal-motion-ready .minecraft-tunnel-page .mt-link--dotted .mt-packet:nth-child(3) { animation-delay: 1s; }
.signal-motion-ready .minecraft-tunnel-page .mt-node__cube { animation: mt-bob 3.4s ease-in-out infinite; }
.signal-motion-ready .minecraft-tunnel-page .mt-node__blocks i { animation: mt-block-pulse 2.4s ease-in-out infinite; }
.signal-motion-ready .minecraft-tunnel-page .mt-node__blocks i:nth-child(2) { animation-delay: .3s; }
.signal-motion-ready .minecraft-tunnel-page .mt-node__blocks i:nth-child(4) { animation-delay: .6s; }
.signal-motion-ready .minecraft-tunnel-page .mt-node__blocks i:nth-child(3) { animation-delay: .9s; }
.signal-motion-ready .minecraft-tunnel-page .mt-node__friends-icon { text-shadow: 0 0 10px rgba(233, 221, 130, .55); animation: mt-twinkle 2.8s ease-in-out infinite; }
/* Clicking the diagram sends a packet wave server -> tunnel -> friends (minecraft-tunnel.js adds is-ping in turn). */
.signal-motion-ready .minecraft-tunnel-page .mt-link.is-ping .mt-packet { width: 10px; height: 10px; margin-top: -5px; background: #fff; animation-duration: .42s; animation-delay: 0s; animation-timing-function: linear; }
.signal-motion-ready .minecraft-tunnel-page .mt-node.is-ping { animation: mt-node-hit .42s var(--mt-pop); }
.signal-motion-ready .minecraft-tunnel-page .mt-node.is-ping::after { animation: mt-ring .76s ease-out; }
.signal-motion-ready .minecraft-tunnel-page .mt-diagram__sky i { animation: mt-cloud 26s ease-in-out infinite alternate; }
.signal-motion-ready .minecraft-tunnel-page .mt-diagram__sky i:nth-child(2) { animation-duration: 34s; animation-delay: -9s; }
.signal-motion-ready .minecraft-tunnel-page .mt-diagram__sky i:nth-child(3) { animation-duration: 30s; animation-delay: -17s; }

/* Cards: a highlight that follows the cursor, and a block-style lift. */
.minecraft-tunnel-page .mt-protocol::before,
.minecraft-tunnel-page .mt-command::before,
.minecraft-tunnel-page .mt-invite-card::before { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle 260px at var(--pointer-x, 50%) var(--pointer-y, 50%), var(--mt-spot, rgba(120, 184, 67, .14)), transparent 70%); opacity: 0; content: ""; pointer-events: none; transition: opacity .3s ease; }
.minecraft-tunnel-page .mt-command,
.minecraft-tunnel-page .mt-invite-card { --mt-spot: rgba(162, 220, 114, .08); }
.minecraft-tunnel-page .mt-protocol.is-pointer-active::before,
.minecraft-tunnel-page .mt-command.is-pointer-active::before,
.minecraft-tunnel-page .mt-invite-card.is-pointer-active::before { opacity: 1; }
/* Protocol and invite cards tilt toward the cursor (minecraft-tunnel.js writes `rotate`). */
.minecraft-tunnel-page .mt-protocol-grid,
.minecraft-tunnel-page .mt-invite-grid { perspective: 900px; }

/* Steps, checklist, FAQ and the closing ground strip. */
.signal-motion-ready .minecraft-tunnel-page .mt-steps li[data-reveal]:not(.is-revealed)::before { transform: scaleX(0); }
.signal-motion-ready .minecraft-tunnel-page .mt-steps li[data-reveal].is-revealed::before { transition: transform .9s var(--mt-ease-out) calc(var(--mt-delay, 0ms) + 120ms); }
.signal-motion-ready .minecraft-tunnel-page .mt-steps li[data-reveal]:not(.is-revealed) .mt-step-number { opacity: 0; transform: scale(.35) rotate(-14deg); }
.signal-motion-ready .minecraft-tunnel-page .mt-steps li[data-reveal].is-revealed .mt-step-number { transition: transform .55s var(--mt-pop) calc(var(--mt-delay, 0ms) + 240ms), opacity .25s ease calc(var(--mt-delay, 0ms) + 240ms), translate .22s var(--mt-ease-out), rotate .22s var(--mt-ease-out), box-shadow .22s ease; }
.signal-motion-ready .minecraft-tunnel-page .mt-checklist li[data-reveal]:not(.is-revealed) > span { opacity: 0; transform: scale(0); }
.signal-motion-ready .minecraft-tunnel-page .mt-checklist li[data-reveal].is-revealed > span { transition: transform .5s var(--mt-pop) calc(var(--mt-delay, 0ms) + 260ms), opacity .2s ease calc(var(--mt-delay, 0ms) + 260ms), translate .22s var(--mt-ease-out), rotate .22s var(--mt-pop), background-color .2s ease; }
.minecraft-tunnel-page .mt-faq-item[open] p { animation: mt-faq-open .32s var(--mt-ease-out) both; }
.minecraft-tunnel-page .mt-final__ground { position: absolute; bottom: 0; left: 0; width: calc(100% + 124px); height: 27px; background: repeating-linear-gradient(90deg, #64472e 0 31px, #795536 31px 62px); border-top: 5px solid #80b94b; pointer-events: none; }
.signal-motion-ready .minecraft-tunnel-page .mt-final__ground { animation: mt-ground 5s linear infinite; }

/* Copy confirmation and the pooled cursor particles (spawned by minecraft-tunnel.js). */
.minecraft-tunnel-page .mt-command button.mt-is-copied { background: #d9f6b8; border-color: #d9f6b8; animation: mt-copied .8s ease-out; }
.minecraft-tunnel-page .mt-particles { position: fixed; inset: 0; z-index: 30; overflow: hidden; contain: layout paint; pointer-events: none; }
.minecraft-tunnel-page .mt-cursor-particle { position: absolute; top: 0; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #78b843; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .26), inset -2px -2px 0 rgba(0, 0, 0, .24); opacity: 0; will-change: transform, opacity; }
.minecraft-tunnel-page .mt-cursor-particle[data-tone="leaf"] { background: #4f8a3f; }
.minecraft-tunnel-page .mt-cursor-particle[data-tone="dirt"] { background: #8a6440; }
.minecraft-tunnel-page .mt-cursor-particle[data-tone="stone"] { background: #8c9a8c; }
.minecraft-tunnel-page .mt-cursor-particle[data-tone="coal"] { background: #3a4640; }
.minecraft-tunnel-page .mt-cursor-particle[data-tone="iron"] { background: #d8b48a; }
.minecraft-tunnel-page .mt-cursor-particle[data-tone="gold"] { background: #f2c230; }
.minecraft-tunnel-page .mt-cursor-particle[data-tone="emerald"] { background: #35e08a; }
.minecraft-tunnel-page .mt-cursor-particle[data-tone="diamond"] { background: #4fe3f0; }
.minecraft-tunnel-page .mt-cursor-particle[data-tone="redstone"] { background: #ff5a4a; }
.minecraft-tunnel-page .mt-cursor-particle[data-tone="xp"] { background: #c8f06a; }

/* XP orbs in the closing section: they bob on their own and fly toward the cursor, where
   minecraft-tunnel.js collects them (is-collected) and brings them back a moment later. */
.minecraft-tunnel-page .mt-final__orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.minecraft-tunnel-page .mt-final__orbs i { position: absolute; top: var(--y); left: var(--x); width: 12px; height: 12px; transition: opacity .2s ease, scale .5s var(--mt-pop); }
.minecraft-tunnel-page .mt-final__orbs i::before { position: absolute; inset: -10px; background: radial-gradient(circle, rgba(200, 240, 106, .34), transparent 70%); content: ""; }
.minecraft-tunnel-page .mt-final__orbs i::after { position: absolute; inset: 0; background: #c8f06a; box-shadow: inset 2px 2px 0 rgba(255, 255, 214, .85), inset -2px -2px 0 rgba(70, 130, 24, .6); clip-path: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%); content: ""; }
.minecraft-tunnel-page .mt-final__orbs i.is-collected { opacity: 0; scale: 2.2; transition-duration: .16s, .16s; }
.signal-motion-ready .minecraft-tunnel-page .mt-final__orbs i { animation: mt-orb-bob 4.2s ease-in-out var(--d) infinite alternate; }

@media (hover: hover) {
  .minecraft-tunnel-page .mt-node { transition: translate .2s var(--mt-ease-out), box-shadow .2s ease, border-color .2s ease; }
  .minecraft-tunnel-page .mt-node:hover { translate: 0 -4px; border-color: #b9dd8c; box-shadow: 4px 8px 0 #10251a, 0 0 24px rgba(155, 214, 108, .3); }
  .minecraft-tunnel-page .mt-protocol,
  .minecraft-tunnel-page .mt-invite-card,
  .minecraft-tunnel-page .mt-command { transition: translate .22s var(--mt-ease-out), rotate .25s var(--mt-ease-out), box-shadow .22s ease, border-color .22s ease; }
  .minecraft-tunnel-page .mt-protocol:hover { translate: 0 -4px; box-shadow: 8px 10px 0 #cdd9bf; }
  .minecraft-tunnel-page .mt-invite-card:hover { translate: 0 -4px; border-color: #7d9a68; box-shadow: 0 8px 0 #0f2217; }
  .minecraft-tunnel-page .mt-command:hover { translate: 0 -2px; border-color: #6c9a64; }
  .minecraft-tunnel-page .mt-step-number { transition: translate .22s var(--mt-ease-out), rotate .22s var(--mt-ease-out), box-shadow .22s ease; }
  .minecraft-tunnel-page .mt-steps li:hover .mt-step-number { translate: 0 -4px; rotate: -5deg; box-shadow: 3px 7px 0 #c8dbb3; }
  .minecraft-tunnel-page .mt-checklist li > span { transition: translate .22s var(--mt-ease-out), rotate .22s var(--mt-pop), background-color .2s ease; }
  .minecraft-tunnel-page .mt-checklist li:hover > span { translate: 3px 0; rotate: -10deg; background: #b8e68a; }
  .minecraft-tunnel-page .mt-faq-item summary:hover { text-decoration-color: #78b843; }
  .minecraft-tunnel-page .mt-final-links a { position: relative; overflow: hidden; }
  .minecraft-tunnel-page .mt-final-links a::after { position: absolute; top: 0; bottom: 0; left: 0; width: 38%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .26), transparent); content: ""; opacity: 0; pointer-events: none; transform: translateX(-130%) skewX(-18deg); }
  .minecraft-tunnel-page .mt-final-links a:hover::after { animation: mt-shine .65s ease-out both; }
}

@keyframes mt-float { from { transform: translate3d(0, 0, 0) rotate(-4deg); } to { transform: translate3d(0, -18px, 0) rotate(7deg); } }
@keyframes mt-packet {
  0% { opacity: 0; transform: translateX(0); }
  14%, 80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(var(--mt-run, 38px)); }
}
@keyframes mt-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes mt-orb-bob { from { transform: translateY(5px) rotate(-6deg); } to { transform: translateY(-9px) rotate(8deg); } }
@keyframes mt-node-hit { 0% { scale: 1; } 40% { scale: 1.07; } 100% { scale: 1; } }
@keyframes mt-ring { from { opacity: .95; scale: 1; } to { opacity: 0; scale: 1.14; } }
@keyframes mt-block-pulse { 0%, 100% { filter: brightness(1); } 40% { filter: brightness(1.5); } }
@keyframes mt-twinkle {
  0%, 100% { opacity: .85; transform: scale(1) rotate(0deg); }
  45% { opacity: 1; transform: scale(1.18) rotate(12deg); }
  72% { opacity: .7; transform: scale(.92) rotate(-6deg); }
}
@keyframes mt-cloud { from { translate: -18px 0; } to { translate: 26px 0; } }
@keyframes mt-faq-open { from { opacity: 0; translate: 0 -8px; } }
@keyframes mt-ground { to { transform: translateX(-62px); } }
@keyframes mt-copied {
  from { box-shadow: 0 0 0 0 rgba(190, 240, 140, .75), 0 3px 0 #4f8a35; }
  to { box-shadow: 0 0 0 16px rgba(190, 240, 140, 0), 0 3px 0 #4f8a35; }
}
@keyframes mt-shine { from { opacity: .9; transform: translateX(-130%) skewX(-18deg); } to { opacity: 0; transform: translateX(330%) skewX(-18deg); } }

@media (max-width: 900px) {
  .minecraft-tunnel-page .mt-hero__layout { grid-template-columns: 1fr; }
  .minecraft-tunnel-page .mt-diagram { max-width: 720px; width: 100%; }
  .minecraft-tunnel-page .mt-troubleshooting__layout,
  .minecraft-tunnel-page .mt-faq__layout { grid-template-columns: 1fr; gap: 28px; }
  .minecraft-tunnel-page .mt-final__layout { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 640px) {
  .minecraft-tunnel-page .mt-shell { width: min(100% - 32px, 520px); }
  .minecraft-tunnel-page .mt-section { padding: 62px 0; }
  .minecraft-tunnel-page .mt-hero { padding: 50px 0 45px; }
  .minecraft-tunnel-page .mt-hero__layout { gap: 32px; }
  .minecraft-tunnel-page .mt-hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .minecraft-tunnel-page .mt-hero__lead { font-size: 16px; }
  .minecraft-tunnel-page .mt-diagram { min-height: 0; padding: 26px 17px 18px; }
  .minecraft-tunnel-page .mt-diagram::before { bottom: 38px; height: 22px; }
  .minecraft-tunnel-page .mt-diagram__route { grid-template-columns: 1fr; gap: 24px; margin-bottom: 27px; }
  .minecraft-tunnel-page .mt-node { min-height: 124px; padding: 13px 15px; }
  .minecraft-tunnel-page .mt-node__cube { margin-bottom: 9px; }
  .minecraft-tunnel-page .mt-node__blocks,
  .minecraft-tunnel-page .mt-node__friends-icon { height: 33px; margin-bottom: 7px; }
  .minecraft-tunnel-page .mt-node__friends-icon { font-size: 30px; }
  .minecraft-tunnel-page .mt-link { min-height: 18px; transform: rotate(90deg); }
  .minecraft-tunnel-page .mt-link span { top: -6px; left: calc(50% + 18px); transform: rotate(-90deg); transform-origin: left center; }
  .minecraft-tunnel-page .mt-link i { --mt-run: 27px; width: 45px; }
  .minecraft-tunnel-page .mt-diagram figcaption { font-size: 11px; }
  .minecraft-tunnel-page .mt-diagram::after,
  .minecraft-tunnel-page .mt-hero__grid,
  .minecraft-tunnel-page .mt-hero__glow { display: none; }
  .minecraft-tunnel-page .mt-hero__field i.mt-extra { display: none; }
  .minecraft-tunnel-page .mt-final__orbs { display: none; }
  .minecraft-tunnel-page .mt-diagram__route { transform: none; transition: none; }
  .minecraft-tunnel-page .mt-faq-item summary::before,
  .minecraft-tunnel-page .mt-faq-item summary::after { top: 29px; }
  .minecraft-tunnel-page .mt-protocol-grid,
  .minecraft-tunnel-page .mt-steps,
  .minecraft-tunnel-page .mt-command-list,
  .minecraft-tunnel-page .mt-invite-grid { grid-template-columns: 1fr; }
  .minecraft-tunnel-page .mt-protocol { padding: 21px 18px; }
  .minecraft-tunnel-page .mt-steps { gap: 8px; }
  .minecraft-tunnel-page .mt-command { padding: 13px; }
  .minecraft-tunnel-page .mt-command__row { flex-direction: column; }
  .minecraft-tunnel-page .mt-command__row > code { min-height: 52px; }
  .minecraft-tunnel-page .mt-command button { min-height: 44px; }
  .minecraft-tunnel-page .mt-invite-card { padding: 21px 18px; }
  .minecraft-tunnel-page .mt-endpoint-fields { grid-template-columns: 1fr; }
  .minecraft-tunnel-page .mt-invite-warning { padding: 14px; }
  .minecraft-tunnel-page .mt-final { padding: 49px 0; }
  .minecraft-tunnel-page .mt-final-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .minecraft-tunnel-page *,
  .minecraft-tunnel-page *::before,
  .minecraft-tunnel-page *::after { animation: none !important; transition: none !important; }
  .minecraft-tunnel-page .mt-hero__layer { translate: none; }
  .minecraft-tunnel-page .mt-hero__grid,
  .minecraft-tunnel-page .mt-hero__glow,
  .minecraft-tunnel-page .mt-torch,
  .minecraft-tunnel-page .mt-packet,
  .minecraft-tunnel-page .mt-particles,
  .minecraft-tunnel-page .mt-cursor-particle { display: none !important; }
  .minecraft-tunnel-page .mt-diagram__route { transform: none; }
}
