/* AppDrop V3: the approved black/neon-green visual system.
   Layout-only overrides. Preserve App Store data, URLs, SEO and behavior.
   Loaded last after main, localized, V2 and the original refinements. */
:root{
  --v3-black:#050b0b;--v3-surface:#0a1917;--v3-panel:#0b211b;
  --v3-border:#285b46;--v3-green:#28eb92;--v3-muted:#9db7ac;
  --v3-white:#f3fff8;
}
html{overflow-x:clip}
body:not(.admin):not(.admin-page){
  background:var(--v3-black);
  color:var(--v3-white);
  letter-spacing:-.012em;
}
body:not(.admin):not(.admin-page) :is(.panel,.locale-panel,.content-panel,.deal-section){
  box-shadow:none;
}
body:not(.admin):not(.admin-page) :is(h1,h2,h3){letter-spacing:-.034em}
body:not(.admin):not(.admin-page) :is(a,button,summary){-webkit-tap-highlight-color:transparent}
body:not(.admin):not(.admin-page) a:focus-visible,
body:not(.admin):not(.admin-page) button:focus-visible,
body:not(.admin):not(.admin-page) summary:focus-visible{
  outline:2px solid #91ffc6;outline-offset:3px;
}
/* A consistent compact navigation and restrained brand treatment. */
body nav.site-nav{
  background:linear-gradient(145deg,#091916,#06110f);
  border:1px solid #2a5c47;
  border-radius:20px;
  box-shadow:none;
}
body nav.site-nav .navlinks a{
  display:inline-flex;align-items:center;
  min-height:39px;padding:8px 12px;border-radius:999px;
  font-weight:720;color:#c8e2d3;white-space:nowrap;text-decoration:none;
}
body nav.site-nav .navlinks a[aria-current="page"]{
  background:linear-gradient(120deg,#50fba5,#14d981);color:#051811;
}
body nav.site-nav .navlinks a:hover{background:#143b2b;color:#f2fff7}
body .btn,body a.btn{
  border-radius:12px;background:#0c241c;border-color:#30684e;
}
body .btn:hover,body a.btn:hover{border-color:#57e69b}
/* Reference design: a black-and-green Apple news masthead.
   No made-up articles or fake app prices. */
body .v3-news-masthead{
  position:relative;display:flex;min-width:0;overflow:hidden;
  align-items:center;justify-content:space-between;gap:15px;
  min-height:174px;padding:22px clamp(19px,4.5vw,42px);
  margin:14px 0 24px;
  border:1px solid #297854;border-radius:23px;
  background:radial-gradient(ellipse at 76% 100%,#07b96867,transparent 48%),
    radial-gradient(ellipse at 5% 0%,#4737906b,transparent 48%),
    linear-gradient(115deg,#090d19,#071b15 75%,#05261b);
}
body .v3-news-masthead::after{
  content:"";position:absolute;right:-28px;bottom:-95px;
  width:260px;height:235px;border:2px solid #4cff9c;
  border-radius:45%;transform:rotate(-28deg);
  box-shadow:0 0 28px #1fef8d88,inset 0 0 22px #0ad67c45;
  pointer-events:none;
}
body .v3-news-masthead .v3-masthead-text{position:relative;z-index:1;max-width:75%}
body .v3-news-masthead h2{
  margin:0 0 8px;font-size:clamp(23px,5vw,35px);line-height:1.1;
}
body .v3-news-masthead p{
  margin:0 0 16px;color:#d0e1dc;
  font-size:clamp(12px,2.7vw,15px);line-height:1.55;
}
body .v3-news-masthead a{
  display:inline-flex;align-items:center;min-height:39px;
  padding:8px 16px;border:1px solid #49f69c;border-radius:999px;
  background:#082219;color:#d4ffe6;font-size:13px;font-weight:790;
  text-decoration:none;
}
body .v3-news-masthead .v3-masthead-art{
  position:relative;z-index:1;display:grid;place-items:center;
  flex:0 0 105px;width:105px;height:125px;border-radius:22px;
  border:2px solid #5f8e8b;background:linear-gradient(145deg,#1f5651,#071513);
  transform:rotate(13deg);box-shadow:0 13px 32px #0008;
}
body .v3-news-masthead .v3-masthead-art::before{
  content:"✦";color:#6cfeb3;font-size:62px;filter:drop-shadow(0 0 14px #39f798);
}
/* Tighten the existing homepage content so the masthead is not followed
   by a second screen-filling hero. */
body.home-redesign header.hero:not(.locale-hero){
  min-height:0!important;padding-block:22px!important;margin-block:10px 18px!important;
  border:1px solid #29553f!important;border-radius:22px!important;
  background:linear-gradient(135deg,#102e23,#091713)!important;
}
body.home-redesign .hero h1{font-size:clamp(25px,4.2vw,40px)!important;line-height:1.14}
body.home-redesign .hero-copy>p{font-size:clamp(13px,1.6vw,15px);line-height:1.55}
body.home-redesign .hero-visual{max-height:245px}
body.home-redesign :is(.deal-grid,.news-grid,.news-row){gap:11px}
body.home-redesign .deal-card,body.home-redesign .news-card{
  border-radius:16px!important;border-color:#2a5c46!important;
  background:linear-gradient(145deg,#0d241d,#081411)!important;
}
body.home-redesign :is(.deal-card,.news-card):hover{border-color:#53e799!important}
body.home-redesign .store,body.localized-site .primary-store{
  border-radius:13px;font-weight:850;
}
/* Every localized deal has a consistent compact storefront. */
body.localized-site .app-detail-redesign{min-width:0;max-width:900px}
body.localized-site .app-detail-redesign .locale-detail-header{
  display:flex;align-items:center;gap:15px;
  min-width:0;padding:19px!important;margin:12px 0!important;
  border:1px solid #2a6c4a;border-radius:20px!important;
  background:linear-gradient(120deg,#0d3022,#091916)!important;
}
body.localized-site .app-detail-redesign .locale-detail-header>div{min-width:0}
body.localized-site .app-detail-redesign .locale-detail-header .icon{
  width:70px;height:70px;border-radius:17px;flex:none;
}
body.localized-site .app-detail-redesign .locale-detail-header h1{
  margin:0 0 6px;font-size:clamp(22px,4.1vw,31px)!important;
  line-height:1.16;overflow-wrap:break-word;
}
body.localized-site .app-detail-redesign .locale-detail-header p{
  font-size:13px;line-height:1.4;overflow-wrap:anywhere;
}
body.localized-site .app-detail-redesign .locale-offer-bar{
  margin:11px 0 15px!important;min-width:0;
  padding:16px 18px!important;border:1px solid #2d7b54;
  border-radius:19px!important;background:linear-gradient(125deg,#103f2b,#0a211a)!important;
}
body.localized-site .app-detail-redesign .locale-offer-bar strong{
  font-size:clamp(18px,3.1vw,24px)!important;line-height:1.2;
}
body.localized-site .app-detail-redesign .locale-panel{
  margin:14px 0!important;padding:20px!important;
  border:1px solid #235b42;border-radius:19px!important;
  background:#0b1e18!important;
}
body.localized-site .app-detail-redesign .locale-panel h2{
  margin:0 0 12px!important;font-size:clamp(19px,3vw,24px)!important;
  line-height:1.23;
}
body.localized-site .app-detail-redesign #app-description{
  font-size:14px;line-height:1.7;overflow-wrap:anywhere;
}
body.localized-site .app-detail-redesign .locale-gallery{gap:9px;margin-top:12px}
body.localized-site .app-detail-redesign .locale-gallery img{
  height:215px;max-height:215px;max-width:65vw;object-fit:cover;
  border-radius:12px;border:1px solid #397f55;
}
body.localized-site .app-detail-redesign .locale-prices .region{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  min-height:42px;padding:9px 10px!important;margin:0!important;
  font-size:13px!important;line-height:1.3;border-bottom:1px solid #214638;
}
body.localized-site .app-detail-redesign .locale-prices .region>*{min-width:0}
body.localized-site .app-detail-redesign .locale-prices .region b,
body.localized-site .app-detail-redesign .locale-prices .region strong{
  font-size:12px!important;white-space:nowrap;
}
body.localized-site .app-detail-redesign .locale-prices .locale-panel-caption{
  margin:0;color:#a1bdb0;font-size:12px;line-height:1.45;
}
body.localized-site .app-detail-redesign .locale-prices .locale-check-footer{
  flex-wrap:wrap;align-items:center;gap:9px;
}
body.localized-site .app-detail-redesign .locale-prices .locale-check-footer p{
  margin:0;font-size:11px;
}
body.localized-site .app-detail-redesign .locale-actions{gap:7px}
body.localized-site .app-detail-redesign .locale-actions>.btn{
  min-height:42px;padding:8px 12px;font-size:12px;
}
body.localized-site .app-detail-redesign .locale-bottom-cta{
  display:flex!important;align-items:center;justify-content:center;
  min-height:45px!important;padding:12px!important;font-size:13px!important;
}
/* The former four-column heading/link collision is now a true section
   with a separate two-column grid for navigation cards. */
body.localized-site article.app-detail-redesign nav.locale-related.locale-related-detail{
  display:block!important;width:100%!important;height:auto!important;min-height:0!important;
  margin:14px 0 22px!important;padding:16px!important;
  border:1px solid #2b6549;border-radius:18px;background:#0a1d17;
}
body.localized-site article.app-detail-redesign nav.locale-related.locale-related-detail>h2{
  display:block!important;width:100%!important;max-width:none!important;
  margin:0 0 13px!important;font-size:19px!important;line-height:1.25!important;
  white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;
}
body.localized-site article.app-detail-redesign .locale-related-actions{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px;width:100%;min-width:0;
}
body.localized-site article.app-detail-redesign .locale-related-actions>a{
  display:flex;align-items:center;min-height:64px;min-width:0;
  padding:10px 12px!important;margin:0!important;
  background:#102b21;border:1px solid #2e704f!important;border-radius:12px;
  color:#d5fae5;font-size:12px!important;font-weight:740;
  text-decoration:none;overflow-wrap:anywhere;line-height:1.4;
}
body.localized-site article.app-detail-redesign .locale-related-actions>a:hover{border-color:#5bf1a2!important}
/* Classic deal detail cards and share tools get the same rules. */
body:has(.deal-page) .deal-page{max-width:900px}
body:has(.deal-page) .deal-hero,
body:has(.deal-page) .deal-section{
  padding:clamp(16px,2.6vw,22px)!important;margin-bottom:14px!important;
  border-radius:20px!important;background:#0b2019!important;
}
body:has(.deal-page) .deal-section h2{font-size:clamp(19px,3vw,24px)!important}
body:has(.deal-page) .deal-related-section .related-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px;
}
body:has(.deal-page) .deal-related-section .related-card{
  min-width:0;overflow-wrap:anywhere;background:#0c241b;border-radius:12px;
}
body:has(.deal-page) .share-actions{gap:8px}
/* Compact accordion footer, like the approved reference, across all pages. */
body footer.site-footer{margin-top:29px;padding-top:19px}
body footer.site-footer .footer-brand img{height:41px;max-width:160px}
body footer.site-footer .foot p{font-size:12px;line-height:1.55}
body footer.site-footer .credit{font-size:11px}
@media(max-width:760px){
  body .w{width:min(650px,calc(100% - 28px))!important;padding:0!important}
  body nav.site-nav{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;align-items:center!important;
    gap:9px!important;padding:10px!important;margin:8px 0 12px!important;
    min-height:0!important;height:auto!important;border-radius:17px!important;
  }
  body nav.site-nav>.brand{grid-column:1!important;grid-row:1!important;min-width:0}
  body nav.site-nav>.brand img{height:34px!important;max-width:156px!important}
  body nav.site-nav>.navright{grid-column:2!important;grid-row:1!important;display:flex!important;align-items:center;gap:6px!important}
  body nav.site-nav>.navright .btn,body nav.site-nav>.navright button{
    width:39px!important;min-width:39px!important;height:39px!important;min-height:39px!important;
    padding:0!important;border-radius:50%!important;font-size:13px;
  }
  body nav.site-nav>.navlinks{
    display:flex!important;grid-column:1/-1!important;grid-row:2!important;
    gap:5px!important;min-width:0!important;width:100%!important;
    padding:3px!important;margin:0!important;
    border:1px solid #285743;border-radius:13px;
    background:#071713;overflow-x:auto!important;overflow-y:hidden!important;
    white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch;
  }
  body nav.site-nav>.navlinks::-webkit-scrollbar{display:none}
  body nav.site-nav>.navlinks>a{
    flex:0 0 auto!important;display:inline-flex!important;
    min-height:37px!important;padding:7px 12px!important;
    border-radius:11px!important;font-size:12px!important;
  }
  body .v3-news-masthead{min-height:154px;padding:17px;margin:12px 0 18px;border-radius:18px}
  body .v3-news-masthead .v3-masthead-art{flex:0 0 74px;width:74px;height:95px;border-radius:17px}
  body .v3-news-masthead .v3-masthead-art::before{font-size:43px}
  body .v3-news-masthead .v3-masthead-text{max-width:calc(100% - 74px)}
  body .v3-news-masthead h2{font-size:23px}
  body .v3-news-masthead p{font-size:12px}
  body.home-redesign header.hero:not(.locale-hero){padding:19px!important}
  body.home-redesign .hero h1{font-size:25px!important}
  body.home-redesign .hero-visual{display:none!important}
  body.home-redesign .deal-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.home-redesign .news-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.localized-site article.app-detail-redesign{margin:12px auto 25px}
  body.localized-site .app-detail-redesign .locale-back{font-size:12px;margin:4px 0 10px}
  body.localized-site .app-detail-redesign .locale-detail-header{padding:14px!important;gap:11px}
  body.localized-site .app-detail-redesign .locale-detail-header .icon{width:60px;height:60px;border-radius:14px}
  body.localized-site .app-detail-redesign .locale-detail-header h1{font-size:22px!important;line-height:1.15}
  body.localized-site .app-detail-redesign .locale-detail-header p{font-size:12px}
  body.localized-site .app-detail-redesign .locale-offer-bar{
    flex-direction:column!important;align-items:stretch!important;gap:12px!important;
    padding:15px!important;
  }
  body.localized-site .app-detail-redesign .locale-offer-bar strong{font-size:20px!important}
  body.localized-site .app-detail-redesign .locale-offer-bar .store{width:100%;min-height:43px!important;font-size:13px}
  body.localized-site .app-detail-redesign .locale-panel{padding:15px!important;margin:12px 0!important}
  body.localized-site .app-detail-redesign .locale-panel h2{font-size:19px!important}
  body.localized-site .app-detail-redesign .locale-gallery img{height:193px;max-height:193px;max-width:68vw}
  body.localized-site .app-detail-redesign .locale-prices .region{padding:8px 5px!important;font-size:12px!important}
  body.localized-site .app-detail-redesign .locale-prices .region b{font-size:11px!important}
  body.localized-site article.app-detail-redesign nav.locale-related.locale-related-detail{padding:14px!important;margin:13px 0 18px!important}
  body.localized-site article.app-detail-redesign nav.locale-related.locale-related-detail>h2{font-size:18px!important}
  body.localized-site article.app-detail-redesign .locale-related-actions>a{min-height:58px;padding:10px!important;font-size:11.5px!important}
  body footer.site-footer{margin-top:23px!important;padding:15px 0 26px!important}
  body footer.site-footer .foot{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;
  }
  body footer.site-footer .foot>div:first-child{padding:0 3px 8px!important}
  body footer.site-footer .foot>div.footer-accordion{
    padding:6px 12px!important;border-radius:13px!important;
    background:#0b1d18!important;border:1px solid #2d6449!important;
  }
  body footer.site-footer .foot>div.footer-accordion>h2{min-height:42px!important;font-size:13px!important}
  body footer.site-footer .foot .footer-accordion-toggle{min-height:42px!important;font-size:13px!important}
  body footer.site-footer .foot .footer-accordion-symbol{
    flex:0 0 27px!important;width:27px!important;height:27px!important;
    border-radius:8px!important;font-size:19px!important;
  }
  body footer.site-footer .foot>div.footer-accordion:not(.is-open)>a{display:none!important}
  body footer.site-footer .foot>div.footer-accordion.is-open>a{display:block!important;font-size:12px}
  body footer.site-footer .credit{margin-top:11px!important;padding-top:11px!important;font-size:10px!important}
  body:has(.deal-page) .deal-related-section .related-grid{grid-template-columns:1fr!important}
  body:has(.deal-page) .sticky-cta{
    width:calc(100% - 24px)!important;max-width:530px!important;min-height:0!important;
    bottom:max(8px,env(safe-area-inset-bottom))!important;padding:6px!important;
    border:1px solid #315c44!important;border-radius:14px!important;
    background:#071812f5!important;
  }
  body:has(.deal-page) .sticky-cta>.sticky-deal-meta{display:none!important}
  body:has(.deal-page) .sticky-cta>.store{
    display:flex!important;align-items:center;justify-content:center;
    width:100%!important;min-height:42px!important;font-size:13px!important;
  }
  body:has(.deal-page) .sticky-cta-spacer{height:69px!important}
}
@media(max-width:365px){
  body.localized-site article.app-detail-redesign .locale-related-actions{grid-template-columns:minmax(0,1fr)!important}
  body .v3-news-masthead .v3-masthead-art{display:none}
  body .v3-news-masthead .v3-masthead-text{max-width:100%}
}
/* Reserve space for the menu button on landscape tablets. */
@media (min-width: 761px) and (max-width: 1440px) and (orientation: landscape) {
  body nav.site-nav {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center;
    grid-template-rows: auto !important;
    height: auto !important;
    overflow: visible;
    gap: 8px;
    box-sizing: border-box;
    max-width: 100%;
  }
  body nav.site-nav > .brand { grid-area: 1 / 1 !important; }
  body nav.site-nav > .navlinks {
    grid-area: 1 / 2 !important;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
  }
  body nav.site-nav > .navlinks { gap: clamp(1px, .35vw, 5px) !important; }
  body nav.site-nav > .navlinks > a {
    flex: none;
    font-size: clamp(11px, 1.08vw, 14px) !important;
    padding-inline: clamp(3px, .5vw, 7px) !important;
    white-space: nowrap;
  }
  body nav.site-nav > .brand img { width: clamp(90px, 11vw, 148px) !important; height: auto !important; }
  body nav.site-nav > .navright {
    position: static !important;
    grid-area: 1 / 3 !important;
    justify-self: end;
    align-self: center;
    display: flex;
    align-items: center;
  }
  body nav.site-nav #hamb {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    display: grid !important;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }
}
