/* Baha C6 22.9.393 · Az éjféli kripta. Minden szabály a saját témára korlátozott. */
body.theme-halloween{
  color-scheme:dark;
  --page-bg:#0c0b13;--page-bg-soft:#181020;
  --surface-1:#211b2b;--surface-2:#2b2136;--surface-3:#382b42;--surface-raised:#291f34;
  --surface-hover:#3a2940;--surface-selected:#402938;--surface-disabled:#29232f;
  --state-unread-bg:#3c2931;--state-unread-text:#ffdfb1;--state-unread-border:#ca8b55;
  --state-selected-bg:#533129;--state-selected-text:#fff0db;--state-highlight-bg:#4a2d28;--state-highlight-text:#ffe3ba;--state-highlight-border:#c18551;
  --text-primary:#f6ecdf;--text-secondary:#cbbbd1;--text-muted:#c0adc4;--text-inverse:#170f1b;--text-disabled:#9c8ba2;
  --border-default:#756078;--border-subtle:#49384f;--border-strong:#a58283;
  --link:#ffc087;--link-hover:#ffe0ad;--link-visited:#d6b5f3;
  --accent:#ffa451;--accent-hover:#ffc087;--accent-text:#26151c;--accent-soft:#503127;
  --button-bg:#493028;--button-text:#ffdfb8;--button-border:#ab7855;--button-hover-bg:#603d2e;
  --button-secondary-bg:#31263b;--button-secondary-text:#f1e5f8;
  --input-bg:#17121f;--input-text:#f8efe6;--input-placeholder:#bdabc5;--input-border:#8a728e;--input-focus:#ffb064;
  --success-bg:#21362e;--success-text:#cbf4d5;--success-border:#719f7c;
  --warning-bg:#493329;--warning-text:#ffe5b4;--warning-border:#b28a5b;
  --danger-bg:#502332;--danger-text:#ffd6df;--danger-border:#d77d94;
  --info-bg:#2a2747;--info-text:#e6ddff;--info-border:#9a87c3;
  --system-bg:#2b2334;--system-text:#d6c4dc;--system-border:#675371;--system-message-bg:#2b2334;--system-message-text:#d6c4dc;
  --notice-bg:#433128;--notice-text:#ffe3b9;--notice-border:#a8885a;
  --table-header-bg:#35293e;--table-header-text:#f9e5d1;
  --online:#a5d78d;--offline:#a798af;
  --nav-bg:#1e1828;--nav-text:#e3cfe5;--nav-active:#ffb36d;--nav-active-text:#21131a;--nav-border:#936850;--nav-badge:#a63e55;
  --shadow-soft:0 6px 24px #0003;--shadow-raised:0 16px 45px #0008;
  --bg:var(--page-bg);--panel:var(--surface-1);--line:var(--border-default);--ink:var(--text-primary);--muted:var(--text-secondary);
  /* A régebbi hívás-, fordító- és gyorsprivát-modulok tokennevei. */
  --text:var(--text-primary);--card:var(--surface-raised);--soft:var(--surface-2);--surface:var(--surface-1);--surface-soft:var(--surface-2);--border:var(--border-default);
  background:radial-gradient(ellipse at 15% 0%,#31203c 0,transparent 48%),radial-gradient(ellipse at 95% 70%,#34201c 0,transparent 50%),#0c0b13!important;
  color:var(--text-primary);accent-color:var(--accent);scrollbar-color:#795872 #17121f;
}
.theme-halloween ::selection{background:#985436;color:#fff8e8}
/* A fő tartalom nem zárhatja a felugrókat a hulló díszek alá saját rétegbe. */
.theme-halloween .retro-shell{position:relative;z-index:auto;background:linear-gradient(165deg,#1a142390,#16121d90 65%,#21182299);border:1px solid #5b3e50;border-radius:22px;box-shadow:0 25px 80px #0008;overflow:visible}
.theme-halloween .top{background:linear-gradient(100deg,#22182c,#2f202e 60%,#261b27);border-color:#654349;border-radius:21px 21px 0 0}
.theme-halloween .brand-logo{display:none}
.theme-halloween .hw-header-row{display:flex;align-items:center;gap:12px;padding:5px 0;min-width:0}
.theme-halloween .hw-header-title{flex:1;min-width:0;text-align:left;font-weight:700;color:#f4d8ba;overflow-wrap:anywhere}
.theme-halloween .home-header-coin{background:#37261f!important;border:1px solid #966747;color:#ffe1a9!important;white-space:nowrap}
.theme-halloween .home-header-coin b{color:#ffe1a9!important}
.theme-halloween .hw-header-row .baha-header-actions{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto}
.theme-halloween .hw-motion-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;min-width:44px;min-height:44px;padding:4px 8px;border-radius:14px;border:1px solid #93674e;background:#30212c;color:#f8d9b5;font-size:12px;cursor:pointer}
.theme-halloween .hw-motion-toggle [data-hw-icon]{display:grid;place-items:center;width:32px;height:34px}
.theme-halloween .hw-motion-toggle[aria-pressed="false"]{border-color:#78607e;background:#241d2e}
.theme-halloween .hw-motion-toggle:disabled{opacity:.55;cursor:wait}
.theme-halloween .hw-header-row .baha-header-notifications{min-width:44px;min-height:44px;border-color:#93674e!important;background:#30212c!important;color:#f8d9b5!important;box-shadow:inset 0 1px #ffc68116}.theme-halloween .hw-header-row .baha-header-notifications:hover,.theme-halloween .hw-header-row .baha-header-notifications:focus-visible{background:#473039!important;color:#ffe2bd!important}.theme-halloween .hw-header-row .baha-header-notification-badge{border-color:#30212c;background:#b64954;color:#fff8ed}
.theme-halloween .room-wall-header .hw-motion-toggle{width:42px;min-width:0;height:42px;min-height:0;padding:2px;box-sizing:border-box}
.theme-halloween .room-wall-header .baha-header-notifications{width:42px;min-width:0;height:42px;min-height:0;border-color:#93674e!important;background:#30212c!important;color:#f8d9b5!important}
.theme-halloween .room-wall-header .hw-toggle-label{display:none}
.theme-halloween :is(.post,.box,.baha-card,.start-panel,.home-favorites,.setting-block,.settings-block,.thread-message,.conversation-row,.hub-simple-group,.hub1-card,.home-active-room,.birthday-home-widget){background:var(--surface-1);color:var(--text-primary);border-color:#695168;border-radius:18px;box-shadow:var(--shadow-soft)}
.theme-halloween :is(.home-favorite-grid,.hub1-grid,.start-status-grid)>a{border-color:#705168!important;box-shadow:inset 0 1px #f1cca609,0 5px 14px #0003;transition:border-color .2s,box-shadow .2s,background .2s}
.theme-halloween :is(.home-favorite-grid,.hub1-grid,.start-status-grid)>a:hover{border-color:#d18b52!important;box-shadow:0 0 20px #e974191a}
.theme-halloween :is(.home-favorites-head,.start-panel-title,.settings-back,h2,h3){color:#f4d8bf}
.theme-halloween :is(.room-wall-header,.conversation-header,.pmv2-header,.baha-context-composer-docked,.baha-context-action-dock,#room-inline-composer,.room-compose,.conversation-compose-top){background:linear-gradient(120deg,#271c30,#211925)!important;color:var(--text-primary);border-color:#90634f!important;box-shadow:0 8px 28px #0006}
.theme-halloween :is(input,select,textarea){border-radius:12px}
.theme-halloween :is(button,.btn,.baha-icon-btn,.baha-primary-btn){border-radius:12px}
.theme-halloween :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #ffbc76;outline-offset:3px}
.theme-halloween :is(.room-compose-send,.conversation-send,.private-send,.composer-send):not(:disabled){background:linear-gradient(145deg,#ffb96c,#f59b4b)!important;color:var(--accent-text)!important;border-color:#ecb068!important}
.theme-halloween :is(.room-post-menu,.private-more-menu,.pmv2-menu,.media-picker,.smiley-panel,.smiley-picker,.dropdown-menu,.private-quick-card,.birthday-prompt-card){background:var(--surface-raised)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important;box-shadow:var(--shadow-raised)}
.theme-halloween .hub1-fixed-dock{border-radius:20px!important;border:1px solid #97684d!important;box-shadow:0 -4px 30px #0007,inset 0 1px #ffb56322!important}
.theme-halloween .hub1-fixed-dock a{border-radius:13px}
.theme-halloween .hub1-fixed-dock a:hover,.theme-halloween .hub1-fixed-dock a[aria-current="page"]{background:#463027!important;color:#ffcd92!important}
.theme-halloween .hub1-fixed-dock a>span{display:grid;place-items:center;line-height:1}
.theme-halloween .hub1-fixed-dock a>small{color:inherit!important}
.theme-halloween .hub1-fixed-dock em{background:#a53950;color:#fff4e7;border:2px solid #251c2b}
/* Az idézett üzenet a színes üzenetkereten belül is önálló, olvasható felület. */
.theme-halloween .community-reply-preview{background:#382b42!important;color:#f9efe6!important;border-left-color:#ffb36d!important;opacity:1!important;text-shadow:none!important}
.theme-halloween .community-reply-preview b{color:#ffe0ad!important;opacity:1!important}
.theme-halloween .baha-widget-card{background:#211a2b!important;border-color:#6d4f65!important;box-shadow:0 10px 28px #0004!important}
.theme-halloween .baha-widget-rail-top{background:#241a2d!important;border-color:#79546a!important}
.theme-halloween .baha-widget-head{background:linear-gradient(90deg,#342333,#261d30)!important;border-color:#5c405a!important}
.theme-halloween .baha-widget-head>span i{flex:0 0 26px;width:26px;height:28px}
.theme-halloween :is(.baha-clock-face,.baha-weather-now,.baha-widget-person,.baha-widget-action,.baha-widget-radio,.baha-widget-links>a){color:var(--text-primary);border-color:var(--border-subtle);background:var(--surface-2)}
.theme-halloween .baha-clock-face time{color:#ffce98;text-shadow:0 0 18px #d16d2933;font-variant-numeric:tabular-nums}
.theme-halloween .baha-widget-action.is-hot{background:var(--warning-bg);color:var(--warning-text);border-color:var(--warning-border)}
.theme-halloween .foot{border-color:#644353;color:var(--text-secondary);background:#19121f}
.theme-halloween .foot b{color:#ffc790}
/* A kész feladatok piros figyelmeztetése megmarad a korábbi szabály szerint. */
.theme-halloween .task-attention{background:#692536!important;color:#fff2e9!important;border-color:#e89a9c!important}

/* Olvashatóság: a fix világos hátterű / sötét betűs régi modulok páros javítása.
   A célzott !important a később betöltött oldalszabályokat is felülírja.
   Üzenetszínekhez, médiafájlokhoz és a játékok rajzolt elemeihez nem nyúlunk. */
.theme-halloween .live-toast{background:var(--surface-raised)!important;color:var(--text-primary)!important}
.theme-halloween .live-toast-copy{min-width:0;overflow-wrap:anywhere}
.theme-halloween .live-toast-copy b{color:var(--text-primary)!important}
.theme-halloween .live-toast-copy small{color:var(--text-secondary)!important;opacity:1!important}
.theme-halloween .live-toast-close{background:var(--button-secondary-bg)!important;color:var(--button-secondary-text)!important;border-color:var(--border-default)!important;flex-shrink:0}
.theme-halloween .live-toast-close:hover{background:var(--surface-hover)!important}

/* 22.9.393 – a korábbi, pasztellsárga örökölt blokkok sötét, nagy kontrasztú párjai.
   Így a Halloween világos betűszíne soha nem kerül világos kártyára. */
.theme-halloween :is(.forum-hero,.daily-community-hero,.seo-hero,.guest-room-hero,.public-room-hero){background:linear-gradient(135deg,#39273a,#241b30 60%,#31211f)!important;color:var(--text-primary)!important;border-color:#a77865!important;box-shadow:0 10px 26px #0005!important}
.theme-halloween :is(.forum-hero,.daily-community-hero,.seo-hero,.guest-room-hero,.public-room-hero) :is(h1,h2,h3,b,strong){color:var(--text-primary)!important}.theme-halloween :is(.forum-hero,.daily-community-hero,.seo-hero,.guest-room-hero,.public-room-hero) :is(p,small){color:var(--text-secondary)!important;opacity:1!important}
.theme-halloween .forum-hero>div>b{color:#ffcf9a!important}.theme-halloween .forum-primary{background:#5a352b!important;color:#ffead0!important;border-color:#ca8a62!important}.theme-halloween .forum-primary:hover{background:#704231!important;color:#fff3df!important}
.theme-halloween :is(.forum-topic-table,.forum-dashboard section,.forum-search-result,.forum-advanced-search,.forum-stat-grid>div,.forum-stats-columns section,.forum-health-row,.forum-pager-v3){background:var(--surface-1)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important}.theme-halloween :is(.forum-topic-row,.forum-search-result) :is(small,span){color:var(--text-secondary)!important;opacity:1!important}.theme-halloween .forum-topic-row:hover{background:var(--surface-hover)!important}

/* Régi, saját világos illusztrációs kártyák és felugrók. */
.theme-halloween :is(.birthday-optin-card,.home-birthday-widget,.nameday-page-hero,.nameday-page-next,.farm4-unlock-card,.farm4-unlock-crops>div){background:var(--surface-1)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important}.theme-halloween :is(.birthday-optin-card,.home-birthday-widget,.nameday-page-hero,.nameday-page-next,.farm4-unlock-card) :is(p,small,.nameday-page-kicker,.nameday-page-note){color:var(--text-secondary)!important;opacity:1!important}.theme-halloween :is(.birthday-optin-icon,.home-birthday-head>span,.nameday-page-icon,.nameday-page-next>span){background:var(--surface-2)!important}.theme-halloween .nameday-page-hero p:not(.nameday-page-kicker){color:var(--warning-text)!important}.theme-halloween .birthday-optin-actions button{background:var(--button-bg)!important;color:var(--button-text)!important;border-color:var(--button-border)!important}.theme-halloween .birthday-optin-actions .birthday-optin-yes{background:var(--accent)!important;color:var(--accent-text)!important;border-color:#e8ae78!important}.theme-halloween .farm4-unlock-card>small{color:var(--warning-text)!important}
.theme-halloween .room-op-badge{background:var(--info-bg)!important;color:var(--info-text)!important;border-color:var(--info-border)!important}.theme-halloween :is(.postcard,.postcard.heart,.postcard.retro,.postcard.party){color:#241b1b!important}

/* A Farm 4 sötét témához korábban csak a Baha Sötét kapott felületet. */
body.theme-halloween.farm-theme .farm4-app{--farm4-surface:var(--surface-1);--farm4-soft:var(--surface-2);--farm4-line:var(--border-default)}
body.theme-halloween.farm-theme :is(.farm4-plot,.farm4-level){background:linear-gradient(180deg,#2d3a30,#39302b)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important}body.theme-halloween.farm-theme .farm4-plot-no{background:var(--surface-raised)!important;color:var(--text-primary)!important}body.theme-halloween.farm-theme :is(.farm4-seed-stock,.farm4-album-stock){background:var(--surface-raised)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important}body.theme-halloween.farm-theme .farm4-seed-stock.has-stock{background:var(--success-bg)!important;color:var(--success-text)!important;border-color:var(--success-border)!important}body.theme-halloween.farm-theme .farm4-plan-grid .done{background:var(--success-bg)!important;color:var(--success-text)!important}

/* Játékeredmények: a cím, összesítés és minden akció ugyanahhoz a palettához tartozik. */
.theme-halloween .play-queue-modal>section{background:var(--surface-1)!important;color:var(--text-primary)!important;border-color:var(--border-strong)}
.theme-halloween :is(.play-result-side,.play-queue-bar){background:var(--surface-2)!important;color:var(--text-primary)!important;border-color:var(--border-default)}
.theme-halloween .play-queue-modal :is(h2,#baha-queue-detail){color:var(--text-primary)!important}
.theme-halloween :is(.play-queue-eyebrow,.play-queue-follow,.play-result-side>small){color:var(--text-secondary)!important;opacity:1!important}
.theme-halloween .play-queue-modal[data-outcome="win"] h2{color:var(--success-text)!important}
.theme-halloween .play-queue-modal[data-outcome="loss"] h2{color:var(--danger-text)!important}
.theme-halloween .play-queue-progress{background:var(--surface-3)}
.theme-halloween .play-queue-progress span{background:var(--accent)}
.theme-halloween .play-queue-actions button:not(:disabled){background:var(--button-bg)!important;color:var(--button-text)!important;border-color:var(--button-border)}
.theme-halloween .play-queue-actions :is([data-queue-next],[data-queue-rematch]):not(:disabled){background:var(--accent)!important;color:var(--accent-text)!important}
.theme-halloween .play-queue-modal[data-rematch="1"] [data-queue-next]:not(:disabled){background:var(--button-secondary-bg)!important;color:var(--button-secondary-text)!important}
.theme-halloween .play-queue-modal [data-queue-error]{background:var(--danger-bg)!important;color:var(--danger-text)!important}
/* A kártyák világos papírján megmaradnak az olvasható fekete és piros jelek. */
.theme-halloween .playing-card{background:#fffaf0!important;color:#241c11!important}
.theme-halloween .playing-card.red{color:#aa352c!important}

/* Privát hívások és gyorsválaszok: teljes, minimalizált és bekapcsolt állapot. */
.theme-halloween :is(.private-call-panel,.private-quick-card){background:var(--surface-raised)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important}
.theme-halloween :is(.private-call-member,.private-call-output,.private-quick-avatar,.private-quick-text){background:var(--surface-2)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important}
.theme-halloween .private-call-member.is-later{opacity:1;color:var(--text-secondary)!important}
.theme-halloween .private-call-member.is-joined{background:var(--success-bg)!important;color:var(--success-text)!important;border-color:var(--success-border)!important}
.theme-halloween :is(.private-call-prompt,.private-call-controls) button:not(:disabled){background:var(--button-bg)!important;color:var(--button-text)!important;border-color:var(--button-border)!important}
.theme-halloween .private-call-controls :is(.private-call-speaker,.private-call-audio-resume):not(:disabled){background:var(--warning-bg)!important;color:var(--warning-text)!important;border-color:var(--warning-border)!important}
.theme-halloween .private-call-controls button[aria-pressed="true"]:not(:disabled){background:var(--success-bg)!important;color:var(--success-text)!important;border-color:var(--success-border)!important}
.theme-halloween .private-call-controls .private-call-end:not(:disabled){background:var(--danger-bg)!important;color:var(--danger-text)!important;border-color:var(--danger-border)!important}
.theme-halloween :is(.private-call-head p,.private-call-privacy,.private-quick-who small,.pq-status){color:var(--text-secondary)!important;opacity:1!important}

/* Médiatár, hozzászólások, képeslapok és megosztott rádió/játék kártyák. */
.theme-halloween :is(.gallery-comment,.private-postcard,.game-share-panel,.game-share-catalog span,.room-radio-share,.room-game-share){background:var(--surface-2)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important}
.theme-halloween :is(.gallery-comments>summary,.game-share-heading h3,.room-radio-info b,.room-game-share-info b){color:var(--text-primary)!important}
.theme-halloween :is(.media-upload-help,.gallery-comment small,.private-postcard-label,.game-share-heading p,.game-share-action small,.game-share-catalog span small,.room-radio-info span,.room-game-share-info small,.room-game-share-info em){color:var(--text-secondary)!important;opacity:1!important}
.theme-halloween .gallery-comments-toggle{color:var(--link)!important;opacity:1!important}
.theme-halloween .room-game-share-open{background:var(--button-bg)!important;color:var(--button-text)!important;border-color:var(--button-border)!important}

/* A kiválasztó szövege külön réteg a tényleges animációk és matricák mellett. */
.theme-halloween :is(.wink-picker>summary,.wink-grid,.wink-choice,.wink-title,.original-msn-wink){background:var(--surface-2)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important}
.theme-halloween :is(.wink-picker>summary,.wink-title){text-shadow:none}
.theme-halloween .wink-choice:before{background:none}
.theme-halloween :is(.wink-choice small,.wink-picker-note,.wink-section-title,.wink-title){color:var(--text-secondary)!important;opacity:1!important}
.theme-halloween .wink-section-original{color:var(--success-text)!important}
.theme-halloween .original-msn-wink .wink-replay{background:var(--button-bg)!important;color:var(--button-text)!important;border-color:var(--button-border)!important}

/* Beállítások, taglisták és a főoldali kártyák apró feliratai. */
.theme-halloween .hub1-welcome{background:var(--surface-1)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important}
.theme-halloween :is(.hub1-welcome p,.hub1-section-head small,.gameworld-popularity-head small,.online-guest .online-person-main small){color:var(--text-secondary)!important;opacity:1!important}
.theme-halloween .online-guest .online-person-main b{color:var(--text-primary)!important}
.theme-halloween :is(.boti-status,.online-status-line){background:var(--success-bg)!important;color:var(--success-text)!important}
.theme-halloween .settings-nav-grid label.is-pinned{background:var(--warning-bg)!important;color:var(--warning-text)!important;border-color:var(--warning-border)!important}
.theme-halloween .settings-nav-grid label.is-pinned small{color:inherit!important;opacity:1!important}

/* Farm fejléc: a nappali Farm pasztell hátterű marad, ezért nem örökölheti
   a Halloween téma világos általános betűszínét. Az éjszakai Farm külön,
   sötét tájképe és világos szövege változatlan. */
body.theme-halloween.farm-theme:not(.farm-time-night) .farm4-hero{
  color:#203927!important;
  background:linear-gradient(135deg,#f1f9da 0%,#d8edbd 50%,#f4e0aa 100%)!important;
  border-color:#718f60!important;
  box-shadow:0 8px 24px rgba(7,4,12,.28)!important;
}
body.theme-halloween.farm-theme:not(.farm-time-night) .farm4-hero-copy small{
  color:#315b35!important;
  opacity:1!important;
}
body.theme-halloween.farm-theme:not(.farm-time-night) .farm4-hero :is(h1,p),
body.theme-halloween.farm-theme:not(.farm-time-night) .farm4-hero-art{
  color:#203927!important;
  opacity:1!important;
  text-shadow:0 1px 0 rgba(255,255,255,.72);
}
body.theme-halloween.farm-theme:not(.farm-time-night) .farm4-farmer-reaction{
  background:rgba(255,255,255,.84)!important;
  border-color:#789565!important;
  color:#203927!important;
}
body.theme-halloween.farm-theme:not(.farm-time-night) .farm4-farmer-reaction span{
  color:#203927!important;
  opacity:1!important;
  text-shadow:none!important;
}
/* Az éjszakai Farm saját sötét tájképet használ: itt a cím és a Gazda
   szövege szándékosan világos, a régi általános zöld címszín nem írhatja felül. */
body.theme-halloween.farm-theme.farm-time-night .farm4-hero :is(h1,p),
body.theme-halloween.farm-theme.farm-time-night .farm4-hero-art,
body.theme-halloween.farm-theme.farm-time-night .farm4-farmer-reaction,
body.theme-halloween.farm-theme.farm-time-night .farm4-farmer-reaction span{
  color:#fff8ed!important;
  opacity:1!important;
  text-shadow:0 1px 2px rgba(0,0,0,.42);
}

/* Farm / Pass / Tamagochi: a szöveges kezelőpanelek, az illusztrációk megtartásával. */
.theme-halloween :is(.farm-fast-summary>div,.orchard-hero,.farm-hub-grid>a,.orchard-sell-box,.torpedo-board-panel,.torpedo-command>div,.torpedo-bet,.torpedo-result){background:var(--surface-2)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important}
.theme-halloween :is(.farm-center-copy small,.pet-identity span,.farm-fast-summary small,.farm-animal-copy p,.recipe-copy small,.orchard-hero p,.orchard-summary>div b,.farm-hub-stats small,.farm-hub-grid>a>small,.farm-item-help-note,.farm-item-help-text,.farm-inventory-card-link small,.orchard-sell-head p,.orchard-sell-copy small,.torpedo-board-panel header small,.torpedo-command small,.torpedo-bet small){color:var(--text-secondary)!important;opacity:1!important}
.theme-halloween :is(.orchard-sell-head b,.torpedo-board-panel h2,.torpedo-result h2,.garden-contributions>div strong){color:var(--text-primary)!important}
.theme-halloween :is(.farm-item-help-link,.farm-item-route-cta,.orchard-sell-card form button:not(:disabled)){background:var(--button-bg)!important;color:var(--button-text)!important;border-color:var(--button-border)!important}
.theme-halloween .orchard-sell-head>span{background:var(--warning-bg)!important;color:var(--warning-text)!important}
.theme-halloween .orchard-sell-empty{background:var(--surface-2)!important;color:var(--text-secondary)!important}
.theme-halloween :is(.pass-done,.pass-task-go,.recipe-copy .have){color:var(--success-text)!important}
.theme-halloween .pass-extra{color:var(--warning-text)!important}
.theme-halloween .pass-task.done .pass-task-go{color:var(--text-secondary)!important}
.theme-halloween .collect-card.rarity-gyakori .collect-card-meta span{color:#89dfef}
.theme-halloween .collect-card.rarity-ritka .collect-card-meta span{color:#b4c2ff}
.theme-halloween .collect-card.rarity-epikus .collect-card-meta span{color:#e7b0ff}
.theme-halloween .collect-card.rarity-legendas .collect-card-meta span{color:#ffdf84}
.theme-halloween .collect-card.missing{opacity:1}
.theme-halloween .collect-card.missing img{opacity:.55}

/* A nem aktív vezérlő is olvasható marad; a csökkentett kontraszt nem jelzés. */
.theme-halloween :is(button:disabled,.btn.disabled,[aria-disabled="true"]){background:var(--surface-disabled)!important;color:var(--text-disabled)!important;border-color:var(--border-default)!important;opacity:1!important}

/* Saját rajzolt kastély: a díszlet soha nem fog el kattintást. */
.theme-halloween .hw-manor{position:relative;isolation:isolate;min-height:310px;margin:0 0 20px;overflow:hidden;border:1px solid #97614d;border-radius:22px;background:radial-gradient(ellipse at 75% 10%,#58405b,#20172b 54%,#19131f 85%);box-shadow:inset 0 1px #ffc88126,0 18px 38px #0004}
.theme-halloween .hw-manor:after{content:"";position:absolute;inset:10px;border:1px solid #d3a97426;border-radius:15px;pointer-events:none;z-index:3}
.theme-halloween .hw-manor-art{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.theme-halloween .hw-manor-art>img{position:absolute;right:-15px;bottom:0;width:78%;height:100%;object-fit:contain;object-position:right bottom;opacity:.96}
.theme-halloween .hw-moon{position:absolute;top:18px;right:20%;width:110px;height:110px;border-radius:50%;background:radial-gradient(circle at 34% 29%,#8f808159 0 6%,transparent 7%),radial-gradient(circle at 65% 60%,#b8a09188 0 12%,transparent 13%),radial-gradient(circle at 40% 75%,#b49b9066 0 7%,transparent 8%),radial-gradient(circle at 35% 30%,#fff0bb,#c5a6a5);box-shadow:0 0 60px 15px #ccb4d128,0 0 90px #d8abc022}
.theme-halloween .hw-manor-copy{position:relative;z-index:2;width:56%;padding:34px 28px 28px;background:linear-gradient(90deg,#1b1426ec,#1b1426a6 65%,transparent);box-sizing:border-box}
.theme-halloween .hw-kicker{margin:0 0 14px;color:#ffc689;font-size:11px;font-weight:800;letter-spacing:.24em;line-height:1.5}
.theme-halloween .hw-manor h1{margin:0 0 14px;color:#f5e6ce;font-family:Georgia,'Times New Roman',serif;font-size:clamp(32px,4vw,49px);font-weight:400;line-height:1.06;letter-spacing:-.03em;text-shadow:0 2px 10px #0006}
.theme-halloween .hw-manor h1 em{font-style:normal;color:#ffb56b;font-size:1.2em}
.theme-halloween .hw-manor-story{font-size:13px;line-height:1.65;color:#d8c4de;margin:0 0 17px;max-width:210px}
.theme-halloween a.hw-manor-enter{display:inline-flex;align-items:center;gap:16px;background:#e6a25d;color:#21131d!important;border:1px solid #f7cd94;padding:10px 13px;border-radius:9px;font-size:13px;font-weight:800;text-decoration:none;box-shadow:0 0 25px #cd6d2626}
.theme-halloween a.hw-manor-enter:hover{background:#f9c283}
.theme-halloween .hw-manor-signature{display:block;margin-top:15px;color:#b9a4bf;font-size:10px;letter-spacing:.05em}
.theme-halloween .hw-manor-fog{position:absolute;bottom:-30px;left:-20%;width:140%;height:110px;background:radial-gradient(ellipse,#c3b7d827,transparent 65%);animation:hw-fog 17s ease-in-out infinite alternate;z-index:1}
.theme-halloween .hw-manor-bat{position:absolute;width:52px;height:40px;right:12%;top:19%;animation:hw-drift 11s ease-in-out infinite alternate}
.theme-halloween .hw-manor-bat-two{width:30px;right:36%;top:6%;animation-duration:15s;animation-delay:-7s}
.theme-halloween .hw-manor-ghost{position:absolute;width:36px;height:46px;right:21%;bottom:14%;opacity:.58;animation:hw-drift 7s ease-in-out infinite alternate}
/* Lassan mozgó, hangtalan környezeti rétegek. A ritka villámfény külön kapcsolható. */
.theme-halloween .hw-atmosphere{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;contain:strict}
.theme-halloween .hw-atmosphere:before{content:"";position:absolute;inset:65% -20% -20%;background:radial-gradient(ellipse,#84669426,transparent 65%);animation:hw-fog 28s ease-in-out infinite alternate}
.theme-halloween.halloween-lite .hw-atmosphere:before,.theme-halloween.halloween-lite .hw-world *{animation:none!important}
.theme-halloween.halloween-lite .hw-world-fog,.theme-halloween.halloween-lite .hw-lightning{display:none!important}
.theme-halloween .hw-web{position:absolute;width:180px;height:180px;top:0;right:0;opacity:.18}
.theme-halloween .hw-web path{stroke:#d6c4e4;stroke-width:1;fill:none}
.theme-halloween .hw-ember{position:absolute;left:var(--x);bottom:-15px;width:3px;height:3px;border-radius:50%;background:#efa464;box-shadow:0 0 8px #f99446;animation:hw-ember var(--time) linear infinite;animation-delay:var(--delay)}
.theme-halloween .hw-status{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);z-index:20000;max-width:calc(100vw - 40px);padding:12px 18px;border:1px solid #bb8059;border-radius:12px;background:#2e2035;color:#ffe7c8;box-shadow:0 10px 35px #0008;font-size:14px}
.theme-halloween .hw-status:empty{display:none}

/* Hulló levelek helyett kis szellemek, tökök és denevérek az előtérben. */
.theme-halloween .hw-fall-layer{position:fixed;inset:0;z-index:35;overflow:hidden;pointer-events:none;user-select:none;contain:strict;isolation:isolate}
.theme-halloween .hw-fall-layer *{pointer-events:none!important}
.theme-halloween .hw-falling-figure{position:absolute;top:-70px;left:var(--fall-x);display:block;width:var(--fall-size);height:var(--fall-size);opacity:0;animation:hw-figure-fall var(--fall-duration) linear infinite;animation-delay:var(--fall-delay)}
.theme-halloween .hw-falling-art{display:block;width:100%;height:100%;animation:hw-figure-sway var(--fall-sway-duration) ease-in-out infinite alternate;animation-delay:var(--fall-delay)}
.theme-halloween .hw-falling-art .hw-icon{width:100%;height:100%;max-width:none;max-height:none}
@keyframes hw-figure-fall{0%{transform:translate3d(0,0,0);opacity:0}8%,88%{opacity:var(--fall-opacity)}100%{transform:translate3d(0,calc(100vh + 150px),0);opacity:0}}
@keyframes hw-figure-sway{from{transform:translateX(calc(var(--fall-sway) * -1)) rotate(calc(var(--fall-turn) * -1))}to{transform:translateX(var(--fall-sway)) rotate(var(--fall-turn))}}
@media(max-width:980px){.theme-halloween .hw-falling-figure:nth-child(n+10){display:none}}
@media(max-width:620px){.theme-halloween .hw-falling-figure{width:calc(var(--fall-size) * .8);height:calc(var(--fall-size) * .8)}.theme-halloween .hw-falling-figure:nth-child(n+7){display:none}}
.theme-halloween:not(.halloween-motion-on) .hw-fall-layer{display:none!important}
.theme-halloween.halloween-page-hidden .hw-fall-layer *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.theme-halloween .hw-fall-layer{display:none!important}.theme-halloween .hw-fall-layer *{animation:none!important}}
@media print{.theme-halloween .hw-fall-layer,.theme-halloween .hw-atmosphere{display:none!important}}

/* A teljes oldalon látható világ a kártyák és kezelőszervek mögött marad. */
.theme-halloween .hw-world{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.theme-halloween .hw-world *{pointer-events:none!important}
.theme-halloween .hw-world-sprite{position:absolute;display:block}
.theme-halloween .hw-world-sprite .hw-icon{width:100%;height:100%;max-width:none;max-height:none}
.theme-halloween .hw-nightglow{position:absolute;inset:-20%;background:radial-gradient(ellipse at 13% 24%,#82479255,transparent 44%),radial-gradient(ellipse at 83% 75%,#c166282e,transparent 43%);animation:hw-night-breathe 13s ease-in-out infinite alternate}
.theme-halloween .hw-world-fog{position:absolute;left:-25%;width:150%;height:28vh;min-height:120px;background:radial-gradient(ellipse at 24% 55%,#b6a0d130,transparent 51%),radial-gradient(ellipse at 72% 40%,#8379b42e,transparent 50%);animation:hw-fog 24s ease-in-out infinite alternate}
.theme-halloween .hw-world-fog-near{bottom:4vh}
.theme-halloween .hw-world-fog-far{top:18vh;opacity:.6;animation-duration:39s;animation-delay:-15s;animation-direction:alternate-reverse}
.theme-halloween .hw-world-ghost{width:100px;height:110px;top:19vh;left:0;opacity:0;animation:hw-haunting 57s ease-in-out infinite;--hw-from:-15vw;--hw-to:103vw}
.theme-halloween .hw-world-ghost-one{animation-delay:-16s}
.theme-halloween .hw-world-ghost-two{width:78px;height:92px;top:52vh;--hw-from:104vw;--hw-to:-15vw;animation-duration:73s;animation-delay:-40s}
.theme-halloween .hw-world-ghost-three{width:120px;height:135px;top:71vh;animation-duration:89s;animation-delay:-65s}
.theme-halloween .hw-world-pumpkin{width:84px;height:84px;bottom:calc(95px + env(safe-area-inset-bottom));left:2vw;opacity:.72;animation:hw-pumpkin-rock 8s ease-in-out infinite alternate;transform-origin:center bottom}
.theme-halloween .hw-world-pumpkin-two{left:auto;right:2vw;width:106px;height:106px;animation-delay:-4s;animation-duration:10s}
.theme-halloween .hw-world-pumpkin-three{left:23vw;bottom:2vh;width:59px;height:59px;opacity:.5;animation-delay:-6s}
.theme-halloween .hw-world-pumpkin-four{left:auto;right:26vw;bottom:5vh;width:65px;height:65px;opacity:.52;animation-delay:-2s}
.theme-halloween .hw-world-bat{width:70px;height:60px;left:0;top:13vh;opacity:0;--hw-from:-12vw;--hw-to:106vw;animation:hw-bat-crossing 29s linear infinite}
.theme-halloween .hw-world-bat-one{animation-delay:-6s}
.theme-halloween .hw-world-bat-two{width:40px;height:35px;top:10vh;animation-duration:35s;animation-delay:-9s}
.theme-halloween .hw-world-bat-three{width:52px;height:46px;top:43vh;--hw-from:105vw;--hw-to:-12vw;animation-duration:43s;animation-delay:-31s}
.theme-halloween .hw-world-spider{top:0;right:7vw;width:49px;height:195px;padding-top:143px;opacity:.8;animation:hw-spider-descend 27s ease-in-out infinite;animation-delay:-4s}
.theme-halloween .hw-world-spider:before{content:"";position:absolute;top:0;left:50%;height:151px;width:1px;background:linear-gradient(#ab86b666,#d4b5cb)}
.theme-halloween .hw-world-spider .hw-icon{height:49px}
.theme-halloween .hw-lightning{position:absolute;inset:0;opacity:0;background:radial-gradient(ellipse at 72% 0,#bea0e05c,transparent 67%);animation:hw-distant-lightning 41s linear infinite;animation-delay:-3s}
.theme-halloween .hw-lightning>svg{position:absolute;inset:0;width:100%;height:55vh}
@keyframes hw-night-breathe{from{opacity:.35}to{opacity:.82}}
@keyframes hw-haunting{0%{transform:translate(var(--hw-from),0) rotate(-8deg);opacity:0}12%{opacity:.38}48%{transform:translate(calc((var(--hw-from) + var(--hw-to))/2),-26px) rotate(7deg);opacity:.29}84%{opacity:.37}100%{transform:translate(var(--hw-to),8px) rotate(-5deg);opacity:0}}
@keyframes hw-pumpkin-rock{0%{transform:translateY(1px) rotate(-5deg)}60%{transform:translateY(-7px) rotate(4deg)}100%{transform:translateY(-3px) rotate(6deg)}}
@keyframes hw-bat-crossing{0%{transform:translate(var(--hw-from),0) rotate(-9deg);opacity:0}8%,85%{opacity:.55}50%{transform:translate(calc((var(--hw-from) + var(--hw-to))/2),22px) rotate(6deg)}100%{transform:translate(var(--hw-to),-14px) rotate(-3deg);opacity:0}}
@keyframes hw-spider-descend{0%,12%,100%{transform:translateY(-158px)}38%,56%{transform:translateY(-5px)}72%{transform:translateY(-70px)}}
/* Egyetlen, visszafogott felvillanás 41 másodpercenként; nincs villanássorozat. */
@keyframes hw-distant-lightning{0%,18%,21%,100%{opacity:0}18.6%{opacity:.64}19.2%{opacity:.21}}
@media(max-width:620px){
  .theme-halloween .hw-world-ghost{width:75px;height:85px}
  .theme-halloween .hw-world-ghost-two{width:62px;height:75px;top:57vh}
  .theme-halloween .hw-world-ghost-three,.theme-halloween .hw-world-pumpkin-three,.theme-halloween .hw-world-pumpkin-four,.theme-halloween .hw-world-bat-three{display:none}
  .theme-halloween .hw-world-pumpkin{width:52px;height:52px;left:-6px;bottom:calc(108px + env(safe-area-inset-bottom));opacity:.62}
  .theme-halloween .hw-world-pumpkin-two{width:64px;height:64px;left:auto;right:-7px;bottom:calc(100px + env(safe-area-inset-bottom))}
  .theme-halloween .hw-world-spider{right:2vw;width:34px;height:164px;padding-top:129px}
  .theme-halloween .hw-world-spider:before{height:139px}.theme-halloween .hw-world-spider .hw-icon{height:34px}
  .theme-halloween .hw-world-fog-far{display:none}
}

/* Az SVG ikonok saját rajzok; csak a kezelőfelület kijelölt ikonjait cseréljük. */
.theme-halloween .hw-icon{display:inline-block;width:100%;height:100%;min-width:20px;max-width:58px;max-height:58px;overflow:visible;vertical-align:middle;pointer-events:none}
.theme-halloween :is(.hub1-icon,.home-favorite-grid>a>span,.start-status-grid>a>span){height:46px!important;min-height:46px;display:grid!important;place-items:center}
.theme-halloween .hub1-fixed-dock .hw-icon{width:34px;height:34px}
.theme-halloween .start-panel-title>span .hw-icon{width:38px;height:38px}
.theme-halloween .home-active-room-icon .hw-icon{width:40px;height:40px}
.theme-halloween .baha-menu-links>a>span:first-child .hw-icon{width:36px;height:36px}
.theme-halloween .hub-simple-group-head>span:first-child .hw-icon{width:30px;height:30px}
.theme-halloween .hw-icon .hw-float,.theme-halloween .hw-icon .hw-wiggle,.theme-halloween .hw-icon .hw-glow,.theme-halloween .hw-icon .hw-wing,.theme-halloween .hw-icon .hw-hand,.theme-halloween .hw-icon .hw-pupil,.theme-halloween .hw-icon .hw-bubble{transform-box:fill-box;transform-origin:center;animation-play-state:paused}
.theme-halloween .hw-icon .hw-float{animation:hw-float 4.6s ease-in-out infinite paused}
.theme-halloween .hw-icon .hw-wiggle{animation:hw-wiggle 5.5s ease-in-out infinite paused}
.theme-halloween .hw-icon .hw-glow{animation:hw-glow 4s ease-in-out infinite paused}
.theme-halloween .hw-icon .hw-wing{transform-origin:center right;animation:hw-wing 1.6s ease-in-out infinite alternate paused}
.theme-halloween .hw-icon .hw-wing-right{transform-origin:center left;animation-delay:-.8s}
.theme-halloween .hw-icon .hw-hand{transform-origin:center bottom;animation:hw-hand 12s linear infinite paused}
.theme-halloween .hw-icon .hw-pupil{animation:hw-gaze 7s ease-in-out infinite paused}
.theme-halloween .hw-icon .hw-bubble{animation:hw-bubble 3s ease-in-out infinite paused}
.theme-halloween .hw-icon.is-visible :is(.hw-float,.hw-wiggle,.hw-glow,.hw-wing,.hw-hand,.hw-pupil,.hw-bubble){animation-play-state:running}
@keyframes hw-float{0%,100%{transform:translateY(1px)}50%{transform:translateY(-4px)}}
@keyframes hw-wiggle{0%,70%,100%{transform:rotate(-3deg)}35%{transform:rotate(5deg)}}
@keyframes hw-glow{0%,100%{opacity:.65}50%{opacity:1}}
@keyframes hw-wing{from{transform:scaleY(.7) rotate(-8deg)}to{transform:scaleY(1) rotate(10deg)}}
@keyframes hw-hand{to{transform:rotate(360deg)}}
@keyframes hw-gaze{0%,20%,100%{transform:translateX(0)}40%,55%{transform:translateX(4px)}75%,90%{transform:translateX(-3px)}}
@keyframes hw-bubble{0%{transform:translateY(0);opacity:.1}40%{opacity:.9}100%{transform:translateY(-9px);opacity:0}}
@keyframes hw-fog{from{transform:translateX(-5%)}to{transform:translateX(10%)}}
@keyframes hw-drift{from{transform:translate(-7px,5px) rotate(-5deg)}to{transform:translate(10px,-7px) rotate(4deg)}}
@keyframes hw-ember{0%{transform:translate(0,0);opacity:0}10%{opacity:.55}85%{opacity:.35}100%{transform:translate(35px,-90vh);opacity:0}}
@media(max-width:620px){
  .theme-halloween .retro-shell{width:100%;margin:0;border:0;border-radius:0}
  .theme-halloween .top{border-radius:0}
  .theme-halloween .hw-header-row{gap:7px}.theme-halloween .hw-toggle-label{display:none}.theme-halloween .hw-header-row .baha-header-notifications{min-width:40px;min-height:40px;border-radius:13px}
  .theme-halloween .hw-manor{min-height:300px;border-radius:18px;margin-bottom:14px}
  .theme-halloween .hw-manor-copy{width:65%;padding:25px 18px 25px;background:linear-gradient(90deg,#1b1426f5,#1b1426b3 70%,transparent)}
  .theme-halloween .hw-manor h1{font-size:34px}.theme-halloween .hw-manor-story{max-width:160px;font-size:12px}
  .theme-halloween .hw-kicker{font-size:9px;letter-spacing:.17em}
  .theme-halloween .hw-manor-art>img{width:112%;right:-17%;height:96%;object-fit:cover;object-position:70% bottom;opacity:.8}
  .theme-halloween .hw-moon{width:87px;height:87px;right:11%;top:18px}
  .theme-halloween .hw-manor-bat-two{right:32%}.theme-halloween .hw-manor-ghost{right:13%}
  .theme-halloween .hw-ember:nth-of-type(n+5){display:none}
  .theme-halloween .hw-web{width:95px;height:95px}
  .theme-halloween .hw-manor-signature{font-size:9px}
  .theme-halloween .room-wall-header .hw-motion-toggle{width:38px;height:40px}
  .theme-halloween :is(.hub1-icon,.home-favorite-grid>a>span,.start-status-grid>a>span){height:40px!important;min-height:40px}
}
/* A kapcsoló, háttérbe kerülés és rendszerbeállítás minden saját mozgást leállít. */
.theme-halloween:not(.halloween-motion-on) :is(.hw-icon *,.hw-manor-fog,.hw-manor-bat,.hw-manor-ghost,.hw-ember),
.theme-halloween.halloween-page-hidden :is(.hw-icon *,.hw-manor-fog,.hw-manor-bat,.hw-manor-ghost,.hw-ember),
.theme-halloween:not(.halloween-motion-on) .hw-atmosphere:before,.theme-halloween.halloween-page-hidden .hw-atmosphere:before{animation-play-state:paused!important}
.theme-halloween:not(.halloween-motion-on) .hw-ember{opacity:0!important}
.theme-halloween:not(.halloween-motion-on) .hw-world *,
.theme-halloween.halloween-page-hidden .hw-world *{animation-play-state:paused!important}
.theme-halloween:not(.halloween-lightning-on) .hw-lightning,
.theme-halloween:not(.halloween-motion-on) .hw-lightning,
.theme-halloween.halloween-page-hidden .hw-lightning{animation:none!important;opacity:0!important}
@media(prefers-reduced-motion:reduce){
  .theme-halloween :is(.hw-icon *,.hw-manor-fog,.hw-manor-bat,.hw-manor-ghost,.hw-ember),.theme-halloween .hw-atmosphere:before{animation:none!important}
  .theme-halloween .hw-ember{display:none}
  .theme-halloween :is(.home-favorite-grid,.hub1-grid,.start-status-grid)>a{transition:none}
  .theme-halloween .hw-world *{animation:none!important}
  .theme-halloween .hw-lightning,.theme-halloween .hw-world-ghost,.theme-halloween .hw-world-bat,.theme-halloween .hw-world-spider{display:none}
}

/* 22.9.479 – guest landing and public cards used separate light palettes. */
body.theme-halloween.baha-public-v2,body.theme-halloween.baha-guest{background:#0c0b13!important;color:var(--text-primary)!important}
.theme-halloween.baha-public-v2 :is(.lp-top,.lp-live,.lp-final,.lp-footer,.lp-now,.lp-community-preview,.conversion-benefits,.offline-card,.feature,.guest-boti-card,.guest-autumn-season){background:var(--surface-1)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important}
.theme-halloween.baha-public-v2 :is(.preview-message,.conversion-benefits span,.conversion-life-links a,.conversion-online,.life-head em,.offline-badge){background:var(--surface-2)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important}
.theme-halloween.baha-public-v2 :is(h1,h2,h3,b,strong){color:var(--text-primary)!important}
.theme-halloween.baha-public-v2 :is(p,small,.lp-trust,.preview-note,.lp-kicker,.lp-section-head>span,.lp-live span,.lp-footer,.lp-final>div:last-child,.guest-boti-later){color:var(--text-secondary)!important}
.theme-halloween.baha-public-v2 :is(a,.lp-hero h1 em,.offline-card strong,.feature small){color:var(--link)!important}
.theme-halloween.baha-public-v2 :is(.lp-primary,.lp-secondary,.lp-login,.lp-login-big,.guest-boti-actions a){background:var(--button-bg)!important;color:var(--button-text)!important;border-color:var(--button-border)!important}
.theme-halloween.baha-public-v2 .lp-hero{background:transparent!important}
.theme-halloween.halloween-lite .hw-icon *{animation:none!important;will-change:auto!important}
