/* Interaction/accessibility structure for the two illustrated worlds. Visuals live in each theme. */
body.site-home { isolation: isolate; }
.site-home > .container { position: relative; z-index: 1; }
.world-icon { width: 48px; height: 48px; flex-shrink: 0; vertical-align: middle; }
.world-atmosphere { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.world-atmosphere > span { position: absolute; opacity: .3; animation: world-wander 18s ease-in-out infinite alternate; }
.world-atmosphere > span:nth-child(1) { left: 2%; top: 13%; }
.world-atmosphere > span:nth-child(2) { right: 3%; top: 42%; animation-delay: -8s; }
.world-atmosphere > span:nth-child(3) { left: 3%; top: 76%; animation-delay: -4s; }
.world-atmosphere > span:nth-child(4) { right: 5%; top: 88%; animation-delay: -12s; }
.world-atmosphere .world-icon { width: 70px; height: 70px; }
.world-navigation { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 10px 0 55px; }
.world-navigation a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 19px; text-decoration: none; font-size: 14px; font-weight: 700; min-height: 48px; }
.world-navigation .world-icon { width: 30px; height: 30px; }
.world-section-kicker, .world-personal-label { font-size: 11px; font-weight: 800; letter-spacing: .13em; margin-bottom: 14px; }
.world-section-intro { max-width: 560px; font-size: 15px; line-height: 1.7; }
.world-status-note { margin: 25px 0 0; font-size: 12px; line-height: 1.6; }
.world-connect-steps { list-style: none; display: grid; gap: 15px; margin: 24px 0; padding: 0; font-size: 14px; }
.world-connect-steps li { display: flex; gap: 12px; align-items: baseline; }
.world-connect-steps b { flex-shrink: 0; font-size: 12px; }
.world-connection-stamp { display: flex; gap: 10px; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: .07em; margin-bottom: 20px; }
.world-connection-stamp .world-icon { width: 40px; height: 40px; }
.site-home .world-model-card { min-width: 0; position: relative; transition: transform .25s, box-shadow .25s, border-color .25s; }
.world-model-ribbon { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; }
.world-model-state { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; }
.world-model-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--world-status); }
.world-model-card[data-enabled="false"] .world-model-state::before { background: var(--world-inactive); }
.world-model-intro { display: flex; align-items: center; gap: 14px; margin: 19px 0 16px; }
.world-model-intro > div { min-width: 0; }
.world-model-portrait { position: relative; display: inline-block; width: 66px; height: 66px; flex-shrink: 0; }
.world-model-portrait svg { width: 100%; height: 100%; }
.world-model-card h5 { font-size: 21px; line-height: 1.2; font-weight: 500; margin: 0 0 7px; overflow-wrap: anywhere; }
.world-id-count { font-size: 11px; }
.world-abilities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.world-abilities span { font-size: 10px; padding: 4px 8px; }
.world-model-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 15px 0; margin: 0; }
.world-model-metrics dt { font-size: 10px; }
.world-model-metrics dd { font-size: 17px; font-weight: 800; line-height: 1.4; margin: 3px 0 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.world-model-limits { font-size: 11px; margin: 10px 0 16px; }
.world-model-card summary { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; min-height: 44px; align-items: center; font-size: 12px; list-style: none; font-weight: 700; }
.world-model-card summary::-webkit-details-marker { display: none; }
.world-model-card summary > span { font-size: 10px; flex-shrink: 0; }
.world-model-ids { padding-top: 10px; }
.world-model-ids p { font-size: 12px; margin: 0 0 10px; }
.world-model-id { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.world-model-id code { min-width: 0; flex: 1; overflow-wrap: anywhere; font: 11px/1.6 Consolas, monospace; }
.world-model-id button { flex-shrink: 0; font: 700 11px Nunito, sans-serif; padding: 8px 12px; min-height: 38px; cursor: pointer; }
.world-pop { position: absolute; z-index: 3; right: 20px; top: 0; pointer-events: none; font-size: 23px; animation: world-pop-up .85s ease-out forwards; white-space: pre; }
.world-toast { position: fixed; z-index: 10000; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(410px, calc(100vw - 32px)); padding: 16px 22px; font: 700 14px/1.6 Nunito, sans-serif; }
.world-toast:empty { display: none; }
.world-empty > span { display: block; font-size: 40px; margin-bottom: 10px; }
.world-account-sticker { position: absolute; right: 30px; top: -26px; transform: rotate(12deg); }
.world-account-sticker .world-icon { width: 60px; height: 60px; }
.world-auth-welcome { display: flex; align-items: center; gap: 5px; margin: -10px 0 18px; }
.world-auth-art { width: 150px; flex-shrink: 0; }
.world-auth-art .world-art { width: 100%; height: auto; }
.world-auth-welcome p { font-size: 17px; line-height: 1.5; }
.world-token-label { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 12px; font-weight: 800; }
.world-token-label span { font-weight: 400; }
.site-home .world-auth-art .art-float { animation-duration: 8s; }
.site-home .preview-label { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
#worldPreviewAccount { font: 700 11px Nunito, sans-serif; padding: 9px 14px; cursor: pointer; }
.site-home #userStatsSection { scroll-margin-top: 85px; }
.site-home :is(a, button, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@keyframes world-wander { from { transform: translateY(0) rotate(-5deg); } to { transform: translateY(-20px) rotate(8deg); } }
@keyframes world-pop-up { from { opacity: 0; transform: translateY(0) scale(.7); } 25% { opacity: 1; } to { opacity: 0; transform: translateY(-40px) scale(1.1); } }
@media (max-width: 700px) {
    .world-navigation { gap: 9px; margin-bottom: 40px; }
    .world-navigation a { padding: 10px 12px; gap: 7px; font-size: 12px; }
    .world-navigation .world-icon { width: 24px; height: 24px; }
    .world-atmosphere > span { opacity: .15; }
    .world-section-intro { font-size: 14px; }
    .world-model-intro { gap: 11px; }
    .world-model-card h5 { font-size: 22px; }
    .world-auth-welcome { gap: 8px; }
    .world-auth-art { width: 110px; }
    .world-auth-welcome p { font-size: 15px; }
    .world-toast { bottom: 16px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .site-home *, .site-home *::before, .site-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
