/* 基础设定 */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #0f172a; /* slate-900 */
  background: #bbc5f8;
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* 头部 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #7e22ce;
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc; /* near white */
  font-weight: 800;
  letter-spacing: 0.6px;
}
.brand-text {
  text-transform: lowercase;
  font-size: clamp(18px, 3.6vw, 24px);
}
.brand-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: none;
}

/* 主体 */
.main { padding: 28px 0 56px; }
.page-title {
  margin: 18px 0 22px;
  font-size: clamp(22px, 4.8vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #7e22ce;
}

.game-embed { margin-top: 8px; }
.embed-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.10), 0 2px 6px rgba(2, 6, 23, 0.06);
  background: #0b1220;
}
.embed-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.fs-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  appearance: none;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18);
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}
.fs-close:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(2, 6, 23, 0.22); }
.fs-close:active { transform: translateY(0); box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18); }
.fs-close:focus-visible { outline: 2px solid rgba(15, 23, 42, 0.36); outline-offset: 2px; }
/* 移除右下角浮动全屏按钮（已由右上角按钮替代） */
/* .fab-fullscreen { display: none; } */
/* hint removed per request */

/* 右下角进入全屏按钮（非全屏时显示） */
.fab-fullscreen {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18);
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}
.fab-fullscreen:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(2, 6, 23, 0.22); }
.fab-fullscreen:active { transform: translateY(0); box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18); }
.fab-fullscreen:focus-visible { outline: 2px solid rgba(15, 23, 42, 0.36); outline-offset: 2px; }

/* 全屏时隐藏右下角进入全屏按钮，同时显示右上角 Close */
.embed-wrapper.is-fullscreen .fab-fullscreen { display: none; }
.embed-wrapper.is-fullscreen .fs-close { display: inline-flex; }

/* 兼容浏览器原生 :fullscreen 选择器 */
.embed-wrapper:fullscreen .fab-fullscreen { display: none; }
.embed-wrapper:fullscreen .fs-close { display: inline-flex; }

/* 移除下方工具栏的旧样式（已改为悬浮按钮） */

/* 关于与 FAQ */
.game-info, .faq {
  margin-top: 28px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.04);
}
.game-info h2, .faq h2 {
  margin: 0 0 12px;
  font-size: clamp(18px, 3.6vw, 22px);
  color: #7e22ce;
}
.game-info h3 {
  margin: 24px 0 12px 0;
  font-size: clamp(16px, 3.2vw, 20px);
  color: #7e22ce;
  font-weight: 700;
}
.game-info h3:first-of-type {
  margin-top: 16px;
}
.feature-list {
  margin: 10px 0 0 18px;
}
.feature-list li { line-height: 1.7; }

.gameplay-list {
  margin: 10px 0 0 18px;
  counter-reset: gameplay-counter;
}
.gameplay-list li { 
  line-height: 1.7; 
  margin-bottom: 8px;
}
.gameplay-list li::marker {
  color: #7e22ce;
  font-weight: 600;
}

.tools-list {
  margin: 8px 0 0 20px;
  list-style: none;
}
.tools-list li {
  position: relative;
  padding-left: 16px;
  line-height: 1.6;
}
.tools-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #7e22ce;
  font-weight: bold;
}

.faq details {
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
  padding: 12px 0;
}
.faq details:first-of-type { border-top: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq details[open] summary { color: #334155; }

/* 页脚 */
.site-footer {
  padding: 24px 0 36px;
  color: #64748b; /* slate-500 */
  text-align: center;
}

/* 隐藏但可读的标题供无障碍用途 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (max-width: 640px) {
  .header-inner { height: 56px; }
  .embed-hint { font-size: 12px; }
  .game-info, .faq { padding: 14px 14px; }
  .toolbar-title { font-size: 14px; }
  .icon-btn { width: 36px; height: 36px; }
}


