* {
  box-sizing: border-box;
}

:root {
  --pink: #ff8aa1;
  --pink-soft: #fff0f4;
  --pink-deep: #dc5677;
  --gold: #ffe25b;
  --gold-soft: #fff9cf;
  --ink: #2e2730;
  --muted: #786d76;
  --line: rgba(46, 39, 48, .13);
  --paper: rgba(255, 255, 255, .94);
  --shadow: 0 22px 60px rgba(67, 43, 54, .11);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    Inter, ui-rounded, "SF Pro Rounded", "PingFang SC",
    "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,138,161,.20), transparent 28%),
    radial-gradient(circle at 92% 22%, rgba(255,226,91,.19), transparent 27%),
    #fffaf8;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--pink);
  box-shadow: 0 8px 24px rgba(255,138,161,.28);
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 750;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 70px;
}

.hero {
  min-height: 430px;
  padding: 62px clamp(28px, 6vw, 78px);
  border: 1px solid var(--line);
  border-radius: 38px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 50px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,248,240,.94));
  box-shadow: var(--shadow);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,138,161,.11);
  right: -80px;
  top: -90px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink-deep);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: .94;
  letter-spacing: -.065em;
}

.hero h1 span {
  color: var(--pink);
}

.hero-description {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.credit-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.credit-row span {
  min-width: 178px;
  padding: 13px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.credit-row small,
.credit-row strong {
  display: block;
}

.credit-row small {
  color: var(--muted);
  font-size: .72rem;
}

.credit-row strong {
  margin-top: 3px;
  font-size: 1rem;
}

.hero-bracket {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.mini-round {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: 12px;
}

.mini-round:nth-child(2) {
  margin-left: 24px;
}

.mini-round:nth-child(3) {
  margin-left: 48px;
}

.mini-round:nth-child(4) {
  margin-left: 72px;
}

.mini-round:nth-child(5) {
  margin-left: 96px;
}

.mini-round:nth-child(6) {
  margin-left: 120px;
}

.mini-round span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(46,39,48,.06);
}

.mini-round i {
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--gold));
  border-radius: 999px;
}

.mini-round-final span:last-child {
  background: var(--gold);
}

.setup-card,
.game-card,
.champion-card,
.journey-card,
.source-note {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 16px 48px rgba(67, 43, 54, .07);
}

.setup-card {
  display: grid;
  grid-template-columns: 1.2fr .9fr auto;
  gap: 24px;
  align-items: end;
}

.setup-card h2,
.section-heading h2,
.source-note h2,
.champion-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.setup-card p,
.section-heading p,
.source-note p {
  color: var(--muted);
  line-height: 1.7;
}

.name-field {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

.name-field span {
  font-size: .83rem;
}

.name-field input {
  width: 100%;
  min-height: 48px;
  border-radius: 15px;
  border: 1px solid var(--line);
  padding: 0 15px;
  outline: none;
  background: #fff;
}

.name-field input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255,138,161,.10);
}

.setup-actions {
  display: grid;
  gap: 8px;
}

.button,
.text-button {
  border: 0;
  cursor: pointer;
}

.button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 15px;
  font-weight: 900;
}

.button.primary {
  background: var(--pink);
  color: #fff;
}

.button.primary.gold {
  background: var(--gold);
  color: var(--ink);
}

.button.secondary {
  background: var(--pink-soft);
  color: var(--pink-deep);
}

.button.ghost {
  background: #f5f2f3;
  color: var(--muted);
}

.text-button {
  padding: 6px;
  color: var(--pink-deep);
  background: transparent;
  font-weight: 800;
}

.round-head,
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
}

.round-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.round-progress {
  text-align: right;
}

.round-progress strong,
.round-progress span {
  display: block;
}

.round-progress strong {
  font-size: 1.5rem;
}

.round-progress span {
  color: var(--muted);
  font-size: .78rem;
}

.progress-track {
  height: 8px;
  margin: 22px 0 34px;
  background: #f3edef;
  border-radius: 999px;
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--gold));
  transition: width .28s ease;
}

.match-label {
  margin: 0 0 12px;
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
}

.matchup {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  gap: 18px;
  align-items: stretch;
}

.option-card {
  min-height: 240px;
  padding: 28px;
  border-radius: 28px;
  border: 2px solid transparent;
  background: var(--pink-soft);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.option-b {
  background: var(--gold-soft);
}

.option-card:hover,
.option-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--pink);
  box-shadow: 0 16px 34px rgba(67,43,54,.10);
}

