/* Event drawing: gathering light, opening the seal, receiving the result. */
.premium .draw-overlay {padding:30px 22px;overflow-y:auto;justify-content:center;gap:14px;z-index:220;}
.premium .draw-overlay::before {content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 45%,#c7b7770c,transparent 60%);}
.premium.draw-open .toast-root {opacity:0;pointer-events:none;}
.draw-ritual.seal-ritual {width:124px;height:124px;flex-shrink:0;position:relative;transition:transform .55s cubic-bezier(.22,1,.36,1),opacity .45s ease;will-change:transform;}
.draw-stage {display:flex;gap:9px;align-items:center;color:var(--muted-dim);font-size:10px;letter-spacing:.16em;margin:2px 0 4px;}
.draw-stage i {width:28px;height:1px;background:var(--line);}
.draw-stage span {transition:color .35s;text-align:center;}
.draw-overlay[data-phase="gather"] .draw-stage span:nth-of-type(1),
.draw-overlay[data-phase="reveal"] .draw-stage span:nth-of-type(2),
.draw-overlay[data-phase="ready"] .draw-stage span:nth-of-type(3) {color:var(--gold-bright);}
.draw-overlay[data-phase="reveal"] .seal-ritual,.draw-overlay[data-phase="ready"] .seal-ritual {transform:scale(.76);opacity:.9;}
.premium .draw-overlay[data-phase="reveal"],.premium .draw-overlay[data-phase="ready"] {gap:12px;}
.premium .draw-overlay h2 {font-size:28px;line-height:1.4;letter-spacing:.08em;}
.premium .draw-overlay p.draw-message {font-size:13px;line-height:1.8;max-width:620px;}
.draw-overlay .ritual-caption {position:relative;z-index:1;font-size:10px;}
.fortune-grid {position:relative;z-index:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;width:min(880px,100%);margin:10px 0 8px;}
.fortune-grid.single,
.fortune-grid[data-count="1"] {grid-template-columns:minmax(0,430px);justify-content:center;}
.fortune-grid[data-count="3"] {grid-template-columns:repeat(3,minmax(0,1fr));width:min(1120px,100%);}
.fortune-grid[data-count="4"] {grid-template-columns:repeat(2,minmax(0,1fr));width:min(900px,100%);}
.fortune-grid[hidden],.draw-accept[hidden] {display:none!important;}
.fortune-card {position:relative;min-height:280px;perspective:1100px;opacity:0;transform:translateY(22px) scale(.95);transition:opacity .48s ease,transform .56s cubic-bezier(.22,1,.36,1);}
.draw-overlay[data-phase="reveal"] .fortune-card,
.draw-overlay[data-phase="ready"] .fortune-card {opacity:1;transform:none;}
.fortune-card-inner {position:relative;width:100%;height:100%;min-height:280px;transform-style:preserve-3d;transition:transform .72s cubic-bezier(.22,1,.36,1);will-change:transform;}
.fortune-card.is-open .fortune-card-inner {transform:rotateY(180deg);}
.fortune-card__front,.fortune-card__back {border:1px solid #d9bc7c70;border-radius:19px;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:linear-gradient(145deg,#24432ee8,#0f281ff5);box-shadow:0 20px 65px #0005,inset 0 1px #ffffff10;overflow:hidden;}
.fortune-card__front {position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;}
.fortune-card__front::before,.fortune-card__back::before {content:"";position:absolute;inset:9px;border:1px solid #d9bc7c22;border-radius:12px;pointer-events:none;}
.fortune-card__front .fortune-seal {width:93px;height:93px;color:var(--gold-bright);filter:drop-shadow(0 0 23px #d9bc7c44);}
.fortune-card__front small {color:var(--gold);font-size:11px;letter-spacing:.24em;}
.fortune-card__front span {color:var(--muted);font-family:var(--font-display);font-size:15px;letter-spacing:.15em;}
.fortune-card__back {position:relative;min-height:300px;height:100%;padding:25px 26px 24px;transform:rotateY(180deg);display:flex;flex-direction:column;}
.fortune-card.is-open .fortune-card__back {box-shadow:0 20px 65px #0005,0 0 45px color-mix(in srgb,var(--el,#d9bc7c) 10%,transparent),inset 0 1px #ffffff10;}
.fortune-person {display:flex;align-items:center;gap:11px;margin-bottom:19px;color:var(--muted);font-size:12px;}
.fortune-avatar {width:36px;height:36px;flex-shrink:0;border:1px solid #d9bc7c40;}
.fortune-person strong {color:var(--gold);font-family:var(--font-display);font-size:18px;font-weight:400;margin-right:5px;}
.fortune-label {font-size:9px;letter-spacing:.22em;color:var(--muted-dim);margin-bottom:7px;}
.fortune-card__back h3 {color:var(--gold-bright);font-family:var(--font-display);font-size:25px;font-weight:500;line-height:1.5;margin:0 0 12px;}
.premium .draw-overlay .fortune-card__back p {padding:0;text-align:left;font-size:15px;line-height:1.95;color:var(--ink-soft);margin:0 0 20px;}
.fortune-card__back .tags {margin-top:auto;padding-top:14px;border-top:1px solid var(--line);}
.draw-accept {position:relative;z-index:1;min-width:180px;min-height:47px;flex-shrink:0;margin-top:3px;}
.premium .draw-overlay[data-phase="ready"] .draw-overlay__line {width:260px;background:#d9bc7c35;}
.draw-overlay[data-phase="ready"] .draw-overlay__line::after {animation:none;translate:0;opacity:.5;}
@media(max-height:820px) and (min-width:641px) {
  .premium .draw-overlay {padding:18px;gap:8px;}
  .draw-ritual.seal-ritual {width:250px;height:250px;}
  .draw-overlay[data-phase="reveal"] .seal-ritual,.draw-overlay[data-phase="ready"] .seal-ritual {width:72px;height:72px;}
  .fortune-card,.fortune-card-inner,.fortune-card__back {min-height:275px;}
  .fortune-grid {margin:3px 0;}
}
@media(max-width:640px) {
  .celestial-art .celestial-player.one {left:0;top:12%;}
  .celestial-art .celestial-player.two {right:0;bottom:13%;}
  .duo-connection {height:44px;margin:-3px 0 12px;font-size:13px;gap:13px;}
  .binary-link {width:160px;height:44px;}
  .premium .draw-overlay {padding:20px 16px;gap:12px;min-height:100svh;}
  .draw-ritual.seal-ritual {width:260px;height:260px;}
  .draw-overlay[data-phase="reveal"] .seal-ritual,.draw-overlay[data-phase="ready"] .seal-ritual {width:75px;height:75px;}
  .premium .draw-overlay h2 {font-size:26px;}
  .draw-overlay .ritual-caption {font-size:8px;letter-spacing:.23em;}
  .draw-stage {font-size:9px;gap:7px;margin:0;}
  .draw-stage i {width:20px;}
  .premium .draw-overlay p.draw-message {font-size:11px;line-height:1.6;padding:0 10px;}
  .fortune-grid {grid-template-columns:1fr;gap:12px;max-width:410px;margin:3px 0;}
  .fortune-grid.single {grid-template-columns:1fr;}
  .fortune-card,.fortune-card-inner,.fortune-card__back {min-height:195px;}
  .fortune-card__back {padding:17px 21px 18px;}
  .fortune-card__front {gap:12px;}
  .fortune-card__front .fortune-seal {width:65px;height:65px;}
  .fortune-person {gap:8px;margin-bottom:9px;font-size:11px;}
  .fortune-avatar {width:28px;height:28px;}
  .fortune-person strong {font-size:16px;}
  .fortune-label {display:none;}
  .fortune-card__back h3 {font-size:21px;line-height:1.5;margin-bottom:8px;}
  .premium .draw-overlay .fortune-card__back p {font-size:13px;line-height:1.8;margin-bottom:10px;}
  .fortune-card__back .tags {padding-top:9px;}
  .fortune-card__back .tag {font-size:10px;min-height:22px;}
  .draw-accept {min-height:44px;margin:1px 0 3px;}
  .draw-overlay[data-phase="reveal"],.draw-overlay[data-phase="ready"] {justify-content:flex-start;padding-top:max(18px,3svh);}
}
@media(prefers-reduced-motion:reduce) {
  .fortune-card-inner {transition:none;transform:none!important;}
  .fortune-card.is-open .fortune-card__front {display:none;}
  .fortune-card__back {transform:none;}
}

.premium .login-star-row {display:flex;align-items:center;gap:24px;margin-top:22px;}
.premium .login-star-row .login-marks {margin-top:0;}
.fortune-grid {align-items:start;}
.fortune-card-inner,.fortune-card__back {height:auto;}
@media(max-width:640px) {
  .premium .login-star-row {gap:12px;margin-top:16px;}
  .fortune-grid {gap:12px;}
}
@media(max-width:360px) {
  .premium .login-star-row {gap:8px;}
  .premium .login-star-row .login-mark {min-width:74px;padding:9px 13px;}
}


.fortune-grid {align-items:stretch;}
.fortune-card,.fortune-card-inner {display:grid;}
.fortune-card__back {grid-area:1 / 1;}
@media(prefers-reduced-motion:reduce) {
  .premium *, .premium *::before, .premium *::after {animation:none!important;transition:none!important;}
}

