:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d6b7c;
  --paper: #fff8e7;
  --paper-strong: #fff1bf;
  --sky: #d8f5ff;
  --sea: #28a9d8;
  --deep-sea: #116b93;
  --leaf: #69b86b;
  --grass: #b8dc5a;
  --coral: #ff7b63;
  --gold: #f2b84b;
  --wood: #8e5735;
  --line: rgba(23, 32, 51, 0.16);
  --shadow: 0 22px 50px rgba(21, 80, 109, 0.22);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(180deg, #cdf4ff 0%, #f8fdff 42%, #f5fbef 72%, #fff8e7 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 123, 99, 0.10), transparent 28%, transparent 72%, rgba(242, 184, 75, 0.12)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 96px);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1180px, calc(100% - 28px));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 14px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 252, 239, 0.88);
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.13);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  min-width: 196px;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
  background: linear-gradient(145deg, var(--sea), var(--coral));
  box-shadow: 0 6px 0 rgba(17, 107, 147, 0.24);
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.15;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

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

.site-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 14px;
  color: #2b3b4f;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: rgba(17, 107, 147, 0.18);
  background: #ffffff;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 20px);
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  overflow: hidden;
  padding: 120px 6vw 86px;
}

.hero::after {
  position: absolute;
  right: -5%;
  bottom: -52px;
  left: -5%;
  height: 150px;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), #aee5f3 45%, #5bc3d8 46%, #2b9ec5 100%);
  clip-path: polygon(0 36%, 8% 43%, 16% 33%, 24% 45%, 32% 34%, 40% 42%, 49% 32%, 58% 45%, 66% 34%, 74% 42%, 82% 33%, 91% 44%, 100% 35%, 100% 100%, 0 100%);
}

.home-hero {
  background:
    linear-gradient(180deg, rgba(206, 245, 255, 0.8) 0%, rgba(255, 248, 231, 0.6) 62%, rgba(155, 216, 103, 0.28) 100%);
}

.page-hero {
  min-height: 78svh;
  padding-bottom: 68px;
}

.play-hero {
  background:
    linear-gradient(180deg, rgba(209, 246, 255, 0.84), rgba(244, 255, 235, 0.72)),
    linear-gradient(90deg, rgba(105, 184, 107, 0.15), rgba(255, 123, 99, 0.10));
}

.download-hero {
  background:
    linear-gradient(180deg, rgba(211, 245, 255, 0.86), rgba(255, 247, 220, 0.84)),
    linear-gradient(90deg, rgba(242, 184, 75, 0.18), rgba(40, 169, 216, 0.12));
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), transparent 48%),
    repeating-linear-gradient(90deg, transparent 0 92px, rgba(255, 255, 255, 0.2) 92px 94px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--deep-sea);
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.72);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: #12314b;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 5px 0 rgba(255, 255, 255, 0.8), 0 12px 26px rgba(17, 107, 147, 0.25);
}

.page-hero h1 {
  font-size: clamp(44px, 5.5vw, 78px);
  line-height: 1;
}

