@font-face{font-family:DictionaryThai;src:url('fonts/itim-regular.woff2') format('woff2');font-display:swap}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
laliat-dictionary-card{display:block;position:relative;width:100%;height:100%;--dict-scale:1;--dict-turn:0deg;perspective:1500px;color:#11151b;isolation:isolate}
.dict-perspective{position:absolute;left:50%;top:50%;width:760px;height:450px;transform:translate(-50%,-50%) scale(var(--dict-scale));transform-origin:center;perspective:1800px}
.dict-rotor{width:100%;height:100%;position:relative;transform-style:preserve-3d;transform:rotateY(var(--dict-turn)) rotateZ(-3deg);transition:transform 860ms cubic-bezier(.22,.75,.22,1)}
.dict-face{position:absolute;inset:0;border-radius:26px;background:#fff;border:1.5px solid #07346f;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:4px 5px 0 #dfe5ee,7px 9px 0 #07346f,12px 28px 30px #07346f23;overflow:hidden;font-family:DictionaryThai,StudioThai,sans-serif;font-size:18px;line-height:1.4;letter-spacing:0}
.dict-front{transform:translateZ(5px)}.dict-back{transform:rotateY(180deg) translateZ(5px)}
.dict-topline{height:47px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid #e3e7ef;font:10px StudioInter,sans-serif;letter-spacing:.1em;color:#07346f}.dict-topline b{font:italic 23px Georgia;margin-right:8px}
.dict-face h2,.dict-face p{margin:0}.dict-face button,.dict-face input{font:inherit}.dict-face button{cursor:pointer}.dict-face button:focus-visible,.dict-face input:focus-visible,.dict-face summary:focus-visible{outline:3px solid #fc94af;outline-offset:4px}.dict-kicker{color:#07346f;font-size:14px;letter-spacing:.06em}.dict-search-view{padding:22px 48px;text-align:center;background:#fffeef;height:calc(100% - 47px)}.dict-search-view h2{font-size:31px;line-height:1.25;margin:7px 0 9px}.dict-search-view>p{font-size:17px}.dict-search-box{margin-top:26px;border:1.5px solid #0a4088;background:#fff;border-radius:22px;padding:21px 24px 15px;text-align:left;box-shadow:0 3px 0 #07346f06}.dict-input-wrap{display:block;position:relative;height:57px}.dict-query{position:absolute;inset:0;border:0;background:transparent;width:100%;color:#11151b;font-size:35px!important;outline:none}.dict-query:focus+.dict-ghost,.dict-query:not(:placeholder-shown)+.dict-ghost{visibility:hidden}.dict-ghost{position:absolute;left:0;top:0;pointer-events:none;font-family:StudioInter,StudioThai,'Yu Gothic',sans-serif;font-size:35px;font-weight:600}.dict-ghost i{display:inline-block;width:3px;height:.85em;background:#fc94af;margin-left:6px;animation:dict-caret .9s step-end infinite}.dict-search-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:16px}.dict-search-modes{display:flex;gap:7px;font-size:13px}.dict-search-modes>span{border:1px solid #07346f;border-radius:30px;padding:8px 13px}.dict-search-modes>span:first-child{background:#07346f;color:white}.dict-submit{border:1px solid #07346f!important;background:#07346f!important;color:#fff!important;border-radius:25px;padding:9px 18px!important;font-size:16px!important}.dict-examples{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:15px}.dict-examples>button{border:1px solid #07346f;background:#fff;border-radius:30px;padding:7px 20px;font-size:17px;font-family:'Yu Gothic',sans-serif}.dict-examples>span{font-size:13px;color:#707783}.dict-error{font-size:14px!important;color:#8e3556;padding-top:8px}
.dict-meaning-view{height:calc(100% - 47px);display:grid;grid-template-columns:minmax(0,.43fr) minmax(0,.57fr);padding:34px 26px;gap:24px}.dict-word-head{padding-right:19px;border-right:1px solid #07346f}.dict-word-head>small{font-size:19px;letter-spacing:.12em}.dict-word-head h2{font-family:StudioInter,'Yu Gothic',sans-serif;font-size:62px;line-height:1.3;letter-spacing:-.04em;margin:10px 0 12px;white-space:nowrap}.dict-word-head:has(h2:not(:empty)) h2{font-size:58px}.dict-pos{display:inline-block;border:1px solid #07346f;border-radius:25px;font-size:13px;padding:6px 13px;color:#07346f}.dict-word-head>p{font-size:17px;line-height:1.6;margin-top:16px}.dict-word-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.dict-word-actions button{border:1px solid #07346f;border-radius:22px;padding:9px 14px;background:#fff;font-size:14px}.dict-word-actions button:first-child{color:#fff;background:#07346f}.dict-senses{padding-right:20px;overflow:auto;scrollbar-width:thin}.dict-senses>.dict-kicker{display:block;margin-bottom:14px}.dict-senses details{border:1px solid #07346f;border-radius:17px;margin-bottom:11px;padding:15px 13px}.dict-senses summary{display:flex;gap:11px;align-items:center;list-style:none;cursor:pointer;font-size:18px}.dict-senses summary::-webkit-details-marker{display:none}.dict-senses summary>b{border-radius:50%;background:#11151b;color:white;font:17px StudioInter;flex:0 0 30px;height:30px;display:grid;place-items:center}.dict-senses summary small{font-size:13px;display:block;margin-top:4px;font-style:italic}.dict-senses details>p{font-size:15px;margin:12px 0 0;padding-left:40px}.dict-back-link{color:#07346f;border:0;background:transparent;padding:7px 0;font-size:14px!important;text-decoration:underline;text-underline-offset:4px}
.dict-kanji-view{display:grid;grid-template-columns:minmax(0,.42fr) minmax(0,.58fr);height:calc(100% - 47px);padding:24px;gap:25px}.dict-writing{border:1px solid #07346f;background:#fffeef;border-radius:19px;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;padding:8px 15px}.dict-strokes{width:100%;max-height:270px;aspect-ratio:1/1;background:linear-gradient(90deg,transparent calc(50% - .5px),#07346f20 50%,transparent calc(50% + .5px)),linear-gradient(transparent calc(50% - .5px),#07346f20 50%,transparent calc(50% + .5px))}.dict-stroke-count{display:block;color:#07346f;font-size:14px;margin-top:8px}.dict-writing>span:last-child{font-size:12px;margin-top:8px;color:#68717e}.dict-kanji-detail{padding-right:24px}.dict-kanji-detail h2{font:600 60px/1.1 'Yu Gothic',sans-serif;margin:10px 0}.dict-kanji-detail>p{font-size:17px}.dict-readings{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.dict-readings>div{background:#fffeef;border:1px solid #07346f;border-radius:15px;padding:12px}.dict-readings small{display:block;font-size:12px;margin-bottom:5px}.dict-readings strong{font-size:17px;font-weight:500}.dict-practice{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid #07346f;border-radius:10px;overflow:hidden;margin-bottom:12px}.dict-practice>span{font:36px/1.6 'Yu Gothic',sans-serif;text-align:center;border-right:1px solid #07346f}
@keyframes dict-caret{50%{opacity:0}}
/* The seventh object is a live UI panel, with the same depth as the other subject objects. */
.object-6{left:50%;top:69%;width:clamp(215px,21vw,325px);height:30%;margin-left:clamp(-162.5px,-10.5vw,-107.5px);--turn:0deg}
.object-6 .object-art{width:100%;height:calc(100% - 40px);animation:none;transform:none;filter:none}
.object-6 .object-label{min-width:180px;padding:6px 13px;transform:translateY(2px)}
@media(min-width:901px){.hub-intro{top:40%;transform:translate(-50%,-44%)}.hub-intro h1{font-size:clamp(47px,5vw,86px)}.hub-intro .eyebrow{margin-bottom:22px}.hero-description{margin:20px 0 15px;font-size:14px}.subject-track{height:585vh}.subject-tab{padding-top:13px;padding-bottom:13px}.subject-tab strong{font-size:clamp(17px,1.55vw,25px)}.subject-rail>.eyebrow{margin-bottom:16px}.subject-rail{top:15%}.rail-hint{margin-top:12px}.subject-panel[data-subject=dictionary] .panel-body{grid-template-columns:54% 46%}.subject-panel[data-subject=dictionary] #subject-art{inset:2% 2% 10%}.subject-panel[data-subject=dictionary] .panel-copy{padding-left:22px}.subject-panel[data-subject=dictionary] .panel-copy h3{font-size:clamp(29px,2.7vw,45px)}}
@media(min-width:901px) and (max-height:800px){.subject-tab{padding-top:8px;padding-bottom:8px}.subject-tab strong{font-size:19px}.subject-tab small{font-size:10px}.subject-rail{top:17%}.object-6{top:70%;height:28%}.object-6 .object-label{padding:5px 11px}.object-6 .object-label small{font-size:8px}.object-6 .object-label strong{font-size:12px}}
@media(max-width:900px){.object-6{grid-column:1/-1;left:auto;top:auto;width:min(330px,100%);height:215px;margin:0 auto}.object-6 .object-art{height:165px}.subject-panel[data-subject=dictionary] .panel-art{height:280px}.subject-panel[data-subject=dictionary] #subject-art{inset:3% 2% 10%}.subject-rail [role=tablist]>.subject-tab:last-child{grid-column:1/-1}}
/* Full-size dictionary destination. */
.dictionary-page{background:#fffeef;min-height:100svh}.dictionary-main{width:min(1120px,calc(100% - 60px));margin:140px auto 55px}.dictionary-intro{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:30px}.dictionary-intro h1{font:400 clamp(30px,4vw,52px)/1.35 DictionaryThai,StudioThai,sans-serif;margin:12px 0}.dictionary-intro p:not(.eyebrow){font-size:15px;color:#636e7e}.dict-controls{display:flex;flex-wrap:wrap;gap:8px}.dict-controls button{padding:11px 16px;border:1px solid #cad5e7;border-radius:26px;background:white;font-size:13px}.dict-controls button[aria-pressed=true]{background:#07346f;color:white;border-color:#07346f}.dictionary-live{height:500px;max-width:1040px;margin:auto}.dictionary-live .dict-perspective{position:relative;left:auto;top:auto;width:100%;height:100%;transform:none}.dictionary-live .dict-rotor{transform:rotateY(var(--dict-turn))}.dictionary-live .dict-face{font-size:18px}.dictionary-live .dict-search-view{padding:28px max(30px,10%)}.dictionary-live .dict-search-view h2{font-size:36px}.dictionary-live .dict-search-box{margin-top:28px}.dictionary-live .dict-search-view>p{font-size:19px}.dictionary-live .dict-query,.dictionary-live .dict-ghost{font-size:39px!important}.dictionary-live .dict-topline{font-size:12px}.dictionary-live .dict-meaning-view{padding:35px 40px;gap:30px}.dictionary-live .dict-word-head h2{font-size:64px}.dictionary-live .dict-kanji-view{padding:30px 45px;grid-template-columns:minmax(0,.37fr) minmax(0,.63fr)}.dictionary-live .dict-strokes{max-height:320px}.dictionary-live .dict-kanji-detail h2{font-size:65px}.dictionary-live .dict-practice>span{font-size:42px}.dictionary-caption{display:flex;justify-content:space-between;gap:25px;margin:28px 0 0;font-size:13px;color:#657084;line-height:1.8}.dictionary-caption a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:650px){.dictionary-main{width:calc(100% - 36px);margin-top:112px}.dictionary-intro{display:block;margin-bottom:25px}.dictionary-intro h1{font-size:32px}.dictionary-intro .eyebrow{font-size:10px}.dict-controls{margin-top:22px;gap:6px}.dict-controls button{font-size:12px;padding:10px 12px}.dictionary-live{height:650px}.dictionary-live .dict-face{border-radius:20px}.dictionary-live .dict-topline{font-size:8px;padding:0 15px;height:42px}.dictionary-live .dict-search-view{padding:38px 18px;height:calc(100% - 42px)}.dictionary-live .dict-search-view h2{font-size:28px}.dictionary-live .dict-search-view>p{font-size:16px;line-height:1.8}.dictionary-live .dict-search-box{padding:20px 16px;margin-top:38px}.dictionary-live .dict-query,.dictionary-live .dict-ghost{font-size:32px!important}.dictionary-live .dict-search-modes>span{font-size:12px;padding:7px 9px}.dictionary-live .dict-search-modes>span:last-child{display:none}.dictionary-live .dict-search-bottom{flex-wrap:wrap;gap:15px}.dictionary-live .dict-submit{font-size:14px!important}.dictionary-live .dict-examples{flex-wrap:wrap;margin-top:22px}.dictionary-live .dict-examples>span{width:100%;margin-top:9px}.dictionary-live .dict-meaning-view{display:block;padding:24px 20px;height:calc(100% - 42px);overflow:auto}.dictionary-live .dict-word-head{border:0;padding:0}.dictionary-live .dict-word-head h2{font-size:46px;margin:6px 0 9px}.dictionary-live .dict-word-head>small{font-size:16px}.dictionary-live .dict-word-head>p{font-size:16px;margin:12px 0}.dictionary-live .dict-word-actions{margin-top:10px}.dictionary-live .dict-senses{padding:0;margin-top:23px;overflow:visible}.dictionary-live .dict-senses summary{font-size:17px}.dictionary-live .dict-senses details{padding:12px}.dictionary-live .dict-kanji-view{display:flex;flex-direction:column;padding:18px;gap:18px;overflow:auto;height:calc(100% - 42px)}.dictionary-live .dict-writing{width:100%;height:255px;flex-shrink:0}.dictionary-live .dict-strokes{height:195px;width:195px}.dictionary-live .dict-writing>span:last-child{display:none}.dictionary-live .dict-stroke-count{margin-top:2px}.dictionary-live .dict-kanji-detail{padding:0}.dictionary-live .dict-kanji-detail h2{font-size:43px;margin:7px 0}.dictionary-live .dict-readings{margin:13px 0}.dictionary-live .dict-practice>span{font-size:32px}.dictionary-caption{flex-direction:column;gap:8px;font-size:12px}.dictionary-page .hub-header .hub-brand{font-size:24px}}
@media(prefers-reduced-motion:reduce){.dict-rotor{transition:none}.dict-ghost i{animation:none}}

/* Keep the animated UI on a single composited surface. */
laliat-dictionary-card{isolation:auto}#subject-panel[data-subject=dictionary] #subject-art{filter:none}.dict-face{transform-style:flat}.dict-face>div{transform:translateZ(.2px)}

laliat-dictionary-card:not([variant=full]) .dict-face,laliat-dictionary-card:not([variant=full]) .dict-search-box,laliat-dictionary-card:not([variant=full]) .dict-senses details,laliat-dictionary-card:not([variant=full]) .dict-writing,laliat-dictionary-card:not([variant=full]) .dict-readings>div{border-width:3px}laliat-dictionary-card:not([variant=full]) .dict-examples>button,laliat-dictionary-card:not([variant=full]) .dict-word-actions button,laliat-dictionary-card:not([variant=full]) .dict-pos,laliat-dictionary-card:not([variant=full]) .dict-search-modes>span{border-width:2px}