.option-label {
  font-size: .72rem;
  letter-spacing: .14em;
  font-weight: 950;
  color: var(--muted);
}

.option-card strong {
  max-width: 430px;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  line-height: 1.45;
}

.option-card small {
  color: var(--muted);
}

.versus {
  display: grid;
  place-items: center;
}

.versus span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: .82rem;
  font-weight: 950;
}

.game-actions,
.champion-actions,
.journey-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.skip-note {
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: .78rem;
}

.champion-card {
  text-align: center;
  background:
    radial-gradient(circle at 50% 15%, rgba(255,226,91,.28), transparent 32%),
    #fff;
}

.trophy {
  font-size: 4.4rem;
  margin-bottom: 8px;
}

.champion-card > strong {
  display: block;
  max-width: 800px;
  margin: 22px auto 0;
  padding: 25px;
  border-radius: 24px;
  background: var(--gold-soft);
  font-size: clamp(1.55rem, 4vw, 3.2rem);
  line-height: 1.4;
}

#championSubtitle {
  color: var(--muted);
}

.section-heading > p {
  max-width: 450px;
  margin: 0;
  text-align: right;
}

.round-columns {
  margin-top: 24px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}

.round-column {
  min-height: 250px;
  padding: 18px;
  border-radius: 22px;
  background: #faf7f8;
  scroll-snap-align: start;
}

.round-column.current {
  background: var(--pink-soft);
}

.round-column.champion {
  background: var(--gold-soft);
}

.round-column h3 {
  margin: 0;
  font-size: 1rem;
}

.round-column small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.round-list {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.round-list li {
  padding: 9px 10px;
  border: 1px solid rgba(46,39,48,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  font-size: .83rem;
  line-height: 1.45;
}

.round-empty {
  margin-top: 18px;
  color: var(--muted);
  font-size: .82rem;
}

.source-note {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 22px;
  align-items: center;
}

.source-mark {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: var(--gold);
  font-size: 1.7rem;
  font-weight: 950;
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 30px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.7;
}

footer strong {
  color: var(--ink);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  max-width: min(88vw, 620px);
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .84rem;
  font-weight: 750;
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 64px;
  }

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

  main {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    min-height: 0;
    padding: 38px 24px;
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .hero-bracket {
    margin-top: 4px;
  }

  .mini-round {
    grid-template-columns: 44px 1fr 44px;
  }

  .mini-round:nth-child(n) {
    margin-left: 0;
  }

  .setup-card {
    grid-template-columns: 1fr;
  }

  .round-head,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .round-progress {
    text-align: left;
  }

  .section-heading > p {
    text-align: left;
  }

  .matchup {
    grid-template-columns: 1fr;
  }

  .versus {
    height: 44px;
  }

  .versus span {
    width: 44px;
    height: 44px;
  }

  .option-card {
    min-height: 190px;
    padding: 22px 18px;
  }

  .game-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .game-actions .secondary {
    grid-column: 1 / -1;
  }

  .source-note {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 3.45rem;
  }

  .credit-row {
    display: grid;
  }

  .credit-row span {
    min-width: 0;
  }

  .game-card,
  .setup-card,
  .champion-card,
  .journey-card,
  .source-note {
    padding: 22px 16px;
    border-radius: 24px;
  }

  .option-card strong {
    font-size: 1.32rem;
  }
}


.adapt-credit {
  margin-top: 8px;
  color: var(--muted);
  font-size: .78rem;
}


/* V76 · 极简开局栏 */
.setup-card-simple {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.name-field-simple {
  width: 100%;
}

.name-field-simple span {
  margin-bottom: 2px;
  font-size: .92rem;
}

.name-field-simple input {
  min-height: 54px;
  font-size: 1rem;
}

.setup-actions-simple {
  display: flex;
  align-items: center;
  gap: 10px;
}

.setup-actions-simple .button {
  min-height: 54px;
  white-space: nowrap;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 720px) {
  .setup-card-simple {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .setup-actions-simple {
    display: grid;
    grid-template-columns: 1fr;
  }

  .setup-actions-simple .button {
    width: 100%;
  }
}


/* V78 · 原始网站开发者平台信息 */
.developer-credit em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
  font-size: .72rem;
  line-height: 1.45;
  word-break: break-all;
}
