/* Landing-page previews use the same atlas and sprites as the game. */
/* HERO = THE TRAILER (2026-10-05): logo + copy left, the phone-framed trailer right, sized to the viewport height so the
   whole phone shows without scrolling; on phones the trailer comes first. The world map is the next panel down. */
.site-home .hero{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:14px 36px;padding:28px 36px;min-height:0;background:linear-gradient(135deg,#152d39,#0c1c29);overflow:visible;align-items:center}
.site-home .hero::before{display:none}
.site-home .hero>.logo{grid-column:1;grid-row:1;align-self:end;margin:0}
.site-home .hero-copy{grid-column:1;grid-row:2;align-self:start}
.hero-trailer{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;justify-self:center}
.trailer-phone{position:relative;height:min(640px,calc(100vh - 170px));height:min(640px,calc(100svh - 170px));min-height:440px;aspect-ratio:9/19.5;border-radius:38px;border:9px solid #0b1620;background:#000;overflow:hidden;box-shadow:0 0 0 2px #2b3d4a,0 24px 48px #0008,inset 0 0 0 1px #000}
.trailer-phone video{display:block;width:100%;height:100%;object-fit:cover;background:#000}
.trailer-sound{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);padding:9px 16px;border-radius:999px;border:1px solid #ffe19a;background:#102735e6;color:#ffe19a;font:700 12px/1 'Trebuchet MS',sans-serif;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;box-shadow:0 4px 12px #0007}
.trailer-sound[aria-pressed=true]{background:#ffe19a;color:#172734}
.hero-trailer-note{font-size:12px;color:#bdcdd7;letter-spacing:.04em}.trailer-full{color:#ffd470;font-weight:700;text-decoration:none}.trailer-full:hover{text-decoration:underline}
/* THE WORLD MAP, right under the trailer: map left, heading + island detail right. */
.landing-atlas{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,.75fr);grid-template-rows:auto auto 1fr;grid-template-areas:"map head" "map detail" "map all";column-gap:28px;align-items:start;min-width:0;margin:22px 0 0;padding:28px;border:1px solid #3a4e5c;border-radius:12px;background:linear-gradient(135deg,#102433,#0a1a26)}
.atlas-heading{grid-area:head}.atlas-map{grid-area:map}.atlas-detail{grid-area:detail}.atlas-all{grid-area:all}
.atlas-heading{margin-bottom:14px}.atlas-heading h2{font-size:26px;margin-top:6px;letter-spacing:-.03em}
.atlas-map{position:relative;aspect-ratio:3/2;border:2px solid #aa8b51;border-radius:12px;overflow:hidden;background:#466c72;box-shadow:0 10px 28px #0004}
.atlas-picture{display:block;width:100%;height:100%;object-fit:cover}
.atlas-pin{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:0;background:none;color:#fff;font:700 11px 'Trebuchet MS',sans-serif;cursor:pointer;padding:3px}
.atlas-pin img{width:34px;height:34px;object-fit:contain;filter:drop-shadow(0 2px 3px #001a28);transition:transform .15s}
.atlas-pin span{padding:3px 6px;border-radius:4px;background:#102735eb;border:1px solid #859997;box-shadow:0 2px 4px #0005}
.atlas-pin:hover img,.atlas-pin[aria-pressed=true] img{transform:scale(1.15)}
.atlas-pin[aria-pressed=true] span{color:#172734;background:#ffe19a;border-color:#fff2bd}
.atlas-pin:focus-visible{outline:3px solid #fff3b2;outline-offset:2px;border-radius:7px}
.atlas-detail{margin-top:12px;padding:16px 18px;border-left:3px solid #e1b75e;background:#081924;border-radius:0 8px 8px 0;min-height:145px}
.atlas-detail small{font-size:10px;font-weight:900;letter-spacing:.14em;color:#ffdb89}.atlas-detail h3{font-size:23px;margin:3px 0 7px}.atlas-detail p{font-size:13px;line-height:1.5;color:#bdcdd7}.atlas-detail a{display:inline-block;color:#80dcf4;font-size:13px;margin-top:12px}.atlas-all{display:inline-block;color:#bdcdd7;font-size:12px;margin-top:14px}
.adventure-features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.adventure-card{min-width:0;overflow:hidden;background:#132837;border:1px solid #526573;border-radius:12px;display:flex;flex-direction:column}
.adventure-art{height:230px;position:relative;display:flex;align-items:center;justify-content:center;border-bottom:1px solid #526573;background-position:center;background-size:cover}
.raid-art{background-image:linear-gradient(#07121c22,#07121c88),url('/assets/dungeon/arena_crypt_bg.png')}.grove-art{background-image:linear-gradient(#07121c00,#07121c66),url('/assets/backgrounds/ball_grove.webp')}
.adventure-art>img{width:180px;height:185px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 8px 5px #0008)}.grove-art>img{width:130px;height:140px;align-self:flex-end;margin-bottom:24px}
.adventure-art>span{position:absolute;top:14px;left:14px;background:#0b1c29ee;border:1px solid #ae9663;border-radius:5px;padding:7px 10px;font-size:10px;font-weight:900;letter-spacing:.1em;color:#ffe2a0}
.adventure-copy{padding:24px;display:flex;flex-direction:column;flex:1}.adventure-copy h3{font-size:25px;line-height:1.2;margin:9px 0 12px;letter-spacing:-.025em}.adventure-copy>p:not(.site-eyebrow){font-size:14px;line-height:1.7;color:#c4d3df}.adventure-copy>a{color:#80dcf4;font-size:13px;margin-top:auto;padding-top:18px;font-weight:bold}
.adventure-reward{display:flex;gap:12px;align-items:center;margin-top:20px;padding:14px;background:#0b1d2a;border:1px solid #345066;border-radius:8px}.adventure-reward img{width:44px;height:44px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}.adventure-reward p{font-size:12px;color:#bfcddb;line-height:1.55}.adventure-reward strong{display:block;color:#ffe1a0;margin-bottom:3px}
@media(max-width:950px){.site-home .hero{display:grid;grid-template-columns:1fr;grid-template-rows:auto auto auto;padding:22px;gap:14px}.site-home .hero>.logo{grid-row:1;align-self:start}.hero-trailer{grid-column:1;grid-row:2}.site-home .hero-copy{grid-row:3;max-width:620px}.trailer-phone{height:min(560px,calc(100vh - 215px));height:min(560px,calc(100svh - 215px));min-height:360px}.landing-atlas{grid-template-columns:1fr;grid-template-areas:"head" "map" "detail" "all";padding:22px}.atlas-heading{margin-bottom:14px}.atlas-pin img{width:40px;height:40px}.atlas-pin{font-size:12px}.atlas-detail{min-height:0;margin-top:12px}}
@media(max-width:600px){.site-home .hero{padding:16px;gap:12px}.landing-atlas{padding:16px}.adventure-features{grid-template-columns:1fr;gap:16px}.adventure-art{height:200px}.adventure-copy{padding:20px}.adventure-copy h3{font-size:23px}.atlas-heading h2{font-size:23px}.atlas-pin img{width:27px;height:27px}.atlas-pin{font-size:9px}.atlas-pin span{padding:2px 4px}.atlas-map{border-radius:8px}.atlas-detail{padding:14px}}
.social-adventure{margin-top:32px;padding:28px;border:1px solid #65858f;border-radius:12px;background:linear-gradient(90deg,#0e2435ef,#0e2435df),url('/assets/guild/v2/banner.webp') center/cover}
.social-heading{display:flex;align-items:center;gap:22px;max-width:740px}.social-heading>img{width:90px;height:90px;object-fit:contain;image-rendering:pixelated}.social-heading h2{font-size:clamp(24px,3vw,32px);margin:7px 0 10px;letter-spacing:-.03em}.social-heading p:not(.site-eyebrow){font-size:14px;line-height:1.65;color:#c4d3df}
.social-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:24px}.social-options article{padding:20px;border:1px solid #3e6071;background:#0b1d2be6;border-radius:8px;display:flex;flex-direction:column}.social-options img{width:50px;height:50px;object-fit:contain;image-rendering:pixelated;margin-bottom:14px}.social-options h3{font-size:17px;color:#ffe1a0;margin-bottom:9px}.social-options p{font-size:13px;line-height:1.65;color:#c4d3df}.social-options a{color:#80dcf4;font-size:12px;padding-top:16px;margin-top:auto}
@media(max-width:600px){.social-adventure{padding:20px}.social-heading{gap:14px;align-items:flex-start}.social-heading>img{width:48px;height:48px}.social-options{grid-template-columns:1fr}.social-options article{padding:18px}.social-options img{width:40px;height:40px;margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){.atlas-pin img{transition:none}}

.pet-showcase{margin:22px 0;padding:24px 24px 16px;border:1px solid #718561;border-radius:12px;background:linear-gradient(#122c2eea,#0b202aea),url('/assets/hoard/gates/background_01.png') center/cover;overflow:hidden}.pet-showcase-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.pet-showcase h2{font-size:clamp(23px,3vw,30px);margin-top:8px;letter-spacing:-.03em}.pet-showcase a{font-size:13px;color:#80dcf4;white-space:nowrap}.pet-showcase-line{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));align-items:end;margin:24px 0 14px;border-bottom:2px solid #55674a;padding-bottom:8px}.pet-showcase-line img{width:100%;height:auto;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 5px 3px #0005)}.pet-showcase>p{font-size:13px;color:#bdd6cd;text-align:center;line-height:1.6}@media(max-width:600px){.pet-showcase{padding:20px 14px 14px}.pet-showcase-heading{align-items:flex-start;flex-direction:column;gap:12px}.pet-showcase-line{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:8px;margin-top:16px}.pet-showcase>p{font-size:12px}}

/* Freeze-frame gameplay scenes, assembled from the actual game sprites. */
.adventure-art.action-scene{height:290px;display:block;isolation:isolate;overflow:hidden;background-position:center 60%}
.action-scene>img{position:absolute;object-fit:contain;image-rendering:pixelated;margin:0;filter:drop-shadow(0 4px 2px #0007)}
.action-scene .scene-mode{z-index:8;font-size:9px;top:12px;left:12px}
.action-scene .scene-caption{position:absolute;inset:auto 0 0;z-index:7;padding:22px 12px 13px;text-align:center;font-size:12px;font-weight:800;letter-spacing:.02em;color:#fff1cc;background:linear-gradient(transparent,#071521ee)}
.raid-art .scene-warden{width:44%;height:78%;left:28%;top:9%;z-index:2}
.raid-aim-ring{position:absolute;left:32%;top:24%;width:36%;height:59%;border:2px solid #b49bf755;border-radius:50%;background:radial-gradient(ellipse,#7853b233,transparent 70%);transform:rotate(-15deg);z-index:1}
.scene-trajectories{position:absolute;inset:0;width:100%;height:100%;z-index:3;overflow:visible}
.scene-trajectories path{fill:none;stroke-width:3;stroke-dasharray:5 9;stroke-linecap:square;opacity:.7}.shot-blue{stroke:#70dbff}.shot-red{stroke:#ff9c8b}.shot-green{stroke:#9aefbc}.shot-gold{stroke:#ffe093}
.action-scene .raid-shot{width:40px;height:40px;z-index:5;filter:drop-shadow(0 2px 1px #121526) drop-shadow(0 0 8px #c2ddff44)}
.action-scene .shot-one{left:34%;top:34%;transform:rotate(25deg);width:46px;height:46px}.action-scene .shot-two{left:15%;top:60%;transform:rotate(-25deg)}.action-scene .shot-three{right:16%;top:67%;transform:rotate(35deg);width:44px;height:44px}.action-scene .shot-four{right:19%;top:29%;width:30px;height:30px}
.raid-impact{position:absolute;width:51px;height:51px;z-index:4;background:#ffe699;clip-path:polygon(50% 0,60% 30%,87% 9%,72% 42%,100% 50%,69% 60%,84% 88%,57% 71%,50% 100%,39% 70%,10% 87%,29% 58%,0 48%,31% 40%,13% 13%,42% 29%);filter:drop-shadow(0 0 3px #fbbc49)}
.impact-one{left:40%;top:38%;transform:rotate(15deg)}.impact-two{right:36%;top:54%;width:29px;height:29px;background:#adf1ff;transform:rotate(-12deg)}
.grove-art.action-scene{background-position:center 62%}
.action-scene .scene-tree{left:42%;top:4%;width:16%;height:88%;z-index:1;filter:brightness(.82)}
.action-scene .scene-canopy{left:-3%;top:-7%;width:106%;height:60%;z-index:2;object-fit:contain;filter:drop-shadow(0 7px 0 #102d2744)}
.action-scene .scene-crow{right:9%;top:23%;width:51px;height:51px;z-index:4;transform:rotate(-12deg)}
.action-scene .scene-basket{bottom:15px;width:30%;height:42%;z-index:5;filter:drop-shadow(0 6px 3px #152b1555)}.basket-left{left:9%}.basket-right{right:9%}
.falling-fruit{position:absolute;z-index:4;width:46px;height:46px;transform:rotate(var(--tilt,-12deg))}.falling-fruit img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 3px 1px #14251177)}
.falling-fruit::before,.falling-fruit::after{content:'';position:absolute;bottom:110%;width:3px;height:22px;background:linear-gradient(transparent,#fff1b9aa);left:35%;transform:rotate(8deg);z-index:-1}.falling-fruit::after{left:62%;height:13px;bottom:125%}
.fruit-one{left:22%;top:47%;--tilt:-18deg}.fruit-two{right:29%;top:43%;--tilt:18deg}.fruit-three{left:39%;top:40%;width:38px;height:38px;--tilt:12deg}.fruit-four{right:16%;top:53%;width:43px;height:43px;--tilt:-22deg}
@media(max-width:600px){.adventure-art.action-scene{height:250px}.action-scene .scene-caption{font-size:11px}.action-scene .raid-shot{width:32px;height:32px}.action-scene .shot-one{width:38px;height:38px}.action-scene .shot-three{width:36px;height:36px}.action-scene .shot-four{width:26px;height:26px}.action-scene .scene-basket{width:34%;height:42%}.basket-left{left:7%}.basket-right{right:7%}.action-scene .scene-crow{width:43px;height:43px}}

/* APP ICON (owner 2026-10-05, like the reference site): top-left of the nav and beside the store badges. The icon is
   public/icons/app-icon-{96,256}.png = dev-app/AppIcon-512@2x.png (the hoard-gate icon) downscaled; corners by CSS. */
.nav-brand{display:inline-flex;align-items:center;gap:9px;margin-right:8px;color:#ffe1a0;font-weight:900;font-size:13px;letter-spacing:.06em;text-decoration:none;white-space:nowrap}
.nav-brand img{display:block;width:36px;height:36px;border-radius:9px;box-shadow:0 0 0 1px #000a,0 2px 6px #0008}
.nav-brand:hover{color:#fff;text-decoration:none}
.site-home .stores{align-items:center}
.store-app-icon{width:72px;height:72px;border-radius:17px;box-shadow:0 0 0 2px #0b1620,0 0 0 3px #8e774c,0 8px 18px #0008;margin-right:6px;flex:0 0 auto}
@media(max-width:680px){.nav-brand span{display:none}.nav-brand{margin-right:2px}.nav-brand img{width:30px;height:30px;border-radius:8px}.store-app-icon{width:56px;height:56px;border-radius:13px;margin-right:2px}}

/* The nav is the shared shell-width bar from site-theme.css, exactly as the hiscores and wiki pages have it (owner
   2026-10-05: a full-window bar was tried and dropped - "same background like how hiscores page does it"). */
