/* Responsive art direction V7.
 * Composition canvases have one internal design size and scale together.
 * Ordinary text, navigation and standalone images remain responsive. */
.responsive-scene {
  min-width: 0;
  position: relative;
}
.responsive-scene > .responsive-scene-stage {
  position: absolute;
  display: block;
  left: 0;
  top: 0;
  transform: scale(var(--scene-scale, 1));
  transform-origin: top left;
  isolation: isolate;
}
/* BRICKTANGLE PRODUCT HERO: canonical 700 x 380 art direction. */
.br3-gallery.responsive-scene {
  display: block;
  width: 100%;
  max-width: 700px;
  height: var(--scene-fit-height, 380px);
  min-height: 0;
  aspect-ratio: auto;
  margin: 0 auto;
}
.br3-gallery.responsive-scene .br3-phone-menu.br3-pre-tilted {
  width: 266px;
  height: auto;
  top: 6px;
  left: 0;
  z-index: 1;
}
.br3-gallery.responsive-scene .br3-phone-board {
  width: 231px;
  height: 330px;
  top: 13px;
  left: 203px;
  padding: 5px;
  z-index: 3;
}
.br3-gallery.responsive-scene .br3-video-card-hero {
  width: 308px;
  height: 239px;
  top: 71px;
  left: auto;
  right: 0;
  padding: 9px;
  border: 7px solid #fff;
  border-radius: 17px;
  transform: rotate(5deg);
  z-index: 5;
}
.br3-gallery.responsive-scene .br3-video-card-hero .br3-video-brand {font-size: 25px}
.br3-gallery.responsive-scene .br3-video-card-hero .br3-video-play {
  width: 69px; height: 69px; font-size: 29px; margin: 14px 0 13px;
}
.br3-gallery.responsive-scene .br3-video-card-hero .br3-video-title {font-size: 15px}
.br3-gallery.responsive-scene .br3-video-card-hero .br3-video-hint {font-size: 11px; margin-top: 8px}
.br3-gallery.responsive-scene .br3-block {transform: none;}
.br3-gallery.responsive-scene .br3-block-red {width:39px;height:43px;right:105px;bottom:11px;transform:rotate(-9deg)}
.br3-gallery.responsive-scene .br3-block-yellow {width:47px;height:51px;right:70px;bottom:19px;transform:rotate(-4deg)}
.br3-gallery.responsive-scene .br3-block-blue {width:45px;height:47px;right:35px;bottom:20px;transform:rotate(10deg)}

/* HOMEPAGE BRICKTANGLE LAUNCH: canonical 580 x 405. */
.v2-launch-gallery.responsive-scene {
  width: 100%; max-width: 580px;
  height: var(--scene-fit-height, 405px);
  min-height: 0;
  margin: 0 auto;
}
.v2-launch-gallery.responsive-scene .v2-launch-phone {padding:7px 7px 32px;border-radius:18px}
.v2-launch-gallery.responsive-scene .v2-launch-phone img {border-radius:11px}
.v2-launch-gallery.responsive-scene .v2-launch-phone span {font-size:10px;bottom:6px}
.v2-launch-gallery.responsive-scene .v2-launch-phone-left {
  left: 0; bottom: 15px; width: 168px; height: 315px; transform: rotate(-8deg);
}
.v2-launch-gallery.responsive-scene .v2-launch-phone-main {
  left: 174px; bottom: 0; width: 220px; height: 380px; transform: rotate(-1deg); z-index:3;
}
.v2-launch-gallery.responsive-scene .v2-launch-phone-right {
  right: 0; bottom:17px; width:174px; height:325px; transform:rotate(8deg);
}

/* HOMEPAGE APPS AND GAMES CATEGORIES: canonical 390 x 335
 * Art is contained and centred in its portion of the category panel. */
