:root {
    --bg: #111311;
    --panel: #1b1d1b;
    --line: #3b3d3b;
    --text: #f7f7f7;
    --muted: #b1b3b1;
    --accent: #52a535;
    --accent-dark: #1f4e17;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: #111311;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.site-header {
    max-width: 1180px;
    margin: auto;
    padding: 26px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-start { display: flex; align-items: center; gap: 14px; }
.header-map-link { color: var(--text); text-decoration: none; font-weight: 800; }
.header-map-link:hover { color: var(--accent); }
.brand { font-size: 1.2rem; font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.server-address, .header-seed, .header-discord { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 9px; color: var(--text); background: #202920; border: 2px solid #506050; border-radius: 0; box-shadow: inset 0 -3px #151b16; font: inherit; font-size: 1rem; font-weight: 850; letter-spacing: -.02em; white-space: nowrap; cursor: pointer; }
.server-address:hover, .header-seed:hover { color: #fff; border-color: var(--accent); }
.server-address:active, .header-seed:active, .header-discord:active { transform: translateY(2px); box-shadow: inset 0 -1px #151b16; }
.server-address svg, .header-seed svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.server-address-prefix { color: #9ddc89; }
.header-discord { color: #fff; background: #5865f2; border-color: #3f49b9; box-shadow: inset 0 -3px #3f49b9; text-decoration: none; }
.header-discord:hover { color: #fff; background: #6875f5; border-color: #8c95ff; }
.header-discord:active { box-shadow: inset 0 -1px #3f49b9; }
nav { display: flex; align-items: center; gap: 22px; }
nav a, .link-button { color: var(--muted); text-decoration: none; font: inherit; }
nav > a { padding: 7px 0; border-bottom: 2px solid transparent; }
nav > a:hover { color: var(--text); }
nav > a.active { color: #fff; border-bottom-color: var(--accent); }
.nav-cta { color: #fff; background: #3c8527; border: 2px solid #1f4f16; border-radius: 0; padding: 9px 14px 12px; box-shadow: inset 0 -4px #286018; font-weight: 800; }
.inline-form { display: inline; }
.link-button { border: 0; background: none; padding: 0; cursor: pointer; }
.wallet-balance { display: inline-flex; align-items: center; gap: 5px; color: #ffd66b; font-weight: 750; white-space: nowrap; }
.wallet-balance .currency-icon { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; vertical-align: middle; }
.account-menu { position: relative; }
.account-menu summary { display: block; list-style: none; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.player-avatar { display: block; width: 40px; height: 40px; border: 2px solid #555; border-radius: 0; image-rendering: pixelated; }
.avatar-placeholder { display: grid; place-items: center; color: var(--muted); background: var(--panel); font-weight: 800; }
.account-menu-panel {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 10px);
    right: 0;
    min-width: 150px;
    padding: 8px;
    color: var(--text);
    background: #111613;
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
}
.account-menu-panel a, .account-menu-panel .link-button { display: block; width: 100%; padding: 9px 10px; color: var(--text); text-align: left; border-radius: 7px; }
.account-menu-panel a:hover, .account-menu-panel .link-button:hover { background: #1a211c; }
main { max-width: 1180px; margin: auto; padding: 54px 28px 90px; }
.hero { max-width: 850px; padding: 62px 0 80px; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 14px 0 22px; font-size: clamp(3rem, 8vw, 6.6rem); line-height: .94; letter-spacing: -.065em; }
.hero-copy { max-width: 680px; color: var(--muted); font-size: 1.2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.button { display: inline-block; border: 2px solid var(--line); border-radius: 0; padding: 13px 18px 16px; text-decoration: none; font-weight: 800; cursor: pointer; text-transform: uppercase; letter-spacing: .03em; }
.button.primary { color: #fff; background: #3c8527; border-color: #1f4f16; box-shadow: inset 0 -4px #286018; }
.button.primary:hover, .nav-cta:hover { background: #4a9b30; }
.button.primary:active, .nav-cta:active { transform: translateY(2px); box-shadow: inset 0 -2px #286018; }
.button.secondary { color: var(--text); background: transparent; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid article, .auth-card, .profile-card { background: #1b1d1b; border: 2px solid var(--line); border-radius: 0; padding: 28px; }
.feature-grid span { color: var(--accent); font-family: monospace; }
.feature-grid h2 { margin: 32px 0 10px; font-size: 1.35rem; }
.feature-grid p, .muted { color: var(--muted); line-height: 1.6; }
.auth-card { max-width: 520px; margin: 30px auto; }
.auth-card.wide { max-width: 620px; }
.auth-card h1, .profile-layout h1 { font-size: clamp(2.7rem, 6vw, 4.5rem); }
.stacked-form p { display: grid; gap: 8px; margin: 20px 0; }
.stacked-form label { font-weight: 700; }
.stacked-form input {
    width: 100%;
    color: var(--text);
    background: #090c0a;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 12px 13px;
    font: inherit;
}
.stacked-form .helptext, .stacked-form li { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.errorlist { color: #ff8c8c !important; padding-left: 20px; }
.profile-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.status-row { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.status { border-radius: 999px; padding: 5px 9px; font-size: .78rem; }
.status.verified { color: var(--accent); background: var(--accent-dark); }
.status.pending { color: #ffd97a; background: #302813; }
.identity-list { margin: 8px 0 0; }
.identity-list div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.identity-list dt { color: var(--muted); font-size: .82rem; }
.identity-list dd { margin: 6px 0 0; overflow-wrap: anywhere; font-weight: 750; }
.verification-box { margin: 22px 0; }
.verification-box code {
    display: block;
    margin: 12px 0;
    padding: 18px;
    color: var(--accent);
    background: #090c0a;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: clamp(1.05rem, 3vw, 1.45rem);
    font-weight: 800;
    letter-spacing: .03em;
}
.command-copy { position: relative; margin: 12px 0; }
.command-copy code { margin: 0; padding-right: 104px; }
.command-copy button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    padding: 8px 11px;
    color: var(--text);
    background: #1c231e;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}
.command-copy.large code { font-size: clamp(1rem, 3vw, 1.35rem); }
.verification-page h1 { font-size: clamp(2.7rem, 6vw, 4.5rem); }
.small { font-size: .85rem; }
.messages { margin-bottom: 20px; }
.message { color: #dfffd2; background: var(--accent-dark); border: 2px solid #315b2d; border-radius: 0; padding: 12px 14px; }
footer { max-width: 1180px; margin: auto; padding: 28px; color: var(--muted); border-top: 1px solid var(--line); }

.guide-page main, .trust-page main, .store-page main { padding-top: 32px; padding-bottom: 48px; }
.compact-guide { display: grid; gap: 18px; }
.compact-guide .content-page-header { margin-bottom: 0; }
.compact-guide-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.content-page-header { margin-bottom: 20px; }
.content-page-header h1 { margin: 0; font-size: clamp(2.6rem, 6vw, 4rem); }
.compact-settings, .compact-commands { padding-top: 14px; border-top: 2px solid var(--line); }
.compact-settings h2, .compact-commands h2 { margin: 0 0 10px; color: var(--muted); font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; }
.compact-settings > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.compact-settings article { padding: 13px 14px; background: #191c19; border: 1px solid var(--line); }
.compact-settings h3 { margin: 0 0 5px; font-size: .93rem; }
.compact-settings p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.42; }
.command-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.command-grid > div { display: grid; grid-template-columns: minmax(210px, .85fr) minmax(0, 1fr); gap: 12px; padding: 9px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.command-grid > div:nth-child(even) { border-right: 0; }
.command-grid code { color: #b9ffa4; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; font-weight: 750; overflow-wrap: anywhere; }
.command-grid span { color: var(--muted); font-size: .78rem; line-height: 1.4; }

.trust-shell { max-width: 980px; margin: 0 auto; }
.trust-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.trust-add-form { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 10px; align-items: end; padding: 16px; background: #191c19; border: 2px solid var(--line); }
.trust-add-form label { display: grid; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 750; }
.trust-add-form input, .trust-add-form select, .trust-player select { width: 100%; padding: 11px 12px; color: var(--text); background: #090c0a; border: 1px solid var(--line); border-radius: 0; font: inherit; }
.trust-add-form button, .trust-player button { padding: 11px 14px 14px; color: #fff; background: #3c8527; border: 2px solid #1f4f16; border-radius: 0; box-shadow: inset 0 -3px #286018; font: inherit; font-weight: 800; cursor: pointer; }
.trust-status { display: block; min-height: 22px; padding: 8px 0; color: var(--muted); font-size: .85rem; }
.trust-list { border-top: 1px solid var(--line); }
.trust-player { display: grid; grid-template-columns: 48px minmax(150px, 1fr) minmax(330px, auto); gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.trust-player img { width: 48px; height: 48px; image-rendering: pixelated; }
.trust-player-name { display: grid; gap: 4px; min-width: 0; }
.trust-player-name span { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; overflow-wrap: anywhere; }
.trust-player form { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; gap: 8px; }
.trust-player .trust-remove { color: #ffcaca; background: #291818; border-color: #743b3b; box-shadow: inset 0 -3px #411f1f; }
.trust-empty { padding: 34px; text-align: center; background: #191c19; border: 1px solid var(--line); }
.trust-empty h2 { margin: 0 0 8px; }
.trust-empty p { margin: 0; color: var(--muted); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.map-home { height: 100vh; overflow: hidden; background: var(--bg); }
.map-home .site-header {
    position: relative;
    z-index: 1100;
    max-width: none;
    height: 64px;
    padding: 12px 22px;
    background: rgba(10, 12, 11, .96);
    border-bottom: 1px solid var(--line);
}
.map-main { max-width: none; height: calc(100vh - 64px); margin: 0; padding: 0; }
.map-main > .messages { position: absolute; z-index: 1300; top: 78px; left: 50%; transform: translateX(-50%); }
.map-workspace { position: relative; height: 100%; min-height: 0; }
.map-stage { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; background: #101612; }
.map-canvas { width: 100%; height: 100%; background: #101612 url('/map/images/overworld_sky.png'); }
.map-toolbar { position: absolute; z-index: 700; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.map-selection-tools { position: absolute; z-index: 700; top: 14px; right: 354px; display: flex; gap: 8px; }
.map-tool, .map-search button, .map-search-results button, .chunk-actions button, .sale-controls button, .transfer-controls button {
    color: var(--text);
    background: rgba(13, 17, 14, .94);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 9px 11px;
    font: inherit;
    cursor: pointer;
}
.map-tool.active { color: #fff; background: #3c8527; border-color: #1f4f16; box-shadow: inset 0 -3px #286018; }
.map-coordinates {
    min-width: 132px;
    padding: 9px 11px;
    color: var(--text);
    background: rgba(13, 17, 14, .94);
    border: 1px solid var(--line);
    border-radius: 0;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
.map-load-status { position: absolute; z-index: 700; bottom: 14px; left: 14px; padding: 7px 10px; color: var(--muted); background: rgba(10, 12, 11, .88); border: 1px solid var(--line); border-radius: 0; font-size: .78rem; }
.map-load-status.ready { display: none; }
.map-sidebar { position: absolute; z-index: 800; top: 0; right: 0; width: 340px; height: 100%; min-width: 0; overflow-y: auto; padding: 18px; background: rgba(18, 22, 20, .72); border-left: 1px solid rgba(59, 61, 59, .55); backdrop-filter: blur(6px); }
.map-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.map-search input {
    min-width: 0;
    width: 100%;
    padding: 11px 12px;
    color: var(--text);
    background: #090c0a;
    border: 1px solid var(--line);
    border-radius: 0;
    font: inherit;
}
.map-search button { color: #fff; background: #3c8527; border: 2px solid #1f4f16; border-radius: 0; box-shadow: inset 0 -3px #286018; font-weight: 800; }
.map-search-results { margin-top: 8px; padding: 8px; background: #141614; border: 1px solid var(--line); border-radius: 0; }
.map-search-results button { display: flex; justify-content: space-between; width: 100%; border: 0; text-align: left; }
.map-search-results p { margin: 8px; color: var(--muted); font-size: .85rem; }
.map-options { margin-top: 24px; padding-bottom: 12px; }
.map-options h2 { margin: 0 0 8px; color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.map-options label { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.map-options input { width: 18px; height: 18px; accent-color: var(--accent); }
.theme-color-form { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; }
.theme-color-form input[type="color"] { width: 42px; height: 30px; padding: 2px; background: #090c0a; border: 1px solid var(--line); border-radius: 0; cursor: pointer; }
.theme-color-form button { padding: 5px 9px 7px; color: #fff; background: #3c8527; border: 1px solid #1f4f16; border-radius: 0; box-shadow: inset 0 -2px #286018; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.chunk-panel { padding-top: 20px; }
.chunk-transaction-section { margin-top: 10px; padding-top: 4px; }
.trade-message { display: block; color: var(--muted); line-height: 1.45; }
.selection-summary { display: grid; gap: 5px; padding-bottom: 8px; }
.selection-summary strong { font-size: 1.05rem; }
.selection-summary span { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.chunk-facts { margin: 8px 0 0; }
.chunk-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; }
.chunk-facts dt { color: var(--muted); }
.chunk-facts dd { margin: 0; text-align: right; font-weight: 750; }
.chunk-facts dd input[type="checkbox"] {
    appearance: none;
    position: relative;
    width: 40px;
    height: 22px;
    margin: 0;
    background: #252a26;
    border: 2px solid #5b625c;
    border-radius: 0;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
}
.chunk-facts dd input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    background: #b7bcb8;
    transition: transform .12s ease, background .12s ease;
}
.chunk-facts dd input[type="checkbox"]:checked { background: #3c8527; border-color: #62ad49; }
.chunk-facts dd input[type="checkbox"]:checked::after { transform: translateX(18px); background: #fff; }
.chunk-facts dd input[type="checkbox"]:indeterminate { background: #765f20; border-color: #ad8e36; }
.chunk-facts dd input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .55; }
.chunk-facts .state-on { color: var(--accent); }
.chunk-facts .state-off { color: #ff8c8c; }
.settings-status { display: block; min-height: 18px; margin-top: 8px; color: var(--muted); font-size: .78rem; }
.settings-status:empty { display: none; }
.chunk-actions { display: grid; gap: 9px; margin-top: 16px; }
.chunk-actions button:disabled { cursor: not-allowed; opacity: .45; }
.chunk-actions [data-trade-action="buy"]:not(:disabled) { color: #fff; background: #3c8527; border: 2px solid #1f4f16; box-shadow: inset 0 -4px #286018; font-weight: 800; }
.sale-controls { display: grid; gap: 9px; margin-top: 12px; padding-top: 4px; }
.sale-controls label { color: var(--muted); font-size: .82rem; }
.sale-controls > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.price-entry { display: flex; align-items: center; min-width: 0; background: #090c0a; border: 1px solid var(--line); }
.sale-controls input { width: 100%; min-width: 0; padding: 10px 11px; color: var(--text); background: transparent; border: 0; outline: 0; font: inherit; }
.sale-controls [data-sale-submit] { color: #fff; background: #3c8527; border: 2px solid #1f4f16; box-shadow: inset 0 -3px #286018; font-weight: 800; }
.sale-controls .secondary { color: #ffcaca; border-color: #743b3b; }
.sale-controls button:disabled { cursor: not-allowed; opacity: .45; }
.transfer-controls { display: grid; gap: 9px; margin-top: 12px; padding-top: 4px; }
.transfer-controls label { color: var(--muted); font-size: .82rem; }
.transfer-controls > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.transfer-controls input { min-width: 0; padding: 10px 11px; color: var(--text); background: #090c0a; border: 1px solid var(--line); font: inherit; }
.transfer-controls button { color: #fff; background: #3c8527; border: 2px solid #1f4f16; box-shadow: inset 0 -3px #286018; font-weight: 800; }
.transfer-controls button:disabled { cursor: not-allowed; opacity: .45; }
.claim-price-label { width: auto !important; height: auto !important; margin: 0 !important; background: transparent; border: 0; }
.claim-price-label span { display: inline-flex; align-items: center; gap: 2px; transform: translate(-50%, -50%); color: #000; font-size: 16px; font-weight: 950; line-height: 1; white-space: nowrap; }
.map-canvas.area-selecting, .map-canvas.area-selecting .leaflet-interactive { cursor: crosshair !important; }
.leaflet-container { font-family: inherit; }
.leaflet-tile { image-rendering: pixelated; image-rendering: crisp-edges; }
.leaflet-control-zoom a { color: var(--text); background: rgba(13, 17, 14, .94); border-color: var(--line); }
.leaflet-control-zoom a:hover { color: var(--accent); background: #151b17; }
.leaflet-control-attribution { display: none; }

@media (min-width: 761px) and (max-width: 1120px) {
    .site-header { flex-direction: column; align-items: stretch; gap: 14px; }
    .header-start { width: 100%; gap: 10px; }
    .site-header nav { width: 100%; justify-content: flex-end; gap: 18px; }
}

@media (max-width: 760px) {
    .site-header { width: 100%; padding: 14px 16px; flex-direction: column; align-items: stretch; gap: 12px; }
    .header-start { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; width: 100%; gap: 8px; }
    .server-address { grid-column: 1; grid-row: 1; justify-self: start; }
    .header-discord { grid-column: 2; grid-row: 1; }
    .header-seed { grid-column: 1 / -1; grid-row: 2; justify-content: center; min-width: 0; font-size: .88rem; }
    .header-map-link { grid-column: 1 / -1; justify-self: start; padding: 4px 0; }
    nav { width: 100%; gap: 7px 16px; flex-wrap: wrap; justify-content: flex-start; overflow: visible; }
    nav > * { flex: 0 0 auto; }
    nav > a { padding-top: 5px; padding-bottom: 5px; }
    main { padding: 32px 16px 60px; }
    .feature-grid, .profile-layout { grid-template-columns: 1fr; }
    .hero { padding-top: 28px; }
    h1 { font-size: clamp(2.65rem, 13vw, 3.5rem); }
    .map-home { height: auto; min-height: 100vh; overflow: auto; }
    .map-home .site-header { height: auto; min-height: 0; padding: 10px 12px; }
    .map-main { height: auto; }
    .map-workspace { height: auto; }
    .map-stage { height: 56svh; min-height: 360px; }
    .map-sidebar { position: relative; width: 100%; height: auto; overflow: visible; padding: 16px; background: #121614; border-top: 1px solid var(--line); border-left: 0; backdrop-filter: none; }
    .map-toolbar { top: 10px; right: 10px; left: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .map-coordinates { min-width: 0; padding: 8px; font-size: .76rem; text-align: center; }
    .map-selection-tools { top: 54px; right: 10px; }
    .map-tool { padding: 8px 10px; font-size: .82rem; }
    .compact-guide-header, .trust-header { align-items: flex-start; }
    .compact-settings > div, .command-grid { grid-template-columns: 1fr; }
    .command-grid > div { grid-template-columns: 1fr; gap: 5px; padding: 11px 4px; border-right: 0; }
    .command-grid code { font-size: .83rem; }
    .command-grid span { font-size: .8rem; }
    .trust-add-form { grid-template-columns: 1fr; }
    .trust-player { grid-template-columns: 48px minmax(0, 1fr); }
    .trust-player form { grid-column: 1 / -1; grid-template-columns: 1fr; }
    .store-card { padding: 17px; }
}

@media (max-width: 390px) {
    .server-address, .header-seed, .header-discord { padding: 7px 8px 9px; font-size: .84rem; }
    .server-address svg, .header-seed svg { width: 15px; height: 15px; }
    .compact-settings > div { grid-template-columns: 1fr; }
    .chunk-facts div { gap: 12px; }
    .map-search { grid-template-columns: 1fr; }
    .map-search button { width: 100%; }
}
.store-shell {
    width: min(560px, 100%);
    margin: 0 auto;
}

.store-header {
    margin-bottom: 16px;
}

.store-card {
    border: 2px solid var(--line, #2d3b27);
    background: var(--panel, #f4f1e8);
    padding: 24px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, .2);
}

.recharge-form {
    display: grid;
    gap: 22px;
}

.recharge-quantities {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: end;
}

.recharge-quantities label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 750;
}

.recharge-quantities input {
    width: 100%;
    padding: 13px 14px;
    color: var(--text);
    background: #090c0a;
    border: 1px solid var(--line);
    border-radius: 0;
    font: inherit;
    font-size: 1.2rem;
    font-weight: 750;
}

.recharge-equals {
    padding-bottom: 13px;
    color: var(--muted);
    font-size: 1.25rem;
    font-weight: 800;
}

.recharge-checkout {
    display: grid;
    grid-template-columns: auto minmax(150px, 1fr);
    gap: 18px;
    align-items: center;
}

.recharge-price {
    margin: 0;
    min-width: 84px;
    font-size: 1.6rem;
    font-weight: 800;
    text-align: right;
}

.recharge-form button {
    padding: 13px 18px 16px;
    color: #fff;
    background: #3c8527;
    border: 2px solid #1f4f16;
    border-radius: 0;
    box-shadow: inset 0 -4px #286018;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.recharge-form button:hover {
    background: #4a9b30;
}

.recharge-form button:active {
    transform: translateY(2px);
    box-shadow: inset 0 -2px #286018;
}

@media (max-width: 650px) {
    .recharge-quantities { grid-template-columns: 1fr; }
    .recharge-equals { display: none; }
    .recharge-checkout { grid-template-columns: 1fr; }
    .recharge-price { text-align: left; }
}
