/* BUILD 30: the LEGO Free Play Tables pilot activity page.
 * Keeps the approved homepage masthead, hero shape, brick artwork and panel style.
 * Caption strings and image list live in content.js for future admin editing.
 */
.rbh-interior:has(.rbh-play-page) {
  padding: 0 0 24px;
}
.rbh-interior .rbh-play-page {
  --play-yellow:#ffe400;
  --play-red:#ed172b;
  background:#050505;
  overflow:hidden;
  padding-bottom:4px;
}
/* Adopt exactly the same hero geometry as the finished homepage, no tall page banner. */
.rbh-interior .rbh-play-page .rbh-hero {
  width:100%;
  min-height:0;
  margin:0 0 13px;
  border:0;
  border-radius:0;
  background-color:#ffe400;
  isolation:isolate;
  position:relative;
  overflow:visible;
}
.rbh-interior .rbh-play-page .rbh-hero:before {
  background:#ffe400 url('/assets/yellow-texture.webp') center / 950px auto repeat;
  opacity:1;
}
.rbh-interior .rbh-play-page .rbh-hero-inner {
  width:min(1450px,calc(100% - 42px));
  height:auto;
  min-height:275px;
  padding:12px 0 15px;
  grid-template-columns:49% 51%;
  align-items:center;
  gap:0;
}
.rbh-interior .rbh-play-page .rbh-hero-text {
  min-width:0;
  width:100%;
  padding:0 12px 0 0;
  margin:0;
  transform:translateX(-5px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.rbh-interior .rbh-play-page .rbh-hero h1 {
  display:block;
  font:italic 1000 clamp(33px,4.2vw,61px)/.96 var(--display)!important;
  text-transform:uppercase;
  letter-spacing:-.018em;
  width:max-content;
  max-width:100%;
  margin:0;
  transform:skew(-5deg)!important;
  filter:none;
}
.rbh-interior .rbh-play-page .rbh-hero h1 .rbh-play-line {
  display:block;
  color:white;
  -webkit-text-fill-color:#fff;
  -webkit-text-stroke:1.6px #090909;
  paint-order:stroke fill;
  text-shadow:3px 4px 0 #060606, -1px -1px 0 #060606;
  white-space:nowrap;
}
.rbh-interior .rbh-play-page .rbh-hero h1 .rbh-play-line-red {
  color:#f22031;
  -webkit-text-fill-color:#f22031;
}
.rbh-interior .rbh-play-page .rbh-hero-frame {
  height:250px!important;
  margin:0!important;
  width:100%!important;
  padding:6px!important;
  background:#fff!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:12px!important;
  overflow:hidden!important;
  -webkit-clip-path:url(#rbh-hero-rounded)!important;
  clip-path:url(#rbh-hero-rounded)!important;
}
.rbh-interior .rbh-play-page .rbh-hero-frame img {
  width:100%!important;
  height:100%!important;
  display:block;
  object-fit:cover;
  object-position:center;
  transform:none!important;
  border-radius:9px;
  -webkit-clip-path:url(#rbh-hero-rounded)!important;
  clip-path:url(#rbh-hero-rounded)!important;
  transition:opacity .32s ease;
}
.rbh-interior .rbh-play-page .rbh-hero-frame img.is-fading {opacity:0;}
/* Homepage charcoal squircle sections, spaced with black gutters instead of lines. */
.rbh-interior .rbh-play-page .rbh-play-panel {
  box-sizing:border-box;
  width:min(1200px,calc(100% - 28px));
  margin:0 auto 12px;
  padding:25px 30px 29px;
  border:1px solid #34363a;
  background:#17181a;
  border-radius:22px;
  color:#e8e8ea;
  overflow:hidden;
}
.rbh-interior .rbh-play-page .rbh-play-panel > .rbh-ribbon {
  display:table;
  position:relative;
  margin:0 0 21px 28px;
  padding:9px 22px 10px 14px;
  font:italic 900 clamp(22px,2.5vw,32px)/1.1 var(--display);
  letter-spacing:-.004em;
  text-transform:uppercase;
  white-space:normal;
  color:#080808;
  background:var(--play-yellow);
  border-radius:0 9px 0 0 !important;
  overflow:visible!important;
  transform:skew(-17deg);
}
.rbh-interior .rbh-play-page .rbh-play-panel > .rbh-ribbon:before {
  content:'';
  position:absolute;
  left:-27px;
  top:0;
  width:28px;
  height:100%;
  background:#ed172b url('/assets/ribbon-brick-vertical.png') center / 100% 100% no-repeat!important;
  border-radius:0!important;
  transform:none!important;
}
.rbh-interior .rbh-play-page .rbh-play-offer > p {
  margin:0;
  max-width:930px;
  font-size:clamp(16px,1.55vw,20px);
  line-height:1.48;
  color:#e3e3e6;
}
/* Native horizontal snap retains vertical finger scrolling on iOS. */
.rbh-interior .rbh-play-page .rbh-play-gallery-stage {position:relative;min-width:0;}
.rbh-interior .rbh-play-page .rbh-play-gallery-track {
  display:flex;
  gap:18px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  scroll-padding-inline:3px;
  -webkit-overflow-scrolling:touch;
  touch-action:auto;
  overscroll-behavior-x:contain;
  padding:4px 3px 8px;
}
.rbh-interior .rbh-play-page .rbh-play-gallery-track::-webkit-scrollbar {display:none;}
.rbh-interior .rbh-play-page .rbh-play-gallery-slide {
  margin:0;
  flex:0 0 62%;
  min-width:0;
  background:#222327;
  border:1px solid #414348;
  border-radius:18px;
  overflow:hidden;
  scroll-snap-align:start;
  box-shadow:0 2px 0 #101011;
  display:flex;
  flex-direction:column;
}
.rbh-interior .rbh-play-page .rbh-play-gallery-photo {
  border:2px solid var(--play-yellow);
  background:#080808;
  border-radius:14px;
  margin:10px 10px 0;
  overflow:hidden;
  aspect-ratio: 16 / 10;
}
.rbh-interior .rbh-play-page .rbh-play-gallery-photo img {
  display:block;
  width:100%;height:100%;
  object-fit:cover;
}
.rbh-interior .rbh-play-page .rbh-play-gallery-slide figcaption {
  display:flex;
  align-items:center;
  min-height:63px;
  padding:12px 17px 16px;
  font-size:clamp(14px,1.2vw,17px);
  line-height:1.35;
  color:#f0f0f1;
}
.rbh-interior .rbh-play-page .rbh-play-gallery-arrow {
  position:absolute;
  top:39%;
  z-index:3;
  transform:translateY(-50%);
  padding:9px 5px;
  width:36px;
  border:0;
  background:transparent;
  color:#ffe400;
  cursor:pointer;
  font-size:27px;
  line-height:1;
  font-weight:900;
  -webkit-text-stroke:2px #080808;
  paint-order:stroke fill;
  filter:drop-shadow(1px 2px 1px #000);
}
.rbh-interior .rbh-play-page .rbh-play-gallery-prev {left:-8px;}
.rbh-interior .rbh-play-page .rbh-play-gallery-next {right:-8px;}
.rbh-interior .rbh-play-page .rbh-play-gallery-arrow:focus-visible {outline:2px solid #ffe400;border-radius:10px;}
.rbh-interior .rbh-play-page .rbh-play-lead {
  margin:0 0 20px;
  color:#dedee0;
  font-size:clamp(15px,1.45vw,18px);
  line-height:1.45;
}
.rbh-interior .rbh-play-page .rbh-play-event-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.rbh-interior .rbh-play-page .rbh-play-event-card {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:#202124;
  border:1px solid #3c3d40;
  border-radius:18px;
  padding:18px 10px 16px;
  min-height:145px;
  text-align:center;
}
.rbh-interior .rbh-play-page .rbh-play-event-icon {
  width:66px;
  height:66px;
  color:#ffe400;
}
.rbh-interior .rbh-play-page .rbh-play-event-icon svg {width:100%;height:100%;}
.rbh-interior .rbh-play-page .rbh-play-event-card h3 {
  font:900 clamp(13px,1.3vw,17px)/1.2 var(--display);
  color:#fff;
  text-transform:uppercase;
  letter-spacing:.015em;
  margin:0;
}
.rbh-interior .rbh-play-page .rbh-play-action {display:flex;justify-content:center;margin-top:23px;}
.rbh-interior .rbh-play-page .rbh-play-action .rbh-pill {
  font-size:clamp(14px,1.2vw,17px);
  padding:12px 24px;
}
@media(max-width:900px){
 .rbh-interior .rbh-play-page .rbh-hero-inner {min-height:220px;}
 .rbh-interior .rbh-play-page .rbh-hero-frame {height:205px!important;}
 .rbh-interior .rbh-play-page .rbh-play-gallery-slide {flex-basis:75%;}
}
@media(max-width:700px){
 .rbh-interior .rbh-play-page .rbh-hero {margin-bottom:10px;}
 .rbh-interior .rbh-play-page .rbh-hero-inner {
   width:calc(100% - 20px);
   height:145px!important;
   min-height:145px!important;
   grid-template-columns:49% 51%;
   padding:0!important;
 }
 .rbh-interior .rbh-play-page .rbh-hero-text {
   width:100%;
   height:92px!important;
   min-height:92px!important;
   margin:26px 0 0!important;
   transform:translateX(-5px);
 }
 .rbh-interior .rbh-play-page .rbh-hero h1 {
   font-size:clamp(23px,6vw,31px)!important;
   transform:skew(-5deg)!important;
   line-height:.97!important;
 }
 .rbh-interior .rbh-play-page .rbh-hero h1 .rbh-play-line { -webkit-text-stroke:1px #070707; text-shadow:2px 3px 0 #080808; }
 .rbh-interior .rbh-play-page .rbh-hero-frame {height:132px!important;}
 .rbh-interior .rbh-play-page .rbh-play-panel {
   width:calc(100% - 22px);
   border-radius:19px;
   margin-bottom:10px;
   padding:18px 16px 20px;
 }
 .rbh-interior .rbh-play-page .rbh-play-panel > .rbh-ribbon {
   margin:0 0 14px 20px;
   padding:6px 12px 7px 10px;
   font-size:clamp(19px,5.25vw,25px);
 }
 .rbh-interior .rbh-play-page .rbh-play-panel > .rbh-ribbon:before {left:-20px;width:21px;}
 .rbh-interior .rbh-play-page .rbh-play-offer > p {font-size:15px;line-height:1.45;}
 .rbh-interior .rbh-play-page .rbh-play-gallery-track {gap:10px;padding:3px 1px 6px;}
 .rbh-interior .rbh-play-page .rbh-play-gallery-slide {flex-basis:88%;border-radius:16px;}
 .rbh-interior .rbh-play-page .rbh-play-gallery-photo {margin:7px 7px 0;border-radius:12px;}
 .rbh-interior .rbh-play-page .rbh-play-gallery-slide figcaption {font-size:13px;line-height:1.4;min-height:66px;padding:10px 12px 12px;}
 .rbh-interior .rbh-play-page .rbh-play-gallery-arrow {top:38%;width:28px;font-size:24px;}
 .rbh-interior .rbh-play-page .rbh-play-gallery-prev {left:-7px;}
 .rbh-interior .rbh-play-page .rbh-play-gallery-next {right:-7px;}
 .rbh-interior .rbh-play-page .rbh-play-lead {font-size:14px;margin-bottom:14px;}
 .rbh-interior .rbh-play-page .rbh-play-event-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
 .rbh-interior .rbh-play-page .rbh-play-event-card {min-height:115px;border-radius:14px;padding:12px 6px;gap:5px;}
 .rbh-interior .rbh-play-page .rbh-play-event-icon {width:50px;height:50px;}
 .rbh-interior .rbh-play-page .rbh-play-event-card h3 {font-size:clamp(12px,3.3vw,15px);}
 .rbh-interior .rbh-play-page .rbh-play-action {margin-top:16px;}
 .rbh-interior .rbh-play-page .rbh-play-action .rbh-pill {font-size:13px;padding:12px 18px;}
}
@media (prefers-reduced-motion:reduce) {
 .rbh-interior .rbh-play-page .rbh-hero-frame img {transition:none!important;}
 .rbh-interior .rbh-play-page .rbh-play-gallery-track {scroll-behavior:auto;}
}
