:root {
  color-scheme: dark;
  --bg: #050609;
  --surface: #111d39;
  --raised: #192b50;
  --text: #f4f7ff;
  --muted: #abbcdb;
  --blue: #2554dc;
  --blue-hover: #2a5be8;
  --accent: #80aeff;
  --page: 1440px;
  --round: 23px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100svh;
  color: var(--text);
  background:
    radial-gradient(ellipse 520px 440px at 91% 15%, #1549bb20, transparent 75%),
    radial-gradient(ellipse 540px 510px at 6% 55%, #184ed022, transparent 76%),
    var(--bg);
  font: 16px/1.6 Manrope, system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid #b8d1ff;
  outline-offset: 4px;
}
h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -.045em; }
h2 { font-size: clamp(27px, 4vw, 42px); }
h3 { font-size: 24px; }
img { display: block; max-width: 100%; }
small { color: var(--muted); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
.wrap { width: min(calc(100% - clamp(36px, 4vw, 76px)), var(--page)); margin-inline: auto; }
.section { padding-block: 35px; scroll-margin-top: 22px; }
.section > h2 { margin-bottom: 22px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; z-index: 3; top: 12px; left: 12px; padding: 8px 14px; color: #fff; background: var(--blue); border-radius: 12px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 1; padding-top: 21px; }
.navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 18px;
  border-radius: 24px;
  background: #11182beb;
  box-shadow: 0 16px 40px #000a;
}
.navigation > .button { justify-self: end; white-space: nowrap; }
.account-menu { position: relative; grid-column: -2 / -1; grid-row: 1; justify-self: end; background: transparent; }
.account-menu > .account-trigger {
  display: flex; align-items: center; gap: 7px; padding: 5px 8px 5px 5px;
  border: 1px solid #ffffff24; border-radius: 999px; background: #ffffff0b;
}
.account-menu > .account-trigger::after { content: none; }
.account-menu > .account-trigger:hover, .account-menu[open] > .account-trigger { background: #ffffff1a; }
.account-trigger > svg { width: 15px; height: 15px; color: var(--muted); }
.account-menu[open] > .account-trigger > svg { transform: rotate(180deg); }
.account-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 2;
  width: min(292px, calc(100vw - 56px)); padding: 8px;
  border: 1px solid #ffffff20; border-radius: 18px; background: #101a2d;
  box-shadow: 0 15px 40px #000b; transform-origin: top right;
}
.account-profile { display: flex; align-items: center; gap: 11px; padding: 9px 10px 12px; border-bottom: 1px solid #ffffff17; }
.account-profile strong, .account-profile small { display: block; overflow-wrap: anywhere; }
.account-profile small { color: #a4acbb; font-size: 12px; line-height: 1.4; }
.account-options { display: grid; gap: 2px; padding-top: 6px; }
.account-options > :is(a, button) {
  display: flex; align-items: center; gap: 10px; min-height: 41px; padding: 7px 10px;
  border: 0; border-radius: 10px; color: var(--text); background: transparent;
  text-align: left; font-size: 13px; font-weight: 750;
}
.account-options > :is(a, button):hover { background: #ffffff12; }
.account-options > .account-logout { color: #ffb5bd; }
.account-options svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.account-settings {
  width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: clamp(16px, 4vw, 24px); border: 1px solid #ffffff24;
  border-radius: 20px; color: var(--text); background: #101a2d; box-shadow: 0 18px 70px #000a;
}
.account-settings::backdrop { background: #050609b8; }
.account-settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.account-settings-heading h2 { font-size: clamp(22px, 5vw, 30px); }
.account-settings-heading .button { min-height: 38px; min-width: 38px; padding: 0; font-size: 24px; }
.account-settings-list { display: grid; gap: 8px; }
.account-settings-list > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 11px; border-radius: 10px; background: #ffffff08; }
.account-settings-list dt { color: var(--muted); font-size: 13px; }
.account-settings-list dd { font-weight: 800; overflow-wrap: anywhere; }
.account-provider { display: inline-flex; align-items: center; gap: 7px; }
.brand { width: 148px; display: block; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 38px); font-size: 14px; font-weight: 750; color: var(--muted); }
.nav-links a:hover, .text-link:hover { color: white; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 13px;
  min-height: 45px;
  padding: 10px 16px;
  color: #fff;
  background: var(--raised);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.button.primary { background: var(--blue); }
.button.primary:hover:not(:disabled) { background: var(--blue-hover); }
.button.quiet:hover:not(:disabled) { background: #243a64; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  align-items: center;
  min-height: clamp(633px, calc(51vw + 55px), 795px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse farthest-corner at center,
      rgb(0 0 0 / 0%) 28%, rgb(0 0 0 / 4%) 42%, rgb(0 0 0 / 16%) 56%,
      rgb(0 0 0 / 38%) 70%, rgb(0 0 0 / 62%) 82%, rgb(0 0 0 / 81%) 94%, rgb(0 0 0 / 90%) 100%),
    url("minecraft-bedrock-1920x1080.png") center 48% / cover no-repeat;
}
.hero-layout {
  width: min(100%, 1660px);
  margin-inline: auto;
  padding: 149px clamp(32px, 8vw, 140px) 60px;
}
.hero-content { max-width: 810px; }
.hero-content :is(h1, .hero-phrase, .hero-description, .hero-features) { text-shadow: 0 2px 6px #050609d9, 0 0 18px #050609a8; }
.hero-plan-badge { margin-bottom: 12px; }
.caption { color: var(--accent); font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.hero h1, .hero-phrase { font-size: clamp(39px, 5.3vw, 82px); font-weight: 800; line-height: 1.03; letter-spacing: -.062em; }
.hero-phrase { color: var(--accent); margin-top: 5px; min-height: 1.04em; }
.hero-description { max-width: 46ch; margin-top: 28px; color: #d3def6; font-size: clamp(15px, 1.65vw, 18px); }
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 17px;
  padding: 0;
  list-style: none;
  color: #e0eaff;
  font-size: 14px;
  font-weight: 750;
}
.hero-features li { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.hero-features span { color: #9cc5ff; font-weight: 800; }
.hero-action { min-height: 52px; margin-top: 27px; padding-inline: 17px 22px; }
.play-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ffffff29; }
.play-icon::after { content: ""; width: 9px; height: 10px; margin-left: 2px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }

.hosting-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offer {
  position: relative;
  clip-path: inset(0 round var(--round));
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: 300px;
  background: #090d18;
}
.offer-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  mask-image: linear-gradient(to bottom, #000 0%, #000d 25%, #0006 48%, #0002 65%, transparent 91%);
}
.offer-art img {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  max-width: none;
  height: calc(100% + 4px);
  object-fit: cover;
  object-position: center 36%;
  filter: saturate(.58);
  transform: scale(1.01);
}
.offer-voucher .offer-art img { object-position: 53% 39%; }
.offer-paid .offer-art img { object-position: 64% 37%; }
.offer:hover .offer-art img, .offer:focus-within .offer-art img { filter: saturate(1); }
.offer-body { width: 100%; padding: clamp(18px, 2.5vw, 26px); }
.offer-body h3 { font-size: clamp(23px, 2.5vw, 32px); }
.offer-body > p:not(.feedback) { color: #d0dcf4; margin-top: 6px; font-size: 14px; min-height: 23px; }
.offer-body > small { display: block; margin-top: 7px; }
.offer-body > .button, .voucher-form, .availability-label { margin-top: 16px; }
.availability-label { display: inline-flex; align-items: center; min-height: 45px; color: #c4d6ff; border-radius: 13px; padding-inline: 14px; background: #22345bd9; font-size: 13px; font-weight: 800; }
.plan-badge { display: inline-flex; width: fit-content; border-radius: 8px; padding: 4px 8px; color: #dbe8ff; background: #22345b; font-size: 12px; font-weight: 800; }
.offer-expiry { display: grid; gap: 6px; }
.server-expiry { margin-block: 10px 12px; border-radius: 13px; padding: 10px 12px; background: #07132bed; }
.server-expiry p { margin: 0; color: #e3edff; font-size: 13px; }
.server-time-units { display: flex; flex-wrap: wrap; gap: 2px 12px; color: #dbe8ff; font-size: 12px; }
.server-time-units strong { color: #fff; font-size: 21px; font-variant-numeric: tabular-nums; }
.voucher-form { display: flex; flex-wrap: wrap; gap: 8px; }
.voucher-form input { flex: 1 1 135px; width: 100%; min-width: 0; }
input:not([type="checkbox"]):not([type="radio"]), select {
  color: var(--text);
  background: #0d1832;
  border: 0;
  border-radius: 12px;
  min-height: 45px;
  padding: 10px 13px;
}
input::placeholder { color: #aebfde; }
.feedback { font-size: 14px; margin-top: 7px; color: var(--muted); overflow-wrap: anywhere; }
.feedback:empty { display: none; }
.feedback.error, .auth-error { color: #ffc5c6; }
.feedback.success { color: #a7eac5; }

.software-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.software-list li { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 16px; background: var(--surface); }
.software-list img { border-radius: 7px; object-fit: contain; }
.software-list small { font-size: 13px; }
.vanilla-block {
  display: block;
  width: 32px;
  height: 32px;
  clip-path: polygon(50% 0, 100% 25%, 100% 77%, 50% 100%, 0 77%, 0 25%);
  background: linear-gradient(26deg, #664c37 50%, transparent 51%), linear-gradient(-26deg, #a07650 50%, #90bc58 50%);
}
.discord-support {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 235px;
  padding: clamp(24px, 4.2vw, 58px);
  border: 1px solid #aab0ff40;
  border-radius: var(--round);
  background: #191746;
}
.discord-support::before {
  content: "";
  position: absolute;
  inset: 0 0 0 44%;
  z-index: -1;
  background: url("discord-support-banner.webp") center / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, black 23%);
}
.discord-support-content { max-width: 48%; }
.discord-support p { margin-top: 8px; color: #e0e3ff; }
.button.discord-join { margin-top: 18px; background: #5865f2; }
.button.discord-join:hover { background: #4752c4; }
.button.discord-join:focus-visible { outline: 2px solid #e0e3ff; outline-offset: 4px; }
.faq { display: grid; grid-template-columns: .82fr 1.18fr; gap: 20px; }
.questions { display: grid; gap: 8px; }
details { border-radius: 14px; background: var(--surface); }
summary { padding: 12px 16px; list-style: none; cursor: pointer; font-weight: 750; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); }
details[open] summary::after { content: "−"; }
details > p { color: var(--muted); padding: 0 16px 14px; }
.footer-inner { display: flex; align-items: center; gap: 20px; justify-content: space-between; padding-block: 24px 34px; }
.footer-inner .brand { width: 115px; }

.account-area { display: grid; gap: 12px; }
.server-feature { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; padding: clamp(18px, 3vw, 28px); background: var(--surface); border-radius: var(--round); }
.server-feature {
  background: linear-gradient(105deg, #0a1733ed, #0a1733c4 58%, #0a173399), url("server-cherry-grove.jpg") center 55% / cover no-repeat, var(--surface);
}
.server-main { min-width: 0; }
.server-controls {
  flex: 1 1 320px;
  max-width: 420px;
  min-width: 0;
  padding: clamp(12px, 2.5vw, 20px);
  border-radius: 16px;
  background: #0a173380;
}
.server-controls-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.server-actions p { color: var(--muted); overflow-wrap: anywhere; }
.server-address, .power-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.server-address code, .review-list dd { overflow-wrap: anywhere; }
.server-actions > .button { margin-top: 12px; }
.server-specifications { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 12px; font-size: 14px; }
.account-avatar { flex: 0 0 auto; object-fit: cover; border-radius: 50%; background: var(--raised); }
.provider-icon { width: 30px; height: 30px; display: grid; place-items: center; background: var(--raised); border-radius: 9px; }
.provider-icon img { width: 18px; height: 18px; object-fit: contain; }
.provider-icon.google-icon { background: #fff; }
.server-specifications dt, .review-list dt { color: var(--muted); font-size: 13px; }
.account-area > .button { justify-self: start; }

#configurator {
  width: min(670px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  border: 0;
  border-radius: var(--round);
  background: var(--surface);
  color: var(--text);
  padding: 0;
  box-shadow: 0 18px 75px #0008;
}
#configurator::backdrop { background: #060c1bd1; backdrop-filter: blur(5px); }
.wizard-header, .wizard-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 22px; }
.wizard-header h2 { font-size: clamp(24px, 4vw, 33px); }
.wizard-header .caption { margin-bottom: 5px; }
.setup-expiry-badge { margin-top: 6px; }
.close-button { width: 42px; min-height: 42px; padding: 0; font-size: 23px; flex-shrink: 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0 22px; }
.steps li { padding: 7px 3px; text-align: center; color: var(--muted); border-radius: 10px; background: #0d1832; font-size: 12px; font-weight: 750; }
.steps li[aria-current] { background: var(--blue); color: #fff; }
.steps li.complete { background: var(--raised); color: #d9e6ff; }
.wizard-content { padding: 19px 22px 8px; }
.wizard-content h3 { outline: none; font-size: 23px; }
.step-intro, .field-hint { color: var(--muted); font-size: 14px; margin: 8px 0 14px; }
.engines { border: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.engine { display: flex; align-items: center; gap: 9px; position: relative; background: #0d1832; border-radius: 13px; padding: 10px; cursor: pointer; }
.engine input { position: absolute; opacity: 0; }
.engine:has(input:checked) { background: #244b9e; }
.engine:has(input:focus-visible) { outline: 2px solid #b8d1ff; outline-offset: 2px; }
.engine small { display: block; color: #d0dcf4; font-size: 12px; line-height: 1.4; }
.engine-icon { display: grid; place-items: center; width: 31px; flex: 0 0 31px; }
.engine-icon img { width: 31px; height: 31px; object-fit: contain; border-radius: 6px; }
.wizard-content select, .wizard-content input[type="text"] { display: block; width: 100%; margin-top: 4px; }
.version-field { margin-top: 10px; }
.address-preview, .review-list { border-radius: 12px; background: #0d1832; padding: 11px 13px; }
.address-preview span, .address-preview code { display: block; }
.address-preview code { color: #aacaff; overflow-wrap: anywhere; }
.review-list > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); gap: 8px; padding-block: 3px; }
.agreement { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.agreement a { color: #c9daff; text-decoration: underline; }
.agreement input { accent-color: var(--blue); }
.wizard-footer .primary { margin-left: auto; }
#retryAddress, #retryVersion { margin-top: 8px; }

.auth-page { display: grid; place-items: center; padding: 22px; }
.auth-card { width: min(100%, 475px); padding: clamp(21px, 6vw, 40px); background: var(--surface); border-radius: var(--round); }
.auth-card .brand { margin-bottom: 29px; }
.auth-card h1 { font-size: clamp(28px, 5vw, 38px); }
.auth-card h1 + p { margin-top: 11px; color: var(--muted); }
.auth-actions, .auth-card form { display: grid; gap: 11px; margin-top: 21px; }
.auth-provider { position: relative; min-height: 50px; padding-inline: 46px; }
.auth-provider img { position: absolute; left: 14px; width: 20px; height: 20px; object-fit: contain; }
.auth-provider.google { background: #f4f7ff; color: #101b32; }
.auth-provider.google:hover { background: #dbe7ff; }
.auth-error { padding: 10px 12px; border-radius: 12px; background: #47243e; margin-top: 15px; }
.text-link { display: inline-block; color: #a8c5ff; font-size: 14px; margin-top: 18px; }
.password-field { display: flex; gap: 7px; }
.password-field input { flex: 1; min-width: 0; }
.auth-card label { display: block; font-size: 14px; font-weight: 800; margin-bottom: 5px; }
.auth-card .field-hint { margin: 4px 0 0; }
.panel-user { display: grid; gap: 2px; margin-top: 12px; }
.panel-user strong { overflow-wrap: anywhere; }

@media (max-width: 970px) {
  .offer { min-height: 310px; }
  .voucher-form input { flex-basis: 100%; }
}
@media (max-width: 840px) {
  .hero { min-height: 0; }
  .hero-layout { padding-block: 155px 60px; }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 32px); }
  .hero::before { background-position: center, 60% center; }
  .hosting-grid { grid-template-columns: 1fr; }
  .offer { min-height: 255px; }
  .voucher-form input { flex-basis: 145px; }
  .software-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .discord-support { padding-top: 150px; }
  .discord-support::before {
    inset: 0 0 auto;
    height: 136px;
    mask-image: linear-gradient(180deg, black 65%, transparent);
  }
  .discord-support-content { max-width: 100%; }
  .faq { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 580px) {
  .site-header { padding-top: 12px; }
  .navigation { grid-template-columns: 1fr auto; row-gap: 8px; padding: 9px 12px; }
  .brand { width: 128px; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; padding-bottom: 4px; }
  .hero-layout { padding-top: 164px; }
}
@media (max-width: 465px) {
  .hero h1, .hero-phrase { font-size: clamp(31px, 9.2vw, 44px); }
  .hero-layout { padding-inline: 26px; }
  .software-list, .engines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wizard-header, .wizard-footer, .wizard-content { padding-inline: 14px; }
  .steps { padding-inline: 14px; }
  .engine { padding: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-content, .auth-card { animation: arrive .55s cubic-bezier(.2,.7,.3,1) both; }
  .hero::before { animation: resolve .7s ease-out both; }
  .button { transition: background .18s ease; }
  .offer-art img { transition: filter .35s ease, transform .4s ease; }
  .offer:hover .offer-art img, .offer:focus-within .offer-art img { transform: scale(1.055); }
  #configurator[open] { animation: arrive .22s ease-out; }
  .account-menu[open] > .account-dropdown { animation: account-open .19s ease-out both; }
  .account-trigger > svg { transition: transform .18s ease; }
  .account-settings[open] { animation: arrive .2s ease-out both; }
  @keyframes account-open { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes resolve { from { opacity: .55; transform: scale(1.02); } to { opacity: 1; transform: scale(1); } }
}
