* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  -ms-overflow-style: scrollbar;
  touch-action: manipulation;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.65;
  padding-bottom: env(safe-area-inset-bottom);
}


.site-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 8px;
}

.kicker {
  margin: 0;
  color: #93c5fd;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 6px 0 8px;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  color: #f8fafc;
}

.lead {
  margin: 0;
  color: #cbd5e1;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
}

.player-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.status {
  margin: 0;
  color: #bfdbfe;
  font-weight: 600;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-btn {
  border: 1px solid #334155;
  background: #0b1220;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tool-btn:hover,
.tool-btn:focus-visible {
  border-color: #60a5fa;
  background: #111d33;
  transform: translateY(-1px);
}

.tool-btn[aria-pressed='true'] {
  border-color: #22c55e;
  color: #bbf7d0;
}

.player-shell {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #334155;
  background: #020617;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
  user-select: none;
  -webkit-user-select: none;
}


#game-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: min(78vh, 820px);
  border: 0;
  background: #000;
}

.player-shell:fullscreen,
.player-shell:-webkit-full-screen {
  width: 100vw;
  height: 100dvh;
  border-radius: 0;
}

.player-shell:fullscreen #game-frame,
.player-shell:-webkit-full-screen #game-frame {
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
}


.start-btn {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  cursor: pointer;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(14, 165, 233, 0.88));
  backdrop-filter: blur(2px);
}

.start-btn:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: -6px;
}

.player-shell.playing .start-btn {
  display: none;
}

.tip {
  margin: 10px 4px 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

.seo-content {
  margin-top: 24px;
  padding: 18px;
  background: #111827;
  border: 1px solid #334155;
  border-radius: 12px;
}

.seo-content h2 {
  margin: 18px 0 10px;
  color: #bfdbfe;
  font-size: clamp(1.04rem, 2vw, 1.3rem);
}

.seo-content h2:first-child {
  margin-top: 0;
}

.seo-content p {
  margin: 0 0 10px;
  color: #d1d5db;
}

.quick-start {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0b1220;
}

.quick-start h2 {
  margin: 0 0 10px;
  color: #bfdbfe;
  font-size: 1.1rem;
}

.quick-start ul {
  margin: 0;
  padding-left: 20px;
  color: #cbd5e1;
}

.quick-start li {
  margin-bottom: 6px;
}

.ad-section {
  margin-top: 20px;
  padding: 12px;
  border: 1px solid #334155;
  border-radius: 12px;
  background: #0b1220;
  overflow: hidden;
}

.ad-section > div[id^='container-'] {
  min-height: 90px;
}

.quick-links {
  margin: 20px 0 12px;
}


.quick-links a {
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 600;
}


.quick-links a:hover,
.quick-links a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-header {
    padding-top: 14px;
  }

  .container {
    padding: 12px;
  }

  .player-toolbar {
    align-items: stretch;
  }

  .toolbar-actions {
    width: 100%;
  }

  .tool-btn {
    flex: 1;
  }

  .seo-content {
    padding: 14px;
  }

  #game-frame {
    aspect-ratio: 9 / 16;
    min-height: 72dvh;
  }

  .player-shell:fullscreen,
  .player-shell:-webkit-full-screen {
    height: 100dvh;
  }
}


