/* Shared semantic colours. Photographs and coloured action surfaces retain their colours. */
:root{--theme-page:#fefcff;--theme-surface:#fff;--theme-soft:#f0eaf7;--theme-text:#201b35;--theme-muted:#625b70;--theme-border:#ded7e6;--theme-link:#7537a7}
html[data-theme="dark"],html[data-theme="dark"] body{--theme-page:#17131e;--theme-surface:#231d2d;--theme-soft:#32263f;--theme-text:#f2edf8;--theme-muted:#c1b5ce;--theme-border:#4c3e5c;--theme-link:#d5acfa;--hub-ink:var(--theme-text);--hub-muted:var(--theme-muted);--hub-line:var(--theme-border);--hub-soft:var(--theme-page);--hub-purple:var(--theme-link);--ink:var(--theme-text);--muted:var(--theme-muted);--paper:var(--theme-page);--white:var(--theme-surface);--line:var(--theme-border);--rose:#e7a4c2;--blush:var(--theme-page);--petal:var(--theme-soft);--petal-deep:#583249;--plum:var(--theme-text);--plum-soft:var(--theme-muted);--card:var(--theme-surface);--ok:#9ae4c1;--ok-bg:#173d30;--bad:#ffb4ac;--bad-bg:#4b242b}
html[data-theme="dark"] body{background-color:var(--theme-page);color:var(--theme-text)}
html[data-theme="dark"] :is(.bg0,.bgwhite,.bg-white,.wrap-menu-desktop,.wrap-header-mobile,.menu-mobile,.sub-menu,.header-cart,.wrap-modal1 .bg0,.modal-content,.swal-modal,.member-profile,.profile-card,.member-admin-panel,.community-sidebar,.community-shell,.chat-toolbar,.chat-composer,.chat-login,.chat-dialog,.chat-emojis,.chat-editing,.panel,.stat,.player-setup,.result-card,.game-card){background-color:var(--theme-surface)!important;color:var(--theme-text);border-color:var(--theme-border)}
html[data-theme="dark"] :is(.bg6,.bg8,.bg9,.chat-messages,.community-note,.chat-day,.chat-profile,.pill){background:var(--theme-soft)!important;color:var(--theme-muted);border-color:var(--theme-border)}
html[data-theme="dark"] :is(.cl2,.cl3,.cl4,.cl5,.cl6,.cl7,.cl8,.cl9,.cl10,.cl11,.text-dark,.black,.profile-name,.profile-quote,.member-admin-toggle,.chat-body,.chat-empty strong,.community-note h2,.swal-title,.swal-text){color:var(--theme-text)!important}
html[data-theme="dark"] :is(.main-menu>li>a,.sub-menu a,.menu-mobile a,.icon-header-item,.community-nav a,.community-note a,.chat-sender,.chat-profile,.profile-photo-hint,.profile-action-link,.member-admin-toggle,.member-admin-content a){color:var(--theme-link)}
html[data-theme="dark"] :is(.community-nav a:hover,.community-nav .is-current,.community-note,.chat-empty::before,.chat-avatar,.chat-reply){background:var(--theme-soft);color:var(--theme-link);border-color:var(--theme-border)}
html[data-theme="dark"] :is(.community-note p,.community-brand small,.chat-time,.chat-edited,.chat-empty,.profile-details,.profile-bio,.profile-admin-actions){color:var(--theme-muted)}
html[data-theme="dark"] :is(.chat-message:not(.mine),.chat-reaction){background:var(--theme-surface);border-color:var(--theme-border);color:var(--theme-text)}
html[data-theme="dark"] .chat-message.mine .chat-body{color:#fff!important}
html[data-theme="dark"] .chat-message.mine :is(.chat-time,.chat-edited){color:#e2cffa}
html[data-theme="dark"] :is(input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]),textarea,select,.form-control,.select2-selection,.select2-dropdown){background-color:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:var(--theme-muted);opacity:1}
html[data-theme="dark"] :is(.bor2,.bor4,.bor7,.bor10,.bor12,.bor13,.bor16,.bor17,.bor18,.bor19,.profile-card,.member-admin-content,hr){border-color:var(--theme-border)}
html[data-theme="dark"] :is(.logo img,.logo-mobile img,.site-head img.brand,.conference-brand img,header.brand img){content:url("../../img/logo-light.png?v=20261031-1");background:transparent;padding:0;border-radius:0}
html[data-theme="dark"] :is(.stat,.panel,.game-card,.player-setup,.answer-input){color:var(--theme-text)}
html[data-theme="dark"] :is(.letter-tile,.number-tile,.number-space,.memory-card,.letters-art span){background:var(--theme-soft);color:var(--theme-text);border-color:var(--theme-border)}
html[data-theme="dark"] .memory-card.is-matched{background:#234c38;color:#d9ffe6}
html[data-theme="dark"] .button:not(.secondary){background:#8c3b59;color:#fff}
.appearance-settings{padding-top:45px;padding-bottom:65px;max-width:800px;color:var(--theme-text)}
.appearance-settings h1{font-size:30px;margin-bottom:24px}.appearance-card{padding:28px;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:18px}.appearance-card h2{font-size:22px;margin-bottom:12px}.appearance-card p{color:var(--theme-muted);margin-bottom:18px;line-height:1.7}.appearance-card fieldset{border:0;padding:0;margin:0}.appearance-card legend{font-size:15px;font-weight:700}.appearance-card label{display:flex;align-items:center;gap:14px;padding:16px;margin:12px 0;border:1px solid var(--theme-border);border-radius:12px;cursor:pointer}.appearance-card label:has(input:checked){background:var(--theme-soft);border-color:var(--theme-link)}.appearance-card input{display:block!important;width:20px;height:20px;accent-color:var(--theme-link);flex-shrink:0}.appearance-card strong{display:block;font-size:15px}.appearance-card small{display:block;color:var(--theme-muted);font-size:13px;margin-top:4px}.appearance-card :focus-visible{outline:3px solid var(--theme-link);outline-offset:4px}.appearance-card #appearance-status{margin:18px 0 0;min-height:26px}
@media(max-width:480px){.appearance-card{padding:20px}.appearance-settings{padding-top:28px}}
.appearance-settings.container{max-width:800px}
html[data-theme="dark"] :is(label,.text-black,.text-black a,[style*="color:black"],[style*="color: black"]){color:var(--theme-text)!important}
html[data-theme="dark"] a:not([class]){color:var(--theme-link)}
html[data-theme="dark"] .user-card{background:var(--theme-surface);color:var(--theme-text)}
/* Printable birthday artwork keeps its original palette in either appearance. */
.flyer-container{--plum:#4c1d95;--rose-gold:#c084fc;--champagne:#faf5ff;--accent:#f5d0fe;color:#201b35}

html[data-theme="dark"] :is(.home-feature-card,.event-pass,.card-face,.flip-button,.answer-choice){background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
html[data-theme="dark"] :is(.home-feature-card h3,.home-feature-card p,.hero-summary,.text-muted){color:var(--theme-muted)!important}
html[data-theme="dark"] :is(.home-feature-icon,.home-feature-link){color:var(--theme-link)}
html[data-theme="dark"] .closing-section{background:var(--theme-soft)}
html[data-theme="dark"] .answer-choice:hover:not(:disabled){background:var(--theme-soft)}
html[data-theme="dark"] .answer-choice.is-correct{background:#234c38;color:#d9ffe6}
html[data-theme="dark"] .answer-choice.is-wrong{background:#4b242b;color:#ffb4ac}
html[data-theme="dark"] .chat-brand-logo{background:#fff;padding:5px;border-radius:8px}
html[data-theme="dark"] .opt:hover:not(:disabled){background:var(--theme-soft)}
html[data-theme="dark"] :is(.chat-message-status,.chat-button.outline,.chat-emojis button,.chat-delete-preview){background:var(--theme-surface);color:var(--theme-muted);border-color:var(--theme-border)}
html[data-theme="dark"] :is(.chat-emoji-toggle,.chat-emojis button:hover){background:var(--theme-soft);color:var(--theme-link)}
html[data-theme="dark"] :is(.chat-button.outline,.profile-queen){color:var(--theme-link)}
html[data-theme="dark"] :is(.profile-handle,.chat-editing p){color:var(--theme-muted)}
html[data-theme="dark"] .chat-new{background:#7537a7;color:#fff}
html[data-theme="dark"] .conference-header~main{--accent:var(--theme-link)}
html[data-theme="dark"] .button-primary{background:#7537a7;color:#fff}
.theme-shortcut{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;margin-left:8px;border:1px solid var(--theme-border);border-radius:50%;color:var(--theme-text);background:var(--theme-surface)}
.theme-shortcut svg{width:20px;height:20px;pointer-events:none}.theme-shortcut .theme-shortcut-moon{display:none}
html[data-theme="dark"] .theme-shortcut-sun{display:none}html[data-theme="dark"] .theme-shortcut .theme-shortcut-moon{display:block}
.theme-shortcut:hover{color:var(--theme-link);background:var(--theme-soft)}.theme-shortcut:focus-visible{outline:3px solid var(--theme-link);outline-offset:3px}
.container-menu-desktop .wrap-icon-header{flex-wrap:nowrap;flex-shrink:0}.container-menu-desktop .logo{max-width:220px;margin-right:30px}
html[data-theme="dark"] :is(.main-menu>li>a,.main-menu-m>li>a,.menu-mobile a,.sub-menu a,.top-bar a){color:#fff}
html[data-theme="dark"] :is(.hamburger-inner,.hamburger-inner::before,.hamburger-inner::after){background-color:#fff}
#appearance-title{scroll-margin-top:100px}
@media(max-width:575px){.wrap-header-mobile .logo-mobile{min-width:0;flex:1}.wrap-header-mobile .logo-mobile img{max-width:100%;height:auto;max-height:38px}.wrap-header-mobile .wrap-icon-header{flex-shrink:0;margin-right:10px}.wrap-header-mobile .theme-shortcut{margin-left:8px}}
