Files
2026-10-20 21:05:19 +07:00

183 lines
15 KiB
CSS

@font-face {
font-family: 'Press Start 2P';
src: url('/minecraft/fonts/PressStart2P-Regular.ttf') format('truetype');
font-display: swap;
font-style: normal;
font-weight: 400;
}
:root {
color-scheme: dark;
font-family: system-ui, sans-serif;
color: #f6ecd4;
background: #26231e;
line-height: 1.65;
--pixel: 'Press Start 2P', monospace;
--muted: #ded3bd;
--copper: #e2ac69;
--edge: #191612;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background-image: repeating-linear-gradient(0deg, #0000 0 31px, #0003 31px 34px), repeating-linear-gradient(90deg, #0000 0 63px, #ffffff04 63px 66px); }
main { max-width: 1440px; margin: auto; padding: 18px 16px 28px; }
a { color: #ffe3a0; text-underline-offset: 4px; }
a:hover { color: #fff; }
a:focus-visible { outline: 3px solid #ffdf61; outline-offset: 5px; }
.topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 16px; background: repeating-linear-gradient(0deg, #0000 0 14px, #0002 14px 17px), #68482e; border: 4px solid var(--edge); box-shadow: inset 3px 3px #987048, inset -3px -3px #3d2a1b, 0 5px #0005; }
.brand { color: #fff0c8; font: 400 9px/1.8 var(--pixel); text-decoration: none; text-shadow: 2px 2px #302214; }
.brand span { color: #dba16b; padding: 0 6px; }
.nav-link { font: 400 10px/1.8 var(--pixel); }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 670px; margin: 20px 0 44px; padding: 32px 20px; border: 4px solid #191612; box-shadow: inset 0 0 0 3px #ba8b50, 6px 6px #0005; background: #3b4934 url('/minecraft/world-waterwheel.webp') 65% center / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #171a16ed, #171a16bb 45%, #171a1633); }
.hero-copy { width: 100%; max-width: 600px; }
.eyebrow { color: #f1bf73; font: 400 9px/1.9 var(--pixel); }
h1 { color: #f4e8cb; font: 400 clamp(23px, 4vw, 48px)/1.4 var(--pixel); letter-spacing: -1px; text-shadow: 3px 3px #5b422b, 6px 6px #181711; margin: 24px 0; }
h2 { font: 400 clamp(15px, 2vw, 22px)/1.7 var(--pixel); margin: 16px 0 24px; text-shadow: 2px 2px #0008; }
h3 { font: 400 14px/1.8 var(--pixel); margin: 14px 0; text-shadow: 2px 2px #0008; }
.intro { max-width: 460px; color: #fff3d9; font-size: 18px; margin-bottom: 24px; text-shadow: 1px 2px #111; }
.join-panel { max-width: 430px; background: #494b43f5; border: 4px solid #1c211b; padding: 20px 16px; box-shadow: inset 3px 3px #92927b, inset -3px -3px #30352b, 5px 5px #0005; }
.server { margin: 0; padding: 12px; border: 3px solid #252a22; background: #24291f; box-shadow: inset 2px 2px #10170f, inset -2px -2px #6d725e; }
.server span { display: block; color: #cabd9e; font: 400 8px/1.8 var(--pixel); margin-bottom: 7px; }
code { font: 600 17px/1.6 monospace; color: #fff3ca; overflow-wrap: anywhere; }
#server-status { color: #d2f2b0; font: 600 14px/1.6 monospace; margin: 12px 0 16px; }
.button, .nav-link, footer a { display: inline-block; color: #fff8e7; text-decoration: none; text-align: center; background: #72716a; border: 3px solid #191a16; padding: 13px 16px; box-shadow: inset 3px 3px #b9b7a7, inset -3px -3px #48483e, 3px 3px #0005; text-shadow: 2px 2px #222; }
.button { font: 400 10px/1.9 var(--pixel); }
.button:hover, .nav-link:hover, footer a:hover { background-color: #858b70; color: #ffffbf; box-shadow: inset 3px 3px #d4dab1, inset -3px -3px #535d43, 3px 3px #0005; }
.button:active, .nav-link:active, footer a:active { box-shadow: inset 3px 3px #414535, inset -2px -2px #a0ab83; transform: translate(2px, 2px); }
.button[hidden] { display: none; }
.build-download { display: block; background-color: #526f36; box-shadow: inset 3px 3px #8eac60, inset -3px -3px #2e4924, 3px 3px #0005; }
.build-download[hidden] { display: none; }
.build-download:hover { background-color: #657f42; }
.build-download:active { box-shadow: inset 3px 3px #2e4924, inset -2px -2px #8eac60; }
.telemost { display: block; }
.hint { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.build-status { margin: 12px 0; }
.world { margin-bottom: 34px; }
.world-intro { max-width: 740px; margin: 0 auto 28px; color: var(--muted); text-align: center; }
.section-heading { width: fit-content; max-width: 100%; margin: 0 auto 24px; padding: 16px 24px; text-align: center; border: 4px solid #241b13; background: repeating-linear-gradient(0deg, #0000 0 17px, #0002 17px 20px), #63462e; box-shadow: inset 3px 3px #9b7046, inset -3px -3px #39291d, 5px 5px #0004; }
.section-heading h2 { margin-bottom: 4px; }
.world-grid { display: grid; grid-auto-rows: 1fr; gap: 20px; }
.theme { min-width: 0; padding: 24px; border: 4px solid #33261b; background: #4d493d; box-shadow: inset 3px 3px #a48d67, inset -3px -3px #29271f, 4px 4px #0005; }
.theme-symbol { display: grid; width: 74px; height: 74px; place-items: center; border: 4px solid #25251f; background: #97917c; box-shadow: inset 3px 3px #5b5c4d, inset -3px -3px #c7bca0; }
.theme-symbol svg { image-rendering: pixelated; filter: drop-shadow(3px 3px #0005); }
.theme .eyebrow { margin-top: 24px; }
.theme p:last-child { color: #e7dfc9; font-size: 15px; margin-bottom: 0; }
.aviation { background: #3e4c46; }
.winery { background: #514044; }
.downloads { display: grid; gap: 24px; }
.downloads section { min-width: 0; border: 4px solid #1c1d19; background: repeating-linear-gradient(0deg, #ffffff03 0 3px, #0000 3px 8px), #53554d; padding: 24px 20px; box-shadow: inset 4px 4px #97998a, inset -4px -4px #30332c, 5px 5px #0005; }
.downloads section > p { color: var(--muted); }
.downloads section > .eyebrow { color: #f1bf73; }
ol { padding-left: 22px; margin-top: 24px; }
li { padding-left: 4px; margin-bottom: 14px; }
li::marker { color: #f5c982; font-weight: 800; }
.notice { font-size: 13px; border-left: 4px solid #e7b05f; background: #272b23; padding: 14px; margin-top: 26px; }
footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 12px; padding: 24px 0 4px; margin-top: 16px; }
footer span { color: #c5c1ac; font-family: monospace; }
@media (min-width: 700px) {
main { padding: 24px 32px 32px; }
.brand { font-size: 12px; }
.hero { padding: 48px; }
.world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.downloads section { padding: 28px; }
}
@media (min-width: 1100px) {
.hero { min-height: 720px; padding: 56px; }
.hero::before { background: linear-gradient(90deg, #151a14e8, #151a14a3 43%, #151a140d 75%); }
}
/* Copper fittings and moving machinery are decorative layers, clear of controls. */
.machine-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
main { position: relative; }
body { background-color: #201d19; }
.nav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
button { cursor: pointer; }
#motion-toggle { font-size: 8px; padding: 12px; }
.topbar, .join-panel, .theme, .downloads section { position: relative; border-color: #3e281a; box-shadow: inset 3px 3px #bc8c56, inset -3px -3px #573820, 5px 5px #0007; }
.topbar::after, .join-panel::after, .theme::after, .downloads section::after { content: ''; position: absolute; inset: 7px; pointer-events: none; background: radial-gradient(circle at 4px 4px, #ffe0a4 0 1px, #a66a3c 2px 3px, #302116 4px, transparent 5px) top left / 10px 10px no-repeat, radial-gradient(circle at 4px 4px, #ffe0a4 0 1px, #a66a3c 2px 3px, #302116 4px, transparent 5px) top right / 10px 10px no-repeat, radial-gradient(circle at 4px 4px, #e5bd79 0 1px, #8a512d 2px 3px, #302116 4px, transparent 5px) bottom left / 10px 10px no-repeat, radial-gradient(circle at 4px 4px, #e5bd79 0 1px, #8a512d 2px 3px, #302116 4px, transparent 5px) bottom right / 10px 10px no-repeat; }
.hero { overflow: hidden; }
.hero-copy { position: relative; z-index: 2; }
.join-panel { background: linear-gradient(125deg, #544536f5, #282e28fa); border-width: 6px; }
.hero-machine { position: absolute; right: 3%; bottom: 24px; width: 350px; height: 300px; pointer-events: none; z-index: 1; background: linear-gradient(0deg, #141815cc, transparent); }
.rotor { animation: machine-turn 28s linear infinite; transform-origin: center; transform-box: fill-box; filter: drop-shadow(4px 5px 2px #0009); }
.reverse { animation-direction: reverse; }
.waterwheel { position: absolute; width: 230px; height: 230px; right: 12px; bottom: 20px; animation-duration: 38s; }
.hero-cog { position: absolute; width: 100px; height: 100px; left: 6px; bottom: 20px; }
.hero-cog-small { position: absolute; width: 70px; height: 70px; left: 68px; bottom: 92px; animation-duration: 19.6s; }
.machine-caption { position: absolute; right: 8px; bottom: 0; font: 8px/1.6 var(--pixel); color: #e9bd7a; text-shadow: 2px 2px #000; }
.pipe { position: relative; height: 24px; border: 3px solid #492c1b; background: linear-gradient(#634124, #d5a067 24%, #a96538 50%, #5f3c26 85%, #9e6439); box-shadow: 0 5px #0005, inset 0 1px #f8cf96; pointer-events: none; }
.pipe-bridge { margin: -20px 18px 32px; }
.pipe-joint, .pipe::before, .pipe::after { content: ''; position: absolute; top: -8px; height: 34px; width: 14px; border: 3px solid #492e1d; background: linear-gradient(90deg, #9a6038, #e5b57d 50%, #6d4026); box-shadow: 2px 2px #0004; }
.pipe::before { left: 12%; }
.pipe::after { right: 12%; }
.pipe-joint { left: 65%; }
.valve { position: absolute; left: 32%; top: -20px; width: 44px; height: 44px; border: 6px solid #ae633c; border-radius: 50%; background: radial-gradient(circle, #d7a16a 0 4px, transparent 5px), linear-gradient(90deg, transparent 43%, #ae633c 43% 57%, transparent 57%), linear-gradient(transparent 43%, #ae633c 43% 57%, transparent 57%); box-shadow: 2px 3px #281a12; }
.machine-pipe { position: absolute; left: 0; right: 0; top: 48px; }
.gauge { position: relative; width: 70px; height: 70px; border: 7px solid #a57040; border-radius: 50%; background: repeating-conic-gradient(from -120deg, #5a4630 0deg 3deg, transparent 3deg 30deg), #ddcea6; box-shadow: inset 0 0 0 5px #eedcb4, 0 0 0 3px #35261b, 4px 5px #0005; }
.gauge::after { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #73432a; left: calc(50% - 5px); top: calc(50% - 5px); }
.needle { position: absolute; width: 24px; height: 3px; left: 50%; top: calc(50% - 1px); background: #8a3429; transform-origin: left center; animation: pressure 7s ease-in-out infinite alternate; }
.hero-machine > .gauge { position: absolute; top: 0; left: 95px; }
.steam { position: absolute; width: 80px; height: 130px; bottom: 35px; right: 16px; pointer-events: none; }
.steam i { position: absolute; width: 30px; height: 30px; left: 20px; bottom: 0; border-radius: 35%; background: #f0e7cd; opacity: 0; animation: steam-rise 5s ease-out infinite; }
.steam i:nth-child(2) { animation-delay: -1.7s; left: 10px; }
.steam i:nth-child(3) { animation-delay: -3.4s; left: 30px; }
.hero-machine > .steam { top: -100px; left: 0; }
.pipe-bridge > .steam { bottom: 10px; right: 22%; }
.world-grid { gap: 24px; }
.theme { padding: 18px; background-image: linear-gradient(135deg, #9c69451a, #0002); }
.scene { position: relative; margin: -2px -2px 22px; border: 3px solid #291e15; box-shadow: 0 0 0 2px #ad794b; overflow: hidden; }
.scene img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card-rotor { position: absolute; width: 72px; height: 72px; bottom: 8px; right: 10px; background: #29261caa; border: 3px solid #a77a44; border-radius: 50%; }
.aviation .card-rotor { animation-duration: 4s; }
.theme-symbol { width: 52px; height: 52px; border-width: 3px; float: right; margin: 0 0 10px 10px; }
.theme-symbol svg { width: 36px; height: 36px; }
.theme .eyebrow { margin-top: 0; padding-top: 12px; }
.theme h3 { clear: both; }
.lower-pipe { margin-top: 46px; margin-bottom: 40px; }
.downloads section { background-color: #454b43; border-width: 6px; }
.side-machine { display: none; position: absolute; top: 240px; width: 75px; height: 570px; pointer-events: none; }
.side-machine-left { left: -64px; }
.side-machine-right { right: -64px; }
.side-cog { position: absolute; width: 85px; height: 85px; top: 80px; left: -12px; }
.side-cog-small { position: absolute; width: 58px; height: 58px; top: 146px; left: 26px; animation-duration: 19s; }
.side-machine-left > .gauge { position: absolute; top: 260px; left: 0; }
.chain-drive { position: absolute; top: 0; left: 17px; height: 430px; width: 35px; border: 7px solid #82552f; border-radius: 22px; background: repeating-linear-gradient(#b8a07b 0 6px, #292821 6px 14px); background-size: 100% 14px; box-shadow: inset 0 0 0 5px #211b15, 3px 3px #0007; animation: chain-run 1.5s linear infinite; }
.vertical-pipe { position: absolute; left: 20px; top: 30px; width: 24px; height: 500px; background: linear-gradient(90deg, #634124, #d5a067 24%, #a96538 50%, #5f3c26 85%, #9e6439); }
.vertical-pipe::before, .vertical-pipe::after { width: 36px; height: 14px; left: -9px; }
.vertical-pipe::before { top: 80px; }
.vertical-pipe::after { top: 410px; }
.side-machine-right > .valve { top: 100px; left: 10px; }
.side-machine-right > .gauge { top: 210px; left: 0; }
.side-machine-right > .steam { top: -90px; right: 0; }
@keyframes machine-turn { to { transform: rotate(360deg); } }
@keyframes pressure { from { transform: rotate(-130deg); } to { transform: rotate(-50deg); } }
@keyframes steam-rise { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 15% { opacity: .4; } 100% { opacity: 0; transform: translate(15px, -120px) scale(2.2); } }
@keyframes chain-run { to { background-position-y: -28px; } }
.rotor, .needle, .steam i, .chain-drive { animation-play-state: paused; }
html.motion-running .rotor, html.motion-running .needle, html.motion-running .steam i, html.motion-running .chain-drive { animation-play-state: running; }
@media (max-width: 1099px) {
.hero-machine { width: 180px; height: 170px; right: 12px; bottom: 8px; opacity: .85; }
.waterwheel { width: 130px; height: 130px; right: 0; bottom: 15px; }
.hero-cog { width: 54px; height: 54px; left: 0; bottom: 10px; }
.hero-cog-small { width: 38px; height: 38px; left: 31px; bottom: 48px; }
.hero-machine > .gauge, .hero-machine > .machine-pipe, .machine-caption { display: none; }
.hero-machine > .steam { top: 0; }
.hero { padding-bottom: 170px; }
}
@media (max-width: 699px) {
.steam i:nth-child(3), .pipe-bridge > .steam { display: none; }
.pipe-bridge { margin-left: 8px; margin-right: 8px; }
.scene { margin-bottom: 18px; }
#motion-toggle { font-size: 7px; }
}
@media (min-width: 1580px) { .side-machine { display: block; } }
@media (prefers-reduced-motion: reduce) {
html:not(.motion-running) .rotor, html:not(.motion-running) .needle, html:not(.motion-running) .steam i, html:not(.motion-running) .chain-drive { animation: none; }
.needle { transform: rotate(-90deg); }
}