.home-portal { background:#030b19; backdrop-filter:none; padding:21vh 20px 38px; align-content:start; }
.home-portal-grid { width:min(79vw,calc((100svh - 200px) * 2.025),2168px); aspect-ratio:2168 / 1070; display:grid; grid-template-columns:1210fr 910fr; grid-template-rows:506fr 520fr; column-gap:2.2%; row-gap:4.1%; }
.home-portal-card { position:relative; min-width:0; margin:0; overflow:visible; isolation:isolate; container-type:inline-size; border:0; border-radius:0; background:none; box-shadow:none; color:#e9e0c5; text-align:left; padding:0; }
button.home-portal-card { transition:filter .25s; }
.home-portal a { color:inherit; text-decoration:none; }
.home-portal a:focus-visible,.home-portal button:focus-visible { outline:2px solid #b9faff; outline-offset:7px; }
.home-portal-panel { position:absolute; display:block; max-width:none; pointer-events:none; z-index:0; object-fit:fill; animation:portal-light-breathe 11s ease-in-out infinite; }
.home-portal-science { grid-row:1 / 3; }
.home-portal-science .home-portal-panel { left:-.8%; top:-1.2%; width:101.6%; height:102%; }
.home-portal-explore .home-portal-panel { left:-1.75%; top:-9.3%; width:102.63%; height:110.9%; animation-delay:-3s; }
.home-portal-delivery .home-portal-panel { left:-1.75%; top:-2.1%; width:102.63%; height:103.1%; animation-delay:-6s; }
.home-portal h1 { position:absolute; z-index:2; left:7%; right:5%; top:5.2%; margin:0; transform:none; font-size:7.05cqw; line-height:1.25; letter-spacing:0; font-weight:700; white-space:nowrap; color:#e0d8bd; text-shadow:0 2px 4px #0005; }
.home-portal h1>span { color:#38d9df; }
.home-portal-subtitle { position:absolute; z-index:2; top:17.2%; left:4%; right:4%; margin:0; text-align:center; font-family:"Microsoft YaHei","PingFang SC",sans-serif; font-size:3.25cqw; line-height:1.5; color:#d8d0b7; font-weight:400; letter-spacing:-.02em; }
.home-portal-topics { position:absolute; z-index:2; top:75.5%; left:6%; right:11.5%; display:flex; justify-content:center; gap:2.5%; }
.home-portal-topics a { display:flex; align-items:center; justify-content:center; flex:none; padding:.9cqw 1.7cqw; border:1px solid #4584a3a6; border-radius:99px; background:linear-gradient(110deg,#17364a,#24495eaa,#173449); box-shadow:inset 0 1px 8px #8bc2e338; font-size:3.05cqw; line-height:1.35; color:#c1cbce; font-weight:400; white-space:nowrap; transition:background .2s,color .2s; }
.home-portal-topics a:hover { background:#285773; color:#e6f9ff; }
.home-portal-cta { position:absolute; z-index:3; display:flex; gap:.6em; align-items:center; justify-content:center; width:max-content; padding:.48em 1.05em; border:1px solid #59a2c5a3; border-radius:99px; background:linear-gradient(110deg,#1b3c55,#34546ec2,#254961); box-shadow:inset 0 1px 10px #9cc9e638; color:#ede2bf!important; font-size:4.1cqw; font-weight:600; line-height:1.2; white-space:nowrap; transition:background .22s,color .22s,box-shadow .22s,transform .12s; }
.home-portal-cta img { width:1em; height:1em; filter:brightness(0) saturate(100%) invert(94%) sepia(17%) saturate(416%) hue-rotate(352deg) brightness(95%); }
.home-portal-primary { bottom:5%; left:50%; transform:translateX(-50%); font-size:3.35cqw; padding:.48em 1.1em; }
.home-portal-copy { position:absolute; z-index:2; }
.home-portal-copy strong { display:block; font-size:7.5cqw; line-height:1.2; font-weight:650; letter-spacing:-.045em; color:#e8dabc; text-shadow:0 2px 4px #0004; white-space:nowrap; }
.home-portal-copy strong>span { color:#50dfe2; }
.home-portal-explore .home-portal-copy { left:60%; top:9%; right:3%; }
.home-portal-explore .home-portal-copy strong { font-size:8.1cqw; line-height:1.18; }
.home-portal-copy .home-portal-kicker { display:block; font-size:5.85cqw; line-height:1.35; color:#e8dabc; font-weight:650; letter-spacing:-.03em; white-space:nowrap; }
.home-portal-description { display:block; margin-top:1.7cqw; font-size:3.65cqw; line-height:1.5; color:#a6b4c1; font-weight:400; letter-spacing:-.02em; }
.home-portal-explore .home-portal-cta { left:60%; bottom:15%; }
.home-portal-delivery .home-portal-copy { left:5.7%; top:10.5%; right:3%; }
.home-portal-delivery .home-portal-description { margin-top:1.8cqw; font-size:3.6cqw; }
.home-portal-delivery .home-portal-cta { left:6%; bottom:9%; }
@media(hover:hover) and (pointer:fine) {
  .home-portal-cta:hover,.home-portal-explore:hover .home-portal-cta,.home-portal-delivery:hover .home-portal-cta { background:#32e4e6; color:#063241!important; border-color:#9af8fc; box-shadow:inset 0 1px 10px #d2ffff80,0 0 18px #1ee5e45c; }
  .home-portal-cta:hover img,.home-portal-explore:hover .home-portal-cta img,.home-portal-delivery:hover .home-portal-cta img { filter:brightness(0) saturate(100%); }
  .home-portal-card:hover .home-portal-panel { animation-play-state:paused; filter:brightness(1.045) drop-shadow(0 0 5px #35c3e51c); }
}
.home-portal-primary:focus-visible,.home-portal-explore:focus-visible .home-portal-cta,.home-portal-delivery:focus-visible .home-portal-cta { background:#32e4e6; color:#063241!important; border-color:#9af8fc; box-shadow:0 0 18px #1ee5e45c; }
.home-portal-primary:active { transform:translateX(-50%) translateY(2px) scale(.98); background:#69f7f2; color:#052936!important; }
.home-portal-explore:active .home-portal-cta,.home-portal-delivery:active .home-portal-cta { transform:translateY(2px) scale(.98); background:#69f7f2; color:#052936!important; }
.home-portal-card::after { content:""; position:absolute; z-index:1; pointer-events:none; left:3%; right:3%; top:4%; bottom:4%; clip-path:inset(0); background:linear-gradient(112deg,transparent 30%,#c5f4ff09 43%,#d6f6ff0d 48%,transparent 62%); background-size:300% 100%; animation:portal-glass-flow 17s ease-in-out infinite; }
.home-portal-explore::after { animation-delay:-5s; }
.home-portal-delivery::after { animation-delay:-10s; }
@keyframes portal-light-breathe { 0%,100% { filter:brightness(.985); } 50% { filter:brightness(1.045) drop-shadow(0 0 5px #45cff719); } }
@keyframes portal-glass-flow { 0%,35% { background-position:150% 0; opacity:0; } 50% { opacity:1; } 75%,100% { background-position:-50% 0; opacity:0; } }
@media(prefers-reduced-motion:reduce) { .home-portal-panel,.home-portal-card::after { animation:none; } }
body:not([data-game-phase="home"]) .home-portal-panel,body:not([data-game-phase="home"]) .home-portal-card::after { animation-play-state:paused; }

.game-brand,.game-brand--desktop { color:#aebcca; font-family:"Microsoft YaHei UI Light","Microsoft YaHei Light","PingFang SC",sans-serif; font-size:20px; font-weight:300; letter-spacing:.06em; text-shadow:none; }
body[data-game-phase="home"] .gift-game--mobile .game-brand { color:#aebcca; font-family:"Microsoft YaHei UI Light","Microsoft YaHei Light","PingFang SC",sans-serif; font-size:17px; font-weight:300; letter-spacing:.06em; text-shadow:none; -webkit-text-stroke:0; }
body[data-game-phase="home"] .game-nav { padding:26px 3%; }
body[data-game-phase="home"] .game-nav button[data-action="sound"] { width:46px; height:46px; border:1px solid #5d91b3; background:#122b41; box-shadow:inset 0 0 10px #9bc3e533; color:#f1f3f1; }
body[data-game-phase="home"] .language-passport-nav { display:none!important; }
body[data-game-phase="home"] .map-source-note { display:none; }
body[data-game-phase="home"].game-mobile-device #icp-footer { color:#cfe0f2; background:#0b1a30cc; border-color:#92b6ec35; }
body[data-game-phase="home"].game-mobile-device #icp-footer a { color:#cfe0f2!important; }
.home-portal [aria-busy="true"] { opacity:.7; cursor:progress; }

@media(max-width:650px) {
  .home-portal { display:block; padding:86px 18px 58px; overflow-y:auto; }
  .home-portal-grid { width:100%; max-width:480px; margin:0 auto; display:flex; flex-direction:column; gap:20px; aspect-ratio:auto; }
  .home-portal-science { aspect-ratio:1210 / 1070; flex:none; }
  .home-portal-explore { aspect-ratio:910 / 506; flex:none; }
  .home-portal-delivery { aspect-ratio:910 / 520; flex:none; }
  .home-portal h1 { font-size:6.9cqw; }
  .game-brand,.game-brand--desktop { font-size:17px; }
  body[data-game-phase="home"] .game-nav { padding:18px 22px; }
  body[data-game-phase="home"] .game-nav button[data-action="sound"] { width:40px; height:40px; }
}
@media(max-height:520px) and (min-width:651px) {
  .home-portal { padding:70px 16px 38px; align-content:start; }
  .home-portal-grid { width:min(79vw,900px); }
}

.home-portal-primary:focus-visible img,.home-portal-primary:active img,.home-portal-explore:focus-visible .home-portal-cta img,.home-portal-delivery:focus-visible .home-portal-cta img { filter:brightness(0); }

.home-portal h1 { background:linear-gradient(100deg,#25d8e3 0%,#35dbe1 44%,#bee0d0 71%,#e6dbc0 94%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.home-portal-delivery strong { background:linear-gradient(100deg,#3bdde1 0%,#6de4da 25%,#e8dbbf 47%,#e8dbbf 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }

.home-portal h1,.home-portal-delivery strong { text-shadow:none; }

@media(max-width:650px) { .home-portal-cta { min-height:40px; font-size:14px; } .home-portal-primary { bottom:4.5%; } .home-portal-topics { top:72%; left:4%; right:4%; gap:2%; } .home-portal-topics a { min-height:28px; padding:.6cqw 1.3cqw; font-size:3.05cqw; } .home-portal-description { font-size:max(13px,3.65cqw); } .home-portal-delivery .home-portal-description { font-size:max(13px,3.6cqw); } }

@media(max-width:650px) { .home-portal-subtitle { font-size:max(12px,3.25cqw); } }
