:root{color-scheme:dark;font:16px/1.4 Arial,Helvetica,sans-serif;background:#161410;color:#fff}*{box-sizing:border-box}body{margin:0;min-height:100svh;display:grid;place-items:center}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #ffda79;outline-offset:3px}[hidden]{display:none!important}.experience{position:relative;width:min(100vw,56.25svh);aspect-ratio:9/16;background:#211d16;overflow:hidden;isolation:isolate;container-type:inline-size}#film{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#211d16}#interaction{position:absolute;inset:0}.top-tools,.bottom-tools{position:absolute;left:3%;right:3%;display:flex;align-items:center;gap:8px;z-index:5;pointer-events:none}.top-tools{top:max(10px,env(safe-area-inset-top));justify-content:space-between}.bottom-tools{bottom:max(10px,env(safe-area-inset-bottom));justify-content:space-between}.top-tools button,.bottom-tools button{pointer-events:auto;border:1px solid #ffffff60;border-radius:22px;padding:7px 10px;background:#17130dc4;color:#fff;font-size:12px;min-height:34px;backdrop-filter:blur(5px)}#progress{font-size:12px;text-shadow:0 1px 4px #000;background:#17130d9c;padding:4px 8px;border-radius:12px}.hotspot{position:absolute;border:0;border-radius:3px;background:transparent;color:transparent;padding:0;min-height:24px}.hotspot:hover{background:#ffffff0d;box-shadow:inset 0 0 0 1px #ffffff50}.hotspot:focus-visible{outline:3px solid #ffda79;outline-offset:0;background:#ffeeb820}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.application label{position:absolute;left:5.45%;width:77.5%;height:6.8%;display:block}.application input{position:absolute;bottom:0;left:0;width:100%;height:49.3%;min-height:21px;border:1px solid #aaa;border-radius:0;background:#fff;color:#111;padding:1px 5px;font-size:max(16px,3.5cqw);line-height:1.1}.application label:nth-of-type(1){top:43.2%}.application label:nth-of-type(2){top:50.85%}.application label:nth-of-type(3){top:58.5%}.application label:nth-of-type(4){top:66.86%}.application .submit{position:absolute;top:77.2%;left:39%;width:22%;height:4.8%;min-height:30px;padding:0;background:#ef0000;border:0;border-radius:0;color:#fff;font-size:5.2cqw;line-height:1}.application .submit:disabled{background:#8e0000}.status{position:absolute;left:4%;right:4%;top:11%;z-index:8;background:#23190fee;border:1px solid #f9e1a7;border-radius:10px;padding:12px;color:#fff;font-size:15px;overflow-wrap:anywhere}.resume{position:absolute;inset:auto 10% 17%;z-index:7;padding:14px 18px;background:#f8e8c5;color:#33210e;border:1px solid #fff;border-radius:10px;font-weight:bold;font-size:16px}.timer{position:absolute;top:6.5%;left:calc(50% - 38px);width:76px;text-align:center;padding:5px;background:#17130dd9;border:1px solid #ffffff50;border-radius:20px;font-variant-numeric:tabular-nums;font-size:16px}.complete{position:absolute;inset:33% 4% auto;background:#211a13e8;padding:22px;text-align:center;border:1px solid #ddc395;border-radius:12px}.complete h1{font-size:26px;line-height:1.2;margin:0 0 12px}.complete p{font-size:16px}.complete .receipt{font-size:12px;overflow-wrap:anywhere;color:#e7d9be}.complete button{padding:10px 16px;margin:6px;background:#f2dfb8;color:#30200e;border:0;border-radius:7px}dialog{max-width:min(92vw,500px);background:#28221a;color:#fff;border:1px solid #bfa87c;border-radius:12px;padding:25px}dialog::backdrop{background:#000b}dialog h2{margin-top:0;font-size:24px}dialog p{font-size:16px;line-height:1.6}dialog button{padding:10px 18px;background:#f2dfb8;color:#30200e;border:0;border-radius:7px}@media(max-width:480px){body{align-content:center}.top-tools button,.bottom-tools button{font-size:11px;padding:5px 8px;min-height:30px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

#interaction[inert]{visibility:hidden}

#initial-poster,#scene,#countdown-film,#ending-film,#glow{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}#scene{background-image:url('/assets/scenes-v4.webp?v=gif8');background-size:400% 400%;background-repeat:no-repeat}#glow{pointer-events:none;background:radial-gradient(ellipse at 50% 18%,#fff1c412,transparent 42%);animation:gentle-light 7s ease-in-out infinite alternate}#initial-poster{z-index:-1}.scene-ready #initial-poster{display:none}.scene-pending .hotspot{color:white;background:#231a11;font-size:clamp(12px,4cqw,24px);font-weight:bold;text-shadow:0 1px 2px #000}.scene-pending .hotspot .sr-only{position:static!important;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal}.top-tools button,.bottom-tools button{backdrop-filter:none}#soundtrack{display:none}@keyframes gentle-light{from{opacity:.25}to{opacity:.9}}@media(prefers-reduced-motion:reduce){#glow{animation:none}}

#motion-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}#glow{display:none!important}

#background-a,#background-b{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}

.hotspot{min-height:0;border-radius:9px;touch-action:manipulation;transition:background-color .12s,box-shadow .12s;isolation:isolate}.hotspot:active{background:#e9c36e3d;box-shadow:inset 0 0 0 2px #f8d98d}.hotspot:disabled{opacity:1;cursor:default}.hotspot.choice-selected{background:#eac16d40;box-shadow:inset 0 0 0 2px #ffda8e,0 0 16px #f5cf7147}.hotspot.choice-selected::after{content:'✓';position:absolute;right:-18px;top:50%;transform:translateY(-50%);width:24px;height:24px;display:grid;place-items:center;border-radius:50%;border:2px solid #ffda8e;background:#174c35;color:#fff2bd;font-size:17px;font-weight:800;line-height:1;box-shadow:0 2px 8px #0007}.choice-ripple{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none}.choice-ripple::before{content:'';position:absolute;left:var(--tap-x,50%);top:var(--tap-y,50%);width:110px;height:110px;border-radius:50%;background:#ffdf9b80;opacity:0;transform:translate(-50%,-50%) scale(0)}.choice-tapped .choice-ripple::before{animation:choice-ripple .42s ease-out}.choice-tapped::after{animation:choice-check .2s ease-out}.selection-feedback{position:absolute;z-index:6;top:8%;left:6%;right:6%;display:flex;align-items:center;gap:9px;padding:9px 12px;border:1px solid #f4d18b;border-radius:12px;background:#143b2cf0;color:#fff0c9;box-shadow:0 5px 20px #0005;font-size:14px;font-weight:700;line-height:1.35;pointer-events:none;animation:selection-in .16s ease-out}.selection-icon{flex:0 0 23px;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#f1d190;color:#15412e;font-size:17px;font-weight:800}@keyframes choice-ripple{0%{opacity:.75;transform:translate(-50%,-50%) scale(0)}100%{opacity:0;transform:translate(-50%,-50%) scale(2.5)}}@keyframes choice-check{from{opacity:0;transform:translateY(-50%) scale(.6)}to{opacity:1;transform:translateY(-50%) scale(1)}}@keyframes selection-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.choice-tapped .choice-ripple::before,.choice-tapped::after,.selection-feedback{animation:none}.hotspot{transition:none}}

html{overflow-x:clip}body{direction:ltr;overflow-x:clip}.localized:dir(rtl) #interaction,.localized:dir(rtl) #information,.localized:dir(rtl) #localized-footer{direction:rtl}
.top-right{display:flex;align-items:center;gap:6px;min-width:0;pointer-events:auto}.language-picker{display:flex;align-items:center;gap:3px;position:relative;border:1px solid #ffffff70;border-radius:22px;background:#17130de8;color:#fff;min-height:34px;padding:0 7px;pointer-events:auto}.language-picker>span[aria-hidden]{font-size:17px}.language-picker::after{content:'';position:absolute;right:10px;top:43%;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);pointer-events:none}.language-picker select{appearance:none;min-height:32px;width:91px;border:0;outline-offset:4px;border-radius:18px;padding:4px 16px 4px 2px;background:transparent;color:#fff;font:12px Arial,sans-serif;cursor:pointer}.language-picker option{background:#211c15;color:#fff}.localized-question{position:absolute;left:4%;right:4%;top:var(--question-top,39%);bottom:23.8%;padding:10px 12px;background:#231e17;border:1px solid #8c785c;border-radius:12px;overflow-y:auto;scrollbar-width:thin;display:flex;flex-direction:column;gap:7px;box-shadow:0 6px 22px #0004}.localized-question h1{font-size:clamp(15px,4.4cqw,21px);line-height:1.3;margin:0;font-weight:700;color:#fff5df;flex-shrink:0}.localized-question p{font-size:clamp(14px,4cqw,18px);line-height:1.45;margin:0}.localized-answers{display:grid;gap:5px}.localized-question .hotspot{position:relative;left:auto!important;top:auto!important;width:100%!important;height:auto!important;min-height:28px;padding:5px 23px 5px 9px;border:1px solid #a78c6159;background:#ffffff0a;color:#fff;text-align:start;font-size:clamp(13px,3.65cqw,18px);line-height:1.25;border-radius:7px}.localized-question .hotspot.choice-selected{background:#eac16d40;border-color:#ffda8e}.localized-question .hotspot.choice-selected::after{right:-8px;width:21px;height:21px;font-size:15px}.choice-label{position:relative;z-index:1}.localized-intro{left:0;right:0;border-radius:0;top:31%;bottom:19%;justify-content:center;padding:16px}.localized-intro .localized-answers{grid-template-columns:1fr 1fr;margin-top:5px}.localized-intro .hotspot{min-height:40px;text-align:center;font-size:18px;font-weight:700}.localized-footer{position:absolute;left:7%;right:7%;top:83%;height:6.5%;display:flex;align-items:center;justify-content:center;background:#201b14;border-radius:5px;padding:4px 6px;font-size:clamp(10px,2.8cqw,13px);line-height:1.25;text-align:center;color:#f5ead8;pointer-events:none}.localized .application{position:absolute;left:0;right:0;top:37%;bottom:10.5%;display:flex;flex-direction:column;gap:7px;padding:12px;background:#231e17;border:1px solid #8c785c;border-radius:12px;overflow:auto}.localized .application h1{position:static!important;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal;font-size:18px}.localized .application label{position:static;display:flex;flex-direction:column;gap:3px;left:auto;width:100%;height:auto;flex-shrink:0}.localized .application .field-label{position:static!important;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal;font-size:13px;line-height:1.2;color:#f5ead8}.localized .application input{position:static;min-height:29px;height:29px;padding:3px 7px;border-radius:5px;font-size:16px}.localized .application .submit{position:static;width:100%;min-height:34px;height:34px;flex-shrink:0;border-radius:6px;font-size:16px;background:#f2dfb8;color:#30200e}.localized .application .submit:disabled{background:#bda989}.localized:dir(rtl) .localized-question .hotspot{padding-left:23px;padding-right:9px}.localized:dir(rtl) .localized-question .hotspot.choice-selected::after{right:auto;left:-8px}.localized:dir(rtl) .selection-feedback{direction:rtl}.top-tools{direction:ltr}.language-picker select{direction:ltr} @media(max-width:380px){.top-tools{left:2%;right:2%;gap:4px}.top-right{gap:4px}.top-tools button{padding:5px 6px;font-size:10px}.language-picker{padding:0 5px;min-height:30px}.language-picker select{width:80px;min-height:28px;font-size:11px}.localized-question{padding:8px;gap:5px}.localized-question .hotspot{padding-top:4px;padding-bottom:4px}.localized .application{padding:9px;gap:5px}.localized .application input{min-height:25px;height:25px}}

.countdown-copy{position:absolute;left:3.7%;right:2.9%;top:40.25%;height:25.1%;padding:9px 11px;display:flex;align-items:center;justify-content:center;border:1px solid #8c785c;background:#231e17;color:#fff2db;text-align:center;overflow:hidden;pointer-events:none}.countdown-copy p{margin:0;font-size:clamp(13px,3.65cqw,16px);line-height:1.3;overflow-wrap:break-word}.localized:dir(rtl) .countdown-copy{direction:rtl} @media(max-width:350px){.countdown-copy{padding:7px 8px}.countdown-copy p{font-size:13px;line-height:1.25}}

/* Text only. The original translucent question frame is part of the video. */
.reference-question{position:absolute;left:4%;right:3.5%;top:var(--text-top,40.4%);bottom:23.8%;padding:4cqw;display:flex;flex-direction:column;gap:3cqw;overflow-y:auto;scrollbar-width:thin;background:transparent;border:0;border-radius:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;color:#fff;text-shadow:0 1px 2px #000,1px 0 2px #000,-1px 0 2px #000}.reference-question h1{margin:0;min-height:2.4em;font-size:clamp(15px,4.8cqw,24px);line-height:1.2;font-weight:750;flex-shrink:0}.reference-question[data-stage="guidance"] h1{min-height:7.2em}.reference-question[data-stage="ready"] h1{min-height:4.8em}.reference-question[data-stage="question-7"] h1{min-height:3.6em}.reference-answers{display:grid;gap:0;flex-shrink:0}.reference-question .hotspot{position:relative;left:auto!important;top:auto!important;width:100%!important;height:auto!important;min-height:0;padding:1px 18px 1px 0;border:0;border-radius:0;background:transparent;color:#fff;text-align:start;font-size:clamp(14px,4.45cqw,22px);font-weight:700;line-height:1.25;text-shadow:inherit;box-shadow:none}.reference-question .hotspot:hover{background:#ffffff0d}.reference-question .hotspot.choice-selected{background:#eac16d40;box-shadow:inset 0 0 0 2px #ffda8e}.reference-question .hotspot.choice-selected::after{right:-5px;width:21px;height:21px;font-size:15px}.reference-question:dir(rtl){direction:rtl}.reference-question:dir(rtl) .hotspot{padding-left:18px;padding-right:0}.reference-question:dir(rtl) .hotspot.choice-selected::after{right:auto;left:-5px}.answer-letter{white-space:nowrap}

.reference-answers { gap: 8px; }
.reference-question .hotspot,
.localized-intro .hotspot {
  min-height: 44px;
  padding: 8px 24px 8px 10px;
  border: 1px solid #aa9675;
  border-radius: 8px;
  background: #28221a;
  text-shadow: none;
}
.reference-question .hotspot:hover,
.localized-intro .hotspot:hover { background: #3d3225; }
.reference-question .hotspot.choice-selected,
.localized-intro .hotspot.choice-selected { background: #514026; }
.localized-intro { justify-content: safe center; }

#experience[data-phase="form"] #interaction {
  inset: 54px 4% 52px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #8c785c;
  border-radius: 14px;
  background: #231e17;
  scroll-padding: 14px;
}
#interaction .application {
  position: static;
  display: grid;
  gap: 12px;
  overflow: visible;
  padding: clamp(12px, 4cqw, 24px);
  border: 0;
  background: none;
}
#interaction .application h1 { margin: 0; font-size: 1.3rem; }
#interaction .application label {
  display: block;
  position: static;
  width: auto;
  height: auto;
  margin-bottom: 5px;
  color: #fff2db;
}
#interaction .application input {
  position: static;
  height: auto;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 16px;
}
#interaction .application input[aria-invalid="true"] { border: 2px solid #c83a2b; }
.field-error, .method-note { margin: 5px 0 0; font-size: .85rem; }
.field-error { color: #ffab9d; }
.method-note { color: #e4d4bd; }
#interaction .application .submit {
  position: static;
  width: 100%;
  height: auto;
  min-height: 44px;
  padding: 8px;
  border-radius: 8px;
  background: #f2dfb8;
  color: #30200e;
  font-size: 1rem;
}
#interaction .application .submit:disabled { opacity: .65; }

.prayer-clock {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 7px 14px;
  border: 1px solid #bca078;
  border-radius: 12px;
  background: #231e17;
  color: #fff2db;
  font-size: 1.15rem;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}
.prayer-clock progress { width: 60px; height: 5px; accent-color: #e9c883; }

/* Keep the translated copy over the original lettering at every canvas size. */
#experience[data-phase="countdown"] .countdown-copy {
  inset: 39.5% 2.5% 25%;
  height: auto;
  display: block;
  overflow-y: auto;
  pointer-events: auto;
  align-content: safe center;
  padding: 10px;
}
#experience[data-phase="countdown"] #localized-footer,
#experience[data-phase="ending"] #localized-footer {
  inset: 82% 5% 8%;
  height: auto;
  padding: 5px 8px;
}
.submission-error {
  margin: 0;
  color: #ffab9d;
  font-size: .9rem;
}

/* Translucent surfaces preserve the scene while keeping text readable. */
.experience, #information {
  --panel: rgba(29, 23, 17, .76);
  --panel-border: rgba(244, 215, 168, .52);
  --panel-shadow: 0 8px 28px rgba(15, 10, 5, .25);
}
#experience[data-phase="form"] #interaction,
#experience[data-phase="countdown"] .countdown-copy,
#experience #localized-footer,
#experience .localized-intro,
#experience .prayer-clock,
#experience .status,
#experience .complete,
#information {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: var(--panel-shadow);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}
#experience .selection-feedback {
  background: rgba(19, 58, 43, .79);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}
#information::backdrop { background: rgba(14, 11, 8, .27); }
#information {
  width: min(90vw, 500px);
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
  overflow: auto;
  padding: clamp(14px, 4vw, 24px);
}
/* Soften baked-in lettering beneath the localized copy without flattening the scene. */
#experience[data-phase="countdown"] .countdown-copy,
#experience[data-phase="countdown"] #localized-footer,
#experience[data-phase="ending"] #localized-footer {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.experience {
  --top-clearance: calc(max(8px, env(safe-area-inset-top, 0px)) + 54px);
  --bottom-clearance: calc(max(8px, env(safe-area-inset-bottom, 0px)) + 50px);
}
#experience[data-phase="form"] #interaction {
  /* The source video, GIF and poster include a form down to 89% of the frame. */
  inset: var(--top-clearance) 2.5% 10%;
  background: linear-gradient(rgba(29, 23, 17, .76), rgba(29, 23, 17, .94) 43%);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#experience .prayer-clock { top: var(--top-clearance); }
#experience[data-phase="countdown"] #localized-footer,
#experience[data-phase="ending"] #localized-footer {
  bottom: max(8%, var(--bottom-clearance));
  min-height: 0;
  overflow: auto;
  pointer-events: auto;
}
#experience .complete {
  inset: max(23%, var(--top-clearance)) 4% auto;
  max-height: calc(100% - max(23%, var(--top-clearance)) - var(--bottom-clearance));
  overflow-y: auto;
}
@media (max-width: 480px) {
  .top-tools { flex-wrap: wrap; row-gap: 4px; }
  .top-tools button, .bottom-tools button, .language-picker select { min-height: 38px; }
  .top-tools { gap: 4px; }
  .top-right { gap: 4px; }
  .language-picker select { width: 83px; }
  #interaction .application { gap: 9px; }
}
