/* The opener (opposite-hook.js): pick your type from six characters, meet your dating opposite. */
.opposite-hook{width:min(560px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:0;border:0;border-radius:28px;background:radial-gradient(ellipse at 80% 0%,#ff80bd2e,transparent 55%),linear-gradient(170deg,#2c2638,#1b1824 70%);color:var(--cream);box-shadow:0 30px 80px #0008;overflow:auto}
.opposite-hook::backdrop{background:#0d0b14b8;backdrop-filter:blur(4px)}
.hook-close{position:absolute;top:14px;right:16px;z-index:3;width:36px;height:36px;border-radius:50%;background:#ffffff14;color:var(--cream);font-size:22px;line-height:1}
.hook-close:hover{background:#ffffff26}
.hook-stage{display:flex;flex-direction:column;gap:16px;padding:22px 24px 24px}
.hook-title{font-family:var(--display);font-size:40px;line-height:1;padding-right:44px}

/* Six types */
.hook-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.hook-options[hidden]{display:none}
.hook-option{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 8px 12px;border-radius:20px;background:#eee8d9;color:#38303e;border:2.5px solid #1a1720;box-shadow:4px 5px 0 #0e0b16;transition:transform .15s,box-shadow .15s,background .2s;animation:hk-pop .3s cubic-bezier(.3,.9,.3,1.3) both}
.hook-option:nth-child(2){animation-delay:.05s}.hook-option:nth-child(3){animation-delay:.1s}.hook-option:nth-child(4){animation-delay:.15s}.hook-option:nth-child(5){animation-delay:.2s}.hook-option:nth-child(6){animation-delay:.25s}
.hook-option:hover{background:#fff1c4;transform:translate(-1px,-3px) rotate(-1.5deg);box-shadow:6px 8px 0 #0e0b16}
.hook-option:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #0e0b16}
.hook-face{width:76px;height:76px;border-radius:50%;background:var(--pink);border:2.5px solid #1a1720;overflow:hidden;flex:none}
.hook-option-label{font-family:var(--display);font-size:18px;line-height:1.1;text-align:center}
.hook-option{position:relative;overflow:visible}
.hook-pill-spot{position:absolute;width:22px;height:11px;margin:-5px 0 0 -11px;pointer-events:none;transform:rotate(var(--r));animation:hk-float 3.2s ease-in-out var(--d) infinite}
.hook-pill-spot.is-square{width:20px;height:20px;margin:-10px 0 0 -10px}
.hook-pill{display:block;width:100%;height:100%;filter:drop-shadow(1px 1.5px 0 #0e0b16)}

/* The reveal */
.hook-result{display:flex;flex-direction:column;gap:14px}
.hook-result[hidden]{display:none}
.hook-card{margin:4px auto 10px;width:min(300px,82%);transform:rotate(-2deg);animation:hk-drop .45s cubic-bezier(.3,.9,.3,1.25) both}
.hook-card img{display:block;width:100%;height:auto;border:2.5px solid #1a1720;box-shadow:6px 8px 0 #0e0b16}
.hook-card figcaption{padding:14px;background:#fff8e9;color:#241d2b;border:2.5px solid #1a1720;font-family:var(--display);font-size:22px;line-height:1.15}
.hook-actions{display:grid;gap:10px}
.hook-actions button{min-height:49px;padding:0 18px;border-radius:100px;font-weight:600;font-size:15px;animation:hk-pop .28s cubic-bezier(.3,.9,.3,1.3) both;transition:transform .2s,background .2s}
.hook-yes{background:var(--pink);color:#2a0f20}
.hook-no{background:#ffffff14;color:var(--cream);border:1px solid #ffffff38}
.hook-share{justify-self:center;min-height:36px!important;padding:0 16px!important;background:#ffffff14;color:var(--cream);border:1px solid #ffffff38;font-size:13px!important;font-weight:600}
.hook-actions button:hover{transform:translateY(-2px)}
.hook-status{font-size:12px;line-height:1.5;color:#e2d5e8d0;overflow-wrap:anywhere}
.hook-status:empty{display:none}
@keyframes hk-pop{from{opacity:0;transform:translateY(8px) scale(.94)}}
@keyframes hk-float{0%,100%{transform:rotate(var(--r)) translateY(0)}50%{transform:rotate(var(--r)) translateY(-4px)}}
@keyframes hk-drop{from{opacity:0;transform:translateY(-14px) rotate(-6deg) scale(.9)}}
@media (max-width:600px){
  .hook-stage{padding:18px 16px 18px}
  .hook-title{font-size:34px}
  .hook-options{grid-template-columns:repeat(2,1fr);gap:10px}
  .hook-face{width:66px;height:66px}
  .hook-option-label{font-size:16px}
  .hook-card{width:min(260px,78%)}
  .hook-actions button{padding:0 12px;font-size:14px}
}
@media (prefers-reduced-motion:reduce){
  .opposite-hook *{animation:none!important;transition:none!important}
}

/* Keep entry and signup available before the optional artwork. */
.hook-entry{display:grid;gap:10px}
.hook-entry[hidden]{display:none}
.hook-entry p{margin:0;font-size:14px;line-height:1.4}
.hook-entry button{min-height:48px;padding:12px 18px;border-radius:100px;font-size:15px;font-weight:600}
.hook-entry .hook-entry-note{font-size:12px;color:#e2d5e8d0}
.hook-result .hook-actions{order:-1}
