/* A complete seasonal skin: haunted village, candlelight, hand-painted cards and a costumed Don. */
body[data-theme="halloween"]{
  --bg:#0b0709;--surface:#171014;--surface2:#241418;--surface3:#321a16;--ink:#fff2e3;--muted:#c29a80;--line:#5f2b18;--gold:#ff781c;--gold2:#ffc15d;--red:#ff5b61;--green:#b2d979;--blue:#b8a0eb;--shadow:0 18px 48px #000a;--radius:15px;
  color:var(--ink)!important;background:#0b0709!important;
  background-image:radial-gradient(ellipse at 50% -10%,#7b2a0d 0,transparent 35%),radial-gradient(ellipse at 92% 14%,#5a1b13 0,transparent 28%),linear-gradient(180deg,#11090c 0%,#080609 100%),url("../assets/img/0b222e5f94.svg")!important;background-size:auto,auto,auto,360px 320px!important;background-position:center top,center,center,0 0!important;background-repeat:no-repeat,no-repeat,no-repeat,repeat!important;
  position:relative;isolation:isolate;
}
body[data-theme="halloween"]::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;background-image:linear-gradient(180deg,#07040732,#070407b8 85%),url("../assets/img/cdaff764fb.webp");background-size:cover, min(1180px,115vw) auto;background-position:center,center 7%;background-repeat:no-repeat;opacity:.34;filter:saturate(1.16) contrast(1.06);mix-blend-mode:screen}
body[data-theme="halloween"]::after{content:"🦇   🎃";white-space:pre;position:fixed;z-index:0;pointer-events:none;right:3vw;top:11vh;font-size:clamp(22px,3vw,42px);filter:drop-shadow(0 0 12px #ff5d19);opacity:.76;animation:halloweenBatDrift 12s ease-in-out infinite}
@keyframes halloweenBatDrift{0%,100%{transform:translate(0,0) rotate(-8deg)}50%{transform:translate(-24px,19px) rotate(8deg)}}
@keyframes pumpkinGlow{0%,100%{box-shadow:0 0 0 1px #ff6e1b7d,0 0 22px #ff5f1430}50%{box-shadow:0 0 0 1px #ffa43a9c,0 0 34px #ff5f1460}}
@keyframes candleFlicker{0%,100%{opacity:.7;transform:scale(1)}50%{opacity:1;transform:scale(1.08)}}
body[data-theme="halloween"] .app{position:relative;z-index:1;max-width:1620px;padding-top:16px}
body[data-theme="halloween"] .topbar{position:relative;overflow:hidden;padding:13px 16px 14px;background:linear-gradient(105deg,#160b0df2,#11080cf2 64%,#24100bf0);border:1px solid #7e3516;border-radius:16px;box-shadow:0 13px 38px #0008,0 0 0 1px #ff80151a inset;margin-bottom:15px}
body[data-theme="halloween"] .topbar:after{content:"✦  🎃  ✦";position:absolute;right:24px;bottom:1px;color:#ff8a2480;font-size:15px;letter-spacing:8px;pointer-events:none}
body[data-theme="halloween"] .mark{background:radial-gradient(circle at 32% 28%,#ffc56d,#ff7413 64%,#7d2709);border:2px solid #ffb450;border-radius:14px;box-shadow:0 0 0 3px #ff7b1d24,0 0 26px #ff741a55;transform:rotate(-4deg);animation:pumpkinGlow 4s ease-in-out infinite}
body[data-theme="halloween"] .mark span{display:none}
body[data-theme="halloween"] .mark:before{content:"🎃";font-size:29px;line-height:1;filter:drop-shadow(0 2px 0 #5d1b08)}
body[data-theme="halloween"] .brand h1{color:#fff1df;letter-spacing:.08em;text-shadow:0 0 18px #ff6e1d38}
body[data-theme="halloween"] .brand h1 span{color:#ff8a27!important}
body[data-theme="halloween"] .brand p{color:#d7a185;font-size:0;letter-spacing:.08em;text-transform:uppercase}
body[data-theme="halloween"] .brand p:after{content:"ХЭЛЛОУИН  ·  НОЧЬ ФИШКИ  ·  КЛУБ МАФИИ";color:#ff8d28;font-size:10px;font-weight:900}
body[data-theme="halloween"] button{background:linear-gradient(180deg,#2b1718,#1c1014);border-color:#673018;color:#ffecdb;border-radius:9px;box-shadow:0 3px 0 #090609,0 0 0 1px #ff8a1210 inset}
body[data-theme="halloween"] button:hover{background:linear-gradient(180deg,#4b2018,#2d1414);border-color:#ff8322;color:#fff4e7;box-shadow:0 0 0 1px #ff832242,0 0 22px #ff641f1f;transform:translateY(-1px)}
body[data-theme="halloween"] button.primary,body[data-theme="halloween"] .primary{color:#1a0906;background:linear-gradient(135deg,#ffb33c,#ff7418 80%);border-color:#ffbc54;box-shadow:0 5px 0 #72250d,0 0 22px #ff6f1c2e;font-weight:950}
body[data-theme="halloween"] button.primary:hover,body[data-theme="halloween"] .primary:hover{background:linear-gradient(135deg,#ffd16e,#ff8423);color:#160704}
body[data-theme="halloween"] button.danger,body[data-theme="halloween"] .danger{background:#351218;color:#ffc2bf;border-color:#8b2630;box-shadow:0 3px 0 #15070a}
body[data-theme="halloween"] input,body[data-theme="halloween"] select,body[data-theme="halloween"] textarea{background:#100b0e;color:#fff0e1;border-color:#69351f;border-radius:9px}
body[data-theme="halloween"] input:focus,body[data-theme="halloween"] select:focus,body[data-theme="halloween"] textarea:focus{border-color:#ff8322;box-shadow:0 0 0 3px #ff781d22}
body[data-theme="halloween"] label,body[data-theme="halloween"] .muted{color:#c7a18a}
body[data-theme="halloween"] .nav{border-color:#743517;padding-bottom:11px;gap:8px}
body[data-theme="halloween"] .nav button{background:#170d11c9;color:#cda58d;border:1px solid transparent;border-radius:10px;font-weight:750}
body[data-theme="halloween"] .nav button.active{color:#190904;background:linear-gradient(135deg,#ffbb4d,#ff7619);border-color:#ffc45c;box-shadow:0 5px 0 #6d260d,0 0 22px #ff6c1c30;font-weight:950}
body[data-theme="halloween"] .guide-hero{grid-template-columns: minmax(205px,25%) minmax(0,1fr);min-height:285px;border:1px solid #914019;border-radius:17px;background:linear-gradient(90deg,#0c0708c0 0%,#10080ce8 28%,#10080cdb 100%),url("../assets/img/cdaff764fb.webp") center 39%/cover no-repeat;box-shadow:0 19px 48px #000a,0 0 0 1px #ff8e2417 inset;isolation:isolate}
body[data-theme="halloween"] .guide-hero:before{width:220px;height:220px;right:-50px;top:-105px;border:1px solid #ffb44c30;box-shadow:0 0 0 22px #ffb44c0d,0 0 0 48px #ffb44c08;z-index:-1}
body[data-theme="halloween"] .guide-portrait{background:#12080b;border-right:1px solid #a74a1e;min-height:285px}
body[data-theme="halloween"] .guide-portrait img{content:url("../assets/img/a4aecfec0a.webp") !important;object-position:center 17%;filter:saturate(1.22) contrast(1.1);transform:scale(1.015);transition:transform .6s,filter .5s}
body[data-theme="halloween"] .guide-hero:hover .guide-portrait img{transform:scale(1.045);filter:saturate(1.28) contrast(1.12)}
body[data-theme="halloween"] .guide-portrait:after{inset:22% 0 0;background:linear-gradient(180deg,transparent 30%,#1006092c 60%,#100609eb 100%)}
body[data-theme="halloween"] .portrait-stamp{left:10px;right:10px;bottom:10px;text-align:center;border:1px solid #ffb856;background:#ff821a;color:#1b0804;border-radius:5px;box-shadow:0 4px 0 #5e1f0c,0 0 22px #ff761c3f;font-size:10px;letter-spacing:.08em}
body[data-theme="halloween"] .guide-copy{padding:25px clamp(18px,3vw,42px);background:linear-gradient(90deg,#10080bc8,#12090de8 55%,#16090bd9);border-left:4px solid #ff781c}
body[data-theme="halloween"] .guide-copy .eyebrow{color:#ff9b39;letter-spacing:.18em}
body[data-theme="halloween"] .guide-copy h2{max-width:720px;color:#fff1dc;text-shadow:0 2px 0 #280b08,0 0 22px #ff711b40;font-size:clamp(24px,2.9vw,36px);letter-spacing:-.035em}
body[data-theme="halloween"] .guide-intro{color:#e8c8b2}
body[data-theme="halloween"] .guide-speech{background:#160b0ee8;border:1px solid #6d311d;border-left:4px solid #ff7d1e;border-radius:0 11px 11px 0;box-shadow:0 9px 24px #0005}
body[data-theme="halloween"] .guide-speech .speech-mark{color:#ff8b2b}
body[data-theme="halloween"] .guide-speech p{color:#ffead8}
body[data-theme="halloween"] .guide-step{color:#ffc27c;background:#27120f;border:1px solid #703319;padding:7px 10px;border-radius:5px}
body[data-theme="halloween"] .guide-foot button{border-radius:8px}
body[data-theme="halloween"] .guide-emblem{color:#ff782c38;font-size:65px;right:20px;top:2px}
body[data-theme="halloween"] .stats{gap:11px}
body[data-theme="halloween"] .stat{background:linear-gradient(145deg,#291516ed,#160e12ed);border:1px solid #70321d;border-radius:13px;box-shadow:0 10px 28px #0005,0 1px 0 #ff9a2918 inset;position:relative;overflow:hidden}
body[data-theme="halloween"] .stat:after{content:"";position:absolute;width:72px;height:72px;right:-23px;top:-27px;border-radius:50%;background:radial-gradient(circle,#ff7a1d23,transparent 70%);pointer-events:none}
body[data-theme="halloween"] .stat .v{color:#ffb455;text-shadow:0 0 18px #f96a2424}
body[data-theme="halloween"] .stat .k{color:#c79a7d}
body[data-theme="halloween"] .stat .hintline{color:#ff8e36}
body[data-theme="halloween"] .panel{background:linear-gradient(150deg,#1c1115f5,#110c10f8);border:1px solid #65301e;border-radius:15px;box-shadow:0 15px 34px #0006,0 1px 0 #ffae3512 inset}
body[data-theme="halloween"] .panel h3,body[data-theme="halloween"] .panel h4{color:#ffe8d4}
body[data-theme="halloween"] .pagehead .eyebrow{color:#ff8a27}
body[data-theme="halloween"] .pagehead h2{color:#fff1e2;text-shadow:0 0 22px #ff7a1b25}
body[data-theme="halloween"] .pill{background:#301a18;color:#ffd8b8;border:1px solid #71391e}
body[data-theme="halloween"] .pill.gold{background:#54270f;color:#ffc369;border-color:#a64b15}
body[data-theme="halloween"] .pill.red{background:#45131b;color:#ffb8ba;border-color:#8a2a34}
body[data-theme="halloween"] .pill.green{background:#1f2c1d;color:#c9eda0;border-color:#3b5930}
body[data-theme="halloween"] .note{background:#27170f;border-color:#86431b;color:#ffdda9}
body[data-theme="halloween"] .note.warn{background:#301116;border-color:#8a2733;color:#ffc0bd}
body[data-theme="halloween"] .note.info{background:#1d1424;border-color:#644278;color:#e3cafa}
body[data-theme="halloween"] .note.good{background:#18241a;border-color:#3d633b;color:#cce9b4}
body[data-theme="halloween"] .table-area{border:1px solid #8d3e17;border-radius:17px;background:radial-gradient(ellipse at center,#502115 0,#271218 45%,#100a10 82%);box-shadow:0 18px 46px #0008,0 0 0 1px #ff79251b inset}
body[data-theme="halloween"] .table-area:before{border:1px solid #ffae4a2d;background:radial-gradient(ellipse at 50% 0%,#ff9a2010,transparent 65%);inset:11px;border-radius:12px}
body[data-theme="halloween"] .empty-table:before{content:"🎃";display:block;font-size:64px;line-height:1;filter:drop-shadow(0 0 18px #ff6e1d80);animation:pumpkinGlow 4s ease-in-out infinite}
body[data-theme="halloween"] .table-area:after{content:"🕸";position:absolute;top:13px;right:19px;font-size:37px;opacity:.2;filter:grayscale(1);pointer-events:none}
body[data-theme="halloween"] .felt{border:8px solid #7a2f13;background:radial-gradient(ellipse at 45% 35%,#4b271b,#211015 75%);box-shadow:0 0 0 3px #16090b,0 0 24px #ff711c21,0 16px 35px #0008;color:#ffc078}
body[data-theme="halloween"] .felt:after{content:"🎃  ♠  🎃";position:absolute;bottom:13%;left:0;right:0;text-align:center;font-size:clamp(14px,2vw,25px);letter-spacing:.35em;opacity:.26;pointer-events:none;filter:sepia(.3)}
body[data-theme="halloween"] .felt strong{color:#ffb65a;text-shadow:0 0 14px #ff711c33}
body[data-theme="halloween"] .felt span{color:#bd8668}
body[data-theme="halloween"] .seat{background:linear-gradient(155deg,#1e1115ef,#100b10ed);border:1px solid #60301f;border-radius:11px;box-shadow:0 5px 15px #0005;backdrop-filter:blur(6px)}
body[data-theme="halloween"] .seat:hover{border-color:#ff8524;box-shadow:0 0 0 2px #ff852428,0 8px 18px #0008}
body[data-theme="halloween"] .seat.selected{background:#3a1b13;border-color:#ff9b36;box-shadow:0 0 0 3px #ff7e1e2a,0 0 23px #ff6a1e22}
body[data-theme="halloween"] .seat .avatar{border-color:#c4561c;box-shadow:0 0 0 2px #1a0b0c,0 0 14px #ff7a1a2c}
body[data-theme="halloween"] .seat .pname{color:#fff0de}
body[data-theme="halloween"] .seat .pnum{color:#bc8c74}
body[data-theme="halloween"] .seat .prole{color:#ffb45c}
body[data-theme="halloween"] .seat.dead{opacity:.48;filter:grayscale(.75)}
body[data-theme="halloween"] .avatar{position:relative;overflow:hidden;background:#251015;border:2px solid #c2571e;color:#ffcb7f;isolation:isolate}
body[data-theme="halloween"] .avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit;filter:saturate(1.08) contrast(1.05)}
body[data-theme="halloween"] .halloween-avatar{border:2px solid #ff8a24;box-shadow:0 0 0 2px #12090c,0 0 13px #ff6c1f35}
body[data-theme="halloween"] .halloween-avatar:before{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 2px #ff9a2a3d,inset 0 -10px 13px #12060870}
body[data-theme="halloween"] .halloween-avatar-charm{position:absolute;right:-1px;bottom:-1px;z-index:2;display:grid;place-items:center;width:13px;height:13px;border-radius:50%;background:#ff8b22;color:#200805;font-size:9px;font-weight:1000;border:1px solid #ffe1a0;line-height:1}
body[data-theme="halloween"] .target{background:#150c10;border-color:#51281a}
body[data-theme="halloween"] .target.selected{background:#3b1a12;border-color:#ff8b27;box-shadow:0 0 0 2px #ff8b2721}
body[data-theme="halloween"] .target .target-meta{color:#b98b75}
body[data-theme="halloween"] .person-row{background:linear-gradient(100deg,#1d1115,#120d11);border-color:#5c2c1b;border-radius:12px}
body[data-theme="halloween"] .person-row .person-title{color:#ffead7}
body[data-theme="halloween"] .person-row .person-sub{color:#bd947c}
body[data-theme="halloween"] .timerbox,body[data-theme="halloween"] .table-mini{background:linear-gradient(145deg,#211216,#120c11);border-color:#64301d}
body[data-theme="halloween"] .timer-clock{color:#ffb14b;text-shadow:0 0 18px #ff721c35}
body[data-theme="halloween"] .turn-banner{background:linear-gradient(115deg,#3b1d12,#1b1015);border-color:#8c421b}
body[data-theme="halloween"] .turn-banner .subtitle{color:#ffc178}
body[data-theme="halloween"] .turn-banner .instruction{color:#d3ae98}
body[data-theme="halloween"] .event,body[data-theme="halloween"] .rule-row,body[data-theme="halloween"] .role-order,body[data-theme="halloween"] .role-tile,body[data-theme="halloween"] .bracket-stage,body[data-theme="halloween"] .group-card{background:#171014;border-color:#5d2a1a;color:#f9dfca}
body[data-theme="halloween"] .event-time{color:#ff9a3b}
body[data-theme="halloween"] .photo-action{background:#261419;border-color:#733719;color:#ffddc4}
body[data-theme="halloween"] .photo-action:hover{background:#3a1b16;border-color:#ff8120}
body[data-theme="halloween"] .fishka-lore{box-shadow:0 15px 35px #0008}

/* The user's three drawings become an in-game meme dossier, with a working random-quote button. */
.halloween-deck{display:none}
body[data-theme="halloween"] .halloween-deck{display:block;margin:14px 0 18px;padding:15px;background:linear-gradient(145deg,#171014f5,#0e0a0ff8);border:1px solid #7a3517;border-radius:16px;box-shadow:0 14px 36px #0008;position:relative;overflow:hidden}
body[data-theme="halloween"] .halloween-deck:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.15;background:repeating-linear-gradient(128deg,transparent 0 70px,#ff7a1c18 71px 73px,transparent 74px 134px)}
.halloween-deck-top{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.halloween-deck-title{display:flex;align-items:center;gap:12px;min-width:0}
.halloween-pumpkin{display:grid;place-items:center;width:51px;height:51px;flex:0 0 auto;border:1px solid #a74a17;border-radius:12px;background:linear-gradient(145deg,#48200e,#1f0e0e);font-size:29px;box-shadow:0 0 22px #ff6f1d21}
.halloween-kicker{display:block;color:#ff9a3b;font-size:9px;font-weight:1000;letter-spacing:.17em;text-transform:uppercase}
.halloween-deck-title h3{margin:2px 0 3px;font-size:clamp(16px,2vw,21px);color:#fff0df;letter-spacing:-.02em}
.halloween-deck-title p{margin:0;color:#c0977d;font-size:11px}
.halloween-seal{flex:0 0 auto;transform:rotate(4deg);text-align:center;padding:6px 10px;border:1px dashed #dc6b26;color:#f4a34c;font-size:9px;font-weight:900;letter-spacing:.07em;border-radius:5px;background:#29120d}
.halloween-seal b{display:block;color:#ffcc78;font-size:11px;letter-spacing:0}
.halloween-meme-grid{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(185px,.92fr);gap:10px;align-items:stretch}
.halloween-meme-card{min-width:0;background:#1b1115;border:1px solid #663019;border-radius:10px;overflow:hidden;transform:rotate(var(--meme-tilt,0deg));box-shadow:0 7px 16px #0005;transition:transform .2s,border-color .2s,box-shadow .2s}
.halloween-meme-card:hover{transform:translateY(-3px) rotate(0deg);border-color:#ff8524;box-shadow:0 12px 25px #0007,0 0 18px #ff6d1c20}
.halloween-meme-one{--meme-tilt:-.4deg}.halloween-meme-two{--meme-tilt:.35deg}.halloween-meme-three{--meme-tilt:-.25deg}
.halloween-image-wrap{position:relative;aspect-ratio:1.25/1;background:#302014;overflow:hidden;border-bottom:1px solid #6b331b}
.halloween-image-wrap img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.93) contrast(1.04);transition:transform .3s}
.halloween-meme-card:hover .halloween-image-wrap img{transform:scale(1.045)}
.halloween-photo-tag{position:absolute;top:7px;left:7px;background:#16090de8;border:1px solid #ff872c;color:#ffad51;font-size:8px;font-weight:900;letter-spacing:.1em;padding:4px 6px;border-radius:4px}
.halloween-meme-copy{padding:10px 11px 11px}
.halloween-meme-type{display:block;font-size:8px;font-weight:1000;color:#ff9133;letter-spacing:.13em;margin-bottom:5px}
.halloween-meme-copy strong{display:block;font-size:12px;line-height:1.3;color:#fff0dd}
.halloween-meme-copy p{font-size:10px;line-height:1.45;color:#bd957e;margin:5px 0 0}
.halloween-quote-card{position:relative;min-width:0;padding:15px 14px 12px;border:1px dashed #b45a21;border-radius:10px;background:radial-gradient(ellipse at 100% 0%,#6c270e48,transparent 52%),linear-gradient(150deg,#2b1715,#120d12);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}
.halloween-quote-card:after{content:"🎃";position:absolute;right:-8px;bottom:22px;font-size:62px;opacity:.09;transform:rotate(-17deg);pointer-events:none}
.quote-cobweb{position:absolute;top:3px;right:8px;color:#f3a14f36;font-size:24px}
.halloween-quote-mark{font-family:Georgia,serif;color:#ff8c28;font-size:40px;height:31px;line-height:1;margin-top:6px}
.halloween-quote-card p{position:relative;z-index:1;margin:3px 0 15px;color:#ffecd9;font-size:13px;font-weight:750;line-height:1.55}
.halloween-quote-bottom{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.halloween-quote-bottom>span{color:#bc8c6e;font-size:10px;font-style:italic}
.halloween-meme-button{width:100%;background:linear-gradient(135deg,#ffad3f,#fa6718)!important;color:#1b0804!important;border-color:#ffc05b!important;box-shadow:0 4px 0 #67220d!important;font-size:11px;font-weight:950!important}
.halloween-meme-button span{font-size:15px;margin-left:4px}
body[data-theme="halloween"] .halloween-meme-button:hover{filter:brightness(1.1);transform:translateY(-2px) rotate(-.6deg)}
@media(max-width:1060px){.halloween-meme-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.halloween-quote-card{grid-column:1/-1;min-height:140px}.halloween-quote-bottom{flex-direction:row;align-items:center;justify-content:space-between}.halloween-meme-button{width:auto;min-width:145px}}
@media(max-width:700px){body[data-theme="halloween"] .app{padding-top:10px}body[data-theme="halloween"] .guide-hero{grid-template-columns:1fr;grid-template-rows:205px auto}body[data-theme="halloween"] .guide-portrait{min-height:205px;border-right:0;border-bottom:1px solid #9d471d}body[data-theme="halloween"] .guide-portrait img{object-position:center 19%}body[data-theme="halloween"] .guide-copy{padding:18px}.halloween-meme-grid{grid-template-columns:1fr 1fr}.halloween-meme-card:last-of-type{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.halloween-meme-card:last-of-type .halloween-image-wrap{height:100%;aspect-ratio:auto;border-bottom:0;border-right:1px solid #6b331b}.halloween-quote-card{grid-column:1/-1}.halloween-seal{display:none}}
@media(max-width:430px){.halloween-meme-grid{grid-template-columns:1fr}.halloween-meme-card:last-of-type{grid-column:auto;display:block}.halloween-meme-card:last-of-type .halloween-image-wrap{aspect-ratio:1.25/1;height:auto;border-right:0;border-bottom:1px solid #6b331b}.halloween-meme-copy strong{font-size:13px}.halloween-quote-bottom{align-items:stretch;flex-direction:column}.halloween-meme-button{width:100%}.halloween-deck{padding:10px}.halloween-pumpkin{width:43px;height:43px;font-size:24px}body[data-theme="halloween"] .top-actions{gap:6px}body[data-theme="halloween"] .top-actions button{font-size:10px;padding:8px}
}
@media(prefers-reduced-motion:reduce){body[data-theme="halloween"]::after,body[data-theme="halloween"] .mark{animation:none!important}*{scroll-behavior:auto!important;transition:none!important}}
