/* Dictionary surfaces. Exact supplied blue-flame book asset is installed. */
body #ja38DictionaryLauncher{z-index:209!important;right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;backdrop-filter:none!important;overflow:visible!important;display:grid!important;place-items:center;transition:none!important}
body #ja38DictionaryLauncher:hover{background:none!important;box-shadow:none!important;transform:none!important}
body #ja38DictionaryLauncher::before,body #ja38DictionaryLauncher::after,body #ja38DictionaryLauncher>span{display:none!important;content:none!important}
body #ja38DictionaryLauncher .ja42-dictionary-logo{display:block;width:100%!important;height:100%!important;object-fit:contain;filter:none!important;pointer-events:none;user-select:none;animation:ja44-dictionary-float 4s ease-in-out infinite}
body #ja38DictionaryLauncher:active .ja42-dictionary-logo{animation-play-state:paused}
@keyframes ja44-dictionary-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
body #ja24Dictionary.ja41-compact{border:1px solid #ffffff70!important;box-shadow:inset 0 1px 0 #ffffffb3,0 2px 0 #15385833,0 12px 24px #102e4e26,0 26px 60px #092b4f3d!important;overflow:hidden!important;isolation:isolate}
body #ja24Dictionary.ja41-compact>.ja24-dict-head{min-height:54px!important;max-height:54px!important;grid-template-columns:45px minmax(0,1fr) 30px!important;gap:7px!important;padding:8px!important;background:linear-gradient(145deg,var(--dict-start),var(--dict-end))!important;color:#fff!important;border-bottom:1px solid #071d36!important;box-shadow:inset 0 1px 0 #ffffff55,0 3px 8px #061c3533;z-index:2}
body #ja24Dictionary.ja41-compact header h3{color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:0 1px 2px #0006}
body #ja24Dictionary.ja41-compact form{height:31px!important;min-height:31px!important;background:linear-gradient(#fff,#f2f6fc)!important;border:1px solid #d5e2f0!important;border-radius:9px!important;box-shadow:inset 0 2px 3px #113d641a,0 2px 0 #071e3b77,0 3px 7px #03152733}
body #ja24Dictionary.ja41-compact form:focus-within{outline:2px solid #7ed4ff;outline-offset:1px}
body #ja24Dictionary.ja41-compact form input{height:29px!important;background:transparent!important;color:#153758!important;-webkit-text-fill-color:#153758!important;box-shadow:none!important;border:0!important}
body #ja24Dictionary.ja41-compact form input::placeholder{color:#697e94!important;opacity:1;-webkit-text-fill-color:#697e94!important}
body #ja24Dictionary.ja41-compact form button{height:29px!important;color:#1b649f!important}
body #ja24Dictionary.ja41-compact .ja24-x{width:27px!important;height:29px!important;padding:5px!important;border:1px solid #ffb3b3!important;border-radius:9px!important;background:linear-gradient(145deg,#ff777d,#d92f47 65%,#a91832)!important;color:white!important;box-shadow:inset 0 1px 0 #ffffff80,0 2px 0 #74152d,0 4px 8px #081c3544!important}
body #ja24Dictionary.ja41-compact .ja24-x:hover{filter:brightness(1.1)}
body #ja24Dictionary.ja41-compact .ja24-x:active{box-shadow:inset 0 2px 4px #74152d88!important}
body #ja24Dictionary.ja41-compact>.ja24-dict-results{overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-x:none;touch-action:pan-y;scrollbar-width:thin;min-width:0!important}
body #ja24Dictionary.ja41-compact .ja24-dict-results :is(.ja25-word-card,.ja25-card-copy,.ja25-detail-card,.ja25-word-hero,.ja25-example){min-width:0!important;max-width:100%;overflow-wrap:anywhere}
body #ja24Dictionary.ja41-compact .ja25-word-card,body #ja24Dictionary.ja41-compact .ja25-detail-card{box-shadow:inset 0 1px 0 #ffffffc9,0 2px 0 #31547518,0 5px 12px #17395512}
body #ja24Dictionary.ja41-compact .ja25-word-hero{box-shadow:inset 0 1px 0 #ffffff40,inset 0 -3px 7px #123c4926}
body #ja24Dictionary.ja41-compact .ja25-kanji-card{min-width:0!important;box-shadow:inset 0 1px 0 #fff,0 2px 6px #17395514}
body #ja24Dictionary.ja41-compact .ja25-kanji-surface{max-width:100%;box-shadow:inset 0 2px 7px #1739550d}
body #ja24Dictionary.ja41-compact .ja25-kanji-surface svg{max-width:100%}
@media(max-width:700px){
 body #ja24Dictionary.ja41-compact{width:61vw!important;min-width:min(190px,calc(98vw - 20px))!important;max-width:min(265px,calc(98vw - 20px))!important}
 body #ja24Dictionary.ja41-compact>.ja24-dict-head{min-height:47px!important;max-height:47px!important;grid-template-columns:36px minmax(0,1fr) 27px!important;padding:6px!important;gap:5px!important}
 body #ja24Dictionary.ja41-compact form{height:29px!important;min-height:29px!important}
 /* Keep 16px input text to prevent iOS focus zoom; reading text is compact. */
 body #ja24Dictionary.ja41-compact form input{height:27px!important;font-size:16px!important;line-height:23px!important}
 body #ja24Dictionary.ja41-compact form button{height:27px!important}
 body #ja24Dictionary.ja41-compact .ja24-x{width:27px!important;height:31px!important;padding:5px!important}
 body #ja24Dictionary.ja41-compact .ja24-dict-results{padding:7px!important}
 body #ja24Dictionary.ja41-compact .ja25-card-kanji{font-size:21px!important}
 body #ja24Dictionary.ja41-compact .ja25-card-copy strong,body #ja24Dictionary.ja41-compact .ja25-card-copy>span{font-size:10px!important}
 body #ja24Dictionary.ja41-compact .ja25-detail-card :is(p,li,small),body #ja24Dictionary.ja41-compact .ja25-example p{font-size:10px!important}
 body #ja24Dictionary.ja41-compact .ja25-word-hero>div>span:first-child{font-size:23px!important}
 body #ja24Dictionary.ja41-compact .ja25-word-hero b{font-size:12px!important}
 body #ja24Dictionary.ja41-compact .ja25-word-hero [data-audio]{width:32px!important;height:32px!important}
 body #ja24Dictionary.ja41-compact .ja25-word-hero [data-audio] svg{width:18px!important;height:18px!important}
 body #ja24Dictionary.ja41-compact .ja25-kanji-surface{width:min(100%,86px);margin-inline:auto}
 body #ja24Dictionary.ja41-compact .ja25-kanji-caption{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){body #ja38DictionaryLauncher .ja42-dictionary-logo{animation:none!important}}

/* Mobile dictionary: fixed 80% viewport height, with a slightly taller search header. */
@media(max-width:700px){
 body #ja24Dictionary.ja41-compact{position:fixed!important;height:var(--ja41-height,80dvh)!important;max-height:var(--ja41-height,80dvh)!important;min-height:0!important;resize:none!important;transform:none!important}
 body #ja24Dictionary.ja41-compact>.ja24-dict-head{min-height:51px!important;max-height:51px!important;height:51px!important;padding:7px!important;gap:5px!important}
 body #ja24Dictionary.ja41-compact form{height:32px!important;min-height:32px!important}
 body #ja24Dictionary.ja41-compact form input,body #ja24Dictionary.ja41-compact form button{height:30px!important}
 body #ja24Dictionary.ja41-compact .ja25-drag{cursor:default!important;touch-action:pan-y!important}
 body #ja24Dictionary #ja38DictPin{display:none!important}
}

/* More reading room on phones: +14.8% over the previous 61vw / 265px cap. */
@media(max-width:700px){body #ja24Dictionary.ja41-compact{width:70vw!important;min-width:min(218px,calc(100vw - 28px))!important;max-width:min(305px,calc(100vw - 28px))!important}}
