/* Winter Wonderland (id "wonderland", premium): a bright, crisp winter dawn (a light theme). Pale blue sky warming to
   pink at the horizon, a low sun, icy mountains, frost-covered pines round a frozen lake with reflections and glints
   sliding across the ice, icicles along the top, glittering diamond dust and slow-turning ice crystals in the air.
   The app: frosted-ice buttons with icicles hanging underneath, frosted-glass cards with an ice crystal, Head to Head
   tiles as blocks of coloured ice, an icy "Party" title, a frosty rim on the bottom bar.
   The scene is SCENES.wonderland in theme-wonderland.js; its style items use the code "ww". */

/* the theme's little drawings (icicles, frost, ice crystals), defined once and used below */
:root {
  --ww-icicles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 16'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.45' stop-color='%23d9f1ff'/%3E%3Cstop offset='1' stop-color='%2392cdf2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M-2 0H74V3H68.8Q67.4 5.4 66 7Q64.6 5.4 63.2 3H58.8Q56.9 7.2 55 10Q53.1 7.2 51.2 3H41.2Q39.1 8.399999999999999 37 12Q34.9 8.399999999999999 32.8 3H26.4Q24.7 6.6 23 9Q21.3 6.6 19.6 3H12.4Q10.2 9.6 8 14Q5.8 9.6 3.5999999999999996 3H-2Z' fill='url(%23g)' stroke='%232b4f80' stroke-width='1.1' stroke-linejoin='round'/%3E%3Cpath d='M6.02 4Q6.68 8.5 7.7 11.8' stroke='%23fff' stroke-width='1' fill='none' stroke-linecap='round' opacity='.9'/%3E%3Cpath d='M21.47 4Q21.98 6.0 22.7 7.800000000000001' stroke='%23fff' stroke-width='1' fill='none' stroke-linecap='round' opacity='.9'/%3E%3Cpath d='M35.11 4Q35.74 7.5 36.7 10.2' stroke='%23fff' stroke-width='1' fill='none' stroke-linecap='round' opacity='.9'/%3E%3Cpath d='M53.29 4Q53.86 6.5 54.7 8.600000000000001' stroke='%23fff' stroke-width='1' fill='none' stroke-linecap='round' opacity='.9'/%3E%3C/svg%3E");
  --ww-icicles-small: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.45' stop-color='%23d9f1ff'/%3E%3Cstop offset='1' stop-color='%2392cdf2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M-2 0H42V3H34.2Q32.6 6.6 31 9Q29.4 6.6 27.8 3H22.6Q21.3 5.4 20 7Q18.7 5.4 17.4 3H10.4Q8.7 7.2 7 10Q5.3 7.2 3.6 3H-2Z' fill='url(%23g)' stroke='%232b4f80' stroke-width='1' stroke-linejoin='round'/%3E%3Cpath d='M5.47 4Q5.98 6.5 6.7 8.600000000000001' stroke='%23fff' stroke-width='1' fill='none' stroke-linecap='round' opacity='.9'/%3E%3Cpath d='M29.56 4Q30.04 6.0 30.7 7.800000000000001' stroke='%23fff' stroke-width='1' fill='none' stroke-linecap='round' opacity='.9'/%3E%3C/svg%3E");
  --ww-fern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 60 60'%3E%3Cpath d='M0 0L45.6 6.4M7.6 1.1l7.9 -5.3M7.6 1.1l6.1 7.3M15.2 2.1l6.6 -4.5M15.2 2.1l5.1 6.1M22.8 3.2l5.4 -3.6M22.8 3.2l4.2 5.0M30.4 4.3l4.1 -2.8M30.4 4.3l3.2 3.8M38.0 5.3l2.9 -2.0M38.0 5.3l2.2 2.7M0 0L33.9 21.2M5.7 3.5l9.4 -1.6M5.7 3.5l2.6 9.1M11.3 7.1l7.9 -1.4M11.3 7.1l2.2 7.7M17.0 10.6l6.4 -1.1M17.0 10.6l1.8 6.2M22.6 14.1l4.9 -0.9M22.6 14.1l1.4 4.8M28.3 17.7l3.4 -0.6M28.3 17.7l1.0 3.4M0 0L23.3 37.3M3.9 6.2l9.1 2.6M3.9 6.2l-1.6 9.4M7.8 12.4l7.7 2.2M7.8 12.4l-1.4 7.9M11.7 18.7l6.2 1.8M11.7 18.7l-1.1 6.4M15.5 24.9l4.8 1.4M15.5 24.9l-0.9 4.9M19.4 31.1l3.4 1.0M19.4 31.1l-0.6 3.4M0 0L4.7 33.7M0.8 5.6l7.3 6.1M0.8 5.6l-5.3 7.9M1.6 11.2l6.1 5.1M1.6 11.2l-4.5 6.6M2.4 16.8l5.0 4.2M2.4 16.8l-3.6 5.4M3.2 22.4l3.8 3.2M3.2 22.4l-2.8 4.1M3.9 28.1l2.7 2.2M3.9 28.1l-2.0 2.9' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' opacity='0.75'/%3E%3C/svg%3E");
  --ww-fern-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 60 60'%3E%3Cpath d='M0 0L45.6 6.4M7.6 1.1l7.9 -5.3M7.6 1.1l6.1 7.3M15.2 2.1l6.6 -4.5M15.2 2.1l5.1 6.1M22.8 3.2l5.4 -3.6M22.8 3.2l4.2 5.0M30.4 4.3l4.1 -2.8M30.4 4.3l3.2 3.8M38.0 5.3l2.9 -2.0M38.0 5.3l2.2 2.7M0 0L33.9 21.2M5.7 3.5l9.4 -1.6M5.7 3.5l2.6 9.1M11.3 7.1l7.9 -1.4M11.3 7.1l2.2 7.7M17.0 10.6l6.4 -1.1M17.0 10.6l1.8 6.2M22.6 14.1l4.9 -0.9M22.6 14.1l1.4 4.8M28.3 17.7l3.4 -0.6M28.3 17.7l1.0 3.4M0 0L23.3 37.3M3.9 6.2l9.1 2.6M3.9 6.2l-1.6 9.4M7.8 12.4l7.7 2.2M7.8 12.4l-1.4 7.9M11.7 18.7l6.2 1.8M11.7 18.7l-1.1 6.4M15.5 24.9l4.8 1.4M15.5 24.9l-0.9 4.9M19.4 31.1l3.4 1.0M19.4 31.1l-0.6 3.4M0 0L4.7 33.7M0.8 5.6l7.3 6.1M0.8 5.6l-5.3 7.9M1.6 11.2l6.1 5.1M1.6 11.2l-4.5 6.6M2.4 16.8l5.0 4.2M2.4 16.8l-3.6 5.4M3.2 22.4l3.8 3.2M3.2 22.4l-2.8 4.1M3.9 28.1l2.7 2.2M3.9 28.1l-2.0 2.9' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' opacity='0.55'/%3E%3C/svg%3E");
  --ww-fern-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 60 60'%3E%3Cpath d='M0 0L45.6 6.4M7.6 1.1l7.9 -5.3M7.6 1.1l6.1 7.3M15.2 2.1l6.6 -4.5M15.2 2.1l5.1 6.1M22.8 3.2l5.4 -3.6M22.8 3.2l4.2 5.0M30.4 4.3l4.1 -2.8M30.4 4.3l3.2 3.8M38.0 5.3l2.9 -2.0M38.0 5.3l2.2 2.7M0 0L33.9 21.2M5.7 3.5l9.4 -1.6M5.7 3.5l2.6 9.1M11.3 7.1l7.9 -1.4M11.3 7.1l2.2 7.7M17.0 10.6l6.4 -1.1M17.0 10.6l1.8 6.2M22.6 14.1l4.9 -0.9M22.6 14.1l1.4 4.8M28.3 17.7l3.4 -0.6M28.3 17.7l1.0 3.4M0 0L23.3 37.3M3.9 6.2l9.1 2.6M3.9 6.2l-1.6 9.4M7.8 12.4l7.7 2.2M7.8 12.4l-1.4 7.9M11.7 18.7l6.2 1.8M11.7 18.7l-1.1 6.4M15.5 24.9l4.8 1.4M15.5 24.9l-0.9 4.9M19.4 31.1l3.4 1.0M19.4 31.1l-0.6 3.4M0 0L4.7 33.7M0.8 5.6l7.3 6.1M0.8 5.6l-5.3 7.9M1.6 11.2l6.1 5.1M1.6 11.2l-4.5 6.6M2.4 16.8l5.0 4.2M2.4 16.8l-3.6 5.4M3.2 22.4l3.8 3.2M3.2 22.4l-2.8 4.1M3.9 28.1l2.7 2.2M3.9 28.1l-2.0 2.9' fill='none' stroke='%235aa6dc' stroke-width='1.6' stroke-linecap='round' opacity='0.5'/%3E%3C/svg%3E");
  --ww-crystal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-20 -20 40 40'%3E%3Cdefs%3E%3ClinearGradient id='c' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%2386c8f2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 0L0.0 -15.0M0.0 -7.5l-3.7 -3.3M0.0 -7.5l3.7 -3.3M0.0 -11.7l-2.5 -2.3M0.0 -11.7l2.5 -2.3M0 0L13.0 -7.5M6.5 -3.7l1.0 -4.9M6.5 -3.7l4.8 1.5M10.1 -5.8l0.7 -3.3M10.1 -5.8l3.2 1.1M0 0L13.0 7.5M6.5 3.7l4.8 -1.5M6.5 3.7l1.0 4.9M10.1 5.8l3.2 -1.1M10.1 5.8l0.7 3.3M0 0L0.0 15.0M0.0 7.5l3.7 3.3M0.0 7.5l-3.7 3.3M0.0 11.7l2.5 2.3M0.0 11.7l-2.5 2.3M0 0L-13.0 7.5M-6.5 3.7l-1.0 4.9M-6.5 3.7l-4.8 -1.5M-10.1 5.8l-0.7 3.3M-10.1 5.8l-3.2 -1.1M0 0L-13.0 -7.5M-6.5 -3.8l-4.8 1.5M-6.5 -3.8l-1.0 -4.9M-10.1 -5.9l-3.2 1.1M-10.1 -5.9l-0.7 -3.3' stroke='%231b1033' stroke-width='4.8' stroke-linecap='round' fill='none'/%3E%3Cpath d='M0 0L0.0 -15.0M0.0 -7.5l-3.7 -3.3M0.0 -7.5l3.7 -3.3M0.0 -11.7l-2.5 -2.3M0.0 -11.7l2.5 -2.3M0 0L13.0 -7.5M6.5 -3.7l1.0 -4.9M6.5 -3.7l4.8 1.5M10.1 -5.8l0.7 -3.3M10.1 -5.8l3.2 1.1M0 0L13.0 7.5M6.5 3.7l4.8 -1.5M6.5 3.7l1.0 4.9M10.1 5.8l3.2 -1.1M10.1 5.8l0.7 3.3M0 0L0.0 15.0M0.0 7.5l3.7 3.3M0.0 7.5l-3.7 3.3M0.0 11.7l2.5 2.3M0.0 11.7l-2.5 2.3M0 0L-13.0 7.5M-6.5 3.7l-1.0 4.9M-6.5 3.7l-4.8 -1.5M-10.1 5.8l-0.7 3.3M-10.1 5.8l-3.2 -1.1M0 0L-13.0 -7.5M-6.5 -3.8l-4.8 1.5M-6.5 -3.8l-1.0 -4.9M-10.1 -5.9l-3.2 1.1M-10.1 -5.9l-0.7 -3.3' stroke='url(%23c)' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3Ccircle r='3.8' fill='url(%23c)' stroke='%231b1033' stroke-width='1.6'/%3E%3Ccircle cx='-1.3' cy='-1.4' r='1.4' fill='%23fff'/%3E%3C/svg%3E");
  --ww-crystal-air: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-20 -20 40 40'%3E%3Cdefs%3E%3ClinearGradient id='c' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23a9d8f6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 0L0.0 -15.0M0.0 -7.5l-3.7 -3.3M0.0 -7.5l3.7 -3.3M0.0 -11.7l-2.5 -2.3M0.0 -11.7l2.5 -2.3M0 0L13.0 -7.5M6.5 -3.7l1.0 -4.9M6.5 -3.7l4.8 1.5M10.1 -5.8l0.7 -3.3M10.1 -5.8l3.2 1.1M0 0L13.0 7.5M6.5 3.7l4.8 -1.5M6.5 3.7l1.0 4.9M10.1 5.8l3.2 -1.1M10.1 5.8l0.7 3.3M0 0L0.0 15.0M0.0 7.5l3.7 3.3M0.0 7.5l-3.7 3.3M0.0 11.7l2.5 2.3M0.0 11.7l-2.5 2.3M0 0L-13.0 7.5M-6.5 3.7l-1.0 4.9M-6.5 3.7l-4.8 -1.5M-10.1 5.8l-0.7 3.3M-10.1 5.8l-3.2 -1.1M0 0L-13.0 -7.5M-6.5 -3.8l-4.8 1.5M-6.5 -3.8l-1.0 -4.9M-10.1 -5.9l-3.2 1.1M-10.1 -5.9l-0.7 -3.3' stroke='%234a7fb8' stroke-width='2.6' stroke-linecap='round' fill='none'/%3E%3Cpath d='M0 0L0.0 -15.0M0.0 -7.5l-3.7 -3.3M0.0 -7.5l3.7 -3.3M0.0 -11.7l-2.5 -2.3M0.0 -11.7l2.5 -2.3M0 0L13.0 -7.5M6.5 -3.7l1.0 -4.9M6.5 -3.7l4.8 1.5M10.1 -5.8l0.7 -3.3M10.1 -5.8l3.2 1.1M0 0L13.0 7.5M6.5 3.7l4.8 -1.5M6.5 3.7l1.0 4.9M10.1 5.8l3.2 -1.1M10.1 5.8l0.7 3.3M0 0L0.0 15.0M0.0 7.5l3.7 3.3M0.0 7.5l-3.7 3.3M0.0 11.7l2.5 2.3M0.0 11.7l-2.5 2.3M0 0L-13.0 7.5M-6.5 3.7l-1.0 4.9M-6.5 3.7l-4.8 -1.5M-10.1 5.8l-0.7 3.3M-10.1 5.8l-3.2 -1.1M0 0L-13.0 -7.5M-6.5 -3.8l-4.8 1.5M-6.5 -3.8l-1.0 -4.9M-10.1 -5.9l-3.2 1.1M-10.1 -5.9l-0.7 -3.3' stroke='url(%23c)' stroke-width='1.2' stroke-linecap='round' fill='none'/%3E%3Ccircle r='1.8' fill='url(%23c)' stroke='%234a7fb8' stroke-width='1.6'/%3E%3Ccircle cx='-1.3' cy='-1.4' r='1.4' fill='%23fff'/%3E%3C/svg%3E");
  --ww-crystal-pink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-20 -20 40 40'%3E%3Cdefs%3E%3ClinearGradient id='c' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23f5bcd9'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 0L0.0 -15.0M0.0 -7.5l-3.7 -3.3M0.0 -7.5l3.7 -3.3M0.0 -11.7l-2.5 -2.3M0.0 -11.7l2.5 -2.3M0 0L13.0 -7.5M6.5 -3.7l1.0 -4.9M6.5 -3.7l4.8 1.5M10.1 -5.8l0.7 -3.3M10.1 -5.8l3.2 1.1M0 0L13.0 7.5M6.5 3.7l4.8 -1.5M6.5 3.7l1.0 4.9M10.1 5.8l3.2 -1.1M10.1 5.8l0.7 3.3M0 0L0.0 15.0M0.0 7.5l3.7 3.3M0.0 7.5l-3.7 3.3M0.0 11.7l2.5 2.3M0.0 11.7l-2.5 2.3M0 0L-13.0 7.5M-6.5 3.7l-1.0 4.9M-6.5 3.7l-4.8 -1.5M-10.1 5.8l-0.7 3.3M-10.1 5.8l-3.2 -1.1M0 0L-13.0 -7.5M-6.5 -3.8l-4.8 1.5M-6.5 -3.8l-1.0 -4.9M-10.1 -5.9l-3.2 1.1M-10.1 -5.9l-0.7 -3.3' stroke='%23b0609a' stroke-width='2.6' stroke-linecap='round' fill='none'/%3E%3Cpath d='M0 0L0.0 -15.0M0.0 -7.5l-3.7 -3.3M0.0 -7.5l3.7 -3.3M0.0 -11.7l-2.5 -2.3M0.0 -11.7l2.5 -2.3M0 0L13.0 -7.5M6.5 -3.7l1.0 -4.9M6.5 -3.7l4.8 1.5M10.1 -5.8l0.7 -3.3M10.1 -5.8l3.2 1.1M0 0L13.0 7.5M6.5 3.7l4.8 -1.5M6.5 3.7l1.0 4.9M10.1 5.8l3.2 -1.1M10.1 5.8l0.7 3.3M0 0L0.0 15.0M0.0 7.5l3.7 3.3M0.0 7.5l-3.7 3.3M0.0 11.7l2.5 2.3M0.0 11.7l-2.5 2.3M0 0L-13.0 7.5M-6.5 3.7l-1.0 4.9M-6.5 3.7l-4.8 -1.5M-10.1 5.8l-0.7 3.3M-10.1 5.8l-3.2 -1.1M0 0L-13.0 -7.5M-6.5 -3.8l-4.8 1.5M-6.5 -3.8l-1.0 -4.9M-10.1 -5.9l-3.2 1.1M-10.1 -5.9l-0.7 -3.3' stroke='url(%23c)' stroke-width='1.2' stroke-linecap='round' fill='none'/%3E%3Ccircle r='1.8' fill='url(%23c)' stroke='%23b0609a' stroke-width='1.6'/%3E%3Ccircle cx='-1.3' cy='-1.4' r='1.4' fill='%23fff'/%3E%3C/svg%3E");
  --ww-rim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 12'%3E%3Cdefs%3E%3ClinearGradient id='r' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23bfe3fb'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M-1 12V6L4 3l4 3 5-4 4 3 6-3 4 2 5-3 5 4 4-2 6 3 5-4 4 3 5-2 6 3 4-3 5 3 4-2v9z' fill='url(%23r)' stroke='%2387b9de' stroke-width='1' stroke-linejoin='round'/%3E%3Cg fill='%23fff'%3E%3Cpath d='M13 2l.7 1.8 1.8.7-1.8.7L13 7l-.7-1.8-1.8-.7 1.8-.7z'/%3E%3Cpath d='M52 1.6l.6 1.4 1.4.6-1.4.6-.6 1.4-.6-1.4-1.4-.6 1.4-.6z'/%3E%3C/g%3E%3C/svg%3E");
  --ww-glint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0-9L1.4-1.4 9 0 1.4 1.4 0 9-1.4 1.4-9 0-1.4-1.4z' fill='%23fff'/%3E%3Ccircle r='2' fill='%23fff'/%3E%3C/svg%3E");
}