.v2-category-media.responsive-scene {
  position: absolute;
  display: block;
  inset: 0 0 0 45%;
  height: 100%;
}
.v2-category-media.responsive-scene .v2-app-screen {
  width: 258px; height:205px; border-radius:14px; padding:7px;
}
.v2-category-media.responsive-scene .v2-app-screen-one {right:74px;top:40px;transform:rotate(-8deg)}
.v2-category-media.responsive-scene .v2-app-screen-two {right:-35px;top:119px;transform:rotate(6deg)}
.v2-category-media.responsive-scene .v2-game-preview {
  border-radius:13px;padding:5px 5px 15px;
}
.v2-category-media.responsive-scene .v2-preview-brick {
  width:117px; height:235px; right:183px; bottom:42px;transform:rotate(-11deg)
}
.v2-category-media.responsive-scene .v2-preview-tap {
  width:121px;height:230px;right:82px;bottom:27px;transform:rotate(3deg)
}
.v2-category-media.responsive-scene .v2-preview-euchre {
  width:113px;height:218px;right:-8px;bottom:50px;transform:rotate(12deg)
}

/* GAMES LANDING HERO: canonical 600 x 380. */
.v2-games-hero-mosaic.responsive-scene {
  width:100%;max-width:600px;
  height:var(--scene-fit-height,380px);
  min-height:0;
}
.v2-games-hero-mosaic.responsive-scene .v2-mosaic-card {
  width:200px; max-width:none; height:315px;
  border-radius:15px;padding:7px 7px 0;
}
.v2-games-hero-mosaic.responsive-scene .v2-mosaic-card span {height:32px;font-size:10px}
.v2-games-hero-mosaic.responsive-scene .v2-mosaic-card img {height:calc(100% - 33px);border-radius:10px}
.v2-games-hero-mosaic.responsive-scene .v2-mosaic-one {left:12px;bottom:12px;transform:rotate(-11deg)}
.v2-games-hero-mosaic.responsive-scene .v2-mosaic-two {left:204px;bottom:30px;transform:rotate(2deg)}
.v2-games-hero-mosaic.responsive-scene .v2-mosaic-three {left:auto;right:6px;bottom:10px;transform:rotate(11deg)}
.v2-games-hero-mosaic.responsive-scene .v2-mosaic-one:hover {transform:translateY(-8px) rotate(-11deg)}
.v2-games-hero-mosaic.responsive-scene .v2-mosaic-two:hover {transform:translateY(-8px) rotate(2deg)}
.v2-games-hero-mosaic.responsive-scene .v2-mosaic-three:hover {transform:translateY(-8px) rotate(11deg)}

/* GAMES PRODUCT CARDS: canonical 520 x 310, art and labels scale together. */
.v2-product-art.responsive-scene {
  display:block;
  width:100%;
  min-height:0;
  height:var(--scene-fit-height,310px);
}
.v2-product-art.responsive-scene .v2-product-art-label {
  left:22px;top:20px;font-size:10px;
}
.v2-product-art.responsive-scene .v2-product-phone {
  width:155px;height:270px;left:177px;top:17px;
  border:6px solid #fff;border-bottom-width:14px;
  border-radius:17px;
}
.v2-product-art.responsive-scene .v2-product-mini {
  width:134px;height:225px;right:73px;top:65px;
  border:6px solid #fff;border-bottom-width:14px;
  border-radius:17px;
}
.v2-product-art.responsive-scene.v2-product-art-tap .v2-product-phone {left:156px}
.v2-product-art.responsive-scene.v2-product-art-tap .v2-product-mini {right:68px}
.v2-product-art.responsive-scene.v2-product-art-euchre .v2-product-phone {left:161px}
.v2-product-art.responsive-scene.v2-product-art-euchre .v2-product-mini {right:83px}
.v2-product-art.responsive-scene.v2-product-art-word .responsive-scene-stage {
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
}
.v2-product-art.responsive-scene .v2-word-poster {gap:10px}
.v2-product-art.responsive-scene .v2-word-poster span {width:66px;height:76px;font-size:37px}
.v2-product-art.responsive-scene .v2-word-poster .v2-word-float {
  position:absolute;right:-28px;top:-42px;width:46px;height:47px;font-size:32px
}

