:root {
    color-scheme: dark;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: #f4f0f6;
    background: #100f17;
    --muted: #c5c1cf;
    --gold: #f4d39b;
    --serif: "STIX Two Text", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    background: radial-gradient(ellipse at 18% 0%, #211c2a 0, transparent 50%), #100f17;
}
button { font: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #f3ce98; outline-offset: 4px; }
::selection { background: #e2ceee; color: #1b1221; }

.shell { max-width: 1760px; margin: 0 auto; padding: 0 clamp(16px, 3.3vw, 60px); }
.masthead, .colophon {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.masthead { min-height: clamp(80px, 7vw, 108px); padding: 0 3px; gap: 16px; }
.brand { display: block; width: clamp(150px, 15.5vw, 238px); height: auto; }
.site-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #dcd5df;
    white-space: nowrap;
}
.site-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #eac38c;
    box-shadow: 0 0 0 4px #eac38c12;
}

.scene {
    --inset: clamp(34px, 4.5vw, 82px);
    isolation: isolate;
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: clamp(590px, calc(100svh - 166px), 930px);
    overflow: hidden;
    border: 1px solid #413b50;
    border-radius: 24px;
    background: #191824;
}
.landscape { position: absolute; inset: 0; z-index: -2; display: block; }
.landscape img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 64% 37%; }
.landscape::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, #110f1bd9 0, #12101a63 16%, transparent 42%),
        linear-gradient(90deg, #151422df 0, #181624bf 24%, #18172375 42%, #15121c0a 67%);
}
.intro {
    align-self: center;
    justify-self: start;
    padding: clamp(48px, 5.1vw, 94px) var(--inset) clamp(38px, 3.9vw, 64px);
}
.overline {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    line-height: 1.45;
    font-weight: 650;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold);
}
.north-star { font-size: 20px; line-height: 1; }
h1 {
    margin: clamp(19px, 1.6vw, 30px) 0 clamp(22px, 2.1vw, 34px);
    font-size: clamp(78px, 7.8vw, 146px);
    line-height: .91;
    letter-spacing: -.066em;
    font-weight: 570;
    color: #faf7f2;
}
h1 em {
    display: inline-block;
    font: italic 400 1.03em/.99 var(--serif);
    letter-spacing: -.061em;
    color: #e9d8fc;
}
h1 em span { color: var(--gold); }
.lead {
    margin: 0;
    font-size: clamp(16px, 1.18vw, 20px);
    line-height: 1.55;
    color: #dcd7e4;
}
.guide-link {
    width: fit-content;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    min-height: 38px;
    margin-top: 17px;
    border-bottom: 1px solid #b6a4bc77;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color .18s, border-color .18s;
}
.guide-link span { color: var(--gold); font-family: Arial, sans-serif; font-size: 18px; }
.guide-link:hover { color: var(--gold); border-color: var(--gold); }