.stack-title span {
  display: block;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.hero-copy p,
.section-heading p,
.world-copy p,
.download-copy p {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn,
.submit {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0 22px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover,
.submit:hover {
  transform: translateY(-2px);
}

.btn-primary,
.submit {
  color: #ffffff;
  background: linear-gradient(180deg, #ff8a61, #e95442);
  box-shadow: 0 8px 0 #a83828, 0 18px 30px rgba(233, 84, 66, 0.26);
}

.btn-ghost {
  border: 2px solid rgba(17, 107, 147, 0.18);
  color: #12314b;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 0 rgba(17, 107, 147, 0.16);
}

.server-strip {
  display: grid;
  width: min(540px, 100%);
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 34px 0 0;
}

.server-strip div {
  min-height: 72px;
  border: 1px solid rgba(17, 107, 147, 0.14);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 0 rgba(255, 255, 255, 0.8);
}

.server-strip dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.server-strip dd {
  margin: 4px 0 0;
  color: #12314b;
  font-size: 18px;
  font-weight: 950;
}

.tide-stage {
  min-height: 620px;
}

.art {
  position: absolute;
  display: block;
  user-select: none;
  filter: drop-shadow(0 18px 24px rgba(23, 32, 51, 0.18));
}

.portal {
  top: 0;
  right: 7%;
  width: min(46vw, 520px);
  opacity: 0.94;
  animation: floatSlow 6s ease-in-out infinite;
}

.hero-character {
  right: 18%;
  bottom: 96px;
  width: min(42vw, 500px);
  animation: floatHero 4.8s ease-in-out infinite;
}

.slime {
  right: 5%;
  bottom: 110px;
  width: min(20vw, 220px);
  animation: hop 3.4s ease-in-out infinite;
}

.island {
  right: 0;
  bottom: 10px;
  width: min(56vw, 720px);
  filter: drop-shadow(0 26px 28px rgba(17, 107, 147, 0.18));
}

@keyframes floatHero {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(10px) rotate(1deg); }
}

@keyframes hop {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.03); }
}

.account-section,
.route-section,
.download-section,
.install-steps {
  position: relative;
  padding: 92px 6vw;
}

.account-page {
  position: relative;
  overflow: hidden;
  padding: 132px 6vw 96px;
  background:
    linear-gradient(180deg, rgba(211, 245, 255, 0.74), rgba(255, 248, 231, 0.88)),
    linear-gradient(90deg, rgba(40, 169, 216, 0.14), rgba(255, 123, 99, 0.12));
}

.account-page::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 248, 231, 0.9) 0%, rgba(255, 248, 231, 0.62) 38%, rgba(255, 248, 231, 0.12) 100%),
    linear-gradient(180deg, transparent 58%, rgba(255, 248, 231, 0.94) 100%);
}

.account-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.account-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-page-copy,
.account-page-shell {
  position: relative;
  z-index: 2;
}

.account-page-copy {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.account-page-copy h1 {
  margin-top: 12px;
}

.account-page-copy p {
  max-width: 620px;
  color: #405166;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
}

.account-page-copy .account-warning {
  margin-top: -4px;
  color: #8b401f;
  font-weight: 900;
}

.account-page-shell {
  margin: 0;
}

.section-heading {
  width: min(820px, 100%);
  margin: 0 auto 38px;
  text-align: center;
}

.account-shell {
  display: grid;
  width: min(1100px, 100%);
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 460px);
  align-items: stretch;
  gap: 24px;
  margin: 0 auto;
}

.account-lore {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 46px);
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(18, 49, 75, 0.94), rgba(17, 107, 147, 0.88)),
    linear-gradient(90deg, rgba(255, 123, 99, 0.18), rgba(105, 184, 107, 0.16));
  box-shadow: var(--shadow);
}

.account-lore img {
  position: absolute;
  right: -8%;
  bottom: -13%;
  width: min(52%, 310px);
  opacity: 0.95;
}

.account-lore h3 {
  font-size: clamp(28px, 4vw, 46px);
}

.account-lore p,
.account-lore li {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.account-lore ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.account-lore li {
  border-left: 4px solid var(--gold);
  padding-left: 12px;
  font-weight: 800;
}

.account-card {
  border: 2px solid #ffffff;
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 252, 239, 0.94);
  box-shadow: 0 18px 46px rgba(23, 32, 51, 0.16);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: var(--radius);
  background: #f0e3c6;
}

.tab {
  height: 40px;
  border: 0;
  border-radius: 6px;
  color: #68513a;
  font-weight: 900;
  background: transparent;
  cursor: pointer;
}

