/* Manual temple selection. Complete artwork is the visual anchor. */
body[data-page=home]{background:var(--paper-light)}
body[data-page=home] .app-shell{max-width:none;overflow:hidden}
body[data-page=home] #home{--navigation-width:300px;position:relative;isolation:isolate;display:block;padding:0;height:calc(100svh - 101px);min-height:620px;background:var(--paper-light)}
body[data-page=home] .temple-selector{position:absolute;z-index:2;inset:32px auto 40px 24px;display:flex;flex-direction:column;padding:0;margin:0;width:var(--navigation-width);max-width:none;min-width:0;height:auto;min-height:0;max-height:none}
.temple-selector .selector-heading{display:block;margin:0 0 12px;padding-left:28px}
.temple-selector .selector-heading h2{font-size:24px;letter-spacing:.08em;line-height:1.3}
.selector-heading p{margin:4px 0 0;color:var(--subtle);font-size:11px;letter-spacing:.06em}
.temple-selector .temple-cards{position:relative;display:block;flex:1;min-height:0;overflow:hidden;padding:0;touch-action:none;overscroll-behavior:contain}
.temple-cards::before{display:none}
.temple-selector .temple-card{position:absolute;top:50%;left:0;width:212px;min-height:64px;display:grid;grid-template-columns:100px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;align-content:center;padding:4px;border:0;background:transparent;border-radius:8px;transform:translateY(-50%);scale:1;transform-origin:center;outline:1px solid transparent;outline-offset:-1px;transition:scale 420ms cubic-bezier(.16,1,.3,1),background 240ms ease,outline-color 240ms ease;color:var(--ink)}
.temple-selector .temple-card::after{display:none}
.temple-selector .temple-card:hover{background:var(--card-wash)}
.temple-selector .temple-card[aria-selected=true]{border:0;padding:4px;scale:1.06;outline-color:var(--red);background:#fffaf1d9;box-shadow:0 6px 20px #213b3612}
.temple-selector .temple-card:focus-visible{outline:2px solid var(--red);outline-offset:4px}
.temple-cards .card-picture{grid-row:1/3;align-self:center;width:100%;height:auto;aspect-ratio:1672/941;overflow:hidden;border-radius:3px}
.temple-cards .card-art{width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center;transform:none;border-radius:3px;-webkit-user-drag:none}
.temple-cards .card-country{margin:0;align-self:end;font-size:10px;letter-spacing:.04em;color:var(--subtle);line-height:1.6}
.temple-cards .card-name{margin:0;align-self:start;font-size:14px;white-space:normal;line-height:1.35;min-height:0;text-wrap:balance}
.temple-cards .card-theme,.temple-cards .card-ordinal,.temple-cards .card-selected{display:none!important}
.temple-card[aria-selected=true] .card-name,.temple-card[aria-selected=true] .card-country{color:var(--red)}
.wheel-controls{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;padding:0 8px}
.wheel-controls p{font-size:10px;margin:0;color:var(--subtle);letter-spacing:.04em}
.wheel-controls button{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);transition:background 180ms}
.wheel-controls button:hover{background:var(--realm-wash)}
.wheel-controls svg{width:18px;height:18px}
body[data-page=home] .world,html[lang=en] body[data-page=home] .world{position:relative;width:100%;height:100%;min-height:0;aspect-ratio:auto;padding:0;max-height:none;isolation:isolate}
.world .scene-frame{position:absolute;inset:0;z-index:-1;overflow:visible;background:var(--paper-light)}
.world .scene-frame::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--paper-light) 0%,var(--paper-light) 21%,#fcfcf5ee 31%,#fcfcf580 43%,#fcfcf500 57%);pointer-events:none}
.world .scene-art{inset:auto 0 auto auto;top:50%;width:min(100%,calc((100svh - 101px) * 1672 / 941));height:auto;aspect-ratio:1672/941;object-fit:contain;object-position:right center;transform:translateY(-50%);mask-image:linear-gradient(0deg,transparent,black 2%,black 98%,transparent);transition:opacity 220ms ease}
.world .scene-art.changing{opacity:.2}
.world .scene-label{display:none}
.world .temple-info{position:absolute;left:calc(24px + var(--navigation-width) + 20px);top:18%;width:23%;max-width:330px;margin:0}
.world .temple-info h1{font-size:clamp(32px,3.5vw,58px);line-height:1.22;letter-spacing:.02em;text-wrap:balance}
.world .temple-info h1 span{margin-top:4px}
.world .temple-english{font-size:9px;letter-spacing:.1em;line-height:1.6;margin:12px 0 16px}
.world .location{font-size:11px;letter-spacing:.05em;gap:8px}
.world .location-line{width:20px;flex:none}
.world .temple-description{font-size:12px;line-height:1.85;min-height:0;max-width:none;margin:16px 0 12px}
.world .scene-features{font-size:9px;gap:4px 10px;letter-spacing:0}
.world .scene-features span+span{border:0;padding:0;margin:0}
.world .text-button{font-size:12px;margin:18px 0 12px;min-height:36px}
.world .primary-button{min-width:180px;min-height:52px;width:fit-content;padding:12px 20px;font-size:17px;gap:28px}
.world .ritual-caption{font-size:9px;letter-spacing:0;line-height:1.6;margin-top:12px;padding:0}
.world .scene-progress{inset:auto auto 24px calc(24px + var(--navigation-width) + 20px);gap:12px}
.world .scene-progress>span:first-child{font-size:20px}
.world .progress-line{width:44px}
html[lang=en] .temple-cards .card-name{font-size:12px;line-height:1.25;min-height:0}
html[lang=en] .world .temple-info h1{font-size:clamp(28px,2.5vw,42px);line-height:1.12;letter-spacing:0}
html[lang=en] .world .temple-description{font-size:11px;line-height:1.65}
html[lang=en] .world .primary-button{font-size:14px}
@media(min-width:901px) and (max-height:820px){
 .world .temple-info{top:10%}
 .world .temple-info h1{font-size:36px}
 .world .temple-english{margin:8px 0 10px}
 .world .temple-description{margin:12px 0 8px}
 .world .text-button{margin:12px 0 8px}
 .world .primary-button{min-height:48px}
 .world .ritual-caption{margin-top:8px}
 html[lang=en] .world .temple-info h1{font-size:29px}
}
@media(min-width:901px) and (max-width:1200px){
 body[data-page=home] #home{--navigation-width:264px}
 body[data-page=home] .temple-selector{left:16px}
 .temple-selector .temple-card{width:186px;grid-template-columns:88px minmax(0,1fr);gap:8px}
 .world .temple-info{left:292px;width:24%;top:12%}
 .world .temple-info h1{font-size:32px}
 .world .temple-description{font-size:11px}
 .world .temple-english{margin:8px 0}
 .world .text-button{margin:8px 0}
 .world .scene-progress{left:292px;bottom:24px}
 .world .scene-frame::after{background:linear-gradient(90deg,var(--paper-light) 0%,var(--paper-light) 22%,#fcfcf5f5 36%,#fcfcf5a3 51%,#fcfcf500 66%)}
}
@media(max-width:900px){
 body[data-page=home] .world,html[lang=en] body[data-page=home] .world{order:1;height:auto;aspect-ratio:auto;max-height:none;display:flex;flex-direction:column;gap:24px}
 .world .scene-frame{position:relative;inset:auto;z-index:auto;aspect-ratio:1672/941;width:100%;height:auto}
 .world .scene-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transform:none}
 .world .scene-frame::after{background:linear-gradient(0deg,var(--paper-light),#fcfcf500 12%)}
 .world .temple-info{position:relative;inset:auto;max-width:none;width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px}
 .world .temple-info h1{grid-column:1;font-size:36px}
 .world .temple-info h1 span{display:inline;margin:0 0 0 8px}
 .world .temple-english{grid-column:1;margin:8px 0 12px}
 .world .location{grid-column:1}
 .world .temple-description{grid-column:1;margin:12px 0;font-size:13px}
 .world .scene-features{grid-column:1;font-size:10px}
 .world .text-button{grid-column:2;grid-row:4;align-self:start;margin:12px 0}
 .world .primary-button{grid-column:2;grid-row:1/3;align-self:center}
 .world .ritual-caption{grid-column:2;grid-row:3;align-self:start;margin:0;font-size:10px}
 .world .scene-progress{display:none}
}
@media(max-width:900px){
 body[data-page=home] #home{display:flex;flex-direction:column;gap:36px;padding:20px 24px 28px;height:auto;min-height:0}
 body[data-page=home] .temple-selector{position:relative;inset:auto;order:2;width:100%;height:auto;min-height:0;max-height:none}
 .temple-selector .selector-heading{padding:0;margin-bottom:16px;display:flex;align-items:baseline;justify-content:space-between;gap:12px}
 .temple-selector .selector-heading h2{font-size:20px;letter-spacing:.04em}
 .temple-selector .temple-cards{--visible-temples:4;display:flex;gap:12px;padding:12px 8px 16px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:8px;touch-action:pan-x}
 .temple-cards::before{display:none}
 .temple-selector .temple-card,.temple-selector .temple-card[aria-selected=true]{position:relative;inset:auto;flex:0 0 calc((100% - 16px - 12px * (var(--visible-temples) - 1)) / var(--visible-temples));display:block;min-height:0;width:auto;padding:6px;transform:none;border-radius:6px;scroll-snap-align:start;box-shadow:none}
 .temple-selector .temple-card[aria-selected=true]{outline:1px solid var(--red);outline-offset:-1px;background:#fffaf1}
 .temple-cards .card-picture{aspect-ratio:1672/941;width:100%}
 .temple-cards .card-country{margin:8px 4px 2px;font-size:10px}
 .temple-cards .card-name{margin:0 4px 4px;font-size:14px;text-wrap:initial}
 .wheel-controls{margin-top:4px}
 .wheel-controls button:first-child{transform:rotate(-90deg)}
 .wheel-controls button:last-child{transform:rotate(-90deg)}
}
@media(max-width:600px){
 body[data-page=home] #home{padding:12px 16px 24px;gap:28px}
 .world .scene-frame{width:calc(100% + 32px);margin-inline:-16px}
 .world .temple-info{display:block}
 .world .temple-info>.primary-button{float:none;clear:none;margin-right:0}
 .temple-selector .temple-cards{--visible-temples:2}
 .world .temple-info h1{font-size:32px;line-height:1.3}
 .world .temple-description{font-size:12px;line-height:1.8}
 .world .temple-english{font-size:9px;margin:6px 0 10px}
 .world .text-button{display:inline-flex;margin:18px 16px 0 0;vertical-align:middle}
 .world .primary-button{display:inline-flex;min-width:148px;font-size:16px;min-height:48px;vertical-align:middle;margin-top:18px}
 .world .ritual-caption{margin-top:10px;font-size:10px}
 html[lang=en] .world .temple-info h1{font-size:28px;line-height:1.2}
 html[lang=en] .world .temple-info h1 span{margin:0 0 0 6px}
 html[lang=en] .world .temple-description{font-size:12px;line-height:1.75}
 html[lang=en] .world .text-button{margin-right:10px;font-size:11px}
 html[lang=en] .world .primary-button{min-width:130px}
 .temple-selector .selector-heading h2{font-size:18px}
 .temple-selector .selector-heading p{font-size:10px;letter-spacing:0}
}
@media(prefers-reduced-motion:reduce){.temple-selector .temple-card,.world .scene-art{transition:none}.world .scene-art{transform:translateY(-50%)}}
@media(max-width:900px) and (prefers-reduced-motion:reduce){.world .scene-art{transform:none}}

.temple-selector.is-arranging .temple-card{transition:none}

/* Scale the frame, artwork and copy together, independently of wheel translation. */
@media(hover:hover){.temple-selector .temple-card:hover:not([aria-selected=true]){scale:1.03}}
.temple-selector .temple-card:focus-visible:not([aria-selected=true]){scale:1.03}
.temple-cards.is-dragging,.temple-cards.is-dragging .temple-card{cursor:grabbing;user-select:none}
@media(prefers-reduced-motion:reduce){.temple-cards .card-art{transition:none;transform:none!important}}
