/* ==========================================================================
   blossomwordgame.today — Clean Human Editorial & Merriam-Inspired Stylesheet
   Generous breathing room, clear visual hierarchy, semantic dropdown nav,
   and full-width containerless mobile layout for Google AdSense Auto Ads.
   ========================================================================== */
:root {
  --bwt-navy: #162a4a;
  --bwt-navy-dark: #0e1c36;
  --bwt-sky-bg: #f6f9fb;
  --bwt-garden-top: #e2f2fa;
  --bwt-garden-bottom: #eef7e8;
  --bwt-petal-pink: #f48fb1;
  --bwt-petal-pink-border: #d81b60;
  --bwt-center-gold: #ffd54f;
  --bwt-gold-accent: #f59e0b;
  --bwt-stem-green: #2e7d32;
  --bwt-terracotta: #c85a32;
  --bwt-terracotta-dark: #9a3b1a;
  --bwt-terracotta-light: #fdf3ef;
  --bwt-surface: #ffffff;
  --bwt-surface-soft: #f8fbfd;
  --bwt-text: #1c2838;
  --bwt-muted: #526478;
  --bwt-border: #dce8f0;
  --bwt-radius: 14px;
  --bwt-font-sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bwt-font-serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--bwt-font-sans);
  color: var(--bwt-text);
  background-color: var(--bwt-sky-bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- 1. Clean Header with Semantic Dropdowns ---------- */
.bwt-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--bwt-navy-dark);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bwt-header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bwt-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.bwt-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bwt-petal-pink);
  border: 2px solid var(--bwt-center-gold);
  color: var(--bwt-navy-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
}

/* Desktop Navigation with Semantic Dropdowns */
.bwt-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.bwt-nav-link,
.bwt-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: #e8f1f8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.bwt-nav-link:hover,
.bwt-dd-btn:hover,
.bwt-nav-link[aria-current="page"],
.bwt-dd.bwt-open .bwt-dd-btn {
  background: rgba(255, 255, 255, 0.12);
  color: var(--bwt-center-gold);
}

.bwt-dd {
  position: relative;
}

.bwt-dd-caret {
  font-size: 0.72rem;
  opacity: 0.8;
  transition: transform 0.18s ease;
}

.bwt-dd.bwt-open .bwt-dd-caret {
  transform: rotate(180deg);
}

.bwt-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--bwt-border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 14px 34px rgba(14, 28, 54, 0.18);
  z-index: 1010;
}

.bwt-dd-menu-right {
  left: auto;
  right: 0;
}

.bwt-dd.bwt-open .bwt-dd-menu {
  display: block;
}

.bwt-dd-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--bwt-navy-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
  line-height: 1.35;
}

.bwt-dd-menu a small {
  display: block;
  font-size: 0.78rem;
  color: var(--bwt-muted);
  font-weight: 500;
  margin-top: 2px;
}

.bwt-dd-menu a:hover,
.bwt-dd-menu a[aria-current="page"] {
  background: #f0f7fc;
  color: #c2185b;
}

/* Hamburger button (Mobile & Tablet) */
.bwt-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  flex: none;
}

/* Always-Visible Header CTA for Petal Wheel Game (Outside Hamburger Menu) */
.bwt-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
  flex: none;
}

.bwt-header-pw-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px 0 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd54f 0%, #ffb300 100%);
  color: #0b1830 !important;
  text-decoration: none !important;
  font-weight: 900;
  font-size: 0.88rem;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 0 rgba(255, 213, 79, 0.65);
  animation: bwt-pw-pulse 2.2s infinite;
  position: relative;
  white-space: nowrap;
  transition: transform 0.16s ease;
}

.bwt-header-pw-cta:hover {
  transform: scale(1.05);
}

.bwt-header-pw-cta img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  animation: bwt-pw-spin 14s linear infinite;
  flex: none;
}

.bwt-pw-new-pill {
  background: #d81b60;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  animation: bwt-pw-bounce 1.8s ease-in-out infinite;
}

/* Floating Bottom-Right Daily Challenge Launcher (Always Visible on Scroll) */
.bwt-pw-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0b1830 0%, #1d3557 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  border: 2.5px solid #ffd54f;
  box-shadow: 0 10px 28px rgba(11, 24, 48, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bwt-pw-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 32px rgba(11, 24, 48, 0.45);
}

.bwt-pw-fab img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  animation: bwt-pw-spin 12s linear infinite;
}

.bwt-pw-fab-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.bwt-pw-fab-text small {
  font-size: 0.66rem;
  color: #ffd54f;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bwt-pw-fab-text strong {
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 900;
}

body[data-bwt-page="petal-wheel"] .bwt-pw-fab {
  display: none;
}

@keyframes bwt-pw-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 213, 79, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 213, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 213, 79, 0); }
}

@keyframes bwt-pw-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bwt-pw-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.bwt-toggle svg {
  width: 24px;
  height: 24px;
}

.bwt-mobile-nav {
  display: none;
  background: var(--bwt-navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 20px 24px;
}

.bwt-mobile-nav.bwt-open {
  display: block;
}

.bwt-mobile-group {
  margin-bottom: 16px;
}

.bwt-mobile-group:last-child {
  margin-bottom: 0;
}

.bwt-mobile-heading {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bwt-center-gold);
  font-weight: 800;
  margin: 0 0 6px 10px;
}

.bwt-mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: 8px;
}

.bwt-mobile-nav a:hover,
.bwt-mobile-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  color: var(--bwt-center-gold);
}

/* ---------- 2. Sub-Bar: PWA Install + Social Share ---------- */
.bwt-subbar {
  background: #ffffff;
  border-bottom: 1px solid var(--bwt-border);
  width: 100%;
}

