/* Wah-Kit "Just for fun" */
.fun-back { margin: 16px 0 -8px; font-size: 14px; }
.fun-back a { color: var(--ink-soft); }
.fun-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; max-width: 1000px; }
.fun-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; background: linear-gradient(160deg, #fff, #FFF4EF); border: 1px solid #F3D9CE; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.fun-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29, 26, 57, .08); }
.fun-card .fi { font-size: 38px; line-height: 1; }
.fun-card b { font: 800 20px var(--font-display); margin-top: 6px; }
.fun-card small { color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; flex: 1; }
.fun-card .go { color: var(--accent-strong); font-weight: 700; font-size: 14px; margin-top: 6px; }
.fun-note { color: var(--muted); font-size: 14px; max-width: 760px; }
.fun { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.fun-form { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 20px; background: linear-gradient(135deg, #F5F0FF, #FFF1EB); border: 1px solid #E5DAF7; }
.fun-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.fun-f small { font-weight: 400; color: var(--muted); }
.fun-f input, .fun-f select, .fun-f textarea { min-height: 50px; border: 1px solid #DCD3EE; border-radius: 14px; padding: 0 14px; font: 600 17px var(--font-body); color: var(--ink); background: #fff; min-width: 0; width: 100%; box-sizing: border-box; }
.fun-f textarea { padding: 12px 14px; resize: vertical; line-height: 1.4; }
.fun-f select { font-weight: 500; font-size: 16px; }
.fun-dm { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
.fun-dm select { min-height: 50px; border: 1px solid #DCD3EE; border-radius: 14px; padding: 0 10px; font: 500 16px var(--font-body); background: #fff; }
.fun-go { min-height: 52px; font-size: 17px; }
.fun-err { margin: 0; color: #B42318; font-size: 14px; }
.fun-err:empty { display: none; }
.fun-res { --rc: #7C3AED; padding: 24px 18px; border-radius: 20px; color: #fff; text-align: center; background: linear-gradient(140deg, var(--rc), #1D1A39); animation: funPop .4s ease-out; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fun-res h2 { font: 800 30px var(--font-display); margin: 0; color: #fff; }
.fun-q { margin: 0; opacity: .85; font-weight: 600; overflow-wrap: anywhere; max-width: 560px; }
.fun-topic { display: inline-block; margin-top: 6px; background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; }
.fun-emoji { font-size: 58px; line-height: 1.1; margin-top: 4px; }
.fun-num { font: 800 64px var(--font-display); line-height: 1; }
.fun-line { margin: 0; max-width: 520px; line-height: 1.5; opacity: .93; }
.fun-small { margin: 8px 0 0; font-size: 12.5px; opacity: .7; }
.fun-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.fun-acts .btn { min-height: 44px; }
.fun-acts .btn-ghost { background: rgba(255, 255, 255, .95); }
.fun-wa { background: #1B7F4A; color: #fff; }
.fun-wa:hover { background: #146A3D; color: #fff; }
.fun-how { margin-top: 10px; width: 100%; max-width: 520px; text-align: left; background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 8px 12px; }
.fun-how summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.fun-work { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 14px; }
.fun-work div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fun-work span { opacity: .8; }
.fun-work .tot { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 6px; }
.fun-tiles { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin: 4px 0; }
.fun-tile { display: flex; flex-direction: column; align-items: center; width: 32px; padding: 4px 0; border-radius: 8px; background: rgba(255, 255, 255, .14); }
.fun-tile b { font-size: 16px; }
.fun-tile small { font-size: 12px; opacity: .8; }
.fun-sum { margin: 0; font-size: 13.5px; opacity: .8; overflow-wrap: anywhere; }
.fun-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 4px; }
.fun-chips span { background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; font-weight: 600; }
.fun-luck { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 420px; margin: 8px 0; }
.fun-luck > div { background: rgba(255, 255, 255, .12); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fun-luck small { opacity: .8; font-size: 13px; }
.fun-luck b { font-size: 20px; }
.fun-swatch { width: 54px; height: 54px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.fun-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; width: 100%; margin: 10px 0 4px; }
.fun-fact { background: rgba(255, 255, 255, .12); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fun-fact .fi { font-size: 26px; }
.fun-fact small { opacity: .8; font-size: 12.5px; }
.fun-fact b { font-size: 19px; }
.fun-fact em { font-style: normal; font-size: 12.5px; opacity: .8; }
.fun-care { padding: 18px; border-radius: 16px; background: #FFF8E1; border: 1px solid #F3DE9C; color: #3B3215; }
.fun-care p { margin: 8px 0 0; line-height: 1.5; }
.fun-more { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.fun-more a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
@keyframes funPop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 560px) { .fun-form { padding: 16px; } .fun-res h2 { font-size: 26px; } .fun-facts { grid-template-columns: 1fr 1fr; } .fun-fact { padding: 10px 6px; } .fun-fact b { font-size: 16px; } .fun-fact em { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .fun-res { animation: none; } .fun-card { transition: none; } }

/* Ask the Genie */
.gn-box { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 22px; background: radial-gradient(circle at 50% 0%, #4C1D95, #1D1A39 75%); color: #fff; }
.gn-q { margin: 0; font-weight: 700; opacity: .9; text-align: center; font-size: 17px; }
.gn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gn-chip { border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 999px; padding: 7px 12px; font: 600 14px var(--font-body); cursor: pointer; }
.gn-chip.on { background: #FBBF24; border-color: #FBBF24; color: #1D1A39; }
.gn-box textarea { border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; padding: 10px 12px; font: 16px var(--font-body); color: #fff; background: rgba(255, 255, 255, .08); resize: vertical; }
.gn-box textarea::placeholder { color: rgba(255, 255, 255, .6); }
.gn-lamp { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border: 0; border-radius: 18px; background: linear-gradient(135deg, #FBBF24, #F59E0B); color: #1D1A39; cursor: pointer; font: inherit; box-shadow: 0 0 30px rgba(251, 191, 36, .35); }
.gn-lamp b { font: 800 19px var(--font-display); }
.gn-lamp small { font-size: 13px; font-weight: 600; }
.gn-lamp-i { font-size: 46px; line-height: 1; }
.gn-lamp[disabled] { background: rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .7); box-shadow: none; cursor: default; }
.gn-lamp.rub .gn-lamp-i { animation: gnRub .6s ease-in-out; }
.gn-bubble { position: relative; padding: 22px 18px 18px; border-radius: 22px; background: linear-gradient(160deg, #F5F0FF, #FFF7ED); border: 1px solid #E5DAF7; text-align: center; animation: funPop .45s ease-out; }
.gn-genie { font-size: 54px; line-height: 1; }
.gn-ack { margin: 6px 0 0; color: var(--ink-soft); font-weight: 600; }
.gn-say { margin: 12px auto 4px; max-width: 520px; font: 800 24px/1.35 var(--font-display); color: #4C1D95; }
.gn-say::before { content: "“"; } .gn-say::after { content: "”"; }
.gn-bubble .fun-acts .btn-ghost { background: #fff; }
.gn-last, .gn-when { margin: 14px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.gn-bubble.rest .gn-ack { font-size: 16px; color: var(--ink); }
.gn-list h3 { font-size: 16px; margin: 8px 0 6px; }
.gn-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-top: 6px; }
.gn-item p { margin: 0; flex: 1; line-height: 1.45; }
.gn-item .linkbtn { border: 0; background: none; color: var(--blue); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; }
.gn-note { color: var(--muted); font-size: 13.5px; margin: 0; }
@keyframes gnRub { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg) translateX(-4px); } 75% { transform: rotate(14deg) translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .gn-lamp.rub .gn-lamp-i, .gn-bubble { animation: none; } }

/* Colouring pages */
.cl-top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, #FFF1EB, #F5F0FF); border: 1px solid #EBDDF5; }
.cl-topt b { font: 800 20px var(--font-display); }
.cl-topt p { margin: 6px 0 12px; color: var(--ink-soft); line-height: 1.45; }
.cl-grp h2 { font-size: 18px; margin: 18px 0 8px; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.cl-th { position: relative; display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.cl-th:hover { border-color: var(--accent); box-shadow: 0 6px 16px rgba(29, 26, 57, .08); }
.cl-th svg { width: 100%; height: auto; display: block; pointer-events: none; }
.cl-tl { font-size: 13px; font-weight: 700; padding: 6px 2px 2px; text-align: center; }
.cl-badge { position: absolute; top: 8px; left: 8px; background: var(--accent-strong); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.cl-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.cl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cl-bar .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
.cl-name { flex: 1; min-width: 100px; font: 800 18px var(--font-display); }
.cl-z { min-width: 42px; font-size: 18px !important; }
.cl-wrap { overflow: auto; max-height: 80vh; border: 1px solid var(--line); border-radius: 16px; background: #fff; -webkit-overflow-scrolling: touch; }
.cl-art svg { display: block; width: 100%; height: auto; touch-action: manipulation; cursor: pointer; }
.cl-art .r { transition: fill .15s; }
.cl-pal { position: sticky; bottom: calc(var(--tabbar, 0px) + 6px); z-index: 20; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .97); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(29, 26, 57, .12); }
.cl-row { display: flex; align-items: center; gap: 8px; }
.cl-now { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--ink); }
.cl-sw { display: flex; gap: 6px; overflow-x: auto; flex: 1; padding: 2px; scrollbar-width: none; }
.cl-c { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .15); cursor: pointer; }
.cl-c.on { outline: 3px solid var(--ink); outline-offset: 2px; }
.cl-any { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 2px dashed var(--line); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; }
.cl-any input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cl-sets { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cl-sets button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font: 600 13px var(--font-body); color: var(--ink); cursor: pointer; }
.cl-sets button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cl-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-magic { background: linear-gradient(135deg, #8B5CF6, #EC4899); color: #fff; }
.cl-magic:hover { color: #fff; filter: brightness(1.05); }
.cl-share { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.cl-cap { min-height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: 16px var(--font-body); }
.cl-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-msg { margin: 0; font-size: 14px; color: #145A33; }
.cl-msg:empty { display: none; }
@media (max-width: 560px) { .cl-top { grid-template-columns: 120px minmax(0, 1fr); padding: 12px; } .cl-topt b { font-size: 17px; } .cl-topt p { font-size: 14px; } .cl-grid { grid-template-columns: repeat(2, 1fr); } .cl-c { width: 32px; height: 32px; } }
