@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

:root {
  color-scheme: dark;
  --bg: #0f0c15;
  --surface: #14101d;
  --surface-2: #1a1425;
  --surface-3: #21192e;
  --selected: #31234a;
  --selected-2: #251a38;
  --text: #f4f0f8;
  --muted: #b8afc6;
  --muted-2: #81778f;
  --line: #30263d;
  --line-strong: #4a3b60;
  --accent: #b388ff;
  --accent-soft: #8666d7;
  --danger: #ff7777;
  --success: #75e6ad;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #160d20;
}

.page-shell,
.site-header {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  background-color: #d8d0df;
  background-image: url("/assets/brand-icon.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav .nav-account {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: 86px;
  align-items: center;
  padding-block: 88px 92px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.05;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 790;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 760;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 12px;
  font-size: 23px;
  font-weight: 730;
  letter-spacing: -0.025em;
}

.hero-lede {
  max-width: 690px;
  margin: 0;
  color: #c3bacd;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 100ms ease, border-color 100ms ease, color 100ms ease;
}

.button-primary {
  background: var(--accent);
  color: #160d20;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #c7aaff;
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--surface-3);
  border-color: #675184;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mod-panel {
  overflow: hidden;
  border-top: 5px solid var(--accent);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: #100c17;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.2);
}

.mod-panel-title {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #2c213c;
  background: #20182b;
  color: #f2f4f5;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mod-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-left: 6px solid transparent;
  border-bottom: 6px solid #100c17;
  background: #18121f;
  padding: 0 14px 0 11px;
  color: #e4deea;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.2;
}

.mod-row.is-selected {
  border-left-color: var(--accent);
  background: var(--selected);
  color: #fffaff;
}

.mod-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--accent);
}

.mod-panel-foot {
  padding: 16px 14px 18px;
  color: #82768f;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  text-align: center;
}

.hero-mod-panel {
  max-width: 470px;
  justify-self: end;
  width: 100%;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.quick-strip div {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
}

.quick-strip strong {
  color: var(--text);
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 18px;
}

.quick-strip span {
  color: var(--muted-2);
  font-size: 12px;
}

.section {
  padding-block: 108px;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 58px;
}

.section-heading-row {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 80px;
  align-items: end;
}

.section-side-copy {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 17px;
}

.feature-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.feature-menu {
  box-shadow: none;
}

.feature-menu .mod-row {
  min-height: 45px;
  font-size: 13px;
}

.screenshot-section {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 62px;
  align-items: center;
}

.screenshot-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.screenshot-copy p:last-child {
  margin-bottom: 0;
}

.product-shot {
  margin: 0;
  border-top: 5px solid var(--accent);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: #0a0710;
  padding: 10px;
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.product-shot figcaption {
  padding: 11px 4px 1px;
  color: var(--muted-2);
  font-size: 12px;
}

.small-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
  padding-block: 0;
}

.small-feature-grid article {
  min-height: 300px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px;
}

.small-feature-grid article p:not(.eyebrow) {
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.download-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 68px;
  align-items: end;
  padding-block: 104px;
  border-top: 1px solid var(--line);
}

.download-copy p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
}

.download-box {
  display: grid;
  gap: 18px;
}