.bwt-subbar-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 8px 24px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bwt-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px 0 8px;
  border: 1px solid #d81b60;
  border-radius: 999px;
  background: #fff0f5;
  color: #ad1457;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.bwt-install-btn:hover {
  background: #fce4ec;
}

.bwt-install-btn img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.bwt-install-btn .bwt-short {
  display: none;
}

.bwt-installed .bwt-install-btn {
  display: none;
}

.bwt-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.bwt-share-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--bwt-muted);
  margin-right: 2px;
}

.bwt-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  position: relative;
  transition: opacity 0.15s ease;
}

.bwt-share a:hover {
  opacity: 0.88;
}

.bwt-share svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.bwt-s-fb { background: #1877f2; }
.bwt-s-x  { background: #14171a; }
.bwt-s-wa { background: #25d366; }
.bwt-s-tg { background: #229ed9; }
.bwt-s-rd { background: #ff4500; }
.bwt-s-cp { background: #526478; }
.bwt-s-nt { background: #d81b60; display: none !important; }
.bwt-has-native .bwt-s-nt { display: inline-flex !important; }

.bwt-copied::after {
  content: attr(data-ok);
  position: absolute;
  top: 38px;
  right: 0;
  white-space: nowrap;
  background: var(--bwt-navy-dark);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 1002;
}

/* PWA Sheet */
.bwt-sheet {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(14, 28, 54, 0.55);
}

.bwt-sheet.bwt-open {
  display: flex;
}

.bwt-sheet-box {
  width: 100%;
  max-width: 440px;
  margin: 0 16px 16px;
  background: #ffffff;
  color: var(--bwt-text);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.bwt-sheet-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bwt-navy-dark);
  display: flex;
  gap: 10px;
  align-items: center;
}

.bwt-sheet-title img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.bwt-sheet-box ol {
  margin: 0 0 16px 20px;
  padding: 0;
}

.bwt-sheet-box li {
  margin: 8px 0;
}

.bwt-sheet-box button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--bwt-navy);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

/* ---------- 3. Spacious Main Content Layout (Human Editorial Look) ---------- */
.bwt-main {
  max-width: 1020px;
  width: 100%;
  margin: 0 auto;
  padding: 2.25rem 24px 4.5rem;
  flex: 1;
}

/* Clean Editorial Title Section (No boxy clutter) */
.bwt-hero {
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bwt-border);
}

.bwt-date-line {
  font-size: 0.88rem;
  font-weight: 700;
  color: #c2185b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
  display: block;
}

.bwt-hero h1 {
  font-family: var(--bwt-font-serif);
  margin: 0 0 0.85rem 0;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  line-height: 1.22;
  color: var(--bwt-navy-dark);
  font-weight: 700;
}

.bwt-lead {
  margin: 0;
  color: var(--bwt-muted);
  font-size: 1.08rem;
  max-width: 820px;
  line-height: 1.7;
}

/* Generous Section Spacing */
.bwt-card {
  background: var(--bwt-surface);
  border: 1px solid var(--bwt-border);
  border-radius: var(--bwt-radius);
  padding: 2.1rem 2.25rem;
  margin-bottom: 2.5rem;
}

.bwt-card h2 {
  font-family: var(--bwt-font-serif);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--bwt-navy-dark);
  line-height: 1.3;
}

.bwt-card h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
  color: var(--bwt-navy);
}

.bwt-card p {
  margin-top: 0;
  margin-bottom: 1.15rem;
}

.bwt-card ul,
.bwt-card ol {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  padding-left: 1.4rem;
}

.bwt-card li {
  margin-bottom: 0.65rem;
}

/* ---------- 4. Interactive Blossom Board & +5 Petal Panel ---------- */
.bwt-dashboard-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2.25rem;
  align-items: start;
  margin-bottom: 2.75rem;
}

.bwt-mw-game-panel {
  background: linear-gradient(180deg, var(--bwt-garden-top) 0%, #f1f9fd 65%, var(--bwt-garden-bottom) 100%);
  border: 1px solid #bfdced;
  border-radius: var(--bwt-radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.bwt-mw-rankbar {
  background: #ffffff;
  border: 1px solid #cce2f0;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.25rem;
}

.bwt-mw-rank-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--bwt-navy);
  margin-bottom: 0.4rem;
}

.bwt-mw-track {
  height: 8px;
  background: #e1eef6;
  border-radius: 999px;
  overflow: hidden;
}

.bwt-mw-fill {
  height: 100%;
  width: 86%;
  background: linear-gradient(90deg, #43a047 0%, #ffb300 60%, #d81b60 100%);
  border-radius: 999px;
}

/* Flower Stage with Extra Breathing Room */
.bwt-flower-stage {
  position: relative;
  width: 280px;
  height: 295px;
  margin: 0.75rem auto 1.25rem;
}

.bwt-flower-stem {
  position: absolute;
  bottom: 0;
  left: 134px;
  width: 12px;
  height: 145px;
  background: linear-gradient(90deg, #2e7d32, #43a047);
  border-radius: 8px;
  z-index: 1;
}

.bwt-flower-leaf-l,
.bwt-flower-leaf-r {
  position: absolute;
  bottom: 24px;
  width: 44px;
  height: 22px;
  background: #43a047;
  border-radius: 40px 0 40px 0;
  z-index: 1;
}

.bwt-flower-leaf-l {
  left: 94px;
  transform: rotate(-25deg);
}

.bwt-flower-leaf-r {
  left: 142px;
  border-radius: 0 40px 0 40px;
  transform: rotate(25deg);
}

.bwt-petal-btn {
  position: absolute;
  width: 82px;
  height: 82px;
  border: 2.5px solid var(--bwt-petal-pink-border);
  background: radial-gradient(circle at 35% 35%, #fff0f5 0%, var(--bwt-petal-pink) 80%);
  color: var(--bwt-navy-dark);
  font-size: 1.55rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 4px 12px rgba(216, 27, 96, 0.16);
  padding: 0;
  z-index: 2;
}

.bwt-petal-btn span.bwt-bonus-tag {
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.85);
  color: var(--bwt-navy-dark);
  padding: 1px 6px;
  border-radius: 999px;
  margin-top: -2px;
}

.bwt-petal-btn:hover {
  transform: scale(1.06);
}

.bwt-petal-btn.active-bonus {
  background: radial-gradient(circle at 35% 35%, #fffef5 0%, #ffd54f 68%, #ffb300 100%);
  border-color: #d97706;
  color: var(--bwt-navy-dark);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.35), 0 6px 16px rgba(217, 119, 6, 0.25);
  transform: scale(1.06);
  z-index: 3;
}

.bwt-petal-btn.active-bonus span.bwt-bonus-tag {
  background: #b45309;
  color: #ffffff;
}

.bwt-center-node {
  position: absolute;
  top: 98px;
  left: 101px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fffbeb 0%, var(--bwt-center-gold) 75%, #f59e0b 100%);
  color: var(--bwt-navy-dark);
  border: 3.5px solid var(--bwt-navy);
  font-size: 1.65rem;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow: 0 4px 14px rgba(14, 28, 54, 0.22);
}

.bwt-center-node small {
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bwt-navy-dark);
  font-weight: 800;
  margin-top: -4px;
}

.bwt-p-0 { top: 10px;  left: 99px;  border-radius: 50% 50% 15% 50%; }
.bwt-p-1 { top: 53px;  left: 176px; border-radius: 50% 50% 50% 15%; }
.bwt-p-2 { top: 138px; left: 176px; border-radius: 15% 50% 50% 50%; }
.bwt-p-3 { top: 181px; left: 99px;  border-radius: 15% 50% 50% 50%; }
.bwt-p-4 { top: 138px; left: 22px;  border-radius: 50% 15% 50% 50%; }
.bwt-p-5 { top: 53px;  left: 22px;  border-radius: 50% 50% 15% 50%; }

/* 12 Flower Pots Shelf */
.bwt-pots-shelf {
  background: #ffffff;
  border: 1px solid #cce2f0;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1.1rem;
}

.bwt-pots-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bwt-terracotta-dark);
  margin: 0 0 0.65rem;
}

.bwt-pots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bwt-pot-item {
  background: var(--bwt-terracotta-light);
  border-top: 3px solid var(--bwt-terracotta);
  border-radius: 4px 4px 8px 8px;
  padding: 6px 6px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bwt-navy-dark);
}

