/* ====================================================
   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; }

/* ── FRUIT IMAGE CONTAINERS ─────────────────────── */
/* Winner overlay */
.fw-winner-fruit-image {
  width: 140px; height: 140px;
  object-fit: contain;
  display: block; margin: .5rem auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.25));
}
/* Learning card */
.fw-lc-image {
  width: 120px; height: 120px;
  object-fit: contain;
  display: block; margin: 0 auto;
}
.fw-lc-img-wrap {
  display: flex; justify-content: center; align-items: center;
  min-height: 130px;
}
/* Daily fruit */
.fw-daily-fruit-image {
  width: 120px; height: 120px;
  object-fit: contain;
  display: block; margin: .5rem auto;
}
.fw-daily-img-wrap {
  display: flex; justify-content: center; align-items: center;
  min-height: 130px;
}
/* History */
.fw-hist-image {
  width: 36px; height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}
.fw-hist-emoji-fb { font-size: 1.5rem; flex-shrink: 0; }

/* Mobile responsive */
@media (max-width: 480px) {
  .fw-winner-fruit-image { width: 100px; height: 100px; }
  .fw-lc-image           { width: 90px;  height: 90px;  }
  .fw-daily-fruit-image  { width: 90px;  height: 90px;  }
}

/* ── ENTRIES / RESULTS / SETTINGS PANEL ─────────────────────── */
.fw-cp-panel { background: var(--fw-white); border: 1.5px solid var(--fw-g200); border-radius: 16px; box-shadow: var(--fw-sh-md); overflow: hidden; display: flex; flex-direction: column; min-height: 500px; }

.fw-cp-tabs { display: flex; align-items: center; border-bottom: 2px solid var(--fw-g200); background: var(--fw-g50); padding: 0 .25rem; gap: 0; flex-shrink: 0; }
.fw-cp-tab { flex: 1; background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: .65rem .3rem; font-family: var(--fw-font); font-size: .78rem; font-weight: 800; color: var(--fw-g500); cursor: pointer; transition: all .15s; white-space: nowrap; }
.fw-cp-tab:hover { color: var(--fw-orange); background: var(--fw-orange-l); }
.fw-cp-tab.active { color: var(--fw-orange); border-bottom-color: var(--fw-orange); background: var(--fw-white); }
.fw-cp-tab-actions { display: flex; gap: .2rem; margin-left: auto; padding-right: .25rem; flex-shrink: 0; }
.fw-cp-icon-btn { background: none; border: 1.5px solid var(--fw-g200); border-radius: 8px; padding: .3rem .4rem; font-size: .9rem; cursor: pointer; transition: all .15s; line-height: 1; }
.fw-cp-icon-btn:hover { border-color: var(--fw-orange); background: var(--fw-orange-l); }

.fw-cp-body { flex: 1; overflow-y: auto; }

.fw-tab-content { display: none; padding: .75rem; }
.fw-tab-content.active { display: block; }

