/* Quiet texture, compact event entrance and optional collectible characters. */
/* Event story and chat decorations follow the same individual seasonal choice. */
body .dh-home-carousel .dh-halloween-slide { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; background: radial-gradient(ellipse at 80% 45%, color-mix(in srgb, var(--primary) 15%, transparent), transparent 65%), var(--surface); }
body .dh-home-carousel .dh-slide-stage.dh-halloween-slide::after { content: none; background: none; }
body .dh-halloween-slide .dh-slide-copy { position: relative; inset: auto; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 36px; background: transparent; }
body .dh-home-carousel .dh-halloween-slide .dh-slide-copy h1 { color: var(--ink); text-shadow: none; }
body .dh-home-carousel .dh-halloween-slide .dh-slide-copy p { color: var(--muted); margin-bottom: 20px; }
body .dh-home-carousel .dh-halloween-slide .eyebrow { color: var(--primary); }
body .dh-home-carousel .dh-halloween-slide .dh-slide-cta { display: inline-flex; padding: 12px 18px; border-radius: 99px; background: var(--primary); color: var(--surface); text-decoration: none; font: 600 13px/1.5 var(--font-body); }
body .dh-home-carousel:has(.dh-halloween-slide) .dh-carousel-dot::after { background: var(--line-strong); }
body .dh-home-carousel:has(.dh-halloween-slide) .dh-carousel-dot[aria-current=true]::after { background: var(--primary); }
.dh-halloween-caption { margin-top: 16px; color: var(--muted); font: 400 12px/1.6 var(--font-body); }
@media(max-width:760px) {
  body .dh-home-carousel .dh-halloween-slide { height: 560px; grid-template-columns: 1fr; grid-template-rows: 210px minmax(0,1fr); }
  body .dh-home-carousel .dh-halloween-slide .dh-slide-copy { grid-row: 2; height: 100%; box-sizing: border-box; padding: 16px 24px 48px; overflow-y: auto; }
  body .dh-home-carousel .dh-halloween-slide .dh-slide-copy h1 { font-size: 30px; }
}