/* ---------- 5. Mode Switcher, Spoilers & Tables ---------- */
.bwt-mode-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 2rem;
  background: #e6f0f7;
  padding: 6px;
  border-radius: 12px;
}

.bwt-mode-btn {
  border: none;
  background: transparent;
  color: var(--bwt-navy);
  padding: 0.65rem 1.25rem;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.93rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bwt-mode-btn.active {
  background: #ffffff;
  color: var(--bwt-navy-dark);
  box-shadow: 0 2px 8px rgba(14, 28, 54, 0.1);
}

.bwt-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 1rem 0;
}

.bwt-stat-box {
  background: #ffffff;
  border: 1px solid #cce2f0;
  border-radius: 10px;
  padding: 0.7rem 0.5rem;
  text-align: center;
}

.bwt-stat-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--bwt-navy-dark);
  line-height: 1.2;
}

.bwt-stat-lbl {
  font-size: 0.76rem;
  color: var(--bwt-muted);
  font-weight: 700;
}

/* Custom Solver Form */
.bwt-solver-form {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1rem;
  align-items: end;
  background: var(--bwt-surface-soft);
  padding: 1.35rem;
  border-radius: 12px;
  border: 1px solid var(--bwt-border);
  margin-bottom: 1.25rem;
}

.bwt-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--bwt-navy);
  margin-bottom: 0.4rem;
}

.bwt-field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 1.08rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 1.5px solid #9ab7cc;
  border-radius: 8px;
  background: #ffffff;
  color: var(--bwt-navy-dark);
}

.bwt-field input:focus {
  border-color: var(--bwt-navy);
  outline: none;
}

.bwt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bwt-navy);
  color: #ffffff;
  border: none;
  padding: 0.78rem 1.4rem;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.bwt-btn:hover {
  background: #c2185b;
}

.bwt-btn-gold {
  background: var(--bwt-center-gold);
  color: var(--bwt-navy-dark);
}

.bwt-btn-gold:hover {
  background: #fbbf24;
}

/* Spacious Spoiler Accordions */
.bwt-spoiler {
  border: 1px solid var(--bwt-border);
  border-radius: 12px;
  background: #ffffff;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.bwt-spoiler:last-child {
  margin-bottom: 0;
}

.bwt-spoiler summary {
  padding: 1.15rem 1.35rem;
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  background: var(--bwt-surface-soft);
  color: var(--bwt-navy-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}

.bwt-spoiler summary::-webkit-details-marker {
  display: none;
}

.bwt-spoiler summary::after {
  content: "Show Clues +";
  font-size: 0.8rem;
  background: var(--bwt-navy);
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  flex: none;
}

.bwt-spoiler[open] summary::after {
  content: "Hide −";
  background: var(--bwt-muted);
}

.bwt-spoiler-body {
  padding: 1.4rem 1.35rem;
  border-top: 1px solid var(--bwt-border);
}

/* Word Grids with Breathing Room */
.bwt-word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.bwt-word-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  background: var(--bwt-surface-soft);
  border: 1px solid var(--bwt-border);
  font-weight: 800;
  font-size: 0.96rem;
}

