/* css/divine.css — 開始占卜 */
.dv-root { position: absolute; inset: 0; width: 846px; height: 456px; }
.dv-setup { position: absolute; inset: 0; display: flex; gap: 10px; }
.dv-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 10px; min-width: 0; }
.dv-sp { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 14px 8px 10px; border-radius: 22px; border: 3px solid rgba(246, 182, 207, .9);
  background: linear-gradient(180deg, rgba(255, 252, 248, .94), rgba(255, 232, 242, .9)); color: var(--ink); cursor: pointer; text-align: center; box-shadow: 0 4px 10px rgba(91, 45, 99, .2);
  transition: transform .15s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s, border-color .2s; min-width: 0; }
.dv-sp:hover { transform: translateY(-3px); }
.dv-sp:active { transform: scale(.95); }
.dv-sp.on { border-color: var(--gold); background: linear-gradient(180deg, #fffdf3, #ffe3ee); box-shadow: 0 0 0 3px rgba(233, 201, 138, .8), 0 0 20px rgba(255, 210, 130, .9); transform: scale(1.03); }
.dv-sp.kfocus { box-shadow: 0 0 0 4px var(--gold), 0 0 18px rgba(255, 215, 150, .95); }
.dv-sp-name { font-size: 21px; font-weight: 900; color: var(--plum); line-height: 1.15; }
.dv-sp-desc { font-size: 17px; line-height: 1.3; color: var(--ink-soft); font-weight: 700; flex: 1; display: flex; align-items: center; }
.dv-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; min-height: 14px; }
.dv-dots i { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--pink-d)); border: 1.5px solid var(--gold-d); }
.dv-side { width: 322px; flex: none; }
.dv-side-in { display: flex; flex-direction: column; gap: 10px; height: 100%; align-items: stretch; }
.dv-side-title { font-size: 24px; font-weight: 900; color: var(--plum); text-align: center; }
.dv-summary { font-size: 19px; line-height: 1.4; color: var(--ink-soft); font-weight: 700; text-align: center; flex: 1; display: flex; align-items: center; justify-content: center; }
.dv-custom { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dv-stepper { display: flex; align-items: center; justify-content: center; gap: 12px; }
.dv-num { min-width: 78px; text-align: center; font-size: 24px; font-weight: 900; color: var(--plum); }
.dv-custom .icon-btn:disabled { filter: grayscale(.8) opacity(.5); }
.dv-go { align-self: center; min-width: 200px; margin-top: auto; }
.dv-custom + .dv-go { margin-top: 0; }

/* table */
.dv-table { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; background: #3b2347 center / cover no-repeat; box-shadow: 0 0 0 3px var(--gold), 0 8px 20px rgba(60, 25, 70, .4); }
.dv-vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(40, 15, 55, .55) 100%); z-index: 1; }
.dv-circle { position: absolute; opacity: .75; pointer-events: none; animation: dvSpin 40s linear infinite; z-index: 0; }
.dv-circle.fast { animation-duration: 4s; opacity: 1; }
@keyframes dvSpin { to { transform: rotate(360deg); } }
.dv-banner { position: absolute; left: 0; right: 0; top: 8px; display: flex; justify-content: center; gap: 8px; z-index: 400; pointer-events: none; }
.dv-step { height: 32px; padding: 0 16px; border-radius: 16px; font-size: 17px; font-weight: 900; line-height: 32px; color: #e8d9f5; background: rgba(60, 30, 80, .6); border: 2px solid rgba(233, 201, 138, .4); transition: all .3s; }
.dv-step.done { color: var(--gold); border-color: var(--gold); }
.dv-step.on { color: #fff; background: linear-gradient(180deg, #ff9fc3, var(--pink-d)); border-color: var(--gold); transform: scale(1.1); text-shadow: 0 1px 0 var(--plum); }
.dv-hint { position: absolute; left: 100px; width: 590px; top: 44px; text-align: center; font-size: 20px; font-weight: 900; color: #fff; text-shadow: var(--outline); z-index: 400; pointer-events: none; }
.dv-mascot { position: absolute; left: 4px; top: 70px; width: 92px; height: 130px; z-index: 3; pointer-events: none; }
.dv-ctl { position: absolute; right: 12px; top: 56px; width: 140px; display: flex; flex-direction: column; gap: 8px; z-index: 400; align-items: stretch; }
.dv-cb { min-width: 0; width: 140px; padding: 0 4px; font-size: 20px; }
.dv-count { font-size: 20px; font-weight: 900; color: #fff; text-shadow: var(--outline); text-align: center; }
.dv-stack { position: absolute; width: 0; height: 0; z-index: 2; }
.dv-sc { position: absolute; transition: transform .4s; will-change: transform; }
.dv-pile { position: absolute; background: none; border: 0; padding: 0; cursor: pointer; z-index: 3; transition: left .4s cubic-bezier(.4, 1.2, .5, 1), top .35s, transform .35s, opacity .35s; }
.dv-pile:hover, .dv-pile.kfocus { transform: translateY(-8px) scale(1.05); filter: drop-shadow(0 0 12px rgba(255, 220, 150, .95)); }
.dv-slot { position: absolute; border: 3px dashed rgba(255, 225, 160, .9); border-radius: 10px; background: rgba(255, 240, 200, .12); box-shadow: 0 0 14px rgba(255, 225, 160, .7), inset 0 0 12px rgba(255, 225, 160, .35); animation: dvGlow 2s ease-in-out infinite; z-index: 2; pointer-events: none; transition: opacity .3s; }
.dv-slot.filled { opacity: 0; }
.dv-slot, .dv-slab { transition: opacity .35s ease; }
.dv-pre .dv-slot, .dv-pre .dv-slab { opacity: 0; }
@keyframes dvGlow { 50% { box-shadow: 0 0 22px rgba(255, 235, 180, 1), inset 0 0 16px rgba(255, 225, 160, .5); } }
.dv-slab { position: absolute; width: 120px; text-align: center; z-index: 250; pointer-events: none; color: #fff; text-shadow: var(--outline); font-weight: 900; line-height: 1.2; }
.dv-l1 { font-size: 17px; }
.dv-l2 { font-size: 17px; color: #ffe9a8; }
.dv-pc { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; will-change: transform, left, top; border-radius: 9px; }
.dv-pc .tcard { width: 100% !important; height: 100% !important; }
.dv-pc.fan { transform-origin: 50% 100%; transform: rotate(var(--rot, 0deg)); transition: left .6s cubic-bezier(.3, 1.1, .5, 1), top .6s cubic-bezier(.3, 1.1, .5, 1), transform .2s, opacity .4s; }
.dv-pc.fan:hover, .dv-pc.fan.kfocus, .dv-pc.fan:focus-visible { transform: rotate(var(--rot, 0deg)) translateY(-30px); z-index: 300 !important; filter: drop-shadow(0 0 10px rgba(255, 225, 160, .95)); }
.dv-pc.fly, .dv-pc.placed { transition: left .55s cubic-bezier(.4, 1.1, .4, 1), top .55s cubic-bezier(.4, 1.1, .4, 1), width .55s, height .55s, transform .2s; }
.dv-pc.placed:hover, .dv-pc.placed.kfocus { transform: translateY(-4px) scale(1.04); filter: drop-shadow(0 0 12px rgba(255, 225, 160, .95)); }
.dv-pc .tcard-inner { transition-duration: .7s; }
.dv-ribbon { position: absolute; z-index: 20; pointer-events: none; animation: dvRibbon 2.2s ease-out forwards; }
@keyframes dvRibbon { 0% { opacity: 0; transform: translateY(40px) scale(.5) rotate(-12deg); } 25% { opacity: 1; transform: translateY(0) scale(1.1) rotate(4deg); } 100% { opacity: 0; transform: translateY(-190px) scale(1.2) rotate(-6deg); } }

/* result */
.dv-res { position: absolute; inset: 0; }
.dv-res-in { display: flex; flex-direction: column; height: 100%; gap: 8px; }
.dv-daily-note { text-align: center; font-size: 19px; font-weight: 900; color: var(--plum); }
.dv-reading { flex: 1; min-height: 0; }
.dv-rowb { display: flex; justify-content: center; gap: 8px; flex: none; }
.dv-rb { min-width: 0; min-height: 66px; font-size: 19px; padding: 0 4px; border-width: 12px 18px; border-image-width: 12px 18px; }
