/* iPad landscape is the main composition; portrait stays usable. */
.welcome{height:var(--viewport-height,100vh);min-height:620px;display:flex;align-items:center;background-image:url('assets/entrance-academy-v1.png');background-position:center;background-color:#e6dfea}
.welcome-shade{background:linear-gradient(90deg,#eee5f744,transparent 70%)}
.welcome-copy{margin:0 0 0 6%;padding:38px 36px 25px;width:410px;max-width:43%;border:1px solid #ffffffcf;border-radius:27px;background:#fffdf7ed;box-shadow:0 20px 80px #69558119;backdrop-filter:blur(12px);text-align:center}
.welcome .eyebrow{font-size:10px;letter-spacing:2px}.welcome h1{font-family:"PingFang SC","Microsoft YaHei",sans-serif;font-size:clamp(34px,4vw,54px);letter-spacing:0;line-height:1.2;margin:17px 0 12px;color:#3c3448}.welcome h1 span{font-size:1em}.welcome-sub{font-size:13px;letter-spacing:0;color:#7d7288}.welcome .welcome-story{font-size:12px;line-height:1.9;margin-top:18px}.welcome-realms{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-top:20px}.welcome-realms span{background:#f0e9f5;color:#8a749f;border-radius:10px;padding:6px;font-size:9px;white-space:nowrap}.welcome .enter{width:100%;max-width:268px;margin:24px auto 0;justify-content:center;min-height:48px;padding:13px 20px;box-shadow:0 6px 17px #58417333}.welcome-note{font-size:10px;margin:15px auto 0;line-height:1.9}.welcome .offline-entry{font-size:10px;margin:4px auto 0;color:#9b88a7}.welcome-student{height:80vh;max-height:850px;right:9%;bottom:4%;max-width:44%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 10px 18px #56476030)}.welcome-foot{bottom:22px;font-size:10px;color:#655673;text-shadow:0 1px 4px #fff;left:6%;right:6%;border:0;padding:0}.rotate-hint{display:none}.player-status b #player-name{margin-left:0;color:var(--ink);font-size:12px}.top-actions{gap:12px}
@media(orientation:landscape) and (min-width:900px){#game{height:var(--viewport-height,100vh);overflow:hidden}.game-layout{height:calc(var(--viewport-height,100vh) - 88px);grid-template-columns:220px minmax(0,1fr);padding:16px 24px;grid-template-rows:minmax(0,1fr)}.sidebar{overflow:auto;min-height:0}.world-column{display:flex;flex-direction:column;min-height:0;height:100%}.world-header{height:48px;min-height:48px}.world-viewport{flex:1;min-height:0;aspect-ratio:auto}.bottom-nav{flex-shrink:0}.world{width:100%;left:0}.topbar{padding:0 24px}.player-status{min-width:180px}.xp-track{width:155px}}
@media(orientation:landscape) and (max-height:600px){.welcome{min-height:var(--viewport-height,100vh)}.welcome-copy{padding:17px 24px 10px;margin-left:6%;width:340px;max-width:48%;border-radius:20px}.welcome h1{font-size:34px;margin:8px 0}.welcome .eyebrow{font-size:8px}.welcome-sub{font-size:11px}.welcome .welcome-story{display:none}.welcome-realms{margin-top:12px;gap:4px}.welcome-realms span{font-size:8px;padding:4px}.welcome .enter{margin-top:14px;min-height:44px}.welcome-note{margin-top:10px;font-size:9px}.welcome .offline-entry{padding:3px;min-height:34px;font-size:9px}.welcome-student{height:89vh;right:9%;bottom:2%}.welcome-foot{bottom:8px;font-size:8px}.topbar{gap:8px;padding:4px 10px}.top-actions{gap:2px}.player-status{min-width:110px}.brand{font-size:13px}.brand-star{font-size:18px}.xp-track{width:90px}.player-status>img{display:none}.icon-button{padding:5px;min-width:38px}.crystals b{font-size:13px}}
@media(orientation:landscape) and (max-height:370px){.welcome-copy{padding:12px 20px 7px;max-width:47%}.welcome h1{font-size:28px;margin:5px 0}.welcome-realms{margin-top:8px}.welcome-note{font-size:8px;margin-top:7px}.welcome .enter{margin-top:10px}.welcome-foot{display:none}.welcome .offline-entry{min-height:30px}.topbar .brand{font-size:12px;gap:4px}.topbar .brand-star{display:none}.top-actions{gap:0}.player-status{min-width:85px}.xp-track{width:75px}.icon-button{min-width:36px;font-size:19px}}
@media(orientation:portrait){.welcome{min-height:var(--viewport-height,100vh);height:auto;align-items:flex-start;padding-bottom:290px;background-position:60% center}.welcome-copy{margin:5vh auto 0;width:410px;max-width:calc(100% - 40px);padding:25px 24px 12px}.welcome h1{font-size:42px}.welcome-student{height:43vh;max-width:64%;right:2%;bottom:34px}.welcome-foot{display:none}.rotate-hint{display:block;position:fixed;bottom:max(5px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:15;background:#fffdf2e8;border:1px solid #e7daed;padding:8px 12px;border-radius:20px;color:#796389;font-size:11px;white-space:nowrap;pointer-events:none;box-shadow:0 3px 15px #34284f16}.top-actions{gap:1px}.player-status{min-width:0}}
