@font-face {
  font-family: "Ark Pixel";
  src: url("fonts/ark-pixel-16px-proportional-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-21FF;
}

@font-face {
  font-family: "Ark Pixel";
  src: url("fonts/ark-pixel-16px-proportional-zh-cn.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+2E80-2FFF, U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF;
}

:root {
  --pink: #ff6480;
  --pink-deep: #c6355c;
  --pink-soft: #fff1f5;
  --pink-line: #f5d8e0;
  --ink: #302a30;
  --muted: #84777e;
  --white: #ffffff;
  --pixel-shadow: 4px 4px 0 rgba(196, 53, 92, .15);
  --shadow: 0 12px 34px rgba(214, 103, 128, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.home-body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #fff;
  font-family: "Ark Pixel", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .015em;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

.home-body a { color: inherit; text-decoration: none; }
.home-body a:focus-visible { outline: 3px solid rgba(255, 100, 128, .35); outline-offset: 3px; }

.launcher-page {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff 58%, #fffafb 100%);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 84px;
  padding: 0 clamp(22px, 4.7vw, 66px);
  border-bottom: 0;
  background: rgba(255, 255, 255, .94);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, #f7b5c3 0 8px, transparent 8px 12px);
  content: "";
  opacity: .8;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 13px;
  min-width: 220px;
}

.brand-logo {
  display: block;
  width: 190px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-mark,
.intro-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--pink);
  font-family: Georgia, serif;
  font-size: 44px;
  line-height: 1;
  transform: rotate(-8deg);
}

.brand-copy { display: flex; flex-direction: column; gap: 4px; }
.brand-main { color: #242024; font-family: "Ark Pixel", "Microsoft YaHei", sans-serif; font-size: 25px; font-weight: 400; letter-spacing: 1px; line-height: 1; }
.brand-sub { color: #84777e; font-size: 9px; letter-spacing: 2px; line-height: 1; }

.site-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  justify-content: center;
  gap: clamp(16px, 3.2vw, 48px);
  min-width: 0;
  flex: 1 1 auto;
}

.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
  color: #332e32;
  font-size: 16px;
  font-weight: 600;
  transition: color .2s ease;
}

.site-nav a:hover,
.site-nav a.active { color: var(--pink); }
.site-nav a.active::after {
  position: absolute;
  right: 50%;
  bottom: 13px;
  width: 17px;
  height: 3px;
  border-radius: 4px;
  background: var(--pink);
  content: "";
  transform: translateX(50%);
}

.server-state {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid #f5d9e0;
  border-radius: 99px;
  color: #5c5157;
  background: #fff;
  box-shadow: 3px 3px 0 rgba(250, 132, 152, .12);
  font-size: 14px;
  white-space: nowrap;
}

.state-dot { width: 9px; height: 9px; border-radius: 50%; background: #32c982; box-shadow: 0 0 0 4px #e8fbf2; }
.state-heart { margin-left: 5px; color: var(--pink); font-size: 20px; line-height: .7; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  background-color: #fff9fb;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .86) 26%, rgba(255, 248, 251, .16) 62%, rgba(255, 241, 246, .08) 100%), url("hero-pink-v1.png");
  background-position: center, center;
  background-size: cover, cover;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  z-index: -1;
  left: 7%;
  bottom: 9%;
  width: 190px;
  height: 190px;
  background: url("brand/mabinogi-mark.png") center / contain no-repeat;
  content: "";
  opacity: .035;
  mix-blend-mode: multiply;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -10%;
  bottom: -180px;
  width: 65%;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .67);
  content: "";
  filter: blur(20px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(58%, 690px);
  padding: 92px 0 88px clamp(36px, 10.8vw, 154px);
}

.eyebrow {
  margin-bottom: 24px;
  color: #ff758c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 5px;
}

.hero h1 {
  margin: 0;
  color: #8f2f51;
  font-family: "Ark Pixel", "Microsoft YaHei", sans-serif;
  font-size: clamp(48px, 5.3vw, 78px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.16;
  text-shadow: 3px 0 0 rgba(255, 255, 255, .8), 0 3px 0 rgba(255, 255, 255, .8);
}

.hero h1 span { color: #ef4768; }
.hero-copy p { margin: 23px 0 32px; color: #5b4e55; font-size: 18px; letter-spacing: 1px; }

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 178px;
  justify-content: center;
  padding: 15px 22px;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 4px;
  color: #fff !important;
  background: linear-gradient(135deg, #ff8292, #f44e6d);
  box-shadow: 4px 4px 0 #c93a5d, inset 0 1px 0 rgba(255, 255, 255, .55);
  font-size: 18px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}

.hero-link:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(239, 71, 104, .29), inset 0 1px 0 rgba(255, 255, 255, .65); }
.hero-link-secondary { border: 2px solid #f44e6d; color: #ef4768 !important; background: rgba(255, 255, 255, .88); box-shadow: none; }
.hero-link-secondary:hover { color: #fff !important; background: #f44e6d; box-shadow: 0 10px 22px rgba(239, 71, 104, .18); }

.hero-spark { position: absolute; color: rgba(255, 119, 143, .78); font-size: 30px; }
.spark-one { top: 92px; left: 42%; }
.spark-two { right: 47%; bottom: 87px; font-size: 24px; }
.hero-caption { position: absolute; right: 22px; top: 74px; color: rgba(237, 112, 137, .7); font-size: 10px; letter-spacing: 4px; writing-mode: vertical-rl; }

.intro-card,
.home-panel {
  border: 1px solid var(--pink-line);
  border-radius: 4px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--pixel-shadow), var(--shadow);
}

.intro-card {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(87%, 1300px);
  margin: -26px auto 0;
  padding: 24px 34px;
}

.intro-card::after {
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: 76px;
  height: 76px;
  background: url("brand/mabinogi-mark.png") center / contain no-repeat;
  content: "";
  opacity: .055;
  mix-blend-mode: multiply;
}

.intro-brand { display: flex; align-items: center; gap: 24px; min-width: 0; }
.intro-mark { width: 90px; height: 90px; margin: 0; border: 1px solid #f6dce3; border-radius: 4px; font-size: 57px; background: #fffafb; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px #f7dbe2; }
.intro-mark { display: block; padding: 12px; object-fit: contain; }
.intro-brand h2 { margin: 0 0 8px; color: #e43d61; font-size: 20px; }
.intro-brand p { margin: 5px 0; color: #5c5157; font-size: 13px; line-height: 1.75; }

.intro-features { display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr)); gap: 16px; min-width: min(43%, 500px); }
.intro-feature { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 16px 18px; border: 1px solid #f8dfe5; border-radius: 4px; background: linear-gradient(135deg, #fff, #fff8fa); transition: transform .2s ease, border-color .2s ease; }
.intro-feature:hover { border-color: #f5aabb; transform: translateY(-2px); }
.feature-icon { display: grid; place-items: center; flex: 0 0 auto; width: 50px; height: 50px; border-radius: 4px; color: #f26c82; background: #fff0f4; font-size: 34px; line-height: 1; }
.book-icon { color: #c762c9; font-size: 31px; }
.intro-feature strong, .quick-item strong { display: block; color: #3b3339; font-size: 15px; }
.intro-feature small, .quick-item small { display: block; margin-top: 6px; color: #8b7c84; font-size: 12px; line-height: 1.35; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; width: min(87%, 1300px); margin: 14px auto 0; }
.home-panel { padding: 19px 23px 22px; }
.panel-heading { display: flex; align-items: center; gap: 10px; min-height: 28px; color: #ef4768; }
.panel-heading h2 { margin: 0; font-size: 18px; font-weight: 700; }
.panel-heading > a { margin-left: auto; color: #ef4768; font-size: 13px; }
.heading-icon { display: inline-grid; place-items: center; width: 24px; color: #ff5e7d; font-size: 24px; line-height: 1; }
.bolt-icon { font-size: 28px; }

.news-list { margin: 11px 0 0; padding: 0; list-style: none; }
.news-list li { display: grid; grid-template-columns: 43px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 36px; border-bottom: 1px solid #f7e7eb; }
.news-list li:last-child { border-bottom: 0; }
.news-list li::before { display: block; grid-column: 1; grid-row: 1; width: 7px; height: 7px; margin-left: 4px; border: 1px solid #ff8198; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #fff0f4; content: ""; }
.news-list .tag { grid-column: 1; grid-row: 1; z-index: 1; width: 38px; padding: 4px 0; border-radius: 4px; color: #fff; background: #ff7a8e; font-size: 11px; text-align: center; }
.news-list a { min-width: 0; overflow: hidden; color: #574b53; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; transition: color .2s ease; }
.news-list a:hover { color: var(--pink-deep); }
.news-list em { color: #8d8187; font-size: 12px; font-style: normal; }

.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 12px; }
.quick-item { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 9px 10px; border: 1px solid #f7e0e6; border-radius: 4px; background: #fff; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.quick-item:hover { border-color: #f3a7b8; box-shadow: 0 6px 16px rgba(238, 107, 133, .11); transform: translateY(-2px); }
.quick-icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; color: #fa6d92; font-size: 31px; line-height: 1; }
.download-icon, .server-icon { color: #f17cae; font-size: 36px; }
.quick-item .book-icon { color: #bd6fd4; }
.trophy-icon { color: #f39b87; font-size: 34px; }
.server-icon { color: #7b98e9; }
.people-icon { color: #6f91ed; }

.footer { display: flex; justify-content: space-between; gap: 20px; width: min(95%, 1400px); margin: 16px auto 0; padding: 19px 15px 21px; border-top: 1px solid #f4e4e8; color: #9a8d94; font-size: 12px; line-height: 1.6; }
.footer-heart { color: #ff7b94; font-size: 20px; vertical-align: -2px; }
.footer-right { white-space: nowrap; }

@media (max-width: 1120px) {
  .site-header { gap: 18px; padding-inline: 28px; }
  .brand { min-width: 196px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 14px; }
  .server-state { padding-inline: 12px; }
  .intro-card, .home-grid { width: min(92%, 1300px); }
  .intro-card { align-items: stretch; flex-direction: column; }
  .intro-features { min-width: 0; }
}

@media (max-width: 840px) {
  .site-header { flex-wrap: wrap; gap: 0 20px; padding-block: 13px 0; }
  .brand { min-height: 48px; }
  .brand-logo { width: 180px; }
  .brand-mark { font-size: 38px; }
  .brand-main { font-size: 23px; }
  .server-state { margin-left: auto; padding-block: 8px; font-size: 12px; }
  .site-nav { order: 3; width: calc(100% + 40px); margin-inline: -20px; overflow-x: auto; justify-content: flex-start; gap: 26px; min-height: 48px; padding-inline: 20px; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a.active::after { bottom: 6px; }
  .hero { min-height: 510px; background-position: center, 65% center; background-size: cover, auto 100%; }
  .hero-copy { width: 100%; padding: 64px 28px 180px; }
  .hero h1 { font-size: clamp(42px, 10vw, 62px); }
  .hero-copy p { font-size: 15px; }
  .hero-actions { gap: 11px; }
  .hero-caption { top: 56px; right: 10px; font-size: 8px; }
  .intro-card, .home-grid { width: calc(100% - 28px); }
  .intro-card { padding: 20px; }
  .intro-brand { align-items: flex-start; gap: 14px; }
  .intro-mark { width: 64px; height: 64px; border-radius: 20px; font-size: 42px; }
  .intro-brand h2 { font-size: 17px; }
  .intro-brand p { font-size: 12px; }
  .home-grid { grid-template-columns: 1fr; }
}

/* 登录器内嵌网页通常只有约 600px 宽：保留网站品牌和入口，但让首屏更像一个可操作的启动页。 */
@media (min-width: 521px) and (max-width: 700px) {
  .site-header {
    gap: 0 14px;
    padding: 9px 16px 0;
  }

  .brand {
    min-height: 43px;
    min-width: 0;
    gap: 9px;
  }

  .brand-logo { width: 170px; }

  .brand-mark { font-size: 34px; }
  .brand-main { font-size: 21px; }
  .brand-sub { font-size: 8px; letter-spacing: 1.6px; }

  .server-state {
    padding: 7px 11px;
    gap: 7px;
    font-size: 12px;
  }

  .state-dot { width: 8px; height: 8px; }
  .state-heart { font-size: 18px; }

  .site-nav {
    width: calc(100% + 32px);
    min-height: 39px;
    margin-inline: -16px;
    gap: 12px;
    padding-inline: 16px;
  }

  .site-nav a { font-size: 13px; }
  .site-nav a.active::after { bottom: 3px; height: 2px; }

  .hero {
    min-height: 510px;
    background-position: center, 68% center;
  }

  .hero-copy { padding: 64px 28px 190px; }
  .eyebrow { margin-bottom: 18px; font-size: 11px; letter-spacing: 4px; }
  .hero h1 { font-size: clamp(36px, 6vw, 46px); }
  .hero-copy p { margin: 18px 0 27px; font-size: 15px; }
  .hero-link { min-width: 176px; padding: 13px 20px; font-size: 17px; }
}

/* 登录器网页控件约为 610×402：网页只负责右侧首屏，下面的启动器控件由外壳负责。 */
@media (min-width: 521px) and (max-width: 700px) and (max-height: 450px) {
  html,
  body.home-body,
  .launcher-page {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .intro-card,
  .home-grid,
  .footer {
    display: none;
  }

  .hero {
    height: calc(100vh - 100px);
    min-height: 0;
  }

  .hero-copy { padding-bottom: 0; }
}

@media (max-width: 520px) {
  .site-header { padding-inline: 16px; }
  .brand-logo { width: 168px; }
  .site-nav { width: calc(100% + 32px); margin-inline: -16px; padding-inline: 16px; }
  .server-state { padding-inline: 9px; }
  .state-heart { display: none; }
  .hero { min-height: 510px; background-position: center, 67% center; background-size: cover, auto 76%; background-repeat: no-repeat; }
  .hero-copy { padding: 55px 22px 205px; }
  .eyebrow { margin-bottom: 18px; font-size: 10px; letter-spacing: 3px; }
  .hero h1 { font-size: 43px; }
  .hero-copy p { max-width: 260px; line-height: 1.7; }
  .hero-actions { gap: 9px; }
  .hero-link { min-width: 145px; padding-inline: 14px; font-size: 16px; }
  .spark-one { top: 155px; left: auto; right: 25%; }
  .spark-two { right: 25%; bottom: 92px; }
  .intro-features { grid-template-columns: 1fr; }
  .home-panel { padding-inline: 16px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .quick-item { align-items: flex-start; min-height: 82px; padding: 10px 8px; gap: 7px; }
  .quick-icon { width: 31px; font-size: 25px; }
  .quick-item strong { font-size: 13px; }
  .quick-item small { font-size: 11px; }
  .news-list li {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 42px;
  }
  .news-list .tag { width: 40px; padding: 5px 0; font-size: 12px; }
  .news-list a { grid-column: 2; grid-row: 1; padding-right: 0; font-size: 14px; }
  .news-list em { grid-column: 3; grid-row: 1; justify-self: end; white-space: nowrap; font-size: 11px; }
  .footer { flex-direction: column; padding-inline: 12px; }
  .footer-right { white-space: normal; }
}

@media (max-width: 360px) {
  .news-list li { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 6px; }
  .news-list .tag { width: 36px; font-size: 11px; }
  .news-list a { font-size: 13px; }
}
