/* V30 — phone resource directory, designed as a finder rather than a shrunken storefront.
   This sheet is intentionally scoped to the site's width so the phone preview and a
   real phone receive the same layout. Full-size source covers are never cropped. */
.resource-mobile-help,.resource-mobile-utilities,.resource-mobile-series-hint,
.resource-category-title-mobile,.resource-category-provider-mobile{display:none}

@container site (max-width:720px){
  .resource-v26{background:#f7f8fa}
  .resource-v26 .resource-page-head{padding:20px 0 8px}
  .resource-v26 .resource-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .resource-v26 .resource-title-row>div:first-child{min-width:0}
  .resource-v26 .resource-title-row h1{font-size:29px;line-height:1.15;letter-spacing:-.035em;margin:0}
  .resource-v26 .resource-title-row>div:first-child>p,
  .resource-v26 .resource-utility-links{display:none}
  .resource-v26 .resource-mobile-help{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #dce2ed;border-radius:50%;background:#fff;color:#3b55ae}
  .resource-mobile-help svg{width:22px;height:22px}

  /* All three ways to browse remain visible, in one compact sticky strip. */
  .resource-v26 .resource-category-nav{padding:8px 0;background:#f7f8faf5;border-bottom:1px solid #dfe4ec;box-shadow:0 5px 14px #273c6807}
  .resource-v26 .download-tabs,
  html[lang="en"] .resource-v26 .download-tabs{grid-template-columns:minmax(max-content,1.4fr) minmax(0,1fr) minmax(0,1fr);gap:4px;padding:4px;border:0;border-radius:12px;background:#e9edf5;box-shadow:none}
  .resource-v26 .download-tab,
  html[lang="en"] .resource-v26 .download-tab{flex-direction:row;min-height:44px;padding:8px 7px;gap:0;border:0;border-radius:8px;background:transparent;font-size:16px;line-height:1.2;white-space:nowrap;text-wrap:nowrap;color:#5b6477;box-shadow:none}
  .resource-v26 .download-tab.active{background:#fff;color:#2d49a6;box-shadow:0 1px 5px #253a6315}
  .resource-v26 .download-tab>.resource-tab-icon{display:none}
  .resource-v26 .download-tab>span{white-space:nowrap}
  .resource-v26 .download-tab .resource-tab-label-long,
  html[lang="en"] .resource-v26 .resource-tab-label-long{display:inline}
  .resource-v26 .download-tab .resource-tab-label-short,
  html[lang="en"] .resource-v26 .resource-tab-label-short{display:none}

  /* Find first, download the whole category second. Reading order stays the same
     when the suggested V30 markup is used; no duplicated inputs or controls. */
  .resource-v26 .resource-controls{padding:16px 0 18px}
  .resource-v26 .resource-controls>.container{display:flex;flex-direction:column;gap:12px}
  .resource-v26 .resource-search-bar{order:0;display:grid;gap:10px;margin:0}
  .resource-v26 .resource-search-bar .search-field{border:1px solid #d9dfe9;border-radius:12px;min-height:50px;padding:12px 14px 12px 43px;font-size:16px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23677386' stroke-width='1.8'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E");background-position:14px center;background-repeat:no-repeat}
  .resource-v26 .resource-search-bar select{border:1px solid #d9dfe9;border-radius:12px;min-height:48px;background-color:#fff;padding:11px 14px;font-size:16px}
  .resource-v26 .resource-category-download{order:1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 13px;margin:0;border:1px solid #dfe5ee;border-radius:12px;background:#edf1fa}
  .resource-v26 .resource-category-download>div:first-child{min-width:0}
  .resource-v26 .resource-category-download h2{font-size:16px;line-height:1.35;font-weight:650;margin:0}
  .resource-v26 .resource-category-download p{font-size:16px;line-height:1.35;margin-top:4px;color:#657083}
  .resource-v26 .resource-category-download>.btn{width:auto;min-width:98px;min-height:46px;padding:10px 11px;font-size:16px;line-height:1.25;border-radius:9px;white-space:nowrap}
  .resource-v26 .resource-category-download>.note{grid-column:1/-1}
  .resource-v26 .resource-category-title-full,
  .resource-v26 .resource-category-provider-full{display:none}
  .resource-v26 .resource-category-title-mobile,
  .resource-v26 .resource-category-provider-mobile{display:inline}
  .resource-v26 .resource-owner-hint{order:2;display:none}
  .resource-v26 .resource-results-heading{margin:0 0 12px;align-items:baseline;gap:10px}
  .resource-v26 .resource-results-heading h2{font-size:20px;line-height:1.3;letter-spacing:-.02em}
  .resource-v26 .resource-results-heading>span{font-size:16px;line-height:1.4;white-space:nowrap;color:#6c7685}

  /* Each result is one generous tap target: full cover, name, immediate use. */
  .resource-v26 .resource-game-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  .resource-v26 .resource-game-card{border:1px solid #dfe4eb;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 2px 6px #263a5703}
  .resource-v26 .resource-game-card>a{display:grid;grid-template-columns:116px minmax(0,1fr);align-items:center;gap:13px;min-height:116px;height:auto;padding:12px}
  .resource-v26 .resource-game-cover{display:block;position:relative;width:100%;height:auto;min-height:0;aspect-ratio:16/9;border:1px solid #e5e8ed;border-radius:8px;background:#f0f2f4;overflow:hidden}
  .resource-v26 .resource-game-cover>img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;min-height:0;aspect-ratio:auto;object-fit:contain;object-position:center}
  .resource-v26 .resource-game-copy{display:grid;grid-template-columns:minmax(0,1fr) 14px;align-items:start;align-content:center;gap:7px 6px;min-width:0;padding:0}
  .resource-v26 .resource-game-copy>.resource-category,
  .resource-v26 .resource-game-copy>.resource-card-bottom{display:none}
  .resource-v26 .resource-game-copy>h3{grid-column:1;min-width:0;font-size:17px;line-height:1.3;letter-spacing:-.015em;margin:0;font-weight:650;word-break:normal;overflow-wrap:break-word}
  .resource-v26 .resource-mobile-arrow{display:block;grid-column:2;grid-row:1;font-size:19px;line-height:1.2;color:#5470bd}
  .resource-v26 .resource-game-copy>p{display:-webkit-box;grid-column:1/-1;margin:0;min-width:0;font-size:16px;line-height:1.35;color:#6b7482;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .resource-v26 .resource-title-full{display:none}
  .resource-v26 .resource-title-mobile{display:inline}

  /* A series is identified by a single full character image, not the desktop collage. */
  .resource-v26 .resource-series-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  .resource-v26 .resource-series-card{display:grid;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:16px;padding:12px;border:1px solid #dfe4eb;border-radius:14px;background:#fff}
  .resource-v26 .resource-series-card .resource-series-composition{width:74px;height:96px;min-height:0;aspect-ratio:auto;padding:5px;border:1px solid #e7eaf0;border-radius:8px;background:#f4f5f7;overflow:hidden}
  .resource-v26 .resource-series-card .resource-series-composition>img:first-child{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;transform:none;border-radius:3px;box-shadow:none}
  .resource-v26 .resource-series-card>div:last-child{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0;min-width:0}
  .resource-v26 .resource-series-copy{min-width:0}
  .resource-v26 .resource-series-card h3{font-size:18px;line-height:1.3;letter-spacing:-.015em;margin:0}
  .resource-v26 .resource-mobile-series-hint{display:block;margin:7px 0 0;font-size:16px;line-height:1.4;color:#6b7482}
  .resource-v26 .resource-series-card>div:last-child>span{flex-shrink:0;font-size:21px;color:#5470bd}
  .resource-v26 .resource-results-section{padding-bottom:28px}
  .resource-mobile-utilities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:26px;padding-top:20px;border-top:1px solid #dfe4eb}
  .resource-mobile-utilities>a:first-child{grid-column:1/-1}
  .resource-mobile-utilities a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:12px;border:1px solid #dce2ec;border-radius:10px;background:#fff;font-size:16px;line-height:1.35;color:#3d56a5}

  /* A game guide starts as a compact identity and pack action. The character
     images below carry the detail, instead of a second full-width hero. */
  .resource-detail.resource-amiibo-v28{padding-top:12px}
  .resource-amiibo-v28 .breadcrumb{font-size:0;line-height:1;margin:0 0 14px}
  .resource-amiibo-v28 .breadcrumb>a{font-size:16px;line-height:1.4;gap:8px;min-height:44px}
  .resource-amiibo-v28 .breadcrumb>a::before{content:'←';font-size:18px}
  .resource-amiibo-v28 .breadcrumb>span{display:none}
  .resource-detail.resource-amiibo-v28 .resource-game-hero{display:grid;grid-template-columns:116px minmax(0,1fr);align-items:center;gap:14px;margin-bottom:20px}
  .resource-detail.resource-amiibo-v28 .resource-game-hero-art{width:100%;height:auto;min-height:0;aspect-ratio:16/9;border:1px solid #e0e5ec;border-radius:9px;background:#f0f2f4}
  .resource-detail.resource-amiibo-v28 .resource-game-hero-art>img{width:100%;height:100%;object-fit:contain;object-position:center}
  .resource-detail.resource-amiibo-v28 .resource-game-hero .eyebrow,
  .resource-detail.resource-amiibo-v28 .resource-game-hero p{display:none}
  .resource-detail.resource-amiibo-v28 .resource-game-hero h1{font-size:23px;line-height:1.2;letter-spacing:-.025em;overflow-wrap:break-word;margin:0 0 6px}
  .resource-detail.resource-amiibo-v28 .resource-game-hero .resource-platform{display:block;font-size:16px;line-height:1.4;margin:0;color:#6c7685}
  .resource-amiibo-v28 .resource-bundle-strip{padding:15px;gap:12px;margin-bottom:24px;border:1px solid #dce4f0;background:#f0f3fa;border-radius:14px}
  .resource-amiibo-v28 .resource-bundle-strip .eyebrow{display:none}
  .resource-amiibo-v28 .resource-bundle-strip h2{font-size:20px;line-height:1.3;margin:0}
  .resource-amiibo-v28 .resource-bundle-strip>div:first-child>p{font-size:16px;line-height:1.45;margin-top:6px}
  .resource-amiibo-v28 .resource-bundle-strip>div:nth-child(2){display:flex;flex-direction:column;align-items:stretch;gap:4px}
  .resource-amiibo-v28 .resource-bundle-strip>div:nth-child(2)>.btn.secondary{min-height:44px;padding:8px 0;border:0;border-radius:0;background:transparent;color:#4860ac;box-shadow:none}
  .resource-amiibo-v28 .resource-related-bundles{gap:4px 12px;padding-top:12px}
  .resource-amiibo-v28 .resource-related-bundles>span{flex-basis:100%;font-size:16px;line-height:1.4}
  .resource-amiibo-v28 .resource-related-bundles>a{min-height:44px;padding-block:8px;font-size:16px;line-height:1.4}
  .resource-amiibo-v28 .resource-related-bundles>p{margin-top:4px;font-size:16px;line-height:1.5}
  .resource-amiibo-v28 .resource-amiibo-tools{gap:13px;margin-bottom:14px}
  .resource-amiibo-v28 .resource-amiibo-tools h2{font-size:24px;line-height:1.25}
  .resource-amiibo-v28 .resource-amiibo-tools p{font-size:16px;line-height:1.45!important;margin-top:6px}
  .resource-amiibo-v28 .resource-amiibo-search{min-height:50px;background:#fff}
  .resource-amiibo-v28 .resource-amiibo-filters{gap:12px;margin-bottom:16px}
  .resource-amiibo-v28 .resource-amiibo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .resource-amiibo-v28 .resource-amiibo-portrait{background:#f3f5f8}
  .resource-amiibo-v28 .resource-amiibo-card-foot{padding:12px 10px;align-items:center}
  .resource-amiibo-v28 .resource-amiibo-name{font-size:16px;line-height:1.4;overflow-wrap:break-word}
  .resource-detail.resource-series-detail .resource-detail-head{gap:18px;padding-bottom:24px}
  .resource-detail.resource-series-detail .resource-series-intro{grid-template-columns:74px minmax(0,1fr);gap:16px}
  .resource-detail.resource-series-detail .resource-series-intro .resource-series-art{height:96px;padding:5px;overflow:hidden;background:#f3f5f8;border:1px solid #e2e7ee;border-radius:9px}
  .resource-detail.resource-series-detail .resource-series-intro .resource-series-art>img:first-child{width:100%;height:100%;max-height:100%;object-fit:contain}
  .resource-detail.resource-series-detail .resource-series-intro .eyebrow,
  .resource-detail.resource-series-detail .resource-series-intro p{display:none}
  .resource-detail.resource-series-detail .resource-series-intro h1{font-size:25px;line-height:1.2}
  .resource-detail.resource-series-detail .resource-package{padding:15px;background:#f0f3fa;border-radius:14px}
  .resource-detail.resource-series-detail .resource-package>.eyebrow{display:none}
  .resource-detail.resource-series-detail .resource-package h2{font-size:20px;line-height:1.3;margin:0 0 6px}
  .resource-detail.resource-series-detail .resource-package>p{margin-bottom:14px;font-size:16px;line-height:1.45}
  .resource-detail.resource-series-detail .resource-package dl{gap:12px;margin-bottom:14px}
  .resource-detail.resource-series-detail .resource-package dt,
  .resource-detail.resource-series-detail .resource-package dd{font-size:16px;line-height:1.4}
}

@container site (max-width:350px){
  .resource-v26 .resource-title-row h1{font-size:27px}
  .resource-v26 .download-tab,
  html[lang="en"] .resource-v26 .download-tab{padding-inline:4px}
  .resource-v26 .resource-game-card>a{grid-template-columns:98px minmax(0,1fr);gap:11px;padding:11px}
  .resource-v26 .resource-game-copy{grid-template-columns:minmax(0,1fr) 12px;gap:6px 4px}
  .resource-v26 .resource-game-copy>h3{font-size:16px}
  .resource-v26 .resource-category-download{padding:11px;gap:8px}
  .resource-v26 .resource-category-download>.btn{min-width:92px;padding-inline:8px}
  .resource-v26 .resource-series-card{gap:13px}
  .resource-detail.resource-amiibo-v28 .resource-game-hero{grid-template-columns:98px minmax(0,1fr);gap:12px}
  .resource-detail.resource-amiibo-v28 .resource-game-hero h1{font-size:21px}
}
