:root{--navy:#071329;--navy2:#101d39;--gold:#e8c18b;--muted:#b9c3d5;--line:#9e7c55;--cream:#f5e8d0}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#071329;color:#f7eee4;font-family:'Hiragino Mincho ProN','Yu Mincho',Georgia,serif}.app{display:flex;min-height:100vh}.sidebar{width:230px;flex-shrink:0;background:linear-gradient(160deg,#050e20,#101936 68%,#342a47);border-right:1px solid #94724b;display:flex;flex-direction:column;min-height:100vh}.brand{display:flex;align-items:center;gap:10px;padding:26px 15px 35px;font-size:19px;white-space:nowrap}.brand small{display:block;color:var(--gold);font:10px Georgia;letter-spacing:3px;margin-top:6px}.compass{font-size:48px;color:#e7b874;text-shadow:0 0 20px #d58c50}.sidebar nav{padding:0 13px}.nav{width:100%;background:transparent;color:#f2ebdf;text-align:left;border:1px solid transparent;border-radius:10px;padding:15px;font-size:15px;cursor:pointer;margin:3px 0}.nav:hover,.nav.active{background:linear-gradient(100deg,#75523e66,#d8a46a55,#1a2948);border-color:#b99564;box-shadow:0 0 16px #c58b4438}.sidebar-bottom{margin-top:auto;text-align:center;padding:15px;color:#f1d7ac;line-height:2;font-size:13px}.sidebar-bottom small{font:12px Georgia}.cat{height:180px;background:url('assets/cat.webp') center 70%/cover;border-radius:10px;mask-image:linear-gradient(transparent 0%,black 25%,black 80%,transparent 100%)}main{width:calc(100% - 230px);min-width:0;background:radial-gradient(ellipse at 65% 0%,#293054 0%,#0b1730 60%,#070f22)}.hero{min-height:285px;position:relative;overflow:hidden;background:linear-gradient(90deg,#0b1532 0%,#273056 47%,#2e213e 100%)}.hero:before{content:"";position:absolute;inset:0;background:url('assets/observatory.webp') right center/auto 125% no-repeat;opacity:.95}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,#091329 2%,#121934cc 34%,#10162c30 74%),linear-gradient(0deg,#1b1937 0%,transparent 40%)}.hero-content{position:relative;text-align:center;padding:34px 22px 20px;margin-right:17%;text-shadow:0 2px 14px #030919}.eyebrow{font-size:14px;letter-spacing:4px;line-height:1.8}.hero h1{font-size:clamp(34px,4vw,60px);letter-spacing:8px;font-weight:500;margin:17px 0 4px}.roman{font:12px Georgia;letter-spacing:3px;color:#e8c9a3}.star-divider{color:var(--gold);margin:18px 0}.hero p{color:#f6dcc4;font-size:14px}.content{display:grid;grid-template-columns:1.07fr .93fr;gap:18px;padding:22px;max-width:1250px;margin:auto}.form-panel,.right-panel{border:1px solid #a17d5c;border-radius:15px;padding:25px;box-shadow:0 15px 35px #0006}.form-panel{background:linear-gradient(130deg,#0b1630ee,#20233fee)}.right-panel{background:linear-gradient(135deg,#121c35ee,#09162bee)}h2{font-size:23px;font-weight:500;margin:0 0 6px}.feather{color:var(--gold);font-size:30px}.sub{font-size:13px;color:#c4c8d5;margin:0 0 22px;line-height:1.7}form label:not(.chips label),.field-title{display:block;font-size:15px;font-weight:600;margin:18px 0 9px}em{font-style:normal;font-size:11px;color:#4c2522;background:#efb5a9;border-radius:12px;padding:3px 9px;margin-left:6px}input:not([type=radio]),select,textarea{width:100%;border:1px solid #69718a;border-radius:7px;background:#101a33;color:#fff;padding:13px 15px;font:15px sans-serif;min-height:47px}input::placeholder,textarea::placeholder{color:#a9b1c1}input:focus,select:focus,textarea:focus{outline:2px solid #d7a96e;outline-offset:1px}input[type=date]{color-scheme:dark}.chips{display:flex;gap:7px;flex-wrap:wrap}.chips label{cursor:pointer}.chips input{position:absolute;opacity:0}.chips span{display:block;padding:9px 15px;border:1px solid #69718a;border-radius:8px;font-size:13px}.chips input:checked+span{background:#b48b56;color:#071329;border-color:#f0ce93}.hint{font-size:11px;color:#c3c6d0;margin-top:8px;line-height:1.6}.primary{width:100%;background:linear-gradient(100deg,#d4a46b,#f7d7a0 35%,#75547c 75%,#d4a46b);color:#11182c;border:1px solid #f6c78c;border-radius:12px;padding:16px;font:600 17px serif;cursor:pointer;box-shadow:0 0 19px #e6ad715c;margin-top:22px}.primary:hover{filter:brightness(1.1)}.feature{display:flex;align-items:center;gap:15px;background:linear-gradient(110deg,#172643,#0c1730);border:1px solid #74677a;border-radius:10px;padding:10px;margin:10px 0;min-height:93px}.feature-icon{display:grid;place-items:center;width:76px;height:68px;flex-shrink:0;border-radius:8px;font-size:42px}.feature-icon.gold{color:#f6cb7d;background:radial-gradient(#815837,#171a36 75%)}.feature-icon.moon{color:#e7e0f6;background:radial-gradient(#434d83,#151b37 75%)}.feature-icon.blue{color:#8ce8f8;background:radial-gradient(#195b78,#0b1c36 75%)}.feature h3{margin:0 0 5px;font-size:18px;font-weight:500}.feature p{font-size:12px;margin:0 0 3px;color:#e0dbe1}.feature small{color:#b6b6ca;font-size:11px}.chev{margin-left:auto;font-size:30px;color:var(--gold)}.tip{border-top:1px solid #8d704e;margin-top:22px;padding:14px 4px}.tip h3{color:#f0d4a0;font-size:17px}.tip p{font-size:13px;color:#d0d3dd;line-height:1.8}.results,.other-page{max-width:1180px;margin:18px auto 40px;padding:26px;border:1px solid #997954;border-radius:14px;background:#0d1b35}.hidden{display:none!important}.results-head{text-align:center;padding:10px 0 20px}.results-head span,.result-label{color:#f0c994;letter-spacing:2px;font-size:12px}.results-head h2{font-size:30px;margin:12px}.result-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.result-card{padding:25px;border:1px solid #796d73;border-radius:12px;background:linear-gradient(140deg,#1b2946,#10182f)}.result-value{font-size:42px;color:#f1d3a4;margin:16px 0}.result-card p{font-size:13px;color:#c8cad7;line-height:1.7}.coming{font-size:23px;color:#e4c6a2;margin:25px 0}.name-line{margin:12px 0;font-size:14px}.name-line strong{font-size:24px;color:#f3c991;margin-left:10px}.result-actions{display:flex;gap:15px;max-width:520px;margin:18px auto}.result-actions .primary{margin:0}.secondary{background:transparent;color:#ead3b2;border:1px solid #9b7958;border-radius:10px;padding:12px 20px;cursor:pointer}.status{text-align:center;color:#e8c993}.history-item{padding:15px;border-bottom:1px solid #685e6a;display:flex;align-items:center;justify-content:space-between;gap:12px}.history-item button{background:transparent;border:1px solid #987c60;border-radius:8px;color:#f0d2a5;padding:8px 14px;cursor:pointer}.other-page{line-height:1.9}.other-page h2{color:#efd3a5}footer{text-align:center;color:#ae9e94;font-size:12px;padding:22px 10px 95px}.bottom-nav{display:none}@media(max-width:1000px){.sidebar{width:185px}.brand{font-size:15px}.compass{font-size:35px}main{width:calc(100% - 185px)}.content{grid-template-columns:1fr}.hero-content{margin-right:0}.hero:before{opacity:.45}}@media(max-width:650px){.sidebar{display:none}main{width:100%}.hero{min-height:270px}.hero:before{background-position:right center;background-size:auto 105%;opacity:.75}.hero-shade{background:linear-gradient(90deg,#071329aa,#07132944),linear-gradient(0deg,#0c1731,transparent 50%)}.hero-content{padding:48px 14px 12px}.eyebrow{font-size:12px;letter-spacing:2px}.hero h1{font-size:36px;letter-spacing:4px}.hero p{font-size:12px}.content{padding:12px;gap:12px}.form-panel,.right-panel{padding:20px 17px;border-radius:12px}.form-panel{background:linear-gradient(135deg,#f4e6ca,#fff4dc 52%,#e5cba4);color:#14223a;border-color:#b78a55}.form-panel .sub{color:#526076}.form-panel input:not([type=radio]),.form-panel select,.form-panel textarea{background:#fff9ee;color:#17233b;border:1px solid #c6b396}.form-panel input::placeholder,.form-panel textarea::placeholder{color:#777d83}.form-panel input[type=date]{color-scheme:light}.form-panel .chips span{border-color:#c6b396}.form-panel .hint{color:#596477}.form-panel .primary{color:#f9e8cc;background:linear-gradient(100deg,#1a2b4c,#483453,#1c2c4b)}.right-panel{margin-bottom:12px}.results,.other-page{margin:12px;padding:18px}.result-grid{grid-template-columns:1fr}.result-actions{flex-direction:column}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#081329f5;border-top:1px solid #a77f51;z-index:5;justify-content:space-around;padding:8px 0 max(8px,env(safe-area-inset-bottom))}.bottom-nav button{border:0;background:none;color:#c5b4a4;font-size:22px;display:flex;align-items:center;flex-direction:column;gap:2px;min-width:80px}.bottom-nav button small{font-size:11px}.bottom-nav button.active{color:#f3c78e}footer{padding-bottom:110px}}@media(min-width:651px){.form-panel{background:linear-gradient(130deg,#f0dec1,#fff3d8 50%,#ddc29e);color:#17233b}.form-panel .sub{color:#526076}.form-panel input:not([type=radio]),.form-panel select,.form-panel textarea{background:#fff8eb;color:#17233b;border:1px solid #c7ae8d}.form-panel input::placeholder,.form-panel textarea::placeholder{color:#7b7f85}.form-panel input[type=date]{color-scheme:light}.form-panel .chips span{border-color:#bba58b}.form-panel .hint{color:#596477}.form-panel .primary{background:linear-gradient(100deg,#1a2b4c,#4b355c,#192a49);color:#ffe5b5}}

.admin-link{display:block;text-decoration:none}.admin-page{max-width:960px;margin:auto;padding:30px 20px}.admin-page section{padding:20px;margin:20px 0;border:1px solid #9b7958;border-radius:12px;background:#101d39}.admin-page h1{font-size:30px}.admin-page h2{color:#e8c18b}.admin-page p{line-height:1.9}.admin-page table{width:100%;border-collapse:collapse}.admin-page td,.admin-page th{padding:10px;border:1px solid #74677a;text-align:left}.admin-page a{color:#e8c18b}
/* Observatory visual system */
body{background:#060f21;color:#f4efe9}.app{background:url('/assets/01_main_background.webp') center top/cover fixed}.sidebar{position:fixed;inset:0 auto 0 0;width:230px;z-index:10;background:linear-gradient(#030c1ded 0%,#030c1dd9 49%,#030c1d08 80%),url('/assets/02_cat_vertical_background.webp') center bottom/cover;border-color:#b48a5580}.brand{padding:26px 16px 30px;gap:9px}.compass{font-size:65px;font-weight:400;line-height:1;color:#f4cf94}.sidebar-bottom{min-height:45vh;padding-top:70px;display:flex;flex-direction:column;justify-content:center;text-shadow:0 2px 5px #000}.sidebar-bottom p{letter-spacing:3px}.sidebar-bottom small{letter-spacing:3px;line-height:1.8}.nav{min-height:46px}.nav.active{background:linear-gradient(100deg,#ae784b55,#dab28555,#6e4d6655);box-shadow:inset 0 0 14px #e9b77533,0 0 14px #eab87a22}.app main{margin-left:230px;width:calc(100% - 230px);background:linear-gradient(#07132900,#07132950);min-height:100vh}.hero{min-height:290px;background:none}.hero:before{background:none}.hero-shade{background:linear-gradient(0deg,#08142615,transparent)}.hero-content{padding:38px 20px 12px;margin-right:22%}.eyebrow{font-size:18px;letter-spacing:4px;line-height:1.65}.hero h1{font-size:clamp(36px,4.4vw,66px);letter-spacing:8px;margin:12px 0 2px}.roman{font-size:14px;color:#f7d9ae}.star-divider{margin:12px 0 0;text-shadow:0 0 15px #f8b85d}.content{padding:0 24px 24px;gap:16px;grid-template-columns:1.16fr .94fr;max-width:1250px}.form-panel,.right-panel{padding:24px 26px;background:linear-gradient(125deg,#0b172bed,#081527f5 60%,#222139ed);border:1px solid #c8a36b99;border-radius:16px;box-shadow:inset 0 0 18px #ecd2a909,0 10px 30px #0005;color:#f5f1ee}.form-panel .sub,.sub{color:#d9dae5;font-size:13px}.form-panel .hint,.hint{color:#c5c8d7}.form-panel input:not([type=radio]),.form-panel select,.form-panel textarea{background:linear-gradient(110deg,#14213988,#0b192ca8);border:1px solid #8291ab99;color:#f5f1ee;min-height:42px;padding:10px 12px;font-size:14px}.form-panel input::placeholder,.form-panel textarea::placeholder{color:#d3d5df}.form-panel input[type=date]{color-scheme:dark}select option{background:#101d33;color:#fff}form label:not(.chips label),.field-title{margin:17px 0 7px;font-family:'Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif}.optional{font-style:normal;font-size:11px;border-radius:20px;background:#70809a33;color:#dce4f3;padding:3px 10px;margin-left:8px;font-weight:400}em{background:#ff9d9d;color:#682a2b}.chips{display:grid;grid-template-columns:repeat(4,1fr)}.chips span{padding:7px 3px;border-radius:22px;text-align:center;font-size:14px}.form-panel .chips span{border-color:#8190aa88}.chips input:focus-visible+span{outline:2px solid #efc484;outline-offset:3px}.chips input:checked+span{background:#b68b55;color:#071329}.form-panel textarea{resize:vertical;min-height:64px}.primary,.form-panel .primary{background:url('/assets/03_button_normal.webp') center/100% 100% no-repeat;border:0;box-shadow:none;color:#fff5e8;text-shadow:0 2px 7px #20152e;font-size:18px;min-height:82px;padding:24px 16px;margin:14px 0 -5px;transition:filter .2s}.primary:hover,.form-panel .primary:hover{background-image:url('/assets/04_button_hover.webp');filter:brightness(1.1)}.feather{font-size:36px;color:#f9d7a0}.right-panel h2{font-size:22px;color:#f9e0b9}.feature{position:relative;isolation:isolate;overflow:hidden;min-height:104px;padding:12px 15px 12px 33%;background-position:center;background-size:cover;border:1px solid #b39980aa;margin:9px 0;border-radius:12px}.feature:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,transparent 10%,#0713290a 26%,#0713299c 40%,#07132955)}.feature:nth-of-type(1){background-image:url('/assets/07_numerology_card.webp')}.feature:nth-of-type(2){background-image:url('/assets/06_zodiac_card.webp')}.feature:nth-of-type(3){background-image:url('/assets/05_tensei_kaika_card.webp')}.feature:nth-of-type(4){background-image:url('/assets/08_mayan_calendar_card.webp')}.feature h3{font-size:22px;text-shadow:0 2px 5px #000}.feature p{font-size:12px}.feature small{font-size:11px;color:#e5dce7}.chev{font-size:26px;color:#fff}.tip{margin-top:16px}.tip h3{margin:0 0 10px}.tip p{font-size:12px}.mobile-compass{display:none}.results,.other-page{background:#0a182fee;max-width:calc(100% - 48px)}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:2px solid #f6cf98;outline-offset:3px}
@media(min-width:1600px){.hero{min-height:330px}.content{padding-top:12px}}
@media(max-width:1150px) and (min-width:701px){.sidebar{width:200px}.app main{margin-left:200px;width:calc(100% - 200px)}.brand{font-size:16px}.compass{font-size:47px}.content{padding:0 16px 20px;gap:12px}.form-panel,.right-panel{padding:20px 18px}.feature{padding-left:29%}.feature h3{font-size:19px}.hero-content{margin-right:12%}}
@media(max-width:900px){.content{grid-template-columns:1fr}.right-panel{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px}.right-panel>h2,.right-panel>.sub,.tip{grid-column:1/-1}.feature{margin:0}.hero-content{margin-right:0}}
@media(max-width:700px){.sidebar{display:none}.app main{width:100%;margin:0}.app{background-position:center top;background-size:auto 830px;background-repeat:no-repeat;background-attachment:scroll}.hero{min-height:280px}.hero-content{display:flex;flex-direction:column;align-items:center;padding:22px 10px 18px;margin:0}.mobile-compass{display:block;color:#f5cf93;font-size:72px;line-height:1.15;text-shadow:0 0 22px #f2b36580}.hero h1{font-size:34px;letter-spacing:5px;order:1;margin:8px 0}.roman{order:2;font-size:12px}.eyebrow{order:3;font-size:14px;letter-spacing:2px;margin-top:16px}.star-divider{display:none}.content{padding:0 12px 15px;gap:14px}.form-panel,.right-panel{padding:20px 18px;border-radius:13px}.form-panel .sub{font-size:12px;margin-bottom:16px;line-height:1.8}.form-panel h2{font-size:24px}.form-panel input:not([type=radio]),.form-panel select,.form-panel textarea{font-size:16px;min-height:44px}.chips{gap:5px}.chips span{font-size:13px;min-height:34px}.primary,.form-panel .primary{min-height:78px;font-size:18px}.right-panel{display:block}.feature{margin:10px 0;min-height:106px;padding-left:33%}.feature h3{font-size:22px}.bottom-nav{display:flex;background:#061226f5;backdrop-filter:blur(16px);border-color:#d1a25d88;z-index:20;padding:9px 0 max(10px,env(safe-area-inset-bottom))}.bottom-nav button{min-height:45px;min-width:80px;cursor:pointer}.results,.other-page{max-width:calc(100% - 24px);margin:12px}.result-grid{grid-template-columns:1fr}.result-actions{flex-direction:column}.history-item{flex-wrap:wrap}footer{padding-bottom:110px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Mobile header: independent scenic framing preserves the sunset and armillary. */
.mobile-header-nav{display:none}
@media(max-width:700px){
 .app{background:#071329}.app main{background:#071329}
 .hero{height:clamp(280px,76vw,380px);min-height:0;background:url('/assets/mobile-header.webp') center center/cover no-repeat;isolation:isolate}
 .hero:before{display:none}.hero-shade{background:linear-gradient(180deg,#020b1d12,transparent 45%,#020b1d20);z-index:-1}
 .hero-content{height:100%;padding:clamp(24px,7vw,46px) 12px 22px;justify-content:flex-start;text-shadow:0 2px 10px #030919,0 0 20px #03091980}
 .mobile-compass{font-size:0;line-height:1;margin-bottom:5px;filter:drop-shadow(0 0 9px #e6af684d)}
 .mobile-compass img{width:clamp(72px,22vw,104px);height:auto;display:block}
 .hero h1{font-size:clamp(27px,7.4vw,44px);font-weight:500;letter-spacing:.15em;text-indent:.15em;margin:5px 0 6px;line-height:1.4;white-space:nowrap}
 .hero .roman{font:12px Georgia,serif;letter-spacing:2px;line-height:1.5}
 .hero .eyebrow{font-size:clamp(13px,3.65vw,18px);line-height:1.6;letter-spacing:2px;margin-top:13px}
 .mobile-header-nav{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:-6px 12px 14px;padding:3px;border:1px solid #c8a36b99;border-radius:16px;background:linear-gradient(125deg,#12203bed,#041026f5);box-shadow:0 5px 16px #0005;min-height:52px}
 .mobile-header-nav button{border:1px solid transparent;background:transparent;color:#d9dce7;border-radius:13px;font:12px 'Yu Mincho',serif;white-space:nowrap;padding:10px 3px;cursor:pointer}
 .mobile-header-nav button span{font-size:18px;vertical-align:middle;margin-right:4px}
 .mobile-header-nav button.active{border-color:#f5cb8b;background:linear-gradient(100deg,#b17a4550,#d6ab7255,#82617c33);color:#ffe0aa;box-shadow:inset 0 0 12px #e4ad5544,0 0 8px #e4ad5522}
}

/* Supplied gold emblem and quill artwork. */
.compass{display:block;flex:0 0 68px;line-height:0}.compass img{display:block;width:68px;height:68px;object-fit:contain;filter:drop-shadow(0 0 8px #e6af6833)}
.feather{display:inline-flex;vertical-align:middle;margin:-8px 0 -8px -12px;width:64px;height:62px;align-items:center;justify-content:center}.feather img{display:block;width:76px;height:62px;max-width:none;object-fit:contain}
.nav-quill{display:inline-block;object-fit:contain;vertical-align:middle;flex-shrink:0}.mobile-header-nav button .nav-quill{margin-right:2px}.bottom-nav .nav-quill{height:26px;width:30px}
@media(min-width:701px) and (max-width:1150px){.compass{flex-basis:48px}.compass img{width:48px;height:48px}}

/* Readable sidebar at every height, including browser zoom. */
@media(min-width:701px){
 .sidebar{width:254px;overflow-y:auto;overflow-x:hidden;display:flex;padding-bottom:0;scrollbar-width:thin;background:linear-gradient(#030c1de8 0%,#030c1dc9 48%,#030c1d20 100%),url('/assets/02_cat_vertical_background.webp') center bottom/cover}
 .app main{margin-left:254px;width:calc(100% - 254px)}
 .brand{padding:22px 16px 25px;font-size:18px;gap:9px;white-space:normal;flex-shrink:0}.brand>div{min-width:0;white-space:nowrap}.brand small{font-size:10px;letter-spacing:2px}.brand .compass{flex:0 0 56px}.brand .compass img{width:56px;height:56px}
 .sidebar nav{padding:0 16px;flex-shrink:0}.sidebar .nav{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;margin:3px 0;padding:10px 12px;font:14px/1.5 'Yu Gothic','Hiragino Kaku Gothic ProN',sans-serif;white-space:normal;text-decoration:none;color:#f5f1e9}.sidebar .nav>span:last-child{overflow-wrap:anywhere}.nav-icon{display:inline-flex;justify-content:center;align-items:center;width:22px;height:24px;font-size:22px;flex:0 0 22px}.sidebar hr{border:0;border-top:1px solid #b7b0a45c;margin:16px 0}
 .sidebar-bottom{margin-top:auto;min-height:260px;flex-shrink:0;justify-content:flex-end;padding:28px 16px 32px;background:linear-gradient(transparent,#03102580 30%,#031025c9);color:#ffe1ab;text-shadow:0 2px 5px #000,0 0 12px #000;font-size:13px;line-height:1.9}.sidebar-bottom p{margin:0 0 20px;letter-spacing:2px}.sidebar-bottom small{display:block;line-height:1.9;font-size:11px;letter-spacing:2px}
}
footer{position:relative;background:#061225eb;color:#f6dcb8;line-height:1.8;padding:24px 16px;border-top:1px solid #b9975e55;text-shadow:0 1px 3px #000;font-size:13px;overflow-wrap:anywhere}footer a{color:#ffe3b1}.other-page a{color:#ffe3b1}#text-size-setting{max-width:320px;margin-top:12px}.large-text .sub,.large-text .hint,.large-text .feature p,.large-text .tip p{font-size:15px}.large-text .sidebar .nav{font-size:16px}
@media(max-width:700px){footer{padding-bottom:110px}.other-page{overflow-wrap:anywhere}}
/* The header has its own composition so the sphere cannot hide behind panels. */
@media(min-width:701px){
 .app{background:#071329}.app main{background:radial-gradient(ellipse at 80% 0%,#28304a,#071329 68%)}
 .hero{height:clamp(290px,26vw,390px);min-height:290px;background:url('/assets/desktop-header.webp') center center/cover no-repeat}
 .hero:before{display:none}.hero-shade{background:linear-gradient(90deg,#040e211a,transparent 65%)}
 .hero-content{display:flex;flex-direction:column;justify-content:center;height:100%;margin-right:32%;padding:18px 12px;text-align:center}
 .hero .eyebrow{font-size:clamp(14px,1.5vw,20px);letter-spacing:3px}
 .hero h1{font-size:clamp(31px,4vw,62px);letter-spacing:.13em;line-height:1.4;margin:12px 0 5px;white-space:nowrap}
 .hero .roman{font-size:12px;letter-spacing:2px}.hero .star-divider{margin-top:12px}
 .content{padding-top:18px}
 .sidebar{background-image:linear-gradient(#030c1de8 0%,#030c1dc9 45%,#030c1d08 80%),url('/assets/cat-rear-background.webp')}
}
@media(min-width:701px){.hero{background-size:contain;background-position:right bottom;background-color:#061126}}

/* Authentication is grouped in the upper-right account menu. */
.app main{position:relative}.account-bar{position:absolute;right:20px;top:14px;z-index:30;max-width:calc(100% - 32px);font-family:'Yu Gothic',sans-serif}.login-button,.account-menu summary{display:flex;align-items:center;gap:9px;min-height:42px;padding:7px 13px;border:1px solid #c7a16f99;border-radius:24px;background:#071529e8;color:#fff0d8;text-decoration:none;font-size:13px;box-shadow:0 3px 14px #0004;cursor:pointer}.account-menu summary{list-style:none}.account-menu summary::-webkit-details-marker{display:none}.account-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#dfbd88,#876184);color:#fff;font-size:14px}.account-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-dropdown{position:absolute;right:0;top:calc(100% + 8px);width:245px;max-width:calc(100vw - 32px);padding:10px;border:1px solid #c7a16f99;border-radius:12px;background:#0a182ff8;box-shadow:0 10px 35px #0009;color:#f6eee2}.account-email{font-size:11px;overflow-wrap:anywhere;color:#d4c5b0;margin:3px 7px 9px}.account-dropdown button,.account-dropdown a{display:block;width:100%;padding:12px 10px;border:0;border-radius:7px;background:transparent;color:#fff0d8;font:14px 'Yu Gothic',sans-serif;text-align:left;text-decoration:none;cursor:pointer}.account-dropdown button:hover,.account-dropdown a:hover{background:#e5bd8730}.tensei-result-card{grid-column:1/-1;background:linear-gradient(130deg,#283049,#0e1930)}.tensei-result-card .result-value{font-size:clamp(28px,4vw,44px);overflow-wrap:anywhere}.hero-content{padding-top:58px}.large-text .sidebar .nav{font-size:14px}
@media(max-width:700px){.account-bar{right:12px;top:10px}.account-name{max-width:112px}.login-button,.account-menu summary{font-size:11px;padding:5px 9px;min-height:34px}.account-avatar{width:24px;height:24px;font-size:12px}.hero{height:clamp(320px,85vw,420px)}.hero-content{padding-top:48px}.mobile-compass img{width:clamp(68px,20vw,94px)}}

/* Parchment is limited to the form controls. */
.form-panel input:not([type=radio]),.form-panel select,.form-panel textarea{
 background-color:#f7ecd2;
 background-image:linear-gradient(#fffaf329,#fffaf329),url('/assets/ivory-parchment.png');
 background-position:center;
 background-size:cover;
 border:1px solid #b69765;
 color:#3f3028;
 box-shadow:inset 0 1px 4px #89663a26;
 caret-color:#3f3028;
}
.form-panel input::placeholder,.form-panel textarea::placeholder{color:#76634f;opacity:1}
.form-panel input[type=date]{color-scheme:light}
.form-panel select option{background:#fbefd5;color:#3f3028}
.form-panel .chips span{background:#f8edd6 url('/assets/ivory-parchment.png') center/cover;border-color:#b69765;color:#4b382b}
.form-panel .chips input:checked+span{background:linear-gradient(#d8b56bb8,#d8b56bb8),url('/assets/ivory-parchment.png') center/cover;border-color:#f4d79c;color:#302416;box-shadow:0 0 0 1px #e6c681}
.form-panel input:not([type=radio]):focus,.form-panel select:focus,.form-panel textarea:focus{outline:2px solid #f3ce91;outline-offset:2px}

/* Parchment belongs to the entire new-reading panel. */
.form-panel{background:#f6e8ce url('/assets/ivory-parchment.png') center/cover no-repeat;color:#263144;border-color:#c4a271;box-shadow:inset 0 0 24px #b08b4533,0 10px 30px #0005}
.form-panel h2{color:#1b2b43}.form-panel .sub,.form-panel .hint{color:#665b50}.form-panel label,.form-panel .field-title{color:#263144}.form-panel .optional{background:#b5a58b40;color:#655b4e}.form-panel em{color:#7c3430;background:#f3b3a4}
.form-panel input:not([type=radio]),.form-panel select,.form-panel textarea{background:#fffbf1c9;background-image:none;border:1px solid #bfae91;color:#3f3028;box-shadow:inset 0 1px 3px #6b4b2212}
.form-panel .chips span{background:#fffbf1b8;background-image:none;border-color:#bfae91;color:#4b382b}
.form-panel .chips input:checked+span{background:#ddbf80;border-color:#a17c43;color:#302416}
.form-panel .primary{color:#fff4df;background-image:url('/assets/03_button_normal.webp')}
.form-panel input:not([type=radio]):focus,.form-panel select:focus,.form-panel textarea:focus{outline-color:#94713f}
/* One sheet of paper surrounds heading, labels, controls and submit button. */
.form-panel{background-image:url('/assets/form-parchment-panel.webp');background-position:center;background-size:100% 100%;padding-bottom:38px}
.form-panel input:not([type=radio]),.form-panel select,.form-panel textarea,.form-panel .chips span{background-image:none}
@media(max-width:700px){.form-panel{background-image:url('/assets/form-parchment-panel.webp');background-size:100% 100%;padding-bottom:28px}}
/* Safari date controls must be allowed to shrink inside the form grid. */
.content>.form-panel,.form-panel form{min-width:0;max-width:100%}
.form-panel input:not([type=radio]),.form-panel select,.form-panel textarea{box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;min-inline-size:0;max-inline-size:100%}
.form-panel input[type=date]{-webkit-appearance:none;appearance:none;min-width:0;min-inline-size:0;width:100%;inline-size:100%;max-width:100%;max-inline-size:100%;text-align:left}
.form-panel input[type=date]::-webkit-date-and-time-value{min-width:0;min-inline-size:0;text-align:left;margin:0}
.form-panel input[type=date]::-webkit-datetime-edit{display:inline-flex;min-width:0;padding:0;max-width:100%}
.form-panel input[type=date]::-webkit-datetime-edit-fields-wrapper{padding:0;min-width:0}
@media(max-width:700px){.content{grid-template-columns:minmax(0,1fr)}.form-panel .chips{grid-template-columns:repeat(4,minmax(0,1fr))}.form-panel .chips label{min-width:0}}
.sidebar nav .nav{margin-bottom:6px}.mobile-header-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.bottom-nav{justify-content:space-evenly}.history-tools{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:22px 0}.history-tools label{display:flex;flex-direction:column;gap:5px;font-size:13px;min-width:110px}.history-tools select{font-size:14px}.history-record{border:1px solid #b7986e88;border-radius:12px;padding:20px;margin:16px 0;background:#102039e8}.history-record h3{font-size:21px;margin:0}.history-date{font:12px/1.8 sans-serif;color:#d2c5b2}.history-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.history-categories>div{border:1px solid #d0ae6d44;border-radius:8px;padding:12px;background:#06142777}.history-categories strong{font-size:14px;color:#efd0a1}.history-categories p{font:13px/1.8 sans-serif;color:#f1ede6;overflow-wrap:anywhere;margin:7px 0 0}.secondary:disabled{opacity:.5;cursor:wait}.history-record .secondary{min-height:42px}#history-status{overflow-wrap:anywhere}@media(max-width:1000px){.history-categories{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.history-record{padding:14px}.history-tools{gap:10px}.history-tools label{flex:1}.history-tools>button{width:100%;min-height:44px}.history-categories{gap:8px}.history-categories>div{padding:9px}}

/* One saved reading per row, with distinct divination groups. */
.history-search-label{flex:1;min-width:min(260px,100%)!important}.history-tools input[type=search]{width:100%;min-width:0;padding:11px 12px;border:1px solid #ab8d65;border-radius:7px;background:#f9f0df;color:#30271e;font:16px sans-serif}#page-history{min-width:0;max-width:100%}.history-sheet-scroll{width:100%;max-width:100%;max-height:70vh;overflow:auto;border:1px solid #a88c66;border-radius:8px;background:#0e1d33;isolation:isolate}.history-sheet-scroll:focus-visible{outline:2px solid #e8c18b;outline-offset:3px}.history-sheet{width:100%;min-width:1850px;border-collapse:separate;border-spacing:0;font:13px/1.6 'Yu Gothic',sans-serif;text-align:left;color:#f8f0e5}.history-sheet caption{text-align:left;padding:10px 14px;color:#d9c29e;background:#101d31}.history-sheet th,.history-sheet td{padding:12px;border-right:1px solid #77695066;border-bottom:1px solid #77695066;vertical-align:top;white-space:nowrap}.history-sheet thead{position:sticky;top:0;z-index:3}.history-sheet thead th{background:#25364d;color:#f5dfb8;font-weight:600}.history-sheet .sheet-group{text-align:center;letter-spacing:.1em;background:#3c3543}.history-sheet thead .group-tensei{background:#45394f}.history-sheet thead .group-zodiac{background:#263e54}.history-sheet thead .group-numerology{background:#27443e}.history-sheet thead .group-maya{background:#4b3c2d}.history-sheet .group-start{border-left:2px solid #c1a174}.history-sheet tbody tr:nth-child(even){background:#172a40}.history-sheet tbody tr:hover{background:#293c50}.history-sheet tbody th{position:sticky;left:0;z-index:2;background:#17283d;min-width:160px;max-width:240px;white-space:normal;overflow-wrap:anywhere}.history-sheet tbody tr:nth-child(even) th{background:#1d3148}.history-sheet th button{font:inherit;color:inherit;border:0;background:transparent;cursor:pointer;padding:2px;text-align:left}.history-sheet th button:hover{color:#fff;text-decoration:underline}.history-sheet button:focus-visible{outline:2px solid #efd09a;outline-offset:3px}.history-sheet .sheet-name{color:#ffe0a8}.history-sheet td.group-extra{min-width:300px;max-width:420px;white-space:pre-wrap;overflow-wrap:anywhere}.history-sheet .group-saved{font-size:12px}@media(max-width:700px){.history-tools .history-search-label{flex-basis:100%}.history-sheet th,.history-sheet td{padding:10px}.history-sheet tbody th{min-width:120px;max-width:170px}.history-sheet-scroll{max-height:65vh}}

.history-sheet .sheet-name{display:block}.history-sheet th .sheet-delete{display:block;margin-top:8px;padding:5px 10px;border:1px solid #bc8d78;border-radius:5px;font-size:12px;color:#ffd7c7;background:#602f2b66}.history-sheet th .sheet-delete:hover{background:#7e3e36;color:#fff}.history-sheet .sheet-delete:disabled{opacity:.5;cursor:wait}

.form-panel input[type=time]{color-scheme:light;-webkit-appearance:none;appearance:none;min-width:0;max-width:100%}.form-panel input[type=time]::-webkit-date-and-time-value{text-align:left}#zodiac-detail{white-space:pre-line;line-height:1.8}.history-sheet td.group-zodiac{white-space:pre-line;min-width:230px;max-width:330px;overflow-wrap:anywhere}.result-card:has(#zodiac-result) .result-value{font-size:clamp(20px,3vw,30px);line-height:1.5;overflow-wrap:anywhere}

/* Fit the complete numerology artwork inside the card instead of cropping it. */
.right-panel .feature-numerology{background-color:#06152c;background-image:linear-gradient(90deg,transparent 20%,#06152c00 45%,#06152c 90%),url('/assets/05_tensei_kaika_card.webp');background-size:100% 100%,auto calc(100% - 12px);background-position:center,left 6px center;background-repeat:no-repeat;padding-left:33%;min-height:112px}.right-panel .feature-numerology>div{min-width:0}.right-panel .feature-numerology p{overflow-wrap:anywhere}.history-sheet th .sheet-edit{display:block;margin-top:8px;padding:5px 10px;border:1px solid #ad9872;border-radius:5px;font-size:12px;color:#ffe4b5;background:#6a593833}.history-sheet th .sheet-edit:hover{background:#6a5938}#cancel-edit{width:100%;margin-top:10px}
@media(max-width:700px){.right-panel .feature-numerology{min-height:112px;background-size:100% 100%,auto calc(100% - 16px);background-position:center,left 4px center}}

/* Enlarge the central polyhedron while keeping its top and bottom in frame. */
.right-panel .feature-numerology{background-size:100% 100%,auto 150%;background-position:center,left 0 top 40%;padding-left:max(33%,144px)}
@media(max-width:700px){.right-panel .feature-numerology{background-size:100% 100%,auto 150%;background-position:center,left 0 top 40%;padding-left:max(33%,140px)}}

.history-sheet td.group-identity{white-space:pre-line}

.history-sheet .history-birth-date,.history-sheet .history-birth-time{display:block}.history-sheet .history-birth-time{margin-top:4px;font-size:12px;line-height:1.6;color:#e4cfad}

/* Shared card geometry: one text alignment and balanced art scale. */
.right-panel .feature{min-height:112px;padding:14px 14px 14px 35%;margin:10px 0}.right-panel .feature>div{min-width:0}.right-panel .feature h3{font-size:22px;line-height:1.4;margin:0 0 7px}.right-panel .feature p{font-size:12px;line-height:1.7;margin:0}.right-panel .feature-numerology{background-size:100% 100%,auto 132%;background-position:center,left 8px top 40%;padding-left:35%}@media(max-width:700px){.right-panel .feature{min-height:112px;padding-left:35%}.right-panel .feature-numerology{background-size:100% 100%,auto 132%;background-position:center,left 8px top 40%;padding-left:35%}}
.public-shell{width:min(1120px,100%);padding:24px clamp(18px,4vw,48px) 60px;margin:auto;background:transparent;font-family:'Yu Gothic',sans-serif;line-height:1.9}.public-shell h1{font-family:'Yu Mincho',serif;font-size:clamp(28px,5vw,44px);line-height:1.5;color:#f5d7a4}.public-shell h2{margin:16px 0}.public-shell section{margin:28px 0;padding:24px;border:1px solid #9a805955;border-radius:14px;background:#10213bdd}.public-shell a{color:#f6d9a7}.public-nav{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-bottom:1px solid #9a805955;padding-bottom:15px}.public-nav span{display:flex;gap:20px;flex-wrap:wrap}.public-hero{text-align:center;padding:55px 24px!important;background:linear-gradient(#07132966,#071329cc),url('/assets/desktop-header.webp') center/cover!important}.public-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:16px}.public-grid article,.public-shell section>article{border:1px solid #a48a6255;border-radius:10px;padding:20px;background:#07132977}.public-button{display:inline-block;border:1px solid #d5b57e;border-radius:8px;padding:12px 22px;background:#d9bb84;color:#172038!important;text-decoration:none;font:600 16px/1.7 'Yu Gothic',sans-serif;cursor:pointer}.public-button:disabled{opacity:.5;cursor:not-allowed}.public-form{display:grid;gap:16px;max-width:700px}.public-form label{display:grid;gap:5px}.public-form button{justify-self:start}.consent{display:flex;align-items:center;gap:12px;margin:20px 0}.consent input{width:20px;height:20px;min-height:0;flex-shrink:0}.legal-footer{text-align:center;font:12px/2 'Yu Gothic',sans-serif;color:#acb3be;padding:25px 15px 100px}.legal-footer nav{margin:12px 0}.legal-footer a{color:#acb3be}.legal-copy{font-size:15px;line-height:1.9;overflow-wrap:anywhere}.legal-copy p{white-space:pre-wrap;margin:6px 0}.legal-copy table,.admin-table table{width:100%;border-collapse:collapse}.legal-copy td,.admin-table td,.admin-table th{border:1px solid #b19b7255;padding:12px;vertical-align:top}.legal-copy td:first-child{min-width:130px}.admin-table{overflow:auto}.admin-table input{min-width:150px}.admin-table button{margin-top:6px;padding:8px}.inquiry-message{white-space:pre-wrap;overflow-wrap:anywhere}.expiry-notice{color:#ffe5a5}.screen-example{position:relative;max-width:650px;margin:24px auto;min-height:250px;overflow:hidden;border-radius:12px;color:#253449;background:#f6e8ce}.screen-example>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.screen-example figcaption{position:relative;padding:24px}.example-fields{font-size:16px;line-height:2.5}.plan-price{font-size:22px}@media(max-width:600px){.public-shell section{padding:18px}.public-nav span{gap:12px}.legal-copy table{font-size:13px}.public-shell h2{font-size:21px}}

.maya-values{margin:18px 0 0}.maya-values>div{margin:12px 0}.maya-values dt{font-size:12px;color:var(--muted);line-height:1.6}.maya-values dd{margin:3px 0 0;color:#f5dfba;font-size:19px;line-height:1.7;overflow-wrap:anywhere}.maya-note{display:block;font-size:11px;color:var(--muted);line-height:1.8;margin-top:15px}.maya-note:empty{display:none}.history-sheet td.group-maya{white-space:normal;min-width:115px;overflow-wrap:anywhere}

.public-shell .methods-page{max-width:900px;margin:36px auto 65px;line-height:1.95;overflow-wrap:anywhere}.methods-page h1{color:var(--gold);font-size:32px;font-weight:500;letter-spacing:.12em}.public-shell .methods-page section{padding:26px clamp(18px,4vw,32px);margin:32px 0;background:linear-gradient(140deg,#14243b,#0a182e);border:1px solid #b496654d;border-radius:12px}.methods-page h2{font-size:24px;font-weight:500;color:var(--gold);scroll-margin-top:24px}.methods-page h3{font-size:18px;color:#eddbc0;margin:28px 0 10px}.methods-page p,.methods-page li{font-size:14px;color:#d1d8e2}.methods-page ul{padding-left:1.4em}.methods-page li+li{margin-top:12px}.methods-letter-table{width:100%;max-width:420px;border-collapse:collapse;font-family:'Yu Gothic',sans-serif}.methods-letter-table th,.methods-letter-table td{border:1px solid #a58b6255;padding:9px 16px;text-align:left;font-size:14px}.methods-letter-table thead{color:var(--gold);background:#1e2a40}.methods-letter-table tbody th{font-weight:400;width:80px}.methods-page .methods-update{margin-top:38px}.methods-page .methods-updated{font-size:12px;color:var(--muted)}.result-card .calculation-method-link{margin:18px 0 0;font-size:11px;line-height:1.8}.calculation-method-link a{color:#e2c99f;text-underline-offset:4px}.calculation-method-link a:focus-visible{outline:2px solid var(--gold);outline-offset:4px}@media(max-width:700px){.public-shell .methods-page{margin-top:24px}.methods-page h1{font-size:28px}.methods-page h2{font-size:22px}.methods-page p,.methods-page li{font-size:13px}}

.brand,.brand-home{color:inherit;text-decoration:none}.brand:focus-visible,.brand-home:focus-visible{outline:2px solid var(--gold);outline-offset:4px}

.zodiac-artwork:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: .75rem;
  margin: 1rem 0;
}

.zodiac-artwork img {
  display: block;
  width: min(100%, 15rem);
  height: auto;
  border-radius: .4rem;
}

.zodiac-artwork img:not(:only-child) {
  width: min(calc(50% - .375rem), 15rem);
}

.tensei-artwork {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: min(100%, 18rem);
  margin: .7rem auto 1rem;
}

.tensei-artwork img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10%;
}

.tensei-artwork.tensei-mix {
  width: min(100%, 24rem);
}

.tensei-mix img:first-child {
  width: 70%;
}

.tensei-mix img:last-child {
  width: 42%;
  margin: 31% 0 0 -12%;
  z-index: 1;
}

/* Numerology results are real text inside decorative medallions. */
:is(#life-result, #birthday-result, #challenge-result),
#name-number-values .name-line strong {
  --medallion-size: 5.25rem;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--medallion-size);
  height: var(--medallion-size);
  border: 2px solid #c8a36b;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 27%, #263b65, #0b1732 61%, #050c1e);
  box-shadow: inset 0 0 0 3px #10192e, inset 0 0 0 4px #a8824e,
              inset 0 0 16px #dcb67430, 0 3px 12px #0005;
  color: #ffe6b4;
  font-family: Georgia, serif;
  font-size: 2.45rem;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
  text-shadow: 0 0 10px #f3c56d50;
}

:is(#life-result, #birthday-result, #challenge-result)::before,
:is(#life-result, #birthday-result, #challenge-result)::after,
#name-number-values .name-line strong::before,
#name-number-values .name-line strong::after {
  content: '';
  position: absolute;
  left: 50%;
  width: .27rem;
  height: .27rem;
  border: 1px solid #e6bf80;
  background: #f3d9a2;
  transform: translateX(-50%) rotate(45deg);
}

:is(#life-result, #birthday-result, #challenge-result)::before,
#name-number-values .name-line strong::before { top: .34rem; }

:is(#life-result, #birthday-result, #challenge-result)::after,
#name-number-values .name-line strong::after { bottom: .34rem; }

#name-number-values .name-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  overflow-wrap: anywhere;
}

#name-number-values .name-line strong {
  --medallion-size: 3.55rem;
  margin-left: 0;
  font-size: 1.55rem;
}

#results:has(.report-layout) {
  padding: clamp(14px, 3vw, 34px);
  border-color: #98754f;
  background: radial-gradient(ellipse at top, #223356 0%, #0c182e 36%, #091327 100%);
}

#results:has(.report-layout) .results-head {
  padding: 16px 0 30px;
}

.report-emblem {
  display: block;
  object-fit: contain;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 11px #e8b45a55);
}

#results:has(.report-layout) .results-head h2 {
  font-size: clamp(23px, 4vw, 38px);
  font-weight: 500;
  overflow-wrap: anywhere;
}

#results:has(.report-layout) #result-birth {
  margin: 10px 0 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.report-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}

.report-layout > .result-card {
  min-width: 0;
  padding: clamp(14px, 2.8vw, 28px);
  border-color: #b28d5e80;
  background: linear-gradient(155deg, #1b2c4d, #0c172c 78%);
  box-shadow: inset 0 1px #f1c68c26, 0 8px 24px #03091655;
}

.report-layout > .result-card > .result-label {
  display: block;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #c69a6352;
  color: #f7d7a3;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 500;
}

.report-layout > .tensei-result-card { grid-column: auto; }
.report-layout > :is(.tensei-result-card, .report-zodiac) { text-align: center; }
.report-layout :is(#tensei-result, #zodiac-result) { margin: 12px 0; }
.report-layout .zodiac-artwork img:only-child { width: min(100%, 12rem); }

.report-numerology,
.report-layout > .maya-result-card { grid-column: 1 / -1; }

.report-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(5px, 1.4vw, 14px);
}

.report-numbers > .result-card {
  min-width: 0;
  padding: clamp(8px, 1.7vw, 18px) 4px;
  border-color: #b28d5e42;
  background: #0a152a80;
  text-align: center;
}

.report-numbers .result-label { letter-spacing: normal; }
.report-numbers :is(#life-result, #birthday-result, #challenge-result) {
  --medallion-size: clamp(3rem, 12vw, 5.25rem);
  margin: 12px 0 2px;
  font-size: clamp(1.45rem, 5.6vw, 2.45rem);
}

.report-numerology #name-numbers {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #c69a6352;
}

.report-layout .maya-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.report-layout .maya-values > div {
  margin: 0;
  padding: 10px 7px;
  border-radius: 8px;
  background: #0a152a80;
}

@media (max-width: 700px) {
  .report-layout { grid-template-columns: minmax(0, 1fr); }
  .report-layout .maya-values dd { font-size: .95rem; }
}

/* Keep the portraits in the first row and group the numerical results below. */
#results:has(.report-layout) .results-head::after {
  content: '✦';
  display: block;
  width: min(360px, 85%);
  margin: 20px auto 0;
  color: var(--gold);
  background: linear-gradient(90deg, transparent, #c69a6370 45%, transparent 45% 55%, #c69a6370 55%, transparent) center / 100% 1px no-repeat;
}

.report-layout > :is(.tensei-result-card, .report-zodiac) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: radial-gradient(ellipse at 50% 25%, #253b61, #101d35 66%, #0b1529);
}

.report-layout :is(.tensei-artwork, .zodiac-artwork) {
  margin: auto auto 0;
}

.report-layout .zodiac-artwork:not([hidden]) {
  width: 100%;
}

.report-layout .zodiac-artwork img:only-child {
  width: min(100%, 18rem);
}

.report-layout .zodiac-artwork img {
  border-radius: 4px;
  box-shadow: 0 8px 25px #02081088;
}

.report-layout #zodiac-detail:empty { display: none; }
.report-layout .report-zodiac .calculation-method-link { margin-top: auto; }

.report-layout #name-number-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.report-layout #name-number-values .name-line {
  flex-direction: column-reverse;
  justify-content: flex-end;
  text-align: center;
  padding: 10px 4px;
  background: #0a152a80;
  border-radius: 8px;
  font-size: clamp(11px, 1.4vw, 14px);
}

@media (min-width: 701px) {
  .report-layout > .maya-result-card {
    display: grid;
    grid-template-columns: minmax(115px, .7fr) minmax(0, 3fr);
    gap: 0 16px;
    align-items: center;
  }

  .report-layout .maya-result-card > :is(.result-label, .maya-note, .calculation-method-link) {
    grid-column: 1 / -1;
  }

  .report-layout .maya-result-card #maya-kin {
    margin: 0;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(20px, 2.6vw, 32px);
  }

  .report-layout .maya-result-card .maya-values { margin: 0; }
}

@media (max-width: 700px) {
  .report-layout .zodiac-artwork img:only-child { width: min(100%, 17rem); }
  .report-layout #name-number-values { gap: 5px; }
}

/* The source portraits include white margins. Clip only the display area. */
.report-layout .tensei-artwork img {
  aspect-ratio: auto;
  border-radius: 0;
  clip-path: var(--portrait-outline);
}

.report-layout .tensei-artwork.tensei-mix {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
  gap: 0;
}

.report-layout .tensei-mix img {
  width: 100%;
  margin: 0;
}
/* All six beta portraits share the same circular border. */
.tensei-artwork img[src$="-beta.webp"] {
  --portrait-outline: ellipse(43.1% 43.55% at 50.1% 47.65%);
}

.tensei-artwork img[src$="/celeb-alpha.webp"] {
  --portrait-outline: polygon(92.75% 47.50%, 92.65% 50.55%, 92.21% 53.58%, 91.82% 56.60%, 90.85% 59.50%, 89.94% 62.39%, 88.83% 65.21%, 87.41% 67.88%, 85.83% 70.43%,
    84.18% 72.94%, 82.27% 75.24%, 80.21% 77.39%, 78.10% 79.47%, 75.86% 81.40%, 73.42% 83.06%, 70.94% 84.65%, 68.36% 86.05%, 65.73% 87.39%,
    63.02% 88.54%, 60.16% 89.24%, 57.29% 89.87%, 54.39% 90.29%, 51.47% 90.50%, 48.53% 90.50%, 45.60% 90.41%, 42.69% 89.99%, 39.81% 89.37%,
    36.94% 88.66%, 34.17% 87.63%, 31.48% 86.40%, 28.88% 84.98%, 26.44% 83.27%, 23.99% 81.60%, 21.73% 79.66%, 19.52% 77.65%, 17.44% 75.48%,
    15.52% 73.16%, 13.85% 70.64%, 12.14% 68.12%, 10.83% 65.36%, 9.71% 62.52%, 8.79% 59.61%, 7.82% 56.68%, 7.42% 53.63%, 6.98% 50.58%,
    6.75% 47.50%, 6.86% 44.41%, 7.29% 41.35%, 7.70% 38.29%, 8.43% 35.29%, 9.48% 32.39%, 10.60% 29.53%, 11.92% 26.76%, 13.53% 24.16%,
    15.31% 21.69%, 17.06% 19.19%, 19.16% 16.99%, 21.31% 14.86%, 23.68% 12.99%, 26.02% 11.09%, 28.62% 9.58%, 31.26% 8.14%, 33.99% 6.90%,
    36.79% 5.85%, 39.66% 5.01%, 42.58% 4.38%, 45.53% 3.95%, 48.51% 3.74%, 51.49% 3.74%, 54.47% 3.95%, 57.40% 4.50%, 60.31% 5.13%,
    63.17% 5.97%, 65.97% 7.02%, 68.69% 8.26%, 71.31% 9.69%, 73.84% 11.30%, 76.24% 13.09%, 78.52% 15.05%, 80.66% 17.17%, 82.65% 19.43%,
    84.48% 21.84%, 86.15% 24.36%, 87.64% 27.00%, 89.05% 29.69%, 90.17% 32.52%, 91.09% 35.43%, 91.94% 38.37%, 92.33% 41.41%, 92.65% 44.45%);
}
.tensei-artwork img[src$="/expert-alpha.webp"] {
  --portrait-outline: polygon(93.00% 47.50%, 92.52% 50.55%, 92.09% 53.56%, 91.69% 56.58%, 90.73% 59.46%, 89.94% 62.39%, 88.71% 65.15%, 87.30% 67.82%, 85.72% 70.37%,
    84.08% 72.86%, 82.17% 75.15%, 80.21% 77.39%, 78.02% 79.38%, 75.78% 81.30%, 73.42% 83.06%, 70.94% 84.65%, 68.36% 86.05%, 65.69% 87.27%,
    62.94% 88.29%, 60.13% 89.12%, 57.27% 89.74%, 54.38% 90.16%, 51.46% 90.37%, 48.54% 90.37%, 45.62% 90.16%, 42.73% 89.74%, 39.87% 89.12%,
    37.02% 88.42%, 34.27% 87.39%, 31.64% 86.05%, 28.94% 84.87%, 26.51% 83.17%, 24.07% 81.50%, 21.90% 79.47%, 19.70% 77.47%, 17.63% 75.32%,
    15.82% 72.94%, 14.06% 70.50%, 12.47% 67.94%, 11.17% 65.21%, 10.06% 62.39%, 9.03% 59.53%, 8.18% 56.60%, 7.79% 53.58%, 7.35% 50.55%,
    6.75% 47.50%, 7.23% 44.44%, 7.67% 41.41%, 8.18% 38.40%, 8.91% 35.43%, 9.83% 32.52%, 10.95% 29.69%, 12.36% 27.00%, 13.96% 24.43%,
    15.52% 21.84%, 17.54% 19.60%, 19.43% 17.26%, 21.65% 15.24%, 23.99% 13.40%, 26.37% 11.62%, 28.87% 10.02%, 31.53% 8.72%, 34.22% 7.49%,
    36.98% 6.46%, 39.81% 5.63%, 42.71% 5.13%, 45.61% 4.71%, 48.53% 4.50%, 51.47% 4.50%, 54.39% 4.71%, 57.29% 5.13%, 60.16% 5.76%,
    63.02% 6.46%, 65.78% 7.49%, 68.47% 8.72%, 71.12% 10.02%, 73.56% 11.73%, 75.93% 13.50%, 78.27% 15.34%, 80.39% 17.44%, 82.37% 19.68%,
    84.18% 22.06%, 85.83% 24.57%, 87.41% 27.12%, 88.71% 29.85%, 89.94% 32.61%, 90.73% 35.54%, 91.57% 38.45%, 92.09% 41.44%, 92.52% 44.45%);
}
.tensei-artwork img[src$="/king-alpha.webp"] {
  --portrait-outline: polygon(93.62% 47.50%, 93.52% 50.62%, 93.08% 53.70%, 92.55% 56.76%, 91.69% 59.75%, 90.64% 62.65%, 89.40% 65.47%, 87.97% 68.18%, 86.36% 70.77%,
    84.59% 73.24%, 82.65% 75.57%, 80.66% 77.83%, 78.44% 79.85%, 76.17% 81.81%, 73.70% 83.49%, 71.19% 85.09%, 68.58% 86.51%, 65.87% 87.75%,
    63.09% 88.78%, 60.25% 89.62%, 57.36% 90.25%, 54.43% 90.67%, 51.48% 90.88%, 48.52% 90.88%, 45.57% 90.67%, 42.64% 90.25%, 39.75% 89.62%,
    36.87% 88.90%, 34.08% 87.86%, 31.37% 86.63%, 28.75% 85.20%, 26.16% 83.70%, 23.76% 81.91%, 21.48% 79.95%, 19.25% 77.92%, 17.16% 75.73%,
    15.31% 73.31%, 13.43% 70.91%, 11.81% 68.30%, 10.49% 65.52%, 9.24% 62.70%, 8.06% 59.82%, 7.21% 56.82%, 6.68% 53.74%, 6.23% 50.64%,
    6.12% 47.50%, 6.11% 44.36%, 6.55% 41.25%, 6.96% 38.13%, 7.70% 35.08%, 8.65% 32.09%, 9.80% 29.17%, 11.26% 26.40%, 12.79% 23.68%,
    14.50% 21.08%, 16.49% 18.69%, 18.53% 16.37%, 20.73% 14.20%, 23.06% 12.19%, 25.54% 10.35%, 28.19% 8.80%, 30.88% 7.34%, 33.66% 6.07%,
    36.56% 5.12%, 39.48% 4.27%, 42.45% 3.62%, 45.45% 3.19%, 48.48% 2.97%, 51.52% 2.97%, 54.55% 3.19%, 57.55% 3.62%, 60.52% 4.27%,
    63.44% 5.12%, 66.34% 6.07%, 69.12% 7.34%, 71.75% 8.91%, 74.32% 10.56%, 76.78% 12.39%, 79.11% 14.39%, 81.29% 16.55%, 83.32% 18.86%,
    85.19% 21.31%, 86.89% 23.89%, 88.52% 26.52%, 89.97% 29.27%, 90.99% 32.22%, 92.06% 35.15%, 92.79% 38.18%, 93.20% 41.28%, 93.64% 44.37%);
}
.tensei-artwork img[src$="/lover-alpha.webp"] {
  --portrait-outline: polygon(93.88% 47.50%, 93.64% 50.63%, 93.20% 53.72%, 92.67% 56.79%, 91.81% 59.78%, 90.64% 62.65%, 89.40% 65.47%, 88.08% 68.24%, 86.36% 70.77%,
    84.59% 73.24%, 82.65% 75.57%, 80.57% 77.74%, 78.35% 79.76%, 76.17% 81.81%, 73.70% 83.49%, 71.19% 85.09%, 68.58% 86.51%, 65.83% 87.63%,
    63.06% 88.66%, 60.22% 89.49%, 57.34% 90.12%, 54.42% 90.54%, 51.47% 90.62%, 48.53% 90.75%, 45.58% 90.54%, 42.66% 90.12%, 39.78% 89.49%,
    36.91% 88.78%, 34.08% 87.86%, 31.37% 86.63%, 28.75% 85.20%, 26.16% 83.70%, 23.76% 81.91%, 21.39% 80.04%, 19.25% 77.92%, 17.16% 75.73%,
    15.21% 73.39%, 13.43% 70.91%, 11.70% 68.36%, 10.37% 65.57%, 9.01% 62.78%, 7.94% 59.85%, 7.08% 56.84%, 6.55% 53.75%, 5.98% 50.65%,
    5.88% 47.50%, 5.86% 44.34%, 6.30% 41.21%, 6.72% 38.08%, 7.46% 35.01%, 8.42% 32.00%, 9.58% 29.06%, 11.04% 26.28%, 12.58% 23.55%,
    14.30% 20.93%, 16.29% 18.53%, 18.35% 16.19%, 20.64% 14.10%, 22.99% 12.08%, 25.47% 10.24%, 28.06% 8.58%, 30.77% 7.11%, 33.61% 5.95%,
    36.48% 4.88%, 39.45% 4.14%, 42.42% 3.49%, 45.43% 2.93%, 48.47% 2.71%, 51.52% 2.84%, 54.57% 2.93%, 57.58% 3.49%, 60.55% 4.14%,
    63.48% 5.00%, 66.39% 5.95%, 69.18% 7.22%, 71.88% 8.69%, 74.46% 10.35%, 76.94% 12.19%, 79.27% 14.20%, 81.47% 16.37%, 83.51% 18.69%,
    85.29% 21.23%, 87.10% 23.75%, 88.63% 26.46%, 90.08% 29.22%, 91.23% 32.13%, 92.18% 35.11%, 92.92% 38.16%, 93.45% 41.25%, 93.77% 44.36%);
}
.tensei-artwork img[src$="/mania-alpha.webp"] {
  --portrait-outline: polygon(93.25% 47.50%, 92.65% 50.55%, 92.21% 53.58%, 91.82% 56.60%, 90.85% 59.50%, 90.05% 62.43%, 88.83% 65.21%, 87.41% 67.88%, 85.94% 70.50%,
    84.18% 72.94%, 82.37% 75.32%, 80.30% 77.47%, 78.10% 79.47%, 75.93% 81.50%, 73.49% 83.17%, 71.06% 84.87%, 68.41% 86.17%, 65.78% 87.51%,
    62.98% 88.42%, 60.16% 89.24%, 57.29% 89.87%, 54.40% 90.41%, 51.47% 90.50%, 48.53% 90.50%, 45.60% 90.41%, 42.71% 89.87%, 39.81% 89.37%,
    36.98% 88.54%, 34.22% 87.51%, 31.48% 86.40%, 28.88% 84.98%, 26.44% 83.27%, 23.99% 81.60%, 21.73% 79.66%, 19.61% 77.56%, 17.54% 75.40%,
    15.62% 73.09%, 13.96% 70.57%, 12.36% 68.00%, 11.06% 65.26%, 9.83% 62.48%, 8.91% 59.57%, 8.06% 56.63%, 7.67% 53.59%, 7.23% 50.56%,
    6.62% 47.50%, 7.10% 44.43%, 7.54% 41.39%, 7.94% 38.34%, 8.79% 35.39%, 9.71% 32.48%, 10.95% 29.69%, 12.14% 26.88%, 13.85% 24.36%,
    15.52% 21.84%, 17.35% 19.43%, 19.34% 17.17%, 21.56% 15.15%, 23.83% 13.19%, 26.30% 11.51%, 28.81% 9.91%, 31.42% 8.49%, 34.17% 7.37%,
    37.18% 7.07%, 39.81% 5.63%, 42.69% 5.01%, 45.60% 4.59%, 48.53% 4.38%, 51.47% 4.38%, 54.40% 4.59%, 57.31% 5.01%, 60.19% 5.63%,
    63.06% 6.34%, 65.83% 7.37%, 68.47% 8.72%, 71.12% 10.02%, 73.63% 11.62%, 76.01% 13.40%, 78.35% 15.24%, 80.48% 17.35%, 82.46% 19.60%,
    84.38% 21.91%, 86.04% 24.43%, 87.53% 27.06%, 88.94% 29.74%, 90.05% 32.57%, 90.97% 35.47%, 91.82% 38.40%, 92.33% 41.41%, 92.65% 44.45%);
}
.tensei-artwork img[src$="/star-alpha.webp"] {
  --portrait-outline: polygon(92.38% 47.50%, 92.27% 50.53%, 91.84% 53.53%, 91.33% 56.51%, 90.61% 59.44%, 89.70% 62.32%, 88.37% 65.02%, 87.08% 67.72%, 85.62% 70.33%,
    83.88% 72.74%, 81.98% 75.02%, 80.03% 77.25%, 77.94% 79.32%, 75.63% 81.14%, 73.28% 82.89%, 70.81% 84.47%, 68.25% 85.87%, 65.55% 86.96%,
    62.82% 87.98%, 60.04% 88.80%, 57.23% 89.54%, 54.34% 89.83%, 51.45% 90.04%, 48.55% 90.17%, 45.66% 89.83%, 42.77% 89.54%, 39.93% 88.92%,
    37.14% 88.10%, 34.41% 87.08%, 31.70% 85.99%, 29.13% 84.58%, 26.58% 83.11%, 24.22% 81.34%, 21.90% 79.51%, 19.79% 77.42%, 17.73% 75.27%,
    15.82% 72.97%, 14.17% 70.46%, 12.59% 67.90%, 11.17% 65.23%, 10.06% 62.41%, 9.15% 59.51%, 8.18% 56.62%, 7.79% 53.58%, 7.35% 50.56%,
    7.25% 47.50%, 7.35% 44.44%, 7.79% 41.42%, 8.18% 38.38%, 9.03% 35.45%, 9.95% 32.55%, 11.06% 29.72%, 12.47% 27.04%, 13.96% 24.40%,
    15.62% 21.88%, 17.54% 19.56%, 19.52% 17.31%, 21.73% 15.30%, 23.99% 13.35%, 26.44% 11.68%, 29.00% 10.19%, 31.59% 8.78%, 34.27% 7.56%,
    37.06% 6.65%, 39.87% 5.83%, 42.73% 5.20%, 45.64% 4.91%, 48.54% 4.71%, 51.46% 4.71%, 54.36% 4.91%, 57.25% 5.33%, 60.13% 5.83%,
    62.94% 6.65%, 65.69% 7.68%, 68.36% 8.90%, 70.94% 10.31%, 73.42% 11.89%, 75.78% 13.66%, 78.10% 15.49%, 80.21% 17.58%, 82.27% 19.73%,
    84.08% 22.10%, 85.72% 24.60%, 87.19% 27.22%, 88.60% 29.87%, 89.82% 32.64%, 90.61% 35.56%, 91.33% 38.49%, 91.84% 41.47%, 92.27% 44.47%);
}

#results .report-layout > .result-card > .result-label {
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  line-height: 1.35;
  letter-spacing: .07em;
}

#results .report-numbers .result-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .7rem;
  padding: .75rem .3rem;
}

#results .report-numbers .result-value.gold-number,
#results #name-number-values .name-line strong.gold-number {
  position: relative;
  display: block;
  width: min(100%, 4.5rem);
  height: clamp(2.5rem, 10vw, 3.5rem);
  margin: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

#results #name-number-values .name-line strong.gold-number {
  width: min(100%, 3.3rem);
  height: 2.2rem;
}

#results .gold-number::before,
#results .gold-number::after,
#results #name-number-values .name-line strong.gold-number::before,
#results #name-number-values .name-line strong.gold-number::after {
  content: none;
}

#results .gold-number img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#results #name-number-values .name-line {
  margin: 0;
  gap: .65rem;
  line-height: 1.45;
}

#results .report-layout > .result-card > .result-label {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
}

#results .report-numbers .result-label,
#results #name-numbers > .result-label,
#results #name-number-values .name-line,
#results .maya-values dt {
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: normal;
}

#results #name-number-values .name-line {
  display: grid;
  grid-template-rows: 3rem auto;
  justify-content: stretch;
  justify-items: center;
  align-content: start;
  align-items: center;
}

#results #name-number-values .name-line strong.gold-number {
  height: 2.8rem;
}

#results .maya-values dd {
  font-size: 1.15rem;
}

/* Highlight the life path within the shared number-card layout. */
#results .report-numbers > .result-card:has(#life-result) {
  background: radial-gradient(ellipse at 50% 20%, #245d4b, #10392e 70%);
  border-color: #e5be7c;
  box-shadow: inset 0 1px 0 #ffe6b642, 0 0 18px #c99a5520;
}
#results .report-numbers > .result-card:has(#life-result) .result-label {
  color: #fff0cc;
}

/* Dios artwork and names use the original supplied illustrations. */
#results .maya-values {grid-template-columns:minmax(0,.65fr) repeat(2,minmax(0,1.175fr));align-items:stretch}
#results .maya-values>div{min-width:0;text-align:center}
#results .maya-values dt{overflow-wrap:anywhere}
#results .maya-values .maya-dios{display:flex;flex-direction:column;align-items:center;gap:8px;margin:10px 0 0;overflow-wrap:anywhere}
#results .maya-dios img{display:block;width:min(100%,160px);height:auto;aspect-ratio:1;object-fit:contain;background:transparent;border:0;box-shadow:none}
#results .maya-dios span{line-height:1.5}
#results .maya-dios img[src$="/01.jpeg"]{clip-path:ellipse(43.02% 43.74% at 48.92% 49.16%)}
#results .maya-dios img[src$="/02.jpeg"]{clip-path:ellipse(43.18% 43.62% at 49.00% 48.96%)}
#results .maya-dios img[src$="/03.jpeg"]{clip-path:ellipse(42.98% 43.58% at 48.96% 49.16%)}
#results .maya-dios img[src$="/04.jpeg"]{clip-path:ellipse(45.18% 45.81% at 49.08% 49.24%)}
#results .maya-dios img[src$="/05.jpeg"]{clip-path:ellipse(42.94% 43.26% at 48.84% 48.84%)}
#results .maya-dios img[src$="/06.jpeg"]{clip-path:ellipse(44.82% 45.97% at 49.20% 49.40%)}
#results .maya-dios img[src$="/07.jpeg"]{clip-path:ellipse(43.06% 43.74% at 48.96% 49.16%)}
#results .maya-dios img[src$="/08.jpeg"]{clip-path:ellipse(45.77% 46.13% at 49.36% 49.08%)}
#results .maya-dios img[src$="/09.jpeg"]{clip-path:ellipse(43.02% 43.38% at 48.92% 48.88%)}
#results .maya-dios img[src$="/10.jpeg"]{clip-path:ellipse(45.06% 45.89% at 48.96% 49.24%)}
#results .maya-dios img[src$="/11.jpeg"]{clip-path:ellipse(43.14% 43.66% at 48.96% 49.08%)}
#results .maya-dios img[src$="/12.jpeg"]{clip-path:ellipse(47.45% 47.65% at 49.28% 48.76%)}
#results .maya-dios img[src$="/13.jpeg"]{clip-path:ellipse(43.06% 43.62% at 48.88% 49.04%)}
#results .maya-dios img[src$="/14.jpeg"]{clip-path:ellipse(45.14% 46.01% at 49.12% 49.12%)}
#results .maya-dios img[src$="/15.jpeg"]{clip-path:ellipse(43.14% 43.66% at 48.96% 49.08%)}
#results .maya-dios img[src$="/16.jpeg"]{clip-path:ellipse(47.41% 47.65% at 49.16% 48.60%)}
#results .maya-dios img[src$="/17.jpeg"]{clip-path:ellipse(47.57% 47.25% at 49.40% 48.21%)}
#results .maya-dios img[src$="/18.jpeg"]{clip-path:ellipse(44.50% 45.10% at 49.12% 48.60%)}
#results .maya-dios img[src$="/19.jpeg"]{clip-path:ellipse(43.02% 43.70% at 48.92% 49.12%)}
#results .maya-dios img[src$="/20.jpeg"]{clip-path:ellipse(45.18% 45.73% at 49.00% 49.16%)}

#results .maya-values dt{min-height:3em;display:flex;align-items:flex-start;justify-content:center}

#results .maya-values{grid-template-columns:repeat(3,minmax(0,1fr))}
#results .maya-values>div:first-child dt{font-size:1.15rem;white-space:nowrap;font-weight:500}
#results .maya-values #maya-tone.maya-tone-art{display:flex;align-items:center;justify-content:center;gap:1px;height:clamp(80px,14vw,140px);margin:10px 0 0;padding:0}
#results .maya-tone-art img{display:block;min-width:0;max-width:100%;width:auto;height:100%;object-fit:contain;flex:0 1 auto}
#results .maya-tone-art img:not(:only-child){width:48%}

/* Supplied tone medallions: one image and its numeric value. */
#results .maya-values #maya-tone.maya-tone-art{flex-direction:column;gap:8px;height:auto}
#results .maya-tone-art img,#results .maya-tone-art img:not(:only-child){width:min(100%,160px);height:auto;aspect-ratio:1;flex:none;object-fit:contain}
#results .maya-tone-art span{font-size:1.15rem;line-height:1.5}
#results .maya-tone-art img[src$="/01.jpeg"]{clip-path:ellipse(45.97% 46.65% at 49.40% 50.00%)}
#results .maya-tone-art img[src$="/02.jpeg"]{clip-path:ellipse(45.53% 46.25% at 49.44% 49.44%)}
#results .maya-tone-art img[src$="/03.jpeg"]{clip-path:ellipse(45.73% 46.57% at 49.56% 49.60%)}
#results .maya-tone-art img[src$="/04.jpeg"]{clip-path:ellipse(45.53% 46.57% at 49.36% 49.60%)}
#results .maya-tone-art img[src$="/05.jpeg"]{clip-path:ellipse(46.61% 47.05% at 49.40% 49.60%)}
#results .maya-tone-art img[src$="/06.jpeg"]{clip-path:ellipse(44.94% 46.01% at 49.48% 50.00%)}
#results .maya-tone-art img[src$="/07.jpeg"]{clip-path:ellipse(45.14% 46.01% at 49.28% 50.00%)}
#results .maya-tone-art img[src$="/08.jpeg"]{clip-path:ellipse(46.93% 47.85% at 49.32% 49.44%)}
#results .maya-tone-art img[src$="/09.jpeg"]{clip-path:ellipse(46.69% 47.37% at 49.32% 49.92%)}
#results .maya-tone-art img[src$="/10.jpeg"]{clip-path:ellipse(45.30% 46.05% at 49.44% 49.72%)}
#results .maya-tone-art img[src$="/11.jpeg"]{clip-path:ellipse(44.98% 46.33% at 49.36% 49.68%)}
#results .maya-tone-art img[src$="/12.jpeg"]{clip-path:ellipse(45.02% 45.93% at 49.32% 49.28%)}
#results .maya-tone-art img[src$="/13.jpeg"]{clip-path:ellipse(45.65% 47.09% at 49.24% 49.88%)}
.history-import{margin:20px 0;padding:18px;border:1px solid #bfa16c66;border-radius:12px;background:#14233b}.history-import summary{cursor:pointer;color:#e8c18b;font-size:1.1rem}.history-import p{line-height:1.8}.history-import label{display:block;margin:16px 0}.history-import input[type=file]{display:block;width:100%;margin-top:10px}.history-import #import-preview{overflow:auto;max-height:360px;margin:16px 0}.history-import-table{border-collapse:collapse;width:100%;font-size:.9rem}.history-import-table th,.history-import-table td{padding:10px;border:1px solid #bfa16c55;white-space:nowrap;text-align:left}.history-import #import-confirm:disabled{opacity:.45;cursor:not-allowed}

/* Normalize the visible coin diameter, rather than the surrounding JPEG canvas. */
#results .maya-values dt{height:3.5rem;min-height:3.5rem}
#results .maya-values .maya-medallion{display:block;position:relative;width:min(100%,140px);aspect-ratio:1;flex:none;overflow:hidden;border-radius:50%;isolation:isolate;line-height:0}
#results .maya-values .maya-medallion>img{position:absolute;display:block;min-width:0;max-width:none;width:var(--medallion-w);height:var(--medallion-h);left:var(--medallion-x);top:var(--medallion-y);aspect-ratio:auto;object-fit:fill;flex:none}
#results .maya-dios img[src$="/01.jpeg"]{--medallion-w:118.59695%;--medallion-h:116.64474%;--medallion-x:-8.01763%;--medallion-y:-7.34255%}
#results .maya-dios img[src$="/02.jpeg"]{--medallion-w:118.15750%;--medallion-h:116.96563%;--medallion-x:-7.89717%;--medallion-y:-7.26637%}
#results .maya-dios img[src$="/03.jpeg"]{--medallion-w:118.70732%;--medallion-h:117.07299%;--medallion-x:-8.11911%;--medallion-y:-7.55308%}
#results .maya-dios img[src$="/04.jpeg"]{--medallion-w:112.92698%;--medallion-h:111.37395%;--medallion-x:-5.42456%;--medallion-y:-4.84053%}
#results .maya-dios img[src$="/05.jpeg"]{--medallion-w:118.81790%;--medallion-h:117.93899%;--medallion-x:-8.03066%;--medallion-y:-7.60140%}
#results .maya-dios img[src$="/06.jpeg"]{--medallion-w:113.83402%;--medallion-h:110.98631%;--medallion-x:-6.00634%;--medallion-y:-4.82724%}
#results .maya-dios img[src$="/07.jpeg"]{--medallion-w:118.48678%;--medallion-h:116.64474%;--medallion-x:-8.01113%;--medallion-y:-7.34255%}
#results .maya-dios img[src$="/08.jpeg"]{--medallion-w:111.47129%;--medallion-h:110.60136%;--medallion-x:-5.02223%;--medallion-y:-4.28315%}
#results .maya-dios img[src$="/09.jpeg"]{--medallion-w:118.59695%;--medallion-h:117.61274%;--medallion-x:-8.01763%;--medallion-y:-7.48911%}
#results .maya-dios img[src$="/10.jpeg"]{--medallion-w:113.22771%;--medallion-h:111.17980%;--medallion-x:-5.43629%;--medallion-y:-4.74493%}
#results .maya-dios img[src$="/11.jpeg"]{--medallion-w:118.26706%;--medallion-h:116.85847%;--medallion-x:-7.90355%;--medallion-y:-7.35414%}
#results .maya-dios img[src$="/12.jpeg"]{--medallion-w:107.52457%;--medallion-h:107.07326%;--medallion-x:-2.98811%;--medallion-y:-2.20892%}
#results .maya-dios img[src$="/13.jpeg"]{--medallion-w:118.48678%;--medallion-h:116.96563%;--medallion-x:-7.91634%;--medallion-y:-7.35995%}
#results .maya-dios img[src$="/14.jpeg"]{--medallion-w:113.02705%;--medallion-h:110.88982%;--medallion-x:-5.51888%;--medallion-y:-4.46908%}
#results .maya-dios img[src$="/15.jpeg"]{--medallion-w:118.26706%;--medallion-h:116.85847%;--medallion-x:-7.90355%;--medallion-y:-7.35414%}
#results .maya-dios img[src$="/16.jpeg"]{--medallion-w:107.61529%;--medallion-h:107.07326%;--medallion-x:-2.90368%;--medallion-y:-2.03760%}
#results .maya-dios img[src$="/17.jpeg"]{--medallion-w:107.25333%;--medallion-h:107.97970%;--medallion-x:-2.98314%;--medallion-y:-2.05701%}
#results .maya-dios img[src$="/18.jpeg"]{--medallion-w:114.65260%;--medallion-h:113.12729%;--medallion-x:-6.31736%;--medallion-y:-4.97986%}
#results .maya-dios img[src$="/19.jpeg"]{--medallion-w:118.59695%;--medallion-h:116.75151%;--medallion-x:-8.01763%;--medallion-y:-7.34834%}
#results .maya-dios img[src$="/20.jpeg"]{--medallion-w:112.92698%;--medallion-h:111.56879%;--medallion-x:-5.33422%;--medallion-y:-4.84722%}
#results .maya-tone-art img[src$="/01.jpeg"]{--medallion-w:110.98631%;--medallion-h:109.36851%;--medallion-x:-4.82724%;--medallion-y:-4.68425%}
#results .maya-tone-art img[src$="/02.jpeg"]{--medallion-w:112.05888%;--medallion-h:110.31440%;--medallion-x:-5.40191%;--medallion-y:-4.53944%}
#results .maya-tone-art img[src$="/03.jpeg"]{--medallion-w:111.56879%;--medallion-h:109.55638%;--medallion-x:-5.29349%;--medallion-y:-4.33997%}
#results .maya-tone-art img[src$="/04.jpeg"]{--medallion-w:112.05888%;--medallion-h:109.55638%;--medallion-x:-5.31226%;--medallion-y:-4.33997%}
#results .maya-tone-art img[src$="/05.jpeg"]{--medallion-w:109.46236%;--medallion-h:108.43870%;--medallion-x:-4.07441%;--medallion-y:-3.78560%}
#results .maya-tone-art img[src$="/06.jpeg"]{--medallion-w:113.53006%;--medallion-h:110.88982%;--medallion-x:-6.17467%;--medallion-y:-5.44491%}
#results .maya-tone-art img[src$="/07.jpeg"]{--medallion-w:113.02705%;--medallion-h:110.88982%;--medallion-x:-5.69973%;--medallion-y:-5.44491%}
#results .maya-tone-art img[src$="/08.jpeg"]{--medallion-w:108.71598%;--medallion-h:106.62572%;--medallion-x:-3.61872%;--medallion-y:-2.71576%}
#results .maya-tone-art img[src$="/09.jpeg"]{--medallion-w:109.27481%;--medallion-h:107.70616%;--medallion-x:-3.89434%;--medallion-y:-3.76692%}
#results .maya-tone-art img[src$="/10.jpeg"]{--medallion-w:112.62783%;--medallion-h:110.79350%;--medallion-x:-5.68320%;--medallion-y:-5.08653%}
#results .maya-tone-art img[src$="/11.jpeg"]{--medallion-w:113.42910%;--medallion-h:110.12391%;--medallion-x:-5.98860%;--medallion-y:-4.70956%}
#results .maya-tone-art img[src$="/12.jpeg"]{--medallion-w:113.32832%;--medallion-h:111.08297%;--medallion-x:-5.89353%;--medallion-y:-4.74169%}
#results .maya-tone-art img[src$="/13.jpeg"]{--medallion-w:111.76431%;--medallion-h:108.34659%;--medallion-x:-5.03275%;--medallion-y:-4.04328%}

#tensei-artwork[hidden] { display: none; }
#tensei-result.tensei-comparison {
  white-space: pre-line;
  font-size: clamp(1rem, 3.5vw, 1.375rem);
  line-height: 1.6;
}
#tensei-result.tensei-comparison small {
  display: block;
  margin-top: .65rem;
  font-size: .875rem;
}
.history-sheet td.group-tensei,
.history-import-table td:nth-child(8),
.history-import-table td:nth-child(9) {
  white-space: pre-line;
}
