/* how-to-play.css: 让how-to-play.html拥有与index.html一致的背景、字体和毛玻璃效果 */

:root {
  --vh: 1vh;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: #000;
  color: #fff;
  font-size: 12px;
  line-height: 1.42857143;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0; /* Ensure full coverage */
  bottom: 0; /* Ensure full coverage */
  background-image: var(--wicked-bg, url('bg1.jpg')); /* Use CSS variable for consistency, fallback to bg1.jpg */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  transition: background-image 0.5s ease-in-out;
}

.container {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.frosted-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
  padding: 0 10px;
}

.frosted-header h1 {
  color: rgba(255,255,255,0.9);
  font-size: 30px;
  font-weight: bold;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.frosted-panel {
  margin: 0 auto;
  padding: 32px 24px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.95);
  max-width: 600px;
  width: 100%;
}

.content-section {
  margin-bottom: 32px;
}

.content-section h2 {
  color: #fff;
  font-size: 1.5em;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-section p, .content-section ol, .content-section ul {
  color: rgba(255,255,255,0.95);
  font-size: 1em;
}

.faq-item {
  margin-bottom: 1.2em;
}
.faq-question {
  font-weight: bold;
  color: #6cf;
  margin-bottom: 0.2em;
}

.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-shrink: 0; /* 防止footer被压缩 */
}

.footer .controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.footer .btn-new, 
.footer .btn-undo {
  margin-right: 0; /* 移除旧的右边距 */
}

.nav-link {
  color: #6cf;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  margin-left: 18px;
  transition: color 0.2s;
}
.nav-link:hover {
  color: #fff;
}

@media screen and (max-width: 600px) {
  .frosted-panel {
    padding: 16px 6px;
    max-width: 98vw;
  }
  .frosted-header h1 {
    font-size: 30px;
  }
}

.scroll-wrapper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 桌面与大屏：全屏渐变背景+内容区白色磨砂卡片 */
@media (min-width: 768px) {
  body {
    background: #222;
  }
  body::before {
    background-image: var(--wicked-bg, url('bg1.jpg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(0px);
    opacity: 1;
  }
  .container {
    background: rgba(255,255,255,0.18);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    max-width: 480px;
    margin: 48px auto;
    padding: 32px 32px 24px 32px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }
  .frosted-panel {
    padding: 32px 40px;
    border-radius: 16px;
  }
  .frosted-header {
    padding: 32px 40px 16px 40px;
    border-radius: 16px 16px 0 0;
  }
  .footer {
    padding: 24px 40px;
    border-radius: 0 0 16px 16px;
  }
  body {
    font-size: 20px;
  }
  h1, h2 {
    font-size: 2.2em;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 900px;
  }
  body {
    font-size: 22px;
  }
} 