/* GWS v9.0 homepage presentation. Loaded ONLY by /index.html, before v81.css. Every selector is scoped under body.gws-home
   (set only on the homepage), so no other page can match a rule here.
   Stage 8:  1. editable fields are 16 px (no iPhone zoom on focus);  2. main-wheel and discovery controls are at least 44 x 44 px;
             3. the hero is tightened (more on phones) so the wheel starts higher; the six Quick Tools stay in the first screen.
   Stage 8A (owner/HQ05 2026-10-08, revised by the owner the same day after a physical-iPhone review):
             4. HOME-FOLD-1 (refined): the page order is unchanged (heading, intro, Search, six Quick Tools, Browse all, Share, wheel,
                second tool). On phones only, wasted space is trimmed so more of the wheel shows earlier: smaller top padding and
                heading gaps, intro line-height 1.6 -> 1.5 (same 15 px text), Search 54 -> 48 px, Quick Tools 58 -> 52 px tiles with
                tighter gaps, Spin directly under the wheel. Text sizes, wording and the 3 x 2 Quick Tools grid are kept.
             5. HOME-SHARE-1: the page Share button stays obvious and early, but is an outlined button (no purple gradient, no glow,
                auto width) so it no longer outranks Spin; label, focus ring, 44 px size and behaviour unchanged. The space reserved
                before share.js adds the bar matches the bar exactly (no layout shift).
             6. The rotating second tool (assets/gws-featured.js): .gws-feat-* only, same card look and grid place as the
                Quick Team Generator, never larger or louder than the wheel and Spin. */
