body.halloween88-ready #game #campaign52{display:none!important}
body.theme-halloween #game{background-image:linear-gradient(#03021a08,#05011320),url('/halloween88/background.webp')!important;background-position:center!important;background-size:cover!important}
#game .side .halloween88-card{position:relative;background:radial-gradient(ellipse at 50% 35%,#a94db2,#321357 65%,#120e35);border:2px solid #ffd481;border-radius:20%;box-shadow:inset 0 0 0 2px #ab6df1,0 0 6px #ffa92866;overflow:hidden;isolation:isolate}
#game .halloween88-card>img{position:absolute;inset:1% 4% auto;width:92%;height:78%;object-fit:contain;filter:drop-shadow(0 2px 4px #ff8a3266)}
#game .side .halloween88-card>b{position:absolute!important;inset:auto 3% 3%!important;width:94%!important;height:22%!important;box-sizing:border-box;display:flex;align-items:center;justify-content:center;background:linear-gradient(#582983,#27123f)!important;border:1px solid #ffcf77;border-radius:99px;color:#fff0c9;font:800 clamp(7px,1.9vw,11px)/1.05 Arial,sans-serif;text-align:center;padding:0 2px;white-space:normal!important;text-shadow:0 1px 2px #120b2e}
#sheet[data-panel=halloween88]{background:radial-gradient(ellipse at 50% 25%,#4b2467,#10172f 75%);border-color:#d99aff}
.halloween88-content{text-align:center;padding:6px 4px 0;color:#eee5ff}.halloween88-kicker{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.17em;text-transform:uppercase;color:#ffcb7c;padding:5px 12px;border:1px solid #ffc36c55;border-radius:99px}.halloween88-stage{position:relative;display:grid;place-items:center;min-height:200px;margin:4px auto;isolation:isolate}.halloween88-prize{width:min(100%,280px);height:210px;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 8px 20px #05011388)}.halloween88-aura{position:absolute;inset:7% 8%;border-radius:50%;background:radial-gradient(#ffa52e60,#8a36cc33 48%,transparent 73%)}.halloween88-content h3{font-size:23px!important;color:#ffe5a6!important;line-height:1.2;margin:0 0 9px!important}.halloween88-content>p{font-size:13px;line-height:1.5;max-width:340px;margin:0 auto 13px;color:#d8c8e9}.halloween88-rate{display:block;margin:0 0 16px;color:#99f7df;font-size:17px}.halloween88-content .halloween88-open{margin:12px 0 9px;background:linear-gradient(#ffd280,#f58a28);color:#3c1e0d;border:1px solid #ffe7aa;box-shadow:0 4px 0 #8f461b;border-radius:14px;min-height:48px;font-size:16px;font-weight:900}.halloween88-content .halloween88-note{font-size:11px;color:#aa99bf;margin:10px 0}.halloween88-notice{color:#ffd49a!important;min-height:1.5em}.is-opening .halloween88-prize{animation:chestShake88 .22s ease-in-out infinite alternate}.is-opening .halloween88-aura{animation:chestGlow88 .9s ease-in forwards}.is-revealed .halloween88-prize{animation:fishReveal88 .65s ease-out both}.is-revealed .halloween88-aura{background:radial-gradient(#ffd45f66,#8a36cc33 50%,transparent 73%)}
@keyframes chestShake88{from{transform:rotate(-3deg) scale(.99)}to{transform:rotate(3deg) scale(1.04)}}@keyframes chestGlow88{to{transform:scale(1.22);filter:brightness(2)}}@keyframes fishReveal88{from{opacity:0;transform:translateY(18px) scale(.7)}to{opacity:1;transform:none}}
@media(max-height:720px){.halloween88-stage{min-height:140px}.halloween88-prize{height:160px}}@media(prefers-reduced-motion:reduce){.halloween88-content *{animation:none!important}}
body.theme-halloween #game .water{background-image:linear-gradient(#03021a08,#05011320),url('/halloween88/background.webp')!important;background-position:center!important;background-size:cover!important}
#game .side .halloween88-card{aspect-ratio:1/1!important;height:auto!important;min-height:0!important;flex:0 0 auto}
#sheet.reef-panel-dialog[data-panel=halloween88]{height:auto!important;max-height:91dvh}
#sheet.reef-panel-dialog[data-panel=halloween88]{height:min(680px,91dvh)!important;min-height:0!important}
#game .side .halloween88-card>b{height:28%!important;font-size:clamp(7px,1.8vw,10px)!important;line-height:1.05!important}
#game .halloween88-card>img{height:73%}
#game .side .halloween88-card>b{height:32%!important;font-size:clamp(8px,2.15vw,10px)!important}
#game .halloween88-card>img{height:69%}
#game .side .halloween88-card>b{clip-path:none!important;clip:auto!important;overflow:visible!important;z-index:2}
#game .side .halloween88-card::before,#game .side .halloween88-card::after{display:none!important}
/* Trick or Treat: one sealed draw, two equally weighted choices. */
#game .side .halloween88-card{background:radial-gradient(ellipse at 50% 28%,#a64881,#361349 66%,#120c27);box-shadow:inset 0 0 0 2px #9b6bd8,0 0 8px #ffad3466}
#sheet.reef-panel-dialog[data-panel=halloween88]{height:min(740px,93dvh)!important;max-height:93dvh!important}
.halloween89-content{padding:0 3px}.halloween89-content .halloween88-stage{min-height:165px;margin:0 auto}.halloween89-content .halloween88-prize{height:175px;width:min(100%,265px)}.halloween89-content h3{font-size:26px!important;margin-bottom:8px!important}.halloween89-content>p{margin-bottom:10px}
.halloween89-odds{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 14px;padding:11px 8px;border-block:1px solid #e8bd7338;background:linear-gradient(90deg,#e8a83812,#9165d818);border-radius:13px}.halloween89-odds>span{display:flex;flex-direction:column;gap:3px;font-size:11px;color:#d8c7e6}.halloween89-odds b{font-size:22px;color:#ffdc94;line-height:1.1}.halloween89-odds>span+span{border-inline-start:1px solid #cc96f344}.halloween89-choices{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:0 0 14px}.halloween89-choices>button{min-width:0;min-height:86px;border:1px solid #ffe0a5;border-radius:18px;background:linear-gradient(145deg,#ffd684,#ef8c30);color:#3a1c0c;box-shadow:0 4px 0 #98471b,0 5px 15px #ef922326;padding:9px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;position:relative}.halloween89-choices>button:nth-child(2){background:linear-gradient(145deg,#aa72e7,#64389b);border-color:#e0b7ff;box-shadow:0 4px 0 #35164e,0 5px 15px #ac65eb26;color:#fff3ff}.halloween89-choices i{font:normal 26px/1.15 Arial}.halloween89-choices b{font:800 16px/1.2 Arial,sans-serif;overflow-wrap:anywhere}.halloween89-choices button:active{transform:translateY(2px);box-shadow:none}.halloween89-choices button:disabled{opacity:.6;transform:none}.halloween89-choices button:focus-visible{outline:2px solid #fff;outline-offset:4px}
.halloween89-content .halloween88-note{font-size:10px;max-width:330px;line-height:1.5}.halloween89-feed{width:175px;height:165px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;z-index:1;border:1px solid #ffd78577;border-radius:26px;background:radial-gradient(#d2932855,#56381833);box-shadow:0 0 45px #ffb14333}.halloween89-feed .feed-art{width:50px;height:40px;transform:scale(1.4);display:inline-block}.halloween89-feed>strong{font-size:48px;line-height:1;color:#ffe5a6}.halloween89-feed>b{color:#ffe1a3;font-size:14px}
@media(max-height:720px){.halloween89-content .halloween88-stage{min-height:125px}.halloween89-content .halloween88-prize{height:135px}.halloween89-choices>button{min-height:70px}.halloween89-odds{margin:10px 0;padding:8px}.halloween89-content h3{font-size:23px!important}}

/* The selected theme controls the background, independently of event availability. */
body.theme-halloween #game .water:after{background:transparent!important}
.reef-settings .theme[data-theme=halloween] i{background:url('/halloween88/background.webp') center/cover}
.halloween89-choices{margin-top:18px}.halloween89-content>p{line-height:1.65}
#sheet.reef-panel-dialog[data-panel=halloween88]{height:min(590px,93dvh)!important;max-height:93dvh!important}
.halloween89-content .halloween88-stage{min-height:155px}