/* More deliberate breakpoint for smaller desktop: content is stacked
 * before the right-side scene shrinks enough to become illegible. */
@media(max-width:1080px) and (min-width:611px) {
  .br3-hero-inner {grid-template-columns:1fr;gap:12px;}
  .br3-hero-copy {max-width:700px;width:100%;margin:0 auto}
  .br3-gallery.responsive-scene {max-width:700px;justify-self:center}
  .br3-showcase-inner {grid-template-columns:1.1fr .95fr .95fr;gap:12px}
  .br3-section-copy {grid-column:1/-1;max-width:550px}
  .br3-video-card-main,.br3-shot {height:260px;min-height:0}
  .br3-features {grid-column:1/-1;flex-direction:row;justify-content:space-between}
  .br3-feature {flex:1;border:0;border-top:1px solid #e4ded4}
}
@media(max-width:610px){
  .br3-gallery.responsive-scene {max-width:700px;margin:10px auto 0}
  .v2-launch-gallery.responsive-scene {margin-top:22px}
  .v2-category-media.responsive-scene {inset:0 0 0 41%;height:100%}
  .v2-product-art.responsive-scene {max-width:100%}
}

/* Art-direction breakpoint polish: switch layout before the artwork would
   shrink too much. Each composite retains its canonical inner arrangement. */
@media (min-width:611px) and (max-width:1340px) {
  .br3-hero-inner {grid-template-columns:1fr;gap:12px}
  .br3-hero-copy {max-width:700px;width:100%;margin:0 auto}
  .br3-gallery.responsive-scene {max-width:700px;justify-self:center}
}
@media (min-width:771px) and (max-width:1150px) {
  .v2-launch .portfolio-home-feature-inner {grid-template-columns:1fr;gap:8px}
  .v2-launch .portfolio-home-feature-copy {max-width:650px;margin:0 auto}
  .v2-launch-gallery.responsive-scene {justify-self:center}
}
@media (min-width:571px) and (max-width:1180px) {
  .v2-category-grid {grid-template-columns:1fr}
  .v2-category-card {max-width:950px;width:100%;margin:0 auto}
}
@media (min-width:941px) and (max-width:1220px){
  .br3-showcase-inner {grid-template-columns:1.1fr .95fr .95fr;gap:12px}
  .br3-section-copy {grid-column:1/-1;max-width:550px}
  .br3-video-card-main,.br3-shot {height:260px;min-height:0}
  .br3-features {grid-column:1/-1;flex-direction:row;justify-content:space-between}
  .br3-feature {flex:1;border:0;border-top:1px solid #e4ded4}
}

/* On narrow phones, category headings and the image collage get distinct
   vertical zones. Avoid text sitting underneath responsive screenshot art. */
@media(max-width:570px){
  .v2-category-card {
    display:block;
    min-height:465px;
  }
  .v2-category-card .v2-category-copy {
    width:100%;
    height:207px;
    min-height:207px;
    padding:23px 23px 5px;
    display:flex;
    align-items:flex-start;
    position:relative;
    z-index:3;
  }
  .v2-category-card .v2-category-copy p {
    max-width:275px;
    font-size:13px;
    line-height:1.5;
  }
  .v2-category-card .v2-category-cta {
    margin-top:auto;
    padding-top:8px;
    padding-bottom:3px;
  }
  .v2-category-card .v2-category-media.responsive-scene {
    position:absolute;
    inset:207px 0 6px;
    width:auto;
    height:auto;
    z-index:2;
  }
}

/* Final narrow-screen safeguard: use natural document flow rather than a
   fixed text zone, so longer translations and small phones cannot overlap art. */
@media(max-width:570px){
  .v2-category-card {display:flex;flex-direction:column;min-height:0;height:auto}
  .v2-category-card .v2-category-copy {
    width:100%;height:auto;min-height:0;flex:0 0 auto;
    padding:23px 23px 5px;display:flex;flex-direction:column;
  }
  .v2-category-card .v2-category-cta {margin-top:17px;padding-top:3px}
  .v2-category-card .v2-category-media.responsive-scene {
    position:relative;inset:auto;width:100%;height:252px;
    flex:0 0 252px;z-index:2;
  }
}


/* V9: Homepage launch composition, now featuring the actual BrickTangle
   icon and crisp source-matched navy/coral wordmark above the screenshot triptych.
   The title is inside the canonical scene, so all components scale together. */
.v2-launch-gallery.responsive-scene {
  height:var(--scene-fit-height,500px);
}
.v2-launch-gallery.responsive-scene .v9-home-title {
  position:absolute;
  top:6px;
  left:21px;
  width:540px;
  min-height:91px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
  z-index:9;
  pointer-events:none;
}
.v9-home-title .v9-home-icon {
  display:block;
  flex:0 0 auto;
  width:66px;
  height:66px;
  border-radius:16px;
  box-shadow:0 6px 17px #393b4630;
}
.v9-home-title .v9-home-wordmark {
  display:flex;
  align-items:baseline;
  position:relative;
  white-space:nowrap;
  padding:8px 1px 0;
  font:900 66px/1 "Nunito","Arial Rounded MT Bold",Arial,sans-serif;
  letter-spacing:-.08em;
  text-shadow:none;
  filter:none;
}
.v9-home-title .v9-word-brick {color:#2f3e6b}
.v9-home-title .v9-word-tangle {color:#f56d66}
.v9-home-title .v9-logo-leaf {
  position:absolute;
  top:1px;
  left:98px;
  width:22px;
  height:14px;
  border-radius:90% 5% 90% 8%;
  background:#60bb85;
  border:1px solid #379668;
  transform:rotate(-26deg);
}
.v2-launch-gallery.responsive-scene .v2-launch-phone-left {z-index:1}
.v2-launch-gallery.responsive-scene .v2-launch-phone-main {z-index:3}
.v2-launch-gallery.responsive-scene .v2-launch-phone-right {z-index:2}

/* V10: matching hero phones, native 9:16 screenshots, a single fixed composition.
   Both frames are exactly 202x351px in the canonical 700x380 scene.
   Identical 188x334px image viewport, no cropping and no separate zoom levels. */
.br3-gallery.responsive-scene .br3-phone.br3-phone-matched{
  position:absolute;
  width:202px;
  height:351px;
  box-sizing:border-box;
  padding:9px 7px 8px;
  margin:0;
  overflow:hidden;
  display:block;
  background:#fff;
  border:0;
  border-radius:18px;
  box-shadow:0 16px 34px #463e3340,0 0 0 1px #ffffff;
  aspect-ratio:auto;
  filter:none;
  transform-origin:center center;
  backface-visibility:hidden;
}
.br3-gallery.responsive-scene .br3-phone.br3-phone-matched::before{
  content:"";
  position:absolute;
  z-index:2;
  width:31px;
  height:2px;
  top:3px;
  left:calc(50% - 15.5px);
  border-radius:3px;
  background:#c9cdd0;
  pointer-events:none;
}
.br3-gallery.responsive-scene .br3-phone.br3-phone-matched img{
  display:block;
  width:188px;
  height:334px;
  max-width:none;
  max-height:none;
  aspect-ratio:9/16;
  object-fit:contain;
  object-position:center center;
  border-radius:12px;
  background:#fffaf3;
}
.br3-gallery.responsive-scene .br3-phone-menu.br3-phone-matched{
  left:78px;
  right:auto;
  top:14px;
  z-index:1;
  transform:rotate(-6deg)!important;
}
.br3-gallery.responsive-scene .br3-phone-board.br3-phone-matched{
  left:259px;
  right:auto;
  top:14px;
  z-index:3;
  transform:none!important;
}
.br3-gallery.responsive-scene .br3-video-card-hero{
  z-index:5;
}
