/**
 * WordPulse - 60s Arcade Honeycomb Blitz Stylesheet
 */
body {
  margin: 0; padding: 0;
  background-color: #f4f3ff;
  font-family: 'Clear Sans', 'Helvetica Neue', Arial, sans-serif;
  color: #1e293b;
}

header { margin: 0 auto; text-align: center; padding: 10px 0; }
.responsive { max-width: 90%; height: auto; margin: 0 auto; display: block; }

.game-title {
  text-align: center; margin: 10px 0 4px 0;
  font-family: 'Fredoka', cursive, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700; font-size: 32px; color: #0f172a;
}

.game-subtitle {
  text-align: center; margin: 0 0 12px 0;
  font-size: 0.95rem; color: #64748b; font-weight: 500;
}

#wordpulse-container {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 540px; margin: 0 auto 22px auto; padding: 0 12px; box-sizing: border-box;
}

.mode-switch {
  display: flex; gap: 8px; margin-bottom: 10px;
}

.mode-tab {
  background: #ffffff; border: 1.5px solid #c7d2fe; border-radius: 12px;
  padding: 7px 16px; font-family: 'Fredoka', sans-serif; font-size: 0.9rem; font-weight: 700;
  color: #4f46e5; cursor: pointer; transition: all 0.15s ease;
}
.mode-tab.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5); color: #ffffff; border-color: #4f46e5;
}

.pulse-hud {
  width: 100%; max-width: 480px; background: #ffffff;
  border: 1.5px solid #c7d2fe; border-radius: 16px; padding: 12px 16px;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.08); box-sizing: border-box; margin-bottom: 8px;
}

.pulse-hud-row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}

