/* ====================================================
   FRUIT NAME WHEEL — Child-Friendly Tropical Theme
   TheWheelOfName.com
   ==================================================== */
:root {
  --fw-orange:   #E8701A;
  --fw-orange-d: #B8530E;
  --fw-orange-l: #FEE9D7;
  --fw-yellow:   #F5C842;
  --fw-yellow-l: #FEF9E7;
  --fw-green:    #27AE60;
  --fw-green-l:  #D5F5E3;
  --fw-red:      #E53E3E;
  --fw-pink:     #EC4899;
  --fw-purple:   #805AD5;
  --fw-blue:     #3182CE;
  --fw-bg:       #FFF8F2;
  --fw-white:    #FFFFFF;
  --fw-g50:      #FFFAF5;
  --fw-g100:     #F7F3EE;
  --fw-g200:     #EDE8E1;
  --fw-g400:     #B8A99A;
  --fw-g600:     #6B5B4E;
  --fw-g700:     #4A3728;
  --fw-g800:     #2C1A0E;
  --fw-r:        16px;
  --fw-sh-sm:    0 1px 4px rgba(0,0,0,.06);
  --fw-sh-md:    0 4px 18px rgba(0,0,0,.1);
  --fw-sh-lg:    0 10px 40px rgba(0,0,0,.14);
  --fw-font:     'Nunito','Quicksand',sans-serif;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
body.fw-page { font-family: var(--fw-font); background: var(--fw-bg); color: var(--fw-g800); min-height: 100vh; }

/* ── NAV ───────────────────────────────────────── */
.fw-nav { position: sticky; top: 0; z-index: 200; background: var(--fw-white); border-bottom: 1px solid var(--fw-g200); box-shadow: var(--fw-sh-sm); }
.fw-nav-inner { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; height: 64px; }
.fw-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.fw-logo-icon { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #E8701A, #F5C842); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.fw-logo-text { font-weight: 900; font-size: 1.1rem; color: var(--fw-g800); line-height: 1; }
.fw-logo-text span { color: var(--fw-orange); }
.fw-nav-links { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.fw-nav-links a { font-size: .85rem; font-weight: 600; color: var(--fw-g600); text-decoration: none; padding: .4rem .85rem; border-radius: 8px; transition: background .15s, color .15s; white-space: nowrap; }
.fw-nav-links a:hover { background: var(--fw-g100); color: var(--fw-g800); }
.fw-nav-links a.active { color: var(--fw-orange); background: var(--fw-orange-l); }
.fw-nav-drop { position: relative; }
.fw-nav-drop > a { display: flex; align-items: center; gap: 3px; }
.fw-drop-menu { position: absolute; top: calc(100% + 4px); left: 0; background: var(--fw-white); border: 1px solid var(--fw-g200); border-radius: 12px; box-shadow: var(--fw-sh-lg); min-width: 190px; padding: 6px 0; z-index: 300; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .18s, transform .18s; }
.fw-nav-drop:hover .fw-drop-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.fw-drop-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: .85rem; font-weight: 600; color: var(--fw-g600); text-decoration: none; transition: background .12s; }
.fw-drop-menu a:hover { background: var(--fw-orange-l); color: var(--fw-orange); }

/* ── HERO ───────────────────────────────────────── */
.fw-hero { background: linear-gradient(135deg, #7B2E00 0%, #E8701A 50%, #F5C842 100%); padding: 3.5rem 1.5rem 3rem; text-align: center; position: relative; overflow: hidden; }
.fw-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 80%, rgba(245,200,66,.2), transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.1), transparent 50%); pointer-events: none; }
.fw-hero-fruits { font-size: 1.8rem; letter-spacing: .4rem; margin-bottom: .75rem; opacity: .88; position: relative; }
.fw-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; color: #fff; margin-bottom: .6rem; position: relative; }
.fw-hero p { font-size: 1rem; color: rgba(255,255,255,.88); max-width: 680px; margin: 0 auto 2rem; line-height: 1.7; position: relative; }
.fw-hero-btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; position: relative; }
.fw-hero-btn { display: inline-flex; align-items: center; gap: 8px; padding: .75rem 1.75rem; border-radius: 12px; font-size: .95rem; font-weight: 800; border: none; cursor: pointer; transition: all .2s; text-decoration: none; font-family: var(--fw-font); }
.fw-hero-btn.primary { background: white; color: var(--fw-orange-d); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.fw-hero-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.fw-hero-btn.ghost { background: rgba(255,255,255,.18); color: #fff; border: 2px solid rgba(255,255,255,.5); }
.fw-hero-btn.ghost:hover { background: rgba(255,255,255,.28); }

/* ── MAIN LAYOUT ────────────────────────────────── */
#fw-main { max-width: 1440px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.fw-layout { display: grid; grid-template-columns: 260px 1fr 260px; gap: 1.5rem; align-items: start; }

@media (max-width: 1100px) {
  .fw-layout { grid-template-columns: 220px 1fr; }
  .fw-layout > aside:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .fw-layout { grid-template-columns: 1fr; }
}

/* ── PANEL ──────────────────────────────────────── */
.fw-panel { background: var(--fw-white); border: 1px solid var(--fw-g200); border-radius: var(--fw-r); padding: 1rem; margin-bottom: 1rem; box-shadow: var(--fw-sh-sm); }
.fw-panel-title { font-size: .82rem; font-weight: 800; color: var(--fw-g600); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.fw-panel-body { display: flex; flex-direction: column; gap: .5rem; }

/* ── DAILY FRUIT ────────────────────────────────── */
.fw-daily-card { background: linear-gradient(135deg, #FFF3E0, var(--fw-yellow-l)); border: 1px solid var(--fw-g200); border-radius: var(--fw-r); padding: 1rem; text-align: center; margin-bottom: 1rem; box-shadow: var(--fw-sh-sm); }
.fw-daily-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--fw-orange); margin-bottom: .4rem; }
.fw-daily-emoji { font-size: 2.8rem; margin-bottom: .3rem; line-height: 1; }
.fw-daily-name { font-weight: 900; font-size: 1.1rem; color: var(--fw-g800); margin-bottom: .3rem; }
.fw-daily-fact { font-size: .78rem; color: var(--fw-g600); line-height: 1.5; }

/* ── SEARCH ─────────────────────────────────────── */
.fw-search { width: 100%; padding: .5rem .75rem; border: 1.5px solid var(--fw-g200); border-radius: 10px; font-size: .85rem; font-family: var(--fw-font); background: var(--fw-g50); outline: none; transition: border-color .15s; }
.fw-search:focus { border-color: var(--fw-orange); }
.fw-count-label { font-size: .75rem; color: var(--fw-g400); font-weight: 600; text-align: right; }

/* ── CATEGORY CHIPS ─────────────────────────────── */
.fw-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin-top: .4rem; }
.fw-cat-chip { display: flex; align-items: center; gap: 6px; padding: .45rem .6rem; border: 1.5px solid var(--fw-g200); border-radius: 9px; cursor: pointer; font-size: .78rem; font-weight: 700; color: var(--fw-g600); transition: all .15s; user-select: none; }
.fw-cat-chip input { display: none; }
.fw-cat-chip.active { border-color: var(--fw-orange); color: var(--fw-orange); background: var(--fw-orange-l); }
.fw-cat-chip:hover { border-color: var(--fw-orange); }

/* ── TOGGLE ─────────────────────────────────────── */
.fw-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--fw-g100); }
.fw-toggle-row:last-child { border-bottom: none; }
.tr-label { font-size: .82rem; font-weight: 700; color: var(--fw-g700); }
.tr-sub { font-size: .72rem; color: var(--fw-g400); margin-top: 1px; }
.fw-toggle { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; }
.fw-toggle input { opacity: 0; width: 0; height: 0; }
.fw-toggle-sl { position: absolute; inset: 0; background: var(--fw-g200); border-radius: 22px; cursor: pointer; transition: background .2s; }
.fw-toggle-sl::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.fw-toggle input:checked + .fw-toggle-sl { background: var(--fw-orange); }
.fw-toggle input:checked + .fw-toggle-sl::before { transform: translateX(16px); }

