/* Weekly horoscope prototype (owner 2026-11-15). Kept apart from styles.css until the owner approves it. */
/* one scene per screen (intro / question / thinking / result); the panel's colour follows the scene */
.page-horo .hohero{min-height:calc(100svh - 32px);display:flex;flex-direction:column;padding-bottom:20px;transition:background .45s}
.hohero[data-scene=intro],.hohero[data-scene=think]{background:var(--ink);color:#fff}
.page-horo .hohero > .nav{width:100%}   /* a flex column + .wrap's auto margins shrank the bar to its content: the bell sat beside the logo */
.hostage{flex:1;display:flex;flex-direction:column;justify-content:center;width:100%;padding-block:12px}
.hohero[data-scene=result] .hostage{justify-content:flex-start}
.hobody{max-width:460px;width:100%;margin-inline:auto;text-align:center}
.hobody>h2{font-size:30px;line-height:1.3;text-wrap:balance}
.hohero[data-scene=intro] .ho-hand,.hohero[data-scene=think] .ho-hand{color:#FFD84D}
.hohero[data-scene=intro] .ho-lede{color:#C9D6F2}
.hohero[data-scene=intro] .ho-note{color:#9FB0D6}
.hohero[data-scene=intro] .ho-btn{box-shadow:3px 3px 0 #fff}
.hohero[data-scene=result] .ho-hand{color:var(--ink)}
.ho-mark{text-decoration:underline wavy #FFD84D 3px;text-underline-offset:9px}
.ho-seven{display:flex;justify-content:center;gap:4px;margin:22px 0 44px}
.ho-seven span{width:13%;max-width:54px;transform:translateY(calc((var(--i) - 3) * (var(--i) - 3) * 2.2px)) rotate(calc((var(--i) - 3) * 5deg))}
.ho-seven svg{width:100%;height:auto;overflow:visible}
.hocard{position:relative;margin-top:20px;background:#fff;color:var(--ink);border:2px solid var(--ink);border-radius:var(--r-card);box-shadow:5px 5px 0 var(--ink);padding:6px 22px 22px;text-align:center}
.hocard h2{font-size:22px;line-height:1.35;text-wrap:balance}
.hocard p{text-wrap:pretty}
.nb{white-space:nowrap}
.ho-lede{margin-top:8px;font-size:16px;color:var(--ink-soft);line-height:1.55}
.ho-hand{font-family:var(--f-hand);font-size:21px;color:var(--marker);line-height:1.25}
.ho-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;margin-top:18px;border:2px solid var(--ink);border-radius:99px;background:var(--orange);color:#fff;font-weight:700;font-size:17px;cursor:pointer;box-shadow:3px 3px 0 var(--ink);transition:transform .12s,box-shadow .12s}
.ho-btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.ho-btn--blue{background:var(--blue)}
.ho-btn--ghost{background:#fff;color:var(--ink);box-shadow:none;border-width:1.5px;font-weight:600;font-size:15px;min-height:44px;margin-top:10px}
.ho-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}

/* mood face */
.ho-face{width:156px;height:156px;margin:2px auto 10px}
.ho-face svg{width:100%;height:100%;overflow:visible}
.ho-face.is-pop{animation:hopop .5s cubic-bezier(.2,.8,.2,1)}
@keyframes hopop{0%{transform:scale(.6) rotate(-12deg)}60%{transform:scale(1.12) rotate(4deg)}100%{transform:none}}

/* questions */
.ho-step{display:flex;justify-content:center;gap:6px;margin-bottom:14px}
.ho-step i{width:26px;height:6px;border-radius:9px;background:var(--sky-deep)}
.ho-step i.is-on{background:var(--orange)}
.ho-sub{margin-top:6px;font-size:15px;color:var(--ink-soft)}

.ho-pic{flex:none;width:64px;height:64px;overflow:visible}
.ho-opts{display:grid;gap:12px;margin-top:22px}
.ho-opt{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px 10px;border:2px solid var(--ink);border-radius:20px;background:#fff;box-shadow:3px 3px 0 var(--orange);font-size:16px;font-weight:600;line-height:1.3;text-wrap:balance;cursor:pointer;transition:opacity .2s,transform .12s,background .12s}
.ho-opt.is-pick{background:var(--orange-tint);border-color:var(--orange);box-shadow:3px 3px 0 var(--ink)}
.ho-opts.is-done .ho-opt:not(.is-pick){opacity:.38}
.ho-opts--duo .ho-opt{min-height:150px;font-size:20px}
.ho-opts--duo .ho-pic{width:84px;height:84px}
.ho-opts--grid{grid-template-columns:1fr 1fr}
.ho-opts--grid .ho-opt{min-height:112px;padding:10px 8px}
.ho-opts--grid .ho-pic{width:50px;height:50px}
.ho-opts--grid3{grid-template-columns:repeat(3,1fr);gap:10px}
.ho-opts--grid3 .ho-opt{min-height:118px;padding:10px 4px;font-size:15px}
.ho-opts--grid3 .ho-pic{width:56px;height:56px}
.ho-opts--rank .ho-opt{min-height:0}
/* result: the member's photo with the mood face stuck on its corner */
.ho-me{position:relative;width:168px;height:168px;margin:6px auto 12px}
.ho-me.is-pop{animation:hopop .5s cubic-bezier(.2,.8,.2,1)}
.ho-me__pic{width:100%;height:100%;border-radius:50%;object-fit:cover;background:#fff;border:3px solid var(--ink);box-shadow:5px 5px 0 var(--ink)}
.ho-me__pic.is-mascot{object-fit:contain;padding:14px}
.ho-me__face{position:absolute;right:-22px;bottom:-12px;width:84px;height:84px;transform:rotate(8deg)}
.ho-me__face svg{width:100%;height:100%;overflow:visible}
.ho-me--photo{width:250px;height:184px;margin-top:22px;transform:rotate(-2deg)}
.ho-me--photo .ho-me__pic{border-radius:14px;border:6px solid #fff;outline:2.5px solid var(--ink);box-shadow:6px 6px 0 var(--ink)}

.ho-me__shuf{position:absolute;z-index:2;left:-16px;bottom:-12px;width:46px;height:46px;border-radius:50%;border:2.5px solid var(--ink);background:#FFD84D;box-shadow:2px 2px 0 var(--ink);display:grid;place-items:center;cursor:pointer}
.ho-me__shuf svg{width:24px;height:24px;fill:none;stroke:var(--ink);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.ho-me__shuf:active{transform:translate(2px,2px);box-shadow:none}
/* fortune slip */
.ho-slip{position:relative;margin:18px auto 0;padding:16px 10px 16px;background:#FFF8E1;border:2px solid #B3262E;border-radius:6px;box-shadow:4px 4px 0 #B3262E;transform:rotate(-.6deg)}
.ho-slip:before{content:"";position:absolute;inset:4px;border:1px solid #B3262E;border-radius:3px;pointer-events:none}

.ho-slip p.nb{font-size:16px;font-weight:500;line-height:1.85;word-spacing:.32em}
/* level name: a pen underline drawn under the text, never over it */
.ho-lvw{display:inline-block;margin-top:4px}
.ho-ul{display:block;width:100%;height:14px;margin-top:-4px;overflow:visible}
.ho-ul path{fill:none;stroke:var(--orange);stroke-width:5;stroke-linecap:round;}
/* care tips: a taped sticky note after the reading */
.ho-care{position:relative;margin:26px 6px 0;padding:22px 18px 16px;background:#FFF3B0;border:2px solid var(--ink);border-radius:4px 4px 22px 4px;box-shadow:5px 5px 0 var(--ink);text-align:left;transform:rotate(1.2deg)}
.ho-care__tape{position:absolute;left:50%;top:-12px;width:84px;height:24px;margin-left:-42px;background:rgba(242,108,33,.75);border:1.5px solid rgba(13,27,62,.35);transform:rotate(-3deg)}
.ho-care__t{font-family:var(--f-hand);font-size:23px;color:var(--marker);line-height:1.2;margin-bottom:6px}
.ho-care__row{display:flex;align-items:center;gap:12px;padding:8px 0;font-size:16px;line-height:1.45}
.ho-care__row+.ho-care__row{border-top:1.5px dashed rgba(13,27,62,.3)}
.ho-care__row .ho-pic{width:40px;height:40px}
/* reading rows: the fact, then the thing to try */
/* lucky cards: number and colour side by side, the lucky event across */
.ho-bonus .ho-bonus__row{grid-template-columns:1fr 1fr}
.ho-bonus .ho-bcard{aspect-ratio:auto;min-height:92px}
.ho-bonus .ho-bcard:nth-child(3){transform:none}
.ho-bonus .ho-bcard--wide{grid-column:1/-1;min-height:86px;padding:10px 12px}
.ho-bonus .ho-bcard--wide b{font-size:17px;line-height:1.3;text-wrap:balance}
.ho-bcard--wide span{font-size:13px}
/* share to social */
.ho-snap{margin-top:16px}
.ho-snap.is-busy{opacity:.6}
.ho-hold{position:fixed;left:-500px;top:0;width:360px;pointer-events:none}
.ho-shot{position:relative;width:360px;height:640px;padding:86px 22px 0;text-align:center;color:var(--ink);font-family:var(--f-ui);overflow:hidden}
.ho-shot *{animation:none!important}

.ho-shot .ho-hand{color:var(--ink);font-size:20px}
.ho-shot .ho-me{margin-top:20px}
.ho-shot .ho-me--photo{width:236px;height:174px}
.ho-shot .ho-lv{font-size:36px}
.ho-shot .ho-head{font-size:16px}
.ho-shot .ho-slip{margin-top:14px;padding:12px 8px}
.ho-shot .ho-slip p.nb{font-size:14px;line-height:1.75;word-spacing:.2em}
.ho-shot__foot{position:absolute;left:0;right:0;bottom:12px;font-size:13px;font-weight:500;display:flex;align-items:center;justify-content:center;gap:8px}
.ho-shot__foot .logo{font-size:17px}
.ho-opts--rank .ho-opt{flex-direction:row;justify-content:flex-start;gap:14px;text-align:left;font-size:18px;padding:10px 14px}
.ho-opts--rank .ho-pic{width:52px;height:52px}
.ho-opts--rank .ho-opt span{flex:1}
/* after question 3: how will you look after your first pick (owner 2026-11-30) */
.hohero[data-scene=plan] .hostage{justify-content:flex-start;padding-top:28px}   /* top, so the keyboard does not cover the box */
.ho-plan{position:relative;display:block;margin-top:20px}
.ho-plan .ho-pic{position:absolute;top:-18px;right:-6px;width:46px;height:46px;transform:rotate(8deg);pointer-events:none}
.ho-plan textarea{display:block;width:100%;min-height:116px;padding:14px 16px;border:2px solid var(--ink);border-radius:18px;background:#fff;box-shadow:3px 3px 0 var(--orange);font:inherit;font-size:17px;line-height:1.5;color:var(--ink);resize:none}
.ho-plan textarea:focus{outline:none;border-color:var(--orange);box-shadow:3px 3px 0 var(--ink)}
.ho-plan textarea::placeholder{color:var(--ink-soft);opacity:.7}
.ho-plan__n{margin-top:10px;font-size:14px;color:var(--ink-soft);text-align:right}
.ho-plan__n.is-ok{color:#1F8A4C;font-weight:700}
.ho-btn.is-off{opacity:.45;box-shadow:none}
.ho-num{flex:none;display:grid;place-items:center;width:38px;height:38px;border:2px solid var(--ink);border-radius:50%;background:#fff;font-size:18px}
.ho-opt.is-pick .ho-num{background:#FFD84D}
.ho-next{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:22px;border:0;background:none;font-weight:600;font-size:16px;color:var(--marker);cursor:pointer;animation:honudge 1.2s ease-in-out infinite}
.ho-next svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
@keyframes honudge{50%{transform:translateY(5px)}}

/* scene between questions */
.ho-scene{width:230px;margin:0 auto 14px;animation:hopop .5s cubic-bezier(.2,.8,.2,1)}
.ho-scene .ho-pic{width:100%;height:auto}
.hohero[data-scene=scene] .ho-hand{font-size:26px}

/* after the reading */
.ho-after{padding:18px 20px;text-align:left}
.ho-same{font-size:17px;line-height:1.45}
.ho-same b{font-size:26px}
.ho-divs{display:grid;gap:8px;margin-top:12px}
.ho-div{display:grid;grid-template-columns:92px 1fr 34px;align-items:center;gap:8px;font-size:14px}
.ho-div i{display:block;height:12px;width:var(--w);border-radius:9px;background:var(--orange);border:1.5px solid var(--ink)}
.ho-div b{text-align:right}
.ho-after__t{font-weight:700;font-size:17px}
.ho-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.ho-tag{border:1.5px solid var(--ink);border-radius:99px;background:#fff;padding:6px 14px;font-size:15px;cursor:pointer}
.ho-tag.is-on{background:var(--ink);color:#fff}
.ho-go{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}
.ho-go a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 8px;border:2px solid var(--ink);border-radius:20px;background:#fff;color:var(--ink);box-shadow:3px 3px 0 var(--ink);font-weight:600;font-size:15px;line-height:1.3;text-decoration:none;text-wrap:balance}
.ho-go .ho-pic{width:44px;height:44px}

/* 7-level meter */

.ho-lv{display:inline-block;margin-top:4px;white-space:nowrap;font-size:clamp(30px,9.600vw,42px);font-weight:700;line-height:1.2;padding:0 6px}
.ho-head{margin-top:4px}

/* reading rows */
.ho-read{position:relative;text-align:left}
.ho-row{display:flex;gap:12px;padding:12px 2px;border-bottom:1.5px dashed #C9D3E6}
.ho-row svg{flex:none;width:28px;height:28px;fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;margin-top:2px}
.ho-row b{display:block;font-size:14px;color:var(--marker)}
.ho-row span{display:block;font-size:16px;line-height:1.45}
.ho-row__tip{display:block;margin-top:4px;font-style:normal;font-size:14px;line-height:1.45;color:var(--ink-soft)}
.ho-read.is-lock .ho-row__tip{filter:blur(6px);user-select:none}
.ho-read.is-lock .ho-row span{filter:blur(6px);user-select:none}
.ho-lock{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.ho-lock div{display:flex;align-items:center;gap:8px;background:var(--ink);color:#fff;font-weight:600;font-size:14px;border-radius:99px;padding:7px 16px 7px 12px;transform:rotate(-2deg)}
.ho-lock svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* bonus cards */
.ho-bonus{margin-top:18px}
.ho-bonus__t{display:flex;align-items:baseline;justify-content:space-between;font-size:15px;font-weight:700}
.ho-bonus__t small{font-weight:500;color:var(--ink-soft);font-size:13px}
.ho-bonus__row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}
.ho-bcard{aspect-ratio:3/4;border:1.5px solid var(--ink);border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:6px;background:#fff;font-size:12px;color:var(--ink-soft);line-height:1.25}
.ho-bcard b{font-size:20px;color:var(--ink);line-height:1.15;overflow-wrap:anywhere}
.ho-bcard.is-shut{background:repeating-linear-gradient(135deg,var(--sky) 0 8px,#fff 8px 16px);border-style:dashed}
.ho-bcard.is-shut svg{width:26px;height:26px;fill:none;stroke:var(--ink-soft);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ho-bcard.is-new{animation:hoflip .5s ease}
@keyframes hoflip{0%{transform:rotateY(90deg)}100%{transform:none}}
.ho-bcard:nth-child(1){transform:rotate(-2deg)}
.ho-bcard:nth-child(3){transform:rotate(2deg)}

.ho-note{margin-top:12px;font-size:13px;color:var(--ink-soft);line-height:1.5}

/* demo switcher + toast */
.hotoast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:40;background:var(--ink);color:#fff;font-size:14px;font-weight:500;border-radius:99px;padding:9px 18px;max-width:calc(100vw - 32px);text-align:center}
@media (max-width:640px){
  .hocard{padding:4px 16px 18px}
  .hobody>h2{font-size:26px}
  .ho-slip p.nb{font-size:15px;word-spacing:.22em}
}
/* ---- motion ---- */
.ho-art{width:100%;height:auto;overflow:visible}
.ho-up{animation:houp .5s cubic-bezier(.2,.8,.2,1) var(--d,0s) backwards}
@keyframes houp{from{opacity:0;transform:translateY(18px)}}
.ho-spin{transform-box:fill-box;transform-origin:center;animation:hospin 9s linear infinite}
.ho-art .ho-spin{transform-box:view-box}
@keyframes hospin{to{transform:rotate(360deg)}}
.ho-bob{animation:hobob 1.6s ease-in-out infinite}
@keyframes hobob{50%{transform:translateY(-3px)}}
.ho-steam{animation:hosteam 1.8s ease-in-out infinite}
@keyframes hosteam{0%{opacity:0;transform:translateY(4px)}40%{opacity:1}100%{opacity:0;transform:translateY(-5px)}}
.ho-dash{animation:hodash .7s linear infinite}
@keyframes hodash{from{transform:translateX(4px);opacity:0}50%{opacity:1}to{transform:translateX(-4px);opacity:0}}
.ho-rise{animation:horise 1.2s cubic-bezier(.2,.8,.2,1) backwards}
@keyframes horise{from{transform:translateY(46px);opacity:0}}
.ho-set{animation:hoset 1.8s ease-in backwards}
@keyframes hoset{from{transform:translateY(-26px)}}
.ho-tw{transform-box:fill-box;transform-origin:center;animation:hotwinkle 1.6s ease-in-out infinite}
.ho-walk{animation:howalk 1.8s linear backwards}
@keyframes howalk{from{transform:translateX(-34px)}to{transform:translateX(34px)}}
/* intro faces: a wave */
.ho-seven b{display:block;animation:howave 1.8s ease-in-out calc(var(--i) * .12s) infinite}
@keyframes howave{0%,60%,100%{transform:none}30%{transform:translateY(-12px) rotate(-6deg)}}
.hohero[data-scene=intro] .ho-btn{animation:hopulse 2s ease-in-out 1s infinite}
@keyframes hopulse{50%{transform:scale(1.035)}}
/* question choices */
.ho-opts.is-fresh .ho-opt{animation:hoin .45s cubic-bezier(.2,.8,.2,1) calc(var(--n) * 70ms + .1s) backwards}
@keyframes hoin{from{opacity:0;transform:translateY(22px) scale(.92)}}
.ho-opt.is-new{animation:hopick .4s cubic-bezier(.2,.8,.2,1)}
@keyframes hopick{0%{transform:scale(.9)}55%{transform:scale(1.07) rotate(-1.5deg)}}
.ho-opt.is-new .ho-pic{animation:hojig .5s ease}
@keyframes hojig{30%{transform:rotate(-14deg) scale(1.15)}65%{transform:rotate(10deg)}}
.ho-opt:active{transform:scale(.96)}
.ho-tag.is-pop{animation:hopick .35s cubic-bezier(.2,.8,.2,1)}
/* fortune sticks shaking, one stick comes up */
.ho-scene--think{animation:none}
.ho-shake{transform-origin:60px 96px;animation:hoshake .28s ease-in-out 6}
@keyframes hoshake{25%{transform:rotate(-9deg) translateY(-3px)}75%{transform:rotate(9deg) translateY(2px)}}
.ho-stick--up path{animation:hostick .6s cubic-bezier(.3,1.6,.5,1) 1.75s forwards}
@keyframes hostick{to{transform:translateY(-30px)}}
/* result: photo drops in, the face is stamped on, the name pops, the slip unrolls, lines come one by one */
.hobody{position:relative}
.ho-me.is-pop{animation:hodrop .7s cubic-bezier(.2,.9,.3,1.25) backwards}
@keyframes hodrop{from{opacity:0;transform:translateY(-70px) rotate(-16deg) scale(.8)}}
.ho-me__face{animation:hostamp .45s cubic-bezier(.2,.8,.3,1.4) .55s backwards}
@keyframes hostamp{from{opacity:0;transform:scale(2.8) rotate(-30deg)}}
.ho-lv{animation:holv .55s cubic-bezier(.2,.8,.3,1.5) .85s backwards}
@keyframes holv{from{opacity:0;transform:scale(.4) rotate(-6deg)}}
.ho-head{animation:houp .5s ease 1.1s backwards}
.ho-slip{transform-origin:50% 0;animation:horoll .6s cubic-bezier(.2,.8,.3,1.2) 1.35s backwards}
@keyframes horoll{from{opacity:0;transform:scaleY(.05) rotate(-.6deg)}}
.ho-slip p.nb{animation:houp .45s ease calc(1.8s + var(--n) * .22s) backwards}
.ho-snap{animation:houp .5s ease 2.8s backwards}
.ho-ul path{stroke-dasharray:1;animation:hodraw .6s ease 1.25s backwards}
@keyframes hodraw{from{stroke-dashoffset:1}}
.ho-conf{position:absolute;left:50%;top:150px;width:0;height:0;pointer-events:none;z-index:3}
.ho-conf i{position:absolute;left:-5px;top:-7px;width:10px;height:14px;border-radius:2px;background:var(--c);border:1.5px solid var(--ink);opacity:0;animation:hoconf 1.3s cubic-bezier(.1,.7,.3,1) calc(.55s + var(--d)) both}
@keyframes hoconf{0%{opacity:1;transform:none}70%{opacity:1}100%{opacity:0;transform:translate(var(--x),calc(var(--y) + 70px)) rotate(var(--r))}}
.ho-me__pic.is-flip{animation:hoflipx .34s ease}
@keyframes hoflipx{50%{transform:rotateY(90deg) scale(.96)}}
.hobody>.hocard,.hobody>.ho-go,.hobody>.ho-care{opacity:0;transform:translateY(26px);transition:opacity .5s,transform .5s cubic-bezier(.2,.8,.2,1)}
.hobody>.hocard.is-in,.hobody>.ho-go.is-in{opacity:1;transform:none}
.hobody>.ho-care.is-in{opacity:1;transform:rotate(1.2deg)}
.ho-go a{transition:transform .12s,box-shadow .12s}
.ho-go a:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.ho-lock div{animation:holock 2.4s ease-in-out 3s infinite}
@keyframes holock{0%,86%,100%{transform:rotate(-2deg)}90%{transform:rotate(-7deg)}94%{transform:rotate(3deg)}}
/* a re-render in place (a pick, an unlock) plays nothing again */
.hobody.is-static .ho-me.is-pop,.hobody.is-static .ho-me__face,.hobody.is-static .ho-lv,.hobody.is-static .ho-head,.hobody.is-static .ho-slip,.hobody.is-static .ho-slip p.nb,.hobody.is-static .ho-ul path,.hobody.is-static .ho-snap,.hobody.is-static .ho-up{animation:none}
.hobody.is-static .ho-conf{display:none}
@media (prefers-reduced-motion:reduce){
  .page-horo *,.page-horo *:before{animation:none!important;transition:none!important}
  .ho-conf{display:none}
  .ho-stick--up path{transform:translateY(-30px)}
}
/* the member's photo zoomed on their face */
.ho-me__fit{display:block;position:relative;overflow:hidden}
.ho-me__fit img{position:absolute;left:0;top:0;max-width:none;height:auto}
/* result: what comes next shows faintly along the bottom until the page is scrolled */
.ho-peek{position:fixed;z-index:20;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;gap:2px;padding:44px 16px calc(14px + env(safe-area-inset-bottom));border:0;background:linear-gradient(to top,rgba(255,255,255,.96) 45%,rgba(255,255,255,0));color:var(--ink);cursor:pointer;transition:opacity .3s,transform .3s;animation:houp .5s ease 2.6s backwards}
.ho-peek span{display:flex;align-items:center;gap:8px;font-weight:700;font-size:17px;opacity:.38}
.ho-peek span i{width:5px;height:5px;border-radius:50%;background:currentColor}
.ho-peek b{display:flex;align-items:center;gap:6px;font-weight:600;font-size:14px;color:var(--marker);animation:honudge 1.2s ease-in-out infinite}
.ho-peek svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.ho-peek.is-gone{opacity:0;transform:translateY(20px);pointer-events:none}
.hobody.is-static .ho-peek{animation:none}
/* owner 2026-11-15 */
.ho-who{font-size:24px}
.ho-who b{font-weight:400;font-size:1.3em;padding:0 4px;background:linear-gradient(transparent 55%,rgba(255,216,77,.9) 55%,rgba(255,216,77,.9) 92%,transparent 92%)}
.ho-shot{padding-top:78px}
.ho-shot .ho-who{font-size:19px}

.ho-shot .ho-me{margin:16px auto 8px}
.ho-shot .ho-me--photo{width:204px;height:150px}
.ho-shot .ho-me__face{width:64px;height:64px;right:-18px;bottom:-10px}
.ho-shot .ho-lv{font-size:32px}
.ho-shot .ho-head{font-size:14px;margin-top:2px}
.ho-shot .ho-slip{margin-top:10px;padding:8px 6px}
.ho-shot .ho-slip p.nb{font-size:13px;line-height:1.6}

/* owner 2026-11-15, round 2 */
.ho-me--photo{margin-bottom:22px}
.ho-me__hint{position:absolute;z-index:2;left:34px;bottom:-30px;display:flex;align-items:flex-end;gap:2px;white-space:nowrap;font-family:var(--f-hand);font-size:16px;color:var(--ink);transform:rotate(2deg);animation:hohint 1.6s ease-in-out 2.4s 3 backwards}
.ho-me__hint svg{width:30px;height:22px;flex:none;margin-bottom:6px;fill:none;stroke:var(--orange);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
@keyframes hohint{0%,100%{opacity:1}50%{opacity:.35}}
.ho-me--photo:has(.ho-me__hint){margin-bottom:40px}
.ho-me__doodle{display:grid;place-items:center;width:100%;height:100%}
.ho-me__doodle svg{width:62%;height:auto;overflow:visible}
.ho-me.is-doodle .ho-me__face{display:none}
.ho-me.is-doodle .ho-me__pic{background:#fff}
.ho-who{font-size:27px}
/* share picture: one block centred between top and the logo, whatever it holds */
.ho-shot{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 22px 64px}
.ho-shot>*{flex:none}
.ho-shot .ho-who{font-size:26px;line-height:1.3}
.ho-shot .ho-slip{transform:none;width:100%}

/* html-to-image (WebKit) draws a rounded box-shadow as a square slab off to the right, so the share picture paints
   its hard shadows as a shape of their own behind each piece */
.ho-shot .ho-slip,.ho-shot .ho-me--photo .ho-me__pic{box-shadow:none}
.ho-shot{isolation:isolate}
.ho-shot .ho-slip{position:relative}
.ho-shot .ho-me--photo{isolation:isolate}
.ho-shot .ho-slip:after{content:"";position:absolute;z-index:-1;inset:-2px;border-radius:inherit;transform:translate(4px,4px);background:#B3262E}

.ho-shot .ho-me--photo:after{content:"";position:absolute;z-index:-1;inset:-2.5px;border-radius:16px;transform:translate(6px,6px);background:var(--ink)}
/* owner 2026-11-15, round 3: a second button, top right, swaps the photo for the week's joy face */
.ho-me__mode{position:absolute;z-index:2;right:-16px;top:-14px;width:42px;height:42px;border-radius:50%;border:2.5px solid var(--ink);background:#fff;box-shadow:2px 2px 0 var(--ink);display:grid;place-items:center;cursor:pointer}
.ho-me__mode svg{width:22px;height:22px;fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ho-me__mode:active{transform:translate(2px,2px);box-shadow:none}
.ho-shot .ho-me__mode{display:none}
/* round 4 */
.ho-me__pic.is-flipin{animation:hoflipin .17s ease-out}
@keyframes hoflipin{from{transform:rotateY(90deg) scale(.96)}}
.ho-shot .ho-who{white-space:nowrap;width:100%;overflow:hidden}
.ho-me__face svg,.ho-me__doodle svg{overflow:visible}
/* live version (owner 2026-11-15) */
.ho-earn{margin-top:10px;font-size:13px;color:var(--ink-soft);text-wrap:pretty}
/* loading: the site's skeleton in the intro card's shape (picture, two lines, button) */
.ho-load{display:grid;justify-items:center;gap:14px;padding:40px 0;--skel-a:rgba(13,27,62,.09);--skel-b:rgba(13,27,62,.03)}
.ho-load .skel:nth-child(1){width:200px;height:166px;border-radius:24px;margin-bottom:8px}
.ho-load .skel:nth-child(2){width:46%;height:20px}
.ho-load .skel:nth-child(3){width:70%;height:30px}
.ho-load .skel:nth-child(4){width:190px;height:52px;border-radius:999px;margin-top:14px}
.appnav .hotoast{bottom:calc(78px + env(safe-area-inset-bottom))}
/* the photo frame waits for the member's own photos (owner 2026-11-16) */
/* shimmer: the site's one skeleton (.ho-me__skel in styles.css) */
.ho-me.is-in{animation:hopop .35s ease}
/* owner 2026-11-16: ดวงสัปดาห์นี้ของ / the name, two lines */
.ho-who{font-size:24px;line-height:1.25}
.ho-who b{display:block;width:fit-content;max-width:100%;margin:2px auto 0;font-size:1.45em;line-height:1.2;overflow-wrap:anywhere}
.ho-shot .ho-who{font-size:20px;white-space:normal;overflow:visible}
.ho-shot .ho-who b{font-size:34px;white-space:nowrap;overflow:hidden;max-width:none}
/* share picture is a Facebook feed post, 4:5 = 1080x1350 (owner 2026-11-16, was a 9:16 story) */
.ho-shot{width:432px;height:540px;padding:18px 28px 50px}
.ho-shot .ho-who{font-size:21px;line-height:1.25}
.ho-shot .ho-me{margin:12px auto 6px}
.ho-shot .ho-me--photo{width:196px;height:144px}
.ho-shot .ho-me__face{width:58px;height:58px;right:-16px;bottom:-10px}
.ho-shot .ho-lv{font-size:29px}
.ho-shot .ho-head{font-size:13px;margin-top:0}
.ho-shot .ho-slip{margin-top:8px;padding:6px 8px}
.ho-shot .ho-slip p.nb{font-size:12.5px;line-height:1.55}

.ho-shot__foot{bottom:10px}
.ho-shot__foot .logo{font-size:16px}
/* owner 2026-11-16 (iPhone): the colour panel runs on under the tab bar to the very bottom (Safari's bar shrinking while
   scrolling showed white below it), the page behind takes the panel's colour (rubber-band overscroll), and the
   "เลื่อนลงอ่านต่อ" hint sits above the tab bar instead of under it */
.has-atabs body.page-horo{padding-bottom:0}
.has-atabs .page-horo .hohero{min-height:calc(100lvh - 8px);margin-bottom:0;padding-bottom:calc(92px + env(safe-area-inset-bottom))}
.has-atabs .ho-peek{bottom:calc(58px + env(safe-area-inset-bottom));padding:30px 16px 8px}
.page-horo{transition:background .25s}
/* owner 2026-11-16 (later): the 4:5 picture has nothing over it, so it is laid out evenly: same room above the title as
   below the logo (the logo is in the flow now), and the photo's tape no longer touches the name */
/* owner 2026-11-16 (third): spaced like the result on screen (title, tagline, verse close together), the whole block centred */
.ho-shot{padding:20px 28px;justify-content:center}
.ho-shot .ho-lvw{margin-top:6px}
.ho-shot .ho-head{margin-top:2px}
.ho-shot .ho-slip{margin-top:14px!important}
/* the logo sits at the same spot with or without the lucky cards (owner 2026-11-16); the rest is centred above it */
.ho-shot{padding-bottom:66px}
.ho-shot__foot{position:absolute!important;left:0;right:0;bottom:18px!important;margin:0!important}
.ho-shot .ho-who{font-size:19px}
.ho-shot .ho-who b{font-size:30px}
.ho-shot .ho-me{margin:16px auto 4px}
.ho-shot .ho-me--photo{width:180px;height:132px}
.ho-shot .ho-lv{font-size:27px}
.ho-shot .ho-slip p.nb{line-height:1.45}

.ho-shot__foot{position:static;margin-top:8px}
/* a locked part shakes when tapped and points at the button that opens it (owner 2026-11-16) */
.ho-lock,.ho-bcard.is-shut{cursor:pointer}
.ho-lock{pointer-events:auto}
.is-shake,.ho-lock div.is-shake{animation:hoshake .5s ease}
@keyframes hoshake{20%{transform:translateX(-6px) rotate(-2deg)}40%{transform:translateX(6px) rotate(2deg)}60%{transform:translateX(-4px) rotate(-1deg)}80%{transform:translateX(3px)}}
.ho-lock svg,.ho-bcard.is-shut svg{transform-origin:50% 30%;animation:holockw 2.6s ease-in-out infinite}
@keyframes holockw{0%,78%,100%{transform:rotate(0)}82%{transform:rotate(-14deg)}86%{transform:rotate(12deg)}90%{transform:rotate(-8deg)}94%{transform:rotate(5deg)}}
.ho-btn.is-call{animation:hocall .6s ease 2}
@keyframes hocall{40%{transform:scale(1.06)}}
.ho-home{margin:20px auto 0;text-decoration:none}
@media (prefers-reduced-motion:reduce){.is-shake,.ho-lock svg,.ho-bcard.is-shut svg,.ho-btn.is-call{animation:none}}
/* "เลื่อนลงอ่านต่อ": no white band, just the words with a soft shadow (owner 2026-11-16) */
.ho-peek,.has-atabs .ho-peek{background:none}
.ho-peek b{text-shadow:0 1px 2px rgba(255,255,255,.95),0 0 10px rgba(255,255,255,.9),0 2px 14px rgba(13,27,62,.18)}
.ho-peek b svg{filter:drop-shadow(0 0 4px rgba(255,255,255,.95))}
/* owner 2026-11-16: the photo is a circle everywhere, on screen and in the share picture (the square shadow behind a
   rounded photo drew out of shape in the picture); no tape on a circle */
.ho-me--photo{width:188px;height:188px;transform:none}
.ho-me--photo .ho-me__pic{border-radius:50%}

.ho-shot .ho-me--photo{width:150px;height:150px}
.ho-shot .ho-me--photo:after{border-radius:50%}
.ho-me--photo .ho-me__shuf{left:-6px;bottom:-4px}
.ho-me--photo .ho-me__mode{right:-6px;top:-2px}
.ho-me--photo .ho-me__face{right:-14px;bottom:-6px}
/* owner 2026-11-16 (later): the circle sits at the same spot with a photo or the joy face (the hint below is absolute,
   so it never moves anything), and the share picture's shadow is the screen's scaled down (150 / 188): the screen's
   box-shadow sits 6px off the border box, under the outline */
.ho-me--photo,.ho-me--photo:has(.ho-me__hint){margin-bottom:40px}
.ho-shot .ho-me--photo,.ho-shot .ho-me--photo:has(.ho-me__hint){margin-bottom:4px}
.ho-shot .ho-me--photo .ho-me__pic{border-width:4.8px;outline-width:2px}
.ho-shot .ho-me--photo:after{inset:0;transform:translate(4.8px,4.8px)}
/* ===== crystal ball (owner 2026-11-17): the result photo inside a glowing glass ball on a stand ===== */
.ho-me--photo{isolation:isolate;margin-bottom:62px}
.ho-me--photo .ho-me__pic{border-color:#EDE6FF;outline-color:var(--ink)}
.ho-ball__aura{position:absolute;z-index:-2;inset:-26px;border-radius:50%;background:radial-gradient(closest-side,rgba(181,150,255,.75),rgba(255,216,77,.35) 60%,transparent);animation:hoaura 3s ease-in-out infinite}
@keyframes hoaura{50%{transform:scale(1.08);opacity:.6}}
.ho-ball__glass{position:absolute;inset:0;border-radius:50%;pointer-events:none;overflow:hidden;
  background:radial-gradient(circle at 30% 24%,rgba(255,255,255,.85) 0 8%,rgba(255,255,255,.25) 14%,transparent 30%),
             radial-gradient(circle at 50% 50%,transparent 56%,rgba(117,73,184,.35) 72%,rgba(13,27,62,.4) 100%)}
.ho-ball__glass:after{content:"";position:absolute;top:-20%;bottom:-20%;left:-70%;width:45%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);transform:rotate(18deg);animation:hoglass 3.4s ease-in-out 1s infinite}
@keyframes hoglass{0%,30%{left:-70%}70%,100%{left:130%}}
.ho-ball__orbit{position:absolute;inset:-18px;border-radius:50%;pointer-events:none;animation:hoorbit 14s linear infinite}
.ho-ball__orbit i{position:absolute;width:12px;height:12px;margin:-6px;background:#FFD84D;clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);animation:hotwinkle 1.6s ease-in-out infinite}
.ho-ball__orbit i:nth-child(1){left:50%;top:0}
.ho-ball__orbit i:nth-child(2){left:100%;top:50%;animation-delay:.4s;background:#fff}
.ho-ball__orbit i:nth-child(3){left:50%;top:100%;animation-delay:.8s;width:9px;height:9px;margin:-4.5px}
.ho-ball__orbit i:nth-child(4){left:0;top:50%;animation-delay:1.2s;background:#B596FF}
@keyframes hoorbit{to{transform:rotate(360deg)}}
@keyframes hotwinkle{50%{transform:scale(.4) rotate(45deg);opacity:.5}}
.ho-ball__stand{position:absolute;z-index:-1;left:50%;bottom:-38px;width:128px;height:42px;margin-left:-64px;overflow:visible}
.ho-me--photo .ho-me__hint{bottom:-62px}
.ho-me--photo:has(.ho-me__hint){margin-bottom:72px}
.ho-me--photo.is-wait .ho-ball__stand{display:none}
/* the share picture: still (no motion), stand and glow drawn smaller */
.ho-shot .ho-me--photo,.ho-shot .ho-me--photo:has(.ho-me__hint){margin-bottom:34px}
.ho-shot .ho-ball__stand{width:104px;height:34px;margin-left:-52px;bottom:-30px}
.ho-shot .ho-ball__aura,.ho-shot .ho-ball__glass:after,.ho-shot .ho-ball__orbit,.ho-shot .ho-ball__orbit i{animation:none}
.ho-shot .ho-ball__glass:after{display:none}
.ho-shot .ho-ball__orbit{inset:-14px}
/* share picture sits higher: less room above the title (owner 2026-11-17) */
.ho-shot{justify-content:flex-start;padding-top:30px}
/* demo bar (staging / localhost only) */
.ho-demo{position:fixed;z-index:80;left:8px;right:8px;top:calc(env(safe-area-inset-top) + 6px);display:flex;gap:4px;overflow-x:auto;padding:6px;border-radius:14px;background:rgba(13,27,62,.88);font-size:12px;scrollbar-width:none}
.ho-demo b{color:#FFD84D;padding:4px 6px}
.ho-demo a{flex:none;padding:4px 9px;border-radius:99px;color:#fff;text-decoration:none;background:rgba(255,255,255,.12)}
.ho-demo a[aria-current]{background:var(--orange)}
@media (prefers-reduced-motion:reduce){.ho-ball__aura,.ho-ball__glass:after,.ho-ball__orbit,.ho-ball__orbit i{animation:none}}
/* share picture fit (owner 2026-11-17): smaller ball so the lucky cards clear the logo; softer glass shine */
.ho-shot .ho-me--photo{width:124px;height:124px}
.ho-shot .ho-me__face{width:50px;height:50px;right:-14px;bottom:-6px}
.ho-shot .ho-me--photo .ho-me__pic{border-width:4px;outline-width:2px}
.ho-shot .ho-me--photo:after{transform:translate(4px,4px)}
.ho-shot .ho-ball__stand{width:88px;height:29px;margin-left:-44px;bottom:-25px}
.ho-shot .ho-me--photo,.ho-shot .ho-me--photo:has(.ho-me__hint){margin:8px auto 28px}
.ho-shot .ho-ball__aura{inset:-18px}
.ho-shot .ho-ball__orbit{inset:-11px}
.ho-shot .ho-lv{font-size:25px}
.ho-shot{padding-top:24px}
.ho-ball__glass{background:radial-gradient(circle at 30% 24%,rgba(255,255,255,.55) 0 5%,rgba(255,255,255,.15) 11%,transparent 24%),
  radial-gradient(circle at 50% 50%,transparent 60%,rgba(117,73,184,.28) 76%,rgba(13,27,62,.35) 100%)}
/* owner 2026-11-17: the hints sit beside their buttons (เปลี่ยนรูป left of the shuffle, ปิดรูป / เปิดรูป right of the
   photo switch), arrows pointing at them; the ball keeps the same room below in every mode */
.ho-me--photo,.ho-me--photo:has(.ho-me__hint){margin-bottom:52px}
.ho-me--photo .ho-me__hint{left:auto;right:calc(100% + 10px);bottom:2px;top:auto;font-size:15px;gap:0;align-items:center;transform:rotate(-3deg)}
.ho-me--photo .ho-me__hint svg{width:24px;height:18px;margin:0;transform:scale(-1,1) rotate(-30deg)}
.ho-me--photo .ho-me__hint--mode{right:auto;left:calc(100% + 10px);bottom:auto;top:6px;transform:rotate(3deg)}
.ho-me--photo .ho-me__hint--mode svg{transform:rotate(-20deg)}
.ho-shot .ho-me__hint{display:none}
.ho-me--photo .ho-me__hint:not(.ho-me__hint--mode){right:calc(100% + 16px)}
/* hints clear of their buttons (owner 2026-11-17) */
.ho-me--photo .ho-me__hint:not(.ho-me__hint--mode){right:calc(100% + 22px)}
.ho-me--photo .ho-me__hint--mode{left:calc(100% + 22px)}
/* owner 2026-11-17: เปลี่ยนรูป 3px and ปิดรูป 8px further left */
.ho-me--photo .ho-me__hint:not(.ho-me__hint--mode){right:calc(100% + 25px)}
.ho-me--photo .ho-me__hint--mode{left:calc(100% + 14px)}
/* owner 2026-11-17 (later): เปลี่ยนรูป 3px and ปิดรูป 5px further left again */
.ho-me--photo .ho-me__hint:not(.ho-me__hint--mode){right:calc(100% + 28px)}
.ho-me--photo .ho-me__hint--mode{left:calc(100% + 9px)}
/* owner 2026-11-17 (later): both hints 2px further left and 3px lower */
.ho-me--photo .ho-me__hint:not(.ho-me__hint--mode){right:calc(100% + 30px);bottom:-1px}
.ho-me--photo .ho-me__hint--mode{left:calc(100% + 7px);top:9px}
/* owner 2026-11-17 (later): เปลี่ยนรูป 2px back to the right */
.ho-me--photo .ho-me__hint:not(.ho-me__hint--mode){right:calc(100% + 28px)}
/* owner 2026-11-29: the เปลี่ยนรูป arrow sat 24px further from its button in Chrome (desktop, Android) than on iPhone. The
   global svg{max-width:100%} made Safari size the hint without its arrow, so the arrow hung out to the right, and the
   offsets above were tuned on that. The arrow now counts in every browser, placed where the iPhone showed it */
.ho-me__hint svg{max-width:none}
.ho-me--photo .ho-me__hint:not(.ho-me__hint--mode){right:calc(100% + 4px)}
/* owner 2026-11-17: a long lucky-event name (3 lines) pushed the cards onto the Happy IMPACT logo in the share picture:
   the name takes at most 2 lines, smaller */

/* owner 2026-11-17: a dashed line between the ฝ่าย rows of "N คน ได้ดวงเหมือนคุณ" */
.ho-divs{gap:0}
.ho-div{padding:10px 0}
.ho-div+.ho-div{border-top:1.5px dashed rgba(13,27,62,.35)}
/* owner 2026-11-17: the lucky cards get an inner frame line like the เซียมซี slip (.ho-slip:before) */
.ho-bcard{position:relative}
.ho-bcard:before{content:"";position:absolute;inset:4px;border:1px solid var(--ink);border-radius:10px;opacity:.55;pointer-events:none}
.ho-bcard.is-shut:before{border-style:dashed}

a.ho-btn{text-decoration:none}
/* owner 2026-11-17: the lucky cards stand straight (no tilt) */
.ho-bcard:nth-child(n){transform:none}
/* owner 2026-11-17: "you unlocked <name>'s cards" pop-up for a member who opens a friend's link (unlockPop in horo.js).
   Motion: the window pops in, the two lucky cards fan out behind the friend's photo, the padlock shakes and its shackle
   swings open, then sparks fly. */
.ho-pop{border:0;padding:16px;background:none;max-width:none;max-height:none;width:100%;height:100%;overscroll-behavior:contain;display:grid;place-items:center}
.ho-pop:not([open]){display:none}
.ho-pop::backdrop{background:rgba(13,27,62,.5);animation:hopopfade .25s ease}
.ho-pop__card{width:min(340px,100%);padding:26px 22px 22px;border:2px solid var(--ink);border-radius:22px;background:#fff;box-shadow:5px 5px 0 var(--ink);text-align:center;animation:hopopin .45s cubic-bezier(.2,.8,.2,1.2)}
.ho-pop__card h2{margin-top:2px;font-size:22px;line-height:1.35;text-wrap:balance}
.ho-pop__n{margin-top:8px;font-size:15px;color:var(--ink-soft);line-height:1.5}
.ho-pop__n b{display:inline-block;margin-right:4px;padding:1px 10px;border-radius:99px;background:var(--orange);color:#fff}
.ho-pop__art{position:relative;width:200px;height:132px;margin:0 auto 12px}
.ho-pop__c{position:absolute;top:22px;left:50%;width:64px;height:86px;margin-left:-32px;border:1.5px solid var(--ink);border-radius:12px;background:#FFF8E1;opacity:0}
.ho-pop__c:before{content:"";position:absolute;inset:4px;border:1px solid var(--ink);border-radius:8px;opacity:.55}
.ho-pop__c--l{animation:hopopcl .55s cubic-bezier(.2,.8,.2,1.2) .35s forwards}
.ho-pop__c--r{animation:hopopcr .55s cubic-bezier(.2,.8,.2,1.2) .45s forwards}
.ho-pop__me{position:absolute;left:50%;top:14px;width:96px;height:96px;margin-left:-48px;border:3px solid var(--ink);border-radius:50%;background:var(--sky);overflow:hidden;box-shadow:3px 3px 0 var(--ink)}
.ho-pop__me img{width:100%;height:100%;object-fit:cover}
.ho-pop__me svg{width:100%;height:100%;padding:8px}
.ho-pop__lock{position:absolute;right:42px;bottom:0;width:44px;height:44px;padding:6px;border:2px solid var(--ink);border-radius:50%;background:#FFD84D;fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;overflow:visible;animation:hopopshake .5s ease .7s}
.ho-pop__shackle{transform-box:fill-box;transform-origin:100% 100%;animation:hopopopen .4s cubic-bezier(.2,.8,.2,1.4) 1.15s forwards}
.ho-pop__spark{position:absolute;left:50%;top:60px;width:10px;height:10px;margin:-5px;border-radius:2px;background:var(--orange);opacity:0;animation:hopopspark .7s ease-out 1.3s forwards}
.ho-pop__spark:nth-child(2){background:#FFD84D;--x:70px;--y:-50px}
.ho-pop__spark:nth-child(1){--x:-72px;--y:-44px}
.ho-pop__spark:nth-child(3){background:#1A56DB;--x:86px;--y:20px}
.ho-pop__spark:nth-child(4){background:#FFD84D;--x:-84px;--y:26px}
@keyframes hopopfade{from{opacity:0}}
@keyframes hopopin{from{opacity:0;transform:scale(.8) translateY(20px)}}
@keyframes hopopcl{from{opacity:1;transform:none}to{opacity:1;transform:translateX(-62px) rotate(-12deg)}}
@keyframes hopopcr{from{opacity:1;transform:none}to{opacity:1;transform:translateX(62px) rotate(12deg)}}
@keyframes hopopshake{20%{transform:rotate(-14deg)}40%{transform:rotate(12deg)}60%{transform:rotate(-8deg)}80%{transform:rotate(5deg)}}
@keyframes hopopopen{to{transform:translateY(-2.5px) rotate(28deg)}}
@keyframes hopopspark{0%{opacity:1;transform:translate(0,0) rotate(0)}100%{opacity:0;transform:translate(var(--x),var(--y)) rotate(160deg)}}
@media (prefers-reduced-motion:reduce){.ho-pop__card,.ho-pop::backdrop,.ho-pop__lock{animation:none}
  .ho-pop__c--l{animation:none;opacity:1;transform:translateX(-62px) rotate(-12deg)}.ho-pop__c--r{animation:none;opacity:1;transform:translateX(62px) rotate(12deg)}
  .ho-pop__shackle{animation:none;transform:translateY(-2.5px) rotate(28deg)}.ho-pop__spark{display:none}}
.ho-pop:focus{outline:none}
/* owner 2026-11-17 (later): the friend's name is underlined; the padlock's lines keep clear of its circle's edge */
.ho-pop__nm{text-decoration:underline;text-decoration-color:var(--orange);text-decoration-thickness:3px;text-underline-offset:7px;text-decoration-skip-ink:none}
.ho-pop__lock{padding:6px}   /* the drawing's viewBox (-3 -5 30 30) leaves room for the raised shackle: nothing is cut */
/* (the slip is centred as laid out: moving it by half its shadow was tried and undone, owner 2026-11-17) */

/* ---- unlocked share picture (owner 2026-11-17 picked proposal 3, then took the colour off the tear-off part) ---- */
/* 3: everything on the one เซียมซี slip, a dashed tear line, and the lucky number as a red stamp on its corner */
.ho-slip--all .ho-slip__lucky{margin:8px 6px 0;padding-top:8px;border-top:1.5px dashed #B3262E;display:grid;gap:2px}
.ho-slip--all .ho-slip__lucky p{font-size:13px;line-height:1.45}
.ho-slip--all .ho-slip__lucky small{color:#B3262E;font-weight:600;font-size:11px}

.ho-slip--all{padding-top:14px}
/* locked picture (owner 2026-11-17): a narrower slip with bigger lines instead of one stretched across the picture */
.ho-shot .ho-slip--shut{width:auto;max-width:330px;padding:16px 28px}
.ho-shot .ho-slip--shut p.nb{font-size:16px;line-height:1.8}
/* owner 2026-11-17 (seventh round): the red slip sits 10px higher on both pictures; on the unlocked one the lucky colour
   shares the line under the tear with the lucky event (a dot of that colour before it) */
.ho-shot .ho-slip{margin-top:4px!important}
.ho-slip--all .ho-slip__lucky{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;column-gap:14px;row-gap:2px}

/* owner 2026-11-17 (eighth round): colour and event on one line, centred on each other, a dashed line between them;
   the line above them is solid */
.ho-slip--all .ho-slip__lucky{flex-wrap:nowrap;align-items:center;column-gap:0;border-top-style:solid}
.ho-slip--all .ho-slip__lucky p{display:flex;align-items:center;gap:5px;min-width:0;line-height:1.35}
.ho-slip--all .ho-slip__lucky p+p{margin-left:12px;padding-left:12px;border-left:1.5px dashed #B3262E;text-align:left}
.ho-slip--all .ho-slip__lucky small{flex:none}

/* the dashed divider is a gradient: a one-side dashed border came out as a single dot in the saved picture */
.ho-slip--all .ho-slip__lucky p+p{border-left:0;padding-left:13px;background:repeating-linear-gradient(to bottom,#B3262E 0 4px,transparent 4px 7px) left center/1.5px 100% no-repeat}
/* owner 2026-11-17 (ninth round, overrides the stamp/colour-line notes above): the lucky number (red) and colour (its own
   ink) are rubber stamps in the empty space either side of the verse; under the verse a dashed tear line and the lucky
   event alone on its row */
.ho-slip__verse{position:relative}
.ho-ink{position:absolute;top:50%;width:64px;height:64px;overflow:visible;opacity:.92;font-family:var(--f-ui)}
.ho-ink--l{left:4px;transform:translateY(-50%) rotate(-12deg)}
.ho-ink--r{right:4px;transform:translateY(-50%) rotate(9deg)}

.ho-slip--all{padding-top:12px}
.ho-slip--all .ho-slip__lucky{display:block;border-top:1.5px dashed #B3262E;text-align:center}
.ho-slip--all .ho-slip__lucky p{display:block;padding:0;margin:0;background:none}
/* owner 2026-11-17: the lucky event's label and name in one size (งานนำโชค : ...) */
.ho-slip--all .ho-slip__lucky small,.ho-slip--all .ho-slip__lucky b{font-size:13px}
.ho-slip--all .ho-slip__lucky small{font-weight:600}
.ho-ink{opacity:1}
/* owner 2026-11-17 (eleventh round): unlocked slip: the verse centred between the slip's top and the tear line, the
   event centred between the tear line and the bottom; type and stamps scale with --vfs (grown in snap()) */
.ho-shot .ho-slip--all{padding:0 8px;--vfs:13px}
.ho-slip--all .ho-slip__verse{padding:calc(var(--vfs) * .95) 0}
.ho-slip--all .ho-slip__verse p.nb{font-size:var(--vfs);line-height:1.7}
.ho-slip--all .ho-slip__lucky{margin:0 6px;padding:calc(var(--vfs) * .75) 0}
.ho-slip--all .ho-slip__lucky small,.ho-slip--all .ho-slip__lucky b{font-size:var(--vfs);line-height:1.35}
.ho-slip--all .ho-ink{width:calc(var(--vfs) * 5);height:calc(var(--vfs) * 5)}
.ho-ink{opacity:.95}
/* owner 2026-11-17: conjuring a new photo in the ball (magic() in horo.js) */
.ho-magic{position:absolute;inset:0;z-index:3;pointer-events:none;border-radius:50%}
.ho-magic__mist{position:absolute;inset:6%;border-radius:50%;background:radial-gradient(circle at 50% 45%,rgba(255,255,255,.95),rgba(214,196,255,.9) 38%,rgba(150,120,235,.75) 62%,rgba(150,120,235,0) 74%);
  animation:homist 1.25s ease-in-out forwards}
.ho-magic i{position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px;opacity:0;
  background:radial-gradient(circle,#fff 0 25%,#FFE27A 45%,rgba(255,226,122,0) 70%);
  clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);
  animation:hospin 1.2s cubic-bezier(.3,.1,.3,1) var(--d) forwards}
.ho-me.is-magic #mepic{animation:hoconj 1.1s ease-in-out}
@keyframes homist{0%{opacity:0;transform:scale(.4) rotate(0)}35%,55%{opacity:1;transform:scale(1) rotate(120deg)}100%{opacity:0;transform:scale(1.15) rotate(260deg)}}
@keyframes hospin{0%{opacity:0;transform:rotate(var(--a)) translateY(calc(var(--r) * -1.25)) scale(.4)}25%{opacity:1}
  70%{opacity:1;transform:rotate(calc(var(--a) + 300deg)) translateY(calc(var(--r) * -1)) scale(1.1)}100%{opacity:0;transform:rotate(calc(var(--a) + 420deg)) translateY(-10%) scale(.3)}}
@keyframes hoconj{0%{filter:none;transform:none}40%{filter:blur(6px) saturate(.4) brightness(1.5);transform:scale(.9)}
  55%{filter:blur(8px) brightness(1.7);transform:scale(.88)}100%{filter:none;transform:none}}
@media (prefers-reduced-motion:reduce){.ho-magic{display:none}.ho-me.is-magic #mepic{animation:none}}
/* owner 2026-11-18: the purple conjuring mist and the ball glow stay behind the joy face */
.ho-me--photo .ho-me__face{z-index:4}

/* owner 2026-11-23: paused until 26 Nov (07807 still plays) */
.ho-closed{min-height:60vh;display:grid;place-content:center;justify-items:center;gap:8px;text-align:center;color:#fff;padding:40px 16px}
.ho-closed__ball svg{width:96px;height:96px}
.ho-closed h1{font-size:24px;line-height:1.3}
.ho-closed p{font-size:16px;opacity:.85}
.ho-closed__sub{font-size:14px!important;opacity:.65!important}
.ho-closed__go{margin-top:8px;display:inline-flex;padding:10px 22px;border-radius:99px;background:#F26C21;color:#fff;font-weight:700;border:2px solid #fff;text-decoration:none}
.ho-closed{background:var(--ink,#0D1B3E);border-radius:28px;margin:12px 0}

/* ---- December theme (owner 2026-11-29, weeks of 30 Nov to 28 Dec): the last page of the year's calendar ---- */
