.hx{--hx-ink:#f5f0e5;--hx-muted:#bfc7d2;--hx-gold:#e9c978;--hx-gold-dim:rgba(233,201,120,.15);--hx-line:rgba(233,201,120,.23);--hx-panel:#121d31;--hx-night:#09111f;max-width:1120px;margin:0 auto;padding:28px 18px 72px;color:var(--hx-ink);font-family:Vazirmatn,Vazir,Tahoma,sans-serif;-webkit-font-smoothing:antialiased}.hx *{box-sizing:border-box}.hx [hidden]{display:none!important}.hx h1,.hx h2,.hx p{margin-top:0}.hx h1,.hx h2{text-wrap:balance}.hx p{text-wrap:pretty}.hx-stage{animation:hx-arrive .38s cubic-bezier(.2,0,0,1) both}.hx-kicker,.hx-eyebrow{color:var(--hx-gold);font-size:.74rem;font-weight:800;letter-spacing:.06em}.hx-kicker{margin-bottom:10px}.hx-eyebrow{margin-bottom:7px}.hx-intro-hero{position:relative;overflow:hidden;min-height:370px;padding:56px clamp(24px,7vw,88px);border:1px solid var(--hx-line);border-radius:28px;background:radial-gradient(circle at 12% 14%,rgba(101,147,214,.32),transparent 26%),radial-gradient(circle at 86% 82%,rgba(233,201,120,.18),transparent 32%),linear-gradient(135deg,#16294b,#0b1729 62%,#10192a);box-shadow:0 28px 65px rgba(0,0,0,.24)}.hx-intro-hero:after{content:'✦  ·  ✧  ·  ✦';position:absolute;left:36px;bottom:28px;color:rgba(233,201,120,.56);font-size:1.5rem;letter-spacing:.18em}.hx-intro-hero h1{max-width:650px;margin-bottom:18px;font-size:clamp(2.35rem,6vw,4.75rem);line-height:1}.hx-lead{max-width:650px;color:#e5eaf1;font-size:clamp(1rem,2vw,1.2rem);line-height:2.05}.hx-intro-actions{margin-top:28px}.hx-button{display:inline-flex;min-height:46px;align-items:center;justify-content:center;gap:10px;padding:11px 18px;border:1px solid transparent;border-radius:12px;color:var(--hx-ink);font:inherit;font-weight:800;cursor:pointer;transition-property:transform,background-color,border-color,box-shadow;transition-duration:.18s;transition-timing-function:cubic-bezier(.2,0,0,1)}.hx-button:hover{transform:translateY(-2px)}.hx-button:active{transform:scale(.96)}.hx-button:focus-visible,.hx-subject-card:focus-visible,.hx-back:focus-visible{outline:3px solid rgba(233,201,120,.75);outline-offset:3px}.hx-button:disabled{opacity:.65;cursor:wait;transform:none}.hx-button--primary{background:linear-gradient(135deg,#e9c978,#c69c43);color:#172033;box-shadow:0 10px 25px rgba(0,0,0,.24)}.hx-button--quiet{background:rgba(255,255,255,.05);border-color:var(--hx-line)}
.hx-explain-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0 34px}.hx-explain-card{padding:24px 22px 23px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:linear-gradient(135deg,rgba(24,40,68,.88),rgba(13,23,40,.88));box-shadow:0 11px 25px rgba(0,0,0,.14)}.hx-explain-card__number{display:grid;width:31px;height:31px;place-items:center;margin-bottom:18px;border-radius:50%;background:var(--hx-gold-dim);color:var(--hx-gold);font-size:.84rem;font-weight:800}.hx-explain-card h2{margin-bottom:8px;font-size:1.02rem}.hx-explain-card p{margin-bottom:0;color:var(--hx-muted);line-height:1.9;font-size:.9rem}.hx-route{padding:27px;border:1px solid var(--hx-line);border-radius:22px;background:rgba(8,16,30,.52)}.hx-section-heading h2{margin-bottom:20px;font-size:clamp(1.25rem,3vw,1.65rem)}.hx-stops{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:0;margin:0;list-style:none}.hx-stop{display:flex;gap:10px;align-items:flex-start;min-width:0;padding:12px 8px;color:var(--hx-muted)}.hx-stop>span{display:grid;flex:0 0 28px;width:28px;height:28px;place-items:center;border:1px solid var(--hx-line);border-radius:50%;font-size:.75rem}.hx-stop strong,.hx-stop small{display:block}.hx-stop strong{margin-top:1px;color:var(--hx-ink);font-size:.84rem}.hx-stop small{margin-top:5px;line-height:1.55;font-size:.72rem}.hx-stop--current>span{background:var(--hx-gold);border-color:var(--hx-gold);color:#172033}
.hx-stage--picker,.hx-stage--result{max-width:1000px;margin:auto}.hx-stage-header{max-width:720px;margin:18px auto 30px;text-align:center}.hx-stage-header h1{margin-bottom:11px;font-size:clamp(1.85rem,4.5vw,3rem)}.hx-stage-header>p:last-child{margin-bottom:0;color:var(--hx-muted);line-height:1.9}.hx-subject-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.hx-subject-card{position:relative;display:block;width:100%;min-height:325px;overflow:hidden;padding:0;border:1px solid rgba(255,255,255,.12);border-radius:20px;background:var(--hx-panel);color:var(--hx-ink);cursor:pointer;text-align:right;box-shadow:0 15px 34px rgba(0,0,0,.2);transition-property:transform,border-color,box-shadow;transition-duration:.2s;transition-timing-function:cubic-bezier(.2,0,0,1)}.hx-subject-card:hover{transform:translateY(-4px);border-color:rgba(233,201,120,.8);box-shadow:0 24px 42px rgba(0,0,0,.3)}.hx-subject-card:active{transform:scale(.98)}.hx-subject-card.is-selected{border-color:var(--hx-gold);box-shadow:0 0 0 3px var(--hx-gold-dim),0 24px 42px rgba(0,0,0,.3)}.hx-subject-card img{width:100%;height:325px;object-fit:cover;outline:1px solid rgba(255,255,255,.1);transition:transform .38s cubic-bezier(.2,0,0,1)}.hx-subject-card:hover img{transform:scale(1.045)}.hx-subject-card__veil{position:absolute;inset:40% 0 0;background:linear-gradient(transparent,rgba(4,10,20,.93))}.hx-subject-card__copy{position:absolute;right:20px;bottom:19px;left:20px}.hx-subject-card__copy strong,.hx-subject-card__copy small{display:block}.hx-subject-card__copy strong{font-size:1.06rem}.hx-subject-card__copy small{margin-top:6px;color:#dae1ec;font-size:.78rem}.hx-selection-note,.hx-empty{margin:22px 0 0;color:var(--hx-muted);text-align:center}.hx-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;clip-path:inset(50%)}
.hx-stage--write{margin-top:16px}.hx-back{margin:0 0 16px;padding:7px 0;border:0;background:transparent;color:var(--hx-gold);font:inherit;font-weight:800;cursor:pointer}.hx-selected-subject{display:grid;grid-template-columns:minmax(240px,1.1fr) minmax(0,1fr);overflow:hidden;border:1px solid var(--hx-line);border-radius:22px;background:var(--hx-panel);box-shadow:0 18px 38px rgba(0,0,0,.22)}.hx-selected-subject img{width:100%;height:330px;object-fit:cover;outline:1px solid rgba(255,255,255,.1)}.hx-selected-subject>div{align-self:center;padding:32px}.hx-selected-subject h1{margin-bottom:12px;font-size:clamp(1.45rem,3.5vw,2.2rem)}.hx-selected-subject p:last-child{margin-bottom:0;color:var(--hx-muted);line-height:1.95}.hx-writing-guide{max-width:780px;margin:32px auto;padding:25px 28px;border-right:3px solid var(--hx-gold);border-radius:0 14px 14px 0;background:rgba(233,201,120,.08)}.hx-writing-guide h2{margin-bottom:10px;font-size:1.15rem}.hx-writing-guide ol{padding-right:20px;margin:0 0 12px;color:#dfe6f1;line-height:2}.hx-writing-guide p:last-child{margin-bottom:0;color:var(--hx-muted);line-height:1.85}.hx-writing-box{padding:24px;border:1px solid var(--hx-line);border-radius:20px;background:linear-gradient(145deg,rgba(24,40,68,.95),rgba(11,21,37,.95))}.hx-writing-box>label{display:block;margin-bottom:12px;font-weight:800}.hx-story-editor textarea{width:100%;min-height:280px;padding:15px;border:1px solid var(--hx-line);border-radius:12px;background:rgba(4,10,20,.38);color:var(--hx-ink);font:inherit;line-height:2;resize:vertical}.hx-story-editor .tox-tinymce{margin:0!important;overflow:hidden;border-radius:12px!important;border-color:var(--hx-line)!important;box-shadow:none!important}.hx-form-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px}.hx-form-footer>span{color:var(--hx-muted);font-size:.8rem;font-variant-numeric:tabular-nums}.hx-writing-box>p:last-child{margin:14px 0 0;color:var(--hx-muted);font-size:.78rem;line-height:1.75}
.hx-result-subject{display:grid;grid-template-columns:220px 1fr;overflow:hidden;margin:0 0 24px;border:1px solid var(--hx-line);border-radius:18px;background:var(--hx-panel)}.hx-result-subject img{width:100%;height:170px;object-fit:cover;outline:1px solid rgba(255,255,255,.1)}.hx-result-subject>div{align-self:center;padding:20px 24px}.hx-result-subject h2{margin-bottom:8px;font-size:1.15rem}.hx-result-subject p:last-child{margin-bottom:0;color:var(--hx-muted);line-height:1.8}.hx-post{overflow:hidden;border:1px solid rgba(255,255,255,.11);border-radius:18px;background:#101c31;box-shadow:0 16px 38px rgba(0,0,0,.18)}.hx-post__header{display:flex;align-items:center;gap:11px;padding:15px 18px;border-bottom:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.03)}.hx-post__avatar{display:grid;width:37px;height:37px;flex:0 0 37px;place-items:center;border-radius:50%;background:var(--hx-gold-dim);color:var(--hx-gold)}.hx-post__header strong,.hx-post__header small{display:block}.hx-post__header strong{font-size:.9rem}.hx-post__header small{margin-top:3px;color:var(--hx-muted);font-size:.72rem}.hx-post__tag{margin-right:auto;padding:5px 9px;border:1px solid var(--hx-line);border-radius:999px;color:var(--hx-gold);font-size:.7rem}.hx-post__body{min-height:160px;padding:25px;color:#e7ebf3;line-height:2.1;white-space:pre-wrap}.hx-guide-result{margin-top:18px;padding:23px;border:1px solid var(--hx-line);border-radius:18px;background:linear-gradient(135deg,rgba(36,52,82,.96),rgba(18,29,50,.96))}.hx-guide-result[data-decision="approved"]{border-color:rgba(111,194,151,.55)}.hx-guide-result[data-decision="needs_revision"]{border-color:rgba(233,201,120,.55)}.hx-guide-result>header{display:flex;gap:13px;align-items:center}.hx-guide-result__mark{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;border-radius:50%;background:var(--hx-gold-dim);color:var(--hx-gold);font-size:1.1rem}.hx-guide-result h2{margin-bottom:0;font-size:1.05rem}.hx-guide-result>p{margin:17px 0 0;color:#e2e8f2;line-height:1.9}.hx-feedback{display:grid;gap:13px;margin-top:17px}.hx-feedback>div{padding:13px 15px;border-radius:12px;background:rgba(4,10,20,.2)}.hx-feedback h3{margin:0 0 7px;color:var(--hx-gold);font-size:.84rem}.hx-feedback ul{margin:0;padding-right:18px;color:var(--hx-muted);font-size:.86rem;line-height:1.85}.hx-manual{margin:15px 0 0!important;padding:11px 13px;border-radius:10px;background:var(--hx-gold-dim);color:var(--hx-gold)!important}.hx-stage--result>.hx-button{margin-top:18px}
.hx-stage--wait{max-width:640px;margin:48px auto}.hx-wait-card{padding:44px clamp(24px,6vw,56px);border:1px solid var(--hx-line);border-radius:24px;background:linear-gradient(135deg,#16294b,#0b1729 62%,#10192a);box-shadow:0 28px 65px rgba(0,0,0,.24);text-align:center}.hx-wait-card__mark{display:inline-grid;width:52px;height:52px;place-items:center;margin-bottom:18px;border-radius:50%;background:var(--hx-gold-dim);color:var(--hx-gold);font-size:1.4rem}.hx-wait-card h1{margin-bottom:12px;font-size:clamp(1.4rem,3.5vw,1.9rem)}.hx-wait-card p{margin:6px 0 0;color:var(--hx-muted);line-height:1.95}
.hx-group-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:24px}.hx-group-grid__item{min-height:52px}
.hx-char-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:14px;max-width:900px;margin:0 auto 14px}.hx-char-search{flex:1 1 240px;padding:10px 16px;border:1px solid var(--hx-line);border-radius:14px;background:rgba(8,16,30,.52)}.hx-char-search input{width:100%;border:0;background:transparent;color:var(--hx-ink);font:inherit;outline:none}.hx-char-toolbar__field{display:flex;flex-direction:column;gap:5px;font-size:.76rem;color:var(--hx-muted)}.hx-char-toolbar__field select{min-height:42px;padding:8px 12px;border:1px solid var(--hx-line);border-radius:12px;background:rgba(8,16,30,.52);color:var(--hx-ink);font:inherit}.hx-char-count{max-width:900px;margin:0 auto 14px;color:var(--hx-muted);font-size:.8rem}
.hx-character-list{display:flex;flex-direction:column;gap:12px;max-width:900px;margin:0 auto}.hx-character-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:var(--hx-panel);box-shadow:0 10px 22px rgba(0,0,0,.16);transition:border-color .2s}.hx-character-row:hover{border-color:rgba(233,201,120,.55)}.hx-character-row--disabled{opacity:.55}.hx-character-row__main{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0}.hx-character-row__main strong{font-size:1rem}.hx-character-row__house{padding:3px 10px;border:1px solid var(--hx-line);border-radius:999px;color:var(--hx-gold);font-size:.72rem;font-weight:800}.hx-character-row__badge{padding:3px 10px;border-radius:999px;background:rgba(233,120,120,.16);color:#e78b8b;font-size:.72rem;font-weight:800}.hx-character-row__desc{flex-basis:100%;margin:2px 0 0;color:var(--hx-muted);font-size:.82rem;line-height:1.7}.hx-character-row .hx-button{flex:0 0 auto;white-space:nowrap}
.hx-field-list{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:16px 0;text-align:right}.hx-field-list dt{color:var(--hx-gold);font-size:.76rem;font-weight:800;white-space:nowrap}.hx-field-list dd{margin:0;color:#e2e8f2;font-size:.86rem;line-height:1.7}
.hx-char-preview{width:min(620px,calc(100vw - 28px))}.hx-char-preview__conflict{margin:0 0 14px!important;padding:10px 13px;border-radius:10px;background:rgba(233,120,120,.14);color:#e78b8b!important}
.hx-reservation-card{max-width:560px;margin:0 auto;padding:30px clamp(20px,5vw,36px);border:1px solid var(--hx-line);border-radius:20px;background:linear-gradient(145deg,rgba(24,40,68,.95),rgba(11,21,37,.95));text-align:center}.hx-reservation-card h2{margin-bottom:10px;font-size:1.3rem}.hx-reservation-card p{color:var(--hx-muted);line-height:1.85}.hx-reservation-card .hx-field-list{text-align:right}.hx-reservation-card__timer{margin:14px 0 22px;padding:9px 13px;border-radius:10px;background:var(--hx-gold-dim);color:var(--hx-gold)!important;font-variant-numeric:tabular-nums}.hx-reservation-card .hx-dialog__actions{justify-content:center}
.hx-dialog{width:min(850px,calc(100vw - 28px));max-height:calc(100vh - 28px);overflow:auto;padding:0;border:1px solid var(--hx-line);border-radius:20px;background:var(--hx-panel);color:var(--hx-ink);box-shadow:0 28px 90px rgba(0,0,0,.65)}.hx-dialog::backdrop{background:rgba(3,8,17,.78);backdrop-filter:blur(4px)}.hx-dialog>img{display:block;width:100%;max-height:57vh;object-fit:contain;background:#050b13;outline:1px solid rgba(255,255,255,.1)}.hx-dialog__body{padding:25px}.hx-dialog__body h2{margin-bottom:10px;font-size:1.4rem}.hx-dialog__body>p{color:var(--hx-muted);line-height:1.9}.hx-dialog__close{position:absolute;top:12px;left:12px;display:grid;width:40px;height:40px;place-items:center;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(5,10,19,.72);color:#fff;font-size:1.5rem;cursor:pointer}.hx-dialog__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.hx-dialog--confirm{width:min(550px,calc(100vw - 28px))}.hx-dialog--confirm .hx-dialog__body{padding:31px}
.hx-profile-layout{max-width:820px;margin:0 auto}.hx-profile-companion{display:flex;gap:16px;align-items:flex-start;padding:22px 24px;margin:0 0 28px;border:1px solid var(--hx-line);border-radius:18px;background:linear-gradient(135deg,rgba(24,40,68,.88),rgba(13,23,40,.88));box-shadow:0 11px 25px rgba(0,0,0,.14)}.hx-profile-companion__mark{display:grid;flex:0 0 44px;width:44px;height:44px;place-items:center;border-radius:50%;background:var(--hx-gold-dim);color:var(--hx-gold);font-size:1.15rem}.hx-profile-companion__body{min-width:0;flex:1 1 auto}.hx-profile-companion h2{margin:0 0 10px;font-size:1.15rem}.hx-profile-companion .hx-field-list{margin:0;text-align:right}
.hx-profile-fields{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-bottom:22px}.hx-writing-box--full{grid-column:1/-1}.hx-writing-box__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.hx-writing-box__head label{font-weight:800}.hx-optional-tag{color:var(--hx-muted);font-weight:400;font-size:.78rem}.hx-field-count{color:var(--hx-muted);font-size:.76rem;font-variant-numeric:tabular-nums;white-space:nowrap;transition:color .18s}.hx-field-count.is-ready{color:#8fd9ab}.hx-field-desc{margin:0 0 10px;color:var(--hx-muted);font-size:.78rem;line-height:1.7}
.hx-profile-textarea{width:100%;min-height:88px;padding:14px 15px;border:1px solid var(--hx-line);border-radius:12px;background:rgba(4,10,20,.38);color:var(--hx-ink);font:inherit;line-height:1.9;resize:vertical;transition:border-color .18s,box-shadow .18s}.hx-profile-textarea:focus-visible{outline:none;border-color:var(--hx-gold);box-shadow:0 0 0 3px var(--hx-gold-dim)}.hx-writing-box--full .hx-profile-textarea{min-height:190px}.hx-profile-hint{margin:14px 0 0;color:var(--hx-muted);font-size:.78rem;line-height:1.75}
.hx-intro-actions{display:flex;flex-wrap:wrap;gap:12px}.hx-wait-card .hx-field-list{max-width:420px;margin:18px auto 0}
/* Image prompts can have any aspect ratio. Preserve the whole image, then keep title
   and action copy in their own stable area instead of cropping the subject itself. */
.hx-subject-card{display:grid;grid-template-rows:minmax(220px,1fr) auto;min-height:0;background:linear-gradient(145deg,#16253e,#0a1322)}
.hx-subject-card img{height:100%;min-height:220px;object-fit:contain;object-position:center;background:#060d18}
.hx-subject-card:hover img{transform:none}.hx-subject-card__veil{display:none}.hx-subject-card__copy{position:static;padding:17px 19px;background:linear-gradient(135deg,rgba(10,19,34,.98),rgba(20,35,58,.98))}
.hx-subject-switch{display:inline-flex;align-items:center;gap:10px;min-height:48px;margin:0 0 16px;padding:8px 13px;border:1px solid var(--hx-line);border-radius:14px;background:rgba(233,201,120,.08);color:var(--hx-ink);font:inherit;font-weight:800;cursor:pointer;text-align:right;transition:transform .18s,background-color .18s,border-color .18s}.hx-subject-switch:hover{border-color:var(--hx-gold);background:var(--hx-gold-dim);transform:translateY(-1px)}.hx-subject-switch:focus-visible{outline:3px solid rgba(233,201,120,.75);outline-offset:3px}.hx-subject-switch>span:first-child{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;background:var(--hx-gold);color:#162033;font-size:1.1rem}.hx-subject-switch small{display:block;margin-bottom:1px;color:var(--hx-muted);font-size:.7rem;font-weight:400}
.hx-selected-subject img,.hx-result-subject img{object-fit:contain;object-position:center;background:#060d18}
.hx-writing-guide--full{max-width:none}.hx-writing-guide__editable{max-width:900px;color:#dfe6f1;line-height:2;white-space:normal}
/* XOOPS's DHTML fallback renders an old preview/upload panel after its textarea. It
   has no place in this focused writing flow; the editor toolbar remains available. */
.hx-story-editor #story_hidden,.hx-story-editor #profile_free_text_hidden{display:none!important}
.hx .dc-editor-trigger{display:none!important}
.hx-guide-result--outcome{margin:0 0 24px}.hx-guide-result--outcome>header{align-items:flex-start}.hx-guide-result--outcome h1{margin:0;font-size:clamp(1.35rem,3vw,2rem);line-height:1.35}.hx-guide-result__mark svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.hx-guide-result[data-decision="approved"] .hx-guide-result__mark{background:rgba(111,194,151,.17);color:#9be1b5}.hx-guide-result[data-decision="needs_revision"] .hx-guide-result__mark{background:rgba(233,201,120,.16);color:#f1d88e}.hx-guide-result[data-decision="manual_review"] .hx-guide-result__mark{background:rgba(130,166,219,.17);color:#bbd2ff}.hx-outcome-label{margin-right:auto;padding:7px 10px;border:1px solid currentColor;border-radius:999px;color:var(--hx-gold);font-size:.72rem;font-weight:800;white-space:nowrap}.hx-guide-result[data-decision="approved"] .hx-outcome-label{color:#9be1b5}.hx-guide-result[data-decision="manual_review"] .hx-outcome-label{color:#bbd2ff}.hx-result-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.hx-result-actions [hidden]{display:none!important}
.hx-profile-locked{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}.hx-profile-locked>div{padding:13px 15px;border:1px solid var(--hx-line);border-radius:13px;background:rgba(233,201,120,.07)}.hx-profile-locked span,.hx-profile-locked strong{display:block}.hx-profile-locked span{margin-bottom:5px;color:var(--hx-muted);font-size:.75rem}.hx-profile-locked strong{color:var(--hx-gold);font-size:.95rem}.hx-profile-mode{display:flex;gap:8px;margin:22px 0 18px;padding:5px;border:1px solid var(--hx-line);border-radius:14px;background:rgba(4,10,20,.28)}.hx-profile-mode__button{min-height:42px;flex:1;padding:8px 12px;border:0;border-radius:10px;background:transparent;color:var(--hx-muted);font:inherit;font-weight:700;cursor:pointer;transition:background-color .18s,color .18s}.hx-profile-mode__button.is-active{background:var(--hx-gold);color:#172033}.hx-profile-mode__button:focus-visible{outline:3px solid rgba(233,201,120,.75);outline-offset:2px}.hx-profile-free{margin-top:18px}
@media(max-width:760px){.hx-subject-card img{min-height:220px;height:220px}.hx-subject-switch{width:100%;justify-content:flex-start}.hx-profile-locked{grid-template-columns:1fr}.hx-result-actions .hx-button{width:100%}.hx-outcome-label{margin-right:0;margin-top:8px}.hx-guide-result--outcome>header{flex-wrap:wrap}}
@keyframes hx-arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media(max-width:760px){.hx{padding:18px 12px 52px}.hx-intro-hero{min-height:0;padding:38px 25px 72px;border-radius:20px}.hx-intro-hero:after{left:22px;bottom:22px}.hx-explain-grid,.hx-stops,.hx-subject-grid{grid-template-columns:1fr}.hx-route{padding:20px}.hx-subject-grid{gap:16px}.hx-subject-card,.hx-subject-card img{min-height:275px;height:275px}.hx-selected-subject,.hx-result-subject{grid-template-columns:1fr}.hx-selected-subject img{height:270px}.hx-selected-subject>div,.hx-result-subject>div{padding:21px}.hx-result-subject img{height:220px}.hx-writing-box{padding:17px}.hx-form-footer{align-items:stretch;flex-direction:column}.hx-form-footer .hx-button{width:100%}.hx-post__tag{display:none}.hx-dialog__body{padding:21px}.hx-character-row{flex-direction:column;align-items:stretch}.hx-character-row .hx-button{width:100%}.hx-char-toolbar{flex-direction:column;align-items:stretch}.hx-profile-fields{grid-template-columns:1fr}.hx-profile-companion{flex-direction:column;align-items:stretch}.hx-intro-actions{flex-direction:column}.hx-intro-actions .hx-button{width:100%}}

/* ---- mobile QA pass (2026-10-05) ---- */
/* Link-styled buttons: the theme's global `a` colour beat the button colours (gold text on the gold button). */
.hx a.hx-button{text-decoration:none}
.hx a.hx-button--primary,.hx a.hx-button--primary:hover,.hx a.hx-button--primary:focus{color:#172033}
.hx a.hx-button--quiet,.hx a.hx-button--quiet:hover{color:var(--hx-ink)}
/* Search field: a real 44px+ target; 16px text stops iOS from zooming on focus. */
.hx-char-search{display:flex;align-items:center;min-height:46px;padding:0 16px}
.hx-char-search input{min-height:44px;font-size:16px}
.hx-char-search input::placeholder{color:var(--hx-muted);opacity:.85}
/* Dialogs: dvh so mobile browser chrome can't hide the bottom; the actions stay reachable while the body scrolls. */
.hx-dialog{max-height:calc(100dvh - 28px);overscroll-behavior:contain}
.hx-dialog .hx-dialog__actions{position:sticky;bottom:-25px;z-index:1;margin:20px -25px -25px;padding:14px 25px 18px;background:linear-gradient(to top,var(--hx-panel) 72%,rgba(18,29,49,0));border-radius:0 0 20px 20px}
.hx-dialog--confirm .hx-dialog__actions{position:static;margin:20px 0 0;padding:0;background:none}
.hx-dialog__close{z-index:2}
/* Long catalogue details fold away so the next action stays near the top. */
.hx-details{margin:12px 0 0;border:1px solid var(--hx-line);border-radius:13px;background:rgba(255,255,255,.03)}
.hx-details>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:0 15px;color:var(--hx-gold);font-size:.85rem;font-weight:800;cursor:pointer;list-style:none}
.hx-details>summary::-webkit-details-marker{display:none}
.hx-details>summary:after{content:"";flex:none;width:8px;height:8px;margin-top:-4px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .18s cubic-bezier(.2,0,0,1)}
.hx-details[open]>summary:after{margin-top:4px;transform:rotate(-135deg)}
.hx-profile-companion__meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:0 0 4px}
.hx-profile-companion__meta span{color:var(--hx-muted);font-size:.78rem}
.hx-profile-companion__meta strong{color:var(--hx-gold);font-size:.95rem}
.hx-profile-companion__meta small{flex-basis:100%;color:var(--hx-muted);font-size:.74rem}
.hx-profile-companion__change{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:12px 0 4px}
.hx-profile-companion__change small{color:var(--hx-muted);font-size:.74rem}
.hx-details>.hx-field-list{margin:0;padding:4px 15px 15px}
.hx-wait-card .hx-details{max-width:460px;margin:18px auto 0;text-align:right}
.hx-inline-error{margin:10px 0 0!important;padding:10px 13px;border-radius:10px;background:rgba(233,120,120,.14);color:#f0a3a3!important;font-size:.85rem}
.hx-tabular{font-variant-numeric:tabular-nums}
@media(max-width:760px){
  /* subject card: let the title block size itself instead of being clipped by a fixed 275px card */
  .hx-subject-card{height:auto;min-height:0}
  .hx-subject-card img{height:220px;min-height:220px}
  /* filter bar: search on its own row, the three selects share one row */
  .hx-char-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px}
  .hx-char-search{grid-column:1/-1;flex:none}
  .hx-char-toolbar__field select{width:100%;min-height:44px;padding:8px;font-size:.85rem}
  .hx-dialog>img{max-height:34dvh}
  .hx-dialog__body{padding:21px}
  .hx-dialog .hx-dialog__actions{bottom:-21px;margin:18px -21px -21px;padding:12px 21px 16px}
  .hx-dialog .hx-dialog__actions .hx-button{flex:1 1 100%}
}
@media(max-width:560px){
  /* label above value: the two-column list left ~120px for long values */
  .hx-field-list{grid-template-columns:1fr;gap:0}
  .hx-field-list dt{margin-top:10px}
  .hx-field-list dt:first-child{margin-top:0}
}

/* ==== Redesign (2026-10-05): same night-and-gold identity; shared progress, clearer hierarchy ==== */
.hx{--hx-success:#8fd9ab;--hx-danger:#f0a3a3;--hx-r-md:14px;--hx-r-lg:20px}

/* Journey tracker: four stops, shown on every stage except the intro (which has its own route map). */
.hx-journey{max-width:760px;margin:4px auto 26px}
.hx[data-stage="intro"] .hx-journey{display:none}
.hx-journey__caption{margin:0 0 12px;color:var(--hx-muted);font-size:.78rem;text-align:center}
.hx-journey__steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:0;list-style:none}
.hx-journey__step{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;color:var(--hx-muted);text-align:center}
.hx-journey__step:before{content:"";position:absolute;top:15px;right:-50%;width:100%;height:2px;background:rgba(255,255,255,.1)}
.hx-journey__step:first-child:before{display:none}
.hx-journey__step.is-done:before,.hx-journey__step.is-current:before{background:linear-gradient(to left,var(--hx-gold),rgba(233,201,120,.45))}
.hx-journey__dot{position:relative;z-index:1;display:grid;width:32px;height:32px;place-items:center;border:2px solid rgba(255,255,255,.16);border-radius:50%;background:var(--hx-night);font-size:.8rem;font-weight:800}
.hx-journey__dot svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.hx-journey__step.is-done .hx-journey__dot{border-color:var(--hx-gold);background:var(--hx-gold);color:#172033}
.hx-journey__step.is-current .hx-journey__dot{border-color:var(--hx-gold);color:var(--hx-gold);box-shadow:0 0 0 5px var(--hx-gold-dim)}
.hx-journey__label{font-size:.76rem;font-weight:700;line-height:1.5}
.hx-journey__step.is-current .hx-journey__label{color:var(--hx-ink)}
.hx-journey__step.is-done .hx-journey__label{color:#d9cfae}

/* Meters (story words, profile sections) */
.hx-word-meter{display:grid;gap:7px;min-width:170px}
.hx-meter{display:block;height:6px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.09)}
.hx-meter>span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(to left,#e9c978,#c69c43);transition:width .25s cubic-bezier(.2,0,0,1),background-color .2s}
.hx-meter.is-ready>span{background:var(--hx-success)}

/* Writing stage: the subject is context, not the main act — keep it compact. */
.hx-selected-subject{grid-template-columns:260px minmax(0,1fr);border-radius:var(--hx-r-lg)}
.hx-selected-subject img{height:100%;min-height:200px}
.hx-selected-subject>div{padding:24px 26px}
.hx-selected-subject h1{margin-bottom:6px;font-size:clamp(1.2rem,2.6vw,1.6rem);line-height:1.45}
.hx-subject-details{margin-top:12px}
.hx-subject-details>p{margin:0;padding:2px 15px 15px;color:var(--hx-muted);font-size:.88rem;line-height:1.95}
.hx-writing-guide--full{margin:22px 0}


/* Character list: denser cards, two columns where there is room. */
.hx-character-list{max-width:1000px}
.hx-char-toolbar,.hx-char-count{max-width:1000px}
.hx-character-row{flex-direction:column;align-items:stretch;gap:12px;padding:16px 18px;border-radius:var(--hx-r-md)}
.hx-character-row__desc{display:-webkit-box;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.hx-character-row .hx-button{align-self:flex-start;min-height:44px;padding:9px 16px}
.hx-character-row--disabled .hx-button{border-style:dashed}
@media(min-width:761px){.hx-char-toolbar__field select{min-width:150px}}
@media(min-width:900px){.hx-character-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hx-character-row{justify-content:space-between}}

/* Profile form */
details.hx-writing-guide{padding:0;border-radius:var(--hx-r-md)}
details.hx-writing-guide>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:50px;padding:0 18px;font-weight:800;cursor:pointer;list-style:none}
details.hx-writing-guide>summary::-webkit-details-marker{display:none}
details.hx-writing-guide>summary:after{content:"";flex:none;width:8px;height:8px;margin-top:-4px;border-right:2px solid var(--hx-gold);border-bottom:2px solid var(--hx-gold);transform:rotate(45deg);transition:transform .18s cubic-bezier(.2,0,0,1)}
details.hx-writing-guide[open]>summary:after{margin-top:4px;transform:rotate(-135deg)}
details.hx-writing-guide>div{padding:0 18px 16px;color:#dfe6f1;font-size:.9rem;line-height:1.95}
.hx-profile-textarea[aria-invalid="true"]{border-color:#f08f8f;box-shadow:0 0 0 3px rgba(240,143,143,.3)}
.hx-profile-form>.hx-inline-error{margin:0 0 4px!important}

/* Final stage */
.hx-wait-card__mark--done{width:64px;height:64px;background:linear-gradient(135deg,#e9c978,#c69c43);color:#172033;box-shadow:0 0 0 8px var(--hx-gold-dim),0 14px 30px rgba(0,0,0,.3)}
.hx-wait-card__mark--done svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.hx-wait-card .hx-intro-actions{justify-content:center}
.hx-house-chip{display:inline-block;margin:2px 0 6px!important;padding:5px 14px;border:1px solid var(--hx-line);border-radius:999px;color:var(--hx-gold)!important;font-size:.82rem;font-weight:800}

@media(max-width:760px){
  .hx-journey{margin-bottom:20px}
  .hx-journey__label{font-size:.68rem}
  .hx-journey__step:not(.is-current) .hx-journey__label{color:var(--hx-muted)}
  .hx-selected-subject{grid-template-columns:96px minmax(0,1fr);align-items:start}
  .hx-selected-subject img{width:96px;height:96px;min-height:0;margin:14px 14px 0 0;border-radius:12px;object-fit:cover}
  .hx-selected-subject>div{padding:14px 16px 16px 14px}
  .hx-character-row .hx-button{align-self:stretch}
  .hx-word-meter{min-width:0}
}
@media(prefers-reduced-motion:reduce){
  .hx *,.hx *:before,.hx *:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .hx-reviewing__spinner{animation:hx-spin 1.6s linear infinite!important}
}

/* ==== Subject picker redesign (2026-10-05): poster grid, full image + structured brief in the dialog ==== */
.hx-stage--picker{max-width:1180px}
.hx-picker-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:16px 0 0!important}
.hx-picker-meta span{padding:6px 13px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(9,17,31,.5);color:var(--hx-muted);font-size:.78rem}
.hx-picker-meta span:first-child{border-color:var(--hx-line);background:var(--hx-gold-dim);color:var(--hx-gold);font-weight:800}
.hx-subject-grid{grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:18px}
.hx-subject{min-width:0}
.hx-subject .hx-subject-card{position:relative;display:block;width:100%;height:auto;min-height:0;aspect-ratio:4/5;padding:0;overflow:hidden;isolation:isolate;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:#0a1322;box-shadow:0 14px 30px rgba(0,0,0,.28);transition:transform .25s cubic-bezier(.2,0,0,1),border-color .25s,box-shadow .25s}
.hx-subject-card__media{position:absolute;inset:0;z-index:-1}
.hx-subject-card__media:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(5,10,20,.96) 0,rgba(5,10,20,.62) 34%,rgba(5,10,20,0) 62%)}
.hx-subject .hx-subject-card .hx-subject-card__media img{display:block;width:100%;height:100%;min-height:0;object-fit:cover;object-position:center 30%;background:#060d18;outline:0;transition:transform .6s cubic-bezier(.2,0,0,1)}
.hx-subject .hx-subject-card__copy{position:absolute;inset:auto 0 0;padding:16px 16px 15px;background:none;text-align:right}
.hx-subject .hx-subject-card__copy strong{display:-webkit-box;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:1rem;line-height:1.65;text-shadow:0 2px 12px rgba(0,0,0,.6)}
.hx-subject .hx-subject-card__copy small{display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:5px 11px;border:1px solid var(--hx-line);border-radius:999px;background:rgba(9,17,31,.65);color:var(--hx-gold);font-size:.72rem;font-weight:800;backdrop-filter:blur(6px)}
.hx-subject-card__copy small svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hx-subject .hx-subject-card:hover{transform:translateY(-4px);border-color:rgba(233,201,120,.7);box-shadow:0 22px 44px rgba(0,0,0,.4),0 0 0 1px rgba(233,201,120,.25)}
.hx-subject .hx-subject-card:hover .hx-subject-card__media img{transform:scale(1.06)}
.hx-subject .hx-subject-card:active{transform:scale(.98)}
.hx-subject .hx-subject-card.is-selected{border-color:var(--hx-gold);box-shadow:0 0 0 3px var(--hx-gold-dim),0 22px 44px rgba(0,0,0,.4)}

/* Subject description (dialog, writing stage, result) */
.hx-subject-text{display:grid;gap:10px}
.hx-subject-text p{margin:0;color:#dfe6f1;font-size:.9rem;line-height:1.95}
.hx-subject-details>.hx-subject-text{padding:2px 12px 12px}
.hx-result-subject .hx-subject-text{margin-top:6px}

/* Subject dialog: image beside the brief on wide screens */
@media(min-width:900px){
  .hx-dialog--subject{width:min(1000px,calc(100vw - 48px))}
  .hx-dialog--subject[open]{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
  .hx-dialog--subject>img{height:100%;max-height:none;min-height:460px;object-fit:contain}
  .hx-dialog--subject .hx-dialog__body{display:flex;flex-direction:column;padding:30px 28px 25px}
  .hx-dialog--subject .hx-dialog__body h2{font-size:1.45rem;line-height:1.5}
  .hx-dialog--subject .hx-dialog__actions{margin-top:auto;padding-top:18px}
}

@media(max-width:760px){
  .hx-subject-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .hx-subject .hx-subject-card{aspect-ratio:3/4;border-radius:14px}
  .hx-subject .hx-subject-card__copy{padding:10px 11px 11px}
  .hx-subject .hx-subject-card__copy strong{font-size:.84rem;line-height:1.6}
  .hx-subject .hx-subject-card__copy small{display:none}
  .hx-picker-meta span:last-child{display:none}
}
@media(max-width:760px){
  /* writing stage: thumbnail + title side by side, the brief spans the full card below them */
  .hx-selected-subject{grid-template-columns:96px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:14px;padding:14px}
  .hx-selected-subject>div{display:contents}
  .hx-selected-subject img{grid-column:1;grid-row:1/3;width:96px;height:96px;margin:0}
  .hx-selected-subject .hx-eyebrow{grid-column:2;grid-row:1;align-self:end;margin:0}
  .hx-selected-subject h1{grid-column:2;grid-row:2;align-self:start;margin:4px 0 0}
  .hx-selected-subject .hx-subject-details{grid-column:1/-1;grid-row:3;margin-top:14px}
}

/* AI's written analysis of the story (result stage) */
.hx-analysis{margin-top:16px;padding:15px 17px;border:1px solid var(--hx-line);border-radius:14px;background:rgba(233,201,120,.06)}
.hx-analysis h3{margin:0 0 8px;color:var(--hx-gold);font-size:.86rem}
.hx-analysis p{margin:0;color:#e6ebf3;font-size:.93rem;line-height:2.05}

/* Sorting Hat ceremony (waiting-for-sorting stage). */
.hx-sorting{max-width:760px;margin:0 auto}
.hx-sorting__hall{position:relative;padding:26px clamp(18px,5vw,40px) 30px;border:1px solid var(--hx-line);border-radius:26px;background:radial-gradient(circle at 50% 0,rgba(233,201,120,.16),transparent 46%),linear-gradient(160deg,#16294b,#0b1729 60%,#0d1626);box-shadow:0 28px 65px rgba(0,0,0,.26)}
.hx-sorting__hat{display:grid;place-items:center;margin:0 auto 6px;width:clamp(150px,34vw,210px);aspect-ratio:1}
.hx-sorting__hat img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 24px rgba(0,0,0,.45));transition:transform .4s cubic-bezier(.2,0,0,1)}
.hx-sorting__hat.is-thinking img{animation:hx-hat-sway 2.4s ease-in-out infinite}
.hx-sorting__hat.is-speaking img{transform:translateY(-3px)}
@keyframes hx-hat-sway{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}
.hx-sorting__start{max-width:520px;margin:0 auto;text-align:center}
.hx-sorting__start-lead{color:var(--hx-muted);line-height:1.9}
.hx-sorting__fields{display:grid;grid-template-columns:1fr 110px;gap:12px;margin:18px 0;text-align:right}
.hx-sorting__field{display:grid;gap:6px;min-width:0;margin:0;padding:0;border:0;font-size:.84rem;color:var(--hx-muted)}
.hx-sorting__field input[type=text],.hx-sorting__field input[type=number]{width:100%;min-height:46px;padding:10px 13px;border:1px solid var(--hx-line);border-radius:12px;background:rgba(4,10,20,.4);color:var(--hx-ink);font:inherit;font-size:1rem}
.hx-sorting__field input:focus-visible,.hx-sorting__reply textarea:focus-visible{outline:3px solid rgba(233,201,120,.55);outline-offset:1px}
.hx-sorting__sex{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.hx-sorting__sex legend{float:right;margin-left:6px;padding:0}
.hx-sorting__sex label{position:relative;cursor:pointer}
.hx-sorting__sex input{position:absolute;opacity:0;pointer-events:none}
.hx-sorting__sex span{display:inline-flex;min-height:38px;align-items:center;padding:6px 16px;border:1px solid var(--hx-line);border-radius:999px;color:var(--hx-ink);transition:background-color .18s,border-color .18s}
.hx-sorting__sex input:checked+span{background:var(--hx-gold-dim);border-color:var(--hx-gold);color:var(--hx-gold);font-weight:800}
.hx-sorting__sex input:focus-visible+span{outline:3px solid rgba(233,201,120,.55);outline-offset:2px}
.hx-sorting__error{margin:0 0 14px;color:#f2a58f;font-size:.86rem}
.hx-sorting__log{display:grid;gap:12px;max-height:min(56vh,520px);overflow-y:auto;margin:0 0 14px;padding:4px 2px;list-style:none;overscroll-behavior:contain}
.hx-sorting__line{max-width:88%;padding:12px 16px 13px;border-radius:16px;animation:hx-arrive .3s cubic-bezier(.2,0,0,1) both}
.hx-sorting__line p{margin:0;line-height:2;white-space:pre-wrap}
.hx-sorting__who{display:block;margin-bottom:3px;font-size:.7rem;font-weight:800;letter-spacing:.04em}
.hx-sorting__line--hat{justify-self:start;border:1px solid var(--hx-line);border-top-right-radius:4px;background:rgba(233,201,120,.08)}
.hx-sorting__line--hat .hx-sorting__who{color:var(--hx-gold)}
.hx-sorting__line--student{justify-self:end;border-top-left-radius:4px;background:rgba(255,255,255,.07)}
.hx-sorting__line--student .hx-sorting__who{color:var(--hx-muted)}
.hx-sorting__thinking{display:flex;align-items:center;gap:5px;margin:0 0 12px;color:var(--hx-muted);font-size:.84rem}
.hx-sorting__thinking span{width:6px;height:6px;border-radius:50%;background:var(--hx-gold);animation:hx-dot 1.2s ease-in-out infinite}
.hx-sorting__thinking span:nth-child(2){animation-delay:.15s}.hx-sorting__thinking span:nth-child(3){animation-delay:.3s;margin-left:6px}
@keyframes hx-dot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.hx-sorting__reply{display:grid;grid-template-columns:1fr auto;gap:8px 10px;align-items:end}
.hx-sorting__reply textarea{width:100%;min-height:52px;max-height:180px;padding:12px 14px;border:1px solid var(--hx-line);border-radius:14px;background:rgba(4,10,20,.42);color:var(--hx-ink);font:inherit;line-height:1.9;resize:vertical}
.hx-sorting__reply .hx-button{min-height:52px;padding-inline:22px}
.hx-sorting__hint{grid-column:1/-1;margin:0;color:var(--hx-muted);font-size:.72rem}
.hx-sorting__reply .hx-sorting__error{grid-column:1/-1;margin:0}
.hx-sorting__verdict{--house:#e9c978;margin-top:6px;padding:26px 22px;border:1px solid var(--house);border-radius:20px;background:linear-gradient(160deg,color-mix(in srgb,var(--house) 22%,transparent),rgba(4,10,20,.3));text-align:center;animation:hx-verdict .6s cubic-bezier(.2,0,0,1) both}
.hx-sorting__verdict h2{margin:4px 0 10px;color:var(--house);font-size:clamp(2rem,6vw,3.1rem);line-height:1.2}
.hx-sorting__verdict p:not(.hx-eyebrow){color:#e2e8f2;line-height:1.9}
.hx-sorting__verdict[data-house=gryffindor]{--house:#e5654f}
.hx-sorting__verdict[data-house=slytherin]{--house:#4cbf82}
.hx-sorting__verdict[data-house=ravenclaw]{--house:#6f9ee8}
.hx-sorting__verdict[data-house=hufflepuff]{--house:#f2c94c}
@keyframes hx-verdict{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
@media(max-width:560px){.hx-sorting__fields{grid-template-columns:1fr 92px}.hx-sorting__line{max-width:96%}.hx-sorting__reply{grid-template-columns:1fr}.hx-sorting__reply .hx-button{width:100%}}
@media(prefers-reduced-motion:reduce){.hx-sorting__hat.is-thinking img,.hx-sorting__thinking span,.hx-sorting__line,.hx-sorting__verdict{animation:none}}

/* Cinematic journey skin. The image remains decorative; all content stays real HTML. */
.hx{
  --hx-ink:#fff8eb;
  --hx-muted:#c8c3ba;
  --hx-gold:#f0cf8a;
  --hx-gold-dim:rgba(240,207,138,.14);
  --hx-line:rgba(240,207,138,.27);
  --hx-panel:#171c28;
  --hx-night:#10141e;
  max-width:1220px;
  padding:32px clamp(16px,3vw,38px) 88px;
  background:radial-gradient(ellipse at 50% 0,rgba(127,66,39,.14),transparent 54%),#10141e;
  border:1px solid rgba(240,207,138,.11);
  border-radius:28px;
  box-shadow:0 28px 80px rgba(0,0,0,.18);
}
.hx .hx-kicker,.hx .hx-eyebrow{text-transform:none;letter-spacing:0;color:var(--hx-gold)}
.hx .hx-kicker{font-size:.84rem}
.hx .hx-button{min-height:48px;border-radius:10px}
.hx .hx-button--primary{background:linear-gradient(135deg,#f8db9e,#d4a960);color:#25202a;box-shadow:0 12px 28px rgba(7,6,10,.3),inset 0 1px rgba(255,255,255,.45)}
.hx .hx-button--primary:hover{background:linear-gradient(135deg,#ffe6af,#e8bd75);box-shadow:0 16px 34px rgba(7,6,10,.37),0 0 0 2px rgba(240,207,138,.2)}
.hx .hx-button--quiet{background:rgba(255,249,235,.055);border-color:var(--hx-line)}
.hx .hx-button--quiet:hover{background:rgba(255,249,235,.1);border-color:rgba(240,207,138,.52)}
.hx :is(.hx-button,.hx-subject-card,.hx-dialog__close,.hx-profile-mode__button,summary,select,input,textarea):focus-visible{outline:3px solid #f8db9e;outline-offset:3px}

/* Arrival at platform nine and three quarters */
.hx-intro-hero{
  display:flex;align-items:center;min-height:540px;
  padding:clamp(32px,5vw,70px);
  border-color:rgba(240,207,138,.4);border-radius:20px;
  background:linear-gradient(270deg,rgba(9,12,20,.99) 0%,rgba(9,12,20,.94) 28%,rgba(9,12,20,.7) 47%,rgba(9,12,20,.1) 78%),linear-gradient(0deg,rgba(9,12,20,.74),transparent 36%),url("../art/express-hero.webp") center / cover no-repeat;
  box-shadow:0 30px 65px rgba(0,0,0,.32),inset 0 0 0 7px rgba(8,10,17,.32);
}
.hx-intro-hero:before{content:"";position:absolute;inset:14px;border:1px solid rgba(240,207,138,.21);border-radius:11px;pointer-events:none}
.hx-intro-hero:after{content:"";position:absolute;right:38px;bottom:31px;left:38px;height:1px;background:linear-gradient(90deg,transparent,rgba(240,207,138,.55),transparent)}
.hx-intro-hero__content{position:relative;z-index:1;width:min(570px,100%)}
.hx-intro-hero .hx-kicker{display:flex;align-items:center;gap:12px;margin-bottom:20px;color:#f3dba8}
.hx-kicker__line{width:36px;height:1px;background:currentColor}
.hx-intro-hero h1{max-width:none;margin:0 0 20px;color:#fffaf0;font-size:clamp(3rem,6.6vw,5.7rem);line-height:1.14;text-shadow:0 4px 30px rgba(0,0,0,.55)}
.hx-intro-hero h1 em{display:block;color:var(--hx-gold);font-style:normal}
.hx-intro-hero .hx-lead{max-width:530px;margin:0;color:#f4eee5;font-size:clamp(1.05rem,1.7vw,1.22rem);line-height:2.05;text-shadow:0 2px 15px rgba(0,0,0,.75)}
.hx-intro-hero .hx-intro-actions{margin-top:30px}
.hx-intro-hero .hx-button{min-height:54px;padding-inline:23px}
.hx-intro-hero .hx-button svg{transition:transform .2s ease}
.hx-intro-hero .hx-button:hover svg{transform:translateX(-4px)}
.hx-intro-hero__ticket{position:absolute;z-index:1;left:40px;bottom:47px;display:grid;justify-items:center;min-width:136px;padding:13px 15px 15px;border:1px solid rgba(240,207,138,.62);border-radius:7px;background:rgba(11,14,21,.74);box-shadow:0 12px 28px rgba(0,0,0,.3);color:#f7e0ad;backdrop-filter:blur(8px);transform:rotate(-5deg)}
.hx-intro-hero__ticket span{font-size:.67rem;font-weight:800}
.hx-intro-hero__ticket strong{font-family:Georgia,serif;font-size:2.8rem;line-height:1.1}

/* An editorial set of answers followed by a track-like route map. */
.hx-explain-grid{gap:14px;margin:20px 0 44px}
.hx-explain-card{position:relative;min-height:208px;padding:27px 25px;border-color:rgba(240,207,138,.18);border-radius:13px;background:linear-gradient(145deg,#20222b,#171b26 75%);box-shadow:0 16px 34px rgba(0,0,0,.15)}
.hx-explain-card:before{content:"";position:absolute;right:24px;left:24px;top:0;height:2px;background:linear-gradient(90deg,transparent,var(--hx-gold),transparent)}
.hx-explain-card__number{width:auto;height:auto;display:block;margin:0 0 14px;background:none;color:var(--hx-gold);font-family:Georgia,serif;font-size:1.5rem}
.hx-explain-card h2{margin-bottom:10px;font-size:1.13rem;line-height:1.55}
.hx-explain-card p{color:#d5d2ca;font-size:.9rem;line-height:1.9}
.hx-route{position:relative;overflow:hidden;padding:34px clamp(22px,4vw,44px) 40px;border-color:rgba(240,207,138,.2);border-radius:17px;background:radial-gradient(circle at 100% 0,rgba(159,93,58,.18),transparent 46%),#171b25}
.hx-route:after{content:"";position:absolute;left:-70px;bottom:-102px;width:280px;height:280px;border:1px solid rgba(240,207,138,.09);border-radius:50%;box-shadow:0 0 0 34px rgba(240,207,138,.035),0 0 0 68px rgba(240,207,138,.025);pointer-events:none}
.hx-section-heading{position:relative;z-index:1}
.hx-section-heading .hx-eyebrow{margin-bottom:7px}
.hx-section-heading h2{margin-bottom:26px;font-size:clamp(1.4rem,2.8vw,2rem)}
.hx-stops{position:relative;z-index:1;gap:0}
.hx-stops:before{content:"";position:absolute;top:21px;right:10%;left:10%;height:1px;background:linear-gradient(90deg,rgba(240,207,138,.2),rgba(240,207,138,.7),rgba(240,207,138,.2))}
.hx-stop{position:relative;display:block;padding:0 0 0 18px}
.hx-stop>span{width:42px;height:42px;margin-bottom:16px;border-width:2px;background:#171b25;color:var(--hx-gold);font-size:.95rem;font-weight:800;box-shadow:0 0 0 6px #171b25}
.hx-stop--current>span{background:var(--hx-gold);color:#1b1b25}
.hx-stop strong{font-size:.96rem}
.hx-stop small{max-width:205px;margin-top:8px;color:#c6c4c0;font-size:.8rem;line-height:1.8}

/* All later steps share the same sense of place, without changing form behavior. */
.hx-journey{max-width:1000px;margin:4px auto 28px;padding:18px 30px 21px;border:1px solid rgba(240,207,138,.16);border-radius:15px;background:#191d28}
.hx-journey__caption{margin-bottom:15px;color:var(--hx-gold);font-size:.83rem;font-weight:800}
.hx-journey__step:before{top:17px;background:rgba(240,207,138,.18)}
.hx-journey__dot{width:36px;height:36px;background:#151923}
.hx-journey__label{font-size:.82rem}
.hx-stage-header{max-width:1000px;margin:0 auto 28px;padding:34px clamp(22px,4vw,48px);border:1px solid rgba(240,207,138,.23);border-radius:16px;background:linear-gradient(270deg,rgba(16,18,26,.94),rgba(16,18,26,.75)),url("../art/express-hero.webp") center 47% / cover no-repeat;text-align:right}
.hx-stage-header h1{max-width:780px;margin-bottom:12px;color:#fff8eb;font-size:clamp(2rem,4.4vw,3.3rem);line-height:1.45}
.hx-stage-header>p{max-width:730px;color:#ded8ce;line-height:1.95}
.hx-stage-header>p:last-child{color:#ded8ce}
.hx-picker-header{max-width:1180px}
.hx-picker-meta{justify-content:flex-start}
.hx-picker-meta span{background:rgba(13,16,24,.75)}
.hx-subject-grid{gap:17px}
.hx-subject .hx-subject-card{border-color:rgba(240,207,138,.2);border-radius:12px}
.hx-subject .hx-subject-card:hover{border-color:var(--hx-gold)}
.hx-subject .hx-subject-card__copy{padding:20px}
.hx-subject .hx-subject-card__copy strong{font-size:1.03rem}
.hx-selection-note{color:var(--hx-muted)}
.hx-selected-subject,.hx-writing-guide,.hx-writing-box,.hx-guide-result,.hx-result-subject,.hx-post,.hx-character-row,.hx-profile-companion,.hx-reservation-card,.hx-wait-card{border-color:rgba(240,207,138,.2);background-color:#1b1e29}
.hx-char-toolbar{max-width:1000px;padding:16px;border:1px solid rgba(240,207,138,.2);border-radius:13px;background:#1b1e29}
.hx-char-search,.hx-char-toolbar__field select,.hx-profile-textarea,.hx-sorting__field input[type=text],.hx-sorting__field input[type=number],.hx-sorting__reply textarea{border-color:rgba(240,207,138,.3);background:#11151e}
.hx-char-search:focus-within{border-color:var(--hx-gold);box-shadow:0 0 0 3px var(--hx-gold-dim)}
.hx-character-row{border-radius:12px;background:linear-gradient(145deg,#20232e,#191d28);box-shadow:0 12px 28px rgba(0,0,0,.16)}
.hx-character-row:hover{background:linear-gradient(145deg,#292938,#1c202b)}
.hx-profile-companion{border-radius:13px;background:linear-gradient(145deg,#22242d,#181c27)}
.hx-profile-mode{background:#161922}
.hx-profile-mode__button.is-active{background:var(--hx-gold);color:#232029}
.hx-dialog{border-color:rgba(240,207,138,.42);border-radius:16px;background:#1b1e29}
.hx-dialog .hx-dialog__actions{background:linear-gradient(to top,#1b1e29 72%,rgba(27,30,41,0))}
.hx-dialog--confirm .hx-dialog__actions{background:none}
@media(min-width:900px){
  .hx-dialog--subject[open]{position:fixed;inset:0;grid-template-rows:minmax(0,1fr);height:min(720px,calc(100dvh - 96px));max-height:calc(100dvh - 96px);margin:auto;overflow:hidden}
  .hx-dialog--subject>img{min-height:0;max-height:100%;height:100%;object-fit:contain}
  .hx-dialog--subject .hx-dialog__body{min-height:0;overflow-y:auto}
}

/* Sorting ceremony: a lit hall behind the hat, legible controls in front. */
.hx-sorting{max-width:900px}
.hx-sorting .hx-stage-header{background:linear-gradient(270deg,rgba(16,18,26,.9),rgba(16,18,26,.68)),url("../art/great-hall.webp") center 45% / cover no-repeat}
.hx-sorting__hall{overflow:hidden;padding:32px clamp(20px,5vw,52px) 40px;border-color:rgba(240,207,138,.3);border-radius:17px;background:linear-gradient(180deg,rgba(10,13,20,.32),rgba(10,13,20,.95) 48%),url("../art/great-hall.webp") center top / cover no-repeat;box-shadow:0 28px 60px rgba(0,0,0,.3)}
.hx-sorting__hall:before{content:"";position:absolute;inset:12px;border:1px solid rgba(240,207,138,.12);border-radius:9px;pointer-events:none}
.hx-sorting__hat{position:relative;z-index:1;width:clamp(170px,30vw,225px);margin-bottom:13px}
.hx-sorting__hat img{filter:drop-shadow(0 20px 26px rgba(0,0,0,.75))}
.hx-sorting__start,.hx-sorting__talk,.hx-sorting__verdict{position:relative;z-index:1}
.hx-sorting__start{padding:22px clamp(18px,4vw,30px) 28px;border:1px solid rgba(240,207,138,.23);border-radius:13px;background:rgba(16,18,26,.92);box-shadow:0 18px 40px rgba(0,0,0,.27)}
.hx-sorting__start-lead{color:#e4ded3}
.hx-sorting__sex span{min-height:44px}
.hx-sorting__log{padding:10px}
.hx-sorting__line--hat{background:rgba(35,29,31,.93)}
.hx-sorting__line--student{background:rgba(63,54,54,.91)}
.hx-sorting__verdict{background:linear-gradient(160deg,color-mix(in srgb,var(--house) 17%,#141822),#171b26)}

@media(max-width:760px){
  .hx{padding:16px 14px 56px;border-radius:18px}
  .hx-intro-hero{min-height:580px;align-items:flex-start;padding:38px 25px;background:linear-gradient(180deg,rgba(9,12,20,.96) 0%,rgba(9,12,20,.88) 38%,rgba(9,12,20,.12) 76%,rgba(9,12,20,.7) 100%),url("../art/express-hero.webp") 35% center / cover no-repeat}
  .hx-intro-hero h1{font-size:clamp(2.85rem,9vw,4.4rem)}
  .hx-intro-hero .hx-lead{max-width:560px}
  .hx-intro-hero__ticket{left:28px;bottom:36px;min-width:108px;padding:8px 11px;transform:rotate(-4deg)}
  .hx-intro-hero__ticket strong{font-size:2rem}
  .hx-explain-grid{grid-template-columns:1fr;gap:10px;margin:14px 0 28px}
  .hx-explain-card{min-height:0;padding:20px}
  .hx-explain-card p{font-size:1rem}
  .hx-explain-card__number{float:right;margin:0 0 0 15px}
  .hx-route{padding:25px 22px}
  .hx-stops{grid-template-columns:1fr;gap:0;padding-right:6px}
  .hx-stops:before{top:18px;right:26px;left:auto;width:1px;height:calc(100% - 48px)}
  .hx-stop{display:flex;gap:16px;padding:0 0 22px}
  .hx-stop:last-child{padding-bottom:0}
  .hx-stop>span{flex:0 0 42px;margin:0}
  .hx-stop small{max-width:none;font-size:.9rem}
  .hx-journey{padding:15px 10px 18px}
  .hx-journey__label{font-size:.68rem}
  .hx-stage-header{padding:26px 22px}
  .hx-subject-grid{gap:10px}
  .hx-subject .hx-subject-card__copy{padding:12px}
  .hx-sorting__hall{padding:22px 15px 30px}
}
@media(max-width:480px){
  .hx-intro-hero{min-height:615px;padding:31px 22px;background-position:38% center}
  .hx-intro-hero:before{inset:9px}
  .hx-intro-hero .hx-kicker{font-size:.73rem;line-height:1.7}
  .hx-kicker__line{width:20px}
  .hx-intro-hero h1{font-size:2.8rem}
  .hx-intro-hero .hx-lead{font-size:1rem;line-height:1.95}
  .hx-intro-hero .hx-button{width:100%;padding-inline:13px}
  .hx-intro-hero__ticket{bottom:43px}
  .hx-picker-meta{gap:6px}
  .hx-subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hx-subject .hx-subject-card__copy strong{font-size:.85rem}
  .hx-stage-header h1{font-size:1.9rem}
}
@media(prefers-reduced-motion:reduce){
  .hx-intro-hero .hx-button svg{transition:none}
  .hx-reviewing__spinner{animation:none!important}
}

/* ===== Landing, rules links, next steps, help button, taken characters (2026-10-09) ===== */
.hx-landing{padding-top:20px}
.hx-landing__hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:32px;align-items:center}
.hx-landing__note{max-width:620px;margin:16px 0 0;color:var(--hx-muted);line-height:1.95}
.hx-landing__actions{display:flex;flex-wrap:wrap;gap:12px}
.hx-landing__notice{display:flex;gap:16px;align-items:flex-start;max-width:640px;margin-top:8px;padding:22px 24px;border:1px solid var(--hx-line);border-radius:18px;background:rgba(5,12,24,.45)}
.hx-landing__notice h2{margin:0 0 8px;font-size:clamp(1.15rem,2.6vw,1.45rem)}
.hx-landing__notice p{margin:0 0 18px;color:#dfe6f1;line-height:2}
.hx-landing__notice-icon{display:grid;flex:0 0 46px;width:46px;height:46px;place-items:center;border-radius:50%;background:var(--hx-gold-dim);color:var(--hx-gold)}
.hx-landing__notice-icon .hx-icon{width:22px;height:22px}
.hx-landing__notice--closed{border-color:rgba(231,139,139,.4)}
.hx-landing__notice--closed .hx-landing__notice-icon{background:rgba(231,139,139,.14);color:#f0a3a3}
.hx-landing__notice--closed p{margin-bottom:0}
.hx-stop--done>span{background:rgba(111,194,151,.18);border-color:rgba(111,194,151,.55);color:#8fd6b0}
.hx-stop__here{display:inline-block;margin-top:6px;padding:2px 8px;border-radius:999px;background:var(--hx-gold-dim);color:var(--hx-gold);font-size:.68rem;font-style:normal;font-weight:800}

.hx-rules-strip{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0 0}
.hx-rules-strip__link{display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:10px 16px;border:1px solid var(--hx-line);border-radius:14px;background:rgba(8,16,30,.55);color:var(--hx-ink)!important;font-weight:800;font-size:.9rem;text-decoration:none!important;transition:border-color .18s cubic-bezier(.2,0,0,1),background-color .18s cubic-bezier(.2,0,0,1)}
.hx-rules-strip__link:hover{border-color:rgba(233,201,120,.7);background:rgba(233,201,120,.08)}
.hx-rules-strip__link:focus-visible{outline:3px solid rgba(233,201,120,.75);outline-offset:3px}
.hx-rules-strip__icon{display:grid;width:30px;height:30px;place-items:center;border-radius:9px;background:var(--hx-gold-dim);color:var(--hx-gold)}
.hx-rules-strip__icon svg{width:18px;height:18px}
.hx-rules-strip__out{color:var(--hx-muted)}
.hx-next~.hx-rules-strip,.hx-stage--wait~.hx-rules-strip{justify-content:center}

.hx-rules-note{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 14px;max-width:760px;margin:-12px auto 26px;padding:12px 16px;border:1px dashed var(--hx-line);border-radius:14px;color:var(--hx-muted);font-size:.86rem;text-align:center}
.hx-rules-note__links{display:inline-flex;flex-wrap:wrap;gap:6px 14px}
.hx-rules-note a,.hx-rules-ack a{color:var(--hx-gold)!important;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.hx-rules-ack{display:flex;gap:12px;align-items:flex-start;margin:18px 0 6px;padding:14px 16px;border:1px solid var(--hx-line);border-radius:14px;background:rgba(233,201,120,.06);color:#e6ebf3;line-height:1.9;cursor:pointer}
.hx-rules-ack input{flex:0 0 auto;width:22px;height:22px;margin-top:4px;accent-color:#e9c978;cursor:pointer}

.hx-next{margin-top:28px}
.hx-next .hx-section-heading{text-align:center}
.hx-next .hx-section-heading h2{margin-bottom:8px}
.hx-next__lead{margin:0 auto 20px;max-width:560px;color:var(--hx-muted);line-height:1.9}
.hx-next__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin:0;padding:0;list-style:none}
.hx-next__grid>li{display:flex}
.hx-next__card{position:relative;display:flex;flex-direction:column;gap:6px;width:100%;min-height:118px;padding:20px 20px 20px 48px;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:linear-gradient(135deg,rgba(24,40,68,.9),rgba(13,23,40,.9));color:var(--hx-ink)!important;text-decoration:none!important;box-shadow:0 11px 25px rgba(0,0,0,.14);transition-property:transform,border-color;transition-duration:.2s;transition-timing-function:cubic-bezier(.2,0,0,1)}
a.hx-next__card:hover{transform:translateY(-3px);border-color:rgba(233,201,120,.6)}
a.hx-next__card:focus-visible{outline:3px solid rgba(233,201,120,.75);outline-offset:3px}
.hx-next__card strong{font-size:1rem}
.hx-next__card span{color:var(--hx-muted);font-size:.86rem;line-height:1.85}
.hx-next__arrow{position:absolute;left:18px;top:22px;color:var(--hx-gold)}

.hx-character-row__badge--taken{background:rgba(160,174,199,.16);color:#c8d1e0}
.hx-character-row__owner{color:var(--hx-gold)!important;font-size:.76rem;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.hx-character-row--taken strong{color:var(--hx-muted)}
.hx-char-preview__conflict a{color:var(--hx-gold)!important;font-weight:800}

.hx-help{--hx-ink:#f5f0e5;--hx-muted:#bfc7d2;--hx-gold:#e9c978;--hx-gold-dim:rgba(233,201,120,.15);--hx-line:rgba(233,201,120,.23);--hx-panel:#121d31;color:var(--hx-ink);font-family:Vazirmatn,Vazir,Tahoma,sans-serif}
.hx-help [hidden]{display:none!important}
.hx-help__fab{position:fixed;z-index:900;right:max(16px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:10px 18px 10px 16px;border:1px solid rgba(233,201,120,.55);border-radius:999px;background:#13213a;color:var(--hx-ink);font:inherit;font-size:.9rem;font-weight:800;cursor:pointer;box-shadow:0 14px 34px rgba(0,0,0,.4);transition-property:transform,border-color,background-color;transition-duration:.18s;transition-timing-function:cubic-bezier(.2,0,0,1)}
.hx-help__fab svg{color:var(--hx-gold)}
.hx-help__fab:hover{transform:translateY(-2px);border-color:var(--hx-gold);background:#182a49}
.hx-help__fab:active{transform:scale(.96)}
.hx-help__fab:focus-visible{outline:3px solid rgba(233,201,120,.75);outline-offset:3px}
.hx-help__dialog{width:min(560px,calc(100vw - 28px))}
.hx-help__dialog .hx-dialog__body{padding:28px}
.hx-help__lead{color:var(--hx-muted);line-height:1.95}
.hx-help__label{display:block;margin:4px 0 8px;font-weight:800}
.hx-help__dialog textarea{width:100%;min-height:140px;padding:13px 14px;border:1px solid var(--hx-line);border-radius:12px;background:rgba(4,10,20,.4);color:var(--hx-ink);font:inherit;font-size:1rem;line-height:1.95;resize:vertical}
.hx-help__dialog textarea:focus-visible{outline:3px solid rgba(233,201,120,.6);outline-offset:1px;border-color:var(--hx-gold)}
.hx-help__dialog textarea[aria-invalid="true"]{border-color:#e78b8b}
.hx-help__meta{margin:6px 0 0;color:var(--hx-muted);font-size:.78rem;text-align:left}
.hx-help__error{margin:10px 0 0;padding:10px 12px;border-radius:10px;background:rgba(231,139,139,.13);color:#f2b0b0}
.hx-help__done{text-align:center}
.hx-help__done-mark{display:inline-grid;width:56px;height:56px;margin-bottom:12px;place-items:center;border-radius:50%;background:rgba(111,194,151,.18);color:#8fd6b0}
.hx-help__dialog .hx-dialog__actions{position:static;margin:20px 0 0;padding:0;background:none}
.hx-help__done .hx-dialog__actions{justify-content:center}

@media(max-width:760px){
  .hx-landing__hero{grid-template-columns:1fr}
  .hx-landing__hero .hx-intro-hero__ticket{display:none}
  .hx-landing__notice{flex-direction:column;padding:18px}
  .hx-landing__actions .hx-button{flex:1 1 100%}
  .hx-rules-strip__link{flex:1 1 100%}
  .hx-help__fab span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .hx-help__fab{width:52px;height:52px;padding:0;justify-content:center}
  .hx-help__dialog .hx-dialog__body{padding:22px}
  .hx-help__dialog .hx-dialog__actions .hx-button{flex:1 1 100%}
}
@media(prefers-reduced-motion:reduce){
  .hx-help__fab,.hx-next__card,.hx-rules-strip__link{transition:none}
  .hx-help__fab:hover,a.hx-next__card:hover{transform:none}
}

@media(max-width:900px){.hx-landing .hx-explain-grid{grid-template-columns:1fr}}
