/* The clockwork and orbit details belong to Ah! My Goddess only. */
.goddess-page {
    --goddess-blue: #164a86;
    --goddess-lavender: #e9e6fa;
    --goddess-gold: #c5a264;
    background: #f7fbff;
}
.goddess-page::before {
    background:
        radial-gradient(circle at 85% 11%, rgb(185 208 255 / 36%), transparent 34%),
        radial-gradient(circle at 9% 42%, rgb(213 236 255 / 55%), transparent 34%),
        radial-gradient(circle at 80% 78%, rgb(226 224 253 / 29%), transparent 34%);
}
.goddess-page .mod-main { padding-bottom: 36px; }
.goddess-page .breadcrumb { margin-bottom: 15px; }
.goddess-page .chapter-nav { width: 100%; justify-content: space-around; }
.goddess-page .chapter-nav a { padding-inline: 15px; }
.goddess-page .section-heading h2::before { background: var(--goddess-gold); }
.goddess-page .tag-gold { background: #f8eac9; color: #795a27; }

.goddess-hero {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(16px, 3vw, 48px);
    min-height: 575px;
    align-items: center;
    margin-bottom: 33px;
}
.goddess-hero-copy { position: relative; z-index: 2; padding: 25px 0 52px; }
.goddess-hero h1 { color: #193650; margin: 10px 0 14px; font-size: clamp(4.3rem, 7.3vw, 7.2rem); font-weight: 900; letter-spacing: -.065em; line-height: .99; }
.goddess-hero h1 > span:first-of-type { color: #087fa0; }
.goddess-hero .title-mark { color: var(--goddess-gold); }
.goddess-hero .game-japanese { margin-top: 17px; color: #3a638f; font-size: 1.5rem; font-weight: 600; }
.goddess-hero .game-romanized { color: #6b829d; }
.goddess-hero-lead { max-width: 470px; margin: 22px 0 20px; color: #456785; font-size: 1.06rem; line-height: 1.9; }
.goddess-hero .hero-actions { margin-top: 27px; }
.goddess-hero-art { position: relative; min-height: 570px; isolation: isolate; }
.goddess-hero-art::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 5% 4% 8% 0;
    border-radius: 50%;
    background: radial-gradient(circle at 52% 48%, #ffffff 0 31%, #e6f4ff 57%, #eeeafa 74%, transparent 75%);
}
.orbit { position: absolute; z-index: -1; border: 1px solid rgb(176 163 135 / 45%); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 88%; aspect-ratio: 1; left: 1%; top: 5%; }
.orbit-two { width: 70%; aspect-ratio: 1; left: 10%; top: 14%; border-style: dashed; border-color: rgb(83 149 182 / 30%); }
.orbit-star { position: absolute; color: var(--goddess-gold); font-size: 2.2rem; }
.star-one { top: 6%; left: 1%; }.star-two { bottom: 10%; right: 8%; }
.hero-art-main, .hero-art-small { overflow: hidden; border: 1px solid #dce6ee; background: #ecf5fc; box-shadow: 0 20px 48px rgb(38 77 111 / 14%); }
.hero-art-main { position: absolute; z-index: 1; width: 64%; height: 89%; left: 7%; top: 2%; padding: 8px; border-radius: 24px; }
.hero-art-main img { width: 100%; height: 100%; object-fit: cover; object-position: center 27%; border-radius: 17px; }
.hero-art-small { position: absolute; z-index: 2; width: 39%; height: 54%; right: 0; bottom: 4%; padding: 7px; border-radius: 20px; }
.hero-art-small img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; border-radius: 13px; }

.goddess-story { position: relative; }
.goddess-story-intro { max-width: 800px; margin: 0 0 35px; color: #496782; font-size: 1rem; line-height: 2; }
.goddess-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.time-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #d9e5f0; border-radius: 25px; background: linear-gradient(145deg, #fff, #f4f9ff); box-shadow: 0 13px 37px rgb(43 87 119 / 8%); }
.time-card::before { content: ""; position: absolute; z-index: 2; top: 13px; left: 13px; width: 64px; aspect-ratio: 1; border: 1px solid rgb(222 192 126 / 65%); border-radius: 50%; box-shadow: inset 0 0 0 8px rgb(255 255 255 / 57%); pointer-events: none; }
.time-card-image { padding: 11px 11px 0; aspect-ratio: .94; background: linear-gradient(130deg, #dceffa, #f0edff); }
.time-card:nth-child(2) .time-card-image { background: linear-gradient(135deg, #e2edff, #f9eef8); }
.time-card:nth-child(3) .time-card-image { background: linear-gradient(135deg, #faf3de, #edf6ff); }
.time-card-image img { width: 100%; height: 100%; border-radius: 17px 17px 0 0; object-fit: contain; object-position: center top; }
.time-card-copy { flex: 1; padding: 22px 23px 28px; }
.time-card-number { color: #a6824f; font-size: .67rem; font-weight: 800; letter-spacing: .17em; }
.time-card h3 { margin-top: 7px; color: #1d3f61; font-size: 1.12rem; font-weight: 800; }
.time-card p { margin-top: 12px; color: #607b93; font-size: .87rem; line-height: 1.85; }

.goddess-screenshots .screenshot-album { border-color: #d9e8f3; background: linear-gradient(120deg, #f7fbff, #f5f3ff); }
.goddess-screenshots .screenshot-track { min-height: 250px; }
.goddess-screenshots .album-footer p { font-size: .8rem; }

.goddess-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.goddess-facts > div { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 122px; padding: 20px 23px; border: 1px solid #dbe8f3; border-radius: 19px; background: white; box-shadow: 0 9px 24px rgb(43 87 119 / 6%); }
.goddess-facts strong { color: #244c80; font-size: clamp(1rem, 1.8vw, 1.55rem); line-height: 1.35; }
.goddess-facts > div:first-child strong { font-size: 2rem; }
.goddess-facts span { color: #69829b; font-size: .82rem; }

.goddess-page .iso-card, .goddess-page .patch-file-guide { background: linear-gradient(125deg, #f0f7ff, #f7f5ff); }
.goddess-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.goddess-steps .install-step { grid-template-columns: 29px minmax(0, 1fr); gap: 10px; align-content: start; }
.goddess-steps .install-step > .icon { width: 27px; height: 27px; }
.goddess-steps .step-number { color: #3874a9; }
.goddess-steps .install-step > div { grid-column: 1 / -1; }
.goddess-steps .install-step h3 { margin-top: 5px; }
.goddess-guide-content { padding: 0 20px 18px; color: #5e7891; font-size: .85rem; }
.goddess-guide-content p + p { margin-top: 13px; }
.goddess-guide-content code, .download-filename { overflow-wrap: anywhere; }

.goddess-credits-card { display: flex; align-items: center; gap: 22px; padding: 25px 31px; border: 1px solid #d9e7f1; border-radius: 20px; background: white; box-shadow: 0 8px 27px rgb(43 87 119 / 6%); }
.credits-star { display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0; border: 1px solid #d8c49a; border-radius: 50%; color: #aa8a52; font-size: 1.55rem; }
.goddess-credits-card a { color: #1f517a; font-size: 1.05rem; font-weight: 800; }
.goddess-credits-card p { color: #687d92; font-size: .89rem; margin-top: 5px; }

.goddess-download { position: relative; overflow: hidden; scroll-margin-top: 175px; min-height: 315px; padding: 45px 55px; border-radius: 29px; background: linear-gradient(125deg, #19365f, #285682 64%, #516da2); color: #f4f9ff; }
.goddess-download::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6; background: radial-gradient(circle at 89% 32%, #ffebbd 0 2px, transparent 3px), radial-gradient(circle at 68% 72%, #d6ebff 0 1px, transparent 2px), radial-gradient(circle at 95% 70%, #d6ebff 0 2px, transparent 3px), radial-gradient(circle at 48% 19%, #d6ebff 0 1px, transparent 2px); }
.download-orbit { position: absolute; width: 390px; height: 390px; right: -35px; top: -45px; border: 1px solid #d7d0b36b; border-radius: 50%; box-shadow: inset 0 0 0 22px #ffffff08, inset 0 0 0 23px #d7d0b348, inset 0 0 0 76px #ffffff08, inset 0 0 0 77px #d7d0b335; }
.download-orbit::after { content: "✦"; position: absolute; top: 17%; left: 18%; color: #e4ce9d; font-size: 2.4rem; }
.goddess-download-copy { position: relative; max-width: 680px; z-index: 1; }
.goddess-download .eyebrow { color: #cfdbed; }
.goddess-download h2 { margin: 8px 0 13px; font-size: clamp(1.7rem, 3vw, 2.5rem); color: white; }
.goddess-download p { color: #d9e8f7; }
.goddess-download .patch-size { margin-top: 12px; color: #ffe3b1; font-size: .9rem; font-weight: 700; }
.goddess-download .button { margin-top: 23px; border-color: #f2ddb1; background: #f8fbff; color: #214a77; box-shadow: 0 8px 22px rgb(8 30 67 / 16%); }
.goddess-download #megami-download-tab-note { margin-top: 8px; font-size: .82rem; }
.goddess-download .download-filename { margin-top: 14px; font-size: .83rem; line-height: 1.6; }

@media (max-width: 1000px) {
    .goddess-hero h1 { font-size: clamp(3.8rem, 7vw, 5.8rem); }
    .goddess-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .goddess-page .chapter-nav a { padding-inline: 8px; }
}
@media (max-width: 760px) {
    .goddess-hero { grid-template-columns: 1fr; gap: 0; min-height: 0; }
    .goddess-hero-copy { padding: 8px 0 20px; }
    .goddess-hero h1 { font-size: clamp(4.2rem, 14vw, 6rem); }
    .goddess-hero .game-japanese { font-size: 1.2rem; }
    .goddess-hero-lead { font-size: .98rem; }
    .goddess-hero-art { width: min(100%, 440px); margin: 0 auto; min-height: 455px; }
    .hero-art-main { width: 66%; height: 89%; left: 4%; }
    .hero-art-small { width: 41%; height: 55%; }
    .goddess-page .chapter-nav { justify-content: flex-start; overflow-x: auto; gap: 8px; width: 100%; max-width: 100%; border-radius: 20px; scrollbar-width: thin; }
    .goddess-page .chapter-nav a { flex: none; padding: 10px 8px; font-size: .73rem; }
    .goddess-story-intro { font-size: .91rem; margin-bottom: 22px; }
    .goddess-story-grid { grid-template-columns: 1fr; gap: 17px; }
    .time-card-image { aspect-ratio: 1.03; }
    .time-card-copy { padding: 17px 21px 23px; }
    .goddess-facts { grid-template-columns: 1fr; }
    .goddess-facts > div { min-height: 88px; }
    .goddess-download { padding: 35px 25px; min-height: 350px; }
    .download-orbit { display: none; }
    .goddess-credits-card { padding: 19px; gap: 14px; }
    .credits-star { width: 45px; height: 45px; }
}
@media (max-width: 520px) {
    .goddess-hero-art { min-height: 370px; }
    .goddess-hero h1 { font-size: clamp(3.9rem, 15vw, 5rem); }
    .goddess-steps { grid-template-columns: 1fr; }
    .goddess-guide-content { font-size: .8rem; }
    .goddess-credits-card { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .time-card, .goddess-hero-art { transition: none; }
}