.download-card {
  border: 1px solid #342347;
  background: linear-gradient(180deg, #171020 0%, #100b18 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  padding: 16px;
}

.download-file {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.download-file-meta {
  min-width: 0;
}

.download-file strong,
.download-meta-line {
  display: block;
}

.download-file strong {
  overflow: hidden;
  color: #f7f3fa;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 760;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-meta-line {
  margin-top: 7px;
  color: #a28eb7;
  font-size: 14px;
}

.file-icon {
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  display: grid !important;
  place-items: center;
  border: 1px solid #624883;
  background: rgba(34, 23, 47, 0.9);
  color: var(--accent) !important;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 16px !important;
  font-weight: 800;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: #d1c9d8;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.footer-muted {
  color: var(--muted-2);
  text-align: right;
}

.account-main {
  padding-block: 82px 110px;
}

.account-intro {
  max-width: 860px;
  margin-bottom: 50px;
}

.account-intro h1 {
  margin-bottom: 24px;
  font-size: clamp(46px, 6vw, 76px);
}

.account-intro > p:last-child {
  max-width: 800px;
  margin: 0;
  color: #bbb1c6;
  font-size: 18px;
}

.status-banner {
  margin-bottom: 18px;
  border-left: 6px solid var(--accent);
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 14px 16px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 14px;
}

.status-banner.is-error {
  border-left-color: var(--danger);
  color: #ffb0b0;
}

.status-banner.is-success {
  border-left-color: var(--success);
  color: var(--success);
}

.account-panel {
  overflow: hidden;
  border-top: 5px solid var(--accent);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: var(--surface);
}

.account-panel-title {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background: #20182b;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: 0.03em;
}

.account-panel-body {
  padding: clamp(24px, 4vw, 42px);
}

.account-panel + .account-panel,
.account-panel + .account-footnote {
  margin-top: 20px;
}

.account-panel-compact {
  min-height: 160px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 44px);
}

.state-badge {
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  padding: 6px 9px;
  background: #1a1424;
  color: var(--muted);
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.09em;
}

.state-badge-live {
  border-color: #2d7455;
  color: var(--success);
}

.link-steps {
  display: grid;
  gap: 13px;
  max-width: 760px;
  margin: 32px 0;
  padding-left: 24px;
  color: #c2bacb;
}

code,
.mono-detail,
.code-input {
  font-family: Consolas, "Liberation Mono", monospace;
}

code {
  border: 1px solid var(--line);
  background: #0e0a14;
  padding: 2px 5px;
  color: #e8e0ed;
  font-size: 0.9em;
}

.form-stack {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.form-stack label {
  color: #e4ddea;
  font-size: 13px;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.text-input {
  width: 100%;
  min-height: 47px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  outline: none;
  background: #0f0b15;
  color: var(--text);
  padding: 10px 12px;
}

.text-input:focus {
  border-color: var(--accent);
  box-shadow: inset 5px 0 0 var(--accent);
}

.code-input {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-message {
  min-height: 22px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-message.is-error {
  color: var(--danger);
}

.form-message.is-success {
  color: var(--success);
}

.mono-detail {
  margin: 8px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  word-break: break-all;
}

.account-rule {
  height: 1px;
  margin: 34px 0;
  background: var(--line);
}

.name-editor-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 64px;
}

.name-editor-grid h3 {
  margin-bottom: 12px;
}

.field-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cooldown-note {
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.55;
}

.cooldown-note strong {
  color: var(--text);
}

.preview-box {
  display: grid;
  gap: 12px;
  border-left: 6px solid var(--accent);
  background: var(--selected-2);
  padding: 15px 16px 16px;
}

.preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-label {
  flex: 0 0 auto;
  color: #e4d5ff;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.preview-hint {
  color: rgba(235, 226, 248, 0.78);
  font-size: 12px;
}

.preview-stage {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  border: 1px solid rgba(215, 190, 255, 0.18);
  background: rgba(18, 10, 28, 0.32);
}

.minecraft-preview {
  min-width: 0;
  width: 100%;
  overflow-wrap: anywhere;
  color: #fff;
  font-family: "Press Start 2P", Consolas, "Liberation Mono", monospace;
  font-size: clamp(14px, 1.9vw, 20px);
  line-height: 1.45;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.account-footnote {
  max-width: 900px;
  margin-top: 26px;
  color: var(--muted-2);
  font-size: 13px;
}

.account-footnote p {
  margin: 0;
}

.loading-line {
  width: 52%;
  height: 13px;
  margin-top: 12px;
  background: #322742;
  animation: pulse 1.2s ease-in-out infinite alternate;
}

.loading-line-short {
  width: 31%;
  margin-top: 18px;
}

@keyframes pulse {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

@media (max-width: 960px) {
  .page-shell,
  .site-header {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    height: 70px;
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav a:not(.nav-account):not(.is-active) {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 56px;
    padding-block: 72px 84px;
  }

  .hero-mod-panel {
    max-width: 620px;
    justify-self: start;
  }

  .feature-menu-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-row,
  .screenshot-section,
  .download-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .small-feature-grid {
    grid-template-columns: 1fr;
  }

  .small-feature-grid article {
    min-height: auto;
  }

  .section {
    padding-block: 82px;
  }

  .name-editor-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .download-section {
    align-items: start;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .footer-muted {
    text-align: left;
  }
}

@media (max-width: 650px) {
  h1 {
    font-size: 52px;
  }

  .brand span:last-child {
    display: none;
  }

  .quick-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .form-actions .button {
    width: 100%;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .download-box .button {
    width: 100%;
  }

  .download-file {
    align-items: flex-start;
    gap: 16px;
  }

  .download-file strong {
    white-space: normal;
  }

  .account-main {
    padding-block: 58px 84px;
  }

  .panel-heading {
    flex-direction: column-reverse;
  }

  .preview-meta {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-stage {
    width: 100%;
    justify-content: flex-start;
  }

  .minecraft-preview {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.download-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 9px;
}

.download-actions .button {
  width: 100%;
}

.feature-menu .mod-row span:first-child {
  min-width: 0;
}

@media (max-width: 760px) {
  .download-actions {
    width: 100%;
  }
}
