:root{--ink:#fff;--soft:rgba(255,255,255,.82);--line:rgba(255,255,255,.28);
box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
*,*::before,*::after{box-sizing:inherit}
html,body{margin:0;min-height:100%;color:var(--ink);color-scheme:dark}
html{background:#162036 url(texture-navy.png) center top/cover no-repeat fixed;min-height:100%;height:100%}
body{background:transparent;min-height:100vh;min-height:100dvh}
body::before{content:"";position:fixed;left:0;right:0;top:-120px;bottom:-120px;z-index:-1;background:#162036 url(texture-navy.png) center/cover no-repeat}
body{font-family:Georgia,"Palatino Linotype",Palatino,serif;line-height:1.55}
main{max-width:720px;margin:0 auto;padding:24px 20px 48px}
.view{display:none}.view.on{display:block}
.center{height:calc(100vh - 72px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));height:calc(100dvh - 72px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center;padding:2dvh 0}
.ttl .tag{margin:10px 0 0}
h1{font-size:clamp(2.4rem,9vw,4rem);font-weight:400;letter-spacing:.02em;margin:0;line-height:1.1}
h2{font-size:1.8rem;font-weight:400;margin:8px 0 4px}
h3{font-size:1.15rem;margin:0 0 4px}
.tag{font-style:italic;font-size:1.2rem;color:var(--soft);margin:0 0 18px}
.btn{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;font-size:1.25rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;line-height:1.2;background:#F3E7C9;color:#3B2A1A;border:0;border-radius:999px;padding:10px 16px;cursor:pointer;width:100%;max-width:360px}
.btn:focus-visible{outline:3px solid #F3E7C9;outline-offset:3px}
.btn:active{transform:scale(.97)}
.back{background:none;border:0;color:var(--ink);font:inherit;cursor:pointer;padding:8px 0;text-decoration:underline}
.list{display:grid;gap:12px;margin-top:18px}
.item{border:1px solid var(--line);border-radius:16px;padding:14px 16px;background:rgba(255,255,255,.07)}
.item p{margin:0;color:var(--soft)}
.item em{display:block;font-size:1.15rem;line-height:1.4;color:#F3E7C9;margin-top:6px}
.intro{color:var(--soft);margin:4px 0 0}
.emblem{display:block;width:100%;max-width:360px;aspect-ratio:4/3;max-height:34vh;max-height:34dvh;height:auto;margin-top:4dvh;object-fit:cover;object-position:center;border-radius:48px}
#types h2,#types .intro,#orient h2,#orient .intro{text-align:center}
.item.go{position:relative;padding-right:40px;cursor:pointer}
.item.go::after{content:"\203A";position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:1.7rem;line-height:1;color:var(--soft)}
.item.go:active{background:rgba(255,255,255,.16)}
.item.go:focus-visible{outline:3px solid #F3E7C9;outline-offset:2px}
#detail h2,#detail .intro{text-align:center}
.about{margin:18px 0 0}
.dhead{position:relative;display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:8px}
.dhead h2{margin:0;padding:0 44px;font-size:clamp(1.7rem,6.9vw,2.1rem);line-height:1.15;text-align:center}
.back.arrow{position:absolute;left:0;top:50%;transform:translateY(-50%);width:44px;height:44px;padding:0;display:grid;place-items:center;text-decoration:none}
.bottom{display:flex;justify-content:center;margin-top:24px}
#orientList h3{font-size:1.7rem;margin-bottom:6px;color:#E3C77A}
#orientList em{font-weight:700;font-size:16px}
.item.pick{cursor:pointer;transition:background .15s,box-shadow .15s}
.item.pick:active{background:rgba(255,255,255,.16)}
.item.pick:focus-visible{outline:3px solid #F3E7C9;outline-offset:2px}
.item.pick.sel{background:rgba(255,255,255,.4);border-color:#fff;box-shadow:0 0 0 3px #fff}
#gIntro{text-align:center;color:#F3E7C9}
.btn:disabled{background:#F3E7C9;color:#3B2A1A;opacity:.45;cursor:not-allowed}
.btn:disabled:active{transform:none}
#gIntro .ul{text-decoration:underline;text-underline-offset:3px;color:#E3C77A}
#orient .intro{font-weight:700}
#dAbout{text-align:center}
#dList h3{color:#E3C77A}
#dList p{color:#F3E7C9}
#typeList h3{color:#E3C77A}
#typeList p{color:#F3E7C9}
#orientinfo .item h3{color:#E3C77A}
#orientinfo .item p{color:#F3E7C9}
#orientinfo .about{text-align:center}
h1{color:#fff}
h2{color:#fff}
.am{color:#B79BF2}
.btn,.btn:disabled{background:transparent;color:#F2CC4F;border:2px solid #F2CC4F}
.btn:focus-visible{outline-color:#F2CC4F}
#orient .intro{margin-top:clamp(48px,18dvh,160px);margin-bottom:clamp(48px,14dvh,120px)}
#orient .intro{font-size:1.3rem;line-height:1.5}
#orientpick .list{margin-top:18px}
@media(max-height:800px){
#orientpick .list{gap:8px;margin-top:10px}
#orientpick .item{padding:9px 14px}
#orientpick #orientList h3{font-size:1.4rem;margin-bottom:2px}
#orientpick #orientList em{font-size:14px;line-height:1.3;margin-top:2px}
#orientpick .bottom{margin-top:14px}
#orientpick .btn{padding:8px 16px}
}
#guidance #gIntro{font-weight:700;font-size:1.3rem;line-height:1.5;margin-top:clamp(48px,18dvh,160px);margin-bottom:0}
#guidance .list{margin-top:clamp(24px,6dvh,56px)}
#guidance .bottom{margin-top:clamp(32px,10dvh,100px)}
#guidance #gIntro{margin-top:clamp(20px,6dvh,56px)}
#gList h3{font-size:1.5rem}
#gList p{font-size:1.25rem;line-height:1.55}
#gList h3{color:#CFE3FA}
#typelist .list{margin-top:18px}
@media(max-height:760px){#typelist .list{margin-top:10px}}
#types .intro{font-weight:700;font-size:1.3rem;line-height:1.5;margin-top:clamp(48px,18dvh,160px);margin-bottom:clamp(48px,14dvh,120px)}
#oracle .bottom{margin-top:24px}
#splash{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
html:has(#oracle.on){touch-action:manipulation;-webkit-user-select:none;user-select:none}
#typelist .intro{text-align:center}
.fear{color:#DC3C4E}
.fearb{color:#FF5A5F}
.desm{color:#7FB8F5}
#typelist .intro .fearb,#typelist .intro .desm{font-size:18px;font-weight:700}
#typeList h3{font-size:calc(1.15rem + 2px)}
#orientpick .intro{text-align:center;font-size:18px}
img{pointer-events:none;-webkit-user-drag:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
button,.btn{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#tagword{display:inline-block;text-align:center;white-space:nowrap;vertical-align:baseline}
#tagend{display:inline-block;text-align:left;white-space:nowrap;vertical-align:baseline}
#tagline{white-space:nowrap}
#oracle .item h3{color:#E3C77A}
#oracle .item p{color:#F3E7C9}
*,*::before,*::after{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
::selection{background:transparent}
html,body{touch-action:manipulation}
#oracle .item h3{font-size:calc(1.15rem + 2px)}
#oracle .item p{font-size:calc(1rem + 2px)}
#orientinfo .about{font-size:calc(1rem + 2px)}
#orientinfo .item h3{font-size:calc(1.15rem + 2px)}
#orientinfo .item p{font-size:calc(1rem + 2px)}
.back.arrow svg{opacity:0}
#splash{touch-action:none}
html,body{overscroll-behavior:none;overscroll-behavior-y:none}

main{min-height:100vh;min-height:100dvh}
#splash .ttl{position:relative}
#tagstmt{position:absolute;left:0;right:0;top:100%;margin:16px auto 0;max-width:340px;text-align:center;font-style:italic;font-size:16px;line-height:1.45;color:#F3E7C9;opacity:0;transition:opacity .25s;pointer-events:none}
#tagstmt.show{opacity:1}