/* ── WHEEL CENTRE ───────────────────────────────── */
.fw-center { display: flex; flex-direction: column; align-items: center; }
.fw-wheel-section { position: relative; width: 100%; }
.fw-wheel-wrap { position: relative; display: flex; justify-content: center; align-items: center; margin: 0 auto; width: fit-content; }
.fw-needle { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 36px solid var(--fw-orange); filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); z-index: 10; }
.fw-wheel-canvas { display: block; border-radius: 50%; box-shadow: 0 8px 40px rgba(0,0,0,.18); cursor: pointer; transition: transform .1s; }
.fw-wheel-canvas:hover { transform: scale(1.012); }

/* ── WINNER OVERLAY ─────────────────────────────── */
.fw-winner-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 500; opacity: 0; pointer-events: none; transition: opacity .3s; }
.fw-winner-overlay.show { opacity: 1; pointer-events: all; }
.fw-winner-card { background: var(--fw-white); border-radius: 20px; padding: 1.5rem 1.75rem 1.25rem; text-align: center; max-width: 340px; width: 90%; box-shadow: var(--fw-sh-lg); animation: __fwpop .35s cubic-bezier(.175,.885,.32,1.275); }
@keyframes __fwpop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wc-emoji { font-size: 3.5rem; line-height: 1; margin-bottom: .3rem; }
.wc-winner-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--fw-orange); margin-bottom: .2rem; }
.wc-name { font-size: 2rem; font-weight: 900; color: var(--fw-g800); margin-bottom: .4rem; }
.wc-category { display: inline-block; background: var(--fw-orange-l); color: var(--fw-orange); font-size: .75rem; font-weight: 800; padding: .2rem .7rem; border-radius: 20px; margin-bottom: .5rem; }
.wc-fact { font-size: .85rem; color: var(--fw-g600); line-height: 1.55; margin-bottom: .5rem; }
.wc-nutrition { font-size: .78rem; font-weight: 700; color: var(--fw-green); margin-bottom: .75rem; }
.fw-quiz-panel { margin-bottom: .5rem; }
.fw-quiz-q { font-weight: 800; font-size: .88rem; color: var(--fw-g700); margin-bottom: .5rem; }
.fw-quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.fq-opt { padding: .4rem .5rem; border: 1.5px solid var(--fw-g200); border-radius: 9px; font-family: var(--fw-font); font-size: .8rem; font-weight: 700; cursor: pointer; background: var(--fw-g50); color: var(--fw-g700); transition: all .15s; }
.fq-opt:hover:not(:disabled) { border-color: var(--fw-orange); background: var(--fw-orange-l); }
.fq-opt.correct { background: #d1fae5; border-color: #059669; color: #065f46; }
.fq-opt.wrong { background: #fee2e2; border-color: #dc2626; color: #991b1b; }
.wc-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.wc-btn { padding: .45rem 1rem; border-radius: 10px; border: none; font-family: var(--fw-font); font-size: .82rem; font-weight: 800; cursor: pointer; transition: all .18s; }
.wc-btn.spin-again { background: var(--fw-orange); color: #fff; }
.wc-btn.spin-again:hover { background: var(--fw-orange-d); transform: translateY(-1px); }
.wc-btn.speak-btn { background: var(--fw-green-l); color: var(--fw-green); }
.wc-btn.remove-btn { background: #fee2e2; color: #dc2626; }
.wc-btn.close-btn { background: var(--fw-g100); color: var(--fw-g600); }

/* ── SPIN BUTTON ────────────────────────────────── */
.fw-spin-btn { display: block; width: 260px; padding: 1rem; margin: 1.25rem auto .75rem; font-family: var(--fw-font); font-size: 1.2rem; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--fw-orange), var(--fw-yellow)); border: none; border-radius: 50px; cursor: pointer; box-shadow: 0 6px 20px rgba(232,112,26,.4); transition: all .2s; letter-spacing: .04em; }
.fw-spin-btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 28px rgba(232,112,26,.5); }
.fw-spin-btn:active { transform: scale(.97); }
.fw-spin-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── WHEEL ACTION BUTTONS ───────────────────────── */
.fw-wheel-actions { display: flex; gap: .6rem; justify-content: center; margin-bottom: .75rem; }
.fw-wh-btn { padding: .45rem 1.1rem; border-radius: 10px; border: 1.5px solid var(--fw-g200); font-family: var(--fw-font); font-size: .82rem; font-weight: 700; cursor: pointer; background: var(--fw-white); color: var(--fw-g600); transition: all .15s; }
.fw-wh-btn:hover { border-color: var(--fw-orange); color: var(--fw-orange); background: var(--fw-orange-l); }

/* ── FAB GROUP ──────────────────────────────────── */
.fw-fab-group { display: flex; gap: .5rem; justify-content: center; margin-bottom: .75rem; }
.fw-fab { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--fw-g200); background: var(--fw-white); color: var(--fw-g600); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .18s; box-shadow: var(--fw-sh-sm); }
.fw-fab:hover { border-color: var(--fw-orange); color: var(--fw-orange); background: var(--fw-orange-l); }
.fw-fab[aria-pressed="true"] { background: var(--fw-orange); border-color: var(--fw-orange); color: #fff; }

/* ── HISTORY LIST ───────────────────────────────── */
#fw-history-list { max-height: 260px; overflow-y: auto; }
.fw-hist-item { display: flex; align-items: center; gap: .5rem; padding: .35rem .25rem; border-bottom: 1px solid var(--fw-g100); }
.fw-hist-item:last-child { border-bottom: none; }
.fw-hist-emoji { font-size: 1.3rem; flex-shrink: 0; }
.fw-hist-name { font-weight: 700; font-size: .85rem; color: var(--fw-g800); flex: 1; }
.fw-hist-cat { font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 10px; }

/* ── PROGRESS ───────────────────────────────────── */
.fw-progress-wrap { height: 8px; background: var(--fw-g200); border-radius: 8px; overflow: hidden; margin-bottom: .5rem; }
.fw-progress-bar { height: 100%; background: linear-gradient(90deg, var(--fw-orange), var(--fw-yellow)); border-radius: 8px; transition: width .4s ease; }
.fw-progress-stats { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 700; color: var(--fw-g400); }

/* ── LEARN CARD ─────────────────────────────────── */
.fw-learn-empty { text-align: center; padding: 1rem .5rem; font-size: .85rem; color: var(--fw-g400); line-height: 1.6; }
.fw-learn-card { background: var(--fw-g50); border-radius: 12px; padding: .85rem; text-align: center; }
.fw-lc-emoji { font-size: 2.5rem; margin-bottom: .4rem; }
.fw-lc-name { font-weight: 900; font-size: 1.1rem; margin-bottom: .25rem; color: var(--fw-g800); }
.fw-lc-cat { display: inline-block; font-size: .72rem; font-weight: 800; padding: .15rem .6rem; border-radius: 20px; margin-bottom: .5rem; }
.fw-lc-fact { font-size: .82rem; color: var(--fw-g600); line-height: 1.55; margin-bottom: .4rem; }
.fw-lc-nutrition { font-size: .78rem; font-weight: 700; color: var(--fw-green); }

/* ── TOAST ──────────────────────────────────────── */
#fw-toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(60px); background: var(--fw-g800); color: #fff; padding: .55rem 1.4rem; border-radius: 50px; font-size: .85rem; font-weight: 700; z-index: 9000; opacity: 0; transition: all .3s; pointer-events: none; white-space: nowrap; box-shadow: var(--fw-sh-md); }
#fw-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── CONTENT SECTIONS ───────────────────────────── */
.fw-content { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.fw-section { margin-bottom: 3rem; }
.fw-section h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 900; color: var(--fw-g800); margin-bottom: 1rem; }
.fw-section h3 { font-size: 1.05rem; font-weight: 800; color: var(--fw-g800); margin-bottom: .5rem; }
.fw-section p, .fw-section li { font-size: .95rem; color: var(--fw-g700); line-height: 1.75; }
.fw-section ul { padding-left: 1.4rem; }
.fw-section ul li { margin-bottom: .35rem; }

/* ── HOW-TO CARDS ───────────────────────────────── */
.fw-how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }
.fw-how-card { background: var(--fw-white); border: 1.5px solid var(--fw-g200); border-radius: 14px; padding: 1.1rem; text-align: center; box-shadow: var(--fw-sh-sm); }
.fw-how-num { width: 36px; height: 36px; background: linear-gradient(135deg, var(--fw-orange), var(--fw-yellow)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1rem; color: #fff; margin: 0 auto .6rem; }
.fw-how-card h3 { font-size: .9rem; margin-bottom: .3rem; }
.fw-how-card p { font-size: .82rem; color: var(--fw-g600); line-height: 1.5; }

/* ── FRUIT TYPES GRID ───────────────────────────── */
.fw-fruit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; margin-top: 1rem; }
.fw-fruit-chip { background: var(--fw-white); border: 1.5px solid var(--fw-g200); border-radius: 12px; padding: .7rem .5rem; text-align: center; font-size: .82rem; font-weight: 700; color: var(--fw-g700); box-shadow: var(--fw-sh-sm); }
.fw-fruit-chip .fc-emoji { font-size: 1.8rem; display: block; margin-bottom: .3rem; }

/* ── USE-CASE CARDS ─────────────────────────────── */
.fw-use-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1rem; }
.fw-use-card { background: linear-gradient(135deg, var(--fw-orange-l), var(--fw-yellow-l)); border: 1.5px solid var(--fw-g200); border-radius: 14px; padding: 1.1rem; box-shadow: var(--fw-sh-sm); }
.fw-use-card h3 { font-size: .9rem; color: var(--fw-orange-d); margin-bottom: .4rem; }
.fw-use-card p { font-size: .82rem; color: var(--fw-g700); line-height: 1.5; }

