/* WordJumble homepage only — consolidated from the approved final appearance */
body{color:#000}
.solver-intro p{color:#000!important}
#letters{font-size:18px;padding:0 16px;text-transform:uppercase}
.word,.home-tools .home-tool-card input{text-transform:uppercase}

/* Home tool cards */
.home-tools .home-tool-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
.home-tools .home-tool-card{box-sizing:border-box;position:relative!important;min-height:230px!important;height:230px!important;margin:0!important;text-decoration:none!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;padding:18px!important;color:#0b2f63!important}
.home-tools .word-finder-card,.home-tools .length-finder-card{padding-right:18px!important}
.home-tools .finder-mode-home,.home-tools .length-mode-home{position:absolute;top:18px;right:18px;width:125px;height:38px!important;margin:0!important;padding:0 8px!important;font-size:12px!important}
.home-tools .game-mode-home{position:absolute;top:18px;right:18px;width:145px;height:38px!important;margin:0!important;padding:0 8px!important;font-size:12px!important}
.home-tools .home-tool-card:nth-child(5){grid-column:2}.home-tools .home-tool-card:nth-child(6){grid-column:3}
.home-tools .home-tool-card strong{color:#0b2f63!important}.home-tools .home-tool-card small{color:#111!important;min-height:34px;line-height:1.35}
.home-tools .home-tool-card input,.home-tools .home-tool-card select{width:100%;box-sizing:border-box;height:42px;border:1px solid #cbd8e8;border-radius:9px;background:#fff;color:#000;padding:0 11px;font:inherit;font-size:13px;margin-top:auto}
.home-tools .home-tool-card>button{height:42px;border:0;border-radius:9px;color:#071a35!important;font-weight:800;cursor:pointer;background:#1769e8}
.home-tools .tool-yellow>button{background:#d59b00}.home-tools .tool-coral>button{background:#e44b5f}.home-tools .tool-green>button{background:#219653}
.home-tools .tool-icon{width:38px;height:38px;display:grid!important;place-items:center;background:#fff;border:1px solid rgba(11,47,99,.10);border-radius:8px;font-size:21px!important;line-height:1!important;margin-bottom:7px!important;transform:rotate(-5deg);box-shadow:0 3px 7px rgba(20,45,90,.08);transition:transform .18s ease}
.home-tools .home-tool-card:hover .tool-icon{transform:rotate(5deg) scale(1.04)}

/* Hero reel */
.hero-shuffle-demo{display:flex;justify-content:center;gap:7px;min-height:48px;margin:14px 0 2px;perspective:800px}
.hero-shuffle-demo .shuffle-tile{width:40px;height:40px;display:grid;place-items:center;border-radius:50%!important;background:#eef5ff;border:1px solid #cfe0f8;color:#0b2f63;font-weight:900;font-size:19px;box-shadow:0 3px 8px rgba(23,105,232,.08);transform-style:preserve-3d;will-change:transform}
.hero-shuffle-demo .shuffle-tile.reel-spin{animation:wordJumbleReelSpinY 1s linear both!important}
.hero-shuffle-demo .shuffle-tile.letter-locked{background:#e0f5e7!important;border-color:#a8d9b8!important;color:#176b38!important}
@keyframes wordJumbleReelSpinY{from{transform:rotateY(0)}to{transform:rotateY(1080deg)}}

/* Results + accordions */
.info-accordion,.faq-accordion{border:1px solid #e1e8f1;border-radius:10px;background:#fff;margin:10px 0;overflow:hidden}
.info-accordion summary,.faq-accordion summary{list-style:none;cursor:pointer;position:relative;padding:14px 42px 14px 16px;color:#0b2f63;font-weight:800}
.info-accordion summary{font-size:18px}.faq-accordion summary{font-size:15px}
.info-accordion summary::-webkit-details-marker,.faq-accordion summary::-webkit-details-marker{display:none}
.info-accordion summary::after,.faq-accordion summary::after{content:'›';position:absolute;right:16px;top:50%;transform:translateY(-50%) rotate(90deg);font-size:22px;color:#1769e8;transition:transform .2s ease}
.info-accordion[open] summary::after,.faq-accordion[open] summary::after{transform:translateY(-50%) rotate(-90deg)}
.accordion-body{padding:0 16px 15px;color:#000}.accordion-body p{margin:0 0 8px;line-height:1.65}.accordion-body ul{margin:4px 0 0;padding-left:20px;line-height:1.8}
.word.result-pop{opacity:0;transform:translateY(8px) scale(.96);animation:resultPop .34s ease forwards}.word.longest-word{background:#fff8dc;border-color:#e8cd6a;box-shadow:0 0 0 1px rgba(232,205,106,.18)}
@keyframes resultPop{to{opacity:1;transform:translateY(0) scale(1)}}

/* Daily game CTA */
.daily-scramble-cta{margin:20px auto 24px;padding:15px 18px;background:linear-gradient(135deg,#fff9d9,#fffdf1);border:1px solid #efd986;border-radius:14px;box-shadow:0 7px 18px rgba(80,65,20,.06);display:flex;align-items:center;justify-content:space-between;gap:18px}
.daily-scramble-copy{min-width:0}.daily-scramble-kicker{color:#3b2a00!important;font-size:14px;font-weight:900;letter-spacing:.02em}.daily-scramble-cta h2{margin:3px 0 2px;color:#0b2f63;font-size:20px}.daily-scramble-cta p{margin:0;color:#26364d;font-size:14px;line-height:1.4}.daily-scramble-play{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border-radius:9px;background:#1769e8;color:#fff!important;text-decoration:none;font-weight:900;white-space:nowrap}.daily-scramble-play:hover{background:#0f56c4;color:#fff!important}

/* Hide empty dynamic result containers. */
#status:empty,#results:empty{display:none!important}

/* Mobile navigation helpers */
.mobile-more-tools-cue,.mobile-section-more{display:none}
@media(max-width:900px){.home-tools .home-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.home-tools .home-tool-card:nth-child(5),.home-tools .home-tool-card:nth-child(6){grid-column:auto}}
@media(max-width:600px){
  .brand-header{margin-top:16px!important;margin-bottom:4px!important;padding-left:0!important;padding-right:0!important}.brand-block{width:90%!important;max-width:90%!important;margin:0 auto!important}.brand-name{width:100%!important;justify-content:center!important;gap:clamp(6px,2vw,8px)!important}.brand-header .tile{width:clamp(36px,11vw,44px)!important;height:clamp(36px,11vw,44px)!important;font-size:clamp(21px,6.2vw,26px)!important;flex:0 0 auto!important}.brand-header .brand-word{font-size:clamp(32px,10vw,40px)!important;letter-spacing:-1.4px!important;margin-left:2px!important;white-space:nowrap!important}.brand-tagline{width:100%!important;margin:7px 0 0!important;text-align:center!important;font-size:clamp(9px,2.7vw,11px)!important;letter-spacing:.12em!important;white-space:nowrap!important}
  .button-row button{font-size:14px!important;font-weight:900!important;color:#071a35!important}#go{background:linear-gradient(135deg,#9bcaff,#78b4fb)!important}.options-btn{background:linear-gradient(135deg,#d7c8ff,#bea8f5)!important}.reset-btn{background:linear-gradient(135deg,#ffbbb7,#ff9d98)!important}
  .daily-scramble-cta{margin:12px 0 5px!important;padding:12px 14px!important;align-items:stretch;flex-direction:column;gap:7px!important}.daily-scramble-kicker{font-size:12px!important;line-height:1.1;white-space:nowrap}.daily-scramble-cta h2{font-size:17px!important;margin:5px 0 1px!important}.daily-scramble-play{width:100%;min-height:40px!important;margin-top:8px!important}
  .mobile-more-tools-cue{display:flex;min-height:40px!important;margin:0 0 5px!important;padding:7px 12px!important;align-items:center;justify-content:center;gap:6px;border:1px solid #9bc8a6;border-radius:10px;background:#e2f4e5;color:#082b5c!important;text-decoration:none;font-size:17px!important;font-weight:900!important;line-height:1.1!important;box-shadow:0 3px 10px rgba(50,60,80,.07)}.mobile-more-tools-cue span{font-size:21px!important}#moreToolsSection{scroll-margin-top:0;margin-top:24px!important}
  .home-tools .home-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.home-tools .home-tool-card{height:220px!important;min-height:220px!important;padding:14px!important;gap:7px!important;overflow:hidden!important}.home-tools .tool-icon{width:34px!important;height:34px!important;font-size:20px!important;margin-bottom:2px!important}.home-tools .home-tool-card strong{font-size:15px!important}.home-tools .home-tool-card small{display:block!important;min-height:0!important;max-height:none!important;overflow:visible!important;font-size:12px!important;line-height:1.35!important}.home-tools .finder-mode-home,.home-tools .length-mode-home,.home-tools .game-mode-home{position:static!important;width:100%!important;height:40px!important;margin:0!important}.home-tools .home-tool-card input,.home-tools .home-tool-card select,.home-tools .home-tool-card>button{display:block!important;width:100%!important;height:40px!important;margin:0!important}.home-tools .home-tool-card>button{margin-top:auto!important}.home-tools .word-finder-card,.home-tools .length-finder-card{padding-right:14px!important}
  .mobile-section-more{display:flex;width:100%;height:40px;margin:10px 0 0;align-items:center;justify-content:center;border:1px solid #bcd7f4;border-radius:8px;background:#e2f4e5!important;color:#082b5c!important;text-decoration:none;font-size:16px!important;font-weight:900!important}#homeInfoSection{scroll-margin-top:8px}
  .hero-shuffle-demo{gap:4px}.hero-shuffle-demo .shuffle-tile{width:32px;height:32px;font-size:16px}.info-accordion summary{font-size:16px;padding-right:36px}
}
@media(prefers-reduced-motion:reduce){.hero-shuffle-demo .shuffle-tile,.word.result-pop,.home-tools .tool-icon{animation:none!important;transition:none!important}.word.result-pop{opacity:1;transform:none}}

/* Homepage introduction: visible descriptive content for users and search engines. */
.solver-description{max-width:780px;margin:8px auto 12px;font-size:14px;line-height:1.6;color:#111;text-align:center}
@media(max-width:600px){.solver-description{font-size:12px;line-height:1.5;margin:7px auto 10px}.solver-intro h1{font-size:26px}}

/* FINAL HOMEPAGE CSS CORRECTIONS — 2026-09-23
   Only adjusts the brand-note position and the three tool-card dropdowns. */
@media (min-width: 601px) {
  /* Keeps the WordJumble logo and "Every word has a story." on the same row. */
  .brand-header .brand-block {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 38px !important;
  }

  /* Places "Every word has a story." to the right of WordJumble instead of below it. */
  .brand-header .brand-note {
    margin: 0 !important;
    width: 145px !important;
    flex: 0 0 145px !important;
    text-align: center !important;
    line-height: 1.15 !important;
  }

  /* Gives the three cards with dropdowns room at the upper-right for the selector. */
  .home-tools .word-finder-card,
  .home-tools .length-finder-card,
  .home-tools .word-games-card {
    padding-right: 18px !important;
  }

  /* Aligns all three dropdowns at exactly the same height and right edge. */
  .home-tools .finder-mode-home,
  .home-tools .length-mode-home,
  .home-tools .game-mode-home {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    width: 47% !important;
    height: 42px !important;
    margin: 0 !important;
  }
}
