@font-face { font-family: "OriPixel"; src: url("../mc/g/oripixel.ttf") format("truetype"); font-display: block; }
:root {
  --night: #0c0b0a;
  --fg: #ffffff;
  --muted: #d0c8bf;
  --dim: #a0968c;
  --yellow: #ffff55;
  --gold: #ffaa00;
  --gold-soft: #fcd34d;
  --green: #55ff55;
  --aqua: #55ffff;
  --pink: #ff55ff;
  --red: #ff5555;
  --gray: #aaaaaa;
  --shadow: #3f3f3f;
  --panel: rgba(0, 0, 0, .55);
  --px: "OriPixel", ui-monospace, monospace;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--fg); font: 16px/1.6 var(--body); }
a { color: inherit; }
img, canvas { image-rendering: pixelated; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }
.px { font-family: var(--px); font-weight: 400; -webkit-font-smoothing: none; }
.h2 { font: 400 32px/1.25 var(--px); text-shadow: 4px 4px 0 #3f3f15; }
.h2 .y, .y { color: var(--yellow); }
.kick { font: 400 16px/1 var(--px); color: var(--gold); text-shadow: 2px 2px 0 #2a1c00; }
.lead { color: var(--muted); max-width: 62ch; font-size: 1.05rem; }
.goldtxt { color: var(--gold-soft); text-shadow: 3px 3px 0 #5a3a00; }
.c-y { color: var(--yellow); } .c-g { color: var(--gold); } .c-gr { color: var(--green); } .c-aq { color: var(--aqua); } .c-pk { color: var(--pink); } .c-rd { color: var(--red); } .c-gy { color: var(--gray); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mcb { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 0 18px; font: 400 16px/1 var(--px); color: #fff; text-shadow: 2px 2px 0 var(--shadow); text-decoration: none; border: 6px solid transparent; border-image: url("../mc/g/button.png") 3 fill / 6px stretch; background: none; cursor: pointer; white-space: nowrap; }
.mcb:hover, .mcb:focus-visible { border-image-source: url("../mc/g/button_highlighted.png"); color: var(--yellow); outline: 0; }
.mcb[disabled] { border-image-source: url("../mc/g/button_disabled.png"); color: #a0a0a0; cursor: default; }
.mcb.big { min-height: 52px; padding: 0 26px; }
.mcb.wide { width: 100%; }
.mcb .it { width: 24px; height: 24px; }
.it { display: inline-block; width: 32px; height: 32px; background-repeat: no-repeat; image-rendering: pixelated; flex: none; }

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: #000; }
header.top { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); z-index: 9; transition: background .25s; }
header.top.solid { background: rgba(0, 0, 0, .8); backdrop-filter: blur(8px); }
header.top.solid::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: url("../mc/g/footer_separator.png") repeat-x; background-size: 64px 2px; }
header.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; flex-wrap: wrap; padding-block: 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; image-rendering: auto; }
.brand .px { font-size: 24px; text-shadow: 3px 3px 0 #3f3f3f; }
.brand .px b { color: var(--gold-soft); font-weight: 400; text-shadow: 3px 3px 0 #5a3a00; }
nav.links { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
nav.links a { font: 400 16px/1 var(--px); color: #e0e0e0; text-decoration: none; padding: 10px; text-shadow: 2px 2px 0 var(--shadow); }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--yellow); }

.hero { position: relative; min-height: min(100svh, 880px); display: grid; place-items: center; overflow: hidden; isolation: isolate; text-align: center; }
.hero canvas.pano { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); max-width: none; z-index: -2; filter: blur(3px); }
.hero .fallback { position: absolute; inset: 0; z-index: -3; background: url("../mc/g/panorama_0.jpg") center / cover; filter: blur(3px); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 45%, rgba(0, 0, 0, .05), rgba(0, 0, 0, .55)), linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, var(--night)); }
.hero .wrap { display: grid; justify-items: center; gap: 22px; padding-block: 120px 80px; }
.logo { position: relative; display: flex; align-items: center; gap: clamp(10px, 2.4vw, 22px); }
.logo img { width: clamp(64px, 11vw, 128px); height: auto; image-rendering: auto; filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, .5)); }
.logo h1 { font: 400 clamp(48px, 12vw, 128px)/1 var(--px); color: #f2f2f2; text-shadow: 0 .0625em 0 #a8a8a8, 0 .125em 0 #6b6b6b, 0 .1875em 0 #3a3a3a, .08em .27em 0 rgba(0, 0, 0, .55); letter-spacing: .02em; }
.logo h1 b { font-weight: 400; color: #ffd84a; text-shadow: 0 .0625em 0 #e09a14, 0 .125em 0 #a8650a, 0 .1875em 0 #5a3500, .08em .27em 0 rgba(0, 0, 0, .55); }
.splash { position: absolute; right: -8%; bottom: -4%; transform: rotate(-18deg); font: 400 clamp(16px, 2.2vw, 24px)/1 var(--px); color: var(--yellow); text-shadow: .125em .125em 0 #3f3f15; white-space: nowrap; animation: pulse .5s ease-in-out infinite alternate; pointer-events: none; }
@keyframes pulse { to { transform: rotate(-18deg) scale(1.1); } }
.hero .menu { display: grid; gap: 10px; width: min(420px, 100%); margin-top: 18px; }
.hero .menu .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ipline { margin: 0; font: 400 16px/1 var(--px); color: #e0e0e0; text-shadow: 2px 2px 0 var(--shadow); }
.ipline b { color: #fff; font-weight: 400; }
.live { display: inline-flex; align-items: center; gap: 10px; font: 400 16px/1 var(--px); text-shadow: 2px 2px 0 #153f15; color: var(--green); }
.live.off { color: var(--red); text-shadow: 2px 2px 0 #3f1515; }
.live .it { width: 18px; height: 18px; }
.ver, .copy { position: absolute; bottom: 14px; font: 400 16px/1 var(--px); text-shadow: 2px 2px 0 var(--shadow); opacity: .85; }
.ver { left: max(16px, env(safe-area-inset-left, 0px)); }
.copy { right: max(16px, env(safe-area-inset-right, 0px)); }

.band { position: relative; padding-block: 72px; }
.band.dirt { background-color: #261c14; background-image: linear-gradient(rgba(0, 0, 0, .68), rgba(0, 0, 0, .68)), url("../mc/g/dirt.png"); background-size: auto, 64px 64px; }
.band.stone { background-color: #222; background-image: linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, .72)), url("../mc/g/cobblestone.png"); background-size: auto, 64px 64px; }
.band.dirt, .band.stone { image-rendering: pixelated; }
.band.dirt::before, .band.stone::before, .band.dirt::after, .band.stone::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background-repeat: repeat-x; background-size: 64px 2px; }
.band.dirt::before, .band.stone::before { top: 0; background-image: url("../mc/g/header_separator.png"); }
.band.dirt::after, .band.stone::after { bottom: 0; background-image: url("../mc/g/footer_separator.png"); }
.head { display: grid; gap: 12px; margin-bottom: 34px; }
.head.center { justify-items: center; text-align: center; }
.box { background: var(--panel); border: 2px solid #000; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; }
.stat .it { width: 48px; height: 48px; }
.stat b { display: block; font: 400 24px/1.1 var(--px); text-shadow: 3px 3px 0 var(--shadow); font-weight: 400; }
.stat span { color: var(--muted); font-size: .9rem; }

.worlds { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 250px; gap: 14px; }
.wcard { position: relative; overflow: hidden; display: grid; align-content: end; padding: 18px; isolation: isolate; border: 2px solid #000; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .1); }
.wcard canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; transition: transform .5s; }
.wcard:hover canvas { transform: scale(1.05); }
.wcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .9)); }
.wcard.big { grid-row: span 2; }
.wcard h3 { font: 400 24px/1.2 var(--px); text-shadow: 3px 3px 0 var(--shadow); margin-top: 6px; }
.wcard p { margin: 6px 0 0; color: #ddd; font-size: .93rem; max-width: 46ch; }
.cmd { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font: 400 16px/1 var(--px); color: var(--aqua); text-shadow: 2px 2px 0 #153f3f; }

.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feat { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; }
.slot { position: relative; width: 52px; height: 52px; flex: none; display: grid; place-items: center; background: #8b8b8b; box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff; }
.slot .it { width: 32px; height: 32px; }
.slot b { position: absolute; right: 3px; bottom: 1px; font: 400 16px/1 var(--px); color: #fff; text-shadow: 2px 2px 0 var(--shadow); font-weight: 400; }
.tip { background: rgba(16, 0, 16, .94); border: 2px solid #100010; box-shadow: inset 0 0 0 2px #2d0a6a; padding: 12px 14px; color: var(--gray); font: 400 16px/1.5 var(--px); }
.tip h3 { font: 400 16px/1.3 var(--px); margin-bottom: 4px; }
.tip .c-y { color: var(--yellow); } .tip .c-g { color: var(--gold); } .tip .c-gr { color: var(--green); } .tip .c-aq { color: var(--aqua); } .tip .c-pk { color: var(--pink); } .tip .c-rd { color: var(--red); }
.tip p { margin: 0; font-family: var(--body); font-size: .92rem; line-height: 1.5; color: #c9c0d6; }

.join { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.step { display: grid; gap: 10px; align-content: start; padding: 18px; }
.step .top { display: flex; align-items: center; gap: 12px; }
.step .n { font: 400 32px/1 var(--px); color: var(--yellow); text-shadow: 4px 4px 0 #3f3f15; }
.step .it { width: 40px; height: 40px; }
.step h3 { font: 400 16px/1.4 var(--px); text-shadow: 2px 2px 0 var(--shadow); }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }
code.mc { font: 400 16px/1 var(--px); color: var(--aqua); text-shadow: 2px 2px 0 #153f3f; }

.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.post { display: grid; grid-template-rows: 150px auto; }
.post canvas { width: 100%; height: 100%; display: block; border-bottom: 2px solid #000; }
.post .b { padding: 14px 16px 18px; display: grid; gap: 6px; align-content: start; }
.post .meta { font: 400 16px/1 var(--px); color: var(--gray); text-shadow: 2px 2px 0 #2a2a2a; }
.post .meta i { font-style: normal; color: var(--gold); }
.post h3 { font: 400 16px/1.45 var(--px); text-shadow: 2px 2px 0 var(--shadow); }
.post p { margin: 0; color: var(--muted); font-size: .93rem; }

.book { display: grid; grid-template-columns: 1fr 1fr; max-width: 880px; margin: 0 auto; border: 3px solid #000; box-shadow: 10px 10px 0 rgba(0, 0, 0, .5); }
.page { background: #f6ecd0; color: #1f1a12; padding: 26px; display: grid; gap: 10px; align-content: start; font: 400 16px/1.55 var(--px); }
.page + .page { border-left: 4px solid #d7c69c; }
.page h3 { font: 400 16px var(--px); color: #000; }
.page ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.page .pn { justify-self: end; color: #7d6a45; }
.page .warn { margin: 0; color: #aa0000; }

.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 24px; background: linear-gradient(90deg, rgba(88, 101, 242, .35), rgba(0, 0, 0, .55)); border: 2px solid #000; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .1); }
.cta p { margin: 8px 0 0; color: var(--muted); }

.faq { display: grid; gap: 8px; max-width: 860px; margin: 0 auto; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 18px; font: 400 16px/1.4 var(--px); text-shadow: 2px 2px 0 var(--shadow); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--yellow); }
.faq details[open] summary::after { content: "-"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

footer { background: #000; padding-block: 30px 120px; color: var(--dim); font-size: .88rem; position: relative; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: url("../mc/g/header_separator.png") repeat-x; background-size: 64px 2px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 14px; flex-wrap: wrap; font: 400 16px/1 var(--px); }
footer a { color: #ddd; text-decoration: none; text-shadow: 2px 2px 0 var(--shadow); }
footer a:hover { color: var(--yellow); }

.pagehead { position: relative; padding-block: 130px 46px; overflow: hidden; isolation: isolate; }
.pagehead canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; filter: blur(2px); }
.pagehead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .45), var(--night)); }
.pagehead h1 { font: 400 clamp(40px, 7vw, 64px)/1.1 var(--px); text-shadow: .0625em .0625em 0 var(--shadow); margin-top: 12px; }
.gui { background: #c6c6c6; color: #3f3f3f; border-radius: 4px; box-shadow: 0 0 0 2px #000, inset 4px 4px 0 #fff, inset -4px -4px 0 #555; padding: 20px; }
.gui h3 { font: 400 16px/1.3 var(--px); color: #3f3f3f; }

.notice { display: flex; gap: 12px; align-items: center; padding: 12px 16px; margin-top: 18px; font-size: .95rem; color: #ffe9a8; background: rgba(90, 60, 0, .45); border: 2px solid #000; box-shadow: inset 0 0 0 2px rgba(255, 210, 90, .25); }
.notice .it { width: 24px; height: 24px; }
.shopbar { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; padding-block: 18px 0; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; position: relative; z-index: 1; margin-bottom: -2px; }
.tabs button { display: flex; align-items: center; gap: 8px; padding: 8px 14px 10px; font: 400 16px/1 var(--px); color: #3f3f3f; background: #a9a9a9; border: 2px solid #000; border-bottom: 0; border-radius: 4px 4px 0 0; box-shadow: inset 2px 2px 0 #dcdcdc; cursor: pointer; }
.tabs button .it { width: 24px; height: 24px; }
.tabs button[aria-pressed="true"] { background: #c6c6c6; padding-bottom: 12px; box-shadow: inset 2px 2px 0 #fff; }
.acct { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 10px; }
.acct img { width: 36px; height: 36px; box-shadow: 0 0 0 2px #000; background: #555; }
.acct input { width: 180px; max-width: 40vw; min-width: 0; font: 400 16px var(--px); color: #fff; background: #000; border: 2px solid #a0a0a0; padding: 8px 9px; outline: none; }
.acct input:focus { border-color: #fff; }
.acct input[aria-invalid="true"] { border-color: var(--red); }
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; padding-block: 0 96px; align-items: start; }
.shopgui { border-top-left-radius: 0; min-height: 200px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.prod { display: grid; gap: 10px; grid-template-rows: auto 1fr auto; }
.prod .art { display: grid; place-items: center; height: 170px; background: radial-gradient(circle at 50% 55%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%), #8b8b8b; box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff; }
.prod .art img { width: 150px; height: 150px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); transition: transform .2s; }
.prod:hover .art img { transform: scale(1.06) translateY(-3px); }
.prod .art .it { width: 80px; height: 80px; }
.prod .tip .desc { font-family: var(--body); font-size: .9rem; line-height: 1.5; color: #c9c0d6; }
.prod .tip .desc ul { margin: 4px 0 0; padding-left: 18px; }
.prod .tip .desc p { margin: 0 0 4px; }
.prod .buy { display: grid; gap: 10px; align-items: center; }
.prod .buy .mcb { grid-column: 1 / -1; }
.prod .slot img { width: 36px; height: 36px; object-fit: contain; }
.price { font: 400 24px/1 var(--px); color: #3f3f3f; }
.price s { font-size: 16px; color: #777; margin-right: 6px; }
.per { display: block; font-size: .8rem; color: #555; margin-top: 2px; }
.empty-state { padding: 30px 10px; text-align: center; font: 400 16px/1.5 var(--px); color: #555; }
.chest h3 { margin-bottom: 4px; }
.chest .for { font: 400 16px/1.3 var(--px); color: #555; margin: 0 0 12px; }
.chest ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.chest li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font: 400 16px/1.2 var(--px); color: #3f3f3f; }
.chest li .slot { width: 40px; height: 40px; }
.chest li .slot .it, .chest li .slot img { width: 24px; height: 24px; }
.chest li button { background: none; border: 0; font: 400 16px var(--px); color: #aa0000; cursor: pointer; }
.chest .grid { display: grid; grid-template-columns: repeat(6, 40px); gap: 4px; margin-bottom: 10px; }
.chest .grid .slot { width: 40px; height: 40px; }
.chest .total { display: flex; justify-content: space-between; padding-block: 10px; border-top: 2px solid #9a9a9a; font: 400 24px/1 var(--px); color: #3f3f3f; }
.chest .fine { font-size: .8rem; color: #555; margin: 10px 0 0; line-height: 1.5; }
.chest .err { color: #aa0000; font-size: .88rem; margin: 6px 0 0; }

.hotbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: grid; justify-items: center; gap: 6px; }
.hotbar .label { font: 400 16px/1 var(--px); color: #fff; text-shadow: 2px 2px 0 var(--shadow); min-height: 16px; }
.hotbar .bar { position: relative; width: 364px; height: 44px; background: url("../mc/g/hotbar.png") 0 0 / 364px 44px; image-rendering: pixelated; }
.hotbar a { position: absolute; top: 2px; width: 40px; height: 40px; display: grid; place-items: center; }
.hotbar a .it { width: 32px; height: 32px; }
.hotbar .sel { position: absolute; top: -2px; width: 48px; height: 46px; background: url("../mc/g/hotbar_selection.png") 0 0 / 48px 46px; pointer-events: none; transition: left .12s; image-rendering: pixelated; }
.toast { position: fixed; top: calc(80px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); z-index: 30; width: 320px; height: 64px; background: url("../mc/g/advancement.png") 0 0 / 320px 64px; image-rendering: pixelated; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; align-items: center; padding: 0 16px; animation: tin .3s ease-out; }
.toast b { display: block; font: 400 16px/1.1 var(--px); color: var(--yellow); font-weight: 400; }
.toast span { display: block; font: 400 16px/1.1 var(--px); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes tin { from { transform: translateX(110%); } }

@media (max-width: 980px) {
  .worlds { grid-template-columns: 1fr 1fr; }
  .wcard.big { grid-column: 1 / -1; grid-row: auto; }
  .stats, .join { grid-template-columns: 1fr 1fr; }
  .news, .shop, .feats { grid-template-columns: minmax(0, 1fr); }
  .cta { grid-template-columns: minmax(0, 1fr); }
  nav.links { order: 3; flex-basis: 100%; }
  header.top { background: rgba(0, 0, 0, .8); }
}
@media (max-width: 620px) {
  .worlds, .stats, .join { grid-template-columns: minmax(0, 1fr); }
  .book { grid-template-columns: minmax(0, 1fr); }
  .page + .page { border-left: 0; border-top: 4px solid #d7c69c; }
  .hero .wrap { padding-block: 160px 90px; }
  .splash { right: 0; bottom: -28px; }
  .ver, .copy { display: none; }
  .toast { width: 300px; background-size: 300px 64px; }
  .hotbar { transform: translateX(-50%) scale(.85); transform-origin: bottom center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .splash, .toast { animation: none; } .wcard canvas { transition: none; } }
