/* Decorative artwork is separate from product media and commerce. */
.visual-scene{position:relative;overflow:hidden;background:#211e2a;isolation:isolate}
.scene-layers,.scene-layer{position:absolute;inset:0}
.scene-layer{opacity:0;transition:opacity 700ms ease;pointer-events:none}
.scene-layer.is-active{opacity:1}
.scene-layer img{width:100%;height:100%;object-fit:cover}
.scene-controls{position:absolute;bottom:18px;right:18px;left:18px;display:flex;align-items:center;justify-content:space-between;gap:14px;z-index:2;pointer-events:none}
.scene-dots,.scene-buttons{display:flex;align-items:center;pointer-events:auto;border:1px solid #e6d9ff30;background:#17141ee8;border-radius:8px;padding:3px;backdrop-filter:blur(12px)}
.scene-buttons{gap:2px}
.scene-controls button{display:flex;align-items:center;justify-content:center;border:0;padding:0;background:transparent;color:#ede6f8;border-radius:5px;width:38px;height:38px;flex-shrink:0}
.scene-controls button:hover{background:#d1b8fd24}
.scene-controls button:focus-visible{outline:2px solid #dcc9ff;outline-offset:2px}
.scene-controls button:disabled{opacity:.45;cursor:default}
.scene-controls .icon{width:18px;height:18px}
.scene-controls .scene-dot{width:28px}
.scene-dot>span{display:block;width:6px;height:6px;border-radius:50%;background:#bcb4c7;transition:width .2s}
.scene-dot[aria-pressed=true]>span{width:16px;border-radius:4px;background:#c9afff}
.scene-buttons [data-motion-toggle][aria-pressed=true]{background:#bba1f020}
.motion-preference{border:1px solid var(--cl-border);background:transparent;color:var(--cl-text-muted);padding:9px 12px;border-radius:7px;font-size:12px;min-height:40px}
.motion-preference:hover{color:var(--cl-accent);background:var(--cl-surface)}
.footer-preferences{display:flex;align-items:center;gap:12px;flex-wrap:wrap}

/* Keep the homepage a store, not a gallery of invented topics. */
.cinema-hero{padding-top:26px}
.cinema-frame{position:relative;overflow:hidden;border:1px solid var(--cl-border);border-radius:14px;background:#1d1b26;min-height:514px}
.cinema-media{position:absolute;inset:0}
.cinema-media .scene-layer img{width:84%;margin-left:auto;object-position:60% 50%}
.cinema-media .scene-layers:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#1d1b26 0%,#1d1b26f5 26%,#1d1b26a8 46%,#1d1b2630 62%,#1d1b2600 80%),linear-gradient(0deg,#1d1b26bb,transparent 28%);pointer-events:none}
.cinema-media .scene-controls{left:auto;gap:20px}
.cinema-copy{position:relative;z-index:1;padding:65px 48px 60px;max-width:575px;pointer-events:none}
.cinema-copy a{pointer-events:auto}
.cinema-copy h1{font-size:clamp(52px,5.6vw,80px);line-height:1.03;letter-spacing:-.055em;color:#f0edf7;font-weight:650}
.cinema-copy h1>span{color:#c6b0f3;white-space:nowrap}
.cinema-copy>p{color:#c8c0d5;font-size:15px;line-height:1.8;max-width:330px;margin:24px 0 0}
.cinema-copy .hero-actions{margin-top:29px;gap:12px;flex-direction:row;align-items:center;flex-wrap:wrap}
.cinema-copy .btn-dark{background:#baa3ed;color:#241b35;border-color:#baa3ed}
.cinema-copy .btn-dark:hover{background:#d0bafc;color:#241b35;border-color:#d0bafc}
.cinema-copy .btn-secondary{background:#2e273ae6;color:#ece5f8;border-color:#63556b88}
.cinema-copy .btn-secondary:hover{background:#42344d}
.cinema-benefits{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:30px;color:#c3b8d2;font-size:11px}
.cinema-benefits>span{display:inline-flex;align-items:center;gap:5px}
.cinema-benefits .icon{width:14px;height:14px;color:#c6b0f3}
.game-shortcuts{display:flex;align-items:center;gap:26px;padding:18px 0;border-bottom:1px solid var(--cl-border)}
.game-shortcuts>span{color:var(--cl-text-muted);font-size:12px}
.game-shortcuts a{color:var(--cl-text-muted);display:inline-flex;align-items:center;gap:12px;font-size:12px;padding:8px 10px;border-radius:6px}
.game-shortcuts a:hover{background:var(--cl-accent-dim);color:var(--cl-accent)}
.game-shortcuts .icon{width:15px;height:15px}
.collection-section{padding:55px 0 60px}
.shopping-guide{display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border:1px solid var(--cl-border);border-radius:14px;background:var(--cl-surface)}
.guide-art{min-height:408px}
.guide-art .scene-layer img{object-position:46% 50%}
.guide-art .scene-layers:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#17141e90,transparent 30%);pointer-events:none}
.guide-copy{padding:40px 44px}
.guide-copy h2{font-size:30px;margin-bottom:30px}
.guide-copy .experience-steps{gap:22px}
.guide-copy .text-link{margin-top:27px;font-size:12px;display:inline-flex;gap:12px;align-items:center}
.guide-copy .text-link .icon{width:16px;height:16px}
.support-banner{margin-top:38px;margin-bottom:64px;border:1px solid var(--cl-border);border-radius:14px;overflow:hidden;display:grid;grid-template-columns:1.6fr 1fr;background:var(--cl-surface)}
.support-banner-copy{padding:32px;display:flex;align-items:center;flex-wrap:wrap;gap:20px}
.support-banner-copy h2{font-size:26px}
.support-banner-copy p{font-size:13px;margin-top:7px}
.support-banner-copy>.btn{margin-left:auto}
.support-banner .support-symbol{width:48px;height:48px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:var(--cl-accent-dim);color:var(--cl-accent);flex-shrink:0}
.support-banner-art{position:relative;min-height:172px;background:#211e2a;overflow:hidden}
.support-banner-art img{width:100%;height:100%;position:absolute;object-fit:cover;object-position:50% 48%}

/* A low-contrast accent in the existing assurance band, never a second gallery. */
.product-assurance{position:relative;overflow:hidden;isolation:isolate}
.product-assurance>div:not(.product-assurance-art){position:relative;z-index:1}
.product-assurance>.product-assurance-art{position:absolute;inset:0;z-index:-1;opacity:.10;pointer-events:none;padding:0}
.product-assurance-art img{width:100%;height:100%;object-fit:cover;object-position:center 48%}

/* Account illustration and account text have separate layout regions. */
.auth-layout{align-items:center;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:70px;padding-block:48px 64px;min-height:0}
.account-art{width:min(100%,488px);height:auto;aspect-ratio:4/5;margin-inline:auto;overflow:hidden;border:1px solid var(--cl-border);border-radius:14px;background:#211e2a}
.account-art img{width:100%;height:100%;object-fit:cover;object-position:center}
.account-art-square{aspect-ratio:1;max-width:580px;width:100%}
.auth-main{min-width:0}
.auth-card{max-width:440px}
.help-hero-art{display:grid;grid-template-columns:1.3fr 1fr;gap:60px;align-items:center;text-align:left;margin-bottom:45px;padding-top:40px;padding-bottom:0}
.help-hero-copy{min-width:0}
.help-hero-art .help-search{margin-left:0;margin-right:0;width:100%}
.help-hero-art .help-hero-copy>p{margin-inline:0}
.help-hero-image{height:285px;overflow:hidden;border:1px solid var(--cl-border);border-radius:14px;background:#211e2a}
.help-hero-image img{width:100%;height:100%;object-fit:cover;object-position:50% 40%}

@media(max-width:1100px){
 .cinema-copy{padding:53px 35px;max-width:500px}
 .cinema-copy h1{font-size:65px}
 .cinema-frame{min-height:490px}
 .cinema-copy>p{max-width:310px}
 .cinema-media .scene-controls{gap:10px}
 .guide-copy{padding:32px 30px}
 .support-banner{grid-template-columns:1.5fr 1fr}
 .support-banner-copy{gap:15px;padding:28px}
 .support-banner-copy>.btn{margin-left:0}
 .support-banner .support-symbol{display:none}
 .auth-layout{gap:40px}
 .account-art{max-height:580px}
}
@media(min-width:701px) and (max-width:900px){
 .cinema-frame{min-height:520px}
 .cinema-copy{padding:45px 30px 40px;max-width:420px}
 .cinema-copy h1{font-size:60px}
 .cinema-copy .hero-actions{gap:10px}
 .cinema-copy .btn-lg{font-size:12px;padding:13px 15px}
 .cinema-media .scene-layer img{width:100%;object-position:66% 50%}
 .cinema-media .scene-layers:after{background:linear-gradient(90deg,#1d1b26ed,#1d1b26b8 37%,#1d1b2630 75%),linear-gradient(0deg,#1d1b26aa,transparent 45%)}
 .shopping-guide{grid-template-columns:1fr 1.2fr}
 .guide-copy{padding:29px 24px}
 .guide-copy h2{font-size:27px}
 .guide-art .scene-dots{display:none}
 .guide-art .scene-controls{justify-content:flex-end}
 .account-art{max-height:500px}
 .auth-layout{gap:22px}
 .auth-card{padding:28px}
 .help-hero-art{gap:28px;grid-template-columns:1.3fr 1fr}
}
@media(max-width:700px){
 .cinema-hero{padding-top:20px}
 .cinema-frame{display:flex;flex-direction:column;min-height:0}
 .cinema-copy{order:0;padding:30px 26px 22px;max-width:none;background:#1d1b26;pointer-events:auto}
 .cinema-copy h1{font-size:clamp(46px,13.5vw,70px)}
 .cinema-copy>p{font-size:13px;line-height:1.8;max-width:380px;margin-top:19px}
 .cinema-copy .hero-actions{gap:10px;flex-wrap:nowrap;margin-top:22px}
 .cinema-copy .btn-lg{font-size:12px;min-height:45px;padding:11px 14px}
 .cinema-copy .btn .icon{width:16px;height:16px}
 .cinema-benefits{font-size:10px;gap:13px;margin-top:22px;line-height:1.5}
 .cinema-media{position:relative;order:1;height:244px;flex:none}
 .cinema-media .scene-layer img{width:100%;margin:0;object-position:center}
 .cinema-media .scene-layers:after{background:linear-gradient(0deg,#1d1b2680,transparent 45%),linear-gradient(180deg,#1d1b2640,transparent 20%)}
 .cinema-media .scene-controls{left:12px;right:12px;bottom:12px;gap:8px}
 .scene-controls button{height:36px;width:36px}
 .scene-controls .scene-dot{width:24px}
 .scene-controls .scene-dots{padding:3px 5px}
 .scene-dots,.scene-buttons{backdrop-filter:none}
 .game-shortcuts{gap:6px;justify-content:space-between;padding:12px 0}
 .game-shortcuts>span{display:none}
 .game-shortcuts a{font-size:11px;padding:8px 5px;gap:6px}
 .game-shortcuts .icon{width:12px;height:12px}
 .collection-section{padding:36px 0}
 .shopping-guide{display:flex;flex-direction:column}
 .guide-art{min-height:0;height:220px;order:0}
 .guide-copy{padding:27px 25px 30px;order:1}
 .guide-copy h2{font-size:28px;margin-bottom:25px}
 .guide-copy .experience-steps{gap:22px}
 .guide-copy .experience-steps article{gap:14px}
 .guide-copy .experience-steps h3{font-size:15px}
 .guide-copy .experience-steps p{font-size:12px}
 .support-banner{margin-top:26px;margin-bottom:36px;grid-template-columns:1fr}
 .support-banner-copy{padding:26px;gap:18px}
 .support-banner-copy h2{font-size:25px}
 .support-banner-copy p{font-size:12px}
 .support-banner-copy>.btn{width:100%;min-height:44px}
 .support-banner-art{min-height:145px}
 .support-banner-art img{object-position:50% 56%}
 .auth-layout{display:flex;flex-direction:column;padding-block:28px 38px;gap:28px}
 .auth-main{order:0;width:100%}
 .auth-card{max-width:none}
 .account-art{order:1;height:260px;width:100%;aspect-ratio:auto}
 .account-art img{object-position:50% 72%}
 .help-hero-art{display:flex;flex-direction:column;gap:25px;align-items:stretch;padding-top:28px;margin-bottom:30px}
 .help-hero-copy h1{font-size:38px}
 .help-hero-image{height:170px}
 .help-hero-image img{object-position:50% 39%}
 .footer-bottom{gap:18px;align-items:flex-start;flex-direction:column}
 .footer-preferences{justify-content:space-between;width:100%;gap:10px}
 .motion-preference{font-size:11px}
}
@media(max-width:380px){
 .cinema-copy{padding:26px 21px 22px}
 .cinema-copy h1{font-size:46px}
 .cinema-copy .hero-actions{flex-wrap:wrap}
 .cinema-copy .btn-lg{padding:11px 12px;font-size:11px}
 .cinema-benefits{gap:9px;font-size:9px}
 .cinema-benefits .icon{width:12px;height:12px}
 .cinema-media{height:213px}
 .scene-controls .scene-dot{width:19px}
 .scene-controls button{width:33px;height:34px}
 .cinema-media .scene-controls{left:10px;right:10px}
}
@media(prefers-reduced-motion:reduce){.scene-layer,.scene-dot>span{transition:none!important}}
@media(max-width:380px){.scene-controls .scene-dot{width:24px}.scene-controls .scene-dots{padding-inline:1px}.cinema-media .scene-controls{gap:4px}}

/* Full-size controls without crowding a 320px screen. */
.scene-controls button,.scene-controls .scene-dot{width:44px;height:44px}
.scene-select{display:none;pointer-events:auto;min-height:44px;min-width:0;border:1px solid #e6d9ff50;border-radius:8px;background:#17141ef5;color:#ede6f8;font:inherit;font-size:12px;padding:8px}
.motion-preference{min-height:44px}
@media(max-width:900px){
 .scene-controls .scene-dots{display:none}
 .scene-select{display:block;max-width:140px}
 .guide-art .scene-controls{justify-content:space-between}
}
@media(max-width:380px){
 .scene-buttons{padding:2px;gap:0}
 .scene-select{width:116px;padding:8px 4px}
 .cinema-benefits{font-size:11px;gap:10px}
}

/* Audit fixes: purchase priority, usable controls and informational contrast. */
.product-layout{column-gap:48px;row-gap:0;grid-template-rows:auto 1fr}
.product-heading{grid-column:2;grid-row:1}
.product-gallery-column{grid-column:1;grid-row:1 / span 2;min-width:0}
.product-purchase{grid-column:2;grid-row:2;min-width:0}
.field-hint,.purchase-footer,.currency{color:var(--cl-text-muted)}
[data-menu-toggle],.icon-button,.password-toggle{min-width:44px;min-height:44px}
.mobile-nav{max-height:calc(100dvh - 120px);overflow:auto;overscroll-behavior:contain}
[data-catalog-reset-inline]{margin-left:auto}
@media(max-width:700px){
 .product-layout{display:flex;flex-direction:column;gap:0}
 .product-heading{order:0;margin-bottom:20px}
 .product-gallery-column{order:1}
 .product-purchase{order:2}
 .product-heading h1{font-size:32px;line-height:1.12;margin-top:8px}
 .product-heading .product-description{font-size:13px;line-height:1.65;margin:12px 0}
 .product-gallery{aspect-ratio:16 / 10}
 .gallery-thumbnails{margin-top:8px;gap:8px}
 .gallery-thumbnail{width:64px;height:44px;min-height:44px}
 .product-assurance{display:none}
 .product-purchase .price-row{margin:0;padding:18px 0}
 .variant-card{min-height:76px}
}

.product-purchase .price-row{margin:0;padding:18px 0}
.product-purchase .purchase-panel{margin-top:0}
@media(max-width:380px){
 .cinema-copy .hero-actions{flex-wrap:nowrap}
 .cinema-copy .btn-lg{padding:11px 10px;gap:6px}
}

/* Bare-select fallbacks must not override the controls over dark artwork. */
.scene-controls select.scene-select{background:#17141ef5;color:#ede6f8;font-size:12px;padding:8px;min-height:44px}
.scene-controls select.scene-select:focus{background:#17141e;outline:2px solid #dcc9ff;outline-offset:2px}
/* Stock management remains a scrollable dialog with readable mobile key rows. */
.admin-form-container .stock-modal .modal-title{font-size:20px;margin:0;line-height:1.3;min-width:0}
.stock-modal .modal-title small{display:block;font-size:13px;color:var(--cl-text-muted);margin-top:4px}
.stock-modal .modal-header>.pill{flex-shrink:0}
.stock-modal .stock-help{margin:10px 0 16px;font-size:13px;line-height:1.6;color:var(--cl-text-muted)}
@media(max-width:600px){
 .admin-form-container .stock-modal{max-height:calc(100dvh - 32px)}
 .admin-form-container .stock-modal .modal-header,.admin-form-container .stock-modal .modal-body,.admin-form-container .stock-modal .modal-footer{padding:16px}
 .stock-modal .modal-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .stock-modal .modal-table,.stock-modal .modal-table tbody{display:block}
 .stock-modal .modal-table tr{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px 0;border-bottom:1px solid var(--cl-border)}
 .admin-form-container .stock-modal .modal-table td{display:block;border:0;padding:0;align-self:center}
 .stock-modal .modal-table td:first-child:before{content:'ID ';font-size:11px;color:var(--cl-text-muted)}
 .stock-modal .modal-table .stock-key-cell{grid-column:1 / -1;grid-row:2}
 .stock-modal .modal-table td:last-child{grid-column:2;grid-row:1}
 .stock-modal .stock-key-cell input{width:100%;min-width:0}
}

/* Keep the full touch target inside, rather than across, a password field. */
.password-field .icon-button{top:50%;right:1px;transform:translateY(-50%);width:44px;height:44px;background:transparent}
.password-field .input{min-height:46px}

/* Grid spans must shrink with the tracks; otherwise implicit tracks clip specs. */
@media(max-width:1024px){
 .admin-form-container .spec-card.wide{grid-column:1 / -1}
}
@media(max-width:640px){
 .admin-form-container .spec-card,.admin-form-container .spec-card.half,.admin-form-container .spec-card.wide{grid-column:1 / -1;min-width:0}
 .admin-form-container .spec-card .field-label{flex-wrap:wrap;overflow-wrap:anywhere}
 .admin-form-container .spec-card .inline-field{flex-wrap:wrap;gap:10px}
 .admin-form-container .spec-card .form-grid{grid-template-columns:minmax(0,1fr)!important}
}
/* Reserve the sticky workspace header/save strip during keyboard scrolling. */
html:has(.admin-shell){scroll-padding-top:100px;scroll-padding-bottom:110px}
.admin-shell :is(input,textarea,select,button,a):focus{scroll-margin-top:10px;scroll-margin-bottom:16px}

/* Storefront artwork integration v2
   The generated Graphite banners are art assets, never a second content layer.
   The storefront owns the copy; Graphite sources are deliberately framed on
   their UI/geometry side so baked-in headline text cannot sit underneath it. */
@media (min-width: 701px) {
  .cinema-frame {
    display: grid;
    grid-template-columns: minmax(430px, .88fr) minmax(0, 1.22fr);
    min-height: 520px;
    background: var(--cl-surface);
  }
  .cinema-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    padding: 66px 44px 58px 48px;
    background: var(--cl-surface);
  }
  .cinema-media {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 520px;
    border-left: 1px solid var(--cl-border);
    background: #0f1822;
  }
  .cinema-media .scene-layer img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
  }
  .cinema-media .scene-layer--graphite img {
    transform: scale(1.7);
    transform-origin: 100% 50%;
    object-position: 100% 50%;
  }
  .cinema-media .scene-layers:after {
    background: linear-gradient(90deg, rgba(15,24,34,.46), rgba(15,24,34,.05) 40%, transparent 72%);
  }
  .cinema-media .scene-controls {
    left: 18px;
    right: 18px;
  }
}

/* Graphite artwork is intentionally cropped to its visual half in secondary
   placements. Legacy scenery remains unchanged when selected in Admin. */
.guide-art .scene-layer--graphite img,
.support-banner-art .art-image--graphite,
.help-hero-image .art-image--graphite {
  transform: scale(1.62);
  transform-origin: 100% 50%;
  object-position: 100% 50%;
}

/* Cohesive Graphite surfaces around the art. */
[data-theme="graphite"] .cinema-frame,
[data-theme="graphite"] .shopping-guide,
[data-theme="graphite"] .support-banner,
[data-theme="graphite"] .help-hero-image {
  border-color: var(--cl-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.015);
}
[data-theme="graphite"] .cinema-copy { background: #111a24; }
[data-theme="graphite"] .guide-copy,
[data-theme="graphite"] .support-banner-copy { background: var(--cl-surface); }

@media (min-width: 701px) and (max-width: 1100px) {
  .cinema-frame { grid-template-columns: minmax(390px, .95fr) minmax(0, 1.05fr); }
  .cinema-copy { padding: 52px 34px 44px; }
  .cinema-media .scene-layer--graphite img { transform: scale(1.92); }
}

@media (max-width: 700px) {
  .cinema-copy {
    background: var(--cl-surface);
    border-bottom: 1px solid var(--cl-border);
  }
  .cinema-media { height: 250px; background: #0f1822; }
  .cinema-media .scene-layer--graphite img {
    transform: scale(1.72);
    transform-origin: 100% 50%;
    object-position: 100% 50%;
  }
  .cinema-media .scene-layers:after {
    background: linear-gradient(0deg, rgba(15,24,34,.5), transparent 44%);
  }
  .guide-art .scene-layer--graphite img,
  .support-banner-art .art-image--graphite,
  .help-hero-image .art-image--graphite {
    transform: scale(1.72);
  }
}

/* Screenshot pass 2: secondary placements were still revealing the baked-in
   left-side headline from the source banners. Crop harder to the clean visual
   side; the image remains the selected asset, only its storefront framing changes. */
.guide-art .scene-layer--graphite img { transform: scale(2.48); }
.support-banner-art .art-image--graphite { transform: scale(2.35); }
.help-hero-image .art-image--graphite { transform: scale(2.25); }
@media (max-width: 700px) {
  .guide-art .scene-layer--graphite img { transform: scale(2.58); }
  .support-banner-art .art-image--graphite { transform: scale(2.48); }
  .help-hero-image .art-image--graphite { transform: scale(2.4); }
}

/* Screenshot pass 3: eliminate the last residual source-text edge on the
   narrow hero and on the guide's first Graphite banner. */
.guide-art .scene-layer--graphite img { transform: scale(2.92); }
@media (max-width: 700px) {
  .cinema-media .scene-layer--graphite img { transform: scale(2.12); }
  .guide-art .scene-layer--graphite img { transform: scale(3.0); }
}
