@charset "UTF-8";

:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #292b27;
  background: #ecebe6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --paper: #f7f6f2;
  --orange: #ef6b3e;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #7b8b58; outline-offset: 5px; }

.welcome {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin-inline: auto;
  padding: max(28px, env(safe-area-inset-top)) 30px max(30px, env(safe-area-inset-bottom));
  background: var(--paper);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 32px;
}

.header { display: none; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: #292b27; text-decoration: none; font-size: 22px; font-weight: 750; line-height: 1.3; white-space: nowrap; }
.wordmark svg { width: 26px; height: 26px; color: var(--orange); }
.wordmark-dot { color: var(--orange); }
.header-note { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #818279; white-space: nowrap; }
.header-note > span { width: 5px; height: 5px; background: #77915b; border-radius: 50%; }

.intro { min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.football-art { position: relative; width: min(100%, 360px, calc(133.333vh - 426.667px)); width: min(100%, 360px, calc(133.333dvh - 426.667px)); aspect-ratio: 4 / 3; overflow: hidden; }
#league-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

.actions { width: 100%; display: flex; flex-direction: column; gap: 12px; flex: 0 0 auto; }
.action { width: 100%; height: 56px; flex: 0 0 56px; padding: 0 20px; border-radius: 8px; display: flex; align-items: center; gap: 13px; text-align: left; text-decoration: none; cursor: pointer; transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease; font-size: 14px; font-weight: 600; }
.action:active { transform: scale(0.985); }
.icon { width: 21px; height: 21px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-arrow { width: 17px; height: 17px; margin-left: auto; }
.action-register { background: #eeede6; border: 1px solid #e6e4da; color: #57594f; }
.register-label { font-weight: 400; font-size: 13px; }
.register-label strong { font-weight: 650; color: #34392d; margin-left: 5px; }
.action-web { background: #fffefa; border: 1px solid #dfded5; color: #41443a; }
.button-hint { font-size: 11px; font-weight: 400; color: #85877b; }
.action-download { background: var(--orange); border: 1px solid var(--orange); color: white; box-shadow: 0 6px 14px #d7754221; }
.download-note { margin: 0; padding-top: 1px; text-align: center; color: #9e9d91; font-size: 9px; line-height: 1.5; }

html.wechat-guide-open, html.wechat-guide-open body { overflow: hidden; }
.wechat-guide[hidden] { display: none; }
.wechat-guide { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: start center; padding-top: calc(max(22px, env(safe-area-inset-top)) + 120px); overflow-y: auto; overscroll-behavior: contain; color: #fff; background: rgb(20 23 21 / 78%); -webkit-tap-highlight-color: transparent; }
.wechat-guide-content { position: relative; width: 100%; max-width: 480px; padding: 0 24px 24px; text-align: center; }
.wechat-guide-arrow { position: absolute; top: max(22px, env(safe-area-inset-top)); right: max(30px, env(safe-area-inset-right)); width: 88px; height: 100px; color: #ffba91; transform: scaleX(-1); pointer-events: none; }
.wechat-guide h2 { margin: 0 0 16px; font-size: 23px; font-weight: 650; line-height: 1.5; }
.wechat-guide p { margin: 0; font-size: 16px; line-height: 2.2; }
.wechat-menu { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 36px; height: 24px; margin-inline: 3px; border: 1px solid rgb(255 255 255 / 45%); border-radius: 5px; vertical-align: middle; }
.wechat-menu > span { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.wechat-guide-highlight { color: #ffba91; font-weight: 600; }
.wechat-guide-close { display: grid; place-items: center; width: 44px; height: 44px; margin: 30px auto 0; padding: 0; color: #fff; border: 1px solid rgb(255 255 255 / 40%); border-radius: 50%; background: transparent; cursor: pointer; }
.wechat-guide-close:focus-visible { outline-color: #ffba91; }

@media (hover: hover) {
  .action-register:hover { background: #e7e7dc; }
  .action-web:hover { background: #f0f1e9; }
  .action-download:hover { background: #e76034; box-shadow: 0 8px 20px #d7754230; }
  .wechat-guide-close:hover { background: rgb(255 255 255 / 12%); }
}

@media (min-width: 600px) {
  body { min-height: 100vh; min-height: 100dvh; padding: 32px 20px; display: grid; place-items: center; }
  .welcome { max-width: 420px; height: min(840px, calc(100vh - 64px)); height: min(840px, calc(100dvh - 64px)); padding-inline: 34px; border: 1px solid #e4e2d8; border-radius: 32px; box-shadow: 0 24px 80px #3b362813; }
}

@media (max-width: 360px) {
  .welcome { padding-left: 24px; padding-right: 24px; }
  .wordmark { font-size: 20px; }
  .action { padding-inline: 17px; }
}

@media (max-height: 700px) {
  .welcome { padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: max(20px, env(safe-area-inset-bottom)); gap: 24px; }
  .actions { gap: 10px; }
  .action { height: 52px; flex-basis: 52px; }
}

@media (orientation: landscape) and (min-width: 480px) and (max-height: 500px) {
  body { padding: 0; }
  .welcome { max-width: 820px; height: 100vh; height: 100dvh; padding-inline: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: center; gap: 24px; border: 0; border-radius: 0; box-shadow: none; }
  .header { grid-column: 1 / -1; }
  .football-art { width: min(100%, 360px, calc(133.333vh - 133.333px)); width: min(100%, 360px, calc(133.333dvh - 133.333px)); }
}

@media (max-height: 500px) {
  .wechat-guide { padding-top: calc(max(12px, env(safe-area-inset-top)) + 56px); }
  .wechat-guide-content { padding: 0 24px 16px; }
  .wechat-guide-arrow { top: max(12px, env(safe-area-inset-top)); right: max(24px, env(safe-area-inset-right)); width: 36px; height: 40px; }
  .wechat-guide h2 { margin-bottom: 8px; font-size: 20px; }
  .wechat-guide p { font-size: 14px; line-height: 1.8; }
  .wechat-guide-close { width: 36px; height: 36px; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .action { transition: none; }
}
