@charset "UTF-8";

:root {
  color-scheme: light;
  --navy: #101a2d;
  --ink: #283246;
  --paper: #f7f5f3;
  --rose: #a95f7a;
  --rose-light: #d58ca6;
  --gold: #b38c47;
  --line: #e4dfd7;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--navy); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.8; -webkit-text-size-adjust: 100%; }
h1, h2, p { margin: 0; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
svg { display: block; flex-shrink: 0; }
a:focus-visible { outline: 3px solid #9e6b25; outline-offset: 5px; }
[hidden] { display: none !important; }

.skip-link { position: absolute; top: 12px; left: 16px; z-index: 20; transform: translateY(-160%); padding: 10px 18px; border: 2px solid var(--gold); background: var(--paper); color: var(--navy); font-weight: 700; }
.skip-link:focus { transform: none; }

.sky { position: fixed; inset: 0; z-index: -2; background: linear-gradient(90deg, #091222ef 0%, #182139a8 35%, #192139a8 65%, #091222ef 100%), linear-gradient(#0c1835ba, #101a2df5), url("/manus-storage/zeus-backdrop_0487864b.webp") center top / cover no-repeat; pointer-events: none; }
.sky-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 15% 25%, #e9c6771c, transparent 40%), radial-gradient(ellipse at 85% 60%, #e9c67714, transparent 35%); animation: sky-breathe 9s ease-in-out infinite alternate; }

.page-shell { position: relative; isolation: isolate; width: 100%; max-width: 430px; min-height: 100svh; margin: 0 auto; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px #b9975947, 0 0 80px #02081988; }
.site-header { position: relative; display: flex; align-items: center; gap: 12px; min-height: 87px; padding: 18px 22px; overflow: hidden; border-bottom: 2px solid #c7a365; background: linear-gradient(125deg, #172138, #0f1b2e 65%, #29334a); color: #f7dfaa; }
.brand-seal { display: grid; width: 36px; height: 44px; place-items: center; border-inline: 1px solid #d9bd7873; }
.brand-seal svg { width: 22px; height: 31px; fill: #edce8b; filter: drop-shadow(0 0 6px #e3bc5e44); }
.brand { position: relative; z-index: 1; }
.brand > p { font: 700 22px / 1.4 var(--serif); letter-spacing: .04em; }
.brand > span { display: block; margin-top: 4px; color: #c4b58f; font: 10px / 1.5 Georgia, serif; letter-spacing: .24em; }
.header-tag { margin-left: auto; padding: 4px 7px; border: 1px solid #d7c29a6b; border-radius: 2px; color: #e6d6b2; font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
.header-light { position: absolute; inset: 0; transform: translateX(-130%); background: linear-gradient(110deg, transparent 35%, #ffe7ad12 47%, transparent 60%); animation: header-glint 9s ease-in-out infinite; pointer-events: none; }

.introduction { position: relative; isolation: isolate; min-height: 334px; padding: 44px 24px 47px; overflow: hidden; border-bottom: 3px solid #c3a063; background: #101b2e url("/manus-storage/olympus-gold-sanctuary_ca66adc3.webp") center / 100% 100% no-repeat; box-shadow: inset 0 1px 0 #ffe3a066; color: #fff4d8; text-align: center; }
.introduction::before { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 49%, #071326d9 0%, #091629bd 32%, #0b172a40 68%, transparent 88%), linear-gradient(0deg, #0b152c40, transparent 25%, transparent 80%, #09142540); content: ""; pointer-events: none; }
.intro-atmosphere { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.intro-rays { position: absolute; inset: -35% -20%; transform-origin: 50% 0; background: conic-gradient(from 150deg at 50% 0, transparent 0deg, #ffe4a31a 7deg, transparent 12deg, transparent 27deg, #ffe0a021 31deg, transparent 35deg, transparent 51deg, #ffe5ac12 55deg, transparent 60deg); filter: blur(5px); opacity: .65; animation: temple-rays 14s ease-in-out infinite alternate; }
.intro-dust { position: absolute; inset: 8% 0 -10%; background: radial-gradient(circle at 14% 31%, #fff2ce 0 1px, transparent 2px), radial-gradient(circle at 86% 19%, #ffe7a6 0 1.5px, transparent 3px), radial-gradient(circle at 9% 73%, #f5d992 0 1px, transparent 2px), radial-gradient(circle at 89% 69%, #fff1bd 0 1px, transparent 2.5px), radial-gradient(circle at 26% 87%, #ffe5a3 0 1px, transparent 2.5px), radial-gradient(circle at 76% 89%, #fff1bc 0 1.5px, transparent 3px); opacity: .6; animation: temple-dust 10s ease-in-out infinite alternate; }
.intro-ornament { position: absolute; inset: 12px; border: 1px solid #e5c88945; box-shadow: inset 0 0 0 3px #0b18221f; }
.intro-ornament::before, .intro-ornament::after { position: absolute; left: 50%; width: 48px; height: 4px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, #ffe3a5, transparent); box-shadow: 0 0 10px #efcd8555; content: ""; }
.intro-ornament::before { top: -2px; }
.intro-ornament::after { bottom: -2px; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 17px; color: #ffe5aa; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-shadow: 0 1px 7px #071021; }
.eyebrow > span { width: 28px; height: 1px; background: linear-gradient(90deg, transparent, #efd394); }
.eyebrow > span:last-child { transform: rotate(180deg); }
h1 { font: 700 clamp(26px, 7vw, 31px) / 1.65 var(--serif); letter-spacing: .06em; text-shadow: 0 2px 12px #020919, 0 0 28px #050c1ecc; }
h1 em { color: #ffe2a2; font-style: normal; text-shadow: 0 2px 8px #060e20, 0 0 22px #ecc77b24; }
.intro-copy { margin-top: 16px; color: #f7eddd; font-size: 14px; line-height: 2; letter-spacing: .02em; text-shadow: 0 1px 6px #071023, 0 2px 16px #071023; }

.application { padding-top: 20px; border-top: 1px solid #d8c9ac; scroll-margin-top: 12px; }
.application:focus { outline: none; }
.form-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4%; }
.form-kicker { margin-bottom: 4px; color: #8b7465; font-size: 11px; letter-spacing: .06em; }
h2 { color: #354052; font: 700 clamp(18px, 4.9vw, 22px) / 1.55 var(--serif); letter-spacing: .02em; }
.form-notice { max-width: 335px; margin-top: 4px; color: #b4233d; font-size: 11px; font-weight: 700; line-height: 1.65; letter-spacing: .01em; }
.form-star { width: 27px; height: 27px; fill: #d0ae6b; filter: drop-shadow(0 0 5px #e2ce9b55); }
.external-option { margin: 5px 0 0; padding: 0 4%; text-align: right; }
.external-option a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #95556d; font-size: 12px; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.external-option svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.form-panel { position: relative; overflow: hidden; border-top: 1px solid #eee1df; background: var(--paper); }
.form-load-status { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; margin: 0; padding: 10px 16px; background: #f4ebe9; color: #725a63; font-size: 12px; line-height: 1.7; text-align: center; }
.loading-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose-light); animation: loading-breathe 1.6s ease-in-out infinite; }
.form-viewport { --frame-scale: 1; --frame-width: 100%; --frame-height: 1400px; position: relative; width: 100%; height: calc(var(--frame-height) * var(--frame-scale)); overflow: hidden; background: var(--paper); }
#gift-form { position: absolute; top: 0; left: 0; display: block; width: var(--frame-width); height: var(--frame-height); margin: 0; border: 0; transform: scale(var(--frame-scale)); transform-origin: top left; background: var(--paper); color-scheme: light; }

.site-footer { padding: 24px 20px max(25px, env(safe-area-inset-bottom)); border-top: 1px solid #d5c39f; background: linear-gradient(120deg, #152039, #0f1b2e); color: #e4cd9f; text-align: center; }
.site-footer > svg { width: 15px; height: 20px; margin: 0 auto 10px; fill: #d4b476; }
.site-footer > p { font: 700 16px / 1.7 var(--serif); letter-spacing: .13em; }
.site-footer > span { color: #b1a386; font: 9px / 2 Georgia, serif; letter-spacing: .24em; }
.side-wordmark { display: none; }

@keyframes sky-breathe { from { opacity: .3; } to { opacity: 1; } }
@keyframes header-glint { 0%, 45% { transform: translateX(-130%); } 75%, 100% { transform: translateX(130%); } }
@keyframes temple-rays { from { transform: rotate(-7deg); opacity: .38; } to { transform: rotate(7deg); opacity: .7; } }
@keyframes temple-dust { from { transform: translateY(8px); opacity: .38; } to { transform: translateY(-15px); opacity: .78; } }
@keyframes loading-breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

@media (min-width: 900px) {
  .page-shell { min-height: calc(100svh - 64px); margin-block: 32px; border-radius: 10px; }
  .side-wordmark { position: fixed; top: 24%; left: calc(50% - 388px); display: flex; flex-direction: row-reverse; gap: 18px; color: #e2d1ae; font: 500 24px / 1.9 var(--serif); letter-spacing: .15em; text-shadow: 0 2px 16px #000; writing-mode: vertical-rl; }
  .side-wordmark > i { width: 1px; height: 95px; margin-top: 8px; background: linear-gradient(#ddc27c, transparent); }
  .side-wordmark > small { font-size: 12px; letter-spacing: .23em; }
}

@media (max-width: 359px) {
  .site-header { gap: 9px; padding: 16px 14px; }
  .brand > p { font-size: 20px; }
  .brand-seal { width: 31px; }
  .header-tag { padding-inline: 5px; font-size: 9px; }
  .introduction { min-height: 318px; padding: 39px 20px 42px; }
  h1 { font-size: 26px; }
  .intro-copy { font-size: 14px; }
  .eyebrow { gap: 7px; letter-spacing: .05em; }
  .eyebrow > span { width: 22px; }
  .form-star { width: 22px; height: 22px; }
  .form-viewport { --frame-width: 360px; --frame-scale: .888889; }
  h2 { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .header-light { display: none; }
}
