
.of, .of-wait {
    --of-ink: #F4F8F9;
    --of-muted: #DCE8EC;
    --of-soft: #BFD6DD;
    --of-gold: #F2C46B;
    --of-honey: #E4A83B;
    --of-teal: #9FE0D8;
    --of-serif: 'Lora', Georgia, serif;
    --of-sans: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: fixed;
    inset: 0;
    
    z-index: 100000;
    font-family: var(--of-sans);
    color: var(--of-ink);
    background: radial-gradient(ellipse at 50% 18%, rgba(242, 196, 107, 0.22), transparent 60%), rgba(14, 33, 45, 0.95);
}

.of-wait { display: none; align-items: center; justify-content: center; padding: 16px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.of-wait-card { position: relative; width: min(100%, 400px); padding: 40px 30px 30px; border-radius: 24px; text-align: center;
    background: linear-gradient(180deg, #24506A 0%, #1B3D52 100%); border: 1px solid rgba(242, 196, 107, 0.45); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.of-wait-ring { width: 58px; height: 58px; margin: 0 auto 18px; position: relative; }
.of-wait-ring span { position: absolute; inset: 0; border-radius: 50%; border: 4px solid rgba(159, 224, 216, 0.22); border-top-color: var(--of-gold); animation: of-spin 1s linear infinite; }
.of-wait-card h3 { margin: 0; font: 500 25px/1.2 var(--of-serif); color: #FFFFFF; }
.of-wait-card [data-overlay-message] { margin: 10px 0 0; font-size: 17px; line-height: 1.45; color: var(--of-muted); }
.of-wait-sub { margin: 14px 0 0; font-size: 14px; line-height: 1.45; color: var(--of-soft); }

.of { display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; opacity: 0; transition: opacity 0.4s ease; }
.of.of-in { opacity: 1; }
.of-float { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.of-particle { position: absolute; top: 100%; color: var(--of-gold); opacity: 0; animation-name: of-float; animation-timing-function: linear; animation-iteration-count: infinite; }
.of-card { position: relative; width: min(100%, 560px); margin: auto; padding: 32px 28px 20px; border-radius: 26px; text-align: center;
    background: linear-gradient(180deg, #24506A 0%, #1B3D52 100%); border: 1px solid rgba(242, 196, 107, 0.45); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    transform: translateY(16px) scale(0.97); transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1); }
.of.of-in .of-card { transform: none; }

.of-mark, .of h2, .of-lede, .of-show, .of-k, .of-items, .of-when, .of-steps, .of-mail, .of-more, .of-go { position: relative; z-index: 1; }
.of-mark { font: italic 500 15px/1 var(--of-serif); letter-spacing: 0.08em; color: var(--of-gold); }
.of h2 { font: 500 38px/1.12 var(--of-serif); margin: 12px 0 8px; color: #FFFFFF; }
.of-lede { margin: 0 auto; font: italic 400 19px/1.4 var(--of-serif); color: var(--of-muted); }
.of-show { margin: 20px auto 4px; max-width: 470px; }
.of-show:empty { display: none; }

.of-show.of-show-pkg { aspect-ratio: 22 / 15.5; }
.of-show.of-show-pkg:empty { display: block; }
.of-show > .tp-pkg { animation: of-rise 600ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.of-cover { display: block; width: 150px; margin: 0 auto; border-radius: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 40px rgba(242, 196, 107, 0.18); animation: of-rise 600ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.of-k { margin: 22px 0 8px; font: 800 12px/1 var(--of-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--of-gold); }
.of-items { list-style: none; margin: 0; padding: 4px 16px; text-align: left; border-radius: 16px; background: rgba(0, 0, 0, 0.16); border: 1px solid rgba(255, 255, 255, 0.08); }
.of-items li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; }
.of-items li + li { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.of-tick { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(159, 224, 216, 0.18); color: var(--of-teal); }
.of-tick svg { width: 14px; height: 14px; }
.of-items b { display: block; font-size: 16px; color: #FFFFFF; }
.of-items small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.35; color: var(--of-soft); }
.of-when { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px; margin-top: 12px; padding: 12px 16px; border-radius: 14px;
    background: rgba(242, 196, 107, 0.12); border: 1px solid rgba(242, 196, 107, 0.42); }
.of-when-k { font-size: 14px; color: var(--of-muted); }
.of-when-v { font-size: 18px; font-weight: 800; color: var(--of-gold); }
.of-when-s { font-size: 14px; color: var(--of-soft); }

.of-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 22px 0 0; padding: 0; }
.of-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--of-soft); }
.of-steps li:not(:last-child)::after { content: ''; position: absolute; top: 18px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); }
.of-steps li.of-done::after { background: linear-gradient(90deg, var(--of-gold), rgba(159, 224, 216, 0.7)); }
.of-dot { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.07); border: 2px solid rgba(255, 255, 255, 0.24); color: var(--of-soft); }
.of-dot svg { width: 18px; height: 18px; }
.of-steps .of-done { color: var(--of-gold); }
.of-done .of-dot { background: var(--of-gold); border-color: var(--of-gold); color: #2A2340; }
.of-steps .of-next { color: #FFFFFF; }
.of-next .of-dot { border-color: var(--of-teal); color: var(--of-teal); animation: of-pulse 2.2s ease-in-out infinite; }
.of-mail { margin: 20px 0 0; font-size: 15px; line-height: 1.45; color: var(--of-muted); }
.of-more { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--of-muted); }
.of-more a { color: var(--of-gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.of-more a:focus-visible { outline: 3px solid var(--of-teal); outline-offset: 2px; border-radius: 4px; }

.of-go { display: flex; gap: 12px; margin: 18px -28px 0; padding: 12px 28px 8px; position: sticky; bottom: -24px; background: #1B3D52; }
.of-go::before { content: ''; position: absolute; left: 0; right: 0; top: -22px; height: 22px; background: linear-gradient(rgba(27, 61, 82, 0), #1B3D52); pointer-events: none; }
.of-btn { flex: 1; min-height: 52px; padding: 0 18px; border: 0; border-radius: 14px; cursor: pointer; font: 800 16px/1 var(--of-sans);
    background: linear-gradient(135deg, #F2C46B 0%, #E4A83B 100%); color: #2A2340; box-shadow: 0 6px 20px rgba(228, 168, 59, 0.3); transition: transform 0.15s ease, filter 0.15s ease; }
.of-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.of-btn:focus-visible { outline: 3px solid var(--of-teal); outline-offset: 2px; }
.of-btn.of-btn-quiet { background: transparent; color: var(--of-ink); border: 1.5px solid rgba(242, 196, 107, 0.6); box-shadow: none; }
.of-btn.of-btn-quiet:hover { background: rgba(242, 196, 107, 0.1); }
.of-spark { position: absolute; z-index: 0; color: var(--of-gold); pointer-events: none; font-size: 18px; line-height: 1; opacity: 0; animation: of-twinkle 2.8s ease-in-out infinite; }
@media (max-height: 860px) {
    .of-card { padding-top: 24px; }
    .of h2 { font-size: 34px; }
    .of-show { max-width: 400px; margin-top: 14px; }
}
@media (max-width: 480px) {
    .of { padding: 14px 10px; }
    .of-card { padding: 24px 16px 14px; border-radius: 22px; }
    .of-go { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; bottom: -14px; }
    .of h2 { font-size: 30px; }
    .of-lede { font-size: 17px; }
    .of-steps li { font-size: 12px; }
    .of-dot { width: 34px; height: 34px; }
    .of-steps li:not(:last-child)::after { top: 16px; left: calc(50% + 21px); right: calc(-50% + 21px); }
    .of-btn { font-size: 15px; }
}
@keyframes of-spin { to { transform: rotate(360deg); } }
@keyframes of-float { 0% { transform: translateY(0) rotate(0deg); opacity: 0; } 10% { opacity: 0.9; } 90% { opacity: 0.9; } 100% { transform: translateY(-125vh) rotate(360deg); opacity: 0; } }
@keyframes of-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes of-twinkle { 0%, 100% { opacity: 0; transform: scale(0.6) rotate(0deg); } 50% { opacity: 0.95; transform: scale(1.15) rotate(20deg); } }
@keyframes of-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(159, 224, 216, 0.35); } 50% { box-shadow: 0 0 0 7px rgba(159, 224, 216, 0); } }
@media (prefers-reduced-motion: reduce) {
    .of-particle { display: none; }
    .of-spark { animation: none; opacity: 0.7; }
    .of-next .of-dot, .of-show > .tp-pkg, .of-cover { animation: none; }
    .of-wait-ring span { animation-duration: 2.4s; }
    .of, .of-card { transition: none; }
}