/* ---- colours ---- */
[data-theme="wonderland"] {
  --bg-0: #e3eef9; --bg-1: #eef5fc; --bg-2: #f8fbff;
  --card: rgba(249, 252, 255, .93); --card-2: #e7f0fa; --panel-edge: #bcd3ea;
  --ink: #13294b; --ink-dim: #5a7395; --on-hot: #ffffff;
  --hot: #1f7fd6; --cool: #12a0b3; --amber: #d65d98; --good: #16a34a; --bad: #e5484d; --seen: #1f9fe0;
  --title-1: #13294b; --title-2: #2b8be0;
  --mine: #dcecfb; --mine-edge: #b0d1f1; --fact-bg: #f0ecff; --fact-edge: #d4c9f8;
  --shadow: 0 1px 2px rgba(19, 41, 75, .07), 0 4px 14px rgba(40, 90, 150, .12);
  --scrim: rgba(19, 41, 75, .35); --off: #cddbea; --press: #d3e1ef;
  /* jewel-toned ice for the Head to Head blocks */
  --s-general: #3a6fd8; --s-geography: #0c8db6; --s-history: #8a5cc9; --s-science: #0f9ea6;
  --s-nature: #24936a; --s-music: #cf5196; --s-film_tv: #c8435c; --s-sport: #d0841a;
  --s-arts_lit: #7558dc; --s-food: #dc6a38; --s-tech_games: #4759d2; --s-words: #19978a;
  /* the light-theme fixes theme-3d.css and app.css give Clean and Nevaeh's Jungle */
  --d3: .2;
  --r-common: #6b7186; --r-uncommon: #15803d; --r-rare: #1d63d8;
  --r-epic: #7c3aed; --r-legendary: #c2620a; --r-mythic: #4b5d78;
  /* bottom-bar icon colours (look3d.js TAB_ICONS): icy blue, dawn rose, glacier teal, periwinkle, silver-white */
  --tb-blue-1: #c4ecff; --tb-blue-2: #3a8fe0; --tb-pink-1: #ffd0e6; --tb-pink-2: #d9579a; --tb-green-1: #b4f4ee; --tb-green-2: #14a0b0;
  --tb-gold-1: #fff3c4; --tb-gold-2: #e4a632; --tb-purple-1: #dcd4ff; --tb-purple-2: #6c5fe0; --tb-red-1: #ffc0d6; --tb-red-2: #d8467a;
  --tb-cream-1: #ffffff; --tb-cream-2: #d4e6f6; --tb-orange-1: #c9e9ff; --tb-orange-2: #4a86d6; --tb-brown-1: #9fb3cf; --tb-brown-2: #586c8f;
}
[data-theme="wonderland"] .passhead .chip.on, [data-theme="wonderland"] .passon { color: #15803d; }
[data-theme="wonderland"] .pname[style] {
  filter: drop-shadow(0 0 .8px #13294b) drop-shadow(0 0 .8px #13294b) drop-shadow(0 1.5px 0 rgba(19, 41, 75, .5)); }
[data-theme="wonderland"] .hname .pname[style] {
  filter: drop-shadow(0 0 1.2px #13294b) drop-shadow(0 0 1.2px #13294b) drop-shadow(0 0 .6px #13294b) drop-shadow(0 2px 0 rgba(19, 41, 75, .45)); }
[data-theme="wonderland"] .ptitle:is(.r-legendary, .r-mythic) { text-shadow: 0 0 6px color-mix(in srgb, var(--rc) 25%, transparent); }
[data-theme="wonderland"] .ptitle.r-mythic { background-image: linear-gradient(100deg, var(--rc) 30%, #9fb1cc 50%, var(--rc) 70%); }
:root[data-theme="wonderland"] .hub .hbub b { color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }
[data-theme="wonderland"] :is(.title, .tag, .home .dim, .label) { text-shadow: 0 1px 6px rgba(248, 251, 255, .95); }
[data-theme="wonderland"] #splash { background: linear-gradient(#bfe0f6, #eaf3fb 55%, #fbe4ee); }

/* ---- the scene (SCENES.wonderland) ---- */
[data-theme="wonderland"] #stage-bg { background:
  radial-gradient(70% 30% at 72% 62%, rgba(255, 214, 226, .9), transparent 70%),
  linear-gradient(#9fcff2 0%, #c4e3f8 26%, #e4f1fb 46%, #f6eef6 58%, #fbdde9 66%, #eef4fb 100%); }
.ww-scene { position: absolute; inset: 0; overflow: hidden; }
.ww-scene svg { display: block; }

/* the low dawn sun, with soft rays turning slowly round it */
.ww-sun { position: absolute; left: 72%; top: calc(100% - var(--tabh) - env(safe-area-inset-bottom) - 30vh * .62); width: 4.4rem; height: 4.4rem;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #ffffff, #fff6e0 40%, #ffd9c8 72%, #ffc2d4 100%);
  box-shadow: 0 0 0 10px rgba(255, 240, 236, .35), 0 0 60px 30px rgba(255, 214, 228, .55), 0 0 120px 60px rgba(255, 236, 214, .4);
  animation: ww-glow 7s ease-in-out infinite; }
@keyframes ww-glow { 50% { box-shadow: 0 0 0 14px rgba(255, 240, 236, .28), 0 0 70px 36px rgba(255, 214, 228, .6), 0 0 140px 70px rgba(255, 236, 214, .45); } }
.ww-rays { position: absolute; left: 72%; top: calc(100% - var(--tabh) - env(safe-area-inset-bottom) - 30vh * .62); width: 150vmax; height: 150vmax;
  transform: translate(-50%, -50%); pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .55) 0deg 4deg, rgba(255, 255, 255, 0) 7deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .5) 18%, transparent 46%); mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .5) 18%, transparent 46%);
  animation: ww-turn 140s linear infinite; }
@keyframes ww-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* soft pastel cloud wisps drifting across */
.ww-cloud { position: absolute; top: var(--y); left: 0; width: var(--w); height: calc(var(--w) * .28); border-radius: 50%; opacity: .75;
  background: radial-gradient(50% 50% at 50% 60%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%);
  animation: ww-cloud var(--d) linear infinite; animation-delay: var(--t); }
@keyframes ww-cloud { from { transform: translateX(-60vw); } to { transform: translateX(110vw); } }

/* icy mountains, the far shore, the frozen lake, frosted pines and the near snow bank */
.ww-land { position: absolute; left: 0; right: 0; bottom: calc(var(--tabh) + env(safe-area-inset-bottom)); height: 30vh; }
.ww-land::after { content: ''; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 8rem; background: #f4f9ff; }
.ww-land > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ww-land > svg.ww-bank { top: auto; height: 22%; }
.ww-pine { position: absolute; bottom: 38%; left: var(--x); width: var(--w); transform: translateX(-50%); }
.ww-pine svg { width: 100%; height: auto; overflow: visible; filter: url(#f3dSmall); }
.ww-pine.far svg { filter: none; opacity: .62; }
.ww-pine.far .rf { display: none; }
.ww-pine .rf { position: absolute; left: 0; top: 0; width: 100%; height: auto; transform: scaleY(-.55); transform-origin: 50% 100%; opacity: .16; filter: blur(1px); }
.ww-pine .glint { position: absolute; width: .7rem; height: .7rem; left: var(--gx); top: var(--gy); background: var(--ww-glint) center / contain no-repeat;
  animation: ww-flash 5s ease-in-out infinite; animation-delay: var(--t); }
/* the ice: glints sweeping across and sparkles winking on it */
.ww-ice { position: absolute; left: 0; right: 0; top: 62%; bottom: 14%; overflow: hidden; }
.ww-ice .sweep { position: absolute; top: -20%; bottom: -20%; left: 0; width: 30%; transform: translateX(-120%) skewX(-30deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75) 45%, rgba(255, 255, 255, .95) 50%, rgba(255, 255, 255, .75) 55%, transparent);
  animation: ww-sweep 9s ease-in-out infinite; animation-delay: var(--t); }
@keyframes ww-sweep { 0% { transform: translateX(-120%) skewX(-30deg); } 45%, 100% { transform: translateX(420%) skewX(-30deg); } }
.ww-ice .wink, .ww-wink { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); background: var(--ww-glint) center / contain no-repeat;
  animation: ww-flash var(--d) ease-in-out infinite; animation-delay: var(--t); }
@keyframes ww-flash { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 12% { transform: scale(1) rotate(45deg); opacity: 1; } 24%, 99% { transform: scale(0) rotate(90deg); opacity: 0; } }

/* icicles along the top of the screen, with a drop of meltwater now and then */
.ww-icicles { position: absolute; left: 0; right: 0; top: 0; height: calc(2.1rem + env(safe-area-inset-top)); }
.ww-icicles svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(40, 90, 150, .2)); }
.ww-drop { position: absolute; left: var(--x); top: var(--y); width: 4px; height: 6px; margin-left: -2px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 35%, #fff, #a9dcff); box-shadow: 0 0 0 1px rgba(27, 16, 51, .35); opacity: 0;
  animation: ww-drip var(--d) ease-in infinite; animation-delay: var(--t); }
@keyframes ww-drip { 0%, 70% { transform: translateY(0) scale(.3); opacity: 0; } 76% { transform: translateY(0) scale(1); opacity: 1; }
  84% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(32vh); opacity: 0; } }

/* glittering diamond dust floating in the air */
.ww-dust { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  background: radial-gradient(circle, #fff 0 22%, rgba(255, 255, 255, 0) 60%), linear-gradient(transparent 45%, #fff 45% 55%, transparent 55%),
    linear-gradient(90deg, transparent 45%, #fff 45% 55%, transparent 55%);
  filter: drop-shadow(0 0 2px rgba(130, 190, 240, .9));
  animation: ww-float var(--d) ease-in-out infinite alternate, ww-twinkle var(--tw) ease-in-out infinite; animation-delay: var(--t), var(--t2); }
@keyframes ww-float { from { transform: translate(0, 0); } to { transform: translate(var(--dx), var(--dy)); } }
@keyframes ww-twinkle { 0%, 100% { opacity: .15; scale: .5; } 50% { opacity: 1; scale: 1.15; } }

/* big ice crystals drifting down, turning slowly */
.ww-crystal { position: absolute; top: -3rem; left: var(--x); width: var(--s); height: var(--s); opacity: var(--o);
  background: var(--ww-crystal-air) center / contain no-repeat; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9));
  animation: ww-crystal var(--d) linear infinite; animation-delay: var(--t); }
.ww-crystal.pk { background-image: var(--ww-crystal-pink); }
@keyframes ww-crystal { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(var(--sway), 55vh) rotate(180deg); }
  100% { transform: translate(0, 112vh) rotate(360deg); } }