.bwt-word-pill.is-pangram {
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  color: var(--bwt-navy-dark);
}

.bwt-score-badge {
  background: #e6f0f7;
  color: var(--bwt-navy-dark);
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 800;
}

.bwt-word-pill.is-pangram .bwt-score-badge {
  background: #fef3c7;
  color: #92400e;
}

/* Clean Readable Tables */
.bwt-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.bwt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.bwt-table th,
.bwt-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--bwt-border);
}

.bwt-table th {
  background: var(--bwt-surface-soft);
  color: var(--bwt-navy-dark);
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Petal Wheel Game — Bright Botanical Garden Theme, Circular Rosco & Streaks
   ========================================================================== */
.bwt-rosco-box {
  background: linear-gradient(160deg, #e3f4fc 0%, #f4fbf7 52%, #e8f5e9 100%);
  color: var(--bwt-navy-dark);
  border: 2px solid #b3d9ec;
  border-radius: 18px;
  padding: 2.25rem;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(19, 41, 75, 0.08);
}

.bwt-pw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #cce2f0;
  margin-bottom: 1.5rem;
}

.bwt-pw-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bwt-pw-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  flex: none;
  box-shadow: 0 4px 12px rgba(19, 41, 75, 0.15);
}

.bwt-pw-id-badge {
  display: inline-block;
  background: var(--bwt-center-gold);
  color: var(--bwt-navy-dark);
  border: 1px solid #f59e0b;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.bwt-pw-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--bwt-navy-dark);
  font-weight: 900;
  line-height: 1.2;
}

.bwt-pw-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bwt-pw-sound-btn {
  background: #ffffff;
  color: var(--bwt-navy);
  border: 1.5px solid #b3d9ec;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
}

.bwt-pw-sound-btn:hover {
  background: #f0f8fc;
  border-color: var(--bwt-navy);
}