.tab.active {
  color: #ffffff;
  background: linear-gradient(180deg, #2bb2dc, #13749a);
  box-shadow: 0 4px 0 rgba(17, 107, 147, 0.28);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

label {
  display: block;
  margin: 16px 0 8px;
  color: #554435;
  font-size: 14px;
  font-weight: 900;
}

input {
  width: 100%;
  height: 46px;
  border: 2px solid rgba(142, 87, 53, 0.18);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 15px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 4px rgba(40, 169, 216, 0.18);
}

.form-tip {
  margin: 8px 0 0;
  color: #7a4b37;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.submit {
  width: 100%;
  margin-top: 22px;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.message,
.download-message {
  min-height: 24px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 800;
}

.message.error,
.download-message.error {
  color: #b42318;
}

.message.success {
  color: #067647;
}

.rankings-hero {
  background:
    linear-gradient(180deg, rgba(208, 244, 255, 0.86), rgba(255, 250, 232, 0.76)),
    linear-gradient(90deg, rgba(242, 184, 75, 0.14), rgba(105, 184, 107, 0.16));
}

.ranking-art {
  --ranking-art-bottom: 22px;
  --ranking-art-right: -2%;
  --ranking-art-width: min(60vw, 820px);

  min-height: 540px;
}

.ranking-board-art {
  right: var(--ranking-art-right);
  bottom: var(--ranking-art-bottom);
  width: var(--ranking-art-width);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 22px 54px rgba(17, 107, 147, 0.2);
}

.ranking-hero-board {
  position: absolute;
  right: var(--ranking-art-right);
  bottom: var(--ranking-art-bottom);
  z-index: 3;
  width: var(--ranking-art-width);
  aspect-ratio: 1400 / 933;
  pointer-events: none;
  color: #ffe8a7;
  font-weight: 950;
  text-shadow: 0 2px 0 rgba(62, 24, 12, 0.72), 0 0 8px rgba(255, 216, 139, 0.26);
}

.ranking-hero-board-title {
  position: absolute;
  top: 26.5%;
  left: 55.7%;
  display: flex;
  width: 24%;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-right: 1%;
}

.ranking-hero-board-title span {
  color: #fff4c9;
  font-size: clamp(13px, 1.2vw, 18px);
  line-height: 1;
  white-space: nowrap;
}

.ranking-hero-board-title small {
  overflow: hidden;
  max-width: 112px;
  color: rgba(255, 231, 173, 0.82);
  font-size: clamp(7px, 0.55vw, 10px);
  line-height: 1.1;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-hero-list {
  position: absolute;
  top: 32.3%;
  left: 55.6%;
  display: flex;
  width: 24%;
  flex-direction: column;
  gap: clamp(1px, 0.24vw, 4px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-hero-list li {
  display: grid;
  min-height: clamp(19px, 2.45vw, 31px);
  grid-template-columns: clamp(16px, 2vw, 25px) minmax(0, 1fr);
  grid-template-areas:
    "rank name"
    "rank value";
  align-items: center;
  column-gap: clamp(4px, 0.5vw, 8px);
  border-radius: 5px;
  padding: 0 clamp(5px, 0.6vw, 9px) 0 clamp(2px, 0.3vw, 5px);
  background: linear-gradient(90deg, rgba(69, 28, 12, 0.18), rgba(69, 28, 12, 0));
}

.ranking-hero-list li:nth-child(n + 9) {
  display: none;
}

.ranking-hero-list b {
  display: grid;
  grid-area: rank;
  width: clamp(15px, 1.7vw, 22px);
  height: clamp(15px, 1.7vw, 22px);
  place-items: center;
  border-radius: 50%;
  color: #6f3214;
  font-size: clamp(8px, 0.9vw, 12px);
  line-height: 1;
  background: linear-gradient(180deg, #ffe8a7, #e09b31);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.38) inset, 0 2px 0 rgba(45, 19, 10, 0.26);
}

.ranking-hero-list span {
  grid-area: name;
  overflow: hidden;
  color: #fff5d0;
  font-size: clamp(10px, 1vw, 15px);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-hero-list em {
  grid-area: value;
  overflow: hidden;
  color: rgba(255, 226, 166, 0.84);
  font-size: clamp(7px, 0.64vw, 10px);
  font-style: normal;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-hero-empty {
  position: absolute;
  top: 46%;
  left: 56%;
  width: 23%;
  color: #fff0bd;
  font-size: clamp(12px, 1.1vw, 16px);
  text-align: center;
}

.ranking-section {
  padding: 92px 6vw 110px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section-heading.compact h2 {
  font-size: clamp(28px, 3.6vw, 44px);
}

.ranking-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.ranking-tabs,
.ranking-group-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ranking-tabs::-webkit-scrollbar,
.ranking-group-tabs::-webkit-scrollbar {
  display: none;
}

.ranking-tabs {
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(255, 252, 239, 0.88);
}

.ranking-tab,
.ranking-group-tab {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  color: #526274;
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
}

.ranking-tab.active,
.ranking-group-tab.active {
  color: #ffffff;
  background: linear-gradient(180deg, var(--sea), var(--deep-sea));
  box-shadow: 0 4px 0 rgba(17, 107, 147, 0.16);
}

.ranking-board {
  display: none;
  min-width: 0;
  margin-top: 16px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 252, 239, 0.94);
  box-shadow: 0 14px 0 rgba(17, 107, 147, 0.08), 0 24px 44px rgba(23, 32, 51, 0.12);
}

.ranking-board.active {
  display: block;
}

.ranking-board-head {
  border-bottom: 1px solid rgba(23, 32, 51, 0.1);
  padding-bottom: 16px;
}

.ranking-board-head span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 6px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--sea), var(--deep-sea));
}

.ranking-board-head h3 {
  margin: 14px 0 8px;
  color: #12314b;
}

.ranking-board-head p {
  color: var(--muted);
  line-height: 1.65;
}

.ranking-group-tabs {
  margin: 16px 0;
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
  padding-bottom: 10px;
}

.ranking-group-tab {
  min-height: 36px;
  border: 1px solid rgba(23, 32, 51, 0.1);
  background: #ffffff;
}

.ranking-list {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list.active {
  display: grid;
}

.ranking-row {
  display: grid;
  min-height: 82px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: var(--radius);
  padding: 10px;
  background: #ffffff;
}

.rank-medal {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(180deg, var(--gold), #c8782d);
  box-shadow: 0 4px 0 rgba(142, 87, 53, 0.22);
}

.ranking-row strong {
  display: block;
  overflow: hidden;
  color: #12314b;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.ranking-row em {
  border-radius: 6px;
  padding: 4px 7px;
  color: #526274;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  background: #f3f7f8;
}

.ranking-row mark {
  border-radius: 6px;
  padding: 8px 10px;
  color: #8b401f;
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
  background: #fff0c7;
}

.ranking-empty,
.ranking-notes {
  width: min(1180px, 100%);
  margin: 22px auto 0;
}

.ranking-empty {
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
  background: rgba(255, 252, 239, 0.94);
}

.ranking-empty.compact {
  width: 100%;
  margin-top: 16px;
  padding: 18px;
}

.ranking-notes {
  display: grid;
  gap: 8px;
}

.ranking-notes p {
  margin: 0;
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 12px;
  color: #7a4b37;
  font-weight: 800;
  background: rgba(255, 240, 199, 0.7);
}

.world-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 86px 6vw 110px;
  background:
    linear-gradient(180deg, rgba(250, 255, 237, 0.86), rgba(210, 245, 255, 0.8)),
    linear-gradient(90deg, rgba(105, 184, 107, 0.15), rgba(255, 123, 99, 0.10));
}

.world-copy {
  max-width: 570px;
}

.world-scene {
  position: relative;
  min-height: 460px;
}

.world-island,
.world-portal,
.world-slime {
  position: absolute;
  display: block;
  filter: drop-shadow(0 18px 24px rgba(23, 32, 51, 0.16));
}

.world-island {
  right: 0;
  bottom: 8%;
  width: min(60vw, 760px);
}

.world-portal {
  right: 14%;
  bottom: 20%;
  width: min(28vw, 320px);
}

.world-slime {
  right: 5%;
  bottom: 26%;
  width: min(15vw, 170px);
}

.play-art,
.chest-art {
  min-height: 520px;
}

.play-art .large {
  right: 18%;
  bottom: 20px;
  width: min(43vw, 460px);
}

.play-slime {
  right: 8%;
  bottom: 82px;
  width: min(18vw, 210px);
}

.chest {
  right: 7%;
  bottom: 40px;
  width: min(44vw, 540px);
}

.chest-slime {
  right: 43%;
  bottom: 72px;
  width: min(17vw, 190px);
}

.adventure-route {
  position: relative;
  width: min(1180px, 100%);
  min-height: 560px;
  margin: 0 auto;
  overflow: hidden;
}

.adventure-route > img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(82vw, 940px);
  filter: drop-shadow(0 22px 34px rgba(17, 107, 147, 0.18));
}

.adventure-route ol {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 520px;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.adventure-route li {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  padding: 18px 18px 18px 58px;
  background: rgba(255, 252, 239, 0.9);
  box-shadow: 0 10px 0 rgba(17, 107, 147, 0.08);
}

.adventure-route li::before {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  content: counter(list-item);
  background: linear-gradient(180deg, var(--coral), #e95442);
}

.adventure-route strong,
.adventure-route span {
  display: block;
}

.adventure-route strong {
  margin-bottom: 6px;
  font-size: 19px;
}

.adventure-route span {
  color: var(--muted);
  line-height: 1.7;
}

.feature-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 6vw 100px;
}

.showcase-panel {
  min-height: 260px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 22px;
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(23, 32, 51, 0.13);
}

.showcase-panel span {
  display: inline-flex;
  width: 42px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 950;
  background: rgba(255, 255, 255, 0.18);
}

.showcase-panel h3 {
  margin-top: 54px;
  font-size: 25px;
}

.showcase-panel p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
}

.showcase-panel.coral {
  background: linear-gradient(145deg, #ef765d, #c84f3c);
}

.showcase-panel.leaf {
  background: linear-gradient(145deg, #69b86b, #3a8758);
}

.showcase-panel.gold {
  background: linear-gradient(145deg, #e7ad3f, #b76d2a);
}

.showcase-panel.blue {
  background: linear-gradient(145deg, #28a9d8, #116b93);
}

.download-board {
  display: grid;
  width: min(1120px, 100%);
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  gap: 32px;
  align-items: start;
  margin: 0 auto;
}

.download-actions {
  display: grid;
  gap: 14px;
}

.download-tile {
  display: grid;
  min-height: 112px;
  align-content: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: #12314b;
  background: rgba(255, 252, 239, 0.94);
  box-shadow: 0 10px 0 rgba(17, 107, 147, 0.08), 0 18px 38px rgba(23, 32, 51, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.download-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 0 rgba(17, 107, 147, 0.10), 0 24px 44px rgba(23, 32, 51, 0.16);
}

.download-tile.primary {
  color: #ffffff;
  background: linear-gradient(145deg, #28a9d8, #116b93);
}

.download-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.download-tile span {
  color: currentColor;
  opacity: 0.78;
  line-height: 1.6;
}

.steps-grid {
  display: grid;
  width: min(1120px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.steps-grid article {
  min-height: 230px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 252, 239, 0.9);
  box-shadow: 0 12px 0 rgba(17, 107, 147, 0.08);
}

.steps-grid b {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(180deg, var(--gold), #c8782d);
}

.steps-grid h3 {
  margin-top: 26px;
}

.steps-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  display: flex;
  min-height: 96px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 26px 6vw;
  color: rgba(255, 255, 255, 0.8);
  background: #12314b;
}

.site-footer span {
  color: #ffffff;
  font-weight: 950;
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 1040px) {
  .hero,
  .world-band,
  .download-board,
  .account-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .tide-stage,
  .play-art,
  .chest-art {
    min-height: 540px;
  }

  .portal {
    right: 18%;
    width: min(62vw, 520px);
  }

  .hero-character {
    right: 25%;
    width: min(52vw, 460px);
  }

  .slime {
    right: 14%;
    width: min(24vw, 190px);
  }

  .island {
    width: min(86vw, 760px);
  }

  .feature-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .ranking-art {
    --ranking-art-right: 0;
    --ranking-art-width: min(88vw, 820px);
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    border-width: 0 0 1px;
    border-radius: 0;
    transform: none;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

.site-nav {
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    min-width: max-content;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero {
    padding: 42px 18px 72px;
  }

  .account-page {
    padding: 54px 18px 70px;
  }

  .account-page::after {
    background:
      linear-gradient(180deg, rgba(255, 248, 231, 0.76), rgba(255, 248, 231, 0.96)),
      linear-gradient(90deg, rgba(255, 248, 231, 0.82), rgba(255, 248, 231, 0.36));
  }

  h1 {
    font-size: clamp(44px, 16vw, 72px);
  }

  h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .server-strip,
  .steps-grid,
  .feature-showcase {
    grid-template-columns: 1fr;
  }

  .tide-stage {
    min-height: 410px;
  }

  .portal {
    top: 20px;
    right: 7%;
    width: 64vw;
  }

  .hero-character {
    right: 24%;
    bottom: 82px;
    width: 56vw;
  }

  .slime {
    right: 4%;
    bottom: 90px;
    width: 25vw;
  }

  .island {
    right: -8%;
    width: 112vw;
  }

  .account-section,
  .route-section,
  .download-section,
  .install-steps {
    padding: 62px 18px;
  }

  .account-lore {
    min-height: 390px;
  }

  .account-lore img {
    width: 220px;
  }

  .world-band {
    padding: 64px 18px 72px;
  }

  .world-scene {
    min-height: 330px;
  }

  .world-island {
    right: -18%;
    width: 118vw;
  }

  .world-portal {
    right: 24%;
    width: 48vw;
  }

  .world-slime {
    right: 6%;
    width: 25vw;
  }

  .play-art,
  .chest-art {
    min-height: 390px;
  }

  .play-art .large {
    right: 12%;
    width: 68vw;
  }

  .play-slime {
    right: 3%;
    width: 27vw;
  }

  .chest {
    right: -6%;
    width: 82vw;
  }

  .chest-slime {
    right: 58%;
    width: 28vw;
  }

  .adventure-route {
    min-height: 760px;
  }

  .adventure-route > img {
    right: -36%;
    bottom: 0;
    width: 150vw;
    opacity: 0.72;
  }

  .adventure-route ol {
    max-width: none;
  }

  .download-tile,
  .steps-grid article,
  .showcase-panel {
    min-height: 0;
  }

  .ranking-section {
    padding: 62px 18px 76px;
  }

  .ranking-art {
    --ranking-art-bottom: 0px;
    --ranking-art-right: -18%;
    --ranking-art-width: 118vw;

    min-height: clamp(330px, 79vw, 460px);
  }

  .ranking-hero-board-title small,
  .ranking-hero-list em {
    display: none;
  }

  .ranking-hero-list {
    gap: 1px;
  }

  .ranking-hero-list li {
    min-height: 16px;
    grid-template-areas: "rank name";
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .ranking-board-head {
    min-height: 0;
  }

  .ranking-board {
    padding: 14px;
  }

  .ranking-tabs {
    padding: 6px;
  }

  .ranking-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .rank-medal {
    width: 38px;
    height: 38px;
  }

  .ranking-row mark {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