/* ---- the app ---- */
/* the title: deep ice-blue "Smarty", "Party" carved from ice with a thick dark outline and an ice crystal on it */
[data-theme="wonderland"] .logo .l1 { color: #13294b; }
[data-theme="wonderland"] .logo .l2 { position: relative; color: transparent;
  background: linear-gradient(180deg, #ffffff 8%, #c9ecff 38%, #5bb3f2 66%, #2a77cf 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(1.2px 0 0 #1b1033) drop-shadow(-1.2px 0 0 #1b1033) drop-shadow(0 1.2px 0 #1b1033) drop-shadow(0 -1.2px 0 #1b1033)
    drop-shadow(0 3px 0 rgba(27, 16, 51, .22)) drop-shadow(0 0 10px rgba(120, 190, 245, .5)); }
[data-theme="wonderland"] .logo:not(.small) .l2::after { content: ''; position: absolute; right: -.4em; top: -.3em; width: .5em; height: .5em; pointer-events: none;
  background: var(--ww-crystal) center / contain no-repeat; animation: ww-spin 18s linear infinite; }
@keyframes ww-spin { to { transform: rotate(360deg); } }

/* main buttons: frosted ice, frost feathers on the glass, an ice ledge with icicles hanging underneath */
[data-theme="wonderland"] .btn:not(.ghost):not(.small) { position: relative; overflow: visible; }
:root[data-theme="wonderland"] .btn:not(.ghost) {
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .14) 46%, rgba(255, 255, 255, 0) 52%, rgba(10, 40, 90, .12)),
    linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .22) 31% 36%, rgba(255, 255, 255, 0) 37% 58%, rgba(255, 255, 255, .16) 59% 61%, rgba(255, 255, 255, 0) 62%),
    var(--hot);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .75), inset 0 0 0 1.5px rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(10, 40, 90, .2),
    0 5px 0 color-mix(in srgb, var(--hot) 58%, #0b1d3a), 0 12px 22px -6px color-mix(in srgb, var(--hot) 55%, transparent);
  text-shadow: 0 1px 2px rgba(10, 30, 70, .4); }