/* 2-Column Layout inside Petal Wheel Game */
.bwt-pw-arena {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 820px) {
  .bwt-pw-arena {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Circular 360° 7-Petal Rosco Ring (Light Garden Look) */
.bwt-rosco-circle-stage {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
}

.bwt-rosco-track-ring {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 3px dashed #81c784;
  pointer-events: none;
}

.bwt-rosco-center-hub {
  position: absolute;
  top: 82px;
  left: 82px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf5 0%, #ffe082 100%);
  border: 3.5px solid var(--bwt-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 16px rgba(19, 41, 75, 0.14);
}

.bwt-rosco-center-hub strong {
  font-size: 1.45rem;
  color: var(--bwt-navy-dark);
  line-height: 1.1;
}

.bwt-rosco-center-hub small {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bwt-muted);
  font-weight: 800;
}

.bwt-rosco-node {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2.5px solid #d81b60;
  background: radial-gradient(circle at 35% 35%, #fff0f5 0%, #f48fb1 85%);
  color: var(--bwt-navy-dark);
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(216, 27, 96, 0.18);
  padding: 0;
}

/* 7 Circular Positions around center (130, 130) with radius 96px */
.bwt-rn-0 { top: 7px;   left: 103px; }
.bwt-rn-1 { top: 43px;  left: 178px; }
.bwt-rn-2 { top: 124px; left: 197px; }
.bwt-rn-3 { top: 193px; left: 145px; }
.bwt-rn-4 { top: 193px; left: 61px;  }
.bwt-rn-5 { top: 124px; left: 9px;   }
.bwt-rn-6 { top: 43px;  left: 28px;  }

.bwt-rosco-node.current {
  border-color: #d97706;
  background: radial-gradient(circle at 35% 35%, #fffef5 0%, #ffd54f 70%, #ffb300 100%);
  color: #0b1830;
  transform: scale(1.16);
  box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.38);
  z-index: 3;
}

.bwt-rosco-node.correct {
  background: #22c55e;
  border-color: #15803d;
  color: #ffffff;
}

.bwt-rosco-node.tried-correct {
  background: #f59e0b;
  border-color: #b45309;
  color: #ffffff;
}

.bwt-rosco-node.revealed {
  background: #ef4444;
  border-color: #b91c1c;
  color: #ffffff;
}

/* Clue & Input Console (Bright White Card) */
.bwt-pw-console {
  background: #ffffff;
  border: 1.5px solid #bfdced;
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: 0 4px 14px rgba(19, 41, 75, 0.05);
}

.bwt-pw-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.bwt-pw-input {
  flex: 1 1 180px;
  padding: 0.78rem 1rem;
  border-radius: 10px;
  border: 2px solid var(--bwt-navy);
  background: #f8fbfd;
  color: var(--bwt-navy-dark);
  font-size: 1.08rem;
  font-weight: 900;
  text-transform: uppercase;
}

/* Player Streak & Color History Panel */
.bwt-pw-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #cce2f0;
}

.bwt-pw-stat-item {
  background: #ffffff;
  border: 1px solid #cce2f0;
  border-radius: 10px;
  padding: 0.65rem 0.5rem;
  text-align: center;
}

.bwt-pw-stat-item strong {
  display: block;
  font-size: 1.3rem;
  color: var(--bwt-navy-dark);
  line-height: 1.2;
}

.bwt-pw-stat-item span {
  font-size: 0.74rem;
  color: var(--bwt-muted);
  font-weight: 700;
}

/* Completion & Social Share Card inside Petal Wheel */
.bwt-pw-victory-card {
  background: #ffffff;
  color: var(--bwt-navy-dark);
  border: 2.5px solid #22c55e;
  border-radius: 14px;
  padding: 1.35rem;
  margin-top: 1.25rem;
  text-align: center;
}

.bwt-pw-victory-card.is-defeat {
  border-color: #ef4444;
  background: #fffafa;
}

.bwt-pw-share-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

/* High-Click Home Promo Banner for Petal Wheel Game (Light Botanical Card) */
.bwt-pw-promo-cta {
  background: linear-gradient(135deg, #e3f4fc 0%, #fce4ec 100%);
  color: var(--bwt-navy-dark);
  border: 2px solid #f48fb1;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: 0 8px 22px rgba(216, 27, 96, 0.08);
}

/* Footer */
.bwt-footer {
  background: var(--bwt-navy-dark);
  color: #dbe8f4;
  padding: 3.25rem 24px 2.5rem;
  margin-top: auto;
  font-size: 0.92rem;
}

.bwt-footer-grid {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.25rem;
}

.bwt-footer h4 {
  color: var(--bwt-center-gold);
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bwt-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bwt-footer li {
  margin-bottom: 0.55rem;
}

.bwt-footer a {
  color: #dbe8f4;
  text-decoration: none;
}

.bwt-footer a:hover {
  color: var(--bwt-center-gold);
  text-decoration: underline;
}

.bwt-footer-legal {
  max-width: 1020px;
  margin: 2.25rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  color: #9cb3c9;
}

/* ==========================================================================
   6. MOBILE & TABLET: RESPONSIVE HAMBURGER + CONTAINERLESS ADSENSE AUTO-ADS
   ========================================================================== */
/* Tablet + mobile: hamburger menu (iPad landscape included) */
@media (max-width: 1100px) {
  .bwt-nav {
    display: none;
  }
  .bwt-toggle {
    display: inline-flex;
  }
  .bwt-header-actions {
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .bwt-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .bwt-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* CONTAINERLESS MOBILE DESIGN FOR ADSENSE AUTO-ADS */
  html {
    background-color: #ffffff;
  }

  .bwt-main {
    max-width: 100%;
    padding: 0 0 2.5rem 0;
  }

  .bwt-hero,
  .bwt-card,
  .bwt-mw-game-panel,
  .bwt-rosco-box {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: 10px solid #f0f5f9 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 1.75rem 20px !important;
    width: 100% !important;
  }

  .bwt-mode-bar {
    display: flex;
    border-radius: 0;
    margin: 0;
    padding: 10px 16px;
    background: #eef5fa;
  }

  .bwt-mode-btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .bwt-solver-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .bwt-header-inner,
  .bwt-subbar-inner {
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
  }
  .bwt-brand {
    font-size: 1.02rem;
    gap: 7px;
  }
  .bwt-brand-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  .bwt-header-pw-cta {
    height: 36px;
    padding: 0 10px 0 5px;
    font-size: 0.78rem;
    gap: 5px;
  }
  .bwt-header-pw-cta img {
    width: 24px;
    height: 24px;
  }
  .bwt-header-pw-cta .bwt-pw-cta-full {
    display: none;
  }
  .bwt-install-btn .bwt-full {
    display: none;
  }
  .bwt-install-btn .bwt-short {
    display: inline;
  }
  .bwt-share-label {
    display: none;
  }
  .bwt-footer-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   7. RESPONSIVE FIXES — header, share bar, Petal Wheel, floating button
   (nothing may be wider than the screen; overflow-x:hidden must never cut content)
   ========================================================================== */
.bwt-brand {
  min-width: 0;
  flex: 0 1 auto;
}
.bwt-brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bwt-dashboard-grid > *,
.bwt-pw-arena > *,
.bwt-share {
  min-width: 0;
}
.bwt-pw-controls {
  flex-wrap: wrap;
}
.bwt-mobile-nav {
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  /* Breadcrumb and promo banner also go edge-to-edge without touching the screen border */
  .bwt-main > nav[aria-label="Breadcrumb"] {
    padding: 12px 20px 0;
    margin-bottom: 0 !important;
  }
  .bwt-pw-promo-cta {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin: 0;
    padding: 1.5rem 20px;
  }
  .bwt-pw-promo-cta .bwt-btn,
  .bwt-mode-bar .bwt-btn {
    flex: 1 1 100%;
    width: 100%;
    white-space: normal !important;
    text-align: center;
  }
  /* Petal Wheel game */
  .bwt-pw-header {
    align-items: flex-start;
  }
  .bwt-pw-controls {
    width: 100%;
  }
  .bwt-pw-controls .bwt-btn {
    flex: 1 1 auto;
    text-align: center;
  }
  .bwt-pw-console {
    padding: 1.1rem;
  }
  .bwt-pw-input {
    flex: 1 1 100%;
    font-size: 16px; /* prevents iOS zoom on focus */
  }
  .bwt-pw-input-row .bwt-btn {
    flex: 1 1 auto;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
  .bwt-pw-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .bwt-pw-share-btns .bwt-btn {
    flex: 1 1 45%;
  }
  .bwt-field input {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .bwt-header-inner {
    min-height: 58px;
    gap: 6px;
  }
  .bwt-brand {
    font-size: 0.98rem;
    gap: 6px;
  }
  .bwt-brand-mid {
    display: none; /* "Blossom.today" on phones */
  }
  .bwt-header-actions {
    gap: 6px;
    margin-left: auto;
  }
  .bwt-header-pw-cta {
    height: 38px;
    padding: 0 8px 0 4px;
    font-size: 0.76rem;
    gap: 4px;
  }
  .bwt-header-pw-cta img {
    width: 26px;
    height: 26px;
  }
  .bwt-header-pw-cta .bwt-pw-cta-full {
    display: none;
  }
  .bwt-toggle {
    width: 42px;
    height: 42px;
  }
  /* Share bar: compact icons, only the essential networks (native share covers the rest) */
  .bwt-subbar-inner {
    padding: 6px 12px;
    gap: 8px;
  }
  .bwt-share {
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .bwt-share::-webkit-scrollbar {
    display: none;
  }
  .bwt-share a {
    width: 30px;
    height: 30px;
    flex: none;
  }
  .bwt-s-tg,
  .bwt-s-rd {
    display: none !important;
  }
  .bwt-install-btn {
    padding: 0 10px 0 6px;
    font-size: 0.8rem;
  }
  /* Floating Petal Wheel button: compact pill above the browser bar */
  .bwt-pw-fab {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 6px 12px 6px 6px;
    gap: 7px;
  }
  .bwt-pw-fab img {
    width: 32px;
    height: 32px;
  }
  .bwt-pw-fab-text small {
    font-size: 0.6rem;
  }
  .bwt-pw-fab-text strong {
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .bwt-header-pw-cta .bwt-pw-cta-label {
    display: none; /* icon + NEW only on very small phones */
  }
  .bwt-brand-icon {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 400px) {
  .bwt-subbar-inner {
    padding: 6px 10px;
    gap: 6px;
  }
  .bwt-install-btn {
    padding: 0 9px 0 5px;
    gap: 5px;
    font-size: 0.76rem;
  }
  .bwt-install-btn img {
    width: 20px;
    height: 20px;
  }
  .bwt-share {
    gap: 4px;
  }
  .bwt-share a {
    width: 28px;
    height: 28px;
  }
  .bwt-share svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 345px) {
  /* Very narrow phones: shrink the fixed-size boards instead of cutting them */
  .bwt-flower-stage,
  .bwt-rosco-circle-stage {
    transform: scale(0.88);
    transform-origin: top center;
    margin-bottom: -30px;
  }
}

/* Placeholder of the Petal Wheel input: readable, never cut on phones */
.bwt-pw-input::placeholder {
  text-transform: none;
  font-weight: 700;
  font-size: 0.92rem;
  opacity: 0.75;
}
.bwt-pw-input {
  min-width: 0;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  /* Phones: floating launcher becomes a round icon button so it never covers text or buttons */
  .bwt-pw-fab {
    padding: 5px;
    gap: 0;
    border-width: 2.5px;
  }
  .bwt-pw-fab img {
    width: 44px;
    height: 44px;
  }
  .bwt-pw-fab-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  /* Room under the footer so the floating button never hides the legal links */
  .bwt-footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 601px) and (max-width: 1100px) {
  .bwt-footer {
    padding-bottom: 6rem;
  }
}

/* Floating button hides itself while the game is on screen */
.bwt-pw-fab.bwt-fab-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
.bwt-pw-fab {
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.18s ease;
}

/* ==========================================================================
   8. PETAL WHEEL — "?" HOW-TO-PLAY BUTTON + MODAL
   ========================================================================== */
.bwt-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bwt-pw-help-btn {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--bwt-navy);
  background: var(--bwt-center-gold);
  color: var(--bwt-navy-dark);
  font: 900 1.2rem/1 var(--bwt-font-sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.bwt-pw-help-btn:hover { transform: scale(1.08); }
.bwt-pw-help-btn.bwt-help-new { animation: bwt-pw-pulse 1.8s infinite; }

.bwt-help {
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: none;
  border-radius: 20px;
  background: transparent;
  overflow: visible;
}
.bwt-help::backdrop {
  background: rgba(14, 28, 54, 0.6);
  backdrop-filter: blur(2px);
}
.bwt-help[open] { animation: bwt-help-in 0.22s ease-out; }
@keyframes bwt-help-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.bwt-help-box {
  position: relative;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  background: linear-gradient(180deg, #e3f4fc 0%, #ffffff 34%);
  color: var(--bwt-navy-dark);
  border-radius: 20px;
  padding: 1.4rem 1.35rem 1.25rem;
  box-shadow: 0 20px 50px rgba(14, 28, 54, 0.35);
  line-height: 1.45;
  font-size: 0.95rem;
}

.bwt-help-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(14, 28, 54, 0.08);
  color: var(--bwt-navy-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.bwt-help-x:hover { background: rgba(14, 28, 54, 0.16); }

.bwt-help-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 34px;
}
.bwt-help-head img { border-radius: 12px; flex: none; }
.bwt-help-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c2185b;
}
.bwt-help-head h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.2;
}
.bwt-help-goal { margin: 0.9rem 0 0.75rem; }

.bwt-help-steps {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: grid;
  gap: 8px;
}
.bwt-help-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
}
.bwt-help-num {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bwt-navy);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.bwt-help-gold {
  background: var(--bwt-center-gold);
  padding: 0 6px;
  border-radius: 6px;
}

.bwt-help-example {
  background: #ffffff;
  border: 1.5px solid #cce2f0;
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.85rem;
}
.bwt-help-ex-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bwt-muted);
}
.bwt-help-clue { margin: 0 0 0.55rem; font-weight: 700; }
.bwt-help-clue span { color: #c2185b; font-weight: 900; margin-right: 4px; }
.bwt-help-try {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 800;
}
.bwt-help-try + .bwt-help-try { margin-top: 6px; }
.bwt-help-try.is-ok { background: #dcfce7; color: #15803d; }
.bwt-help-try.is-bad { background: #fef3c7; color: #b45309; }
.bwt-help-word {
  flex: none;
  min-width: 54px;
  text-align: center;
  background: #ffffff;
  border: 2px solid currentColor;
  border-radius: 8px;
  padding: 1px 8px;
  letter-spacing: 0.08em;
  color: var(--bwt-navy-dark);
}

.bwt-help-colors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
  margin-bottom: 0.85rem;
}
.bwt-help-colors small {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--bwt-muted);
  margin-top: 3px;
}
.bwt-help-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #ffffff;
  border: 2.5px solid;
}
.bwt-help-dot.is-green { background: #22c55e; border-color: #15803d; }
.bwt-help-dot.is-gold { background: #f59e0b; border-color: #b45309; }
.bwt-help-dot.is-red { background: #ef4444; border-color: #b91c1c; }

.bwt-help-perks {
  background: #fff7ed;
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
}
.bwt-help-perks p {
  display: flex;
  gap: 8px;
  margin: 0;
  font-size: 0.88rem;
}
.bwt-help-perks p + p { margin-top: 6px; }

.bwt-help-play {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

@media (max-width: 400px) {
  .bwt-help-box { padding: 1.15rem 1rem 1rem; font-size: 0.9rem; }
  .bwt-help-head img { width: 44px; height: 44px; }
  .bwt-help-head h2 { font-size: 1.15rem; }
}

/* Phones: keep "Let's Play" always visible at the bottom of the help modal */
@media (max-width: 600px) {
  .bwt-help-play {
    position: sticky;
    bottom: 0;
  }
  .bwt-help-goal { margin: 0.75rem 0 0.6rem; }
  .bwt-help-steps { gap: 6px; margin-bottom: 0.75rem; }
  .bwt-help-example { padding: 0.65rem 0.75rem; margin-bottom: 0.7rem; }
  .bwt-help-colors { margin-bottom: 0.7rem; }
  .bwt-help-perks { margin-bottom: 0.85rem; }
}

/* Desktop header: never wrap nav labels or cut the logo */
@media (min-width: 1101px) {
  .bwt-nav-link,
  .bwt-dd-btn {
    white-space: nowrap;
  }
  .bwt-brand {
    flex: none;
  }
}
@media (min-width: 1101px) {
  .bwt-header-inner { gap: 12px; padding: 0 16px; }
  .bwt-nav { gap: 2px; }
  .bwt-nav-link,
  .bwt-dd-btn { padding: 0 10px; font-size: 0.9rem; }
  .bwt-header-actions { margin-left: 6px; }
  .bwt-header-pw-cta .bwt-pw-cta-full { display: none; }
}

/* ==========================================================================
   9. PETAL WHEEL — SELF-EXPLANATORY PLAY UI (tiles, pulses, feedback motion)
   ========================================================================== */
/* Active petal: a soft "tap me / this one" pulse ring */
.bwt-rosco-node.current::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 3px solid #f59e0b;
  animation: bwt-ring-pulse 1.6s ease-out infinite;
  pointer-events: none;
}
@keyframes bwt-ring-pulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}
.bwt-rosco-node.bwt-pop { animation: bwt-pop 0.5s ease-out; }
@keyframes bwt-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Clue line: the petal letter as a coloured bubble, same look as the wheel */
.bwt-pw-rule {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--bwt-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bwt-pw-rule-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf5 0%, #ffe082 100%);
  border: 2px solid var(--bwt-navy);
  color: var(--bwt-navy-dark);
  font-size: 0.8rem;
  margin-left: 3px;
}
.bwt-pw-clue {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--bwt-navy-dark);
  font-weight: 600;
}
.bwt-pw-clue-petal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffef5 0%, #ffd54f 70%, #ffb300 100%);
  border: 2.5px solid #d97706;
  color: #0b1830;
  font-weight: 900;
  font-size: 1.05rem;
}
.bwt-pw-clue-petal.is-done { background: #22c55e; border-color: #15803d; color: #fff; }

/* Empty letter boxes = word length; they fill while typing */
.bwt-pw-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 1rem 0 0.25rem;
  cursor: text;
}
.bwt-pw-tile {
  width: 44px;
  height: 50px;
  border-radius: 10px;
  border: 2.5px solid #b3d9ec;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--bwt-navy-dark);
  text-transform: uppercase;
  transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
}
.bwt-pw-tile.is-filled {
  border-color: var(--bwt-navy);
  animation: bwt-tile-in 0.12s ease-out;
}
.bwt-pw-tile.is-next {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}
.bwt-pw-tile.is-correct { background: #22c55e; border-color: #15803d; color: #fff; }
.bwt-pw-tile.is-revealed { background: #ef4444; border-color: #b91c1c; color: #fff; }
@keyframes bwt-tile-in {
  0% { transform: scale(0.85); }
  100% { transform: scale(1); }
}
.bwt-shake { animation: bwt-shake 0.4s ease; }
@keyframes bwt-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

/* First visit: bouncing "start here" tip + glowing answer box */
.bwt-pw-start-tip {
  margin: -0.2rem 0 0.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--bwt-navy-dark);
  color: #ffd54f;
  font-weight: 900;
  font-size: 0.86rem;
  text-align: center;
  animation: bwt-pw-bounce 1.2s ease-in-out infinite;
}
.bwt-pw-start-tip[hidden] { display: none; }
.bwt-pw-fresh .bwt-pw-input {
  border-color: #f59e0b;
  animation: bwt-pw-pulse 1.8s infinite;
}
.bwt-pw-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}
.bwt-pw-input-row[hidden],
.bwt-pw-tiles[hidden] { display: none; }

/* /petal-wheel/: game is the first thing on screen */
body[data-bwt-page="petal-wheel"] .bwt-rosco-box { margin-top: 0.75rem; }
body[data-bwt-page="petal-wheel"] .bwt-pw-about { margin-top: 0.5rem; }

@media (max-width: 768px) {
  /* Compact game header so the wheel + clue fit on the first screen */
  .bwt-rosco-box { padding-top: 1.1rem !important; padding-bottom: 1.25rem !important; }
  .bwt-pw-header {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-bottom: 0.75rem;
    margin-bottom: 0.9rem;
  }
  .bwt-pw-brand { gap: 10px; min-width: 0; flex: 1 1 200px; }
  .bwt-pw-logo { width: 42px; height: 42px; border-radius: 10px; }
  .bwt-pw-id-badge { font-size: 0.64rem; padding: 1px 8px; margin-bottom: 2px; }
  .bwt-pw-title { font-size: 1.02rem; line-height: 1.2; }
  .bwt-pw-controls { width: auto; flex: none; flex-wrap: nowrap; gap: 6px; }
  .bwt-pw-sound-btn { width: 38px; height: 38px; padding: 0; font-size: 1rem; }
  .bwt-pw-sound-btn .bwt-snd-txt { display: none; }
  .bwt-pw-controls .bwt-btn { order: 3; }
  .bwt-pw-tile { width: 40px; height: 46px; font-size: 1.3rem; }
}
@media (max-width: 360px) {
  .bwt-pw-tile { width: 36px; height: 42px; font-size: 1.15rem; }
}

/* Tiles ARE the answer box: an invisible input sits on top of them */
.bwt-pw-play { margin-top: 0.9rem; }
.bwt-pw-play[hidden] { display: none; }
.bwt-pw-tiles-wrap {
  position: relative;
  border-radius: 14px;
  padding: 6px 4px;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.bwt-pw-tiles-wrap .bwt-pw-tiles { margin: 0; }
.bwt-pw-tiles-wrap .bwt-pw-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px; /* no iOS zoom */
  opacity: 0.01;
  box-shadow: none !important;
  animation: none !important;
  cursor: text;
}
.bwt-pw-tiles-wrap:focus-within {
  background: rgba(255, 213, 79, 0.16);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.45);
}
/* blinking cursor in the next empty box */
.bwt-pw-tiles-wrap:focus-within .bwt-pw-tile.is-next {
  animation: bwt-tile-blink 1s steps(1) infinite;
}
@keyframes bwt-tile-blink {
  50% { border-color: #b3d9ec; box-shadow: none; }
}
.bwt-pw-fresh .bwt-pw-tiles-wrap { animation: bwt-pw-pulse 1.8s infinite; }

.bwt-pw-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  margin-top: 0.85rem;
}
.bwt-pw-actions .bwt-btn {
  padding: 0.75rem 0.5rem;
  min-height: 46px;
  white-space: nowrap;
}
.bwt-pw-go { font-size: 1rem; }
.bwt-pw-pass { background: #e6f0f7; color: var(--bwt-navy-dark); }
.bwt-pw-reveal { background: #fee2e2; color: #b91c1c; }
.bwt-pw-pass:hover { background: #d4e6f3; }
.bwt-pw-reveal:hover { background: #fecaca; }

.bwt-pw-brand { flex: 1 1 300px; min-width: 0; }

@media (max-width: 768px) {
  .bwt-rosco-circle-stage {
    transform: scale(0.84);
    transform-origin: top center;
    margin-bottom: -42px;
  }
  .bwt-pw-arena { gap: 0.9rem; }
  .bwt-pw-console { padding: 0.95rem; }
  .bwt-pw-start-tip { font-size: 0.8rem; padding: 0.35rem 0.6rem; margin-bottom: 0.55rem; }
  .bwt-pw-rule { margin-bottom: 0.4rem; }
  .bwt-pw-clue { font-size: 1rem; }
  .bwt-pw-clue-petal { width: 30px; height: 30px; font-size: 0.95rem; }
  .bwt-pw-actions .bwt-btn { font-size: 0.88rem; }
  .bwt-pw-go { font-size: 0.95rem !important; }
}
@media (max-width: 345px) {
  .bwt-rosco-circle-stage { transform: scale(0.78); margin-bottom: -57px; }
}
@media (max-width: 768px) {
  .bwt-pw-controls { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
  .bwt-pw-controls .bwt-btn { flex: 1 1 auto; min-width: 0; white-space: normal; text-align: center; }
}

/* Grey "ghost" hint letters inside the boxes (first + last, more after misses) */
.bwt-pw-tile.is-ghost {
  color: #9fb3c6;
  border-style: dashed;
  border-color: #9fb3c6;
  background: #f4f9fc;
}
.bwt-pw-tile.is-ghost.is-next {
  border-color: #f59e0b;
  border-style: solid;
}
.bwt-pw-tile.is-off {
  border-color: #ef4444;
  background: #fff5f5;
}
/* Wheel flashes when a letter that isn't on it is typed */
.bwt-rosco-circle-stage.bwt-flash .bwt-rosco-node {
  animation: bwt-node-flash 0.6s ease;
}
@keyframes bwt-node-flash {
  0%, 100% { box-shadow: 0 4px 10px rgba(216, 27, 96, 0.18); }
  40% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.55); }
}
.bwt-pw-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bwt-pw-rule-set { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.bwt-pw-rule-set .bwt-pw-rule-letter { margin-left: 0; }
.bwt-help-ghost { color: #7d93a8 !important; letter-spacing: 0.12em; font-weight: 900; margin: 0 !important; }