/* Entries tab */
.fw-games-link-btn {
    display: block; width: 100%; text-align: center;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff; font-weight: 800; font-size: .9rem;
    padding: .55rem .75rem; border-radius: 10px;
    text-decoration: none; margin-bottom: .6rem;
    box-shadow: 0 2px 8px rgba(22,163,74,.25);
    transition: opacity .15s, transform .1s;
}
.fw-games-link-btn:hover { opacity: .9; transform: translateY(-1px); }
.fw-print-book-btn { background: linear-gradient(135deg, #f97316, #ea580c); box-shadow: 0 2px 8px rgba(249,115,22,.25); }
.fw-entries-count { font-size: .8rem; font-weight: 800; color: var(--fw-g600); margin-bottom: .5rem; background: var(--fw-g100); padding: .3rem .6rem; border-radius: 8px; text-align: center; }
.fw-entry-search-row { display: flex; gap: .4rem; margin-bottom: .5rem; }
.fw-entry-search { flex: 1; border: 1.5px solid var(--fw-g200); border-radius: 9px; padding: .4rem .65rem; font-family: var(--fw-font); font-size: .82rem; outline: none; transition: border-color .15s; }
.fw-entry-search:focus { border-color: var(--fw-orange); }
.fw-btn-add { background: var(--fw-orange); color: #fff; border: none; border-radius: 9px; padding: .4rem .75rem; font-family: var(--fw-font); font-size: .82rem; font-weight: 800; cursor: pointer; white-space: nowrap; transition: background .15s; }
.fw-btn-add:hover { background: var(--fw-orange-d); }

.fw-entry-list { display: flex; flex-direction: column; gap: .25rem; max-height: 340px; overflow-y: auto; margin-bottom: .5rem; }
.fw-entry-item { display: flex; align-items: center; gap: .4rem; padding: .35rem .4rem; border-radius: 9px; background: var(--fw-g50); border: 1px solid var(--fw-g100); transition: background .12s; }
.fw-entry-item:hover { background: var(--fw-orange-l); }
.fw-entry-item.fw-entry-hidden { opacity: .45; }
.fw-drag-handle { color: var(--fw-g400); font-size: .9rem; cursor: grab; flex-shrink: 0; }
.fw-color-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
img.fw-entry-thumb { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; border-radius: 4px; }
span.fw-entry-thumb { font-size: 1.1rem; flex-shrink: 0; line-height: 1; }
.fw-entry-name { flex: 1; font-size: .83rem; font-weight: 700; color: var(--fw-g700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-entry-actions { display: flex; gap: .2rem; flex-shrink: 0; }
.fw-entry-btn { background: none; border: 1px solid var(--fw-g200); border-radius: 6px; padding: .15rem .3rem; font-size: .8rem; cursor: pointer; line-height: 1.2; transition: all .12s; }
.fw-entry-btn:hover { border-color: var(--fw-orange); background: var(--fw-orange-l); }
.fw-entry-btn.fw-entry-btn-hidden { border-color: var(--fw-g300); background: var(--fw-g100); }
.fw-entry-btn.fw-entry-btn-del:hover { border-color: #e53e3e; background: #fff5f5; color: #e53e3e; }

.fw-entries-footer { display: flex; flex-wrap: wrap; gap: .35rem; padding-top: .5rem; border-top: 1px solid var(--fw-g100); }
.fw-btn-sm { background: var(--fw-g100); border: 1.5px solid var(--fw-g200); border-radius: 8px; padding: .3rem .6rem; font-family: var(--fw-font); font-size: .78rem; font-weight: 700; cursor: pointer; color: var(--fw-g600); transition: all .15s; white-space: nowrap; }
.fw-btn-sm:hover { border-color: var(--fw-orange); color: var(--fw-orange); background: var(--fw-orange-l); }
.fw-btn-sm.fw-btn-danger:hover { border-color: #e53e3e; color: #e53e3e; background: #fff5f5; }

/* Results tab */
.fw-results-label { font-size: .8rem; font-weight: 900; color: var(--fw-g500); text-transform: uppercase; letter-spacing: .04em; margin: .75rem 0 .35rem; }
.fw-results-label:first-child { margin-top: 0; }
.fw-results-empty { text-align: center; padding: .75rem; font-size: .82rem; color: var(--fw-g400); background: var(--fw-g50); border-radius: 10px; }
.fw-results-footer { display: flex; gap: .35rem; flex-wrap: wrap; padding-top: .5rem; border-top: 1px solid var(--fw-g100); margin-top: .5rem; }

/* Settings tab */
.fw-settings-label { font-size: .8rem; font-weight: 900; color: var(--fw-g500); text-transform: uppercase; letter-spacing: .04em; margin: .75rem 0 .35rem; }
.fw-settings-label:first-child { margin-top: 0; }

/* Import overlay */
.fw-import-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; align-items: center; justify-content: center; }
.fw-import-overlay.show { display: flex; }
.fw-import-box { background: var(--fw-white); border-radius: 16px; padding: 1.5rem; width: min(420px, 90vw); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.fw-import-ta { width: 100%; box-sizing: border-box; border: 1.5px solid var(--fw-g200); border-radius: 10px; padding: .6rem .75rem; font-family: var(--fw-font); font-size: .85rem; resize: vertical; outline: none; margin-bottom: .75rem; transition: border-color .15s; }
.fw-import-ta:focus { border-color: var(--fw-orange); }
.fw-import-actions { display: flex; gap: .5rem; justify-content: flex-end; }
.fw-import-do { background: var(--fw-orange); color: #fff; border: none; border-radius: 9px; padding: .5rem 1.1rem; font-family: var(--fw-font); font-size: .88rem; font-weight: 800; cursor: pointer; transition: background .15s; }
.fw-import-do:hover { background: var(--fw-orange-d); }
.fw-import-cancel { background: var(--fw-g100); color: var(--fw-g600); border: 1.5px solid var(--fw-g200); border-radius: 9px; padding: .5rem 1rem; font-family: var(--fw-font); font-size: .88rem; font-weight: 700; cursor: pointer; transition: all .15s; }
.fw-import-cancel:hover { border-color: var(--fw-g400); }

/* Responsive: stack panel below wheel on tablet */
@media (max-width: 900px) {
  .fw-cp-panel { min-height: 300px; }
  .fw-entry-list { max-height: 200px; }
}
(.175,.885,.32,1.275);
}
.fw-import-box h3 { font-size: .95rem; font-weight: 900; margin-bottom: .4rem; color: var(--fw-g800); }
.fw-import-box p { font-size: .8rem; color: var(--fw-g600); margin-bottom: .6rem; line-height: 1.5; }
.fw-import-ta {
  width: 100%;
  padding: .55rem .7rem;
  border: 1.5px solid var(--fw-g200);
  border-radius: 10px;
  font-family: var(--fw-font);
  font-size: .85rem;
  resize: vertical;
  outline: none;
  margin-bottom: .7rem;
  min-height: 110px;
  color: var(--fw-g800);
}
.fw-import-ta:focus { border-color: var(--fw-orange); }
.fw-import-actions { display: flex; gap: .5rem; }
.fw-import-actions button {
  flex: 1;
  padding: .5rem;
  border-radius: 10px;
  border: none;
  font-family: var(--fw-font);
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s;
}
.fw-import-do { background: var(--fw-orange); color: #fff; }
.fw-import-do:hover { background: var(--fw-orange-d); }
.fw-import-cancel { background: var(--fw-g100); color: var(--fw-g600); }
.fw-import-cancel:hover { background: var(--fw-g200); }
