/* ==========================================================================
   Art styles (My Home → Theme → Art style): the whole site dressed after an
   artist — set as <html data-art-style="…"> (app.js
   applyTheme). "Classic" sets none, so nothing here applies: that's the undo.
   Delete this file and its <link> in partials/head.php to take it all out.
   A background picture of your own always stays (body.has-picture).
   ========================================================================== */

/* ---- Matisse: paper cut-outs — bold flat shapes, solid offset shadows, wobbly corners ---- */
html[data-art-style="matisse"] body:not(.has-picture) {
  background-color: #FBF4E6 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 10c12 30 40 8 46 30s-30 30-10 52 50 10 40 40-46 6-56 30-20 40-40 28 6-40-20-48-50 10-50-20 40-20 30-46-30-30-8-50 40 14 46-6 8-34 22-30z' fill='%232D4BA0' opacity='.9'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M40 160c-10-40 20-60 10-90s20-50 40-40 10 40 30 50 50-10 50 20-40 30-40 60-50 40-90 0z' fill='%23E2475A' opacity='.85'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 20c6 30-16 40 0 60s40-6 40 20-36 20-30 46 30 30 10 40-30-26-50-20-30 30-46 12 14-40 0-56-40-20-24-40 40 6 50-14 4-50 26-48z' fill='%23F3A92B' opacity='.85'/%3E%3C/svg%3E") !important;
  background-size: 340px, 260px, 220px !important;
  background-position: -90px -60px, calc(100% + 70px) 40%, 12% calc(100% + 60px) !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}