body.gws-home #options-textarea,body.gws-home #gws81-qtg-names,body.gws-home .gws-feat-items{font-size:16px}
body.gws-home #theme-toggle,body.gws-home #sound-toggle,body.gws-home #mode-toggle,body.gws-home #hist-clear,body.gws-home #add-btn,body.gws-home #shuffle-btn,body.gws-home #clear-btn,body.gws-home .v8-embed-link,body.gws-home .controls-col .card .btn-ghost,body.gws-home #overlay-btns button{min-height:44px}
body.gws-home #shuffle-btn,body.gws-home .opt-remove{min-width:44px}
body.gws-home .opt-remove{min-height:44px}
body.gws-home .v8-quick-all,body.gws-home .featured-section .v8-link{display:inline-flex;align-items:center;min-height:44px}
body.gws-home .v8-quick-all{margin-block:-11px}   /* the 44 px hit area grows into the existing gaps; the link itself does not move */
body.gws-home .v8-dir-list a{min-height:44px}
@media (min-width:768px){
  body.gws-home main>.page-header{margin-bottom:20px}
  body.gws-home main>.gws-share{margin-bottom:18px}
}
@media (max-width:767px){
  body.gws-home main{padding-top:14px}
  body.gws-home main>.page-header{margin-bottom:10px}
  body.gws-home .page-header h1{margin-bottom:10px}
  body.gws-home .page-header h1::after{margin-top:8px}
  body.gws-home .page-header .intro{line-height:1.5}
  body.gws-home .benefit-line{margin-top:6px}
  body.gws-home .v8-hero-find{margin-top:12px;gap:8px}   /* gap 8 px: the Browse-all hit area uses 11 px of the gap + its own line */
  body.gws-home .v8-hero-search{min-height:48px}
  body.gws-home .v8-quick{gap:6px}
  body.gws-home .v8-quick a{min-height:52px;padding:5px 4px}
  body.gws-home main>.gws-share{margin-bottom:10px}
  body.gws-home .wheel-col>#spin-btn{margin-top:0}   /* the 14 px row gap stays between the wheel and Spin */
}
@media (max-width:359px){   /* very narrow phones: keep the 3 x 2 Quick Tools grid (v8.css switches to 2 x 3 below 360 px) */
  body.gws-home .v8-quick{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.gws-home .v8-quick a{grid-template-columns:1fr;justify-items:center;column-gap:0;row-gap:2px;min-height:52px;padding:5px 2px;text-align:center}
  body.gws-home .v8-quick .ico{grid-row:auto;align-self:auto}
}


/* 5. HOME-SHARE-1 */
body.gws-home .gws-share-btn,body.gws-home .gws-share-btn:hover{height:auto;min-height:44px;width:auto;max-width:none;padding:0 16px 0 8px;gap:8px;
  background:transparent;border:1.5px solid #94A3B8;color:#E2E8F0;box-shadow:none;filter:none;transform:none;font-size:15px;font-weight:700}
body.gws-home .gws-share-btn:hover{background:rgba(148,163,184,.12);border-color:#CBD5E1;color:#FFFFFF}
body.gws-home .gws-share-btn span[aria-hidden="true"]{width:28px;height:28px;font-size:14px;background:rgba(148,163,184,.2)}
html[data-theme="light"] body.gws-home .gws-share-btn,html[data-theme="light"] body.gws-home .gws-share-btn:hover{background:#FFFFFF;border-color:#64748B;color:#0F172A;box-shadow:none}
html[data-theme="light"] body.gws-home .gws-share-btn:hover{background:#F1F5F9}
html[data-theme="light"] body.gws-home .gws-share-btn span[aria-hidden="true"]{background:#E2E8F0}
html body.gws-home main>.page-header:not(:has(+ .gws-share)){padding-bottom:62px}
@media (max-width:767px){html body.gws-home main>.page-header:not(:has(+ .gws-share)){padding-bottom:54px}}

/* 6. the rotating second tool */
body.gws-home .gws-feat{position:relative;min-width:0;padding:20px 18px 18px;border-radius:22px;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018) 60%);border:1px solid rgba(255,255,255,.11);
  box-shadow:var(--ui-shadow,0 18px 50px -24px rgba(0,0,0,.6))}
@media (min-width:1000px){body.gws-home .gws81-duo>.gws-feat{grid-column:2;grid-row:1;padding:26px 24px 22px;border-radius:26px}}
body.gws-home .gws-feat-head{margin:0 0 12px}
body.gws-home .gws-feat-eyebrow{margin:0 0 4px;font-size:11px;font-weight:800;letter-spacing:1.3px;text-transform:uppercase;color:#6EE7B7}
body.gws-home .gws-feat-h{margin:0 0 6px;font-size:22px;line-height:1.2;letter-spacing:-.4px;color:var(--text)}
body.gws-home .gws-feat-intro{margin:0;font-size:14px;line-height:1.55;color:var(--muted)}
body.gws-home .gws-feat-stage{display:flex;align-items:center;gap:16px;min-width:0;margin:6px 0 0}
body.gws-home .gws-feat-face{flex:0 0 auto;display:grid;place-items:center;width:88px;height:88px;border-radius:50%;
  font:900 28px/1 var(--font);color:#1C1300;background:radial-gradient(circle at 35% 30%,#FDE68A,#F59E0B 72%);border:2px solid rgba(255,255,255,.2)}
body.gws-home .gws-feat-face-yes-no{font-size:22px}
body.gws-home .gws-feat-face-random-letter{border-radius:20px;font-size:40px;background:#F8FAFC;color:#0F172A}
body.gws-home .gws-feat-face-dice{grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:12px;border-radius:18px;background:#F8FAFC;color:#0F172A}
body.gws-home .gws-feat-pip{width:14px;height:14px;border-radius:50%}
body.gws-home .gws-feat-pip.is-on{background:#0F172A}
body.gws-home .gws-feat-face.is-rolling{animation-name:gwsFeatTurn;animation-timing-function:cubic-bezier(.2,.7,.3,1);animation-fill-mode:both}
body.gws-home .gws-feat-face-dice.is-rolling,body.gws-home .gws-feat-face-random-letter.is-rolling{animation-name:gwsFeatTumble}
@keyframes gwsFeatTurn{from{transform:rotateY(0)}to{transform:rotateY(1080deg)}}
@keyframes gwsFeatTumble{from{transform:rotate(0)}to{transform:rotate(720deg)}}
body.gws-home .gws-feat-out{min-width:0}
body.gws-home .gws-feat-value{margin:0;font-size:32px;font-weight:900;line-height:1.1;color:var(--text);overflow-wrap:anywhere}
body.gws-home .gws-feat-sub{margin:4px 0 0;font-size:14px;line-height:1.45;color:var(--muted)}
body.gws-home .gws-feat-controls{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 0}
body.gws-home .gws-feat-go{flex:1 1 170px;min-height:48px;margin:0;padding:0 20px;border:0;border-radius:14px;cursor:pointer;
  font:900 16px var(--font);letter-spacing:.3px;color:#052E1C;background:linear-gradient(135deg,#34D399,#22D3EE)}
body.gws-home .gws-feat-go[aria-disabled="true"]{cursor:progress;opacity:.75}
body.gws-home .gws-feat-go:disabled{cursor:default;opacity:.5}
body.gws-home .gws-feat-clear{min-height:44px;margin:0;padding:0 16px;border-radius:12px;border:1px solid var(--v8-line-2,rgba(255,255,255,.16));
  background:transparent;color:var(--text);font:700 14px var(--font);cursor:pointer}
body.gws-home .gws-feat-tally{margin:10px 0 0;font-size:14px;font-weight:700;color:var(--muted)}
body.gws-home .gws-feat-recent{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:12px 0 0}
body.gws-home .gws-feat-recent-h{margin:0;font-size:12px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:var(--muted)}
body.gws-home .gws-feat-recent-list{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
body.gws-home .gws-feat-recent-item{min-width:28px;padding:2px 8px;border-radius:8px;text-align:center;font-weight:800;font-size:14px;background:rgba(255,255,255,.08);color:var(--text)}
body.gws-home .gws-feat-labelrow{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:0 0 6px}
body.gws-home .gws-feat-label{font-size:12px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:var(--v8-text-2,#CBD5E1)}
body.gws-home .gws-feat-count{font-size:12.5px;font-weight:700;color:var(--muted);white-space:nowrap}
body.gws-home .gws-feat-items{display:block;width:100%;min-height:120px;resize:vertical;margin:0;padding:10px 14px;border-radius:12px;
  border:1.5px solid var(--v8-line-2,rgba(255,255,255,.16));background:rgba(255,255,255,.05);color:var(--text);font-family:var(--font);line-height:1.5}
body.gws-home .gws-feat-items:focus{outline:3px solid rgba(245,158,11,.55);outline-offset:1px;border-color:#F59E0B}
body.gws-home .gws-feat-err{margin:10px 0 0;font-size:14px;font-weight:700;color:#FCA5A5}
body.gws-home .gws-feat-order{margin:12px 0 0;padding:0 0 0 30px;font-size:15px;line-height:1.5;color:var(--text);overflow-wrap:anywhere}
body.gws-home .gws-feat-order-item{padding:2px 0}
body.gws-home .gws-feat-status{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
body.gws-home .gws-feat-foot{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px 12px;margin:14px 0 0;padding:12px 0 0;border-top:1px solid var(--v8-line,rgba(255,255,255,.1))}
body.gws-home .gws-feat-full{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:14.5px;font-weight:800;color:#FCD34D;text-decoration:underline;text-underline-offset:3px}
body.gws-home .gws-feat-go:focus-visible,body.gws-home .gws-feat-clear:focus-visible,body.gws-home .gws-feat-full:focus-visible{outline:3px solid #FCD34D;outline-offset:2px}
@media (prefers-reduced-motion:reduce){body.gws-home .gws-feat-face.is-rolling{animation:none}}
html[data-theme="light"] body.gws-home .gws-feat{background:#FFFFFF;border-color:var(--ui-line,#E2E8F0)}
html[data-theme="light"] body.gws-home .gws-feat-eyebrow{color:#047857}
html[data-theme="light"] body.gws-home .gws-feat-label{color:#334155}
html[data-theme="light"] body.gws-home .gws-feat-intro,html[data-theme="light"] body.gws-home .gws-feat-sub,html[data-theme="light"] body.gws-home .gws-feat-count,html[data-theme="light"] body.gws-home .gws-feat-tally,html[data-theme="light"] body.gws-home .gws-feat-recent-h{color:#475569}
html[data-theme="light"] body.gws-home .gws-feat-face-random-letter,html[data-theme="light"] body.gws-home .gws-feat-face-dice{border-color:#CBD5E1}
html[data-theme="light"] body.gws-home .gws-feat-recent-item{background:#F1F5F9;color:#0F172A}
html[data-theme="light"] body.gws-home .gws-feat-items{background:#FFFFFF;color:#0F172A;border-color:#CBD5E1}
html[data-theme="light"] body.gws-home .gws-feat-clear{color:#0F172A;border-color:#CBD5E1}
html[data-theme="light"] body.gws-home .gws-feat-err{color:#B91C1C}
html[data-theme="light"] body.gws-home .gws-feat-full{color:#92400E}
html[data-theme="light"] body.gws-home .gws-feat-foot{border-top-color:#E2E8F0}
html[data-theme="light"] body.gws-home .gws-feat-go:focus-visible,html[data-theme="light"] body.gws-home .gws-feat-clear:focus-visible,html[data-theme="light"] body.gws-home .gws-feat-full:focus-visible{outline-color:#92400E}

/* v9.0 Stage 9 HOME-ROTATE-1: "Featured tool — changes every 3 days" is 36 characters of small capitals and wraps on a 320 px phone; balance the two lines so no lone word
   ("DAYS") is left on the second. Both shells (the static Quick Team shell and the dynamic one), homepage only; engines without text-wrap: balance simply ignore it. */
body.gws-home .gws-feat-eyebrow,body.gws-home .gws81-qtg-eyebrow{text-wrap:balance}