.hud-stat { display: flex; flex-direction: column; align-items: center; }
.hud-stat span { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; color: #64748b; }
.hud-stat strong { font-family: 'Fredoka', sans-serif; font-size: 1.3rem; color: #4f46e5; }
.hud-stat strong.timer { color: #ea580c; }

.timer-bar {
  width: 100%; height: 10px; background: #e0e7ff; border-radius: 99px; overflow: hidden;
}

.timer-fill {
  height: 100%; width: 100%; background: linear-gradient(90deg, #6366f1, #ec4899);
  border-radius: 99px; transition: width 0.1s linear;
}
.timer-fill.low { background: linear-gradient(90deg, #ef4444, #f97316); }

.fever-banner {
  display: none; width: 100%; max-width: 480px; text-align: center;
  background: linear-gradient(90deg, #f59e0b, #ea580c, #f59e0b); color: #ffffff;
  font-family: 'Fredoka', sans-serif; font-size: 0.95rem; font-weight: 700;
  padding: 5px 12px; border-radius: 10px; margin-bottom: 6px; box-sizing: border-box;
}
.fever-banner.active { display: block; }

.pulse-toast-wrap { height: 30px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.pulse-toast {
  opacity: 0; transition: all 0.18s ease; font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem; font-weight: 600; padding: 4px 14px; border-radius: 12px; background: #0f172a; color: #ffffff;
}
.pulse-toast.show { opacity: 1; }
.pulse-toast.success { background: #059669; }
.pulse-toast.fever { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.pulse-toast.error { background: #dc2626; }

.word-input-display {
  min-height: 44px; display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka', sans-serif; font-size: 2rem; font-weight: 700; letter-spacing: 2px;
  margin-bottom: 10px;
}
.placeholder { font-size: 1rem; font-weight: 500; color: #94a3b8; letter-spacing: 0; }
.ch-center { color: #ec4899; }
.ch-outer { color: #0f172a; }

/* 7-Hexagon Electric Hive */
.hive-board {
  position: relative; width: 280px; height: 266px; margin: 4px auto 14px auto; user-select: none;
}

.hex-tile {
  position: absolute; width: 88px; height: 78px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  border: none; cursor: pointer;
  font-family: 'Fredoka', sans-serif; font-size: 1.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.1s ease;
}
.hex-tile:active { transform: scale(0.92); }
.hex-tile.center {
  background: linear-gradient(135deg, #f472b6, #db2777); color: #ffffff; left: 96px; top: 94px;
}
.hex-tile.outer {
  background: linear-gradient(135deg, #312e81, #1e1b4b); color: #e0e7ff;
}
.hex-tile.pos-0 { left: 96px; top: 10px; }
.hex-tile.pos-1 { left: 168px; top: 52px; }
.hex-tile.pos-2 { left: 168px; top: 136px; }
.hex-tile.pos-3 { left: 96px; top: 178px; }
.hex-tile.pos-4 { left: 24px; top: 136px; }
.hex-tile.pos-5 { left: 24px; top: 52px; }

.pulse-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.pulse-btn {
  background: #ffffff; border: 1.5px solid #c7d2fe; border-radius: 24px;
  padding: 10px 20px; font-family: 'Fredoka', sans-serif; font-size: 0.98rem; font-weight: 600; color: #312e81; cursor: pointer;
}
.pulse-btn.primary { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #ffffff; border-color: #4f46e5; }

.mini-bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.mini-btn {
  background: #ffffff; border: 1.5px solid #e0e7ff; border-radius: 10px;
  padding: 7px 12px; font-family: 'Fredoka', sans-serif; font-size: 0.85rem; font-weight: 600; color: #4338ca; cursor: pointer;
}

.found-box {
  width: 100%; max-width: 480px; background: #ffffff;
  border: 1.5px solid #c7d2fe; border-radius: 16px; padding: 12px 14px; box-sizing: border-box;
  display: flex; flex-wrap: wrap; gap: 7px; min-height: 46px; align-items: center;
}
.wp-pill {
  background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe;
  font-family: 'Fredoka', sans-serif; font-size: 0.82rem; font-weight: 600; padding: 4px 10px; border-radius: 10px;
}
.empty-msg { font-size: 0.86rem; color: #94a3b8; }

.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.72); backdrop-filter: blur(5px); z-index: 999;
  align-items: center; justify-content: center; padding: 18px;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: #ffffff; border: 2px solid #6366f1; border-radius: 22px; padding: 28px 24px;
  text-align: center; max-width: 340px; width: 100%; box-shadow: 0 22px 48px rgba(15, 23, 42, 0.35);
}
.modal-emoji { font-size: 3rem; margin-bottom: 6px; }
.modal-content h3 { font-family: 'Fredoka', sans-serif; font-size: 1.65rem; font-weight: 700; color: #4f46e5; margin: 0 0 8px 0; }
.modal-content p { color: #64748b; font-size: 0.96rem; margin: 0 0 20px 0; }
.btn-primary {
  width: 100%; background: linear-gradient(135deg, #6366f1, #4f46e5); color: #ffffff; border: none;
  border-radius: 14px; padding: 13px 24px; font-family: 'Fredoka', sans-serif; font-size: 1.15rem; font-weight: 700; cursor: pointer;
}

/* SEO Section */
article.seo-section {
  max-width: 600px; margin: 30px auto 45px auto; padding: 24px 22px; background: #ffffff;
  border-radius: 20px; box-shadow: 0 8px 30px rgba(30, 41, 59, 0.07); border: 1px solid #c7d2fe;
  box-sizing: border-box; color: #334155; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; text-align: left;
}
article.seo-section .section-header { margin-top: 2rem; margin-bottom: 0.8rem; }
article.seo-section .section-header:first-of-type { margin-top: 0.2rem; }
article.seo-section .seo-tag {
  display: inline-flex; align-items: center; gap: 5px; font-family: 'Fredoka', sans-serif; font-size: 0.8rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; background: #eef2ff; color: #4f46e5;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 6px;
}
article.seo-section h2 { font-family: 'Fredoka', sans-serif; font-size: 1.45rem; font-weight: 600; color: #0f172a; margin: 4px 0 10px 0; }
article.seo-section p { font-size: 0.98rem; line-height: 1.7; margin: 0 0 1rem 0; color: #475569; }
article.seo-section .steps-container { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 20px 0; }
article.seo-section .step-card { display: flex; align-items: flex-start; gap: 14px; background: #f8fafc; border: 1px solid #e0e7ff; border-radius: 12px; padding: 14px 16px; }
article.seo-section .step-number { flex-shrink: 0; width: 28px; height: 28px; background: linear-gradient(135deg, #6366f1, #4f46e5); color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 0.95rem; }
article.seo-section .step-content { flex: 1; font-size: 0.94rem; line-height: 1.55; color: #475569; }
article.seo-section .step-content strong { display: block; color: #0f172a; margin-bottom: 2px; font-size: 0.98rem; font-weight: 700; }
article.seo-section .faq-container { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
article.seo-section .faq-card { background: #f8fafc; border: 1px solid #e0e7ff; border-radius: 12px; padding: 14px 16px; }
article.seo-section .faq-card h3 { font-family: 'Fredoka', sans-serif; margin: 0 0 6px 0; font-size: 1.02rem; font-weight: 600; color: #1e293b; display: flex; align-items: center; gap: 8px; }
article.seo-section .faq-card p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: #475569; }

@media (max-width: 600px) {
  .game-title { font-size: 26px; }
  article.seo-section { margin: 20px 10px 35px 10px; padding: 18px 14px; }
}

.ad-banner-wrapper { max-width: 728px; width: 95%; min-height: 90px; margin: 15px auto; text-align: center; overflow: hidden; box-sizing: border-box; }
.ad-banner-top { margin-top: 10px; margin-bottom: 15px; }
.ad-banner-bottom { margin-top: 25px; margin-bottom: 25px; }
.side-banner { display: none; position: fixed; top: 100px; width: 160px; height: 600px; z-index: 40; text-align: center; }
.side-banner-left { left: 12px; }
.side-banner-right { right: 12px; }
@media (min-width: 1140px) { .side-banner { display: block; } }
