/* Migration additions only; approved styles/assets remain the visual authority. */
html{scrollbar-color:#91744e #100c18;scroll-padding-top:20px}
::selection{background:#b38c52;color:#090811}
.dr88-halloween-event{--wp--preset--font-size--normal:15px}
.event-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-block:1px solid #b58e4940;font-size:12px;color:var(--muted)}
.event-toolbar label{display:flex;gap:10px;align-items:center;white-space:nowrap}
.event-toolbar select{font:inherit;color:var(--gold);background:#1b1527;border:1px solid #a380455f;border-radius:6px;padding:8px}
#app-status:not(:empty){margin-block:16px;padding:12px 16px;background:#21162b;color:#f0d4a3;border:1px solid #a380455f;border-radius:8px}
#app-status.is-error{color:#ffcfcc;border-color:#9d5954}
.event-form{display:grid;gap:16px;margin-top:20px}
.event-form label{display:grid;gap:7px;color:var(--gold);font-size:13px}
.event-form input,.event-form textarea{font:inherit;color:var(--text);background:#0e0d18;border:1px solid #ffffff30;border-radius:8px;padding:12px;width:100%;min-height:48px;caret-color:var(--gold)}
.event-form textarea{min-height:90px;resize:vertical}
.event-form input:focus-visible,.event-form textarea:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.event-form .form-note{font-size:12px;color:var(--muted);margin:0}
.event-form .form-error{font-size:13px;color:#ffcfcc;margin:0}
.form-error:empty{display:none}
.event-account-actions{display:grid;gap:12px}
#dialog{max-height:90svh;overflow:auto}
.journey-heading>span{max-width:20ch}
.section>.journey{width:100%;margin-inline:0}
.journey-track>span{animation:none}
.journey.is-advancing .journey-track>span{animation:journey-arrive 850ms cubic-bezier(.16,1,.3,1) both}
.header>[data-action=identity]{max-width:260px;overflow-wrap:anywhere}
html[lang=zh-TW]{--font:'Microsoft JhengHei','PingFang TC','Noto Sans TC',sans-serif}
html[lang=zh-TW] :is(h1,h2,h3,.page-title,.eyebrow){font-family:'Noto Serif TC','PMingLiU','Songti TC',serif;letter-spacing:.06em}
html[lang=zh-TW] :is(.eyebrow,.gift-demo-label,.tier-rank){letter-spacing:.07em}
@media(max-width:767px){.event-toolbar{align-items:flex-start;font-size:10px;gap:8px}.event-toolbar>span{max-width:22ch}.event-toolbar label{gap:6px}.header>[data-action=identity]{max-width:150px;font-size:10px}.journey-heading>span{max-width:12ch}.event-form{gap:13px}}
@media(prefers-reduced-motion:reduce){.journey.is-advancing .journey-track>span{animation:none}}
@media(max-width:600px){.journey-heading h2{max-width:none;font-size:17px}.journey-heading{margin-bottom:16px}.journey-heading>span{max-width:11ch}}

/* Telegram assistant: circular Halloween seal and separate footer contact. */
.hw-assistant{position:fixed;right:max(20px,env(safe-area-inset-right));top:50%;bottom:auto;transform:translateY(-50%);z-index:80;width:62px;height:62px;display:grid;place-items:center;border:2px solid #ffd64c;border-radius:50%;background:radial-gradient(circle at 32% 25%,#8d49e3,#31125c 65%,#170c2f);color:#ffe46f!important;box-shadow:0 5px 22px #10051ecc,inset 0 0 0 4px #f7b84422,0 0 16px #ad59ed66;transition:transform .2s,box-shadow .2s;text-decoration:none!important}
.hw-assistant[hidden]{display:none}.hw-assistant-icon{position:relative;display:grid;place-items:center;width:42px;height:42px}.hw-assistant-icon>svg{width:29px;height:29px;filter:drop-shadow(0 2px 2px #090419)}
.hw-assistant-hat{position:absolute;right:-3px;top:-6px;color:#ffad38;font-size:17px;transform:rotate(15deg)}
.hw-assistant:before{content:'';position:absolute;width:18px;height:18px;top:2px;left:5px;background:linear-gradient(135deg,#ffb842,#b167ff);clip-path:polygon(12% 84%,38% 8%,67% 25%,52% 30%,88% 84%,100% 94%,0 94%);transform:rotate(-24deg)}
.hw-assistant:hover{box-shadow:0 8px 26px #10051ecc,0 0 22px #b66eff99}.hw-assistant:focus-visible{outline:3px solid #59ddff;outline-offset:4px}body:has(dialog[open]) .hw-assistant{visibility:hidden}
@media(max-width:600px){.hw-assistant{right:max(14px,env(safe-area-inset-right));width:56px;height:56px}}
@media(prefers-reduced-motion:reduce){.hw-assistant{transition:none}}

.issued-code-value{display:grid;justify-items:center;gap:3px;margin:12px auto 18px;padding:14px 24px;max-width:320px;border:1px solid #e3b95f;border-radius:16px;background:radial-gradient(ellipse at top,#634087,#211333 75%);box-shadow:0 0 28px #efc35124}.issued-code-value>span{font-size:12px;font-weight:800;letter-spacing:.12em;color:#f8dfa0}.issued-code-value>strong{font-size:clamp(40px,9vw,64px);line-height:1.1;color:#ffdf55;text-shadow:0 3px 0 #573218,0 0 24px #ffcd5b45}.treasure-ceremony:has(.issued-code-value) .opening-art{max-height:220px}

.hw-assistant{touch-action:none;cursor:grab}
.hw-assistant-label{position:absolute;right:calc(100% + 10px);top:50%;transform:translateY(-50%);white-space:nowrap;font-size:11px;font-weight:600;line-height:1.5;color:#eee4ff;padding:5px 8px;border-radius:6px;background:#190e32e8;text-shadow:0 1px 2px #080313;pointer-events:auto}

.hw-assistant.is-dragging{cursor:grabbing;transition:none}.hw-assistant.is-dragging *{pointer-events:none}.hw-assistant.label-right .hw-assistant-label{right:auto;left:calc(100% + 10px)}
.memory-card.is-pending{outline:2px solid var(--gold);outline-offset:2px;filter:brightness(1.15)}

/* Room entry: explain the quiz before creating its timed attempt. */
#dialog[data-variant="room-ready"]{max-width:540px;text-align:center}
.room-ready-charm{display:block;margin:0 auto 12px;object-fit:contain;filter:drop-shadow(0 0 18px #a865ff66)}
.room-ready-steps{list-style:none;counter-reset:ready;padding:0;margin:20px 0;text-align:left;display:grid;gap:12px}
.room-ready-steps li{counter-increment:ready;display:grid;grid-template-columns:32px 1fr;column-gap:12px;padding:12px;border:1px solid #945bcd66;border-radius:12px;background:#150d3066}
.room-ready-steps li::before{content:counter(ready);grid-row:1/3;align-self:center;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#ffdb3b;color:#211044;font-weight:800}
.room-ready-steps strong{font-size:14px;color:#ffde45}
.room-ready-steps span{font-size:14px;line-height:1.5;margin-top:3px}
.room-ready-note{font-size:13px;color:#d6c8ed}
.room-ready .button+.button{margin-top:10px}
@media(max-width:480px){
  #dialog[data-variant="room-ready"]{padding:22px 18px}
  #dialog[data-variant="room-ready"] h2{font-size:22px;margin-bottom:12px}
  .room-ready-charm{width:60px;height:60px;margin-bottom:8px}
  .room-ready-steps{margin:14px 0;gap:8px}
  .room-ready-steps li{padding:10px;column-gap:10px}
  .room-ready-steps strong,.room-ready-steps span{font-size:13px}
}