.console {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 var(--inset) clamp(29px, 3vw, 53px);
    padding: 18px 20px;
    border: 1px solid #daceea40;
    border-radius: 15px;
    background: linear-gradient(100deg, #292431e8, #181722dd);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px #100c1a38;
}
.server-id, .console-controls { display: flex; align-items: center; }
.server-id { gap: 15px; min-width: 0; }
.server-info, .edition { display: grid; gap: 4px; }
.block-icon {
    display: grid; place-items: center; flex: 0 0 46px; height: 46px;
    border: 1px solid #c6aadb45; border-radius: 10px; background: #d8b8ea10;
}
.voxel { position: relative; display: block; width: 23px; height: 24px; }
.voxel i { position: absolute; inset: 0; }
.voxel i:nth-child(1) { background: #e8d6f4; clip-path: polygon(50% 0, 98% 25%, 50% 50%, 2% 25%); }
.voxel i:nth-child(2) { background: #bc99d4; clip-path: polygon(2% 30%, 48% 55%, 48% 100%, 2% 75%); }
.voxel i:nth-child(3) { background: #916ba8; clip-path: polygon(52% 55%, 98% 30%, 98% 75%, 52% 100%); }
.caption {
    color: var(--muted); font-size: 10px; font-weight: 600;
    line-height: 1.5; letter-spacing: .13em; text-transform: uppercase;
}
.server-info code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    color: #fff8ff; font-size: clamp(18px, 1.45vw, 25px); letter-spacing: -.035em;
    user-select: all;
}
.console-controls { gap: clamp(22px, 3vw, 56px); }
.edition { border-left: 1px solid #c2b3d441; padding-left: clamp(18px, 2.6vw, 42px); }
.edition-name { font-size: 15px; color: #eee8f2; }
.copy-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 11px;
    min-height: 46px; padding: 0 20px; border-radius: 9px; border: 1px solid #f8eaff;
    background: #e8d6f9; color: #281e33; white-space: nowrap; font-size: 14px; font-weight: 650;
    transition: background .18s, transform .18s;
}
.copy-button:hover { background: #f5eaff; transform: translateY(-1px); }
.copy-button:active { transform: translateY(0); }
.copy-icon { position: relative; width: 16px; height: 16px; }
.copy-icon::before, .copy-icon::after {
    content: ""; position: absolute; width: 10px; height: 11px;
    border: 1.4px solid currentColor; border-radius: 2px;
}
.copy-icon::before { top: 1px; left: 1px; }
.copy-icon::after { right: 1px; bottom: 1px; background: #e8d6f9; }
.copied .copy-icon::before { display: none; }
.copied .copy-icon::after {
    inset: 2px auto auto 2px; width: 12px; height: 7px; border-width: 0 0 2px 2px;
    border-radius: 0; transform: rotate(-45deg); background: transparent;
}
.colophon { min-height: 59px; color: #aca3b3; font-size: 12px; gap: 12px; }
.colophon span:first-child { letter-spacing: .06em; }
.footer-address { font-family: Consolas, monospace; font-size: 12px; }

dialog {
    padding: 0; max-width: calc(100% - 32px); width: 510px; max-height: calc(100% - 36px);
    color: inherit; border: 1px solid #60536b; border-radius: 19px;
    background: #211d2a; box-shadow: 0 25px 110px #08060b99;
}
dialog::backdrop { background: #0c0a13bd; backdrop-filter: blur(5px); }
.guide { padding: clamp(22px, 3vw, 38px); }
.guide-mount > .guide { max-width: 640px; margin: 24px auto; background: #211d2a; border-radius: 16px; }
.guide-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.close-button {
    width: 40px; height: 40px; border: 1px solid #504657; border-radius: 50%;
    background: transparent; color: #ede5f3; font: 26px/1 Arial, sans-serif;
}
.close-button:hover { background: #392e42; }
.guide h2 {
    margin: 16px 0; font-size: clamp(28px, 3vw, 38px); font-weight: 550;
    line-height: 1.1; letter-spacing: -.045em;
}
.guide ol { margin: 24px 0; padding-left: 23px; color: #ede6f0; }
.guide li { margin: 12px 0; padding-left: 4px; font-size: 15px; line-height: 1.55; }
.guide li::marker { color: var(--gold); font-variant-numeric: tabular-nums; }
.guide code { color: #ead6f6; font-size: .97em; overflow-wrap: anywhere; user-select: all; }
.guide-note { color: var(--muted); font-size: 14px; line-height: 1.5; border-top: 1px solid #49404f; padding-top: 16px; }
.guide .copy-button { margin-top: 4px; }
.guide-feedback { margin: 12px 0 0; color: #e8d3f4; font-size: 13px; }
.guide-feedback:empty, .notice:empty { display: none; }
.notice {
    position: fixed; z-index: 3; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 12px 18px;
    border: 1px solid #6b5975; border-radius: 10px; background: #29212f; color: #fbf4ff;
    box-shadow: 0 5px 30px #0c071654; text-align: center; font-size: 14px; pointer-events: none;
}

@media (min-width: 701px) and (max-width: 920px) {
    .scene { --inset: 33px; }
    .intro { padding-top: 50px; }
    .console { gap: 15px; padding: 15px; }
    .console-controls { gap: 16px; }
    .edition { padding-left: 16px; }
    .server-id { gap: 10px; }
}
@media (max-width: 700px) {
    .shell { padding: 0 13px; }
    .masthead { min-height: 68px; padding: 0 4px; }
    .brand { width: clamp(125px, 36vw, 191px); }
    .site-status { font-size: 11px; gap: 8px; }
    .scene { --inset: clamp(18px, 5vw, 32px); grid-template-rows: auto auto auto; min-height: 0; border-radius: 18px; }
    .landscape { position: relative; inset: auto; z-index: 0; height: clamp(185px, 56vw, 315px); }
    .landscape img { object-position: 55% 36%; }
    .landscape::after { background: linear-gradient(0deg, #191824 0, #19182480 13%, transparent 40%); }
    .intro { position: relative; align-self: start; margin-top: -4px; padding: 0 var(--inset) 23px; }
    .overline { font-size: 9px; gap: 7px; letter-spacing: .13em; }
    .north-star { font-size: 16px; }
    h1 { font-size: clamp(54px, 14vw, 84px); margin: 15px 0 18px; }
    .lead { font-size: 15px; line-height: 1.48; }
    .guide-link { margin-top: 8px; min-height: 40px; }
    .console {
        margin: 0 var(--inset) var(--inset); padding: 14px; gap: 13px;
        flex-wrap: wrap; background: #25222e; border-radius: 12px;
    }
    .server-id { gap: 11px; }
    .block-icon { flex-basis: 39px; height: 39px; }
    .voxel { width: 20px; height: 21px; }
    .server-info { gap: 2px; }
    .server-info code { font-size: 18px; }
    .console-controls { flex: 1 1 auto; justify-content: flex-end; }
    .edition { display: none; }
    .colophon { min-height: 51px; padding: 0 3px; font-size: 10px; }
    .footer-address { font-size: 11px; }
}
@media (max-width: 510px) {
    .console-controls { width: 100%; }
    .console .copy-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