:root[data-theme="wonderland"] .btn:not(.ghost):active { box-shadow: inset 0 2px 5px rgba(10, 30, 70, .3), 0 1px 0 color-mix(in srgb, var(--hot) 58%, #0b1d3a); }
[data-theme="wonderland"] .btn:not(.ghost):not(.small)::before { content: ''; position: absolute; z-index: 2; pointer-events: none;
  left: 10px; right: 10px; top: calc(100% + 2px); height: 11px; background: var(--ww-icicles) 0 0 / 62px 13px repeat-x;
  filter: drop-shadow(0 2px 1.5px rgba(20, 60, 120, .25)); }
[data-theme="wonderland"] .btn:not(.ghost):not(.small):active::before { top: calc(100% - 2px); }
[data-theme="wonderland"] .btn:not(.ghost):not(.small)::after { content: ''; position: absolute; z-index: 1; pointer-events: none; inset: 0; border-radius: inherit;
  background: var(--ww-fern) -4px -4px / 3.4rem 3.4rem no-repeat, var(--ww-fern-soft) calc(100% + 6px) calc(100% + 6px) / 2.6rem 2.6rem no-repeat;
  opacity: .8; }

/* cards: frosted glass with a silver rim, frost growing in from a corner and an ice crystal pinned on top */
[data-theme="wonderland"] .panel { position: relative; }
:root[data-theme="wonderland"] :is(.panel, .sheetbox) {
  background: var(--ww-fern-blue) -6px -6px / 4.2rem 4.2rem no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 40%, rgba(160, 200, 240, .12)), var(--panel);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(90, 140, 200, .14),
    0 1px 2px rgba(19, 41, 75, .08), 0 14px 30px -10px rgba(40, 90, 150, .3);
  backdrop-filter: blur(6px); }
[data-theme="wonderland"] .panel::after { content: ''; position: absolute; top: -.7rem; right: -.45rem; width: 2.3rem; height: 2.3rem; pointer-events: none;
  background: var(--ww-crystal) center / contain no-repeat; transform: rotate(12deg); filter: drop-shadow(0 2px 2px rgba(20, 60, 120, .25)); }

/* Head to Head tiles: blocks of coloured ice, lit from the top left, with frost in the corner and icicles below */
[data-theme="wonderland"] .topic { overflow: visible; border: 0;
  background: var(--ww-fern) -4px -4px / 3.2rem 3.2rem no-repeat,
    linear-gradient(118deg, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, .28) 53% 57%, rgba(255, 255, 255, 0) 58% 66%, rgba(255, 255, 255, .18) 67% 68.5%, rgba(255, 255, 255, 0) 69.5%),
    linear-gradient(165deg, color-mix(in srgb, var(--sc) 52%, #ffffff) 0%, color-mix(in srgb, var(--sc) 85%, #e6f6ff) 42%, var(--sc) 70%, color-mix(in srgb, var(--sc) 78%, #0b2a52) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), inset 0 0 0 1.5px rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(10, 30, 70, .2),
    0 5px 0 color-mix(in srgb, var(--sc) 50%, #0b1d3a), 0 12px 18px -8px rgba(20, 50, 100, .45); }
[data-theme="wonderland"] .topic::after { content: ''; position: absolute; left: 14%; right: 14%; top: calc(100% + 3px); height: 11px; pointer-events: none;
  background: var(--ww-icicles-small) 0 0 / 40px 12px repeat-x; filter: drop-shadow(0 2px 1px rgba(20, 60, 120, .2)); }
[data-theme="wonderland"] .topic span, [data-theme="wonderland"] .topic small { text-shadow: 0 1px 3px rgba(10, 30, 70, .5); }
[data-theme="wonderland"] .topicgrid { row-gap: 1.1rem; }

/* the bottom bar: frosted glass with a frosty, glittering rim along the top */
[data-theme="wonderland"] #tabbar { overflow: visible;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(226, 239, 251, .95)); border-top: 1px solid #b9d6ef;
  box-shadow: 0 -8px 22px -8px rgba(40, 90, 150, .3); }
[data-theme="wonderland"] #tabbar::before { content: ''; position: absolute; left: 0; right: 0; top: -9px; height: 11px; pointer-events: none;
  background: var(--ww-rim) 0 0 / 80px 12px repeat-x; }
[data-theme="wonderland"] #tabbar button.homebtn::before { background: linear-gradient(180deg, #ffffff, #f2f8fe 60%); box-shadow: 0 -1px 0 #b9d6ef, 0 -8px 14px -6px rgba(40, 90, 150, .25); }
[data-theme="wonderland"] #tabbar button.on { color: #1765b0; }

/* small things in the accent colour read a shade deeper on the pale ice */
[data-theme="wonderland"] :is(.logo .beta, .codechip, .bigcode, .me .pts, .pl .sc, .stat b, .rank .pt, .crumb, .agree a, .linkbtn) { color: #1765b0; }

/* ---- Winter Wonderland style items (code "ww") ---- */
/* chat bubble "Frosted Glass": a pane of frosted ice with a few icicles under it (friends see it in every theme) */
html body .bubble.bub-ww.bub-ww { position: relative; overflow: visible; color: #13294b; border: 1.5px solid #7fb7e3; border-radius: 18px 18px 18px 6px;
  background: var(--ww-fern-blue) -3px -3px / 2.4rem 2.4rem no-repeat, linear-gradient(170deg, #ffffff, #e3f3ff 55%, #c3e3fa); margin-bottom: .35rem; }
html body .bubble.mine.bub-ww.bub-ww { border-radius: 18px 18px 6px 18px; }
html body .bubble.bub-ww.bub-ww::after { content: ''; position: absolute; left: 22%; width: 2.6rem; top: calc(100% - 1px); height: 8px; pointer-events: none;
  background: var(--ww-icicles-small) 0 0 / 30px 9px repeat-x; }
html body .bubble.bub-ww.bub-ww small { color: #4a6a92; opacity: 1; }

/* answer buttons "Icicle Blocks": each answer is a slab of ice in its own colour, frosted in the corner, icicles below */
body.btns-ww .abtn, .btns-ww-demo { position: relative; overflow: visible !important; color: #10264a !important; text-shadow: 0 1px 0 rgba(255, 255, 255, .7) !important;
  border: 2px solid rgba(255, 255, 255, .9) !important; border-radius: 14px !important;
  background: var(--ww-fern-blue) -4px -4px / 3rem 3rem no-repeat,
    linear-gradient(118deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .45) 56% 60%, rgba(255, 255, 255, 0) 61%),
    linear-gradient(170deg, color-mix(in srgb, var(--c) 18%, #ffffff), color-mix(in srgb, var(--c) 38%, #e2f4ff) 55%, color-mix(in srgb, var(--c) 62%, #b8dcf6)) !important;
  box-shadow: inset 0 2px 0 #fff, inset 0 -3px 0 color-mix(in srgb, var(--c) 30%, transparent), 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, #1b1033),
    0 5px 0 color-mix(in srgb, var(--c) 55%, #0b1d3a), 0 10px 16px -6px rgba(20, 50, 100, .4) !important; }
body.btns-ww .abtn:active { transform: translateY(4px); box-shadow: inset 0 2px 0 #fff, 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, #1b1033), 0 1px 0 color-mix(in srgb, var(--c) 55%, #0b1d3a) !important; }
body.btns-ww .abtn::after, .btns-ww-demo::after { content: ''; position: absolute; left: 16%; right: 16%; top: calc(100% + 5px); height: 10px; pointer-events: none;
  background: var(--ww-icicles-small) 0 0 / 34px 10px repeat-x; filter: drop-shadow(0 2px 1px rgba(20, 60, 120, .2)); }
body.btns-ww .abtn:active::after { top: calc(100% + 1px); }
body.btns-ww .abtn .badge { color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px color-mix(in srgb, var(--c) 60%, #1b1033), 0 3px 5px rgba(0, 0, 0, .3); }
.btns-ww-demo { --c: #3a8fe0; }
.btns-ww-demo::after { left: 10%; right: 10%; top: calc(100% + 4px); height: 7px; background-size: 24px 7px; }
body.btns-ww .ans { row-gap: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  [data-theme="wonderland"] .ww-scene *, [data-theme="wonderland"] .logo .l2::after { animation: none !important; }
  .ww-drop, .ww-crystal, .ww-cloud, .ww-ice .sweep, .ww-ice .wink, .ww-pine .glint { display: none; }
  .ww-dust { opacity: .7; }
}
