/* Bible Adventures (Christian Faith pack) — set A: ark, whoswho, fishers, journeys, miracles, creation. */

/* =========================================================== Noah's Ark */
.g-ark { display: flex; flex-direction: column; align-items: center; justify-content: space-around; gap: 10px;
  padding: 14px 12px 12px; overflow: hidden; background: linear-gradient(180deg, #a9e2ff 0%, #e6f7ff 70%); }
.g-ark .ak-sky { position: absolute; inset: 0; pointer-events: none; }
.g-ark .ak-cloud { position: absolute; width: 90px; height: 30px; border-radius: 30px; background: #fff; opacity: .9; animation: drift 46s linear infinite; }
.g-ark .ak-cloud::before { content: ''; position: absolute; left: 18px; top: -16px; width: 42px; height: 38px; border-radius: 50%; background: #fff; }
.g-ark .ak-cloud.c1 { top: 18px; animation-delay: -12s; }
.g-ark .ak-cloud.c2 { top: 70px; transform: scale(.7); animation-delay: -34s; }
.g-ark .ak-sun { position: absolute; right: 18px; top: 14px; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(#fff6b0, #ffd23d);
  box-shadow: 0 0 0 8px rgba(255,220,80,.25); opacity: .9; }
.g-ark .ak-sea { position: absolute; left: -10%; right: -10%; bottom: -30px; height: 34%; pointer-events: none; border-radius: 50% 50% 0 0 / 40px 40px 0 0;
  background: linear-gradient(180deg, #9be07a, #5fbf4e); box-shadow: inset 0 6px 0 rgba(255,255,255,.35); }
/* The ark is an illustrated picture (prop/ark); the boarded animals' windows sit on its cabin wall and the drop-target door
 * on its hull (positions measured from the picture). Extra rows of windows stack upward from the wall. */
.g-ark .ak-ark { position: relative; z-index: 1; width: min(80%, 430px); aspect-ratio: 800 / 592; margin: 4px 0 22px; }
.g-ark .ak-ark.big { width: min(92%, 500px); }
.g-ark .ak-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(60,30,0,.18)); }
.g-ark .ak-ark::after { content: ''; position: absolute; left: -12%; right: -12%; bottom: -24px; height: 46px; z-index: 2; pointer-events: none; border-radius: 22px;
  background: radial-gradient(circle at 20px -6px, transparent 18px, #4fb3e8 19px) 0 0 / 40px 46px repeat-x; opacity: .95; }
body:not(.a11y-calm) .g-ark .ak-ark { animation: ak-rock 4s ease-in-out infinite; }
@keyframes ak-rock { 50% { transform: translateY(3px) rotate(.6deg); } }
.g-ark .ak-cabin { position: absolute; left: 24.5%; right: 24%; bottom: 48%; min-height: 23%; display: flex; align-items: center; justify-content: center; container-type: inline-size; }
.g-ark .ak-deck { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-content: flex-end; }
.g-ark .ak-win { position: relative; display: inline-flex; gap: 1px; padding: 4px 6px; border-radius: 12px 12px 6px 6px; background: #fff7e6;
  border: 3px solid #8a521f; font-size: clamp(18px, 13cqw, 34px); line-height: 1.1; }
.g-ark .ak-win.ak-counted::after { content: attr(data-n); position: absolute; top: -14px; right: -10px; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 13px;
  background: #ffcf3d; color: #3a2400; font-size: 15px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 0 #c98f00; animation: popIn .35s; }
.g-ark .ak-door { position: absolute; z-index: 3; bottom: 9%; left: 50%; transform: translateX(-50%); width: 64px; height: 52px; border-radius: 30px 30px 6px 6px;
  background: #5a300f; border: 3px solid #e0a868; display: grid; place-items: center; font-size: 26px; }
.g-ark .ak-ark.big .ak-door { width: 80px; height: 62px; font-size: 32px; }
.g-ark .ak-ark.drop-over .ak-door, .g-ark .ak-door.ak-gulp { animation: bump .45s; box-shadow: 0 0 0 5px #ffe066, 0 0 24px #ffe066; }
.g-ark .ak-shore { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; padding: 6px 0 4px; }
.g-ark .ak-animal { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; min-height: 86px; padding: 8px 12px;
  border-radius: 24px; background: linear-gradient(180deg, #fff, #fff3d6); box-shadow: 0 6px 0 #e4c58c, 0 10px 18px rgba(0,0,0,.15); border: none; cursor: pointer; }
.g-ark .ak-pair { font-size: clamp(36px, 9vw, 52px); line-height: 1; display: flex; gap: 2px; }
.g-ark .ak-animal.huge { min-width: 180px; min-height: 140px; }
.g-ark .ak-animal.huge .ak-pair { font-size: clamp(64px, 17vw, 96px); }
.g-ark .ak-name { font-size: 15px; font-weight: 800; color: #6b4a1a; margin-top: 4px; }
.g-ark .ak-singles { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.g-ark .ak-one { min-width: 0; min-height: 76px; font-size: clamp(36px, 9vw, 50px); padding: 6px; }
.g-ark .ak-one.ak-sel { transform: translateY(-6px) scale(1.06); box-shadow: 0 0 0 5px #ffb800, 0 10px 18px rgba(0,0,0,.2); }
.g-ark .ak-one.ak-matched { box-shadow: 0 0 0 5px #22c983, 0 10px 18px rgba(0,0,0,.2); }
.g-ark .ak-in { transition: transform .5s cubic-bezier(.5,-0.2,.7,1), opacity .5s; transform: translate(var(--fx), var(--fy)) scale(.35) !important; opacity: .2; }
.g-ark .ak-q { display: inline-flex; align-items: center; gap: 8px; }
.g-ark .ak-qpic, .ak-qpic { font-size: 1.4em; }
.ak-q .ak-qpic { font-size: 1.4em; }
.g-ark .ak-scroll { position: relative; z-index: 1; font-weight: 800; color: #5a3d12; background: #fff4d8; padding: 6px 14px; border-radius: 14px; box-shadow: 0 3px 0 #e4c58c; }
.choices.g-ark-opts .ak-ch { font-size: 1.3em; margin-right: 6px; vertical-align: -3px; white-space: nowrap; }
.g-ark .ak-rainbow { position: absolute; left: 50%; top: 4%; width: min(120%, 760px); aspect-ratio: 2 / 1; transform: translateX(-50%); pointer-events: none; z-index: 0;
  animation: ak-bow 1.4s ease-out both; }
.g-ark .ak-rainbow i { position: absolute; inset: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; border: 14px solid; border-bottom: none; }
.g-ark .ak-rainbow i:nth-child(1) { border-color: #ff5a5f; }
.g-ark .ak-rainbow i:nth-child(2) { inset: 14px 14px 0; border-color: #ff9f40; }
.g-ark .ak-rainbow i:nth-child(3) { inset: 28px 28px 0; border-color: #ffd93d; }
.g-ark .ak-rainbow i:nth-child(4) { inset: 42px 42px 0; border-color: #4cd17a; }
.g-ark .ak-rainbow i:nth-child(5) { inset: 56px 56px 0; border-color: #4aa8ff; }
.g-ark .ak-rainbow i:nth-child(6) { inset: 70px 70px 0; border-color: #9b6bff; }
@keyframes ak-bow { from { clip-path: inset(0 100% 0 0); opacity: 0; } to { clip-path: inset(0 0 0 0); opacity: .92; } }
.g-ark.ak-sunny .ak-shore { opacity: 0; transition: opacity .8s; pointer-events: none; }
.g-ark.ak-sunny { background: linear-gradient(180deg, #d9f3ff 0%, #f4fbff 58%, #9edbf5 58%, #6cc4ea 100%); }
.g-ark .ak-dove { position: absolute; z-index: 3; top: 8%; left: 14%; font-size: 44px; animation: ak-fly 3s ease-in-out both; }
@keyframes ak-fly { from { transform: translate(-80px, 40px) scale(.6); opacity: 0; } 40% { opacity: 1; } to { transform: translate(0, 0); } }
.g-ark .ak-promise { position: absolute; z-index: 4; left: 50%; top: 38%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center;
  padding: 10px 20px; border-radius: 20px; background: rgba(255,255,255,.95); box-shadow: 0 10px 24px rgba(0,0,0,.2); white-space: nowrap; }
.g-ark .ak-promise b { font-size: clamp(20px, 5vw, 28px); color: #4b2f8a; }
.g-ark .ak-promise small { font-weight: 700; color: #7a6a9a; }
body.a11y-calm .g-ark .ak-cloud, body.a11y-calm .g-ark .ak-dove, body.a11y-calm .g-ark .ak-rainbow { animation: none; }
body.a11y-motor .g-ark .ak-animal, body.a11y-lowvision .g-ark .ak-animal { min-height: 96px; }
@media (max-width: 480px) {
  .g-ark .ak-animal { min-width: 84px; }
}

/* =========================================================== Who's Who */
.g-whoswho { display: flex; align-items: center; justify-content: center; padding: 16px 12px; overflow: hidden; min-height: 200px;
  background: radial-gradient(circle at 50% 30%, #fff3c9 0%, #f8d78a 45%, #e8a84f 100%); }
.g-whoswho .ww-rays { position: absolute; inset: -40%; pointer-events: none; opacity: .35;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.7) 0 6deg, transparent 6deg 18deg); }
body:not(.a11y-calm) .g-whoswho .ww-rays { animation: spin 90s linear infinite; }
.g-whoswho .ww-scroll { position: relative; display: flex; flex-direction: column; align-items: center; width: min(86%, 440px); }
.g-whoswho .ww-rod { display: block; width: 108%; height: 18px; border-radius: 9px; background: linear-gradient(180deg, #a5672e, #6b3c14); box-shadow: 0 4px 8px rgba(0,0,0,.25); z-index: 1; }
.g-whoswho .ww-body { width: 100%; padding: 14px 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  background: linear-gradient(90deg, #f3dfb1, #fff6dc 18%, #fff6dc 82%, #f3dfb1); box-shadow: inset 0 0 22px rgba(160,110,40,.25); }
.g-whoswho .ww-av-big { font-size: clamp(54px, 14vw, 84px); line-height: 1; }
.g-whoswho .ww-name { font-size: clamp(24px, 6vw, 34px); font-weight: 800; color: #5a3410; }
.g-whoswho .ww-qmark { font-size: clamp(40px, 10vw, 58px); line-height: 1.1; }
.g-whoswho .ww-pic-big { font-size: clamp(76px, 20vw, 120px); line-height: 1.1; filter: drop-shadow(0 6px 6px rgba(0,0,0,.18)); }
.g-whoswho .ww-pic-mid { font-size: clamp(36px, 9vw, 52px); line-height: 1.1; }
.g-whoswho .ww-sub { font-weight: 800; color: #8a5a20; font-size: clamp(15px, 3.8vw, 19px); }
.g-whoswho .ww-quote { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; color: #3e2409; font-size: clamp(20px, 5vw, 28px); line-height: 1.3; padding: 6px 2px; }
.g-whoswho .ww-ref { font-weight: 800; color: #8a5a20; font-size: clamp(15px, 3.8vw, 19px); }
.g-whoswho .ww-web { font-size: 12px; font-weight: 700; color: #a08050; letter-spacing: .04em; text-transform: uppercase; }
.g-whoswho .ww-timeline { display: flex; align-items: center; gap: 6px; font-size: clamp(34px, 9vw, 48px); }
.g-whoswho .ww-timeline i { display: block; width: clamp(30px, 9vw, 60px); height: 6px; border-radius: 3px; background: #c79a5a; }
.choices.g-whoswho-opts .ww-av, .choices.g-whoswho-pics .ww-av { font-size: 1.3em; margin-right: 6px; vertical-align: -3px; }
.choices.g-whoswho-opts small { display: block; font-size: .62em; font-weight: 700; color: var(--ink-soft); }
.choices.g-whoswho-pics .choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 110px; padding: 8px 4px; }
.choices.g-whoswho-pics .ww-pic { font-size: clamp(44px, 12vw, 64px); line-height: 1.1; }
.choices.g-whoswho-pics small { font-size: clamp(12px, 3.2vw, 16px); }

/* =========================================================== Fishers of Men */
.g-fishers { overflow: hidden; min-height: 300px; background: linear-gradient(180deg, #ffe7b8 0%, #bfe8ff 22%, #bfe8ff 22%); }
.g-fishers .fi-sky { position: absolute; left: 0; right: 0; top: 0; height: 22%; pointer-events: none; }
.g-fishers .fi-hill { position: absolute; left: -10%; bottom: 0; width: 60%; height: 55%; border-radius: 50% 50% 0 0; background: linear-gradient(180deg, #9bd77f, #6fb85a); opacity: .8; }
.g-fishers .fi-boat { --bw: clamp(120px, 28vw, 170px); position: absolute; z-index: 4; top: calc(22% - var(--bw) * .46); left: 6%; width: var(--bw); transition: transform .45s ease-out; pointer-events: none; }
.g-fishers .fi-boat-art { position: relative; z-index: 1; width: 100%; display: block; } /* illustrated boat (prop/boat) */
.g-fishers .fi-boat.fi-reel { transform: translateX(var(--bx, 0)); }
body:not(.a11y-calm) .g-fishers .fi-boat:not(.fi-reel) { animation: ak-rock 3.2s ease-in-out infinite; }
.g-fishers .fi-man { position: absolute; z-index: 0; left: 18%; top: 12%; font-size: clamp(26px, 6.5vw, 38px); }
.g-fishers .fi-count { position: absolute; z-index: 2; left: 50%; top: 64%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 800; color: #fff; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.g-fishers .fi-water { position: absolute; left: 0; right: 0; top: 22%; bottom: 0; overflow: hidden;
  background: linear-gradient(180deg, #4cc3f5 0%, #2196e0 55%, #1867b8 100%); box-shadow: inset 0 6px 0 rgba(255,255,255,.45); }
.g-fishers .fi-ripples { position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: radial-gradient(ellipse 40px 6px at 30% 20%, #fff 50%, transparent 52%) 0 0 / 160px 90px, radial-gradient(ellipse 26px 4px at 70% 60%, #fff 50%, transparent 52%) 0 0 / 120px 70px; }
body:not(.a11y-calm) .g-fishers .fi-ripples { animation: fi-ripple 8s linear infinite; }
@keyframes fi-ripple { to { background-position: 160px 0, -120px 0; } }
.g-fishers .fi-weeds { position: absolute; left: 0; right: 0; bottom: -6px; font-size: 34px; letter-spacing: 18px; text-align: center; white-space: nowrap; opacity: .75; pointer-events: none; }
.g-fishers .fi-fish { position: absolute; left: 0; top: 0; z-index: 2; display: grid; place-items: center; width: 130px; height: 72px; padding: 0; border: none; background: none; cursor: pointer;
  will-change: transform; -webkit-tap-highlight-color: transparent; }
.g-fishers .fi-fish.pic { width: clamp(120px, 30vw, 150px); height: clamp(72px, 18vw, 90px); }
.g-fishers .fi-fish.num { width: 124px; height: 70px; }
.g-fishers .fi-fish.txt { width: clamp(150px, 42vw, 210px); height: clamp(60px, 15vw, 74px); }
.g-fishers .fi-body { position: absolute; inset: 0; }
.g-fishers .fi-body svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 4px rgba(0,30,80,.3)); }
.g-fishers .fi-fish.right .fi-body svg { transform: scaleX(-1); }
.g-fishers .fi-eye { position: absolute; top: 30%; left: 7%; width: 8px; height: 8px; border-radius: 50%; background: #1c2440; box-shadow: 0 0 0 3px #fff; }
.g-fishers .fi-fish.right .fi-eye { left: auto; right: 7%; }
.g-fishers .fi-lab { position: absolute; z-index: 1; top: 4%; bottom: 4%; left: 15%; right: 22%; display: grid; place-items: center; color: #1d1640; font-weight: 800; line-height: 1.08; text-align: center; }
.g-fishers .fi-fish.right .fi-lab { left: 22%; right: 15%; }
.g-fishers .fi-fish.pic .fi-lab { font-size: clamp(34px, 9vw, 46px); }
.g-fishers .fi-fish.num .fi-lab { font-size: 30px; }
.g-fishers .fi-fish.txt .fi-lab { font-size: clamp(13px, 3.6vw, 17px); }
.g-fishers .fi-fish.fi-wrong { filter: grayscale(.6) brightness(.9); }
.g-fishers .fi-fish.fi-hooked .fi-body svg { filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 14px #ffe066); }
.g-fishers .fi-fish.hint .fi-body svg { filter: drop-shadow(0 0 6px #ffe066) drop-shadow(0 0 14px #ffe066); }
.g-fishers .fi-fish.hint, .g-fishers .fi-fish.is-correct, .g-fishers .fi-fish.shake { animation: none !important; box-shadow: none !important; background: none !important; }
.g-fishers .fi-line { position: absolute; z-index: 3; width: 2px; background: #3a2a1a; transition: height .35s ease-out; pointer-events: none; }
.g-fishers .fi-line::after { content: ''; position: absolute; bottom: -6px; left: -5px; width: 8px; height: 10px; border: 2px solid #3a2a1a; border-top: none; border-radius: 0 0 8px 8px; }
.fi-qpic { font-size: 1.35em; vertical-align: -3px; }
body.a11y-motor .g-fishers .fi-fish.txt, body.a11y-lowvision .g-fishers .fi-fish.txt { height: 84px; width: clamp(170px, 46vw, 230px); }
body.a11y-motor .g-fishers .fi-fish.pic, body.a11y-lowvision .g-fishers .fi-fish.pic { width: 160px; height: 96px; }

/* =========================================================== Bible Journeys */
.g-journeys { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; overflow: hidden;
  background: linear-gradient(180deg, #f7e3b5, #e9c98a); }
.g-journeys .jn-title { flex: 0 0 auto; font-weight: 800; color: #5a3a10; font-size: clamp(14px, 3.6vw, 18px); background: rgba(255,255,255,.6); padding: 4px 14px; border-radius: 14px; text-align: center; }
.g-journeys .jn-frame { flex: 1; width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.g-journeys .jn-map { position: relative; width: 100%; max-width: 100%; border-radius: 16px; overflow: visible; box-shadow: 0 0 0 4px #fff7e2, 0 0 0 7px #b98d4e, 0 10px 24px rgba(0,0,0,.25); }
.g-journeys .jn-svg { display: block; width: 100%; height: 100%; border-radius: 16px; }
.g-journeys .jn-sea { font: italic 700 15px Georgia, serif; fill: #2a6f9a; opacity: .6; text-anchor: middle; }
.g-journeys .jn-leg { stroke: #d6336c; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 9; fill: none; }
body:not(.a11y-calm) .g-journeys .jn-leg { animation: jn-draw .8s ease-out both; }
@keyframes jn-draw { from { opacity: 0; } to { opacity: 1; } }
.g-journeys .jn-pins { position: absolute; inset: 0; pointer-events: none; }
.g-journeys .jn-pin { position: absolute; width: 0; height: 0; padding: 0; border: none; background: none; pointer-events: none; }
.g-journeys .jn-map { cursor: pointer; }
.g-journeys .jn-dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid #6b3c14;
  pointer-events: none; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.g-journeys .jn-lab { position: absolute; border: none; margin: 0; font-family: inherit; min-height: 0; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; pointer-events: auto; cursor: pointer;
  padding: 3px 8px 3px 5px; border-radius: 12px; background: #fffdf4; color: #3a2408; font-weight: 800; font-size: clamp(11px, 2.7vw, 15px); line-height: 1.15;
  box-shadow: 0 2px 0 #c9a46a, 0 3px 8px rgba(0,0,0,.2); --dy: 0px; transition: transform .2s; }
.g-journeys .jn-lab i { font-style: normal; font-size: 1.1em; }
.g-journeys .s-r .jn-lab { left: 12px; top: 0; transform: translate(0, calc(-50% + var(--dy))); }
.g-journeys .s-l .jn-lab { right: 12px; top: 0; transform: translate(0, calc(-50% + var(--dy))); }
.g-journeys .s-t .jn-lab { left: 0; bottom: 12px; transform: translate(-50%, var(--dy)); }
.g-journeys .s-b .jn-lab { left: 0; top: 12px; transform: translate(-50%, var(--dy)); }
.g-journeys .s-tl .jn-lab { right: 8px; bottom: 6px; transform: translate(0, var(--dy)); }
.g-journeys .s-tr .jn-lab { left: 8px; bottom: 6px; transform: translate(0, var(--dy)); }
.g-journeys .s-bl .jn-lab { right: 8px; top: 6px; transform: translate(0, var(--dy)); }
.g-journeys .s-br .jn-lab { left: 8px; top: 6px; transform: translate(0, var(--dy)); }
.g-journeys .jn-pin.nolabel .jn-lab { display: none; }
.g-journeys .jn-pin.nolabel .jn-dot { width: 26px; height: 26px; left: -13px; top: -13px; background: #ffd93d; }
.g-journeys .jn-pin.visited .jn-dot { background: #d6336c; border-color: #fff; }
.g-journeys .jn-pin.visited .jn-lab { background: #fff0f5; box-shadow: 0 0 0 2px #d6336c, 0 3px 8px rgba(0,0,0,.2); }
.g-journeys .jn-pin.visited .jn-lab::after { content: '✓'; color: #d6336c; margin-left: 2px; }
.g-journeys .jn-pin.is-right .jn-lab { background: #22c983; color: #fff; }
.g-journeys .jn-pin.nope .jn-lab, .g-journeys .jn-pin.nope .jn-dot { animation: shake .5s; background: #ffe1d6; }
.g-journeys .jn-pin.nope .jn-lab::after { content: ' ✗'; color: #c0392b; }
.g-journeys .jn-pin.hint .jn-dot, .g-journeys .jn-pin.hint .jn-lab { animation: hintGlow 1s ease-in-out infinite; box-shadow: 0 0 0 4px #ffe066, 0 0 20px #ffe066; }
.g-journeys .jn-pin.hint, .g-journeys .jn-pin.is-correct, .g-journeys .jn-pin.shake { animation: none !important; box-shadow: none !important; background: none !important; }
.g-journeys .jn-walker { position: absolute; z-index: 3; font-size: clamp(24px, 6vw, 34px); transform: translate(-50%, -100%); pointer-events: none;
  transition: left .8s ease-in-out, top .8s ease-in-out; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.g-journeys.jn-done .jn-map { box-shadow: 0 0 0 4px #fff7e2, 0 0 0 7px #22c983, 0 10px 24px rgba(0,0,0,.25); }
.jn-qi { font-size: 1.25em; vertical-align: -2px; }
body.a11y-motor .g-journeys .jn-lab, body.a11y-lowvision .g-journeys .jn-lab { font-size: 16px; padding: 6px 10px; }

/* =========================================================== Miracle Match */
.g-miracles { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 10px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #fffbe6 0%, #ffe9a8 40%, #ffc6d9 100%); }
.g-miracles .mi-glow { position: absolute; inset: -30%; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 10deg at 50% 40%, rgba(255,255,255,.8) 0 5deg, transparent 5deg 20deg); }
body:not(.a11y-calm) .g-miracles .mi-glow { animation: spin 120s linear infinite; }
.g-miracles .mi-hills { position: absolute; left: -10%; right: -10%; bottom: -40px; height: 30%; border-radius: 50% 50% 0 0; background: linear-gradient(180deg, #b8e68f, #7cc860); opacity: .85; pointer-events: none; }
.g-miracles .mi-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 22px; min-width: min(80%, 300px); max-width: 94%;
  border-radius: 26px; background: rgba(255,255,255,.92); box-shadow: 0 0 0 5px #fff, 0 0 0 8px #ffd166, 0 14px 28px rgba(0,0,0,.18); }
.g-miracles .mi-big { font-size: clamp(64px, 17vw, 110px); line-height: 1.05; }
.g-miracles .mi-sub { font-weight: 800; color: #8a5a20; font-size: clamp(15px, 3.8vw, 19px); }
.g-miracles .mi-count { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 420px; font-size: clamp(40px, 10vw, 60px); line-height: 1.1; }
.g-miracles .mi-count.many { font-size: clamp(32px, 8vw, 46px); max-width: 340px; }
.g-miracles .mi-item { position: relative; animation: popIn .4s both; }
.g-miracles .mi-item.counted::after { content: attr(data-n); position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; font-size: 13px; font-weight: 800;
  display: grid; place-items: center; background: #6a5cff; color: #fff; }
.g-miracles .mi-extra { font-size: clamp(22px, 5.5vw, 30px); opacity: .55; letter-spacing: 2px; }
.g-miracles .mi-books { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.g-miracles .mi-book { padding: 4px 10px; border-radius: 6px 6px 3px 3px; background: #5a7bd8; color: #fff; font-weight: 800; font-size: 14px; box-shadow: inset -4px 0 0 rgba(0,0,0,.15); }
.g-miracles .mi-book.on { background: #22c983; transform: translateY(-6px); transition: transform .3s; }
.g-miracles .mi-otitle { position: relative; z-index: 1; font-weight: 800; color: #6b3c14; background: rgba(255,255,255,.75); padding: 4px 14px; border-radius: 14px; font-size: clamp(14px, 3.6vw, 18px); }
.g-miracles .mi-slots { position: relative; z-index: 1; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.g-miracles .mi-slot { width: clamp(52px, 14vw, 72px); height: clamp(52px, 14vw, 72px); border-radius: 16px; border: 3px dashed #c9a46a; background: rgba(255,255,255,.55);
  display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #c9a46a; }
.g-miracles .mi-slot.filled { border: 3px solid #22c983; background: #fff; color: #1f9d55; font-size: clamp(24px, 6vw, 34px); position: relative; animation: popIn .35s; }
.g-miracles .mi-slot.filled b { position: absolute; top: -9px; left: -7px; font-size: 13px; background: #22c983; color: #fff; border-radius: 10px; padding: 1px 6px; }
.g-miracles .mi-deck { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100%, 620px); }
.g-miracles .mi-step { position: relative; display: flex; align-items: center; gap: 8px; min-height: 72px; padding: 8px 12px; border: none; border-radius: 20px; text-align: left;
  background: linear-gradient(180deg, #fff, #f1ecff); box-shadow: 0 5px 0 rgba(43,27,79,.18); font: inherit; font-weight: 800; font-size: clamp(14px, 3.7vw, 18px); color: var(--ink, #2b1b4f); cursor: pointer; }
.g-miracles .mi-step .mi-ch { font-size: 1.7em; }
.g-miracles .mi-step.used { background: #e7fbef; box-shadow: 0 0 0 3px #22c983; opacity: .8; }
.g-miracles .mi-num { position: absolute; top: -8px; left: -6px; background: #22c983; color: #fff; font-size: 13px; border-radius: 10px; padding: 1px 7px; }
.choices.g-miracles-pics .choice { min-height: 110px; }
.choices.g-miracles-pics .mi-pic { font-size: clamp(38px, 10vw, 58px); letter-spacing: -2px; white-space: nowrap; }
.choices.g-miracles-opts .mi-ch { font-size: 1.3em; margin-right: 4px; vertical-align: -3px; }
@media (max-width: 480px) { .g-miracles .mi-step { min-height: 64px; } }

/* =========================================================== Creation Days */
.g-creation { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 14px 10px; overflow: hidden;
  background: linear-gradient(180deg, #232a6b 0%, #4c5bc2 40%, #8fd3f4 75%, #9be07a 100%); }
.g-creation .cr-stars { position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background: radial-gradient(#fff 1.2px, transparent 1.6px) 0 0 / 34px 30px, radial-gradient(#fff9c4 1px, transparent 1.4px) 17px 15px / 46px 40px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%); mask-image: linear-gradient(180deg, #000 0%, transparent 55%); }
.g-creation .cr-hero { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 26px; border-radius: 28px;
  background: rgba(255,255,255,.9); box-shadow: 0 12px 28px rgba(0,0,0,.25); min-width: min(70%, 260px); }
.g-creation .cr-sun { font-size: clamp(60px, 16vw, 100px); line-height: 1; }
.g-creation .cr-dayno { font-weight: 800; font-size: clamp(22px, 5.5vw, 30px); color: #2d3a8c; }
.g-creation .cr-bignum { font-size: clamp(70px, 18vw, 110px); font-weight: 900; line-height: 1; color: #3a3f9e; }
.g-creation .cr-dots { color: #f0a500; letter-spacing: 6px; font-size: clamp(18px, 4.5vw, 24px); }
.g-creation .cr-dayword { font-weight: 800; color: #5b6bb5; font-size: 18px; }
.g-creation .cr-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px; border-radius: 16px; text-align: center;
  background: linear-gradient(180deg, #fff, #eef3ff); box-shadow: 0 4px 0 rgba(43,27,79,.18); min-height: 78px; }
.g-creation .cr-day.d1 { background: linear-gradient(90deg, #fff6c9 50%, #2d3570 50%); }
.g-creation .cr-day.d1 .cr-name { color: #2d3570; background: rgba(255,255,255,.85); border-radius: 8px; padding: 0 4px; }
.g-creation .cr-day.d7 { background: linear-gradient(180deg, #efe6ff, #d9c6ff); }
.g-creation .cr-day.d2 { background: linear-gradient(180deg, #e3f4ff, #c4e6ff); }
.g-creation .cr-icon { font-size: clamp(24px, 6vw, 34px); line-height: 1.05; white-space: nowrap; letter-spacing: -2px; }
.g-creation .cr-name { font-size: clamp(11px, 2.8vw, 14px); font-weight: 800; color: #2b1b4f; line-height: 1.1; }
.g-creation .cr-day.big { min-width: 180px; min-height: 130px; padding: 12px 18px; }
.g-creation .cr-day.big .cr-icon { font-size: clamp(48px, 12vw, 70px); }
.g-creation .cr-day.big .cr-name { font-size: clamp(16px, 4vw, 20px); }
.g-creation .cr-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 640px; }
.g-creation .cr-mini { display: flex; flex-direction: column; align-items: center; padding: 6px 8px; border-radius: 14px; background: rgba(255,255,255,.92); min-width: 64px;
  box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.g-creation .cr-mini b { font-size: 13px; color: #5b6bb5; }
.g-creation .cr-mini span { font-size: clamp(24px, 6vw, 32px); white-space: nowrap; letter-spacing: -2px; }
.g-creation .cr-mini.q { background: #fff6c9; box-shadow: 0 0 0 3px #f0a500, 0 4px 10px rgba(0,0,0,.2); }
.g-creation .cr-ref { position: relative; z-index: 1; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.g-creation .cr-week { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; width: min(100%, 760px); }
.g-creation .cr-slot { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 4px; border-radius: 16px; border: 3px dashed rgba(255,255,255,.75);
  background: rgba(255,255,255,.18); min-height: 104px; }
.g-creation .cr-slot.filled { border-style: solid; border-color: rgba(255,255,255,.9); background: rgba(255,255,255,.3); }
.g-creation .cr-slot.drop-over { border-color: #ffe066; background: rgba(255,224,102,.35); }
.g-creation .cr-slotno { text-align: center; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.g-creation .cr-empty { flex: 1; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: rgba(255,255,255,.85); }
.g-creation .cr-slot .cr-day { flex: 1; min-height: 70px; }
.g-creation .cr-slot .cr-icon, .g-creation .cr-pool .cr-icon { font-size: clamp(18px, 4.8vw, 28px); letter-spacing: -3px; }
.g-creation .cr-week.cr-done .cr-slot { border-color: #7ef0b4; box-shadow: 0 0 14px rgba(126,240,180,.7); }
.g-creation .cr-pool { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 90px; width: 100%; }
.g-creation .cr-pool .cr-day { width: clamp(84px, 22vw, 112px); min-height: 86px; cursor: grab; }
.g-creation .cr-pool .cr-day.gone { display: none; }
.g-creation .cr-day.hint { box-shadow: 0 0 0 5px #ffe066, 0 0 30px #ffe066 !important; }
.g-creation .cr-slot.hint { animation: hintGlow 1s ease-in-out infinite; border-color: #ffe066; }
.cr-qpic { font-size: 1.35em; vertical-align: -3px; }
.choices.g-creation-pics .choice { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 104px; padding: 6px 4px; }
.choices.g-creation-pics .cr-pic { font-size: clamp(48px, 13vw, 70px); line-height: 1.1; }
.choices.g-creation-pics .cr-pic.sm { font-size: clamp(28px, 7.5vw, 42px); white-space: nowrap; letter-spacing: -2px; }
.choices.g-creation-pics small { font-size: clamp(12px, 3.2vw, 16px); line-height: 1.1; }
@media (max-width: 560px) {
  .g-creation .cr-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g-creation .cr-slot { min-height: 96px; }
}
body.a11y-motor .g-creation .cr-pool .cr-day, body.a11y-lowvision .g-creation .cr-pool .cr-day { min-height: 96px; width: 120px; }
