/* Shared phone layout, loaded after each page's styles. */
.nav-toggle,.buylist-label-mobile,.mobile-deck-link,.mobile-deck-promo{display:none}
.shop-title-mobile,.pickup-mobile,.site-header nav .nav-visit{display:none}
@media(max-width:700px){
  :root{scroll-padding-top:16px}
  .announcement{display:none}
  .site-header{display:grid;grid-template-columns:40px minmax(0,1fr) auto 44px;gap:8px;padding:10px 16px;height:auto;min-height:64px}
  .site-header:not(.nav-ready){grid-template-columns:minmax(0,1fr) auto 44px}
  .site-header .nav-toggle:not([hidden]){display:grid;place-items:center;order:0;width:40px;height:44px;padding:0;border:0;background:transparent;color:var(--ink);border-radius:6px}
  .site-header .wordmark{order:1;font-size:1.8rem;min-width:0}
  .site-header .wordmark-star{font-size:1.65rem;margin-left:1px}
  .site-header .wordmark small{display:none}
  .site-header .buylist-link{order:2;grid-column:auto;width:auto;min-height:44px;margin:0;padding:9px 10px;font-size:.8125rem;font-weight:700;border:1px solid var(--line);border-radius:6px;background:transparent}
  .site-header .buylist-link:hover{background:#ededf6}
  .buylist-label-desktop{display:none}.buylist-label-mobile{display:inline}
  .site-header .cart-button{order:3;position:relative;display:grid;place-items:center;margin:0;padding:0;width:44px;height:44px;border:0;border-radius:6px}
  .site-header .cart-button>span:not(#cart-count){display:none}
  .cart-button #cart-count{position:absolute;top:0;right:0;min-width:17px;height:17px;font-size:.625rem;border:2px solid var(--paper)}
  .site-header nav{order:4;grid-column:1/-1;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:0 12px;padding:8px 0 0;margin-top:4px;border-top:1px solid var(--line);overflow:visible;font-size:.875rem}
  .site-header nav a{min-height:44px;display:flex;align-items:center;white-space:normal;padding:8px 0}
  .site-header nav .nav-visit{display:flex}
  .site-header.nav-ready:not(.nav-open) nav{display:none}
  .site-header.nav-open .nav-toggle{background:#ededf6;color:var(--blue-dark)}
  .header-search-wrap{padding:0 16px 12px}
  .mobile-deck-link{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-top:8px;padding:10px 14px;border-radius:6px;background:var(--blue);color:#fff;font-size:1rem;font-weight:700;line-height:1.4}
  .mobile-deck-link:hover,.mobile-deck-link[aria-current="page"]{background:var(--blue-dark)}
  .header-search-wrap:has(+ main > .mobile-deck-promo)>.mobile-deck-link{display:none}
  .mobile-deck-promo{display:block;padding:12px 16px 0}
  .mobile-deck-promo .mobile-deck-link{margin-top:0}
  .mobile-deck-promo p{margin:6px 0 0;text-align:center;font-size:.875rem;line-height:1.5;color:var(--muted)}
  .header-search{height:44px;min-height:44px;border-radius:6px}
  .search-category{flex-basis:124px;border-radius:5px 0 0 5px}
  .search-category select,.search-category-trigger{font-size:16px;padding:10px;gap:6px}
  .search-category-chevron{width:16px;height:16px}
  .search-category-menu{top:calc(100% + 6px);width:224px;border-radius:10px}
  .header-search input{padding:10px 12px;font-size:16px;line-height:1.3}
  .search-submit{width:44px;border-radius:0 5px 5px 0}.search-submit svg{width:21px;height:21px}
  .search-suggestions{top:calc(100% + 5px);max-height:55dvh}
  .search-option{padding:9px 12px;min-height:60px}.search-option-name{font-size:.875rem}
  .hero{grid-template-columns:1fr;min-height:0;background:#eeeefe}
  .hero-copy{padding:16px}
  .hero h1{font-size:1.625rem;line-height:1.12;letter-spacing:-.045em;margin-bottom:8px}
  .hero h1 br{display:none}.hero h1 span{display:block}
  .hero-description{font-size:.875rem;line-height:1.45;margin:0}
  .hero-actions{display:none}
  .hero-art,.ticker{display:none}
  .section{padding:32px 16px}.section-heading{gap:8px;flex-wrap:wrap;margin-bottom:16px}
  .section-heading h2,h2{font-size:1.625rem;line-height:1.15}
  .eyebrow,.section-heading .eyebrow{font-size:.625rem;margin-bottom:8px;letter-spacing:.12em}
  .shop-title-desktop,.pickup-desktop,#shop-eyebrow{display:none}
  .shop-title-mobile,.pickup-mobile{display:inline}
  .shop-section.section{padding-top:22px}
  .shop-section>.section-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;margin-bottom:12px}
  .shop-section>.section-heading>div{display:contents}
  #shop-title{grid-column:1;grid-row:1;font-size:1.375rem}
  .shop-pickup-note{grid-column:1/-1;grid-row:2;font-size:.875rem;line-height:1.5;margin:0}
  #catalog-count{grid-column:2;grid-row:1;font-size:.875rem;white-space:nowrap}
  #manage-singles{grid-column:1/-1;grid-row:3;justify-self:start}
  .catalog-toolbar{padding-bottom:0;margin-bottom:16px;gap:8px}
  .filter-group{gap:24px;flex-wrap:nowrap}
  .filter{min-height:44px;padding:10px 0;font-size:.875rem;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted)}
  .filter.active{background:transparent;color:var(--ink);border-color:var(--blue);font-weight:800}
  .filter:hover:not(.active){border-color:var(--line);color:var(--ink)}
  .catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px;overflow:visible}
  .catalog.catalog-rail{grid-auto-columns:min(72%,260px);gap:12px;min-width:0;max-width:100%;overflow-x:auto}
  .catalog-actions{gap:12px;margin-top:16px}
  .catalog-actions .button{font-size:.875rem}
  .catalog-page .section-heading h1{font-size:1.625rem}
  .catalog-back{margin-bottom:14px;font-size:.875rem}
  .catalog .product-image{padding:12px;border-radius:7px;aspect-ratio:4/5}
  .catalog .product-image img{min-height:0;max-height:100%}
  .product-card .product-category{font-size:.625rem;line-height:1.35;margin:10px 0 5px;letter-spacing:.025em}
  .product-name{font-size:.875rem;line-height:1.4;overflow-wrap:anywhere}
  .product-bottom{gap:5px;padding-top:6px}.price{font-size:1rem}
  .product-add{width:44px;height:44px;flex-shrink:0;font-size:1.25rem;border-color:transparent;background:transparent}
  .availability{left:6px;top:6px;font-size:.625rem;padding:4px 6px}
  .catalog-message{padding:24px 16px}.catalog-message h3{font-size:1.125rem}.catalog-message p{font-size:.875rem}
  .search-summary p,.pokemon-notice{font-size:.875rem;line-height:1.5}.pokemon-notice{padding:12px;margin:0 0 16px}
  .calendar-heading-actions{gap:8px}.calendar-timezone{font-size:.75rem}.calendar-board{padding:14px 8px;border-radius:8px}
  .calendar-toolbar{margin-bottom:14px;gap:8px}.calendar-toolbar h3{font-size:1rem}.calendar-controls{gap:4px}
  .calendar-controls button{padding:8px;min-width:44px;min-height:44px;font-size:.8125rem}
  .calendar-table td{height:52px;padding:4px 0;font-size:.875rem}.calendar-table th{font-size:.6875rem;padding-bottom:10px}
  .calendar-table time{width:28px;height:28px}.calendar-event-marker{gap:1.5px;padding-top:3px}.calendar-game-badge{width:12px;height:12px;flex-basis:12px}.calendar-game-badge img{padding:1px}.calendar-game-store img,.calendar-game-open-play img{padding:0}
  .calendar-game-mtg img{width:10px;height:10px}.calendar-game-flesh-and-blood{width:22px;flex-basis:22px}.calendar-game-flesh-and-blood img{height:10px}
  .calendar-agenda{padding:20px;border-radius:8px}.calendar-agenda p,.calendar-event p{font-size:.875rem;line-height:1.55}
  .community{gap:22px}.community h2{margin-bottom:14px}.community p:not(.eyebrow){font-size:.9375rem;line-height:1.6;margin-bottom:18px}
  .discord-cta{min-height:52px;font-family:'DM Sans',Arial,sans-serif;font-size:1rem;font-weight:800;padding:10px 16px;box-shadow:3px 3px 0 var(--ink)}
  .discord-cta span[aria-hidden]{width:30px;height:30px;flex-basis:30px;font-size:1.25rem}
  .visit{gap:20px}.visit address{font-size:.9375rem;line-height:1.6;margin-bottom:18px}

  .cart-dialog{width:min(420px,100vw);padding:20px 16px}.dialog-header{padding-bottom:12px}.dialog-header h2{font-size:1.375rem}
  .cart-line{padding:16px 0;gap:12px}.quantity button{width:44px;height:44px}.remove-line{min-height:44px;padding:8px}
  .cart-empty{padding:36px 0}.button{min-height:44px;padding:12px 16px;font-size:.875rem}.summary-note{font-size:.8125rem}

  /* Keep identity and both offers together in one compact card. */
  .buylist-page{padding:24px 16px 36px}
  .buylist-intro .eyebrow{font-size:.625rem;margin-bottom:8px}
  .buylist-heading h1{font-size:1.875rem;line-height:1.12}
  .buylist-description{font-size:.9375rem;line-height:1.5;margin:12px 0 4px}
  .buylist-heading>.text-link{font-size:.8125rem;display:inline-flex;align-items:center;min-height:44px;margin:0 0 6px}
  .buylist-terms{gap:6px 12px;font-size:.75rem;line-height:1.5;padding-bottom:14px}
  .buylist-update{font-size:.75rem;padding:14px 0;gap:3px}
  .buylist-table tr{padding:12px;margin-bottom:8px;gap:8px 12px;border-radius:7px}
  .buylist-table td:first-child{padding:0;border:0}
  .buylist-card{gap:10px;align-items:center}.buylist-card img{width:38px;height:53px}
  .buylist-card h2{font-size:.875rem;line-height:1.35;margin:0 0 3px}
  .buylist-card p{font-size:.6875rem;line-height:1.45;display:inline}
  .buylist-card p+p:before{content:' · '}
  .buylist-table td:not(:first-child){display:flex;justify-content:space-between;align-items:baseline;gap:4px;padding-top:8px;border-top:1px solid var(--line)}
  .buylist-price-label{font-size:.6875rem;margin:0}.buylist-offer{font-size:1rem}.buylist-unavailable{font-size:.75rem}
  .buylist-note{margin-top:24px;padding-left:14px}.buylist-note h2{font-size:1.125rem}
  .buylist-note p{font-size:.875rem;line-height:1.6;margin:10px 0}.buylist-note .text-link{font-size:.8125rem;min-height:44px;display:inline-flex;align-items:center}
  .buylist-error{padding:20px;font-size:.875rem}

  .single-page{padding:20px 16px 36px}.card-breadcrumbs{font-size:.75rem;margin-bottom:16px}
  .single-heading{padding-bottom:18px}.single-heading h1{font-size:1.625rem;line-height:1.2;margin-bottom:8px}
  .single-game{font-size:.75rem;margin-bottom:6px}.single-edition{font-size:.875rem;line-height:1.45}
  .single-seller-label{font-size:.75rem;padding:6px 10px;margin-top:10px}
  .single-layout{gap:20px}.single-image-button{min-height:0;padding:14px;border-radius:8px}
  .single-image-button img{height:220px;max-height:220px;width:auto;max-width:100%}
  .single-image-hint,.single-source{font-size:.75rem}.single-image-hint{margin:8px 0 4px}
  .single-purchase{padding:18px;border-radius:8px}.single-purchase h2{font-size:1.25rem;margin-bottom:16px}
  .single-option{margin-bottom:14px}.single-selection{margin-top:16px}.single-price-row>strong{font-size:1.875rem}
  .single-details h2{font-size:1.125rem;margin-bottom:12px}.single-details dl>div{font-size:.875rem;padding:10px 0;gap:12px}
  .single-rules p{font-size:.9375rem;line-height:1.6}.single-availability{margin-bottom:16px}.single-checkout-note{font-size:.8125rem}
  .single-quantity-control button{width:44px}.single-add-button{min-height:48px;font-size:.9375rem}

  .deck-page{padding:22px 16px 30px}.deck-heading{gap:14px;margin-bottom:20px;align-items:flex-start;flex-direction:column}
  .deck-heading h1{font-size:1.875rem}.deck-heading .eyebrow{font-size:.625rem}
  .deck-heading>p{max-width:none;font-size:.875rem;line-height:1.5}.deck-import summary{padding:12px;gap:8px;min-height:52px}
  .deck-import-copy{padding:16px;gap:12px}.deck-import-copy h2{font-size:1.375rem}.deck-import-copy>p:not(.eyebrow){font-size:.875rem;line-height:1.5;margin:12px 0}
  .deck-input-body{padding:16px;gap:12px}.deck-input-body textarea{font-size:16px;padding:12px;min-height:160px;line-height:1.6}
  .deck-import-copy .deck-help{font-size:.75rem!important}.deck-before{padding:18px 0}.deck-before small{font-size:.75rem}
  .deck-results-panel{margin-top:24px}.deck-art{padding:12px 8px;min-height:0}.deck-art img{height:156px;width:auto;max-width:100%;object-fit:contain}
  .deck-card-grid{gap:12px}.deck-summary{padding:12px 16px max(12px,env(safe-area-inset-bottom))}
}
@media(max-width:359px){
  .site-header{padding-left:12px;padding-right:12px;gap:4px;grid-template-columns:36px minmax(0,1fr) auto 40px}
  .site-header .wordmark{font-size:1.6rem}.site-header .wordmark-star{font-size:1.5rem}
  .site-header .buylist-link{padding:9px 8px}.buylist-price-label{font-size:.625rem}
  .buylist-offer{font-size:.9375rem}.buylist-terms{gap:5px 9px}
}
