@font-face {
    font-family: "Mine Pixel";
    src: local("Press Start 2P");
}
:root {
    color-scheme: dark;
    --bg: #151913;
    --surface: #20271c;
    --surface-raised: #262f21;
    --border: #394634;
    --text: #f4f5eb;
    --muted: #bdc8b6;
    --green: #b0df76;
    --green-hover: #c7ef97;
    --ink: #18210e;
    --error: #ffbda5;
    --body-font: "DM Sans", system-ui, sans-serif;
    --pixel-font: "Press Start 2P", "Mine Pixel", "Courier New", monospace;
}
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--body-font); }
body.member-page { min-height: 100vh; display: flex; flex-direction: column; }
main { min-width: 0; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: var(--green); text-underline-offset: 4px; }
:focus-visible { outline: 3px solid #e7b96f; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h2 { font: bold clamp(1.04rem, 2.3vw, 1.5rem)/1.65 var(--pixel-font); }
h3 { font-size: 1.19rem; line-height: 1.3; }
code { font: 600 1rem/1.5 ui-monospace, monospace; overflow-wrap: anywhere; }
.wrap { width: min(100% - 72px, 1160px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: 12px; z-index: 3; padding: 8px 16px; background: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { position: relative; z-index: 1; background: #171d15; border-bottom: 1px solid #343c31; color: #f4f5eb; }
.header-inner { min-height: 73px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; }
.brand { align-items: center; display: inline-flex; width: fit-content; text-decoration: none; font: bold .73rem/1.65 var(--pixel-font); color: inherit; letter-spacing: -.04em; }
.brand img { margin-right: 11px; image-rendering: pixelated; }
.brand span { color: #b0df76; }
.nav { display: flex; gap: clamp(18px, 3vw, 38px); align-items: center; }
.nav a, .footer-links a { text-decoration: none; color: inherit; font-weight: 600; font-size: .91rem; }
.nav a { color: #d8dfd3; }
.nav a:hover, .footer-links a:hover { color: var(--green); }
.account-link { justify-self: end; }
.menu-toggle { display: none !important; }
.button { min-height: 44px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; text-decoration: none; font-weight: 700; line-height: 1.3; text-align: center; font-size: .92rem; transition: background-color .15s, border-color .15s; }
.button-green { background: var(--green); color: var(--ink); box-shadow: inset 0 -4px #83b34f, inset 0 1px #d8f4b3; }
.button-green:hover { background-color: var(--green-hover); }
.button-quiet { background: var(--surface); color: var(--text); border-color: var(--border); }
.button-quiet:hover { background: var(--surface-raised); border-color: var(--green); }
.site-header .button-quiet { color: #f4f5eb; background: #232c20; border-color: #45543d; }
.hero {
    min-height: 582px;
    display: grid;
    align-items: center;
    border-bottom: 6px solid #7fa650;
    background: linear-gradient(90deg, #101610dc, #141b1380 39%, #141b130c 80%),
                linear-gradient(0deg, #0e160d99, transparent 50%),
                url("vale-mine-friends.jpg") center 47% / cover no-repeat,
                #263a23 url("original/img/bgtopo.png") center / cover;
}
.hero-inner { padding-block: 66px 108px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #d7efb8; letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; font-weight: 700; margin-bottom: 23px; }
.pixel-dot { width: 9px; height: 9px; background: #b0df76; box-shadow: 0 0 0 3px #b0df7630; }
.hero h1 { font: bold clamp(2.25rem, 5.1vw, 4.75rem)/1.25 var(--pixel-font); letter-spacing: -.075em; text-shadow: 4px 5px #121b0f; color: #f4f5eb; }
.hero h1 span { color: #b9e781; }
.hero-copy { max-width: 460px; margin: 24px 0 30px; font-size: clamp(1.07rem, 2vw, 1.25rem); line-height: 1.55; color: #edf2e7; }
.hero .button-green { background-color: #b0df76; color: #18210e; }
.hero .button-quiet { background: #141d13d9; border-color: #87917d; color: #f4f5eb; }
.hero .button:hover { filter: brightness(1.15); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.server-wrap { margin-top: -47px; position: relative; }
.server-panel { display: flex; align-items: center; gap: 21px; padding: 21px 24px; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid #8db85c; box-shadow: 0 7px #0b0f0a55; }
.server-icon { image-rendering: pixelated; background: var(--surface-raised); outline: 1px solid var(--border); padding: 9px; }
.server-address { flex: 1; min-width: 0; }
.server-address span { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 3px; }
.server-address code { font-size: clamp(.85rem, 2.1vw, 1.19rem); }
.copy-action { position: relative; }
.copy-status:not(:empty) { position: absolute; z-index: 1; right: 0; top: calc(100% + 7px); padding: 5px 9px; background: var(--bg); border: 1px solid var(--border); color: var(--green); font-size: .78rem; width: max-content; max-width: 220px; }
.section { padding-block: 72px; scroll-margin-top: 16px; }
.section-heading { margin-bottom: 27px; }
.section-heading p, .community-card p, .steps p, .questions p { color: var(--muted); margin-top: 9px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--border); box-shadow: inset 0 -4px #10150d30; padding: 23px; }
.step-number { display: inline-grid; place-items: center; height: 39px; min-width: 42px; margin-bottom: 16px; border: 1px solid var(--border); background: var(--bg); color: var(--green); font: bold .67rem/1 var(--pixel-font); }
.steps p { font-size: .95rem; }
.steps strong { color: var(--text); }
.community-section { padding-block: 16px; }
.community-card {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 52px;
    border: 1px solid #687357;
    border-left: 5px solid #99ba6f;
    background: linear-gradient(95deg, #20291bf5, #242e1fea 55%, #333c25c9), url("original/img/bgsocial.jpg") center / 380px auto;
    padding: 43px clamp(23px, 5vw, 62px);
    color: #f4f5eb;
}
.community-card p { max-width: 480px; margin-bottom: 23px; color: #d4ddcc; }
.community-card img { width: min(100%, 270px); height: auto; justify-self: center; filter: drop-shadow(0 8px 15px #0d140da0); }
.community-card .button { color: #f4f5eb; background: #1c2419; border-color: #53614a; }
.community-card .button-green { color: #18210e; background: #b0df76; border-color: transparent; }
.community-card .button:hover { filter: brightness(1.15); }
.help-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 46px; }
.help-section .section-heading { margin: 0; }
.questions { border-top: 1px solid var(--border); }
.questions details { border-bottom: 1px solid var(--border); padding: 0 2px 0; }
.questions summary { font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 17px; cursor: pointer; }
.questions summary::after { content: "+"; color: var(--green); font-family: monospace; }
.questions details[open] summary::after { content: "−"; }
.questions summary::-webkit-details-marker { display: none; }
.questions p { margin: 0 0 17px; }
.hytale-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.site-footer {
    background: linear-gradient(#161c15f0, #161c15f0), url("original/img/stones.png") center / 490px;
    color: #e2e9de;
    border-top: 1px solid #394634;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 32px; }
.footer-inner p { color: #b9c5b3; font-size: .83rem; margin-top: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 21px; }
.auth-page { background: linear-gradient(90deg, #131a12ed 0 40%, #131a1277), url("vale-mine-friends.jpg") center / cover fixed; }
.auth-main { min-height: min(730px, 82vh); display: grid; place-items: center; padding-block: 60px; }
.auth-card { width: min(100%, 465px); border: 1px solid var(--border); border-top: 4px solid #8db85c; background: var(--surface); box-shadow: 0 8px 38px #080b08a0; padding: clamp(20px, 5vw, 38px); }
.auth-card h1, .member-title { font: bold clamp(1.15rem, 2.4vw, 1.65rem)/1.65 var(--pixel-font); }
.subtitle { color: var(--muted); margin: 10px 0 24px; }
.stack-form { display: grid; gap: 13px; }
.stack-form label { display: grid; gap: 5px; color: var(--text); font-size: .93rem; font-weight: 600; }
input:not([type=hidden]) { color: var(--text); background: var(--bg); width: 100%; min-height: 45px; border: 1px solid var(--border); padding: 9px 11px; border-radius: 0; }
.form-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; font-size: .91rem; }
.notice { color: var(--green); padding: 10px 12px; border: 1px solid var(--border); margin-bottom: 15px; overflow-wrap: anywhere; }
.notice-error { color: var(--error); }
.member-main { flex: 1; padding-block: 28px 64px; }
.member-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 22px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.member-nav .button[aria-current="page"] { border-color: var(--green); color: var(--green); }
.member-tools { display: flex; gap: 8px; margin-left: auto; }
.dashboard-grid, .profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dashboard-grid { grid-template-columns: 1.6fr 1fr; }
.member-card { padding: clamp(17px, 3vw, 26px); border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.member-card .stack-form, .member-card .actions { margin-top: 14px; }
.member-card p { color: var(--muted); margin-top: 8px; }
.chat-log { height: clamp(250px, 46vh, 460px); overflow: auto; background: var(--bg); border: 1px solid var(--border); margin: 14px 0; padding: 8px 16px; overflow-wrap: anywhere; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.msg { padding-block: 9px; border-bottom: 1px solid var(--border); }
.msg strong { color: var(--green); }
.msg small { display: block; color: var(--muted); }
.chat-state { min-height: 1.6em; font-size: .88rem; }
[data-theme=light] {
    color-scheme: light;
    --bg: #f3f3e7;
    --surface: #fffdf2;
    --surface-raised: #e8ecda;
    --border: #bcc5b4;
    --text: #20281c;
    --muted: #4d5e45;
    --green: #3d641d;
    --green-hover: #345619;
    --ink: #fff;
    --error: #933619;
}
@media (max-width: 850px) {
    .wrap { width: min(100% - 40px, 1160px); }
    .header-inner { grid-template-columns: 1fr auto auto; gap: 9px; min-height: 64px; padding-block: 9px; }
    .js .menu-toggle { display: inline-flex !important; }
    .nav { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; padding-block: 8px; gap: 11px 20px; }
    .js .nav:not(.is-open) { display: none; }
    .hero { min-height: 520px; background-position: 58% 50%; }
    .hero-inner { padding-block: 65px 90px; }
    .section { padding-block: 52px; }
    .community-section { padding-block: 4px; }
    .profile-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
    .wrap { width: calc(100% - 32px); }
    .brand { font-size: .58rem; }
    .brand img { width: 26px; height: 26px; margin-right: 6px; }
    .header-inner .button { padding-inline: 8px; font-size: .79rem; }
    .hero { min-height: 490px; background-position: 60% center; }
    .hero h1 { font-size: clamp(1.56rem, 6.8vw, 2.35rem); letter-spacing: -.07em; }
    .hero-copy { max-width: 310px; }
    .server-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 15px; }
    .server-icon { width: 38px; height: 38px; padding: 5px; }
    .server-panel .copy-action { grid-column: 1 / -1; }
    .server-panel .button { width: 100%; }
    .steps, .community-card, .help-section, .dashboard-grid, .profile-grid { grid-template-columns: 1fr; }
    .community-card { gap: 16px; padding-block: 24px; }
    .community-card img { width: 160px; grid-row: 1; justify-self: start; }
    .help-section { gap: 20px; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
    .member-tools { margin-left: 0; }
    .auth-main { padding-block: 35px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