/* ── RELATED TOOLS ──────────────────────────────── */
.fw-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; margin-top: 1rem; }
.fw-related-card { display: flex; flex-direction: column; align-items: center; gap: .4rem; background: var(--fw-white); border: 1.5px solid var(--fw-g200); border-radius: 14px; padding: 1rem .75rem; text-align: center; text-decoration: none; color: var(--fw-g700); font-weight: 700; font-size: .85rem; box-shadow: var(--fw-sh-sm); transition: all .18s; }
.fw-related-card:hover { border-color: var(--fw-orange); background: var(--fw-orange-l); color: var(--fw-orange); transform: translateY(-2px); box-shadow: var(--fw-sh-md); }
.fw-related-card span:first-child { font-size: 2rem; }

/* ── FAQ ────────────────────────────────────────── */
.fw-faq-list { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.fw-faq-item { background: var(--fw-white); border: 1.5px solid var(--fw-g200); border-radius: 12px; overflow: hidden; box-shadow: var(--fw-sh-sm); }
.fw-faq-q { width: 100%; text-align: left; background: none; border: none; padding: .95rem 1.1rem; font-family: var(--fw-font); font-size: .92rem; font-weight: 800; color: var(--fw-g800); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.fw-faq-q::after { content: '+'; font-size: 1.2rem; font-weight: 700; color: var(--fw-orange); flex-shrink: 0; transition: transform .2s; }
.fw-faq-item.open .fw-faq-q::after { transform: rotate(45deg); }
.fw-faq-a { display: none; padding: 0 1.1rem 1rem; font-size: .88rem; color: var(--fw-g600); line-height: 1.65; }
.fw-faq-item.open .fw-faq-a { display: block; }

/* ── FOOTER ─────────────────────────────────────── */
.fw-footer { background: var(--fw-g800); color: var(--fw-g400); text-align: center; padding: 2rem 1rem; font-size: .82rem; margin-top: 4rem; }
.fw-footer a { color: var(--fw-yellow); text-decoration: none; }
.fw-footer a:hover { text-decoration: underline; }