.dh-event-scene { position: relative; width: 100%; height: 330px; min-width: 0; pointer-events: none; }
.dh-event-scene::before { content: ''; position: absolute; inset: 12% 14%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent); box-shadow: 0 0 0 20px color-mix(in srgb, var(--primary) 3%, transparent); }
.dh-event-scene > :is(img, svg) { position: absolute; display: block; object-fit: contain; filter: drop-shadow(0 10px 14px color-mix(in srgb, var(--primary) 16%, transparent)); }
.dh-event-scene > :nth-child(1) { width: 60%; height: 86%; left: 14%; top: 3%; max-width: none; }
.dh-event-scene > :nth-child(2) { width: 30%; height: 38%; right: 5%; top: 5%; transform: rotate(9deg); }
.dh-event-scene > :nth-child(3) { width: 30%; height: 32%; right: 5%; bottom: 8%; transform: rotate(-7deg); }
body[data-season=halloween] .chat-room-header { position: relative; }
body[data-season=halloween] .chat-room-header::after { content: ''; position: absolute; top: 4px; right: 76px; width: 46px; height: 66px; pointer-events: none; background-image: url('/assets/seasonal/halloween/light/spider-v1.png'), linear-gradient(var(--line-strong), var(--line-strong)); background-position: center bottom, center top; background-size: 44px 44px, 1px 22px; background-repeat: no-repeat; }
body[data-season=halloween][data-theme=dark] .chat-room-header::after { background-image: url('/assets/seasonal/halloween/dark/spider-v1.png'), linear-gradient(var(--line-strong), var(--line-strong)); }
body[data-season=halloween] .chat-messages { position: relative; isolation: isolate; }
body[data-season=halloween] .chat-messages::before { content: ''; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: var(--primary); opacity: .075; -webkit-mask: url('/assets/seasonal/halloween/bows-webs-pattern.svg') repeat; mask: url('/assets/seasonal/halloween/bows-webs-pattern.svg') repeat; -webkit-mask-size: 340px 340px; mask-size: 340px 340px; }
body[data-season=halloween] .chat-messages > * { position: relative; z-index: 1; }
body[data-season=halloween] .chat-welcome::before { content: ''; display: block; width: 110px; height: 120px; margin: 0 auto 16px; background: url('/assets/seasonal/halloween/light/ghost.png') center / contain no-repeat; }
body[data-season=halloween][data-theme=dark] .chat-welcome::before { background-image: url('/assets/seasonal/halloween/dark/ghost.png'); }
body[data-season=halloween] .chat-welcome-icon { display: none; }
@media (max-width: 760px) {
  .dh-event-scene { grid-row: 1; height: 220px; max-width: 360px; margin-inline: auto; }
  body[data-season=halloween] .chat-room-header::after { right: 58px; width: 32px; height: 52px; background-size: 30px 30px, 1px 22px; }
}
body { isolation: isolate; }
body[data-season=christmas]::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--primary); opacity: .045; -webkit-mask: url('/assets/seasonal/christmas/stars-bows-pattern.svg') repeat; mask: url('/assets/seasonal/christmas/stars-bows-pattern.svg') repeat; -webkit-mask-size: 480px 480px; mask-size: 480px 480px; }
.dh-christmas-lights { position: absolute; left: 0; right: 0; bottom: -54px; height: 64px; z-index: 4; pointer-events: none; user-select: none; background: url('/assets/seasonal/christmas/light/lights-v2.png') 0 -14px / 240px 80px; background-repeat: round no-repeat; animation: dh-christmas-glow 3s ease-in-out infinite alternate; }
body[data-theme=dark] .dh-christmas-lights { background-image: url('/assets/seasonal/christmas/dark/lights-v2.png'); }
@keyframes dh-christmas-glow { from { opacity: .76; } to { opacity: 1; } }
.dh-christmas-corner { position: fixed; right: 18px; bottom: 84px; width: 190px; height: 267px; z-index: 5; pointer-events: none; }
body .dh-christmas-tree-trigger { display: block; width: 100%; height: 100%; min-width: 0; padding: 0; border: 0; border-radius: 16px; background: transparent; box-shadow: none; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
body .dh-christmas-tree-trigger:hover, body .dh-christmas-tree-trigger:active { border: 0; background: transparent; box-shadow: none; }
.dh-christmas-tree-trigger:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.dh-christmas-corner-tree { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; filter: drop-shadow(0 0 9px #eac56966); animation: dh-christmas-tree-light 3.4s ease-in-out infinite alternate; }
.dh-christmas-tree-surprise { position: absolute; right: calc(100% - 42px); bottom: 10px; width: 110px; height: 140px; opacity: 0; visibility: hidden; transform: translate(36px, 22px) scale(.65); transform-origin: right bottom; transition: opacity .3s, transform .45s cubic-bezier(.2,.8,.2,1), visibility .3s; pointer-events: none; }
.dh-christmas-tree-elf { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 8px #39212933); }
.dh-christmas-tree-greeting { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); box-sizing: border-box; width: 180px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 18px 18px 4px 18px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-soft); text-align: center; font: 500 13px/1.6 var(--font-body); }
.dh-christmas-corner.is-greeting .dh-christmas-tree-surprise { opacity: 1; visibility: visible; transform: translate(0, 0) scale(1); }
.dh-christmas-corner.is-greeting .dh-christmas-corner-tree { animation: dh-christmas-tree-welcome .8s ease-in-out; transform-origin: center bottom; }
.dh-christmas-corner.is-greeting .dh-christmas-tree-elf { animation: dh-christmas-elf-wave 1.8s ease-in-out .4s 2; transform-origin: center bottom; }
@keyframes dh-christmas-tree-welcome { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-2deg); } 60% { transform: rotate(2deg); } }
@keyframes dh-christmas-elf-wave { 0%,100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-5px) rotate(-4deg); } }
@keyframes dh-christmas-tree-light { from { filter: drop-shadow(0 0 4px #eac56944); } to { filter: drop-shadow(0 0 12px #f4cd7888); } }
@media(max-width:760px) { .dh-christmas-corner { width: 112px; height: 160px; right: 8px; bottom: 94px; } .dh-christmas-tree-surprise { width: 85px; height: 110px; right: calc(100% - 22px); bottom: 0; } .dh-christmas-tree-greeting { width: 160px; font-size: 12px; } }
@media(prefers-reduced-motion:reduce) { .dh-christmas-corner .dh-christmas-corner-tree, .dh-christmas-corner.is-greeting .dh-christmas-corner-tree, .dh-christmas-corner.is-greeting .dh-christmas-tree-elf { animation: none; } .dh-christmas-tree-surprise { transition: none; transform: none; } }
body .dh-christmas-entry { left: 50%; width: 230px; height: 76px; bottom: -12px; }
.dh-christmas-entry > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dh-christmas-anchor { position: relative; }
.dh-christmas-placement-layer { position: absolute; pointer-events: none; }
.dh-christmas-slot { position: absolute; width: var(--christmas-size, 64px); height: var(--christmas-size, 64px); z-index: 3; pointer-events: auto; }
.dh-christmas-slot[data-side=right] { right: 20px; }
.dh-christmas-slot[data-side=left] { left: 20px; }
.dh-christmas-slot[data-perched=true] { bottom: calc(100% - 4px); }
.dh-christmas-slot[data-perched=false] { top: 0; }
.dh-christmas-slot--last[data-perched=false] { top: auto; bottom: 0; }
.dh-christmas-slot img, .dh-christmas-slot > button { display: block; width: 100%; height: 100%; object-fit: contain; }
.dh-christmas-editorial-trail { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; gap: 16px; min-width: 0; padding: 12px 0; }
.dh-christmas-editorial-trail > .dh-christmas-slot { position: relative; inset: auto; flex: none; }
body .dh-christmas-slot .dh-hunt-character img { width: 100%; height: 100%; object-fit: contain; }
.dh-christmas-status:empty { display: none; }
.dh-christmas-status:not(:empty) { position: fixed; z-index: 110; right: 24px; bottom: 88px; max-width: calc(100vw - 48px); padding: 14px 20px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-soft); font: 500 13px/1.6 var(--font-body); }
.dh-christmas-story-art { display: block; width: 200px; height: 145px; object-fit: contain; margin: 0 auto 12px; }
.dh-seasonal-preview-scene[data-season=christmas] { display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, var(--surface2), var(--surface)); }
.dh-christmas-preview-art { width: 30%; height: 190px; object-fit: contain; }
.dh-christmas-close-icon { display: block; width: 20px; height: 20px; }
.dh-christmas-avatar-preview { position: relative; flex: none; width: 128px; height: 128px; }
.dh-christmas-avatar-preview > img:first-child { position: absolute; inset: 20px; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.dh-christmas-avatar-preview > img:last-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.dh-christmas-frame-equipped { position: relative; outline: none !important; box-shadow: none !important; }
.dh-christmas-profile-frame { position: absolute; z-index: 3; pointer-events: none; width: 142% !important; height: 142% !important; max-width: none !important; left: -21%; top: -21%; object-fit: contain !important; border: 0 !important; border-radius: 0 !important; }
.dh-christmas-cover-host { position: relative; }
.dh-christmas-cover-frame { position: absolute; inset: 0; box-sizing: border-box; border: 112px solid transparent; border-width: 112px 144px; border-image-slice: 42% 18%; border-image-width: 112px 144px; border-image-repeat: repeat; pointer-events: none; z-index: 1; }
.dh-christmas-cover-preview > .dh-christmas-cover-frame { border-width: 35px 45px; border-image-width: 35px 45px; }
.dh-christmas-cover-frame--equipped { inset: auto; border-width: 112px 144px; border-image-width: 112px 144px; border-image-outset: 32px 24px; }
.dh-christmas-cover-equipped > .mp-intro { position: relative; z-index: 2; }
.dh-christmas-cover-equipped :is(.profile-cover-edit, .profile-header-actions) { z-index: 2; }
body[data-season=christmas] .chat-room-header { position: relative; }
body[data-season=christmas] .chat-room-header::after { content: ''; position: absolute; right: 76px; top: 12px; width: 40px; height: 50px; background: url('/assets/seasonal/christmas/light/bell.png') center / contain no-repeat; pointer-events: none; }
body[data-season=christmas] .chat-messages { position: relative; isolation: isolate; }
body[data-season=christmas] .chat-messages::before { content: ''; position: absolute; z-index: 0; inset: 0; background: var(--primary); opacity: .075; -webkit-mask: url('/assets/seasonal/christmas/stars-bows-pattern.svg') repeat; mask: url('/assets/seasonal/christmas/stars-bows-pattern.svg') repeat; -webkit-mask-size: 340px 340px; mask-size: 340px 340px; pointer-events: none; }
body[data-season=christmas] .chat-messages > * { position: relative; z-index: 1; }
body[data-season=christmas] .chat-welcome::before { content: ''; display: block; width: 110px; height: 120px; margin: 0 auto 16px; background: url('/assets/seasonal/christmas/light/reindeer.png') center / contain no-repeat; }
body[data-season=christmas] .chat-welcome-icon { display: none; }
@media(max-width:760px) {
  body .dh-christmas-entry { left: auto; bottom: auto; width: 220px; height: 74px; }
  .dh-christmas-cover-frame--equipped { border-width: 56px 72px; border-image-width: 56px 72px; border-image-outset: 16px 12px; }
  .dh-christmas-slot { width: calc(var(--christmas-size, 64px) * .75); height: calc(var(--christmas-size, 64px) * .75); }
}
@media(prefers-reduced-motion:reduce) { .dh-christmas-lights { animation: none; opacity: 1; } }
body[data-season="halloween"]::before {
  content: ''; position: fixed; z-index: -1; inset: 0;
  pointer-events: none; user-select: none; background: var(--rose);
  opacity: .045;
  -webkit-mask: url('/assets/seasonal/halloween/bows-webs-pattern.svg') repeat;
  mask: url('/assets/seasonal/halloween/bows-webs-pattern.svg') repeat;
  -webkit-mask-size: 460px 460px; mask-size: 460px 460px;
}
body[data-season="halloween"][data-theme="dark"]::before { opacity: .055; }
.dh-seasonal-cutout { display: block; object-fit: contain; -webkit-user-drag: none; }
.dh-seasonal-preview-scene { display: grid; place-items: center; position: relative; isolation: isolate; height: 240px; max-width: 480px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); overflow: hidden; }
.dh-seasonal-preview-scene[data-season="halloween"]::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--rose); opacity: .055; -webkit-mask: url('/assets/seasonal/halloween/bows-webs-pattern.svg') repeat; mask: url('/assets/seasonal/halloween/bows-webs-pattern.svg') repeat; -webkit-mask-size: 260px 260px; mask-size: 260px 260px; }
.dh-seasonal-preview-card { width: 65%; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.dh-seasonal-preview-card span { font: 500 22px/1.3 var(--font-display); }
.dh-seasonal-preview-card i { display: block; height: 3px; margin-top: 12px; border-radius: 4px; background: var(--line); }
.dh-seasonal-preview-card i:last-child { width: 65%; }
.dh-seasonal-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 14px; margin-top: 16px; }
.dh-seasonal-gallery-item { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.dh-seasonal-gallery-item img { width: 100%; height: 116px; }
.dh-seasonal-gallery-item figcaption { margin-top: 10px; font: 400 12px/1.5 var(--font-body); }
.dh-seasonal-gallery-toggle > summary { cursor: pointer; min-height: 44px; padding-block: 10px; font: 600 14px/1.5 var(--font-body); color: var(--primary); }
@media (max-width: 760px) { body[data-season="halloween"]::before { -webkit-mask-size: 360px 360px; mask-size: 360px 360px; } }
.dh-seasonal-settings { position: relative; flex: none; }
@media(max-width:430px){
  .dh-seasonal-settings { display: flex; justify-content: flex-end; width: 100%; max-width: 100%; box-sizing: border-box; padding: 4px 12px; }
}
.dh-seasonal-toggle { display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 48px; min-height: 52px; padding: 4px 6px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; }
.dh-seasonal-toggle svg, .dh-seasonal-toggle img { width: 26px; height: 26px; object-fit: contain; }
.dh-seasonal-caption { font: 500 12px/1.2 var(--font-body); }
.dh-seasonal-toggle:hover, .dh-seasonal-toggle[aria-pressed="true"] { background: var(--rose-wash); color: var(--primary); }
.dh-seasonal-toggle[aria-pressed="true"] { border-color: var(--line); }
.dh-seasonal-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.dh-seasonal-error:empty { display: none; }
.dh-seasonal-error { color: var(--danger); font-size: 13px; }
.dh-seasonal-settings > .dh-seasonal-error:not(:empty) { position: absolute; z-index: 65; top: calc(100% + 8px); right: 0; width: min(240px, calc(100vw - 32px)); padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--danger); font: 400 13px/1.5 var(--font-body); box-shadow: var(--shadow-soft); }
.dh-seasonal-admin { display: grid; gap: 16px; margin: 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dh-seasonal-admin h3, .dh-seasonal-admin p { margin: 0; }
.dh-seasonal-admin .field { max-width: 360px; }
.dh-seasonal-admin .dh-seasonal-switch { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; font: 500 14px/1.5 var(--font-body); }
.dh-seasonal-admin .dh-seasonal-switch input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.dh-seasonal-preview { min-width: 0; }
@media (forced-colors: active) {
  .dh-seasonal-toggle { border-color: ButtonText; }
  .dh-seasonal-toggle[aria-pressed="true"] { outline: 2px solid Highlight; }
}

.dh-hunt-entry {
  position: absolute; left: 43%; top: auto; bottom: -6px; transform: translateX(-50%);
  display: inline-grid; place-items: center; width: 166px; height: 56px;
  padding: 0; border: 0; border-radius: 50%; outline-offset: 3px;
  box-shadow: none; background: transparent; color: var(--ink); cursor: pointer;
  font-family: var(--font-body); text-align: center; z-index: 2; overflow: visible;
}
.dh-hunt-entry:hover { background: transparent; }
.dh-hunt-entry--completed { width: 280px; height: 92px; bottom: -24px; }
.dh-hunt-entry-art { position: absolute; inset: 0; pointer-events: none; transition: filter .25s; }
.dh-hunt-entry-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dh-hunt-entry:is(:hover, :focus-visible) .dh-hunt-entry-art { filter: drop-shadow(0 2px 5px color-mix(in srgb, var(--primary) 22%, transparent)); }
.dh-hunt-entry-copy { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.dh-hunt-entry-copy strong { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dh-hunt-entry-progress:not(:empty) { position: absolute; bottom: 2px; right: -8px; padding: 1px 7px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); color: var(--primary); font: 600 12px/1.4 var(--font-body); white-space: nowrap; }
.dh-hunt-flight { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.dh-hunt-flying-bat { position: absolute; top: 35%; left: 50%; width: 30px; height: 25px; opacity: 0; pointer-events: none; }
.dh-hunt-flying-bat img { width: 100%; height: 100%; object-fit: contain; }
.dh-hunt-flying-bat:nth-child(1) { --fly-x: -104px; --fly-y: 30px; --fly-turn: -22deg; --fly-delay: 0s; left: 17%; }
.dh-hunt-flying-bat:nth-child(2) { --fly-x: 112px; --fly-y: 45px; --fly-turn: 24deg; --fly-delay: .15s; left: 73%; }
.dh-hunt-flying-bat:nth-child(3) { --fly-x: -136px; --fly-y: 78px; --fly-turn: -32deg; --fly-delay: .3s; left: 24%; }
.dh-hunt-flying-bat:nth-child(4) { --fly-x: 140px; --fly-y: 72px; --fly-turn: 30deg; --fly-delay: .42s; left: 67%; }
.dh-hunt-entry:is(:hover, :focus-visible) .dh-hunt-flying-bat { animation: dh-hunt-bat-flight 1.45s var(--fly-delay) cubic-bezier(.2, .6, .3, 1) both; }
.dh-hunt-entry:is(:hover, :focus-visible) .dh-hunt-flying-bat img { animation: dh-hunt-bat-flutter .19s var(--fly-delay) ease-in-out 10 alternate; }
@keyframes dh-hunt-bat-flight {
  0% { opacity: 0; transform: translate(0, 0) scale(.35); }
  16% { opacity: 1; }
  72% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--fly-x), var(--fly-y)) rotate(var(--fly-turn)) scale(.85); }
}
@keyframes dh-hunt-bat-flutter { from { transform: scaleY(.5) rotate(-5deg); } to { transform: scaleY(1) rotate(5deg); } }
.topbar:has(.dh-hunt-entry) .brand-caption { visibility: hidden; }
.dh-hunt-dialog {
  box-sizing: border-box; width: min(700px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--line-strong); border-radius: 22px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft);
  font: 400 15px/1.65 var(--font-body); overflow-y: auto; overscroll-behavior: contain;
}
.dh-hunt-dialog::backdrop { background: color-mix(in srgb, var(--bg) 30%, #160c16 70%); opacity: .65; }
.dh-hunt-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.dh-hunt-dialog-head h2 { margin: 4px 0 0; font: 500 clamp(26px, 5vw, 36px)/1.2 var(--font-display); }
.dh-hunt-kicker { margin: 0; color: var(--primary); font: 600 12px/1.5 var(--font-body); letter-spacing: .04em; }
.dh-hunt-text-button { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--primary); cursor: pointer; font: 600 14px/1.4 var(--font-body); }
body .dh-hunt-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; cursor: pointer; }
body .dh-hunt-close:hover { background: var(--surface2); border: 0; box-shadow: none; }
.dh-hunt-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.dh-hunt-dialog-body { padding: 24px 28px 28px; }
.dh-hunt-dialog.dh-hunt-welcome{width:min(520px,calc(100vw - 24px))}
.dh-hunt-welcome-features{padding-left:20px;margin:20px 0 26px;display:grid;gap:14px;font-size:14px;line-height:1.6;color:var(--muted)}
.dh-hunt-welcome-actions{display:flex;flex-wrap:wrap;gap:12px}
.dh-hunt-welcome-actions .dh-hunt-button{flex:1;min-height:44px;text-align:center;justify-content:center}
body .dh-hunt-dialog > .dh-hunt-tabs { display: flex; gap: 24px; width: auto; margin: 0 28px; padding: 8px 0 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
body .dh-hunt-tabs > .dh-hunt-tab { flex: none; min-height: 44px; padding: 10px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; box-shadow: none; color: var(--muted); font: 500 14px/1.4 var(--font-body); cursor: pointer; }
body .dh-hunt-tabs > .dh-hunt-tab[aria-selected="true"] { border-bottom-color: var(--primary); background: transparent; color: var(--primary); font-weight: 600; }
body .dh-hunt-tabs > .dh-hunt-tab:hover { background: transparent; color: var(--primary); }
.dh-hunt-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; border-radius: 8px 8px 0 0; }
.dh-hunt-tab-panel[hidden] { display: none !important; }
.dh-hunt-tab-panel:focus-visible { outline: 2px solid var(--primary); outline-offset: 5px; border-radius: 8px; }
.dh-hunt-celebration { position: relative; padding: 24px 24px 28px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 20px; text-align: center; background: radial-gradient(ellipse at 50% 20%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 70%), var(--bg); }
.dh-hunt-celebration-art { position: relative; width: 220px; height: 122px; max-width: 100%; margin: 0 auto 12px; }
.dh-hunt-celebration-art img { position: absolute; object-fit: contain; filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--primary) 16%, transparent)); }
.dh-hunt-celebration-art img:nth-child(1) { width: 48px; height: 38px; top: 14px; left: 6px; transform: rotate(-12deg); }
.dh-hunt-celebration-art img:nth-child(2) { width: 108px; height: 118px; top: 0; left: calc(50% - 54px); animation: dh-hunt-ghost-arrive 1s ease-out both; }
.dh-hunt-celebration-art img:nth-child(3) { width: 38px; height: 60px; bottom: 4px; right: 8px; }
.dh-hunt-completion-seal { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--primary); background: var(--surface); font: 600 12px/1.4 var(--font-body); }
.dh-hunt-celebration h3 { max-width: 460px; margin: 16px auto 12px; font: 500 clamp(26px, 5vw, 34px)/1.2 var(--font-display); }
.dh-hunt-celebration p { max-width: 440px; margin: 0 auto 22px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.dh-hunt-rewards-title { margin: 0 0 16px; font: 600 17px/1.4 var(--font-body); }
.dh-hunt-prize > .dh-hunt-button { margin-top: 18px; width: 100%; }
.dh-hunt-prize > p { flex: 1; }
.dh-hunt-collected-label { display: block; margin-top: 18px; padding: 8px 12px; border-radius: 99px; color: var(--primary); background: var(--surface2); font: 600 13px/1.5 var(--font-body); }
.dh-hunt-prizes--reveal > .dh-hunt-prize { animation: dh-hunt-reward-reveal .55s ease-out both; }
.dh-hunt-prizes--reveal > .dh-hunt-prize:nth-child(2) { animation-delay: .14s; }
.dh-hunt-prize--collected { animation: dh-hunt-reward-collected .65s ease-out; }
@keyframes dh-hunt-ghost-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dh-hunt-reward-reveal { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dh-hunt-reward-collected { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 35%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.dh-hunt-intro { margin: 0 0 24px; color: var(--ink-soft); }
.dh-hunt-story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 0 0 24px; }
.dh-hunt-story-art { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 16px; }
.dh-hunt-story-copy { min-width: 0; }
@media(max-width:560px) { .dh-hunt-story { gap: 20px; } .dh-hunt-story-art { border-radius: 12px; } }
.dh-hunt-story h3 { margin: 0 0 12px; color: var(--ink); font: 500 27px/1.25 var(--font-display); }
.dh-hunt-story p { margin: 0 0 12px; color: var(--ink-soft); line-height: 1.75; }
.dh-hunt-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; width: 100%; }
.dh-hunt-actions:empty { display: none; }
.dh-hunt-progress-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.dh-hunt-progress-copy strong { font-size: 16px; }
.dh-hunt-progress-copy > span { font-size: 13px; color: var(--muted); }
.dh-hunt-progress { width: 100%; height: 10px; border: 0; border-radius: 99px; accent-color: var(--primary); background: var(--surface2); margin: 12px 0 24px; overflow: hidden; }
.dh-hunt-progress::-webkit-progress-bar { background: var(--surface2); border-radius: 99px; }
.dh-hunt-progress::-webkit-progress-value { background: var(--primary); border-radius: 99px; }
.dh-hunt-progress::-moz-progress-bar { background: var(--primary); border-radius: 99px; }
.dh-hunt-prizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.dh-hunt-prizes--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dh-hunt-prize { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); min-width: 0; }
.dh-hunt-prize h3 { font: 600 15px/1.4 var(--font-body); margin: 16px 0 8px; }
.dh-hunt-prize p { font-size: 13px; line-height: 1.6; margin: 0; color: var(--muted); }
.dh-hunt-trophy { display: grid; justify-items: center; align-content: end; height: 110px; width: 120px; max-width: 100%; color: var(--primary); }
.dh-hunt-trophy img { width: 86px; height: 78px; object-fit: contain; }
.dh-hunt-trophy > span { padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 4px 4px 9px 9px; background: var(--surface2); font: 600 12px/1.4 var(--font-body); }
.dh-hunt-reward-frame-preview { display: block; flex: none; width: 128px; height: 128px; max-width: 100%; margin: 0; border: 0; border-radius: 0; outline: 0; background: none; box-shadow: none; }
.dh-hunt-cover-preview { position: relative; display: grid; place-items: center; flex: none; width: 100%; max-width: 220px; height: 128px; border-radius: 12px; background: linear-gradient(180deg, var(--surface2) 60%, var(--surface) 60%); color: var(--muted); font: 500 12px/1.4 var(--font-body); }
.dh-hunt-cover-frame { position: absolute; inset: 0; box-sizing: border-box; border: 112px solid transparent; border-image-slice: 42% 12%; border-image-width: 112px 96px; border-image-repeat: repeat; pointer-events: none; z-index: 1; }
.dh-hunt-cover-preview > .dh-hunt-cover-frame { border-width: 35px 30px; border-image-width: 35px 30px; }
.dh-hunt-cover-host { position: relative; }
.dh-hunt-cover-frame--equipped { inset: auto; border-width: 112px 96px; border-image-width: 112px 96px; border-image-outset: 32px 24px; }
body .dh-hunt-cover-equipped { position: relative; }
body .dh-hunt-cover-equipped > .mp-intro { position: relative; z-index: 2; }
body .dh-hunt-cover-equipped .profile-cover-edit, body .dh-hunt-cover-equipped .profile-header-actions { z-index: 2; }
.dh-hunt-prize .dh-hunt-trophy { height: 128px; }
body .dh-hunt-frame-equipped,
body .member-avatar.dh-hunt-frame-equipped { outline: none; box-shadow: none; }
body .member-avatar.dh-hunt-frame-equipped::before,
body .member-avatar.dh-hunt-frame-equipped::after { content: none; }
body .dh-hunt-frame-equipped > .dh-hunt-profile-frame {
  position: absolute; left: -20.42%; top: -21.41%; width: 140.85%; height: 140.85%;
  max-width: none; max-height: none; clip-path: none; border: 0; border-radius: 0; background: none; object-fit: contain; object-position: center;
  z-index: 1; pointer-events: none;
}
body .avatar-frame.dh-hunt-frame-equipped > .dh-hunt-profile-frame { inset: 0; width: 100%; height: 100%; }
body .avatar-frame.dh-hunt-frame-equipped > .avatar-ornament { visibility: hidden; }
body .avatar-frame.dh-hunt-frame-equipped > .avatar-photo,
body .avatar-frame.dh-hunt-frame-equipped.avatar-frame--free > .avatar-photo { border: 0; box-shadow: none; }
.dh-hunt-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 18px; border: 1px solid var(--primary); border-radius: 11px; background: var(--primary); color: var(--primary-ink); text-decoration: none; cursor: pointer; font: 600 14px/1.4 var(--font-body); }
.dh-hunt-button:hover { background: var(--metal-hover); border-color: var(--metal-hover); }
.dh-hunt-text-button { margin-left: 8px; }
.dh-hunt-feedback { color: var(--danger); font-size: 14px; }
.dh-hunt-feedback:empty { display: none; }
.dh-hunt-profile-rewards { padding: 0; border: 0; background: transparent; margin: 0; }
.dh-hunt-profile-rewards h3 { font: 600 16px/1.4 var(--font-body); margin: 0; }
.dh-hunt-reward-group+.dh-hunt-reward-group { margin-top:24px;padding-top:24px;border-top:1px solid var(--line); }
.dh-hunt-reward-options { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:480px;margin-top:18px; }
body .dh-hunt-reward-choice { display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;min-width:0;padding:8px;border:0;border-radius:12px;background:transparent;color:var(--ink);box-shadow:none;cursor:pointer;font:inherit; }
body .dh-hunt-reward-choice:hover { background:var(--surface2); }
body .dh-hunt-reward-choice:focus-visible { outline:2px solid var(--primary);outline-offset:3px; }
body .dh-hunt-reward-choice>.dh-hunt-reward-frame-preview { width:96px;height:96px;margin-bottom:8px; }
body .dh-hunt-reward-choice>.dh-hunt-cover-preview { width:164px;max-width:100%;height:96px;margin-bottom:8px; }
.dh-hunt-reward-choice>strong { font-size:13px;font-weight:600;line-height:1.5; }
.dh-hunt-choice-edition { font-size:11px;color:var(--muted); }
.dh-hunt-choice-status { display:block;margin-top:5px;padding:5px 12px;border:1px solid var(--line);border-radius:20px;color:var(--muted);font-size:11px; }
.dh-hunt-reward-choice[aria-pressed=true] .dh-hunt-choice-status { border-color:var(--primary);background:var(--surface2);color:var(--primary);font-weight:600; }
@media(max-width:400px){.dh-hunt-reward-options{gap:12px}.dh-hunt-reward-choice{padding:4px}}
.dh-hunt-reward-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 18px; }
.dh-hunt-collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.dh-hunt-collection-item { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; text-align: center; font-size: 12px; line-height: 1.5; }
.dh-hunt-collection-item img, .dh-hunt-unknown { width: 56px; height: 56px; object-fit: contain; }
.dh-hunt-unknown {
  display: block; background: var(--muted); opacity: .8;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.dh-hunt-note { margin: 18px 0 0; font-size: 13px; color: var(--muted); line-height: 1.65; }
.dh-hunt-anchor, .dh-hunt-scene, .dh-hunt-region { position: relative; }
.dh-hunt-competition-trail{display:flex;align-items:flex-end;justify-content:flex-start;gap:48px;margin:32px 0 24px;padding:0 24px;min-height:100px}.dh-hunt-competition-trail>[data-hunt-slot],.dh-hunt-competition-trail>[data-seasonal-accent]{position:relative!important;inset:auto!important;transform:none!important;margin:0!important;flex:none}
.dh-hunt-region > .dh-hunt-slot--directory-top { position: absolute; right: 20px; top: 0; transform: translateY(calc(-100% - 12px)); z-index: 3; }
.dh-hunt-region > .dh-hunt-slot--directory-bottom { position: absolute; left: 20px; bottom: 0; transform: translateY(calc(100% + 12px)); z-index: 3; }
.dh-hunt-slot { --dh-art-factor: 1; display: flex; align-items: center; flex: 0 0 auto; width: max(44px, calc(var(--dh-art-width, 44px) * var(--dh-art-factor))); min-height: max(44px, calc(var(--dh-art-height, 44px) * var(--dh-art-factor))); box-sizing: border-box; padding: 0; }
.dh-hunt-anchor > .dh-hunt-slot { position: absolute; right: 12px; bottom: calc(100% + 6px); margin: 0; }
.dh-home-heading.dh-hunt-anchor > .dh-hunt-slot, .home-slide-heading.dh-hunt-anchor > .dh-hunt-slot { bottom: 0; right: 20px; }
.dh-hunt-slot--flow { position: absolute; right: 16px; top: 8px; margin: 0; }
.dh-hunt-slot--flow-bottom { top: auto; right: auto; left: 16px; bottom: 8px; }
.dh-hunt-slot--flow > .dh-hunt-character { width: max(44px, calc(var(--dh-art-width, 44px) * var(--dh-art-factor))); }
.dh-hunt-slot--start { justify-content: flex-start; }
.dh-hunt-slot--end { justify-content: flex-end; }
.dh-hunt-box { position: relative; }
body .dh-hunt-box { overflow: visible; }
.dh-hunt-box > .dh-hunt-slot--perched { position: absolute; top: 0; right: 20px; transform: translateY(calc(-100% + 4px)); z-index: 3; margin: 0; justify-content: flex-end; }
.dh-hunt-character { display: grid; place-items: center; width: 100%; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.dh-hunt-character img, .dh-seasonal-page-accent > img { display: block; width: calc(var(--dh-art-width, 44px) * var(--dh-art-factor)); height: calc(var(--dh-art-height, 44px) * var(--dh-art-factor)); object-fit: contain; transition: transform .18s; }
.dh-seasonal-page-accent { pointer-events: none; }
.dh-hunt-slot[data-motion="float"] img { animation: dh-hunt-character-float 4s ease-in-out 1; }
.dh-hunt-slot[data-motion="glow"] img { animation: dh-hunt-character-glow 3.6s ease-in-out 1; }
@keyframes dh-hunt-character-float { 0%, 100% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-5px) rotate(-1deg); } 70% { transform: translateY(-2px) rotate(.7deg); } }
@keyframes dh-hunt-character-glow { 0%, 100% { opacity: 1; } 35% { opacity: .88; } 70% { opacity: .98; } }
.dh-hunt-character,
.dh-hunt-character:hover,
.dh-hunt-character:active { background: transparent; border-color: transparent; box-shadow: none; }
.dh-hunt-character img { filter: drop-shadow(0 3px 3px rgb(112 51 75 / 20%)); }
.dh-hunt-character:hover img { transform: translateY(-3px); filter: drop-shadow(0 5px 4px rgb(112 51 75 / 28%)); }
body[data-theme=dark] .dh-hunt-character img { filter: drop-shadow(0 3px 4px rgb(0 0 0 / 40%)); }
body[data-theme=dark] .dh-hunt-character:hover img { filter: drop-shadow(0 5px 5px rgb(0 0 0 / 52%)); }
.dh-hunt-character:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.dh-hunt-announcement:empty { display: none; }
.dh-hunt-announcement:not(:empty) { position: fixed; z-index: 100; right: 24px; bottom: 88px; display: flex; align-items: center; gap: 14px; box-sizing: border-box; width: 320px; max-width: calc(100vw - 32px); padding: 18px 48px 18px 18px; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 36px color-mix(in srgb, var(--primary) 15%, transparent); background: linear-gradient(120deg, var(--surface), var(--surface2)); color: var(--ink); font: 400 14px/1.5 var(--font-body); animation: dh-hunt-notice-in .22s ease-out; }
.dh-hunt-notice-art { display: block; flex: none; width: 58px; height: 68px; object-fit: contain; filter: drop-shadow(0 3px 4px color-mix(in srgb, var(--primary) 18%, transparent)); }
.dh-hunt-notice-copy { flex: 1; display: grid; gap: 3px; min-width: 0; }
.dh-hunt-notice-label { color: var(--primary); font-size: 12px; font-weight: 600; }
.dh-hunt-notice-copy strong { font-size: 16px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.dh-hunt-notice-count { color: var(--muted); font-size: 13px; }
.dh-hunt-notice-progress { display: block; width: 100%; height: 5px; margin-top: 6px; border: 0; border-radius: 8px; overflow: hidden; background: var(--line); accent-color: var(--primary); }
.dh-hunt-notice-progress::-webkit-progress-bar { background: var(--line); }
.dh-hunt-notice-progress::-webkit-progress-value { background: var(--primary); border-radius: 8px; }
.dh-hunt-notice-progress::-moz-progress-bar { background: var(--primary); border-radius: 8px; }
.dh-hunt-notice-message { margin: 0; }
.dh-hunt-notice-dismiss { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: 400 23px/1 var(--font-body); cursor: pointer; }
.dh-hunt-notice-dismiss:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, transparent); }
.dh-hunt-notice-dismiss:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; }
:is(.dh-hunt-close, .dh-hunt-notice-dismiss) > .dh-custom-icon { display: inline-flex; width: 20px; height: 20px; pointer-events: none; }
:is(.dh-hunt-close, .dh-hunt-notice-dismiss) .dh-custom-icon img { width: 100%; height: 100%; object-fit: contain; }
:is(.dh-hunt-close, .dh-hunt-notice-dismiss) .dh-icon-dark, body[data-theme=dark] :is(.dh-hunt-close, .dh-hunt-notice-dismiss) .dh-icon-light { display: none; }
body[data-theme=dark] :is(.dh-hunt-close, .dh-hunt-notice-dismiss) .dh-icon-dark { display: block; }
@keyframes dh-hunt-notice-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 761px) and (max-width: 1100px) {
  .dh-hunt-entry { left: 29%; width: 148px; height: 50px; }
  .dh-hunt-entry--completed { width: 228px; height: 76px; bottom: -8px; }
}
@media (max-width: 760px) {
  .dh-hunt-cover-frame--equipped { border-width: 56px 48px; border-image-width: 56px 48px; border-image-outset: 16px 12px; }
  .dh-hunt-announcement:not(:empty) { right: 16px; bottom: max(88px, calc(env(safe-area-inset-bottom) + 76px)); }
  .dh-hunt-slot { --dh-art-factor: .8; }
  .dh-hunt-box > .dh-hunt-slot--perched { right: 14px; }
  .dh-hunt-entry { position: relative; left: auto; top: auto; bottom: auto; transform: none; display: grid; width: 166px; height: 56px; max-width: calc(100% - 40px); margin: 8px auto; }
  .dh-hunt-entry--completed { width: 264px; height: 88px; }
  .dh-hunt-dialog-head, .dh-hunt-dialog-body { padding: 20px; }
  body .dh-hunt-dialog > .dh-hunt-tabs { margin-inline: 20px; gap: 20px; }
  .dh-hunt-celebration { padding: 20px 16px; }
  .dh-hunt-collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .dh-hunt-prizes--three { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .dh-hunt-slot { --dh-art-factor: .72; }
  .dh-hunt-prizes { grid-template-columns: 1fr; }
  .dh-hunt-text-button { margin: 8px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dh-hunt-slot[data-motion] img { animation: none; }
  .dh-hunt-celebration-art img, .dh-hunt-prizes--reveal > .dh-hunt-prize, .dh-hunt-prize--collected { animation: none; }
  .dh-hunt-announcement:not(:empty) { animation: none; }
  .dh-hunt-character img, .dh-hunt-entry-art { transition: none; }
  .dh-hunt-character:hover img { transform: none; }
  .dh-hunt-entry:is(:hover, :focus-visible) .dh-hunt-flying-bat,
  .dh-hunt-entry:is(:hover, :focus-visible) .dh-hunt-flying-bat img { animation: none; }
}
@media (forced-colors: active) { .dh-hunt-entry, .dh-hunt-character { border-color: ButtonText; } }
@media (forced-colors: active) { .dh-hunt-unknown { background: CanvasText; opacity: 1; forced-color-adjust: none; } }

body[data-season=christmas][data-theme=dark] .chat-room-header::after { background-image: url('/assets/seasonal/christmas/dark/bell.png'); }
body[data-season=christmas][data-theme=dark] .chat-welcome::before { background-image: url('/assets/seasonal/christmas/dark/reindeer.png'); }
body .member-avatar.dh-christmas-frame-equipped::before,
body .member-avatar.dh-christmas-frame-equipped::after { content: none; }
body .member-avatar.dh-christmas-frame-equipped > .dh-christmas-profile-frame { left: -21%; top: -21%; right: auto; bottom: auto; max-width: none; max-height: none; clip-path: none; object-position: center; }
body .avatar-frame.dh-christmas-frame-equipped > .avatar-ornament { visibility: hidden; }
body .avatar-frame.dh-christmas-frame-equipped > .avatar-photo { border: 0; box-shadow: none; }
body .avatar-frame.dh-christmas-frame-equipped > .dh-christmas-profile-frame { inset: 0; width: 100% !important; height: 100% !important; }
.dh-christmas-profile-rewards { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Fixed Halloween keepsake: independent of the collectible hunt. */
.dh-halloween-corner{--resident-left:29%;--resident-top:3%;--resident-width:48%;--resident-height:49%;position:fixed;right:18px;bottom:84px;width:220px;height:220px;z-index:5;pointer-events:none}
body .dh-halloween-corner-trigger{display:block;position:relative;width:100%;height:100%;min-width:0;padding:0;border:0;border-radius:18px;background:transparent;box-shadow:none;cursor:pointer;pointer-events:auto;-webkit-tap-highlight-color:transparent}
body .dh-halloween-corner-trigger:hover,body .dh-halloween-corner-trigger:active{border:0;background:transparent;box-shadow:none}
.dh-halloween-corner-trigger:focus-visible{outline:2px solid var(--primary);outline-offset:4px}
.dh-halloween-corner-art{display:block;width:100%;height:100%;max-width:none;object-fit:contain;pointer-events:none;user-select:none;filter:drop-shadow(0 0 5px #e9b85e44);animation:dh-halloween-candlelight 3.8s ease-in-out infinite alternate;transform-origin:center bottom}
.dh-halloween-corner-surprise{position:absolute;inset:0;width:100%;height:100%;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s;pointer-events:none}
.dh-halloween-corner-ghost{display:block;width:100%;height:100%;object-fit:contain}
.dh-halloween-corner-greeting{position:absolute;bottom:calc(100% - var(--resident-top) - var(--resident-height) * .45 + 16px);left:calc(var(--resident-left) - var(--resident-width) * .7);transform:translateX(-50%);box-sizing:border-box;width:186px;padding:12px 15px;border:1px solid var(--line);border-radius:18px;color:var(--ink);background:var(--surface);box-shadow:var(--shadow-soft);text-align:center;font:500 13px/1.6 var(--font-body)}
.dh-halloween-corner-greeting::after{content:"";position:absolute;left:50%;bottom:-7px;width:12px;height:12px;transform:translateX(-50%) rotate(45deg);background:var(--surface);border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.dh-halloween-corner.is-greeting .dh-halloween-corner-surprise{opacity:1;visibility:visible}
.dh-halloween-corner.is-greeting .dh-halloween-corner-art{animation:dh-halloween-candlelight 1.2s ease-in-out infinite alternate}
.dh-halloween-corner.is-greeting .dh-halloween-corner-ghost{animation:dh-halloween-ghost-float 2.4s ease-in-out .4s infinite}
@keyframes dh-halloween-candlelight{from{filter:drop-shadow(0 0 4px #efbb4f33)}to{filter:drop-shadow(0 0 8px #efbb4f77)}}
@keyframes dh-halloween-ghost-float{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-8px) rotate(3deg)}}
@media(max-width:760px){.dh-halloween-corner{right:8px;bottom:94px;width:132px;height:132px}.dh-halloween-corner-greeting{width:160px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.dh-halloween-corner .dh-halloween-corner-art,.dh-halloween-corner.is-greeting .dh-halloween-corner-art,.dh-halloween-corner.is-greeting .dh-halloween-corner-ghost{animation:none}.dh-halloween-corner-surprise{transition:none;transform:none}}

/* The resident ghost is a separate layer of the very same diorama. */
.dh-halloween-resident{position:absolute;display:block;left:var(--resident-left);top:var(--resident-top);width:var(--resident-width);height:var(--resident-height);pointer-events:none;transform-origin:center;transition:transform .65s cubic-bezier(.2,.75,.2,1)}
body[data-theme=dark] .dh-halloween-corner{--resident-left:24%;--resident-top:25%;--resident-width:52%}
.dh-halloween-corner.is-greeting .dh-halloween-resident{transform:translate(-120%,35%) scale(.8)}
@media(prefers-reduced-motion:reduce){.dh-halloween-resident{transition:none}}

/* Long reading pages keep the seasonal scene in the footer, clear of the text. */
body:has(.competition-rules-grid) :is(.dh-halloween-corner,.dh-christmas-corner){position:relative;inset:auto;z-index:auto;margin:24px clamp(18px,3vw,46px) 100px auto;width:160px;height:180px;max-width:calc(100% - 40px)}

/* Keep equipped cover artwork attached to the doll card during hover movement. */
body .mp-doll>.dh-hunt-cover-frame--equipped{border-width:28px 24px;border-image-width:28px 24px;border-image-outset:10px 8px;z-index:2}
body .mp-doll>.dh-christmas-cover-frame--equipped{border-width:28px 36px;border-image-width:28px 36px;border-image-outset:10px 8px;z-index:2}

/* Dedicated panoramic Halloween scene; Christmas retains its existing composition. */
body .dh-home-carousel .dh-slide-stage[data-kind=halloween] { display: block; background: var(--surface); }
body .dh-home-carousel [data-kind=halloween] > .dh-halloween-banner-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: right center; pointer-events: none; }
body .dh-home-carousel [data-kind=halloween] .dh-slide-copy { width: 46%; height: 100%; box-sizing: border-box; padding: 32px 28px 56px 36px; background: linear-gradient(90deg,color-mix(in srgb,var(--surface) 35%,transparent),transparent); }
body .dh-home-carousel [data-kind=halloween] .dh-slide-copy h1 { font-size: clamp(28px,2.8vw,44px); line-height: 1.12; margin: 16px 0; }
body .dh-home-carousel [data-kind=halloween] .dh-slide-copy p { color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
body .dh-home-carousel [data-kind=halloween] .dh-halloween-caption { color: var(--ink-soft); }
@media(max-width:760px) {
 body .dh-home-carousel .dh-slide-stage[data-kind=halloween] { display: flex; flex-direction: column; height: auto; min-height: 560px; }
 body .dh-home-carousel [data-kind=halloween] > .dh-halloween-banner-art { position: relative; inset: auto; z-index: auto; order: -1; flex: 0 0 210px; height: 210px; object-position: right center; }
 body .dh-home-carousel [data-kind=halloween] .dh-slide-copy { width: 100%; height: auto; padding: 20px 24px 56px; overflow: visible; background: var(--surface); }
 body .dh-home-carousel [data-kind=halloween] .dh-slide-copy h1 { font-size: 30px; margin-top: 12px; }
}

/* The sidebar can make a desktop carousel as narrow as a tablet. */
body .dh-home-carousel { container-type: inline-size; }
@container (max-width: 1000px) {
 body .dh-home-carousel .dh-slide-stage[data-kind=halloween] { display: flex; flex-direction: column; height: auto; min-height: 0; }
 body .dh-home-carousel [data-kind=halloween] > .dh-halloween-banner-art { position: relative; inset: auto; z-index: auto; order: -1; width: 100%; flex: 0 0 auto; height: clamp(210px,35cqi,310px); object-position: right center; }
 body .dh-home-carousel [data-kind=halloween] .dh-slide-copy { width: 100%; height: auto; padding: 24px 32px 56px; overflow: visible; background: var(--surface); }
 body .dh-home-carousel [data-kind=halloween] .dh-slide-copy h1 { font-size: clamp(28px,4.2cqi,36px); max-width: 650px; }
 body .dh-home-carousel [data-kind=halloween] .dh-slide-copy p { max-width: 620px; }
}

body .dh-feature-layout:has([data-kind=halloween]) { grid-template-rows: auto; }
body .dh-feature-layout:has([data-kind=halloween]) > .dh-home-carousel { height: auto; }