html[data-art-style="matisse"] .card { background: #FFFDF7; border: 0; border-radius: 22px 34px 26px 30px / 30px 24px 34px 22px; box-shadow: 7px 7px 0 #2D4BA0; backdrop-filter: none; }
html[data-art-style="matisse"] [data-card]:nth-child(3n + 2) .card { box-shadow: 7px 7px 0 #E2475A; }
html[data-art-style="matisse"] [data-card]:nth-child(3n) .card { box-shadow: 7px 7px 0 #F3A92B; }
html[data-art-style="matisse"] .card-title, html[data-art-style="matisse"] .page-head h2 { color: #2D4BA0; font-family: 'Fredoka', sans-serif; letter-spacing: .01em; }
html[data-art-style="matisse"] .btn-primary { background: #2D4BA0; box-shadow: 4px 4px 0 #E2475A; border-radius: 16px 12px 18px 10px; }

/* ---- Monet: water lilies — soft washes of lilac, teal and pink; airy, blurred cards ---- */
html[data-art-style="monet"] body:not(.has-picture) {
  background-color: #EEF1F4 !important;
  background-image:
    radial-gradient(ellipse 60% 45% at 15% 20%, rgba(176, 157, 214, .55), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(120, 186, 180, .5), transparent 70%),
    radial-gradient(ellipse 55% 45% at 30% 85%, rgba(156, 196, 140, .45), transparent 70%),
    radial-gradient(ellipse 40% 35% at 80% 85%, rgba(238, 170, 190, .5), transparent 70%) !important;
  background-size: 100% 100% !important;
  background-attachment: fixed !important;
}
html[data-art-style="monet"] .card { background: rgba(255, 255, 255, .62); border-color: rgba(255, 255, 255, .8); backdrop-filter: blur(14px) saturate(1.2); border-radius: 22px; }
html[data-art-style="monet"] .card-title, html[data-art-style="monet"] .page-head h2 { color: #4F5E8C; font-family: 'Playfair Display', serif; font-style: italic; }
html[data-art-style="monet"] .btn-primary { background: linear-gradient(135deg, #7C8FC8, #6FB0A8); box-shadow: 0 8px 18px -8px rgba(79, 94, 140, .6); }

/* ---- Bauhaus: primary colors, circles, squares and thick black lines ---- */
html[data-art-style="bauhaus"] body:not(.has-picture) {
  background-color: #F2EDE3 !important;
  background-image:
    radial-gradient(circle at 92% 12%, #E63B2E 0 70px, transparent 71px),
    linear-gradient(#1F5BA8, #1F5BA8),
    linear-gradient(#F2C230, #F2C230),
    linear-gradient(90deg, transparent calc(100% - 3px), rgba(0, 0, 0, .06) 0) !important;
  background-size: 100% 100%, 120px 120px, 60px 260px, 48px 48px !important;
  background-position: 0 0, -40px calc(100% + 30px), calc(100% - 30px) calc(100% + 60px), 0 0 !important;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat !important;
  background-attachment: fixed !important;
}
html[data-art-style="bauhaus"] .card { background: #FFFDF8; border: 3px solid #161616; border-radius: 0; box-shadow: none; backdrop-filter: none; }
html[data-art-style="bauhaus"] .card-title, html[data-art-style="bauhaus"] .page-head h2 { color: #161616; font-family: 'Quicksand', sans-serif; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
html[data-art-style="bauhaus"] .card-title .card-icon { border-radius: 9999px; background: #E63B2E; color: #fff; }
html[data-art-style="bauhaus"] .btn { border-radius: 0; }
html[data-art-style="bauhaus"] .btn-primary { background: #1F5BA8; box-shadow: none; }
html[data-art-style="bauhaus"] .nav-link.is-active { background: #161616; box-shadow: none; border-radius: 0; }

/* ---- Klimt: gold leaf and mosaic — warm parchment, gold frames, little squares and spirals ---- */
html[data-art-style="klimt"] body:not(.has-picture) {
  background-color: #F4E9CF !important;
  background-image:
    radial-gradient(circle, rgba(201, 164, 76, .5) 0 2px, transparent 2.5px),
    linear-gradient(45deg, rgba(201, 164, 76, .14) 25%, transparent 25% 75%, rgba(201, 164, 76, .14) 75%),
    radial-gradient(ellipse at 50% 0%, rgba(214, 170, 70, .35), transparent 60%) !important;
  background-size: 22px 22px, 44px 44px, 100% 100% !important;
  background-attachment: scroll, scroll, fixed !important;
}
html[data-art-style="klimt"] .card { background: #FFFBF0; border: 2px solid #C9A44C; box-shadow: 0 0 0 4px #FFFBF0, 0 0 0 5px rgba(201, 164, 76, .6), 0 14px 30px -14px rgba(120, 90, 20, .45); backdrop-filter: none; }
html[data-art-style="klimt"] .card-title, html[data-art-style="klimt"] .page-head h2 { color: #9A7424; font-family: 'Playfair Display', serif; font-style: italic; }
html[data-art-style="klimt"] .card-title .card-icon { background: linear-gradient(135deg, #E9CC7A, #B88A2C); color: #FFFBF0; }
html[data-art-style="klimt"] .btn-primary { background: linear-gradient(135deg, #D8B45A, #A97E25); box-shadow: 0 6px 14px -6px rgba(140, 100, 20, .6); }
html[data-art-style="klimt"] .nav-link.is-active { background: linear-gradient(135deg, #D8B45A, #A97E25); }

/* ---- Dalí: a dream desert — glowing sky down to a low horizon, endless sand, a melting clock over a branch;
   long soft shadows, cards that droop a little at the bottom (more when pointed at) ---- */
html[data-art-style="dali"] body:not(.has-picture) {
  background-color: #E8C58E !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 160'%3E%3Cpath d='M0 46 H140' stroke='%235A3E22' stroke-width='3' opacity='.55'/%3E%3Cpath d='M14 30 Q12 6 62 8 Q114 10 118 36 Q122 52 106 60 Q98 92 90 128 Q86 146 76 132 Q70 104 64 82 Q36 76 22 62 Q12 52 14 30Z' fill='%23EADBB0' stroke='%238C6A2E' stroke-width='3'/%3E%3Cpath d='M62 34 L62 18 M62 34 L86 44 M62 34 L74 70' stroke='%23493B37' stroke-width='2.5' stroke-linecap='round'/%3E%3Ccircle cx='62' cy='34' r='3' fill='%23493B37'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #E9A85A 0%, #F3CF8E 34%, #F7E2B6 52%, #DDB57A 53%, #C99A5C 100%) !important;
  background-size: 190px auto, 100% 100% !important;
  background-position: calc(100% - 4%) 49%, 0 0 !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}
html[data-art-style="dali"] .card { background: rgba(255, 250, 238, .9); border: 1px solid rgba(140, 106, 46, .25); backdrop-filter: none;
  border-radius: 16px 16px 26px 46px / 16px 16px 30px 22px; box-shadow: 26px 18px 0 -6px rgba(73, 45, 20, .1), 0 10px 24px -14px rgba(73, 45, 20, .4);
  transform-origin: 50% 0; transition: transform .6s cubic-bezier(.3, .7, .3, 1), border-radius .6s; }
html[data-art-style="dali"] [data-card]:hover > .card { transform: scaleY(1.012) skewX(-.6deg); border-radius: 16px 16px 34px 60px / 16px 16px 40px 26px; } /* it melts a little */
html[data-art-style="dali"] .card-title, html[data-art-style="dali"] .page-head h2 { color: #2F4A7A; font-family: 'Playfair Display', serif; font-style: italic; }
html[data-art-style="dali"] .card-title .card-icon { border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: #E9A85A; color: #FFFAEE; }
html[data-art-style="dali"] .btn-primary { background: #2F4A7A; border-radius: 12px 12px 16px 22px; box-shadow: 10px 6px 0 -3px rgba(73, 45, 20, .18); }
html[data-art-style="dali"] .nav-link.is-active { background: #2F4A7A; box-shadow: 8px 5px 0 -2px rgba(73, 45, 20, .2); }

/* ==========================================================================
   High contrast (html.hc — My Home, per device; auto on black-and-white screens): black on white,
   solid borders, no see-through or faded text, no background decoration. For e-ink phones.
   ========================================================================== */
html.hc {
  --ink: #000; --milk: #fff; --paper: #fff; --passionfruit: #000; --guava: #000;
  --mango: #000; --pulp: #000; --greentea: #000; --blueberry: #000; --ink-purple: #000;
  --game: #000; --game-deep: #000; --game-soft: rgba(0, 0, 0, .09);
  --shadow-card: none; --shadow-pop: 0 0 0 2px #000;
}
html.hc body { background: #fff !important; background-image: none !important; color: #000; }
html.hc .page-blobs, html.hc .page-blob { display: none !important; }
html.hc .card:not(.is-flat), html.hc .input, html.hc .row-item, html.hc .modal, html.hc .btn-soft, html.hc .tabs, html.hc .choice, html.hc .icon-btn, html.hc .mood-bubble, html.hc .dream-dots i, html.hc .board-filter, html.hc .memory-face, html.hc .board-react, html.hc .board-tools .icon-btn, html.hc .polaroid, html.hc .poem-paper, html.hc .paper, html.hc .letter-sheet, html.hc .env-body, html.hc .em-body, html.hc .env-letter, html.hc .em-letter, html.hc .arcade-box, html.hc .arcade-chip, html.hc .arcade-cover, html.hc .arcade-label, html.hc .arcade-tool, html.hc .pick-face, html.hc .pick-menu, html.hc .poll-bar, html.hc .oto-block, html.hc .oto-hint-btn, html.hc .oto-palette, html.hc .sf-zone, html.hc .sf-stage, html.hc .waldo-pick, html.hc .waldo-badge, html.hc .trip-chip, html.hc .trip-tools, html.hc .trip-past, html.hc .map-styles, html.hc .map-live-btn, html.hc .map-label, html.hc [data-map-box], html.hc [data-stage-wrap], html.hc .dice-face, html.hc .mc-front, html.hc .mm-card, html.hc .mm-table, html.hc .mm-table.is-strip, html.hc .pk-chip, html.hc .pk-btn, html.hc .cf-board, html.hc .pg-color, html.hc .fantasy-slip, html.hc .fantasy-tip, html.hc .smoothie-bar-tab, html.hc .vault-corner, html.hc .shelf-arrow, html.hc .mixer-panel > *, html.hc .gallery-wall, html.hc .gallery-label, html.hc .museum-label, html.hc .sk-case, html.hc .sk-zipper, html.hc .sk-tray-btn, html.hc .sk-pill, html.hc .kt-stall, html.hc .kt-ticket, html.hc .kt-wok, html.hc .kt-pan, html.hc .kt-board, html.hc .kt-prep-slot, html.hc .kt-pantry-btn {
  background: #fff !important; background-image: none !important; color: #000 !important; border: 1.5px solid #000 !important; backdrop-filter: none !important; box-shadow: none !important;
}
html.hc .icon-btn, html.hc .tab:not(.is-active) { border-color: rgba(0, 0, 0, .25) !important; }
html.hc .icon-btn, html.hc .btn-ghost, html.hc .btn-danger, html.hc .btn-soft, html.hc .link, html.hc .arcade-tool, html.hc .pg-color, html.hc .game-hints, html.hc .mm-note span { color: #000 !important; }
html.hc .icon-btn:hover, html.hc .arcade-tool:hover, html.hc .btn-ghost:hover { background: #000 !important; color: #fff !important; border-color: #000 !important; }
html.hc .icon-btn:hover *, html.hc .arcade-tool:hover *, html.hc .btn-ghost:hover * { color: #fff !important; }
html.hc .arcade-box:hover .arcade-tools, html.hc .arcade-tools:hover, html.hc .arcade-tools:focus-within { opacity: 1 !important; }
html.hc .arcade-tool { background: #fff !important; color: #000 !important; border: 1.5px solid #000 !important; }
html.hc .arcade-box:not(.is-open) .arcade-game { filter: grayscale(1) contrast(1.1) !important; opacity: .28 !important; }
html.hc .arcade-chip svg, html.hc .arcade-veil, html.hc .arcade-cover svg { color: #000 !important; }
html.hc .btn-primary, html.hc .btn-accent, html.hc .btn-calm, html.hc .arcade-game .btn-primary, html.hc .arcade-game .btn-accent, html.hc .arcade-game .btn-calm, html.hc .tab.is-active, html.hc .nav-link.is-active, html.hc .board-filter.is-on, html.hc .trip-chip.is-on, html.hc .trip-tool.is-on, html.hc .map-styles button.is-on, html.hc .map-live-btn.is-on, html.hc .sf-zone.is-on, html.hc .waldo-pick.is-on, html.hc .choice.is-active, html.hc .pk-chip.is-pot, html.hc .pk-btn.is-allin, html.hc .pk-btn.is-raise, html.hc .bg-guava, html.hc .bg-passionfruit {
  background: #000 !important; color: #fff !important; border-color: #000 !important; opacity: 1 !important; filter: none !important;
}
html.hc [class*="text-ink"], html.hc [class*="text-passionfruit"], html.hc [class*="text-guava"], html.hc [class*="text-mango"], html.hc [class*="text-greentea"],
html.hc [class*="text-blueberry"], html.hc .hint, html.hc .label, html.hc .section-label, html.hc .nav-link, html.hc .page-head p,
html.hc .mm-table .text-white, html.hc .mm-table [class*="text-white/"], html.hc .paper-midnight, html.hc .paper-midnight * { color: #000 !important; }
html.hc .btn-primary *, html.hc .btn-accent *, html.hc .btn-calm *, html.hc .arcade-game .btn-primary *, html.hc .arcade-game .btn-accent *, html.hc .arcade-game .btn-calm *, html.hc .tab.is-active *, html.hc .nav-link.is-active *, html.hc .trip-chip.is-on *, html.hc .trip-tool.is-on *, html.hc .map-styles button.is-on *, html.hc .map-live-btn.is-on *, html.hc .sf-zone.is-on *, html.hc .choice.is-active *, html.hc .pk-chip.is-pot *, html.hc .pk-btn.is-allin *, html.hc .pk-btn.is-raise *, html.hc .bg-guava *, html.hc .bg-passionfruit * { color: #fff !important; }
html.hc .mm-card.is-back, html.hc .mc-back { background: repeating-linear-gradient(45deg, #000 0 3px, #fff 3px 7px) !important; border: 2px solid #000 !important; }
html.hc .pk-slot-empty { border: 1.5px dashed #000 !important; background: #fff !important; }
html.hc .mm-card.is-best { border: 2.5px solid #000 !important; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000 !important; }
html.hc .mm-deck-label { color: #000 !important; text-shadow: none !important; background: #fff; padding: 0 .35rem; border: 1px solid #000; border-radius: 4px; }
html.hc .sk-grid { background: #000 !important; }
html.hc .sk-cell { background: #fff !important; border: 1px solid rgba(0, 0, 0, .35) !important; }
html.hc .sk-cell.is-filled { background: #e8e8e8 !important; box-shadow: inset 0 0 0 2px #000 !important; }
html.hc .kt-meter { background: rgba(0, 0, 0, .15) !important; border: 1px solid #000; }
html.hc .kt-meter > span { background: #000 !important; }
html.hc .kt-prep-x { background: #fff !important; color: #000 !important; border: 1.5px solid #000 !important; }
html.hc .sc-map-wrap, html.hc .sc-map-wrap.is-spicy, html.hc .cs-sky-card, html.hc .cs-tarot-back, html.hc .cs-tarot-front, html.hc .cs-slip { background: #fff !important; background-image: none !important; color: #000 !important; border: 2px solid #000 !important; box-shadow: none !important; }
html.hc .cs-sky-card *, html.hc .cs-tarot-back *, html.hc .sc-legend { color: #000 !important; }
html.hc .cs-sky-pill, html.hc .cs-sign-btn, html.hc .sc-log-chip, html.hc .sc-clue-pill { background: #fff !important; color: #000 !important; border: 1px solid #000 !important; }
html.hc .sc-node-label { fill: #000 !important; stroke: #fff !important; }
html.hc .sc-edge.is-walk { stroke: #666 !important; }
html.hc .sc-edge.is-taxi { stroke: #000 !important; }
html.hc .sc-edge.is-metro { stroke: #000 !important; stroke-width: 4 !important; }
html.hc .mc-badge { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.hc [class*="opacity-"]:not(.opacity-0), html.hc .nav-link.nav-locked { opacity: 1 !important; }
html.hc ::placeholder { color: #555 !important; opacity: 1; }
html.hc [class*="border-ink/"], html.hc .choice:not(.is-active), html.hc .board-filter:not(.is-on), html.hc .trip-chip:not(.is-on), html.hc .sf-zone:not(.is-on), html.hc .waldo-pick:not(.is-on), html.hc .arcade-chip:not(.is-open) { border-color: rgba(0, 0, 0, .28) !important; }
html.hc .border-passionfruit, html.hc .border-guava, html.hc .border-mango, html.hc .arcade-chip.is-open, html.hc .pick-menu button.is-on { border: 2px solid #000 !important; box-shadow: inset 0 0 0 1px #000 !important; background: rgba(0, 0, 0, .07) !important; }
html.hc .nav-dot { background: #000 !important; border-color: #fff !important; width: .65rem; height: .65rem; }
html.hc a { text-decoration-thickness: 2px; }
html.hc .site-header, html.hc .mobile-nav { background: #fff !important; border-color: #000 !important; backdrop-filter: none !important; }
html.hc .board-filter { opacity: .85 !important; filter: none !important; }
html.hc .board-filter.is-on { box-shadow: inset 0 0 0 2px #fff !important; }
html.hc .map-grip span { background: #000 !important; }
html.hc .swatch { border-color: #000 !important; box-shadow: 0 0 0 1px #000 !important; }
html.hc .swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000 !important; }
