:root {
  color-scheme: dark;
  --page: #110e18;
  --deep: #0d0a13;
  --surface: #1b1625;
  --surface-raised: #221a31;
  --line: #32283e;
  --text: #faf6ff;
  --muted: #c2b7ce;
  --soft: #a99bb7;
  --accent: #c49aff;
  --accent-strong: #a56bff;
  --ink: #221339;
  --shell: 1192px;
  font-family: system-ui, "Segoe UI", sans-serif;
  line-height: 1.5;
  font-weight: 400;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 290px; background: var(--page); color: var(--text); }
img { display: block; max-width: 100%; }
p { margin: 0; color: var(--muted); }
h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button { font: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 28px; }

.shell { width: min(calc(100% - 88px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 12px; left: 12px; padding: 10px 18px; background: var(--text); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.header { border-bottom: 1px solid #ffffff18; background: var(--deep); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 28px; }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 1.36rem; font-weight: 850; letter-spacing: -.06em; text-decoration: none; }
.brand-end { color: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 38px); }
.nav a { text-decoration: none; color: var(--muted); font-size: .94rem; font-weight: 600; white-space: nowrap; }
.nav a:hover, .footer a:hover { color: var(--accent); }
.button { display: inline-flex; min-height: 49px; justify-content: center; align-items: center; gap: 11px; padding: .68rem 1.2rem; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-weight: 750; line-height: 1.3; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s, transform .18s; }
.button:active { transform: translateY(1px); }
.button-outline { min-height: 40px; color: var(--text); border-color: #493760; background: #221831; font-size: .89rem; }
.button-outline:hover { background: #392751; }
.button-primary { color: var(--ink); background: var(--accent); box-shadow: 0 5px 21px #9442ff33; }
.button-primary:hover { background: #d6b4ff; }
.address-button { background: #1a1327c9; color: var(--text); border-color: #8568ae8f; font-size: .88rem; font-family: ui-monospace, "Liberation Mono", monospace; font-variant-numeric: tabular-nums; }
.address-button:hover { border-color: var(--accent); background: #322145; }
.copy-icon { display: inline-block; position: relative; width: 17px; height: 17px; flex: 0 0 17px; }
.copy-icon::before, .copy-icon::after { content: ""; position: absolute; width: 10px; height: 11px; border: 1.5px solid currentColor; border-radius: 2px; }
.copy-icon::before { left: 2px; top: 1px; border-right-style: dashed; opacity: .65; }
.copy-icon::after { top: 5px; left: 6px; background: inherit; }
.notice:empty { display: none; }
.notice { position: fixed; z-index: 5; inset: auto 18px 22px auto; max-width: min(340px, calc(100% - 36px)); border: 1px solid #776095; border-radius: 8px; background: #2b1f3f; color: var(--text); padding: 12px 16px; box-shadow: 0 10px 30px #0008; }

.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: clamp(510px, 46vw, 680px); background: #181126; border-bottom: 1px solid #362644; }
.hero-media, .hero::after { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.hero::after { content: ""; z-index: -1; background:
  linear-gradient(90deg, #100c19 1%, #100c19ed 24%, #130d1f75 56%, #0f0b170c 87%),
  linear-gradient(0deg, #110e18 0%, #110e1800 33%);
}
.hero-inner { padding-block: 72px 84px; }
.hero-copy { max-width: 710px; }
.game-version { display: inline-flex; align-items: center; gap: 10px; padding: 6px 11px; border: 1px solid #614782; border-radius: 5px; color: #eadbff; background: #211633d9; font-size: .83rem; font-weight: 650; }
.game-version span:first-child { width: 7px; height: 7px; background: var(--accent); box-shadow: 0 0 12px #bc8cff80; }
.version-divider { width: 1px; height: 12px; background: #806ca0; }
.hero h1 { margin-block: 22px 17px; font-size: clamp(2.9rem, 6vw, 5.55rem); line-height: .99; letter-spacing: -.078em; font-weight: 880; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { max-width: 448px; font-size: clamp(1rem, 1.55vw, 1.16rem); line-height: 1.65; color: #e3d7ee; }
.hero-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 11px; margin-top: 28px; }

.section { padding-top: 75px; }
.section-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 25px; }
.section h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); letter-spacing: -.06em; font-weight: 820; }
.section-intro p { max-width: 455px; font-size: 1rem; }
code { font-family: ui-monospace, "Liberation Mono", monospace; color: #e1c7ff; font-size: .91em; }
.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mode { --mode-accent: #a2e6c6; --mode-border: #3e7462; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.anarchy { --mode-accent: #ffb381; --mode-border: #8b563b; }
.minigames { --mode-accent: #d9bcff; --mode-border: #7351a2; }
.mode-media { aspect-ratio: 1.78; background: var(--surface-raised); overflow: hidden; border-bottom: 2px solid var(--mode-border); }
.mode-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.anarchy img { object-position: center 58%; }
.minigames img { object-position: center 51%; }
.mode-details { padding: 21px 21px 23px; }
.mode h3 { color: var(--mode-accent); font-size: 1.45rem; letter-spacing: -.045em; }
.mode p { margin-block: 10px 16px; min-height: 3em; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.tags li { font-size: .82rem; font-weight: 620; border: 1px solid var(--mode-border); color: var(--mode-accent); padding: 3px 8px; border-radius: 4px; }

.maps { padding-top: 62px; }
.map-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.map-list { background: #1a1423; border: 1px solid var(--line); border-radius: 10px; padding: 21px 24px 11px; }
.map-list h3 { display: flex; align-items: center; gap: 12px; font-size: 1.17rem; letter-spacing: -.025em; }
.map-symbol { width: 22px; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.blocks-symbol { height: 18px; background: linear-gradient(var(--accent) 0 0) 1px 11px / 6px 6px, linear-gradient(var(--accent) 0 0) 8px 7px / 6px 6px, linear-gradient(var(--accent) 0 0) 15px 3px / 6px 6px; background-repeat: no-repeat; }
.map-list ul { list-style: none; padding: 0; margin: 13px 0 0; }
.map-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; color: var(--muted); padding: 10px 0; border-top: 1px solid #ffffff15; }
.map-list li a { color: var(--accent); font-size: .88rem; }
.map-list li a:hover, .text-link:hover { color: #e6cffd; }

.join-panel { display: grid; align-items: center; grid-template-columns: 1.45fr 1fr; gap: 24px 46px; padding: clamp(22px, 4.4vw, 52px); border: 1px solid #543a73; border-radius: 12px; background:
  radial-gradient(ellipse at 87% 20%, #452467 0, #241935 53%, #191323 100%); }
.join-steps ol { padding-left: 24px; margin: 16px 0; color: var(--muted); }
.join-steps li { padding: 3px 0 3px 4px; }
.join-steps strong { color: var(--text); }
.join-steps li::marker { color: var(--accent); font-weight: 740; }
.text-link { color: var(--accent); font-weight: 650; }
.join-address { background: #130d1ddd; border: 1px solid #755697; border-radius: 9px; padding: 23px; justify-self: stretch; }
.join-address p { color: var(--muted); font-size: .92rem; }
.ip { color: var(--text); font-family: ui-monospace, "Liberation Mono", monospace; font-size: clamp(1rem, 2.1vw, 1.48rem); font-weight: 730; letter-spacing: -.045em; margin-block: 3px 13px; overflow-wrap: anywhere; user-select: all; }
.join-address button { min-height: 43px; font-size: .9rem; }
.game-help { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: center; margin-top: 18px; color: var(--muted); font-size: .92rem; }
.game-help code { padding: 3px 6px; margin-right: 4px; border: 1px solid #4c3861; border-radius: 4px; background: #251938; }

.shop { padding-top: 54px; padding-bottom: 62px; }
.shop-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 21px 24px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.shop h2 { font-size: clamp(1.42rem, 2.3vw, 1.77rem); }
.shop p { margin-top: 7px; }
.shop .button { flex-shrink: 0; }
.footer { background: var(--deep); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; min-height: 79px; padding-block: 17px; }
.footer p, .footer-inner > a:last-child { color: var(--soft); font-size: .88rem; }
.footer .brand { font-size: 1.15rem; }

@media (max-width: 980px) {
  .shell { width: calc(100% - 56px); }
  .mode-grid, .map-grid { gap: 14px; }
  .mode-details { padding: 17px; }
  .mode p { min-height: 4.65em; }
  .nav { gap: 18px; }
  .join-panel { gap: 28px; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 40px); }
  .header-action { display: none; }
  .header-inner { min-height: 62px; gap: 10px; }
  .nav { gap: 13px; }
  .nav a { font-size: .85rem; }
  .hero { min-height: 536px; }
  .hero-inner { padding-block: 68px 64px; }
  .hero::after { background: linear-gradient(90deg, #0f0b19e8 0%, #130e20a3 50%, #130e2040 100%), linear-gradient(0deg, #110e18 0, #110e1800 38%); }
  .hero-media img { object-position: 67% center; }
  .section { padding-top: 53px; }
  .section-intro { align-items: start; flex-direction: column; gap: 9px; margin-bottom: 18px; }
  .section-intro p { max-width: 100%; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode { display: grid; grid-template-columns: minmax(160px, .76fr) 1fr; }
  .mode-media { height: 100%; aspect-ratio: auto; border: 0; border-right: 2px solid var(--mode-border); }
  .mode p { min-height: 0; }
  .join-panel { grid-template-columns: 1fr; gap: 20px; }
  .join-address { padding: 17px; }
  .shop { padding-bottom: 49px; }
}
@media (max-width: 460px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; padding-block: 10px 12px; gap: 9px; }
  .header .brand img { width: 27px; height: 27px; }
  .header .brand { font-size: 1.21rem; gap: 7px; }
  .nav { flex: 1 0 100%; justify-content: space-between; gap: 7px; }
  .hero { min-height: 490px; }
  .hero-inner { padding-block: 51px 60px; }
  .hero-media img { object-position: 64% center; }
  .hero h1 { font-size: clamp(2.6rem, 10vw, 3.4rem); }
  .hero p { max-width: 290px; }
  .hero-actions { gap: 8px; margin-top: 20px; }
  .hero-actions .button { min-height: 46px; padding-inline: 10px; font-size: .86rem; }
  .hero-actions .address-button { gap: 6px; font-size: .78rem; }
  .mode, .map-grid { display: block; }
  .mode-media { height: auto; aspect-ratio: 1.82; border-right: none; border-bottom: 2px solid var(--mode-border); }
  .map-list + .map-list { margin-top: 12px; }
  .map-list { padding: 17px 16px 8px; }
  .game-help { justify-content: start; gap: 12px; }
  .shop-panel { flex-direction: column; align-items: start; padding: 18px; }
  .footer-inner { flex-wrap: wrap; justify-content: start; }
  .footer p { flex: 1 0 100%; order: 3; }
  .footer-inner > a:last-child { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
